static RzList *get_sections_or_segment(RzBinObject *obj, bool is_segment) {
	RzList *res = rz_list_new();
	if (!res) {
		return NULL;
	}
	const RzList *all = rz_bin_object_get_sections_all(obj);
	RzListIter *it;
	RzBinSection *sec;
	rz_list_foreach (all, it, sec) {
		if (sec->is_segment == is_segment) {
			rz_list_append(res, sec);
		}
	}
	return res;
}
static RzList *get_sections_or_segment(RzBinObject *obj, bool is_segment) {
	RzList *res = rz_list_new();
	if (!res) {
		return NULL;
	}
	const RzList *all = rz_bin_object_get_sections_all(obj);
	RzListIter *it;
	RzBinSection *sec;
	rz_list_foreach (all, it, sec) {
		if (sec->is_segment == is_segment) {
			rz_list_append(res, sec);
		}
	}
	return res;
}