// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/messages.c
// Function: get_setting
void get_setting(coordinates_t loc, char *name, FILE* rsp)
{
	if (streq("split_ratio", name)) {
		fprintf(rsp, "%lf", split_ratio);
	} else if (streq("border_width", name)) {
		if (loc.node != NULL) {
			for (node_t *n = first_extrema(loc.node); n != NULL; n = next_leaf(n, loc.node)) {
				if (n->client != NULL) {
					fprintf(rsp, "%u", n->client->border_width);
					break;
				}
			}
		} else if (loc.desktop != NULL) {
			fprintf(rsp, "%u", loc.desktop->border_width);
		} else if (loc.monitor != NULL) {
			fprintf(rsp, "%u", loc.monitor->border_width);
		} else {
			fprintf(rsp, "%u", border_width);
		}
	} else if (streq("window_gap", name)) {
		if (loc.desktop != NULL) {
			fprintf(rsp, "%i", loc.desktop->window_gap);
		} else if (loc.monitor != NULL) {
			fprintf(rsp, "%i", loc.monitor->window_gap);
		} else {
			fprintf(rsp, "%i", window_gap);
		}
#define GET_DEF_MON_DESK(k) \
		if (loc.desktop != NULL) { \
			fprintf(rsp, "%i", loc.desktop->k); \
		} else if (loc.monitor != NULL) { \
			fprintf(rsp, "%i", loc.monitor->k); \
		} else { \
			fprintf(rsp, "%i", k); \
		}
	} else if (streq("top_padding", name)) {
		GET_DEF_MON_DESK(padding.top)
	} else if (streq("right_padding", name)) {
		GET_DEF_MON_DESK(padding.right)
	} else if (streq("bottom_padding", name)) {
		GET_DEF_MON_DESK(padding.bottom)
	} else if (streq("left_padding", name)) {
		GET_DEF_MON_DESK(padding.left)
#undef GET_DEF_MON_DESK
	} else if (streq("top_monocle_padding", name)) {
		fprintf(rsp, "%i", monocle_padding.top);
	} else if (streq("right_monocle_padding", name)) {
		fprintf(rsp, "%i", monocle_padding.right);
	} else if (streq("bottom_monocle_padding", name)) {
		fprintf(rsp, "%i", monocle_padding.bottom);
	} else if (streq("left_monocle_padding", name)) {
		fprintf(rsp, "%i", monocle_padding.left);
	} else if (streq("external_rules_command", name)) {
		fprintf(rsp, "%s", external_rules_command);
	} else if (streq("status_prefix", name)) {
		fprintf(rsp, "%s", status_prefix);
	} else if (streq("initial_polarity", name)) {
		fprintf(rsp, "%s", CHILD_POL_STR(initial_polarity));
	} else if (streq("automatic_scheme", name)) {
		fprintf(rsp, "%s", AUTO_SCM_STR(automatic_scheme));
	} else if (streq("honor_size_hints", name)) {
		fprintf(rsp, "%s", HSH_MODE_STR(honor_size_hints));
	} else if (streq("mapping_events_count", name)) {
		fprintf(rsp, "%" PRIi8, mapping_events_count);
	} else if (streq("directional_focus_tightness", name)) {
		fprintf(rsp, "%s", TIGHTNESS_STR(directional_focus_tightness));
	} else if (streq("ignore_ewmh_fullscreen", name)) {
		print_ignore_request(ignore_ewmh_fullscreen, rsp);
	} else if (streq("pointer_modifier", name)) {
		print_modifier_mask(pointer_modifier, rsp);
	} else if (streq("click_to_focus", name)) {
		print_button_index(click_to_focus, rsp);
	} else if (streq("pointer_motion_interval", name)) {
		fprintf(rsp, "%u", pointer_motion_interval);
	} else if (streq("pointer_action1", name) ||
	           streq("pointer_action2", name) ||
	           streq("pointer_action3", name)) {
		int index = name[14] - '1';
		print_pointer_action(pointer_actions[index], rsp);
#define GET_COLOR(s) \
	} else if (streq(#s, name)) { \
		fprintf(rsp, "%s", s);
	GET_COLOR(normal_border_color)
	GET_COLOR(active_border_color)
	GET_COLOR(focused_border_color)
	GET_COLOR(presel_feedback_color)
#undef GET_COLOR
#define GET_BOOL(s) \
	} else if (streq(#s, name)) { \
		fprintf(rsp, "%s", BOOL_STR(s));
	GET_BOOL(presel_feedback)
	GET_BOOL(borderless_monocle)
	GET_BOOL(gapless_monocle)
	GET_BOOL(single_monocle)
	GET_BOOL(borderless_singleton)
	GET_BOOL(swallow_first_click)
	GET_BOOL(focus_follows_pointer)
	GET_BOOL(pointer_follows_focus)
	GET_BOOL(pointer_follows_monitor)
	GET_BOOL(ignore_ewmh_focus)
	GET_BOOL(ignore_ewmh_struts)
	GET_BOOL(center_pseudo_tiled)
	GET_BOOL(removal_adjustment)
	GET_BOOL(remove_disabled_monitors)
	GET_BOOL(remove_unplugged_monitors)
	GET_BOOL(merge_overlapping_monitors)
#undef GET_BOOL
	} else {
		fail(rsp, "config: Unknown setting: '%s'.\n", name);
		return;
	}
	fprintf(rsp, "\n");
}

void handle_failure(int code, char *src, char *val, FILE *rsp)
{
	switch (code) {
		case SELECTOR_BAD_DESCRIPTOR:
			fail(rsp, "%s: Invalid descriptor found in '%s'.\n", src, val);
			break;
		case SELECTOR_BAD_MODIFIERS:
			fail(rsp, "%s: Invalid modifier found in '%s'.\n", src, val);
			break;
		case SELECTOR_INVALID:
			fail(rsp, "");
			break;
	}
}

void fail(FILE *rsp, char *fmt, ...)
{
	fprintf(rsp, FAILURE_MESSAGE);
	va_list ap;
	va_start(ap, fmt);
	vfprintf(rsp, fmt, ap);
	va_end(ap);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xa61a(%rip), %rdi      # 0x206c1
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x164c9
leaq 0x20(%rsp), %r15
leaq 0xa4ff(%rip), %rdi      # 0x205c2
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x164ea
leaq 0xa52b(%rip), %rdi      # 0x20605
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1651a
leaq 0xa51f(%rip), %rdi      # 0x20610
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1652b
leaq 0xa514(%rip), %rdi      # 0x2061c
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1654d
leaq 0xa50b(%rip), %rdi      # 0x2062a
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16579
leaq 0xa503(%rip), %rdi      # 0x20639
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x165a7
leaq 0xa4f9(%rip), %rdi      # 0x20646
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x165d1
leaq 0xa4f6(%rip), %rdi      # 0x2065a
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16604
leaq 0xa4f5(%rip), %rdi      # 0x20670
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16626
leaq 0xa4f5(%rip), %rdi      # 0x20687
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1663b
leaq 0xa4f3(%rip), %rdi      # 0x2069c
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16671
leaq 0xa4f3(%rip), %rdi      # 0x206b3
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1667a
leaq 0xa549(%rip), %rdi      # 0x20720
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16683
leaq 0xa543(%rip), %rdi      # 0x20731
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x166a1
leaq 0xa3ef(%rip), %rdi      # 0x205f4
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x166d6
leaq 0xa526(%rip), %rdi      # 0x20742
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x166f2
leaq 0xa529(%rip), %rdi      # 0x2075c
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16701
leaq 0xa52e(%rip), %rdi      # 0x20778
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16739
leaq 0xa52e(%rip), %rdi      # 0x2078f
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1674f
leaq 0xa570(%rip), %rdi      # 0x207e8
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16766
leaq 0xa511(%rip), %rdi      # 0x207a0
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1679d
leaq 0xa512(%rip), %rdi      # 0x207b8
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1677d
leaq 0xa50b(%rip), %rdi      # 0x207c8
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1677d
leaq 0xa504(%rip), %rdi      # 0x207d8
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1677d
leaq 0xa3e2(%rip), %rdi      # 0x206cd
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167a9
leaq 0xa3df(%rip), %rdi      # 0x206e1
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167b5
leaq 0xa3dc(%rip), %rdi      # 0x206f5
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167c1
leaq 0xa3da(%rip), %rdi      # 0x2070a
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167cd
leaq 0x9895(%rip), %rdi      # 0x1fbdc
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167d9
leaq 0xa4be(%rip), %rdi      # 0x2081c
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167e5
leaq 0xa4ba(%rip), %rdi      # 0x2082f
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167ee
leaq 0xa46b(%rip), %rdi      # 0x207f7
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x167f7
leaq 0xa49c(%rip), %rdi      # 0x2083f
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16800
leaq 0xa49a(%rip), %rdi      # 0x20854
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16809
leaq 0xa435(%rip), %rdi      # 0x20806
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16812
leaq 0xa480(%rip), %rdi      # 0x20868
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1681b
leaq 0xa47f(%rip), %rdi      # 0x2087e
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16824
leaq 0xa480(%rip), %rdi      # 0x20896
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1682d
leaq 0xa47b(%rip), %rdi      # 0x208a8
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16836
leaq 0xa477(%rip), %rdi      # 0x208bb
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1683f
leaq 0xa474(%rip), %rdi      # 0x208cf
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16848
leaq 0xa470(%rip), %rdi      # 0x208e2
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16851
leaq 0xa472(%rip), %rdi      # 0x208fb
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x1685a
leaq 0xa475(%rip), %rdi      # 0x20915
movq %r14, %rsi
callq 0x4820
testl %eax, %eax
je 0x16863
leaq 0xa479(%rip), %rsi      # 0x20930
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x117fd
leaq 0x138f8(%rip), %rax     # 0x29dc8
movsd (%rax), %xmm0
leaq 0x9946(%rip), %rsi      # 0x1fe21
movq %rbx, %rdi
movb $0x1, %al
callq 0x4a30
jmp 0x1665f
movq 0x10(%r15), %r14
testq %r14, %r14
je 0x1653c
movq %r14, %rdi
callq 0x920c
testq %rax, %rax
je 0x1665f
movq 0x48(%rax), %rcx
testq %rcx, %rcx
jne 0x1656e
movq %rax, %rdi
movq %r14, %rsi
callq 0x926e
jmp 0x164fb
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x1655e
movl 0x60(%rax), %edx
jmp 0x1664e
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x1658a
movl 0x50(%rax), %edx
jmp 0x1664e
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x1659a
movl 0x64(%rax), %edx
jmp 0x165fb
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x165b8
movl 0x54(%rax), %edx
jmp 0x1664e
movq (%r15), %rax
testq %rax, %rax
je 0x165c8
movl 0x44(%rax), %edx
jmp 0x1664e
movl 0x300(%rcx), %edx
jmp 0x165fb
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x165da
movl 0x58(%rax), %edx
jmp 0x1664e
movq (%r15), %rax
testq %rax, %rax
je 0x165e7
movl 0x30(%rax), %edx
jmp 0x1664e
movq (%r15), %rax
testq %rax, %rax
je 0x165f2
movl 0x48(%rax), %edx
jmp 0x165fb
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x1660d
movl 0x5c(%rax), %edx
jmp 0x1664e
movq (%r15), %rax
testq %rax, %rax
je 0x1661a
movl 0x34(%rax), %edx
jmp 0x1664e
leaq 0x137f1(%rip), %rax     # 0x29dc0
jmp 0x165ee
leaq 0x137d8(%rip), %rax     # 0x29db0
jmp 0x165ee
movq (%r15), %rax
testq %rax, %rax
je 0x1662f
movl 0x38(%rax), %edx
jmp 0x1664e
leaq 0x137b2(%rip), %rax     # 0x29da0
movl (%rax), %edx
jmp 0x1664e
leaq 0x137cb(%rip), %rax     # 0x29dc4
movl (%rax), %edx
leaq 0x9fcd(%rip), %rsi      # 0x205cf
jmp 0x16655
leaq 0x137a5(%rip), %rax     # 0x29db0
jmp 0x16621
movq (%r15), %rax
testq %rax, %rax
je 0x16644
movl 0x3c(%rax), %edx
jmp 0x1664e
leaq 0x1377f(%rip), %rax     # 0x29da0
movl 0x4(%rax), %edx
jmp 0x1664e
leaq 0x13783(%rip), %rax     # 0x29db0
jmp 0x16636
leaq 0x1376a(%rip), %rax     # 0x29da0
movl 0x8(%rax), %edx
jmp 0x1664e
leaq 0x1376e(%rip), %rax     # 0x29db0
jmp 0x1664b
leaq 0x13755(%rip), %rax     # 0x29da0
movl 0xc(%rax), %edx
leaq 0xaaca(%rip), %rsi      # 0x2111f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0xa, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x4420
leaq 0x13128(%rip), %rdi     # 0x297a0
jmp 0x166cc
leaq 0x1321f(%rip), %rdi     # 0x298a0
jmp 0x166cc
leaq 0x13746(%rip), %rax     # 0x29dd0
cmpl $0x0, (%rax)
leaq 0xa2bc(%rip), %rax      # 0x20950
leaq 0xa2c1(%rip), %rdi      # 0x2095c
cmoveq %rax, %rdi
jmp 0x166cc
leaq 0x1372c(%rip), %rax     # 0x29dd4
movl (%rax), %eax
cmpl $0x1, %eax
leaq 0xa2c2(%rip), %rcx      # 0x20976
leaq 0xa2c5(%rip), %rdx      # 0x20980
cmoveq %rcx, %rdx
testl %eax, %eax
leaq 0xa2a1(%rip), %rdi      # 0x20969
cmovneq %rdx, %rdi
movq %rbx, %rsi
callq 0x4670
jmp 0x1665f
leaq 0x1372b(%rip), %rax     # 0x29e08
movl (%rax), %eax
cmpl $0x2, %eax
je 0x1671b
cmpl $0x3, %eax
jne 0x16724
leaq 0xa565(%rip), %rdi      # 0x20c55
jmp 0x166cc
leaq 0x136fb(%rip), %rax     # 0x29df4
movsbl (%rax), %edx
jmp 0x1664e
leaq 0x136d4(%rip), %rax     # 0x29ddc
cmpl $0x1, (%rax)
leaq 0xa280(%rip), %rax      # 0x20992
leaq 0xa5f6(%rip), %rdi      # 0x20d0f
jmp 0x1669b
leaq 0xa584(%rip), %rdi      # 0x20ca6
jmp 0x166cc
testl %eax, %eax
leaq 0xa25f(%rip), %rax      # 0x2098c
leaq 0xa253(%rip), %rdi      # 0x20987
jmp 0x1669b
leaq 0x136c0(%rip), %rax     # 0x29e00
movl (%rax), %edi
movq %rbx, %rsi
callq 0x197f1
jmp 0x1665f
leaq 0x1368a(%rip), %rax     # 0x29de0
movzwl (%rax), %edi
movq %rbx, %rsi
callq 0x19875
jmp 0x1665f
leaq 0x13690(%rip), %rax     # 0x29dfd
movsbl (%rax), %edi
movq %rbx, %rsi
callq 0x19914
jmp 0x1665f
movsbq 0xe(%r14), %rax
leaq 0x1365f(%rip), %rcx     # 0x29de8
movl -0xc4(%rcx,%rax,4), %edi
movq %rbx, %rsi
callq 0x19973
jmp 0x1665f
leaq 0x13640(%rip), %rax     # 0x29de4
jmp 0x165f9
leaq 0x131f0(%rip), %rdi     # 0x299a0
jmp 0x166cc
leaq 0x132e4(%rip), %rdi     # 0x29aa0
jmp 0x166cc
leaq 0x133d8(%rip), %rdi     # 0x29ba0
jmp 0x166cc
leaq 0x134cc(%rip), %rdi     # 0x29ca0
jmp 0x166cc
leaq 0x13615(%rip), %rax     # 0x29df5
jmp 0x1686a
leaq 0x1360a(%rip), %rax     # 0x29df6
jmp 0x1686a
leaq 0x13602(%rip), %rax     # 0x29df7
jmp 0x1686a
leaq 0x135fa(%rip), %rax     # 0x29df8
jmp 0x1686a
leaq 0x135f2(%rip), %rax     # 0x29df9
jmp 0x1686a
leaq 0x135ee(%rip), %rax     # 0x29dfe
jmp 0x1686a
leaq 0x135e1(%rip), %rax     # 0x29dfa
jmp 0x1686a
leaq 0x135d9(%rip), %rax     # 0x29dfb
jmp 0x1686a
leaq 0x135d1(%rip), %rax     # 0x29dfc
jmp 0x1686a
leaq 0x135cb(%rip), %rax     # 0x29dff
jmp 0x1686a
leaq 0x135c7(%rip), %rax     # 0x29e04
jmp 0x1686a
leaq 0x135bf(%rip), %rax     # 0x29e05
jmp 0x1686a
leaq 0x13589(%rip), %rax     # 0x29dd8
jmp 0x1686a
leaq 0x135b4(%rip), %rax     # 0x29e0c
jmp 0x1686a
leaq 0x135ac(%rip), %rax     # 0x29e0d
jmp 0x1686a
leaq 0x135a4(%rip), %rax     # 0x29e0e
leaq 0xa116(%rip), %rcx      # 0x20987
leaq 0xa114(%rip), %rdi      # 0x2098c
cmpb $0x0, (%rax)
cmovneq %rcx, %rdi
jmp 0x166cc