filename
stringlengths
3
9
code
stringlengths
4
1.05M
168803.c
/* * ACE/gredit - 2d finite element grid generation * * Paul J. Turner and Antonio M. Baptista * * Copyright 1990-2003 Oregon Health and Science University * All Rights Reserved. * */ /* * Set velocity scale, mapscale, etc. */ #ifndef lint static char RCSid[] = "$Id: scalewin.c,v 1.2 2003/07/24 15:44:05 pturner Exp $"; #endif #include <stdio.h> #include <stdlib.h> #include <math.h> #include "motifinc.h" #include "defines.h" #include "globals.h" extern Widget app_shell; extern XmStringCharSet charset; Widget annot_frame; Widget annot_panel; Widget vel_frame; Widget vel_panel; #define M 362 #define CM 317 #define MM 368 #define KM 350 int munits = KM; double munitfac = 1000.0; double mapx; double mapy; double maplen = 10000.0; int my_mapcolor = 1; extern int display_mapscale; static Widget mapscale_item; static Widget mapscale_length_item; static Widget *mapscale_color_item; static Widget *mapscale_font_item; static Widget *mapscale_units_item; static void update_scaling(void); static void vel_accept_proc(void); static void define_vplace_proc(void); void drawscale(void) { char buf[30]; if (maplen > 0.0) { sprintf(buf, "%lg", maplen / munitfac); drawmapscale(mapx, mapy, maplen, buf); } } void set_mapscale_loc(double wx, double wy) { mapx = wx; mapy = wy; } /* * Create the annot Frame and the annot Panel */ void create_vel_frame(void) { Widget wbut, rc; if (!vel_frame) { vel_frame = XmCreateDialogShell(app_shell, "Map Scale", NULL, 0); vel_panel = XmCreateRowColumn(vel_frame, "rc", NULL, 0); mapscale_length_item = CreateTextItem2(vel_panel, 15, "Mapscale legend length:"); mapscale_units_item = CreatePanelChoice1(vel_panel, "Mapscale legend units: ", 5, "mm", "cm", "m", "km", 0, 0); mapscale_font_item = CreatePanelChoice1(vel_panel, "Legend label font: ", 7, "0", "1", "2", "3", "4", "5", 0, 0); mapscale_color_item = CreateColorChoice(vel_panel, "Mapscale legend color: ", 1); mapscale_item = XtVaCreateManagedWidget("Display mapscale legend", xmToggleButtonWidgetClass, vel_panel, NULL); rc = XmCreateRowColumn(vel_panel, "rc", NULL, 0); XtVaSetValues(rc, XmNorientation, XmHORIZONTAL, XmNpacking, XmPACK_TIGHT, NULL); wbut = XtVaCreateManagedWidget("Accept", xmPushButtonWidgetClass, rc, NULL); XtAddCallback(wbut, XmNactivateCallback, (XtCallbackProc) vel_accept_proc, NULL); wbut = XtVaCreateManagedWidget("Place", xmPushButtonWidgetClass, rc, NULL); XtAddCallback(wbut, XmNactivateCallback, (XtCallbackProc) define_vplace_proc, NULL); wbut = XtVaCreateManagedWidget("Done", xmPushButtonWidgetClass, rc, NULL); XtAddCallback(wbut, XmNactivateCallback, (XtCallbackProc) destroy_dialog, vel_frame); XtManageChild(rc); XtManageChild(vel_panel); } update_scaling(); XtRaise(vel_frame); } static void define_vplace_proc(void) { set_action(0); set_action(PLACE_MAPSCALE); } static void update_scaling(void) { char buf[256]; extern int units, munits; if (vel_frame) { sprintf(buf, "%.2lf\n", maplen / munitfac); panel_setstr_value(mapscale_length_item, buf); XmToggleButtonSetState(mapscale_item, display_mapscale, False); SetChoice(mapscale_color_item, my_mapcolor); switch (munits) { case MM: SetChoice(mapscale_units_item, 0); break; case CM: SetChoice(mapscale_units_item, 1); break; case M: SetChoice(mapscale_units_item, 2); break; case KM: SetChoice(mapscale_units_item, 3); break; } } } static void vel_accept_proc(void) { char buf[256]; extern int units; extern double unitfac; int u; display_mapscale = XmToggleButtonGetState(mapscale_item) == True ? 1 : 0; my_mapcolor = GetChoice(mapscale_color_item); u = GetChoice(mapscale_units_item); switch (u) { case 0: munits = MM; munitfac = 0.001; break; case 1: munits = CM; munitfac = 0.01; break; case 2: munits = M; munitfac = 1.0; break; case 3: munits = KM; munitfac = 1000.0; break; } maplen = atof(XmTextGetString(mapscale_length_item)) * munitfac; }
30495.c
// SPDX-License-Identifier: MIT // Copyright (c) 2011-2013, Christopher Jeffrey // Copyright (c) 2013 Richard Grenville <[email protected]> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <xcb/composite.h> #include <xcb/damage.h> #include <xcb/render.h> #include <xcb/xcb.h> #include <xcb/xcb_renderutil.h> #include "backend/backend.h" #include "c2.h" #include "common.h" #include "compiler.h" #include "compton.h" #include "config.h" #include "log.h" #include "region.h" #include "render.h" #include "string_utils.h" #include "types.h" #include "utils.h" #include "x.h" #ifdef CONFIG_DBUS #include "dbus.h" #endif #ifdef CONFIG_OPENGL // TODO remove this include #include "opengl.h" #endif #include "win.h" #define OPAQUE 0xffffffff /// Generate a "return by value" function, from a function that returns the /// region via a region_t pointer argument. /// Function signature has to be (win *, region_t *) #define gen_by_val(fun) \ region_t fun##_by_val(const win *w) { \ region_t ret; \ pixman_region32_init(&ret); \ fun(w, &ret); \ return ret; \ } /** * Clear leader cache of all windows. */ static inline void clear_cache_win_leaders(session_t *ps) { for (win *w = ps->list; w; w = w->next) w->cache_leader = XCB_NONE; } static inline void wid_set_opacity_prop(session_t *ps, xcb_window_t wid, opacity_t val) { const uint32_t v = val; xcb_change_property(ps->c, XCB_PROP_MODE_REPLACE, wid, ps->atom_opacity, XCB_ATOM_CARDINAL, 32, 1, &v); } static inline void wid_rm_opacity_prop(session_t *ps, xcb_window_t wid) { xcb_delete_property(ps->c, wid, ps->atom_opacity); } /** * Run win_update_focused() on all windows with the same leader window. * * @param leader leader window ID */ static inline void group_update_focused(session_t *ps, xcb_window_t leader) { if (!leader) return; for (win *w = ps->list; w; w = w->next) { if (win_get_leader(ps, w) == leader && w->state != WSTATE_DESTROYING) win_update_focused(ps, w); } return; } /** * Return whether a window group is really focused. * * @param leader leader window ID * @return true if the window group is focused, false otherwise */ static inline bool group_is_focused(session_t *ps, xcb_window_t leader) { if (!leader) return false; for (win *w = ps->list; w; w = w->next) { if (win_get_leader(ps, w) == leader && w->state != WSTATE_DESTROYING && win_is_focused_real(ps, w)) return true; } return false; } /** * Get a rectangular region a window occupies, excluding shadow. */ static void win_get_region_local(const win *w, region_t *res) { pixman_region32_fini(res); pixman_region32_init_rect(res, 0, 0, w->widthb, w->heightb); } /** * Get a rectangular region a window occupies, excluding frame and shadow. */ void win_get_region_noframe_local(const win *w, region_t *res) { const margin_t extents = win_calc_frame_extents(w); int x = extents.left; int y = extents.top; int width = max_i(w->g.width - extents.left - extents.right, 0); int height = max_i(w->g.height - extents.top - extents.bottom, 0); pixman_region32_fini(res); if (width > 0 && height > 0) pixman_region32_init_rect(res, x, y, width, height); } gen_by_val(win_get_region_noframe_local); void win_get_region_frame_local(const win *w, region_t *res) { const margin_t extents = win_calc_frame_extents(w); pixman_region32_fini(res); pixman_region32_init_rects( res, (rect_t[]){ // top {.x1 = 0, .y1 = 0, .x2 = w->g.width, .y2 = extents.top}, // bottom {.x1 = 0, .y1 = w->g.height - extents.bottom, .x2 = w->g.width, .y2 = w->g.height}, // left {.x1 = 0, .y1 = 0, .x2 = extents.left, .y2 = w->g.height}, // right {.x1 = w->g.width - extents.right, .y1 = 0, .x2 = w->g.width, .y2 = w->g.height}, }, 4); // limit the frame region to inside the window region_t reg_win; pixman_region32_init_rect(&reg_win, 0, 0, w->g.width, w->g.height); pixman_region32_intersect(res, &reg_win, res); pixman_region32_fini(&reg_win); } gen_by_val(win_get_region_frame_local); /** * Add a window to damaged area. * * @param ps current session * @param w struct _win element representing the window */ void add_damage_from_win(session_t *ps, win *w) { // XXX there was a cached extents region, investigate // if that's better region_t extents; pixman_region32_init(&extents); win_extents(w, &extents); add_damage(ps, &extents); pixman_region32_fini(&extents); } /// Release the images attached to this window void win_release_image(backend_t *base, win *w) { assert(w->win_image || (w->flags & WIN_FLAGS_IMAGE_ERROR)); if (w->win_image) { base->ops->release_image(base, w->win_image); w->win_image = NULL; } if (w->shadow) { assert(w->shadow_image || (w->flags & WIN_FLAGS_IMAGE_ERROR)); if (w->shadow_image) { base->ops->release_image(base, w->shadow_image); w->shadow_image = NULL; } } } static inline bool _win_bind_image(session_t *ps, win *w, void **win_image, void **shadow_image) { auto pixmap = xcb_generate_id(ps->c); auto e = xcb_request_check( ps->c, xcb_composite_name_window_pixmap_checked(ps->c, w->id, pixmap)); if (e) { log_error("Failed to get named pixmap for window %#010x(%s)", w->id, w->name); free(e); return false; } log_trace("New named pixmap %#010x", pixmap); *win_image = ps->backend_data->ops->bind_pixmap( ps->backend_data, pixmap, x_get_visual_info(ps->c, w->a.visual), true); if (!*win_image) { return false; } if (w->shadow) { *shadow_image = ps->backend_data->ops->render_shadow( ps->backend_data, w->widthb, w->heightb, ps->gaussian_map, ps->o.shadow_red, ps->o.shadow_green, ps->o.shadow_blue, ps->o.shadow_opacity); if (!*shadow_image) { log_error("Failed to bind shadow image"); ps->backend_data->ops->release_image(ps->backend_data, *win_image); *win_image = NULL; return false; } } return true; } bool win_bind_image(session_t *ps, win *w) { assert(!w->win_image && !w->shadow_image); return _win_bind_image(ps, w, &w->win_image, &w->shadow_image); } bool win_try_rebind_image(session_t *ps, win *w) { log_trace("Freeing old window image"); // Must release first, otherwise breaks NVIDIA driver win_release_image(ps->backend_data, w); return win_bind_image(ps, w); } /** * Check if a window has rounded corners. * XXX This is really dumb */ static bool attr_pure win_has_rounded_corners(const win *w) { if (!w->bounding_shaped) { return false; } // Quit if border_size() returns XCB_NONE if (!pixman_region32_not_empty((region_t *)&w->bounding_shape)) { return false; } // Determine the minimum width/height of a rectangle that could mark // a window as having rounded corners unsigned short minwidth = max_i(w->widthb * (1 - ROUNDED_PERCENT), w->widthb - ROUNDED_PIXELS); unsigned short minheight = max_i(w->heightb * (1 - ROUNDED_PERCENT), w->heightb - ROUNDED_PIXELS); // Get the rectangles in the bounding region int nrects = 0; const rect_t *rects = pixman_region32_rectangles((region_t *)&w->bounding_shape, &nrects); // Look for a rectangle large enough for this window be considered // having rounded corners for (int i = 0; i < nrects; ++i) { if (rects[i].x2 - rects[i].x1 >= minwidth && rects[i].y2 - rects[i].y1 >= minheight) { return true; } } return false; } int win_get_name(session_t *ps, win *w) { XTextProperty text_prop = {NULL, XCB_NONE, 0, 0}; char **strlst = NULL; int nstr = 0; if (!w->client_win) return 0; if (!(wid_get_text_prop(ps, w->client_win, ps->atom_name_ewmh, &strlst, &nstr))) { log_trace("(%#010x): _NET_WM_NAME unset, falling back to WM_NAME.", w->client_win); if (!(XGetWMName(ps->dpy, w->client_win, &text_prop) && text_prop.value)) { return -1; } if (Success != XmbTextPropertyToTextList(ps->dpy, &text_prop, &strlst, &nstr) || !nstr || !strlst) { if (strlst) XFreeStringList(strlst); cxfree(text_prop.value); return -1; } cxfree(text_prop.value); } int ret = 0; if (!w->name || strcmp(w->name, strlst[0]) != 0) { ret = 1; free(w->name); w->name = strdup(strlst[0]); } XFreeStringList(strlst); log_trace("(%#010x): client = %#010x, name = \"%s\", " "ret = %d", w->id, w->client_win, w->name, ret); return ret; } int win_get_role(session_t *ps, win *w) { char **strlst = NULL; int nstr = 0; if (!wid_get_text_prop(ps, w->client_win, ps->atom_role, &strlst, &nstr)) return -1; int ret = 0; if (!w->role || strcmp(w->role, strlst[0]) != 0) { ret = 1; free(w->role); w->role = strdup(strlst[0]); } XFreeStringList(strlst); log_trace("(%#010x): client = %#010x, role = \"%s\", " "ret = %d", w->id, w->client_win, w->role, ret); return ret; } /** * Check if a window is bounding-shaped. */ static inline bool win_bounding_shaped(const session_t *ps, xcb_window_t wid) { if (ps->shape_exists) { xcb_shape_query_extents_reply_t *reply; Bool bounding_shaped; reply = xcb_shape_query_extents_reply( ps->c, xcb_shape_query_extents(ps->c, wid), NULL); bounding_shaped = reply && reply->bounding_shaped; free(reply); return bounding_shaped; } return false; } static wintype_t wid_get_prop_wintype(session_t *ps, xcb_window_t wid) { winprop_t prop = wid_get_prop(ps, wid, ps->atom_win_type, 32L, XCB_ATOM_ATOM, 32); for (unsigned i = 0; i < prop.nitems; ++i) { for (wintype_t j = 1; j < NUM_WINTYPES; ++j) { if (ps->atoms_wintypes[j] == (xcb_atom_t)prop.p32[i]) { free_winprop(&prop); return j; } } } free_winprop(&prop); return WINTYPE_UNKNOWN; } static bool wid_get_opacity_prop(session_t *ps, xcb_window_t wid, opacity_t def, opacity_t *out) { bool ret = false; *out = def; winprop_t prop = wid_get_prop(ps, wid, ps->atom_opacity, 1L, XCB_ATOM_CARDINAL, 32); if (prop.nitems) { *out = *prop.c32; ret = true; } free_winprop(&prop); return ret; } // XXX should distinguish between frame has alpha and window body has alpha bool win_has_alpha(const win *w) { return w->pictfmt && w->pictfmt->type == XCB_RENDER_PICT_TYPE_DIRECT && w->pictfmt->direct.alpha_mask; } winmode_t win_calc_mode(const win *w) { if (win_has_alpha(w) || w->opacity < 1.0) { return WMODE_TRANS; } if (w->frame_opacity != 1.0) { return WMODE_FRAME_TRANS; } return WMODE_SOLID; } /** * Calculate and return the opacity target of a window. * * If window is inactive and inactive_opacity_override is set, the * priority is: (Simulates the old behavior) * * inactive_opacity > _NET_WM_WINDOW_OPACITY (if not opaque) * > window type default opacity * * Otherwise: * * _NET_WM_WINDOW_OPACITY (if not opaque) * > window type default opacity (if not opaque) * > inactive_opacity * * @param ps current session * @param w struct _win object representing the window * * @return target opacity */ double win_calc_opacity_target(session_t *ps, const win *w) { double opacity = 1; if (w->state == WSTATE_UNMAPPED) { // be consistent return 0; } if (w->state == WSTATE_UNMAPPING || w->state == WSTATE_DESTROYING) { return 0; } // Try obeying opacity property and window type opacity firstly if (w->has_opacity_prop) { opacity = ((double)w->opacity_prop) / OPAQUE; } else if (!safe_isnan(ps->o.wintype_option[w->window_type].opacity)) { opacity = ps->o.wintype_option[w->window_type].opacity; } else { // Respect active_opacity only when the window is physically focused if (win_is_focused_real(ps, w)) opacity = ps->o.active_opacity; else if (!w->focused) // Respect inactive_opacity in some cases opacity = ps->o.inactive_opacity; } // respect inactive override if (ps->o.inactive_opacity_override && !w->focused) opacity = ps->o.inactive_opacity; return opacity; } /** * Determine whether a window is to be dimmed. */ bool win_should_dim(session_t *ps, const win *w) { // Make sure we do nothing if the window is unmapped / being destroyed if (w->state == WSTATE_UNMAPPED) { return false; } if (ps->o.inactive_dim && !(w->focused)) { return true; } else { return false; } } /** * Determine if a window should fade on opacity change. */ bool win_should_fade(session_t *ps, const win *w) { // To prevent it from being overwritten by last-paint value if the window is if (w->fade_force != UNSET) { return w->fade_force; } if (ps->o.no_fading_openclose && w->in_openclose) { return false; } if (ps->o.no_fading_destroyed_argb && w->state == WSTATE_DESTROYING && win_has_alpha(w) && w->client_win && w->client_win != w->id) { // deprecated return false; } // Ignore other possible causes of fading state changes after window // gets unmapped // if (w->a.map_state != XCB_MAP_STATE_VIEWABLE) { //} if (c2_match(ps, w, ps->o.fade_blacklist, NULL)) { return false; } return ps->o.wintype_option[w->window_type].fade; } /** * Reread _COMPTON_SHADOW property from a window. * * The property must be set on the outermost window, usually the WM frame. */ void win_update_prop_shadow_raw(session_t *ps, win *w) { winprop_t prop = wid_get_prop(ps, w->id, ps->atom_compton_shadow, 1, XCB_ATOM_CARDINAL, 32); if (!prop.nitems) { w->prop_shadow = -1; } else { w->prop_shadow = *prop.c32; } free_winprop(&prop); } /** * Reread _COMPTON_SHADOW property from a window and update related * things. */ void win_update_prop_shadow(session_t *ps, win *w) { long attr_shadow_old = w->prop_shadow; win_update_prop_shadow_raw(ps, w); if (w->prop_shadow != attr_shadow_old) win_determine_shadow(ps, w); } void win_set_shadow(session_t *ps, win *w, bool shadow_new) { if (w->shadow == shadow_new) return; region_t extents; pixman_region32_init(&extents); win_extents(w, &extents); w->shadow = shadow_new; // Window extents need update on shadow state change // Shadow geometry currently doesn't change on shadow state change // calc_shadow_geometry(ps, w); // Mark the old extents as damaged if the shadow is removed if (!w->shadow) add_damage(ps, &extents); pixman_region32_clear(&extents); // Mark the new extents as damaged if the shadow is added if (w->shadow) { win_extents(w, &extents); add_damage_from_win(ps, w); } pixman_region32_fini(&extents); } /** * Determine if a window should have shadow, and update things depending * on shadow state. */ void win_determine_shadow(session_t *ps, win *w) { bool shadow_new = w->shadow; if (UNSET != w->shadow_force) shadow_new = w->shadow_force; else if (w->a.map_state == XCB_MAP_STATE_VIEWABLE) shadow_new = (ps->o.wintype_option[w->window_type].shadow && !c2_match(ps, w, ps->o.shadow_blacklist, NULL) && !(ps->o.shadow_ignore_shaped && w->bounding_shaped && !w->rounded_corners) && !(ps->o.respect_prop_shadow && 0 == w->prop_shadow)); win_set_shadow(ps, w, shadow_new); } void win_set_invert_color(session_t *ps, win *w, bool invert_color_new) { if (w->invert_color == invert_color_new) return; w->invert_color = invert_color_new; add_damage_from_win(ps, w); } /** * Determine if a window should have color inverted. */ void win_determine_invert_color(session_t *ps, win *w) { bool invert_color_new = w->invert_color; if (UNSET != w->invert_color_force) invert_color_new = w->invert_color_force; else if (w->a.map_state == XCB_MAP_STATE_VIEWABLE) invert_color_new = c2_match(ps, w, ps->o.invert_color_list, NULL); win_set_invert_color(ps, w, invert_color_new); } void win_set_blur_background(session_t *ps, win *w, bool blur_background_new) { if (w->blur_background == blur_background_new) return; w->blur_background = blur_background_new; // Only consider window damaged if it's previously painted with background // blurred if (!win_is_solid(ps, w) || (ps->o.blur_background_frame && w->frame_opacity != 1)) add_damage_from_win(ps, w); } /** * Determine if a window should have background blurred. */ void win_determine_blur_background(session_t *ps, win *w) { if (w->a.map_state != XCB_MAP_STATE_VIEWABLE) return; bool blur_background_new = ps->o.blur_background && !c2_match(ps, w, ps->o.blur_background_blacklist, NULL); win_set_blur_background(ps, w, blur_background_new); } /** * Update window opacity according to opacity rules. * * TODO This override the window's opacity property, may not be * a good idea. */ void win_update_opacity_rule(session_t *ps, win *w) { if (w->a.map_state != XCB_MAP_STATE_VIEWABLE) return; double opacity = 1.0; bool is_set = false; void *val = NULL; if (c2_match(ps, w, ps->o.opacity_rules, &val)) { opacity = ((double)(long)val) / 100.0; is_set = true; } if (is_set == w->opacity_is_set && opacity == w->opacity_set) return; w->opacity_set = opacity; w->opacity_is_set = is_set; if (!is_set) wid_rm_opacity_prop(ps, w->id); else wid_set_opacity_prop(ps, w->id, opacity * OPAQUE); } /** * Function to be called on window type changes. */ void win_on_wtype_change(session_t *ps, win *w) { win_determine_shadow(ps, w); win_update_focused(ps, w); if (ps->o.invert_color_list) win_determine_invert_color(ps, w); if (ps->o.opacity_rules) win_update_opacity_rule(ps, w); } /** * Function to be called on window data changes. * * TODO need better name */ void win_on_factor_change(session_t *ps, win *w) { if (ps->o.shadow_blacklist) win_determine_shadow(ps, w); if (ps->o.invert_color_list) win_determine_invert_color(ps, w); if (ps->o.focus_blacklist) win_update_focused(ps, w); if (ps->o.blur_background_blacklist) win_determine_blur_background(ps, w); if (ps->o.opacity_rules) win_update_opacity_rule(ps, w); if (w->a.map_state == XCB_MAP_STATE_VIEWABLE && ps->o.paint_blacklist) w->paint_excluded = c2_match(ps, w, ps->o.paint_blacklist, NULL); if (w->a.map_state == XCB_MAP_STATE_VIEWABLE && ps->o.unredir_if_possible_blacklist) w->unredir_if_possible_excluded = c2_match(ps, w, ps->o.unredir_if_possible_blacklist, NULL); w->reg_ignore_valid = false; } /** * Update cache data in struct _win that depends on window size. */ void win_on_win_size_change(session_t *ps, win *w) { w->widthb = w->g.width + w->g.border_width * 2; w->heightb = w->g.height + w->g.border_width * 2; w->shadow_dx = ps->o.shadow_offset_x; w->shadow_dy = ps->o.shadow_offset_y; w->shadow_width = w->widthb + ps->o.shadow_radius * 2; w->shadow_height = w->heightb + ps->o.shadow_radius * 2; // Invalidate the shadow we built if (ps->o.experimental_backends && ps->redirected) { if (w->state == WSTATE_MAPPED || w->state == WSTATE_MAPPING || w->state == WSTATE_FADING) { w->flags |= WIN_FLAGS_STALE_IMAGE; } else { assert(w->state == WSTATE_UNMAPPED); } } else { free_paint(ps, &w->shadow_paint); } } /** * Update window type. */ void win_update_wintype(session_t *ps, win *w) { const wintype_t wtype_old = w->window_type; // Detect window type here w->window_type = wid_get_prop_wintype(ps, w->client_win); // Conform to EWMH standard, if _NET_WM_WINDOW_TYPE is not present, take // override-redirect windows or windows without WM_TRANSIENT_FOR as // _NET_WM_WINDOW_TYPE_NORMAL, otherwise as _NET_WM_WINDOW_TYPE_DIALOG. if (WINTYPE_UNKNOWN == w->window_type) { if (w->a.override_redirect || !wid_has_prop(ps, w->client_win, ps->atom_transient)) w->window_type = WINTYPE_NORMAL; else w->window_type = WINTYPE_DIALOG; } if (w->window_type != wtype_old) win_on_wtype_change(ps, w); } /** * Mark a window as the client window of another. * * @param ps current session * @param w struct _win of the parent window * @param client window ID of the client window */ void win_mark_client(session_t *ps, win *w, xcb_window_t client) { w->client_win = client; // If the window isn't mapped yet, stop here, as the function will be // called in map_win() if (w->a.map_state != XCB_MAP_STATE_VIEWABLE) return; auto e = xcb_request_check( ps->c, xcb_change_window_attributes( ps->c, client, XCB_CW_EVENT_MASK, (const uint32_t[]){determine_evmask(ps, client, WIN_EVMODE_CLIENT)})); if (e) { log_error("Failed to change event mask of window %#010x", client); free(e); } win_update_wintype(ps, w); // Get frame widths. The window is in damaged area already. if (ps->o.frame_opacity != 1) win_update_frame_extents(ps, w, client); // Get window group if (ps->o.track_leader) win_update_leader(ps, w); // Get window name and class if we are tracking them if (ps->o.track_wdata) { win_get_name(ps, w); win_get_class(ps, w); win_get_role(ps, w); } // Update everything related to conditions win_on_factor_change(ps, w); // Update window focus state win_update_focused(ps, w); } /** * Unmark current client window of a window. * * @param ps current session * @param w struct _win of the parent window */ void win_unmark_client(session_t *ps, win *w) { xcb_window_t client = w->client_win; w->client_win = XCB_NONE; // Recheck event mask xcb_change_window_attributes( ps->c, client, XCB_CW_EVENT_MASK, (const uint32_t[]){determine_evmask(ps, client, WIN_EVMODE_UNKNOWN)}); } /** * Recheck client window of a window. * * @param ps current session * @param w struct _win of the parent window */ void win_recheck_client(session_t *ps, win *w) { // Initialize wmwin to false w->wmwin = false; // Look for the client window // Always recursively look for a window with WM_STATE, as Fluxbox // sets override-redirect flags on all frame windows. xcb_window_t cw = find_client_win(ps, w->id); if (cw) log_trace("(%#010x): client %#010x", w->id, cw); // Set a window's client window to itself if we couldn't find a // client window if (!cw) { cw = w->id; w->wmwin = !w->a.override_redirect; log_trace("(%#010x): client self (%s)", w->id, (w->wmwin ? "wmwin" : "override-redirected")); } // Unmark the old one if (w->client_win && w->client_win != cw) win_unmark_client(ps, w); // Mark the new one win_mark_client(ps, w, cw); } /** * Free all resources in a <code>struct _win</code>. */ void free_win_res(session_t *ps, win *w) { // No need to call backend release_image here because // finish_unmap_win should've done that for us. // XXX unless we are called by session_destroy // assert(w->win_data == NULL); free_win_res_glx(ps, w); free_paint(ps, &w->paint); free_paint(ps, &w->shadow_paint); // Above should be done during unmapping // Except when we are called by session_destroy pixman_region32_fini(&w->bounding_shape); // BadDamage may be thrown if the window is destroyed set_ignore_cookie(ps, xcb_damage_destroy(ps->c, w->damage)); rc_region_unref(&w->reg_ignore); free(w->name); free(w->class_instance); free(w->class_general); free(w->role); } // TODO: probably split into win_new (in win.c) and add_win (in compton.c) void add_win(session_t *ps, xcb_window_t id, xcb_window_t prev) { static const win win_def = { // No need to initialize. (or, you can think that // they are initialized right here). // The following ones are updated during paint or paint preprocess .shadow_opacity = 0.0, .to_paint = false, .frame_opacity = 1.0, .dim = false, .invert_color = false, .blur_background = false, .reg_ignore = NULL, // The following ones are updated for other reasons .pixmap_damaged = false, // updated by damage events .state = WSTATE_UNMAPPED, // updated by window state changes .in_openclose = true, // set to false after first map is done, // true here because window is just created .queue_configure = {}, // same as above .reg_ignore_valid = false, // set to true when damaged .flags = 0, // updated by property/attributes/etc change // Runtime variables, updated by dbus .fade_force = UNSET, .shadow_force = UNSET, .focused_force = UNSET, .invert_color_force = UNSET, // Initialized in this function .next = NULL, .id = XCB_NONE, .a = {0}, .pictfmt = NULL, .widthb = 0, .heightb = 0, .shadow_dx = 0, .shadow_dy = 0, .shadow_width = 0, .shadow_height = 0, .damage = XCB_NONE, // Not initialized until mapped, this variables // have no meaning or have no use until the window // is mapped .win_image = NULL, .shadow_image = NULL, .prev_trans = NULL, .shadow = false, .xinerama_scr = -1, .mode = WMODE_TRANS, .ever_damaged = false, .client_win = XCB_NONE, .leader = XCB_NONE, .cache_leader = XCB_NONE, .window_type = WINTYPE_UNKNOWN, .wmwin = false, .focused = false, .opacity = 0, .opacity_tgt = 0, .has_opacity_prop = false, .opacity_prop = OPAQUE, .opacity_is_set = false, .opacity_set = 1, .frame_extents = MARGIN_INIT, // in win_mark_client .bounding_shaped = false, .bounding_shape = {0}, .rounded_corners = false, .paint_excluded = false, .unredir_if_possible_excluded = false, .prop_shadow = -1, // following 4 are set in win_mark_client .name = NULL, .class_instance = NULL, .class_general = NULL, .role = NULL, // Initialized during paint .paint = PAINT_INIT, .shadow_paint = PAINT_INIT, }; // Reject overlay window and already added windows if (id == ps->overlay) { return; } auto duplicated_win = find_win(ps, id); if (duplicated_win) { log_debug("Window %#010x (recorded name: %s) added multiple times", id, duplicated_win->name); return; } log_debug("Adding window %#010x, prev %#010x", id, prev); xcb_get_window_attributes_cookie_t acookie = xcb_get_window_attributes(ps->c, id); xcb_get_window_attributes_reply_t *a = xcb_get_window_attributes_reply(ps->c, acookie, NULL); if (!a || a->map_state == XCB_MAP_STATE_UNVIEWABLE) { // Failed to get window attributes or geometry probably means // the window is gone already. Unviewable means the window is // already reparented elsewhere. // BTW, we don't care about Input Only windows, except for stacking // proposes, so we need to keep track of them still. free(a); return; } // Allocate and initialize the new win structure auto new = cmalloc(win); // Fill structure // We only need to initialize the part that are not initialized // by map_win *new = win_def; new->id = id; new->a = *a; pixman_region32_init(&new->bounding_shape); free(a); // Create Damage for window (if not Input Only) if (new->a._class != XCB_WINDOW_CLASS_INPUT_ONLY) { new->damage = xcb_generate_id(ps->c); xcb_generic_error_t *e = xcb_request_check( ps->c, xcb_damage_create_checked(ps->c, new->damage, id, XCB_DAMAGE_REPORT_LEVEL_NON_EMPTY)); if (e) { free(e); free(new); return; } new->pictfmt = x_get_pictform_for_visual(ps->c, new->a.visual); } // Find window insertion point win **p = NULL; if (prev) { for (p = &ps->list; *p; p = &(*p)->next) { if ((*p)->id == prev && (*p)->state != WSTATE_DESTROYING) break; } } else { p = &ps->list; } new->next = *p; *p = new; #ifdef CONFIG_DBUS // Send D-Bus signal if (ps->o.dbus) { cdbus_ev_win_added(ps, new); } #endif return; } /** * Update focused state of a window. */ void win_update_focused(session_t *ps, win *w) { if (UNSET != w->focused_force) { w->focused = w->focused_force; } else { w->focused = win_is_focused_real(ps, w); // Use wintype_focus, and treat WM windows and override-redirected // windows specially if (ps->o.wintype_option[w->window_type].focus || (ps->o.mark_wmwin_focused && w->wmwin) || (ps->o.mark_ovredir_focused && w->id == w->client_win && !w->wmwin) || (w->a.map_state == XCB_MAP_STATE_VIEWABLE && c2_match(ps, w, ps->o.focus_blacklist, NULL))) w->focused = true; // If window grouping detection is enabled, mark the window active if // its group is if (ps->o.track_leader && ps->active_leader && win_get_leader(ps, w) == ps->active_leader) { w->focused = true; } } // Always recalculate the window target opacity, since some opacity-related // options depend on the output value of win_is_focused_real() instead of // w->focused double opacity_tgt_old = w->opacity_tgt; w->opacity_tgt = win_calc_opacity_target(ps, w); if (opacity_tgt_old != w->opacity_tgt && w->state == WSTATE_MAPPED) { // Only MAPPED can transition to FADING assert(w->state != WSTATE_DESTROYING && w->state != WSTATE_UNMAPPING && w->state != WSTATE_UNMAPPED); w->state = WSTATE_FADING; } } /** * Set leader of a window. */ static inline void win_set_leader(session_t *ps, win *w, xcb_window_t nleader) { // If the leader changes if (w->leader != nleader) { xcb_window_t cache_leader_old = win_get_leader(ps, w); w->leader = nleader; // Forcefully do this to deal with the case when a child window // gets mapped before parent, or when the window is a waypoint clear_cache_win_leaders(ps); // Update the old and new window group and active_leader if the window // could affect their state. xcb_window_t cache_leader = win_get_leader(ps, w); if (win_is_focused_real(ps, w) && cache_leader_old != cache_leader) { ps->active_leader = cache_leader; group_update_focused(ps, cache_leader_old); group_update_focused(ps, cache_leader); } // Otherwise, at most the window itself is affected else { win_update_focused(ps, w); } // Update everything related to conditions win_on_factor_change(ps, w); } } /** * Update leader of a window. */ void win_update_leader(session_t *ps, win *w) { xcb_window_t leader = XCB_NONE; // Read the leader properties if (ps->o.detect_transient && !leader) leader = wid_get_prop_window(ps, w->client_win, ps->atom_transient); if (ps->o.detect_client_leader && !leader) leader = wid_get_prop_window(ps, w->client_win, ps->atom_client_leader); win_set_leader(ps, w, leader); log_trace("(%#010x): client %#010x, leader %#010x, cache %#010x", w->id, w->client_win, w->leader, win_get_leader(ps, w)); } /** * Internal function of win_get_leader(). */ xcb_window_t win_get_leader_raw(session_t *ps, win *w, int recursions) { // Rebuild the cache if needed if (!w->cache_leader && (w->client_win || w->leader)) { // Leader defaults to client window if (!(w->cache_leader = w->leader)) w->cache_leader = w->client_win; // If the leader of this window isn't itself, look for its ancestors if (w->cache_leader && w->cache_leader != w->client_win) { win *wp = find_toplevel(ps, w->cache_leader); if (wp) { // Dead loop? if (recursions > WIN_GET_LEADER_MAX_RECURSION) return XCB_NONE; w->cache_leader = win_get_leader_raw(ps, wp, recursions + 1); } } } return w->cache_leader; } /** * Retrieve the <code>WM_CLASS</code> of a window and update its * <code>win</code> structure. */ bool win_get_class(session_t *ps, win *w) { char **strlst = NULL; int nstr = 0; // Can't do anything if there's no client window if (!w->client_win) return false; // Free and reset old strings free(w->class_instance); free(w->class_general); w->class_instance = NULL; w->class_general = NULL; // Retrieve the property string list if (!wid_get_text_prop(ps, w->client_win, ps->atom_class, &strlst, &nstr)) return false; // Copy the strings if successful w->class_instance = strdup(strlst[0]); if (nstr > 1) w->class_general = strdup(strlst[1]); XFreeStringList(strlst); log_trace("(%#010x): client = %#010x, " "instance = \"%s\", general = \"%s\"", w->id, w->client_win, w->class_instance, w->class_general); return true; } /** * Handle window focus change. */ static void win_on_focus_change(session_t *ps, win *w) { // If window grouping detection is enabled if (ps->o.track_leader) { xcb_window_t leader = win_get_leader(ps, w); // If the window gets focused, replace the old active_leader if (win_is_focused_real(ps, w) && leader != ps->active_leader) { xcb_window_t active_leader_old = ps->active_leader; ps->active_leader = leader; group_update_focused(ps, active_leader_old); group_update_focused(ps, leader); } // If the group get unfocused, remove it from active_leader else if (!win_is_focused_real(ps, w) && leader && leader == ps->active_leader && !group_is_focused(ps, leader)) { ps->active_leader = XCB_NONE; group_update_focused(ps, leader); } // The window itself must be updated anyway win_update_focused(ps, w); } // Otherwise, only update the window itself else { win_update_focused(ps, w); } // Update everything related to conditions win_on_factor_change(ps, w); #ifdef CONFIG_DBUS // Send D-Bus signal if (ps->o.dbus) { if (win_is_focused_real(ps, w)) cdbus_ev_win_focusin(ps, w); else cdbus_ev_win_focusout(ps, w); } #endif } /** * Set real focused state of a window. */ void win_set_focused(session_t *ps, win *w, bool focused) { // Unmapped windows will have their focused state reset on map if (w->a.map_state == XCB_MAP_STATE_UNMAPPED) return; if (win_is_focused_real(ps, w) == focused) return; if (focused) { if (ps->active_win) win_set_focused(ps, ps->active_win, false); ps->active_win = w; } else if (w == ps->active_win) ps->active_win = NULL; assert(win_is_focused_real(ps, w) == focused); win_on_focus_change(ps, w); } /** * Get a rectangular region a window (and possibly its shadow) occupies. * * Note w->shadow and shadow geometry must be correct before calling this * function. */ void win_extents(const win *w, region_t *res) { pixman_region32_clear(res); pixman_region32_union_rect(res, res, w->g.x, w->g.y, w->widthb, w->heightb); if (w->shadow) pixman_region32_union_rect(res, res, w->g.x + w->shadow_dx, w->g.y + w->shadow_dy, w->shadow_width, w->shadow_height); } gen_by_val(win_extents); /** * Update the out-dated bounding shape of a window. * * Mark the window shape as updated */ void win_update_bounding_shape(session_t *ps, win *w) { if (ps->shape_exists) w->bounding_shaped = win_bounding_shaped(ps, w->id); pixman_region32_clear(&w->bounding_shape); // Start with the window rectangular region win_get_region_local(w, &w->bounding_shape); // Only request for a bounding region if the window is shaped // (while loop is used to avoid goto, not an actual loop) while (w->bounding_shaped) { /* * if window doesn't exist anymore, this will generate an error * as well as not generate a region. */ xcb_shape_get_rectangles_reply_t *r = xcb_shape_get_rectangles_reply( ps->c, xcb_shape_get_rectangles(ps->c, w->id, XCB_SHAPE_SK_BOUNDING), NULL); if (!r) break; xcb_rectangle_t *xrects = xcb_shape_get_rectangles_rectangles(r); int nrects = xcb_shape_get_rectangles_rectangles_length(r); rect_t *rects = from_x_rects(nrects, xrects); free(r); region_t br; pixman_region32_init_rects(&br, rects, nrects); free(rects); // Add border width because we are using a different origin. // X thinks the top left of the inner window is the origin // (for the bounding shape, althought xcb_get_geometry thinks // the outer top left (outer means outside of the window // border) is the origin), // We think the top left of the border is the origin pixman_region32_translate(&br, w->g.border_width, w->g.border_width); // Intersect the bounding region we got with the window rectangle, to // make sure the bounding region is not bigger than the window // rectangle pixman_region32_intersect(&w->bounding_shape, &w->bounding_shape, &br); pixman_region32_fini(&br); break; } if (w->bounding_shaped && ps->o.detect_rounded_corners) { w->rounded_corners = win_has_rounded_corners(w); } // Window shape changed, we should free old wpaint and shadow pict if (ps->o.experimental_backends) { // log_trace("free out dated pict"); // Window shape changed, we should free win_data if (ps->redirected && w->state != WSTATE_UNMAPPED) { // Note we only do this when screen is redirected, because // otherwise win_data is not valid assert(w->state != WSTATE_UNMAPPING && w->state != WSTATE_DESTROYING); w->flags |= WIN_FLAGS_STALE_IMAGE; } } else { free_paint(ps, &w->paint); free_paint(ps, &w->shadow_paint); } win_on_factor_change(ps, w); } /** * Reread opacity property of a window. */ void win_update_opacity_prop(session_t *ps, win *w) { // get frame opacity first w->has_opacity_prop = wid_get_opacity_prop(ps, w->id, OPAQUE, &w->opacity_prop); if (w->has_opacity_prop) // opacity found return; if (ps->o.detect_client_opacity && w->client_win && w->id == w->client_win) // checking client opacity not allowed return; // get client opacity w->has_opacity_prop = wid_get_opacity_prop(ps, w->client_win, OPAQUE, &w->opacity_prop); } /** * Retrieve frame extents from a window. */ void win_update_frame_extents(session_t *ps, win *w, xcb_window_t client) { winprop_t prop = wid_get_prop(ps, client, ps->atom_frame_extents, 4L, XCB_ATOM_CARDINAL, 32); if (prop.nitems == 4) { const uint32_t *const extents = prop.c32; const bool changed = w->frame_extents.left != extents[0] || w->frame_extents.right != extents[1] || w->frame_extents.top != extents[2] || w->frame_extents.bottom != extents[3]; w->frame_extents.left = extents[0]; w->frame_extents.right = extents[1]; w->frame_extents.top = extents[2]; w->frame_extents.bottom = extents[3]; // If frame_opacity != 1, then frame of this window // is not included in reg_ignore of underneath windows if (ps->o.frame_opacity == 1 && changed) w->reg_ignore_valid = false; } log_trace("(%#010x): %d, %d, %d, %d", w->id, w->frame_extents.left, w->frame_extents.right, w->frame_extents.top, w->frame_extents.bottom); free_winprop(&prop); } bool win_is_region_ignore_valid(session_t *ps, const win *w) { for (win *i = ps->list; w; w = w->next) { if (i == w) break; if (!i->reg_ignore_valid) return false; } return true; } /** * Stop listening for events on a particular window. */ void win_ev_stop(session_t *ps, const win *w) { xcb_change_window_attributes(ps->c, w->id, XCB_CW_EVENT_MASK, (const uint32_t[]){0}); if (w->client_win) { xcb_change_window_attributes(ps->c, w->client_win, XCB_CW_EVENT_MASK, (const uint32_t[]){0}); } if (ps->shape_exists) { xcb_shape_select_input(ps->c, w->id, 0); } } static void finish_unmap_win(session_t *ps, win **_w) { win *w = *_w; w->ever_damaged = false; w->reg_ignore_valid = false; w->state = WSTATE_UNMAPPED; if (ps->o.experimental_backends) { // We are in unmap_win, we definitely was viewable if (ps->redirected) { win_release_image(ps->backend_data, w); } } else { free_paint(ps, &w->paint); free_paint(ps, &w->shadow_paint); } w->flags = 0; } static void finish_destroy_win(session_t *ps, win **_w) { win *w = *_w; win **prev = NULL; if (w->state != WSTATE_UNMAPPED) { // Only UNMAPPED state has window resources freed, otherwise // we need to call finish_unmap_win to free them. finish_unmap_win(ps, _w); } // Invalidate reg_ignore of windows below this one // TODO what if w->next is not mapped?? // TODO seriously figure out how reg_ignore behaves. // I think if `w` is unmapped, and destroyed after // paint happened at least once, w->reg_ignore_valid would // be true, and there is no need to invalid w->next->reg_ignore // when w is destroyed. if (w->next) { // should be `= w->reg_ignore_valid && w->next->reg_ignore_valid`, // but keep it this way until we think about reg_ignore. w->next->reg_ignore_valid = false; } log_trace("Trying to destroy (%#010x)", w->id); for (prev = &ps->list; *prev; prev = &(*prev)->next) { if (w == *prev) { log_trace("Found (%#010x \"%s\")", w->id, w->name); *prev = w->next; if (w == ps->active_win) { ps->active_win = NULL; } free_win_res(ps, w); // Drop w from all prev_trans to avoid accessing freed memory in // repair_win() // TODO there can only be one prev_trans pointing to w for (win *w2 = ps->list; w2; w2 = w2->next) { if (w == w2->prev_trans) { w2->prev_trans = NULL; } } free(w); *_w = NULL; return; } } log_warn("Destroyed window is not in window list"); assert(false); } static void finish_map_win(session_t *ps, win **_w) { win *w = *_w; w->in_openclose = false; w->state = WSTATE_MAPPED; } void unmap_win(session_t *ps, win **_w, bool destroy) { win *w = *_w; winstate_t target_state = destroy ? WSTATE_DESTROYING : WSTATE_UNMAPPING; if (unlikely(!w)) { return; } if (!destroy && w->a._class == XCB_WINDOW_CLASS_INPUT_ONLY) { // We don't care about mapping / unmapping of Input Only windows. // But we need to remember to destroy them, so future window with // the same id won't be handled incorrectly. // Issue #119 was caused by this. return; } log_trace("Unmapping %#010x \"%s\", destroy = %d", w->id, (w ? w->name : NULL), destroy); if (unlikely(w->state == WSTATE_DESTROYING && !destroy)) { log_warn("Trying to undestroy a window?"); assert(false); } // If the window is already in the state we want if (unlikely(w->state == target_state)) { log_warn("%s a window twice", destroy ? "Destroying" : "Unmapping"); return; } if (unlikely(w->state == WSTATE_UNMAPPED) || w->a._class == XCB_WINDOW_CLASS_INPUT_ONLY) { if (unlikely(!destroy)) { log_warn("Unmapping an already unmapped window %#010x %s twice", w->id, w->name); return; } // Window is already unmapped, or is an Input Only window, just destroy it finish_destroy_win(ps, _w); return; } // Set focus out win_set_focused(ps, w, false); w->a.map_state = XCB_MAP_STATE_UNMAPPED; w->state = target_state; w->opacity_tgt = win_calc_opacity_target(ps, w); w->in_openclose = destroy; // don't care about properties anymore if (!destroy) { win_ev_stop(ps, w); } #ifdef CONFIG_DBUS // Send D-Bus signal if (ps->o.dbus) { if (destroy) { cdbus_ev_win_destroyed(ps, w); } else { cdbus_ev_win_unmapped(ps, w); } } #endif if (!ps->redirected) { win_skip_fading(ps, _w); } } /** * Execute fade callback of a window if fading finished. */ void win_check_fade_finished(session_t *ps, win **_w) { win *w = *_w; if (w->state == WSTATE_MAPPED || w->state == WSTATE_UNMAPPED) { // No fading in progress assert(w->opacity_tgt == w->opacity); return; } if (w->opacity == w->opacity_tgt) { switch (w->state) { case WSTATE_UNMAPPING: return finish_unmap_win(ps, _w); case WSTATE_DESTROYING: return finish_destroy_win(ps, _w); case WSTATE_MAPPING: return finish_map_win(ps, _w); case WSTATE_FADING: w->state = WSTATE_MAPPED; break; default: unreachable; } } } /// Skip the current in progress fading of window, /// transition the window straight to its end state void win_skip_fading(session_t *ps, win **_w) { win *w = *_w; if (w->state == WSTATE_MAPPED || w->state == WSTATE_UNMAPPED) { assert(w->opacity_tgt == w->opacity); return; } w->opacity = w->opacity_tgt; win_check_fade_finished(ps, _w); } /** * Get the Xinerama screen a window is on. * * Return an index >= 0, or -1 if not found. * * TODO move to x.c * TODO use xrandr */ void win_update_screen(session_t *ps, win *w) { w->xinerama_scr = -1; if (!ps->xinerama_scrs) return; xcb_xinerama_screen_info_t *scrs = xcb_xinerama_query_screens_screen_info(ps->xinerama_scrs); int length = xcb_xinerama_query_screens_screen_info_length(ps->xinerama_scrs); for (int i = 0; i < length; i++) { xcb_xinerama_screen_info_t *s = &scrs[i]; if (s->x_org <= w->g.x && s->y_org <= w->g.y && s->x_org + s->width >= w->g.x + w->widthb && s->y_org + s->height >= w->g.y + w->heightb) { w->xinerama_scr = i; return; } } } // TODO remove this void configure_win(session_t *, xcb_configure_notify_event_t *); /// Map an already registered window void map_win(session_t *ps, win *w) { assert(w); // Don't care about window mapping if it's an InputOnly window // Also, try avoiding mapping a window twice if (w->a._class == XCB_WINDOW_CLASS_INPUT_ONLY) { return; } log_debug("Mapping (%#010x \"%s\")", w->id, w->name); assert(w->state != WSTATE_DESTROYING); if (w->state != WSTATE_UNMAPPED && w->state != WSTATE_UNMAPPING) { log_warn("Mapping an already mapped window"); return; } if (w->state == WSTATE_UNMAPPING) { win_skip_fading(ps, &w); assert(w); } // We stopped processing window size change when we were unmapped, refresh the // size of the window xcb_get_geometry_cookie_t gcookie = xcb_get_geometry(ps->c, w->id); xcb_get_geometry_reply_t *g = xcb_get_geometry_reply(ps->c, gcookie, NULL); if (!g) { log_error("Failed to get the geometry of window %#010x", w->id); return; } w->g = *g; free(g); win_on_win_size_change(ps, w); log_trace("Window size: %dx%d", w->g.width, w->g.height); // Rant: window size could change after we queried its geometry here and before // we get its pixmap. Later, when we get back to the event processing loop, we // will get the notification about size change from Xserver and try to refresh the // pixmap, while the pixmap is actually already up-to-date (i.e. the notification // is stale). There is basically no real way to prevent this, aside from grabbing // the server. // XXX ??? assert(!win_is_focused_real(ps, w)); // XXX Can we assume map_state is always viewable? w->a.map_state = XCB_MAP_STATE_VIEWABLE; win_update_screen(ps, w); // Set window event mask before reading properties so that no property // changes are lost xcb_change_window_attributes( ps->c, w->id, XCB_CW_EVENT_MASK, (const uint32_t[]){determine_evmask(ps, w->id, WIN_EVMODE_FRAME)}); // Notify compton when the shape of a window changes if (ps->shape_exists) { xcb_shape_select_input(ps->c, w->id, 1); } // Update window mode here to check for ARGB windows w->mode = win_calc_mode(w); // Detect client window here instead of in add_win() as the client // window should have been prepared at this point if (!w->client_win) { win_recheck_client(ps, w); } else { // Re-mark client window here win_mark_client(ps, w, w->client_win); } assert(w->client_win); log_debug("Window (%#010x) has type %s", w->id, WINTYPES[w->window_type]); // Update window focus state win_update_focused(ps, w); // Update opacity and dim state win_update_opacity_prop(ps, w); // Check for _COMPTON_SHADOW if (ps->o.respect_prop_shadow) { win_update_prop_shadow_raw(ps, w); } // Many things above could affect shadow win_determine_shadow(ps, w); // XXX We need to make sure that win_data is available // iff `state` is MAPPED w->state = WSTATE_MAPPING; w->opacity_tgt = win_calc_opacity_target(ps, w); log_debug("Window %#010x has opacity %f, opacity target is %f", w->id, w->opacity, w->opacity_tgt); win_determine_blur_background(ps, w); w->ever_damaged = false; // We stopped listening on ShapeNotify events // when the window is unmapped (XXX we shouldn't), // so the shape of the window might have changed, // update. (Issue #35) win_update_bounding_shape(ps, w); // Reset the STALE_IMAGE flag set by win_update_bounding_shape. Because we are // just about to bind the image, no way that's stale. // // Also because NVIDIA driver doesn't like seeing the same pixmap under different // ids, so avoid naming the pixmap again when it didn't actually change. w->flags &= ~WIN_FLAGS_STALE_IMAGE; // Bind image after update_bounding_shape, so the shadow has the correct size. if (ps->redirected && ps->o.experimental_backends) { if (!win_bind_image(ps, w)) { w->flags |= WIN_FLAGS_IMAGE_ERROR; } } #ifdef CONFIG_DBUS // Send D-Bus signal if (ps->o.dbus) { cdbus_ev_win_mapped(ps, w); } #endif if (!ps->redirected) { win_skip_fading(ps, &w); assert(w); } } void map_win_by_id(session_t *ps, xcb_window_t id) { // Unmap overlay window if it got mapped but we are currently not // in redirected state. if (ps->overlay && id == ps->overlay && !ps->redirected) { log_debug("Overlay is mapped while we are not redirected"); auto e = xcb_request_check(ps->c, xcb_unmap_window(ps->c, ps->overlay)); if (e) { log_error("Failed to unmap the overlay window"); free(e); } // We don't track the overlay window, so we can return return; } win *w = find_win(ps, id); if (!w) { return; } map_win(ps, w); }
833653.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memmove.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: pbondoer <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/25 23:09:02 by pbondoer #+# #+# */ /* Updated: 2017/02/02 19:38:54 by pbondoer ### ########.fr */ /* */ /* ************************************************************************** */ #include <string.h> void *ft_memmove(void *dst, const void *src, size_t len) { size_t i; if (len == 0) return (dst); if (src < dst) { i = len; while (i > 0) { i--; ((char *)dst)[i] = ((char *)src)[i]; } } else { i = 0; while (i < len) { ((char *)dst)[i] = ((char *)src)[i]; i++; } } return (dst); }
814115.c
/* $OpenBSD: sha2.c,v 1.8 2011/01/11 15:42:05 deraadt Exp $ */ /* * FILE: sha2.c * AUTHOR: Aaron D. Gifford <[email protected]> * * Copyright (c) 2000-2001, Aaron D. Gifford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $From: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $ */ #include <sys/param.h> #include <sys/time.h> #include <sys/systm.h> #include <crypto/sha2.h> /* * UNROLLED TRANSFORM LOOP NOTE: * You can define SHA2_UNROLL_TRANSFORM to use the unrolled transform * loop version for the hash transform rounds (defined using macros * later in this file). Either define on the command line, for example: * * cc -DSHA2_UNROLL_TRANSFORM -o sha2 sha2.c sha2prog.c * * or define below: * * #define SHA2_UNROLL_TRANSFORM * */ /*** SHA-256/384/512 Machine Architecture Definitions *****************/ /* * BYTE_ORDER NOTE: * * Please make sure that your system defines BYTE_ORDER. If your * architecture is little-endian, make sure it also defines * LITTLE_ENDIAN and that the two (BYTE_ORDER and LITTLE_ENDIAN) are * equivilent. * * If your system does not define the above, then you can do so by * hand like this: * * #define LITTLE_ENDIAN 1234 * #define BIG_ENDIAN 4321 * * And for little-endian machines, add: * * #define BYTE_ORDER LITTLE_ENDIAN * * Or for big-endian machines: * * #define BYTE_ORDER BIG_ENDIAN * * The FreeBSD machine this was written on defines BYTE_ORDER * appropriately by including <sys/types.h> (which in turn includes * <machine/endian.h> where the appropriate definitions are actually * made). */ #if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) #error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN #endif /*** SHA-256/384/512 Various Length Definitions ***********************/ /* NOTE: Most of these are in sha2.h */ #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8) #define SHA384_SHORT_BLOCK_LENGTH (SHA384_BLOCK_LENGTH - 16) #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16) /*** ENDIAN REVERSAL MACROS *******************************************/ #if BYTE_ORDER == LITTLE_ENDIAN #define REVERSE32(w,x) { \ u_int32_t tmp = (w); \ tmp = (tmp >> 16) | (tmp << 16); \ (x) = ((tmp & 0xff00ff00UL) >> 8) | ((tmp & 0x00ff00ffUL) << 8); \ } #define REVERSE64(w,x) { \ u_int64_t tmp = (w); \ tmp = (tmp >> 32) | (tmp << 32); \ tmp = ((tmp & 0xff00ff00ff00ff00ULL) >> 8) | \ ((tmp & 0x00ff00ff00ff00ffULL) << 8); \ (x) = ((tmp & 0xffff0000ffff0000ULL) >> 16) | \ ((tmp & 0x0000ffff0000ffffULL) << 16); \ } #endif /* BYTE_ORDER == LITTLE_ENDIAN */ /* * Macro for incrementally adding the unsigned 64-bit integer n to the * unsigned 128-bit integer (represented using a two-element array of * 64-bit words): */ #define ADDINC128(w,n) { \ (w)[0] += (u_int64_t)(n); \ if ((w)[0] < (n)) { \ (w)[1]++; \ } \ } /*** THE SIX LOGICAL FUNCTIONS ****************************************/ /* * Bit shifting and rotation (used by the six SHA-XYZ logical functions: * * NOTE: The naming of R and S appears backwards here (R is a SHIFT and * S is a ROTATION) because the SHA-256/384/512 description document * (see http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf) uses this * same "backwards" definition. */ /* Shift-right (used in SHA-256, SHA-384, and SHA-512): */ #define R(b,x) ((x) >> (b)) /* 32-bit Rotate-right (used in SHA-256): */ #define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b)))) /* 64-bit Rotate-right (used in SHA-384 and SHA-512): */ #define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b)))) /* Two of six logical functions used in SHA-256, SHA-384, and SHA-512: */ #define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) #define Maj(x,y,z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) /* Four of six logical functions used in SHA-256: */ #define Sigma0_256(x) (S32(2, (x)) ^ S32(13, (x)) ^ S32(22, (x))) #define Sigma1_256(x) (S32(6, (x)) ^ S32(11, (x)) ^ S32(25, (x))) #define sigma0_256(x) (S32(7, (x)) ^ S32(18, (x)) ^ R(3 , (x))) #define sigma1_256(x) (S32(17, (x)) ^ S32(19, (x)) ^ R(10, (x))) /* Four of six logical functions used in SHA-384 and SHA-512: */ #define Sigma0_512(x) (S64(28, (x)) ^ S64(34, (x)) ^ S64(39, (x))) #define Sigma1_512(x) (S64(14, (x)) ^ S64(18, (x)) ^ S64(41, (x))) #define sigma0_512(x) (S64( 1, (x)) ^ S64( 8, (x)) ^ R( 7, (x))) #define sigma1_512(x) (S64(19, (x)) ^ S64(61, (x)) ^ R( 6, (x))) /*** INTERNAL FUNCTION PROTOTYPES *************************************/ /* NOTE: These should not be accessed directly from outside this * library -- they are intended for private internal visibility/use * only. */ void SHA512Last(SHA2_CTX *); void SHA256Transform(SHA2_CTX *, const u_int8_t *); void SHA512Transform(SHA2_CTX *, const u_int8_t *); /*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/ /* Hash constant words K for SHA-256: */ const static u_int32_t K256[64] = { 0x428a2f98UL, 0x71374491UL, 0xb5c0fbcfUL, 0xe9b5dba5UL, 0x3956c25bUL, 0x59f111f1UL, 0x923f82a4UL, 0xab1c5ed5UL, 0xd807aa98UL, 0x12835b01UL, 0x243185beUL, 0x550c7dc3UL, 0x72be5d74UL, 0x80deb1feUL, 0x9bdc06a7UL, 0xc19bf174UL, 0xe49b69c1UL, 0xefbe4786UL, 0x0fc19dc6UL, 0x240ca1ccUL, 0x2de92c6fUL, 0x4a7484aaUL, 0x5cb0a9dcUL, 0x76f988daUL, 0x983e5152UL, 0xa831c66dUL, 0xb00327c8UL, 0xbf597fc7UL, 0xc6e00bf3UL, 0xd5a79147UL, 0x06ca6351UL, 0x14292967UL, 0x27b70a85UL, 0x2e1b2138UL, 0x4d2c6dfcUL, 0x53380d13UL, 0x650a7354UL, 0x766a0abbUL, 0x81c2c92eUL, 0x92722c85UL, 0xa2bfe8a1UL, 0xa81a664bUL, 0xc24b8b70UL, 0xc76c51a3UL, 0xd192e819UL, 0xd6990624UL, 0xf40e3585UL, 0x106aa070UL, 0x19a4c116UL, 0x1e376c08UL, 0x2748774cUL, 0x34b0bcb5UL, 0x391c0cb3UL, 0x4ed8aa4aUL, 0x5b9cca4fUL, 0x682e6ff3UL, 0x748f82eeUL, 0x78a5636fUL, 0x84c87814UL, 0x8cc70208UL, 0x90befffaUL, 0xa4506cebUL, 0xbef9a3f7UL, 0xc67178f2UL }; /* Initial hash value H for SHA-256: */ const static u_int32_t sha256_initial_hash_value[8] = { 0x6a09e667UL, 0xbb67ae85UL, 0x3c6ef372UL, 0xa54ff53aUL, 0x510e527fUL, 0x9b05688cUL, 0x1f83d9abUL, 0x5be0cd19UL }; /* Hash constant words K for SHA-384 and SHA-512: */ const static u_int64_t K512[80] = { 0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL, 0xb5c0fbcfec4d3b2fULL, 0xe9b5dba58189dbbcULL, 0x3956c25bf348b538ULL, 0x59f111f1b605d019ULL, 0x923f82a4af194f9bULL, 0xab1c5ed5da6d8118ULL, 0xd807aa98a3030242ULL, 0x12835b0145706fbeULL, 0x243185be4ee4b28cULL, 0x550c7dc3d5ffb4e2ULL, 0x72be5d74f27b896fULL, 0x80deb1fe3b1696b1ULL, 0x9bdc06a725c71235ULL, 0xc19bf174cf692694ULL, 0xe49b69c19ef14ad2ULL, 0xefbe4786384f25e3ULL, 0x0fc19dc68b8cd5b5ULL, 0x240ca1cc77ac9c65ULL, 0x2de92c6f592b0275ULL, 0x4a7484aa6ea6e483ULL, 0x5cb0a9dcbd41fbd4ULL, 0x76f988da831153b5ULL, 0x983e5152ee66dfabULL, 0xa831c66d2db43210ULL, 0xb00327c898fb213fULL, 0xbf597fc7beef0ee4ULL, 0xc6e00bf33da88fc2ULL, 0xd5a79147930aa725ULL, 0x06ca6351e003826fULL, 0x142929670a0e6e70ULL, 0x27b70a8546d22ffcULL, 0x2e1b21385c26c926ULL, 0x4d2c6dfc5ac42aedULL, 0x53380d139d95b3dfULL, 0x650a73548baf63deULL, 0x766a0abb3c77b2a8ULL, 0x81c2c92e47edaee6ULL, 0x92722c851482353bULL, 0xa2bfe8a14cf10364ULL, 0xa81a664bbc423001ULL, 0xc24b8b70d0f89791ULL, 0xc76c51a30654be30ULL, 0xd192e819d6ef5218ULL, 0xd69906245565a910ULL, 0xf40e35855771202aULL, 0x106aa07032bbd1b8ULL, 0x19a4c116b8d2d0c8ULL, 0x1e376c085141ab53ULL, 0x2748774cdf8eeb99ULL, 0x34b0bcb5e19b48a8ULL, 0x391c0cb3c5c95a63ULL, 0x4ed8aa4ae3418acbULL, 0x5b9cca4f7763e373ULL, 0x682e6ff3d6b2b8a3ULL, 0x748f82ee5defb2fcULL, 0x78a5636f43172f60ULL, 0x84c87814a1f0ab72ULL, 0x8cc702081a6439ecULL, 0x90befffa23631e28ULL, 0xa4506cebde82bde9ULL, 0xbef9a3f7b2c67915ULL, 0xc67178f2e372532bULL, 0xca273eceea26619cULL, 0xd186b8c721c0c207ULL, 0xeada7dd6cde0eb1eULL, 0xf57d4f7fee6ed178ULL, 0x06f067aa72176fbaULL, 0x0a637dc5a2c898a6ULL, 0x113f9804bef90daeULL, 0x1b710b35131c471bULL, 0x28db77f523047d84ULL, 0x32caab7b40c72493ULL, 0x3c9ebe0a15c9bebcULL, 0x431d67c49c100d4cULL, 0x4cc5d4becb3e42b6ULL, 0x597f299cfc657e2aULL, 0x5fcb6fab3ad6faecULL, 0x6c44198c4a475817ULL }; /* Initial hash value H for SHA-384 */ const static u_int64_t sha384_initial_hash_value[8] = { 0xcbbb9d5dc1059ed8ULL, 0x629a292a367cd507ULL, 0x9159015a3070dd17ULL, 0x152fecd8f70e5939ULL, 0x67332667ffc00b31ULL, 0x8eb44a8768581511ULL, 0xdb0c2e0d64f98fa7ULL, 0x47b5481dbefa4fa4ULL }; /* Initial hash value H for SHA-512 */ const static u_int64_t sha512_initial_hash_value[8] = { 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL, 0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL, 0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL }; /*** SHA-256: *********************************************************/ void SHA256Init(SHA2_CTX *context) { if (context == NULL) return; bcopy(sha256_initial_hash_value, context->state.st32, SHA256_DIGEST_LENGTH); bzero(context->buffer, SHA256_BLOCK_LENGTH); context->bitcount[0] = 0; } #ifdef SHA2_UNROLL_TRANSFORM /* Unrolled SHA-256 round macros: */ #define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) do { \ W256[j] = (u_int32_t)data[3] | ((u_int32_t)data[2] << 8) | \ ((u_int32_t)data[1] << 16) | ((u_int32_t)data[0] << 24); \ data += 4; \ T1 = (h) + Sigma1_256((e)) + Ch((e), (f), (g)) + K256[j] + W256[j]; \ (d) += T1; \ (h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \ j++; \ } while(0) #define ROUND256(a,b,c,d,e,f,g,h) do { \ s0 = W256[(j+1)&0x0f]; \ s0 = sigma0_256(s0); \ s1 = W256[(j+14)&0x0f]; \ s1 = sigma1_256(s1); \ T1 = (h) + Sigma1_256((e)) + Ch((e), (f), (g)) + K256[j] + \ (W256[j&0x0f] += s1 + W256[(j+9)&0x0f] + s0); \ (d) += T1; \ (h) = T1 + Sigma0_256((a)) + Maj((a), (b), (c)); \ j++; \ } while(0) void SHA256Transform(SHA2_CTX *context, const u_int8_t *data) { u_int32_t a, b, c, d, e, f, g, h, s0, s1; u_int32_t T1, *W256; int j; W256 = (u_int32_t *)context->buffer; /* Initialize registers with the prev. intermediate value */ a = context->state.st32[0]; b = context->state.st32[1]; c = context->state.st32[2]; d = context->state.st32[3]; e = context->state.st32[4]; f = context->state.st32[5]; g = context->state.st32[6]; h = context->state.st32[7]; j = 0; do { /* Rounds 0 to 15 (unrolled): */ ROUND256_0_TO_15(a,b,c,d,e,f,g,h); ROUND256_0_TO_15(h,a,b,c,d,e,f,g); ROUND256_0_TO_15(g,h,a,b,c,d,e,f); ROUND256_0_TO_15(f,g,h,a,b,c,d,e); ROUND256_0_TO_15(e,f,g,h,a,b,c,d); ROUND256_0_TO_15(d,e,f,g,h,a,b,c); ROUND256_0_TO_15(c,d,e,f,g,h,a,b); ROUND256_0_TO_15(b,c,d,e,f,g,h,a); } while (j < 16); /* Now for the remaining rounds to 64: */ do { ROUND256(a,b,c,d,e,f,g,h); ROUND256(h,a,b,c,d,e,f,g); ROUND256(g,h,a,b,c,d,e,f); ROUND256(f,g,h,a,b,c,d,e); ROUND256(e,f,g,h,a,b,c,d); ROUND256(d,e,f,g,h,a,b,c); ROUND256(c,d,e,f,g,h,a,b); ROUND256(b,c,d,e,f,g,h,a); } while (j < 64); /* Compute the current intermediate hash value */ context->state.st32[0] += a; context->state.st32[1] += b; context->state.st32[2] += c; context->state.st32[3] += d; context->state.st32[4] += e; context->state.st32[5] += f; context->state.st32[6] += g; context->state.st32[7] += h; /* Clean up */ a = b = c = d = e = f = g = h = T1 = 0; } #else /* SHA2_UNROLL_TRANSFORM */ void SHA256Transform(SHA2_CTX *context, const u_int8_t *data) { u_int32_t a, b, c, d, e, f, g, h, s0, s1; u_int32_t T1, T2, *W256; int j; W256 = (u_int32_t *)context->buffer; /* Initialize registers with the prev. intermediate value */ a = context->state.st32[0]; b = context->state.st32[1]; c = context->state.st32[2]; d = context->state.st32[3]; e = context->state.st32[4]; f = context->state.st32[5]; g = context->state.st32[6]; h = context->state.st32[7]; j = 0; do { W256[j] = (u_int32_t)data[3] | ((u_int32_t)data[2] << 8) | ((u_int32_t)data[1] << 16) | ((u_int32_t)data[0] << 24); data += 4; /* Apply the SHA-256 compression function to update a..h */ T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] + W256[j]; T2 = Sigma0_256(a) + Maj(a, b, c); h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2; j++; } while (j < 16); do { /* Part of the message block expansion: */ s0 = W256[(j+1)&0x0f]; s0 = sigma0_256(s0); s1 = W256[(j+14)&0x0f]; s1 = sigma1_256(s1); /* Apply the SHA-256 compression function to update a..h */ T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] + (W256[j&0x0f] += s1 + W256[(j+9)&0x0f] + s0); T2 = Sigma0_256(a) + Maj(a, b, c); h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2; j++; } while (j < 64); /* Compute the current intermediate hash value */ context->state.st32[0] += a; context->state.st32[1] += b; context->state.st32[2] += c; context->state.st32[3] += d; context->state.st32[4] += e; context->state.st32[5] += f; context->state.st32[6] += g; context->state.st32[7] += h; /* Clean up */ a = b = c = d = e = f = g = h = T1 = T2 = 0; } #endif /* SHA2_UNROLL_TRANSFORM */ void SHA256Update(SHA2_CTX *context, const u_int8_t *data, size_t len) { size_t freespace, usedspace; /* Calling with no data is valid (we do nothing) */ if (len == 0) return; usedspace = (context->bitcount[0] >> 3) % SHA256_BLOCK_LENGTH; if (usedspace > 0) { /* Calculate how much free space is available in the buffer */ freespace = SHA256_BLOCK_LENGTH - usedspace; if (len >= freespace) { /* Fill the buffer completely and process it */ bcopy(data, &context->buffer[usedspace], freespace); context->bitcount[0] += freespace << 3; len -= freespace; data += freespace; SHA256Transform(context, context->buffer); } else { /* The buffer is not yet full */ bcopy(data, &context->buffer[usedspace], len); context->bitcount[0] += len << 3; /* Clean up: */ usedspace = freespace = 0; return; } } while (len >= SHA256_BLOCK_LENGTH) { /* Process as many complete blocks as we can */ SHA256Transform(context, data); context->bitcount[0] += SHA256_BLOCK_LENGTH << 3; len -= SHA256_BLOCK_LENGTH; data += SHA256_BLOCK_LENGTH; } if (len > 0) { /* There's left-overs, so save 'em */ bcopy(data, context->buffer, len); context->bitcount[0] += len << 3; } /* Clean up: */ usedspace = freespace = 0; } void SHA256Final(u_int8_t digest[], SHA2_CTX *context) { u_int32_t *d = (u_int32_t *)digest; unsigned int usedspace; /* If no digest buffer is passed, we don't bother doing this: */ if (digest != NULL) { usedspace = (context->bitcount[0] >> 3) % SHA256_BLOCK_LENGTH; #if BYTE_ORDER == LITTLE_ENDIAN /* Convert FROM host byte order */ REVERSE64(context->bitcount[0], context->bitcount[0]); #endif if (usedspace > 0) { /* Begin padding with a 1 bit: */ context->buffer[usedspace++] = 0x80; if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) { /* Set-up for the last transform: */ bzero(&context->buffer[usedspace], SHA256_SHORT_BLOCK_LENGTH - usedspace); } else { if (usedspace < SHA256_BLOCK_LENGTH) { bzero(&context->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace); } /* Do second-to-last transform: */ SHA256Transform(context, context->buffer); /* And set-up for the last transform: */ bzero(context->buffer, SHA256_SHORT_BLOCK_LENGTH); } } else { /* Set-up for the last transform: */ bzero(context->buffer, SHA256_SHORT_BLOCK_LENGTH); /* Begin padding with a 1 bit: */ *context->buffer = 0x80; } /* Set the bit count: */ *(u_int64_t *)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount[0]; /* Final transform: */ SHA256Transform(context, context->buffer); #if BYTE_ORDER == LITTLE_ENDIAN { /* Convert TO host byte order */ int j; for (j = 0; j < 8; j++) { REVERSE32(context->state.st32[j], context->state.st32[j]); *d++ = context->state.st32[j]; } } #else bcopy(context->state.st32, d, SHA256_DIGEST_LENGTH); #endif } /* Clean up state data: */ explicit_bzero(context, sizeof(*context)); usedspace = 0; } /*** SHA-512: *********************************************************/ void SHA512Init(SHA2_CTX *context) { if (context == NULL) return; bcopy(sha512_initial_hash_value, context->state.st64, SHA512_DIGEST_LENGTH); bzero(context->buffer, SHA512_BLOCK_LENGTH); context->bitcount[0] = context->bitcount[1] = 0; } #ifdef SHA2_UNROLL_TRANSFORM /* Unrolled SHA-512 round macros: */ #define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) do { \ W512[j] = (u_int64_t)data[7] | ((u_int64_t)data[6] << 8) | \ ((u_int64_t)data[5] << 16) | ((u_int64_t)data[4] << 24) | \ ((u_int64_t)data[3] << 32) | ((u_int64_t)data[2] << 40) | \ ((u_int64_t)data[1] << 48) | ((u_int64_t)data[0] << 56); \ data += 8; \ T1 = (h) + Sigma1_512((e)) + Ch((e), (f), (g)) + K512[j] + W512[j]; \ (d) += T1; \ (h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \ j++; \ } while(0) #define ROUND512(a,b,c,d,e,f,g,h) do { \ s0 = W512[(j+1)&0x0f]; \ s0 = sigma0_512(s0); \ s1 = W512[(j+14)&0x0f]; \ s1 = sigma1_512(s1); \ T1 = (h) + Sigma1_512((e)) + Ch((e), (f), (g)) + K512[j] + \ (W512[j&0x0f] += s1 + W512[(j+9)&0x0f] + s0); \ (d) += T1; \ (h) = T1 + Sigma0_512((a)) + Maj((a), (b), (c)); \ j++; \ } while(0) void SHA512Transform(SHA2_CTX *context, const u_int8_t *data) { u_int64_t a, b, c, d, e, f, g, h, s0, s1; u_int64_t T1, *W512 = (u_int64_t *)context->buffer; int j; /* Initialize registers with the prev. intermediate value */ a = context->state.st64[0]; b = context->state.st64[1]; c = context->state.st64[2]; d = context->state.st64[3]; e = context->state.st64[4]; f = context->state.st64[5]; g = context->state.st64[6]; h = context->state.st64[7]; j = 0; do { ROUND512_0_TO_15(a,b,c,d,e,f,g,h); ROUND512_0_TO_15(h,a,b,c,d,e,f,g); ROUND512_0_TO_15(g,h,a,b,c,d,e,f); ROUND512_0_TO_15(f,g,h,a,b,c,d,e); ROUND512_0_TO_15(e,f,g,h,a,b,c,d); ROUND512_0_TO_15(d,e,f,g,h,a,b,c); ROUND512_0_TO_15(c,d,e,f,g,h,a,b); ROUND512_0_TO_15(b,c,d,e,f,g,h,a); } while (j < 16); /* Now for the remaining rounds up to 79: */ do { ROUND512(a,b,c,d,e,f,g,h); ROUND512(h,a,b,c,d,e,f,g); ROUND512(g,h,a,b,c,d,e,f); ROUND512(f,g,h,a,b,c,d,e); ROUND512(e,f,g,h,a,b,c,d); ROUND512(d,e,f,g,h,a,b,c); ROUND512(c,d,e,f,g,h,a,b); ROUND512(b,c,d,e,f,g,h,a); } while (j < 80); /* Compute the current intermediate hash value */ context->state.st64[0] += a; context->state.st64[1] += b; context->state.st64[2] += c; context->state.st64[3] += d; context->state.st64[4] += e; context->state.st64[5] += f; context->state.st64[6] += g; context->state.st64[7] += h; /* Clean up */ a = b = c = d = e = f = g = h = T1 = 0; } #else /* SHA2_UNROLL_TRANSFORM */ void SHA512Transform(SHA2_CTX *context, const u_int8_t *data) { u_int64_t a, b, c, d, e, f, g, h, s0, s1; u_int64_t T1, T2, *W512 = (u_int64_t *)context->buffer; int j; /* Initialize registers with the prev. intermediate value */ a = context->state.st64[0]; b = context->state.st64[1]; c = context->state.st64[2]; d = context->state.st64[3]; e = context->state.st64[4]; f = context->state.st64[5]; g = context->state.st64[6]; h = context->state.st64[7]; j = 0; do { W512[j] = (u_int64_t)data[7] | ((u_int64_t)data[6] << 8) | ((u_int64_t)data[5] << 16) | ((u_int64_t)data[4] << 24) | ((u_int64_t)data[3] << 32) | ((u_int64_t)data[2] << 40) | ((u_int64_t)data[1] << 48) | ((u_int64_t)data[0] << 56); data += 8; /* Apply the SHA-512 compression function to update a..h */ T1 = h + Sigma1_512(e) + Ch(e, f, g) + K512[j] + W512[j]; T2 = Sigma0_512(a) + Maj(a, b, c); h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2; j++; } while (j < 16); do { /* Part of the message block expansion: */ s0 = W512[(j+1)&0x0f]; s0 = sigma0_512(s0); s1 = W512[(j+14)&0x0f]; s1 = sigma1_512(s1); /* Apply the SHA-512 compression function to update a..h */ T1 = h + Sigma1_512(e) + Ch(e, f, g) + K512[j] + (W512[j&0x0f] += s1 + W512[(j+9)&0x0f] + s0); T2 = Sigma0_512(a) + Maj(a, b, c); h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2; j++; } while (j < 80); /* Compute the current intermediate hash value */ context->state.st64[0] += a; context->state.st64[1] += b; context->state.st64[2] += c; context->state.st64[3] += d; context->state.st64[4] += e; context->state.st64[5] += f; context->state.st64[6] += g; context->state.st64[7] += h; /* Clean up */ a = b = c = d = e = f = g = h = T1 = T2 = 0; } #endif /* SHA2_UNROLL_TRANSFORM */ void SHA512Update(SHA2_CTX *context, const u_int8_t *data, size_t len) { size_t freespace, usedspace; /* Calling with no data is valid (we do nothing) */ if (len == 0) return; usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; if (usedspace > 0) { /* Calculate how much free space is available in the buffer */ freespace = SHA512_BLOCK_LENGTH - usedspace; if (len >= freespace) { /* Fill the buffer completely and process it */ bcopy(data, &context->buffer[usedspace], freespace); ADDINC128(context->bitcount, freespace << 3); len -= freespace; data += freespace; SHA512Transform(context, context->buffer); } else { /* The buffer is not yet full */ bcopy(data, &context->buffer[usedspace], len); ADDINC128(context->bitcount, len << 3); /* Clean up: */ usedspace = freespace = 0; return; } } while (len >= SHA512_BLOCK_LENGTH) { /* Process as many complete blocks as we can */ SHA512Transform(context, data); ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); len -= SHA512_BLOCK_LENGTH; data += SHA512_BLOCK_LENGTH; } if (len > 0) { /* There's left-overs, so save 'em */ bcopy(data, context->buffer, len); ADDINC128(context->bitcount, len << 3); } /* Clean up: */ usedspace = freespace = 0; } void SHA512Last(SHA2_CTX *context) { unsigned int usedspace; usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; #if BYTE_ORDER == LITTLE_ENDIAN /* Convert FROM host byte order */ REVERSE64(context->bitcount[0],context->bitcount[0]); REVERSE64(context->bitcount[1],context->bitcount[1]); #endif if (usedspace > 0) { /* Begin padding with a 1 bit: */ context->buffer[usedspace++] = 0x80; if (usedspace <= SHA512_SHORT_BLOCK_LENGTH) { /* Set-up for the last transform: */ bzero(&context->buffer[usedspace], SHA512_SHORT_BLOCK_LENGTH - usedspace); } else { if (usedspace < SHA512_BLOCK_LENGTH) { bzero(&context->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace); } /* Do second-to-last transform: */ SHA512Transform(context, context->buffer); /* And set-up for the last transform: */ bzero(context->buffer, SHA512_BLOCK_LENGTH - 2); } } else { /* Prepare for final transform: */ bzero(context->buffer, SHA512_SHORT_BLOCK_LENGTH); /* Begin padding with a 1 bit: */ *context->buffer = 0x80; } /* Store the length of input data (in bits): */ *(u_int64_t *)&context->buffer[SHA512_SHORT_BLOCK_LENGTH] = context->bitcount[1]; *(u_int64_t *)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] = context->bitcount[0]; /* Final transform: */ SHA512Transform(context, context->buffer); } void SHA512Final(u_int8_t digest[], SHA2_CTX *context) { u_int64_t *d = (u_int64_t *)digest; /* If no digest buffer is passed, we don't bother doing this: */ if (digest != NULL) { SHA512Last(context); /* Save the hash data for output: */ #if BYTE_ORDER == LITTLE_ENDIAN { /* Convert TO host byte order */ int j; for (j = 0; j < 8; j++) { REVERSE64(context->state.st64[j], context->state.st64[j]); *d++ = context->state.st64[j]; } } #else bcopy(context->state.st64, d, SHA512_DIGEST_LENGTH); #endif } /* Zero out state data */ explicit_bzero(context, sizeof(*context)); } /*** SHA-384: *********************************************************/ void SHA384Init(SHA2_CTX *context) { if (context == NULL) return; bcopy(sha384_initial_hash_value, context->state.st64, SHA512_DIGEST_LENGTH); bzero(context->buffer, SHA384_BLOCK_LENGTH); context->bitcount[0] = context->bitcount[1] = 0; } void SHA384Update(SHA2_CTX *context, const u_int8_t *data, size_t len) { SHA512Update((SHA2_CTX *)context, data, len); } void SHA384Final(u_int8_t digest[], SHA2_CTX *context) { u_int64_t *d = (u_int64_t *)digest; /* If no digest buffer is passed, we don't bother doing this: */ if (digest != NULL) { SHA512Last((SHA2_CTX *)context); /* Save the hash data for output: */ #if BYTE_ORDER == LITTLE_ENDIAN { /* Convert TO host byte order */ int j; for (j = 0; j < 6; j++) { REVERSE64(context->state.st64[j], context->state.st64[j]); *d++ = context->state.st64[j]; } } #else bcopy(context->state.st64, d, SHA384_DIGEST_LENGTH); #endif } /* Zero out state data */ explicit_bzero(context, sizeof(*context)); }
450654.c
/* * FreeRTOS V202012.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org * https://github.com/FreeRTOS * */ /* * Demo for showing how to use the Device Defender library's APIs. The Device * Defender library provides macros and helper functions for assembling MQTT * topics strings, and for determining whether an incoming MQTT message is * related to device defender. * * This demo subscribes to the device defender topics. It then collects metrics * for the open ports and sockets on the device using FreeRTOS+TCP. Additionally * the stack high water mark and task ids are collected for custom metrics. * These metrics are uses to generate a device defender report. The * report is then published, and the demo waits for a response from the device * defender service. Upon receiving the response or timing out, the demo * sleeps until the next iteration. * * This demo sets the report ID to xTaskGetTickCount(), which may collide if * the device is reset. Reports for a Thing with a previously used report ID * will be assumed to be duplicates and discarded by the Device Defender * service. The report ID needs to be unique per report sent with a given * Thing. We recommend using an increasing unique id such as the current * timestamp. */ /* Standard includes. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdint.h> /* Kernel includes. */ #include "FreeRTOS.h" #include "task.h" /* Demo config. */ #include "demo_config.h" /* MQTT library includes. */ #include "core_mqtt_agent.h" /* Subscription manager header include. */ #include "subscription_manager.h" /* JSON Library. */ #include "core_json.h" /* Device Defender Client Library. */ #include "defender.h" /* Metrics collector. */ #include "metrics_collector.h" /* Report builder. */ #include "report_builder.h" /** * democonfigCLIENT_IDENTIFIER is required. Throw compilation error if it is not defined. */ #ifndef democonfigCLIENT_IDENTIFIER #error "Please define democonfigCLIENT_IDENTIFIER in demo_config.h to the thing name registered with AWS IoT Core." #endif /** * @brief Size of the open TCP ports array. * * A maximum of these many open TCP ports will be sent in the device defender * report. */ #define defenderexampleOPEN_TCP_PORTS_ARRAY_SIZE 10 /** * @brief Size of the open UDP ports array. * * A maximum of these many open UDP ports will be sent in the device defender * report. */ #define defenderexampleOPEN_UDP_PORTS_ARRAY_SIZE 10 /** * @brief Size of the established connections array. * * A maximum of these many established connections will be sent in the device * defender report. */ #define defenderexampleESTABLISHED_CONNECTIONS_ARRAY_SIZE 10 /** * @brief Size of the task numbers array. * * This must be at least the number of tasks in use. */ #define defenderexampleCUSTOM_METRICS_TASKS_ARRAY_SIZE 10 /** * @brief Size of the buffer which contains the generated device defender report. * * If the generated report is larger than this, it is rejected. */ #define defenderexampleDEVICE_METRICS_REPORT_BUFFER_SIZE 1000 /** * @brief Major version number of the device defender report. */ #define defenderexampleDEVICE_METRICS_REPORT_MAJOR_VERSION 1 /** * @brief Minor version number of the device defender report. */ #define defenderexampleDEVICE_METRICS_REPORT_MINOR_VERSION 0 /** * @brief Time in ms to wait between consecutive defender reports */ #define defenderexampleMS_BETWEEN_REPORTS ( 15000U ) /** * @brief This demo uses task notifications to signal tasks from MQTT callback * functions. defenderexampleMS_TO_WAIT_FOR_NOTIFICATION defines the time, in ticks, * to wait for such a callback. */ #define defenderexampleMS_TO_WAIT_FOR_NOTIFICATION ( 5000 ) /** * @brief The maximum amount of time in milliseconds to wait for the commands * to be posted to the MQTT agent should the MQTT agent's command queue be full. * Tasks wait in the Blocked state, so don't use any CPU time. */ #define defenderexampleMAX_COMMAND_SEND_BLOCK_TIME_MS ( 200 ) /** * @brief Name of the report id field in the response from the AWS IoT Device * Defender service. */ #define defenderexampleRESPONSE_REPORT_ID_FIELD "reportId" /** * @brief The length of #defenderexampleRESPONSE_REPORT_ID_FIELD. */ #define defenderexampleRESPONSE_REPORT_ID_FIELD_LENGTH ( sizeof( defenderexampleRESPONSE_REPORT_ID_FIELD ) - 1 ) /** * @brief Defines the structure to use as the command callback context in this * demo. */ struct MQTTAgentCommandContext { MQTTStatus_t xReturnStatus; TaskHandle_t xTaskToNotify; }; /** * @brief Status values of the device defender report. */ typedef enum { ReportStatusNotReceived, ReportStatusAccepted, ReportStatusRejected } ReportStatus_t; /*-----------------------------------------------------------*/ /** * @brief Network Stats. */ static NetworkStats_t xNetworkStats; /** * @brief Open TCP ports array. */ static uint16_t pusOpenTcpPorts[ defenderexampleOPEN_TCP_PORTS_ARRAY_SIZE ]; /** * @brief Open UDP ports array. */ static uint16_t pusOpenUdpPorts[ defenderexampleOPEN_UDP_PORTS_ARRAY_SIZE ]; /** * @brief Established connections array. */ static Connection_t pxEstablishedConnections[ defenderexampleESTABLISHED_CONNECTIONS_ARRAY_SIZE ]; /** * @brief Task status array which will store status information of tasks * running in the system, which is used to generate custom metrics. */ static TaskStatus_t pxTaskList[ defenderexampleCUSTOM_METRICS_TASKS_ARRAY_SIZE ]; /** * @brief Custom metric array for the ids of running tasks on the system. */ static uint32_t pulCustomMetricsTaskNumbers[ defenderexampleCUSTOM_METRICS_TASKS_ARRAY_SIZE ]; /** * @brief All the metrics sent in the device defender report. */ static ReportMetrics_t xDeviceMetrics; /** * @brief Report status. */ static ReportStatus_t xReportStatus; /** * @brief Buffer for generating the device defender report. */ static char pcDeviceMetricsJsonReport[ defenderexampleDEVICE_METRICS_REPORT_BUFFER_SIZE ]; /** * @brief Report Id sent in the defender report. */ static uint32_t ulReportId = 0UL; extern MQTTAgentContext_t xGlobalMqttAgentContext; /*-----------------------------------------------------------*/ /** * @brief Subscribe to the device defender topics. * * @return true if the subscribe is successful; * false otherwise. */ static bool prvSubscribeToDefenderTopics( void ); /** * @brief Passed into MQTTAgent_Subscribe() as the callback to execute when the * broker ACKs the SUBSCRIBE message. Its implementation sends a notification * to the task that called MQTTAgent_Subscribe() to let the task know the * SUBSCRIBE operation completed. It also sets the xReturnStatus of the * structure passed in as the command's context to the value of the * xReturnStatus parameter - which enables the task to check the status of the * operation. * * See https://freertos.org/mqtt/mqtt-agent-demo.html#example_mqtt_api_call * * @param[in] pxCommandContext Context of the initial command. * @param[in].xReturnStatus The result of the command. */ static void prvSubscribeCommandCallback( void * pxCommandContext, MQTTAgentReturnInfo_t * pxReturnInfo ); /** * @brief The callback to execute when there is an incoming publish on the * topic for accepted report responses. It verifies the response and sets the * report response state accordingly. * * @param[in] pvIncomingPublishCallbackContext Context of the initial command. * @param[in] pxPublishInfo Deserialized publish. */ static void prvIncomingAcceptedPublishCallback( void * pxSubscriptionContext, MQTTPublishInfo_t * pxPublishInfo ); /** * @brief The callback to execute when there is an incoming publish on the * topic for rejected report responses. It verifies the response and sets the * report response state accordingly. * * @param[in] pvIncomingPublishCallbackContext Context of the initial command. * @param[in] pxPublishInfo Deserialized publish. */ static void prvIncomingRejectedPublishCallback( void * pxSubscriptionContext, MQTTPublishInfo_t * pxPublishInfo ); /** * @brief Collect all the metrics to be sent in the device defender report. * * @return true if all the metrics are successfully collected; * false otherwise. */ static bool prvCollectDeviceMetrics( void ); /** * @brief Generate the device defender report. * * @param[out] pulOutReportLength Length of the device defender report. * * @return true if the report is generated successfully; * false otherwise. */ static bool prvGenerateDeviceMetricsReport( uint32_t * pulOutReportLength ); /** * @brief Publish the generated device defender report. * * @param[in] ulReportLength Length of the device defender report. * * @return true if the report is published successfully; * false otherwise. */ static bool prvPublishDeviceMetricsReport( uint32_t ulReportLength ); /** * @brief Validate the response received from the AWS IoT Device Defender Service. * * This functions checks that a valid JSON is received and the report ID * is same as was sent in the published report. * * @param[in] pcDefenderResponse The defender response to validate. * @param[in] ulDefenderResponseLength Length of the defender response. * * @return true if the response is valid; * false otherwise. */ static bool prvValidateDefenderResponse( const char * pcDefenderResponse, uint32_t ulDefenderResponseLength ); /** * @brief The task used to demonstrate the Defender API. * * This task collects metrics from the device using the functions in * metrics_collector.h and uses them to build a defender report using functions * in report_builder.h. Metrics include the number for bytes written and read * over the network, open TCP and UDP ports, and open TCP sockets. The * generated report is then published to the AWS IoT Device Defender service. * * @param[in] pvParameters Parameters as passed at the time of task creation. * Not used in this example. */ static void prvDefenderDemoTask( void * pvParameters ); /*-----------------------------------------------------------*/ /** * @brief Create the task that demonstrates the Device Defender library API. */ void vStartDefenderDemo( configSTACK_DEPTH_TYPE uxStackSize, UBaseType_t uxPriority ) { xTaskCreate( prvDefenderDemoTask, /* Function that implements the task. */ "Defender", /* Text name for the task - only used for debugging. */ uxStackSize, /* Size of stack (in words, not bytes) to allocate for the task. */ NULL, /* Task parameter - not used in this case. */ uxPriority, /* Task priority, must be between 0 and configMAX_PRIORITIES - 1. */ NULL ); /* Used to pass out a handle to the created task - not used in this case. */ } /*-----------------------------------------------------------*/ static bool prvSubscribeToDefenderTopics( void ) { MQTTStatus_t xStatus; uint32_t ulNotificationValue; MQTTAgentCommandInfo_t xCommandParams = { 0 }; /* These must persist until the command is processed. */ static MQTTAgentSubscribeArgs_t xSubscribeArgs; static MQTTSubscribeInfo_t xSubscribeInfo[ 2 ]; /* Context must persist as long as subscription persists. */ static MQTTAgentCommandContext_t xApplicationDefinedContext = { 0 }; /* Record the handle of this task in the context that will be used within * the callbacks so the callbacks can send a notification to this task. */ xApplicationDefinedContext.xTaskToNotify = xTaskGetCurrentTaskHandle(); /* Ensure the return status is not accidentally MQTTSuccess already. */ xApplicationDefinedContext.xReturnStatus = MQTTBadParameter; /* Subscribe to defender topic for responses for accepted reports. */ xSubscribeInfo[ 0 ].pTopicFilter = DEFENDER_API_JSON_ACCEPTED( democonfigCLIENT_IDENTIFIER ); xSubscribeInfo[ 0 ].topicFilterLength = DEFENDER_API_LENGTH_JSON_ACCEPTED( democonfigCLIENT_IDENTIFIER_LENGTH ); xSubscribeInfo[ 0 ].qos = MQTTQoS1; /* Subscribe to defender topic for responses for rejected reports. */ xSubscribeInfo[ 1 ].pTopicFilter = DEFENDER_API_JSON_REJECTED( democonfigCLIENT_IDENTIFIER ); xSubscribeInfo[ 1 ].topicFilterLength = DEFENDER_API_LENGTH_JSON_REJECTED( democonfigCLIENT_IDENTIFIER_LENGTH ); xSubscribeInfo[ 1 ].qos = MQTTQoS1; /* Complete the subscribe information. The topic string must persist for * duration of subscription - although in this case is it a static const so * will persist for the lifetime of the application. */ xSubscribeArgs.pSubscribeInfo = xSubscribeInfo; xSubscribeArgs.numSubscriptions = 2; /* Loop in case the queue used to communicate with the MQTT agent is full and * attempts to post to it time out. The queue will not become full if the * priority of the MQTT agent task is higher than the priority of the task * calling this function. */ xTaskNotifyStateClear( NULL ); xCommandParams.blockTimeMs = defenderexampleMAX_COMMAND_SEND_BLOCK_TIME_MS; xCommandParams.cmdCompleteCallback = prvSubscribeCommandCallback; xCommandParams.pCmdCompleteCallbackContext = &xApplicationDefinedContext; LogInfo( ( "Sending subscribe request to agent for defender topics." ) ); do { /* If this fails, the agent's queue is full, so we retry until the agent * has more space in the queue. */ xStatus = MQTTAgent_Subscribe( &xGlobalMqttAgentContext, &( xSubscribeArgs ), &xCommandParams ); } while( xStatus != MQTTSuccess ); /* Wait for acks from subscribe messages - this is optional. If the * returned value is zero then the wait timed out. */ ulNotificationValue = ulTaskNotifyTake( pdFALSE, pdMS_TO_TICKS( defenderexampleMS_TO_WAIT_FOR_NOTIFICATION ) ); configASSERT( ulNotificationValue != 0UL ); /* The callback sets the xReturnStatus member of the context. */ if( xApplicationDefinedContext.xReturnStatus == MQTTSuccess ) { LogInfo( ( "Received subscribe ack for defender topics." ) ); } else { LogError( ( "Failed to subscribe to defender topics." ) ); } return xApplicationDefinedContext.xReturnStatus == MQTTSuccess; } /*-----------------------------------------------------------*/ static void prvSubscribeCommandCallback( void * pxCommandContext, MQTTAgentReturnInfo_t * pxReturnInfo ) { bool xSubscriptionAdded = false; MQTTAgentCommandContext_t * pxApplicationDefinedContext = ( MQTTAgentCommandContext_t * ) pxCommandContext; /* Store the result in the application defined context so the calling task * can check it. */ pxApplicationDefinedContext->xReturnStatus = pxReturnInfo->returnCode; /* Check if the subscribe operation is a success. */ if( pxReturnInfo->returnCode == MQTTSuccess ) { /* Add subscription so that incoming publishes are routed to the application * callback. */ xSubscriptionAdded = addSubscription( ( SubscriptionElement_t * ) xGlobalMqttAgentContext.pIncomingCallbackContext, DEFENDER_API_JSON_ACCEPTED( democonfigCLIENT_IDENTIFIER ), DEFENDER_API_LENGTH_JSON_ACCEPTED( democonfigCLIENT_IDENTIFIER_LENGTH ), prvIncomingAcceptedPublishCallback, pxApplicationDefinedContext ); if( xSubscriptionAdded == false ) { LogError( ( "Failed to register an incoming publish callback for topic %.*s.", DEFENDER_API_LENGTH_JSON_ACCEPTED( democonfigCLIENT_IDENTIFIER_LENGTH ), DEFENDER_API_JSON_ACCEPTED( democonfigCLIENT_IDENTIFIER ) ) ); } xSubscriptionAdded = addSubscription( ( SubscriptionElement_t * ) xGlobalMqttAgentContext.pIncomingCallbackContext, DEFENDER_API_JSON_REJECTED( democonfigCLIENT_IDENTIFIER ), DEFENDER_API_LENGTH_JSON_REJECTED( democonfigCLIENT_IDENTIFIER_LENGTH ), prvIncomingRejectedPublishCallback, pxApplicationDefinedContext ); if( xSubscriptionAdded == false ) { LogError( ( "Failed to register an incoming publish callback for topic %.*s.", DEFENDER_API_LENGTH_JSON_REJECTED( democonfigCLIENT_IDENTIFIER_LENGTH ), DEFENDER_API_JSON_REJECTED( democonfigCLIENT_IDENTIFIER ) ) ); } } xTaskNotifyGive( pxApplicationDefinedContext->xTaskToNotify ); } /*-----------------------------------------------------------*/ static void prvIncomingAcceptedPublishCallback( void * pxSubscriptionContext, MQTTPublishInfo_t * pxPublishInfo ) { bool xValidationResult; MQTTAgentCommandContext_t * pxApplicationDefinedContext = ( MQTTAgentCommandContext_t * ) pxSubscriptionContext; /* Check if the response is valid and is for the report we * published. If so, report was accepted. */ xValidationResult = prvValidateDefenderResponse( pxPublishInfo->pPayload, pxPublishInfo->payloadLength ); if( xValidationResult == true ) { LogInfo( ( "The defender report was accepted by the service. Response: %.*s.", ( int ) pxPublishInfo->payloadLength, ( const char * ) pxPublishInfo->pPayload ) ); xReportStatus = ReportStatusAccepted; } /* Send a notification to the task in case it is waiting for this incoming * message. */ xTaskNotifyGive( pxApplicationDefinedContext->xTaskToNotify ); } /*-----------------------------------------------------------*/ static void prvIncomingRejectedPublishCallback( void * pxSubscriptionContext, MQTTPublishInfo_t * pxPublishInfo ) { bool xValidationResult; MQTTAgentCommandContext_t * pxApplicationDefinedContext = ( MQTTAgentCommandContext_t * ) pxSubscriptionContext; /* Check if the response is valid and is for the report we * published. If so, report was rejected. */ xValidationResult = prvValidateDefenderResponse( pxPublishInfo->pPayload, pxPublishInfo->payloadLength ); if( xValidationResult == true ) { LogError( ( "The defender report was rejected by the service. Response: %.*s.", ( int ) pxPublishInfo->payloadLength, ( const char * ) pxPublishInfo->pPayload ) ); xReportStatus = ReportStatusRejected; } /* Send a notification to the task in case it is waiting for this incoming * message. */ xTaskNotifyGive( pxApplicationDefinedContext->xTaskToNotify ); } /*-----------------------------------------------------------*/ static bool prvCollectDeviceMetrics( void ) { bool xStatus = false; eMetricsCollectorStatus eMetricsCollectorStatus; uint32_t ulNumOpenTcpPorts = 0UL, ulNumOpenUdpPorts = 0UL, ulNumEstablishedConnections = 0UL, i; UBaseType_t uxTasksWritten = { 0 }; TaskStatus_t pxTaskStatus = { 0 }; /* Collect bytes and packets sent and received. */ eMetricsCollectorStatus = eGetNetworkStats( &( xNetworkStats ) ); if( eMetricsCollectorStatus != eMetricsCollectorSuccess ) { LogError( ( "xGetNetworkStats failed. Status: %d.", eMetricsCollectorStatus ) ); } /* Collect a list of open TCP ports. */ if( eMetricsCollectorStatus == eMetricsCollectorSuccess ) { eMetricsCollectorStatus = eGetOpenTcpPorts( &( pusOpenTcpPorts[ 0 ] ), defenderexampleOPEN_TCP_PORTS_ARRAY_SIZE, &( ulNumOpenTcpPorts ) ); if( eMetricsCollectorStatus != eMetricsCollectorSuccess ) { LogError( ( "xGetOpenTcpPorts failed. Status: %d.", eMetricsCollectorStatus ) ); } } /* Collect a list of open UDP ports. */ if( eMetricsCollectorStatus == eMetricsCollectorSuccess ) { eMetricsCollectorStatus = eGetOpenUdpPorts( &( pusOpenUdpPorts[ 0 ] ), defenderexampleOPEN_UDP_PORTS_ARRAY_SIZE, &( ulNumOpenUdpPorts ) ); if( eMetricsCollectorStatus != eMetricsCollectorSuccess ) { LogError( ( "xGetOpenUdpPorts failed. Status: %d.", eMetricsCollectorStatus ) ); } } /* Collect a list of established connections. */ if( eMetricsCollectorStatus == eMetricsCollectorSuccess ) { eMetricsCollectorStatus = eGetEstablishedConnections( &( pxEstablishedConnections[ 0 ] ), defenderexampleESTABLISHED_CONNECTIONS_ARRAY_SIZE, &( ulNumEstablishedConnections ) ); if( eMetricsCollectorStatus != eMetricsCollectorSuccess ) { LogError( ( "GetEstablishedConnections failed. Status: %d.", eMetricsCollectorStatus ) ); } } /* Collect custom metrics. This demo sends this tasks stack high water mark * as a number type custom metric and the current task ids as a list of * numbers type custom metric. */ if( eMetricsCollectorStatus == eMetricsCollectorSuccess ) { vTaskGetInfo( /* Query this task. */ NULL, &pxTaskStatus, /* Include the stack high water mark value. */ pdTRUE, /* Don't include the task state in the TaskStatus_t structure. */ 0 ); uxTasksWritten = uxTaskGetSystemState( pxTaskList, defenderexampleCUSTOM_METRICS_TASKS_ARRAY_SIZE, NULL ); if( uxTasksWritten == 0 ) { eMetricsCollectorStatus = eMetricsCollectorCollectionFailed; LogError( ( "Failed to collect system state. uxTaskGetSystemState() failed due to insufficient buffer space.", eMetricsCollectorStatus ) ); } else { for( i = 0; i < uxTasksWritten; i++ ) { pulCustomMetricsTaskNumbers[ i ] = pxTaskList[ i ].xTaskNumber; } } } /* Populate device metrics. */ if( eMetricsCollectorStatus == eMetricsCollectorSuccess ) { xStatus = true; xDeviceMetrics.pxNetworkStats = &( xNetworkStats ); xDeviceMetrics.pusOpenTcpPortsArray = &( pusOpenTcpPorts[ 0 ] ); xDeviceMetrics.ulOpenTcpPortsArrayLength = ulNumOpenTcpPorts; xDeviceMetrics.pusOpenUdpPortsArray = &( pusOpenUdpPorts[ 0 ] ); xDeviceMetrics.ulOpenUdpPortsArrayLength = ulNumOpenUdpPorts; xDeviceMetrics.pxEstablishedConnectionsArray = &( pxEstablishedConnections[ 0 ] ); xDeviceMetrics.ulEstablishedConnectionsArrayLength = ulNumEstablishedConnections; xDeviceMetrics.ulStackHighWaterMark = pxTaskStatus.usStackHighWaterMark; xDeviceMetrics.pulTaskIdsArray = pulCustomMetricsTaskNumbers; xDeviceMetrics.ulTaskIdsArrayLength = uxTasksWritten; } return xStatus; } /*-----------------------------------------------------------*/ static bool prvGenerateDeviceMetricsReport( uint32_t * pulOutReportLength ) { bool xStatus = false; eReportBuilderStatus eReportBuilderStatus; /* Generate the metrics report in the format expected by the AWS IoT Device * Defender Service. */ eReportBuilderStatus = eGenerateJsonReport( &( pcDeviceMetricsJsonReport[ 0 ] ), defenderexampleDEVICE_METRICS_REPORT_BUFFER_SIZE, &( xDeviceMetrics ), defenderexampleDEVICE_METRICS_REPORT_MAJOR_VERSION, defenderexampleDEVICE_METRICS_REPORT_MINOR_VERSION, ulReportId, pulOutReportLength ); if( eReportBuilderStatus != eReportBuilderSuccess ) { LogError( ( "GenerateJsonReport failed. Status: %d.", eReportBuilderStatus ) ); } else { LogDebug( ( "Generated Report: %.*s.", *pulOutReportLength, &( pcDeviceMetricsJsonReport[ 0 ] ) ) ); xStatus = true; } return xStatus; } /*-----------------------------------------------------------*/ static bool prvPublishDeviceMetricsReport( uint32_t reportLength ) { static MQTTPublishInfo_t xPublishInfo = { 0 }; MQTTAgentCommandInfo_t xCommandParams = { 0 }; MQTTStatus_t xCommandAdded; xPublishInfo.qos = MQTTQoS1; xPublishInfo.pTopicName = DEFENDER_API_JSON_PUBLISH( democonfigCLIENT_IDENTIFIER ); xPublishInfo.topicNameLength = DEFENDER_API_LENGTH_JSON_PUBLISH( democonfigCLIENT_IDENTIFIER_LENGTH ); xPublishInfo.pPayload = &( pcDeviceMetricsJsonReport[ 0 ] ); xPublishInfo.payloadLength = reportLength; xCommandParams.blockTimeMs = defenderexampleMAX_COMMAND_SEND_BLOCK_TIME_MS; /* We do not need a completion callback here since we expect to get a * response on the appropriate topics for accepted or rejected reports. */ xCommandParams.cmdCompleteCallback = NULL; xCommandAdded = MQTTAgent_Publish( &xGlobalMqttAgentContext, &xPublishInfo, &xCommandParams ); return xCommandAdded == MQTTSuccess; } /*-----------------------------------------------------------*/ static bool prvValidateDefenderResponse( const char * pcDefenderResponse, uint32_t ulDefenderResponseLength ) { bool xStatus = false; JSONStatus_t eJsonResult = JSONSuccess; char * ucReportIdString = NULL; size_t xReportIdStringLength; uint32_t ulReportIdInResponse; configASSERT( pcDefenderResponse != NULL ); /* Is the response a valid JSON? */ eJsonResult = JSON_Validate( pcDefenderResponse, ulDefenderResponseLength ); if( eJsonResult != JSONSuccess ) { LogError( ( "Invalid response from AWS IoT Device Defender Service: %.*s.", ( int ) ulDefenderResponseLength, pcDefenderResponse ) ); } if( eJsonResult == JSONSuccess ) { /* Search the ReportId key in the response. */ eJsonResult = JSON_Search( ( char * ) pcDefenderResponse, ulDefenderResponseLength, defenderexampleRESPONSE_REPORT_ID_FIELD, defenderexampleRESPONSE_REPORT_ID_FIELD_LENGTH, &( ucReportIdString ), &( xReportIdStringLength ) ); if( eJsonResult != JSONSuccess ) { LogError( ( "%s key not found in the response from the" "AWS IoT Device Defender Service: %.*s.", defenderexampleRESPONSE_REPORT_ID_FIELD, ( int ) ulDefenderResponseLength, pcDefenderResponse ) ); } } if( eJsonResult == JSONSuccess ) { ulReportIdInResponse = ( uint32_t ) strtoul( ucReportIdString, NULL, 10 ); /* Is the report ID present in the response same as was sent in the * published report? */ if( ulReportIdInResponse == ulReportId ) { LogInfo( ( "A valid response with report ID %u received from the " "AWS IoT Device Defender Service.", ulReportId ) ); xStatus = true; } else { LogError( ( "Unexpected %s found in the response from the AWS" "IoT Device Defender Service. Expected: %u, Found: %u, " "Complete Response: %.*s.", defenderexampleRESPONSE_REPORT_ID_FIELD, ulReportId, ulReportIdInResponse, ( int ) ulDefenderResponseLength, pcDefenderResponse ) ); } } return xStatus; } /*-----------------------------------------------------------*/ void prvDefenderDemoTask( void * pvParameters ) { bool xStatus = false; uint32_t ulReportLength = 0UL; uint32_t ulNotificationValue; /* Remove compiler warnings about unused parameters. */ ( void ) pvParameters; /* Start with report not received. */ xReportStatus = ReportStatusNotReceived; /******************** Subscribe to Defender topics. *******************/ /* Attempt to subscribe to the AWS IoT Device Defender topics. * Since this demo is using JSON, in prvSubscribeToDefenderTopics() we * subscribe to the topics to which accepted and rejected responses are * received from after publishing a JSON report. * * This demo uses a constant #democonfigCLIENT_IDENTIFIER known at compile time * therefore we use macros to assemble defender topic strings. * If the thing name is known at run time, then we could use the API * #Defender_GetTopic instead. * * For example, for the JSON accepted responses topic: * * #define TOPIC_BUFFER_LENGTH ( 256U ) * * // Every device should have a unique thing name registered with AWS IoT Core. * // This example assumes that the device has a unique serial number which is * // registered as the thing name with AWS IoT Core. * const char * pThingName = GetDeviceSerialNumber(); * uint16_t thingNameLength = ( uint16_t )strlen( pThingname ); * char topicBuffer[ TOPIC_BUFFER_LENGTH ] = { 0 }; * uint16_t topicLength = 0; * DefenderStatus_t status = DefenderSuccess; * * status = Defender_GetTopic( &( topicBuffer[ 0 ] ), * TOPIC_BUFFER_LENGTH, * pThingName, * thingNameLength, * DefenderJsonReportAccepted, * &( topicLength ) ); */ LogInfo( ( "Subscribing to defender topics..." ) ); xStatus = prvSubscribeToDefenderTopics(); if( xStatus == true ) { for( ; ; ) { xStatus = true; /* Set a report Id to be used. * * !!!NOTE!!! * This demo sets the report ID to xTaskGetTickCount(), which may collide * if the device is reset. Reports for a Thing with a previously used * report ID will be assumed to be duplicates and discarded by the Device * Defender service. The report ID needs to be unique per report sent with * a given Thing. We recommend using an increasing unique id such as the * current timestamp. */ ulReportId = ( uint32_t ) xTaskGetTickCount(); xReportStatus = ReportStatusNotReceived; /*********************** Collect device metrics. **********************/ /* We then need to collect the metrics that will be sent to the AWS IoT * Device Defender service. This demo uses the functions declared in * in metrics_collector.h to collect network metrics. For this demo, the * implementation of these functions are in metrics_collector.c and * collects metrics using tcp_netstat utility for FreeRTOS+TCP. */ if( xStatus == true ) { LogInfo( ( "Collecting device metrics..." ) ); xStatus = prvCollectDeviceMetrics(); if( xStatus != true ) { LogError( ( "Failed to collect device metrics." ) ); } } /********************** Generate defender report. *********************/ /* The data needs to be incorporated into a JSON formatted report, * which follows the format expected by the Device Defender service. * This format is documented here: * https://docs.aws.amazon.com/iot/latest/developerguide/detect-device-side-metrics.html */ if( xStatus == true ) { LogInfo( ( "Generating device defender report..." ) ); xStatus = prvGenerateDeviceMetricsReport( &( ulReportLength ) ); if( xStatus != true ) { LogError( ( "Failed to generate device defender report." ) ); } } /********************** Publish defender report. **********************/ /* The report is then published to the Device Defender service. This report * is published to the MQTT topic for publishing JSON reports. As before, * we use the defender library macros to create the topic string, though * #Defender_GetTopic could be used if the Thing name is acquired at * run time */ if( xStatus == true ) { LogInfo( ( "Publishing device defender report..." ) ); xStatus = prvPublishDeviceMetricsReport( ulReportLength ); if( xStatus != true ) { LogError( ( "Failed to publish device defender report." ) ); } } /* Wait for the response to our report. */ ulNotificationValue = ulTaskNotifyTake( pdFALSE, pdMS_TO_TICKS( defenderexampleMS_TO_WAIT_FOR_NOTIFICATION ) ); if( xReportStatus == ReportStatusNotReceived ) { LogError( ( "Failed to receive response from AWS IoT Device Defender Service." ) ); xStatus = false; } LogDebug( ( "Sleeping until next report." ) ); vTaskDelay( pdMS_TO_TICKS( defenderexampleMS_BETWEEN_REPORTS ) ); } } } /*-----------------------------------------------------------*/
477112.c
/////////////////////////////////////////////////////////////////// // // Usb2020Fpga.c // - created using the xxd command of Debian based systems // - created from 'usb_2020.bin' // - xxd -i usb_2020.bin > Usb2020Fpga.c /////////////////////////////////////////////////////////////////// const unsigned char usb_2020_bin[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x99, 0x30, 0xa1, 0x00, 0x07, 0x20, 0x00, 0x31, 0x61, 0x09, 0xee, 0x33, 0x21, 0x3c, 0x0f, 0x31, 0xa1, 0x00, 0x89, 0x31, 0x41, 0x2f, 0x08, 0x31, 0xc2, 0x02, 0x21, 0x80, 0x93, 0x30, 0xe1, 0xff, 0xcf, 0x30, 0xc1, 0x00, 0x81, 0x31, 0x81, 0x08, 0x81, 0x32, 0x01, 0x00, 0x1f, 0x32, 0xc1, 0x00, 0x05, 0x32, 0xe1, 0x00, 0x04, 0x32, 0xa1, 0x00, 0x0e, 0x32, 0x61, 0x00, 0x00, 0x32, 0x81, 0x00, 0x00, 0x33, 0x41, 0x18, 0xf2, 0x33, 0x62, 0x00, 0x00, 0x00, 0x00, 0x30, 0x22, 0x00, 0x00, 0x00, 0x00, 0x30, 0xa1, 0x00, 0x01, 0x50, 0x60, 0x00, 0x01, 0x23, 0xa2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x10, 0x00, 0x10, 0x01, 0xca, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0xa0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x01, 0x8c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x01, 0x8c, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0x61, 0x60, 0x02, 0x08, 0x04, 0x01, 0x8c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x61, 0x01, 0x02, 0x00, 0x81, 0x01, 0x8e, 0x84, 0x20, 0x61, 0x81, 0x04, 0x00, 0x04, 0x03, 0x84, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x01, 0x8c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x61, 0x01, 0x02, 0x00, 0x81, 0x01, 0x8e, 0x84, 0x20, 0x61, 0x81, 0x04, 0x00, 0x04, 0x03, 0x84, 0x8c, 0x62, 0x61, 0x60, 0x02, 0x08, 0x04, 0x01, 0x8c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0x61, 0x60, 0x02, 0x08, 0x04, 0x01, 0x8c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x61, 0x01, 0x02, 0x00, 0x81, 0x01, 0x8e, 0x84, 0x20, 0x61, 0x81, 0x04, 0x00, 0x04, 0x03, 0x84, 0x8c, 0x62, 0x61, 0x60, 0x02, 0x08, 0x04, 0x01, 0x8c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x30, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x0e, 0x30, 0x30, 0x00, 0x07, 0x00, 0x00, 0x08, 0x10, 0x70, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbf, 0xbf, 0xff, 0xfe, 0xff, 0xf7, 0xff, 0xf3, 0xff, 0xdd, 0xff, 0xf5, 0x00, 0x00, 0x00, 0x00, 0xff, 0xbb, 0xff, 0xdd, 0xff, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6a, 0x6a, 0x3c, 0x3c, 0xff, 0x80, 0xb0, 0xf0, 0x3f, 0xc0, 0x3c, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x80, 0xff, 0xff, 0x88, 0x00, 0x80, 0xa0, 0x55, 0xaa, 0xff, 0xff, 0x08, 0x00, 0xf7, 0xf5, 0x7f, 0xff, 0xf0, 0x0f, 0x78, 0xf0, 0xc0, 0xff, 0x55, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x80, 0xff, 0xff, 0xdf, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdf, 0xdf, 0xdf, 0xdf, 0xbf, 0xbf, 0xff, 0x5f, 0xf7, 0xf7, 0xff, 0x3f, 0xbf, 0xbf, 0xbf, 0xbf, 0x6f, 0xf6, 0x6f, 0xf6, 0x7b, 0xde, 0x7d, 0xbe, 0x7d, 0xbe, 0x6f, 0xf6, 0x7b, 0xde, 0x7d, 0xbe, 0x7b, 0xde, 0x7b, 0xde, 0x7b, 0xde, 0x33, 0xcc, 0xdd, 0xff, 0xff, 0x77, 0xff, 0x77, 0xdd, 0xff, 0xf5, 0xff, 0xdf, 0xdf, 0xff, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xff, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0xff, 0xff, 0x96, 0x69, 0xff, 0xff, 0x66, 0x66, 0x7b, 0xde, 0x7d, 0xbe, 0x7b, 0xde, 0x7b, 0xde, 0x7b, 0xde, 0x7b, 0xde, 0x96, 0x69, 0x33, 0xcc, 0x69, 0x96, 0x3c, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x28, 0x30, 0x00, 0x01, 0x28, 0x30, 0x00, 0x09, 0xac, 0x78, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x00, 0x08, 0x38, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x01, 0x2c, 0x78, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x00, 0x8c, 0x70, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x8d, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x09, 0x28, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x24, 0x70, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x21, 0x36, 0x95, 0xf3, 0x21, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x8d, 0x09, 0x24, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x88, 0x11, 0x20, 0x00, 0x00, 0x00, 0x09, 0x29, 0x00, 0x14, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x0d, 0x01, 0x28, 0x00, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x8c, 0x40, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x8c, 0x40, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x21, 0x00, 0x14, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x8d, 0x09, 0x20, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x01, 0x06, 0x95, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x8d, 0x01, 0x25, 0x48, 0x14, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfa, 0x05, 0x4e, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x61, 0x02, 0x40, 0x46, 0x00, 0x00, 0x00, 0xff, 0xcf, 0xf0, 0xf0, 0xcc, 0xcc, 0xff, 0x00, 0xaa, 0xaa, 0xcc, 0xcc, 0xff, 0x00, 0xaa, 0xaa, 0xcc, 0xcc, 0xff, 0x00, 0xaa, 0xaa, 0x00, 0xff, 0x80, 0x00, 0x20, 0x00, 0x6a, 0xaa, 0xff, 0x0f, 0x80, 0x80, 0xff, 0xff, 0x80, 0x00, 0xbf, 0xff, 0x33, 0xcc, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x5f, 0xa0, 0xff, 0xff, 0xa0, 0xa0, 0xf5, 0xf5, 0x5a, 0xf0, 0xa0, 0xa0, 0xff, 0xfd, 0xff, 0xce, 0xc0, 0x00, 0x20, 0x00, 0x80, 0x80, 0xd2, 0xd2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdd, 0xdd, 0x5f, 0xa0, 0xf8, 0xf0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xaa, 0x00, 0xff, 0xff, 0x55, 0xaa, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdd, 0xff, 0x33, 0x33, 0x55, 0x55, 0x00, 0xff, 0x55, 0x55, 0x0f, 0x0f, 0x55, 0x55, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x55, 0x55, 0x00, 0xff, 0x33, 0x33, 0x0f, 0x0f, 0x33, 0x33, 0x55, 0x55, 0x0f, 0x0f, 0x00, 0xff, 0x33, 0x33, 0x0f, 0x0f, 0x0f, 0x0f, 0x55, 0x55, 0xf0, 0xf0, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcc, 0x33, 0xcc, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x33, 0xcc, 0x7b, 0xde, 0x7d, 0xbe, 0x7b, 0xde, 0x7b, 0xde, 0x6f, 0xf6, 0x7b, 0xde, 0xff, 0xff, 0xaa, 0xaa, 0xaa, 0xaa, 0xff, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xaa, 0xaa, 0xff, 0x00, 0xf0, 0xf0, 0xcc, 0xcc, 0xcc, 0xcc, 0xff, 0x00, 0xaa, 0xaa, 0x0f, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x08, 0x01, 0x00, 0x00, 0x40, 0x00, 0x04, 0x12, 0x30, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x67, 0x0d, 0x90, 0x48, 0x20, 0x04, 0x12, 0x13, 0x31, 0x01, 0x90, 0x40, 0x00, 0x04, 0x12, 0x30, 0x6f, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0xce, 0x00, 0x48, 0x20, 0x04, 0x12, 0x20, 0xb2, 0x00, 0x08, 0x48, 0x20, 0x04, 0x12, 0x25, 0x49, 0x0b, 0x9c, 0x48, 0x20, 0x04, 0x12, 0x08, 0xd0, 0x01, 0x9c, 0x00, 0x00, 0x04, 0x12, 0x00, 0x04, 0xc0, 0x0c, 0x48, 0x20, 0x04, 0x12, 0x10, 0xc2, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x02, 0x00, 0xce, 0x00, 0x48, 0x20, 0x00, 0x00, 0x33, 0x80, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x98, 0x40, 0x00, 0x04, 0x12, 0x24, 0x49, 0x01, 0x14, 0x40, 0x00, 0x04, 0x12, 0x00, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x9c, 0x48, 0x20, 0x04, 0x12, 0x19, 0x73, 0x01, 0x14, 0x48, 0x20, 0x04, 0x12, 0x34, 0x6b, 0x00, 0x00, 0x40, 0x00, 0x04, 0x12, 0x00, 0x21, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x28, 0x72, 0x00, 0x00, 0x40, 0x00, 0x04, 0x12, 0x10, 0x60, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x00, 0x09, 0x14, 0x48, 0x20, 0x04, 0x12, 0x08, 0x63, 0x8a, 0x00, 0x48, 0x20, 0x00, 0x00, 0x39, 0x80, 0xce, 0x00, 0x48, 0x20, 0x04, 0x12, 0x19, 0x41, 0x4c, 0x00, 0x48, 0x20, 0x00, 0x00, 0x28, 0x80, 0xce, 0x00, 0x48, 0x20, 0x00, 0x00, 0x28, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x02, 0x81, 0x04, 0x84, 0x00, 0x04, 0x21, 0x21, 0x51, 0x00, 0x04, 0x00, 0x00, 0x00, 0x21, 0x00, 0x01, 0x01, 0x04, 0x00, 0x00, 0x04, 0x21, 0x00, 0x49, 0x83, 0x04, 0x84, 0x20, 0x04, 0x21, 0x21, 0xc3, 0x89, 0x06, 0x84, 0x00, 0x04, 0x21, 0x24, 0x41, 0x88, 0x00, 0x84, 0x00, 0x00, 0x00, 0x28, 0x00, 0x8b, 0x04, 0x84, 0x20, 0x14, 0x21, 0x38, 0xd1, 0x8b, 0x14, 0x84, 0x20, 0x04, 0x21, 0x22, 0xc5, 0x83, 0x16, 0x04, 0x28, 0x04, 0x21, 0x00, 0xc3, 0x01, 0x14, 0x00, 0x00, 0x04, 0x21, 0x40, 0x49, 0x8b, 0x14, 0x84, 0x20, 0x04, 0x21, 0x2a, 0xe3, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x8a, 0x00, 0x84, 0x30, 0x00, 0x00, 0x21, 0x80, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0x14, 0x84, 0x00, 0x04, 0x21, 0x00, 0x20, 0x81, 0x14, 0x84, 0x00, 0x04, 0x21, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x14, 0x04, 0x00, 0x04, 0x21, 0x28, 0x90, 0x8b, 0x14, 0x84, 0x20, 0x04, 0x21, 0x02, 0xa0, 0x81, 0x04, 0x84, 0x00, 0x00, 0x20, 0x00, 0x47, 0x83, 0x04, 0x04, 0x00, 0x04, 0x20, 0x28, 0xc3, 0x81, 0x04, 0x04, 0x00, 0x04, 0x20, 0x28, 0x63, 0x80, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0x03, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x80, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x80, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x40, 0x03, 0xc0, 0xc0, 0x08, 0x00, 0x22, 0x00, 0x00, 0xe2, 0xc5, 0x47, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0xe0, 0x20, 0x03, 0xd3, 0xe0, 0x00, 0xc3, 0xc3, 0x00, 0x03, 0x00, 0x07, 0xc0, 0x00, 0x03, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x01, 0xc1, 0x07, 0xc0, 0x80, 0x13, 0xc8, 0xcb, 0x80, 0xc3, 0xcf, 0xe0, 0xc0, 0xa3, 0x08, 0x02, 0x09, 0x00, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x00, 0xc3, 0x00, 0xc0, 0xd3, 0x00, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x03, 0x23, 0x13, 0x00, 0x00, 0x13, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xe2, 0xe0, 0x00, 0x00, 0x00, 0xc0, 0xc3, 0x02, 0xc0, 0x00, 0x00, 0x80, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xc0, 0x00, 0xc0, 0xc0, 0x22, 0x13, 0x00, 0x04, 0xc3, 0x00, 0x13, 0xe0, 0xc3, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc4, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0xf3, 0x40, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc4, 0xc0, 0xc0, 0x00, 0x4b, 0x00, 0x00, 0xc0, 0xe3, 0xa2, 0x44, 0x00, 0x63, 0xcf, 0xc0, 0xc3, 0x00, 0xc3, 0x00, 0x80, 0x00, 0x80, 0xcb, 0x13, 0x00, 0xc1, 0x00, 0xc0, 0xc7, 0x07, 0x45, 0xdb, 0x80, 0x03, 0xc8, 0x00, 0xc7, 0x03, 0xc9, 0xd3, 0x00, 0x03, 0xc8, 0x00, 0xc7, 0x83, 0xcb, 0x01, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x00, 0x40, 0x00, 0x00, 0x84, 0x00, 0xa0, 0x00, 0x20, 0x20, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x20, 0x00, 0x00, 0x08, 0x00, 0x10, 0x08, 0x00, 0x02, 0x00, 0x09, 0x02, 0x00, 0x40, 0xc0, 0x48, 0x02, 0x48, 0x00, 0x10, 0x10, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x40, 0x05, 0x04, 0x01, 0xc0, 0x40, 0x80, 0x04, 0x00, 0x00, 0x08, 0x82, 0xa0, 0x00, 0x00, 0x04, 0x08, 0x00, 0x04, 0x01, 0x00, 0x02, 0x80, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x05, 0x00, 0x14, 0x10, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x10, 0x00, 0x20, 0x00, 0x00, 0x80, 0x48, 0x05, 0x05, 0x00, 0x02, 0x10, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x10, 0x40, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x0a, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0a, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x80, 0x00, 0x40, 0x00, 0x00, 0x04, 0x40, 0x04, 0x00, 0x00, 0x20, 0x00, 0x80, 0x11, 0x00, 0x0c, 0x00, 0x02, 0x00, 0x02, 0x40, 0x00, 0x00, 0x03, 0x00, 0x04, 0x04, 0x40, 0x40, 0x00, 0x80, 0x01, 0x00, 0x00, 0x04, 0x01, 0x40, 0x02, 0x00, 0x01, 0x00, 0x00, 0x04, 0x03, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7a, 0xe0, 0x0a, 0x00, 0x00, 0x73, 0x80, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x14, 0x00, 0x03, 0x80, 0x01, 0x60, 0x00, 0x00, 0x00, 0x01, 0x20, 0x05, 0xa8, 0x00, 0x26, 0x80, 0x40, 0x10, 0x07, 0xdf, 0x1f, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x28, 0x00, 0x05, 0x1c, 0x60, 0xa2, 0x9a, 0x14, 0x50, 0x24, 0x0b, 0x5d, 0x00, 0xa0, 0x1a, 0x00, 0x34, 0x70, 0x07, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x0e, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x20, 0x0a, 0x10, 0x00, 0x03, 0xc0, 0x00, 0x00, 0xc0, 0x0a, 0x0f, 0x00, 0x70, 0x80, 0x08, 0x00, 0xe0, 0x30, 0x5e, 0x71, 0x52, 0x00, 0x00, 0x60, 0x10, 0x06, 0xc0, 0x08, 0x02, 0x00, 0x08, 0x00, 0x10, 0x4f, 0x00, 0x16, 0x11, 0x40, 0x0c, 0x01, 0x20, 0x18, 0x80, 0x01, 0x00, 0x87, 0x1e, 0x40, 0x22, 0x08, 0x40, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x10, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x40, 0x34, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x88, 0x00, 0x00, 0x00, 0x08, 0x04, 0x06, 0x81, 0xc8, 0x72, 0x70, 0x85, 0x06, 0x90, 0xa0, 0x34, 0x1e, 0x30, 0x12, 0x50, 0x02, 0x00, 0x10, 0x01, 0x40, 0x34, 0x02, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x23, 0x80, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00, 0x03, 0x21, 0xa0, 0x50, 0x00, 0x04, 0x80, 0x0e, 0x0c, 0x01, 0xc0, 0x00, 0x38, 0x30, 0x12, 0x08, 0x02, 0xa0, 0x40, 0x1c, 0x78, 0xe3, 0x82, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x03, 0x00, 0xb8, 0x20, 0x95, 0x48, 0x08, 0x01, 0x14, 0x01, 0x38, 0x30, 0x03, 0x00, 0x0c, 0x00, 0x00, 0x1c, 0x14, 0x20, 0x87, 0x48, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, 0x0e, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x31, 0x01, 0xb0, 0x00, 0x00, 0x20, 0x28, 0x00, 0x00, 0x04, 0x08, 0x02, 0x04, 0xd0, 0x29, 0x03, 0x40, 0x00, 0x14, 0x10, 0x64, 0x00, 0x38, 0x02, 0xa0, 0x0f, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0xa0, 0x00, 0x00, 0x10, 0x0a, 0x00, 0x01, 0x00, 0x20, 0x01, 0x10, 0x14, 0x60, 0xd0, 0x28, 0x08, 0x20, 0x10, 0x0c, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x14, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x08, 0x00, 0x04, 0x80, 0x10, 0x08, 0xa1, 0xd0, 0x14, 0x08, 0x20, 0x52, 0x58, 0x00, 0x40, 0x00, 0x00, 0x7a, 0xe1, 0x80, 0x0e, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x87, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x22, 0x68, 0x00, 0x56, 0x00, 0xc2, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x40, 0x00, 0x08, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0xe3, 0x50, 0x08, 0x00, 0x00, 0x04, 0x00, 0x91, 0x11, 0x49, 0x08, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x02, 0xc4, 0x09, 0x04, 0x28, 0x10, 0x00, 0x22, 0x20, 0x94, 0x08, 0x80, 0x08, 0x00, 0x00, 0x80, 0x00, 0x0f, 0x01, 0x44, 0x04, 0x58, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0xa2, 0x00, 0x02, 0x44, 0x34, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x06, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x40, 0x40, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x10, 0x02, 0x10, 0x90, 0x00, 0x18, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x02, 0x00, 0x80, 0x00, 0x22, 0x00, 0x44, 0x20, 0x01, 0x00, 0x28, 0x02, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x02, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x19, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x50, 0x09, 0x01, 0x40, 0x22, 0x10, 0x34, 0x38, 0x04, 0x01, 0x41, 0x0a, 0x00, 0xc3, 0x08, 0x00, 0x00, 0x00, 0xa0, 0x02, 0x11, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x06, 0x4c, 0x00, 0x00, 0x00, 0x0e, 0x60, 0xe0, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x03, 0x02, 0x08, 0x00, 0x00, 0x0a, 0x05, 0xe0, 0x03, 0x00, 0x08, 0x30, 0x10, 0x00, 0x39, 0x01, 0xc0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x30, 0x05, 0x01, 0x85, 0x30, 0x00, 0x00, 0x00, 0x48, 0x08, 0x61, 0x80, 0x1e, 0x4c, 0x1a, 0x23, 0xcc, 0x30, 0x01, 0x85, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x38, 0x01, 0x80, 0x00, 0x81, 0x00, 0x60, 0x01, 0x38, 0x81, 0x80, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x60, 0x03, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0x08, 0x00, 0x41, 0x00, 0xe0, 0x04, 0x00, 0x02, 0x00, 0x00, 0x70, 0x08, 0x08, 0x04, 0x00, 0x00, 0x30, 0x07, 0xc0, 0x28, 0x0d, 0x90, 0x20, 0x61, 0xf0, 0x00, 0x00, 0x10, 0x01, 0xa0, 0x0e, 0x00, 0xc1, 0x80, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0f, 0x82, 0x28, 0x00, 0x41, 0x00, 0xe3, 0x84, 0x0c, 0x00, 0x00, 0x08, 0x30, 0x28, 0x00, 0x00, 0x0e, 0x74, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x30, 0x84, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x41, 0x82, 0x38, 0x00, 0x00, 0x00, 0x10, 0x00, 0x44, 0x00, 0x00, 0x60, 0x00, 0x30, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x80, 0x30, 0x64, 0x80, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x32, 0x80, 0x16, 0x50, 0x00, 0x80, 0x0f, 0x06, 0x00, 0x00, 0x00, 0x01, 0x00, 0xab, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x01, 0xe0, 0x60, 0x10, 0x00, 0x00, 0x50, 0x00, 0xe0, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x1b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x34, 0x00, 0x15, 0x08, 0x00, 0x04, 0x00, 0x81, 0x3e, 0x14, 0x12, 0x68, 0x00, 0x02, 0x80, 0x00, 0xb4, 0x7b, 0xdf, 0x87, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x60, 0x23, 0xcf, 0x00, 0x02, 0x78, 0x1b, 0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x02, 0x80, 0x14, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x8e, 0x00, 0x30, 0x00, 0x00, 0x80, 0x01, 0xc0, 0x40, 0x00, 0x21, 0x80, 0x16, 0x02, 0x01, 0x40, 0x1e, 0x04, 0x28, 0x3a, 0x12, 0x02, 0x00, 0x00, 0x07, 0x01, 0xe4, 0x09, 0x01, 0x00, 0x05, 0xc0, 0x02, 0x00, 0x00, 0x00, 0x16, 0x00, 0x03, 0x80, 0x00, 0x70, 0xa0, 0x08, 0x10, 0x00, 0x04, 0x10, 0x80, 0x00, 0x00, 0x0a, 0x0e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0a, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x10, 0x30, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x1c, 0x3e, 0x00, 0x00, 0x1c, 0x44, 0x01, 0x98, 0xb0, 0x00, 0x1c, 0x02, 0x06, 0x12, 0xe0, 0x1e, 0x1e, 0x50, 0x19, 0x4b, 0x06, 0x00, 0xe0, 0x0e, 0x00, 0x30, 0x04, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x40, 0x00, 0x0c, 0x04, 0x01, 0x08, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x40, 0x48, 0x00, 0x00, 0x80, 0x20, 0x80, 0x40, 0x00, 0x00, 0x00, 0x04, 0x48, 0x08, 0x40, 0x02, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x28, 0x00, 0x00, 0x08, 0x00, 0x04, 0x42, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x40, 0x20, 0x40, 0x00, 0x42, 0x04, 0x00, 0x00, 0x00, 0x40, 0x40, 0x01, 0x88, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x94, 0x28, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x80, 0x44, 0x00, 0x01, 0x00, 0x80, 0x08, 0x40, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x81, 0x04, 0x00, 0x40, 0x04, 0x00, 0x04, 0x00, 0x00, 0x04, 0x04, 0x84, 0x04, 0x04, 0x00, 0x84, 0x04, 0x00, 0x04, 0x08, 0x04, 0x04, 0x20, 0x00, 0x00, 0x04, 0x00, 0x08, 0x18, 0x40, 0x01, 0x00, 0x08, 0x80, 0x00, 0x52, 0x08, 0x08, 0x0c, 0x02, 0x08, 0x8a, 0x0c, 0x08, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x4c, 0x19, 0x00, 0x08, 0x00, 0x80, 0x0c, 0x81, 0x44, 0x00, 0x40, 0x40, 0x84, 0x01, 0x00, 0x04, 0x4a, 0x00, 0x08, 0x80, 0x02, 0x00, 0x00, 0x44, 0x44, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x94, 0x02, 0x00, 0x84, 0x20, 0x04, 0x00, 0x84, 0x00, 0x00, 0x01, 0x40, 0x00, 0x14, 0x20, 0x04, 0x04, 0x08, 0x01, 0x84, 0x18, 0x04, 0x00, 0x88, 0x88, 0x00, 0x00, 0x02, 0x18, 0x80, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x30, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x06, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0a, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x06, 0x3a, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x60, 0x00, 0x0c, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x10, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x54, 0x06, 0x00, 0x09, 0x00, 0x00, 0x06, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x14, 0x04, 0x00, 0x00, 0x08, 0x04, 0x54, 0x00, 0x08, 0x00, 0x04, 0x00, 0x0a, 0x00, 0x04, 0x14, 0x00, 0x04, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x05, 0x00, 0x10, 0x00, 0x0a, 0x08, 0x04, 0x00, 0x00, 0x30, 0x00, 0x06, 0x00, 0x04, 0x50, 0xa0, 0x02, 0x00, 0x06, 0x00, 0x00, 0x04, 0x50, 0x00, 0x00, 0x00, 0x06, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x30, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x20, 0x50, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x30, 0x00, 0x50, 0x30, 0x00, 0x30, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x24, 0x00, 0x01, 0x50, 0x00, 0x00, 0x00, 0x30, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x30, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x10, 0x0e, 0x0c, 0x00, 0x50, 0x00, 0x00, 0x08, 0x10, 0x30, 0x00, 0x04, 0x00, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x0c, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x38, 0x08, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x00, 0x30, 0x04, 0x04, 0x00, 0x10, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, 0x0c, 0x50, 0x00, 0x00, 0x10, 0x78, 0x00, 0x00, 0x3e, 0x50, 0x10, 0x00, 0x80, 0x08, 0x00, 0x00, 0x38, 0x00, 0x06, 0x60, 0x01, 0x50, 0x00, 0x00, 0x7a, 0x52, 0x18, 0x58, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x1c, 0x3c, 0x00, 0x10, 0x20, 0x34, 0x08, 0x00, 0x00, 0x18, 0x00, 0x00, 0x30, 0x04, 0x00, 0x70, 0x30, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x30, 0x08, 0x00, 0x35, 0x00, 0x00, 0x00, 0x18, 0x70, 0x00, 0x08, 0x10, 0x70, 0x00, 0x00, 0x0c, 0x0d, 0x00, 0x0c, 0x1c, 0x00, 0x0c, 0x00, 0x30, 0x10, 0x00, 0x00, 0x00, 0x60, 0x10, 0x70, 0x60, 0x00, 0x00, 0x00, 0x70, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0xff, 0xee, 0xff, 0xaf, 0x00, 0x00, 0x00, 0x00, 0xff, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0xff, 0xff, 0xff, 0xef, 0xef, 0xff, 0xfa, 0x7f, 0xff, 0x80, 0x00, 0x20, 0x00, 0xcc, 0x00, 0x8c, 0xcc, 0xbf, 0xff, 0xff, 0xff, 0xdd, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0x22, 0xaa, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x7c, 0x7c, 0x7f, 0xff, 0xe0, 0x28, 0x77, 0xff, 0xfa, 0x05, 0xff, 0xff, 0xaa, 0x00, 0xee, 0xee, 0x88, 0x88, 0x7f, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x55, 0x8b, 0xbb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfd, 0xaf, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xa8, 0xff, 0xff, 0xdf, 0xdf, 0xff, 0x77, 0xdf, 0xdf, 0xff, 0xff, 0xdf, 0xff, 0xdf, 0xff, 0xdd, 0xff, 0xff, 0x77, 0xdf, 0xff, 0xbf, 0xff, 0xff, 0xcf, 0xff, 0xaf, 0xf7, 0xff, 0xbf, 0xff, 0xff, 0x7f, 0xbf, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0xff, 0x7f, 0xdf, 0xff, 0xff, 0x7f, 0xdf, 0xff, 0xdf, 0xff, 0xff, 0x7f, 0xdf, 0xff, 0xbf, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfd, 0xfd, 0xff, 0xff, 0x96, 0x96, 0xff, 0xff, 0x96, 0x69, 0xcc, 0x33, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xc3, 0x3c, 0xff, 0xff, 0x96, 0x69, 0xf0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x08, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x8c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x8c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x09, 0x2c, 0x70, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x08, 0x38, 0x00, 0x01, 0x28, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0xac, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x31, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x1b, 0xad, 0x4e, 0x15, 0x7b, 0x2d, 0x4e, 0x1d, 0x72, 0x0d, 0x4e, 0x1d, 0x7b, 0x2d, 0x4e, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x12, 0x08, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x28, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x21, 0x00, 0x14, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf2, 0x05, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x0d, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x48, 0x14, 0x32, 0x01, 0x02, 0x9d, 0xb3, 0x25, 0x42, 0x1d, 0x33, 0x25, 0x42, 0x9d, 0xb3, 0x21, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x1d, 0xb2, 0x01, 0x02, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xfb, 0xff, 0xff, 0x00, 0x0a, 0xee, 0xff, 0xff, 0xff, 0xdf, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xbf, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0x55, 0x55, 0x00, 0xff, 0x33, 0x33, 0x0f, 0x0f, 0xf0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x50, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x44, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xc0, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x00, 0xaa, 0xff, 0xff, 0x55, 0xaa, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf5, 0xf5, 0xff, 0xff, 0xff, 0x80, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0xee, 0xff, 0xff, 0xff, 0xee, 0xe0, 0xff, 0xff, 0xf7, 0xff, 0xff, 0x7f, 0xaf, 0xff, 0xcc, 0xcc, 0xf0, 0xf0, 0xaa, 0xaa, 0xcc, 0xcc, 0xf0, 0xf0, 0xcc, 0xcc, 0xff, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xaa, 0xaa, 0xff, 0x00, 0xaa, 0xaa, 0xf0, 0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xff, 0x00, 0xf0, 0xf0, 0xcc, 0xcc, 0xf0, 0xf0, 0x33, 0x33, 0xc3, 0xc3, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0f, 0xf0, 0x3c, 0x3c, 0x55, 0xaa, 0x55, 0xaa, 0x3c, 0x3c, 0x66, 0x66, 0x5a, 0x5a, 0x5a, 0x5a, 0x55, 0xaa, 0x3c, 0x3c, 0x33, 0xcc, 0x5a, 0x5a, 0x3c, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x20, 0x00, 0x02, 0x03, 0x83, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x35, 0x2f, 0x00, 0x00, 0x08, 0x20, 0x04, 0x10, 0x01, 0x64, 0x08, 0x00, 0x48, 0x20, 0x00, 0x00, 0x11, 0x00, 0x4d, 0x10, 0x48, 0x20, 0x04, 0x10, 0x11, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x80, 0x01, 0x90, 0x48, 0x20, 0x04, 0x12, 0x10, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x26, 0x00, 0x0c, 0x48, 0x20, 0x04, 0x12, 0x20, 0x08, 0x09, 0x90, 0x08, 0x20, 0x04, 0x12, 0x02, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x08, 0x20, 0x04, 0x12, 0x01, 0xe4, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0xce, 0x00, 0x48, 0x20, 0x04, 0x12, 0x24, 0xa0, 0x01, 0xcc, 0x48, 0x20, 0x04, 0x12, 0x11, 0x51, 0x47, 0x80, 0x48, 0x20, 0x04, 0x12, 0x00, 0x04, 0x00, 0x04, 0x48, 0x20, 0x04, 0x12, 0x00, 0x48, 0x00, 0x98, 0x48, 0x20, 0x04, 0x12, 0x00, 0x10, 0x01, 0x10, 0x48, 0x20, 0x04, 0x10, 0x08, 0x70, 0x01, 0x9c, 0x48, 0x20, 0x04, 0x12, 0x10, 0x6b, 0x01, 0x14, 0x00, 0x00, 0x04, 0x12, 0x00, 0x67, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x60, 0x00, 0x00, 0x40, 0x00, 0x04, 0x12, 0x10, 0x45, 0x4d, 0x90, 0x48, 0x20, 0x04, 0x10, 0x19, 0x20, 0x01, 0x10, 0x40, 0x00, 0x04, 0x10, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x04, 0x84, 0x20, 0x00, 0x21, 0x00, 0x91, 0x83, 0x04, 0x84, 0x20, 0x04, 0x21, 0x30, 0xc1, 0x03, 0x00, 0x00, 0x20, 0x04, 0x00, 0x10, 0xc0, 0x8a, 0x00, 0x84, 0x20, 0x00, 0x00, 0x23, 0x80, 0x8b, 0x00, 0x84, 0x20, 0x04, 0x00, 0x34, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x10, 0x80, 0x83, 0x04, 0x84, 0x20, 0x04, 0x21, 0x2a, 0xe1, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x04, 0x21, 0x00, 0x49, 0x83, 0x14, 0x84, 0x21, 0x04, 0x21, 0x23, 0xe1, 0x03, 0x04, 0x00, 0x20, 0x0c, 0x21, 0x00, 0xd5, 0x00, 0x04, 0x00, 0x00, 0x00, 0x21, 0x00, 0x11, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x00, 0x03, 0x04, 0x00, 0x20, 0x04, 0x21, 0x10, 0xc1, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x80, 0x8b, 0x04, 0x84, 0x20, 0x04, 0x21, 0x02, 0x61, 0x83, 0x84, 0x84, 0x20, 0x04, 0x21, 0x34, 0x90, 0xc7, 0x54, 0x84, 0x20, 0x04, 0x21, 0x14, 0x08, 0x83, 0x14, 0x84, 0x20, 0x04, 0x21, 0x00, 0x60, 0x83, 0x14, 0x84, 0x20, 0x04, 0x21, 0x00, 0x10, 0x83, 0x00, 0x84, 0x00, 0x04, 0x00, 0x00, 0x80, 0x83, 0x14, 0x04, 0x20, 0x04, 0x21, 0x28, 0x20, 0x01, 0x14, 0x00, 0x00, 0x04, 0x21, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x81, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0x49, 0x8b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0xc4, 0x89, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x44, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x13, 0x02, 0x46, 0xc0, 0x02, 0x07, 0x03, 0xe0, 0x03, 0x13, 0x00, 0x00, 0xc3, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0xd3, 0xc0, 0x03, 0x03, 0x00, 0x01, 0xa0, 0x05, 0xc8, 0x23, 0x03, 0x13, 0x80, 0x03, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0xc0, 0x80, 0x03, 0xcc, 0xa1, 0x00, 0xa0, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x22, 0x00, 0x00, 0x00, 0x22, 0x00, 0x40, 0xc2, 0xc0, 0x44, 0xc0, 0x02, 0x43, 0x01, 0xc4, 0xe0, 0x00, 0xcb, 0xc0, 0x03, 0x02, 0x02, 0x13, 0xc2, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xc7, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x03, 0xa3, 0x13, 0x00, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0xc8, 0x00, 0x00, 0x00, 0xc8, 0x03, 0x13, 0x00, 0xa3, 0xc8, 0xe3, 0x00, 0xa0, 0x85, 0x03, 0x13, 0xa2, 0x00, 0xe3, 0x23, 0xc0, 0xc0, 0x03, 0x23, 0xd3, 0x62, 0xe0, 0x07, 0xe1, 0x03, 0x02, 0x00, 0x44, 0x13, 0xe3, 0x03, 0x83, 0xe2, 0x44, 0x07, 0xc0, 0x00, 0x47, 0xc0, 0x03, 0x03, 0x13, 0x00, 0x03, 0x00, 0x00, 0x03, 0xc2, 0x22, 0xc0, 0x00, 0xe3, 0xc0, 0x13, 0x22, 0x03, 0x00, 0x46, 0xe0, 0x00, 0x03, 0x03, 0xc0, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xc7, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x03, 0x80, 0x13, 0xc3, 0x23, 0x00, 0xd3, 0x93, 0x00, 0x00, 0x03, 0x00, 0xc0, 0x00, 0x03, 0xc3, 0x03, 0xc0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x80, 0x02, 0x02, 0x04, 0x20, 0x04, 0x10, 0x20, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x40, 0x03, 0x40, 0x80, 0x20, 0x04, 0x01, 0x00, 0x01, 0x00, 0x40, 0x02, 0x10, 0x04, 0x00, 0x80, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x01, 0x01, 0x84, 0x40, 0x00, 0x20, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0xa0, 0x05, 0x84, 0x00, 0x40, 0x04, 0x21, 0x40, 0x02, 0x00, 0x00, 0x08, 0x10, 0x02, 0x80, 0x02, 0x00, 0x05, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x80, 0x08, 0x00, 0x00, 0x00, 0x01, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x40, 0x00, 0x00, 0x04, 0x40, 0x00, 0x04, 0x00, 0x08, 0x00, 0x80, 0x04, 0x08, 0x00, 0x80, 0x20, 0x02, 0x20, 0x40, 0x01, 0x04, 0x80, 0x00, 0x00, 0x08, 0x08, 0x88, 0x02, 0x02, 0x00, 0x10, 0x00, 0x20, 0xc0, 0x08, 0x28, 0x00, 0x00, 0x41, 0x00, 0x00, 0x08, 0x05, 0x00, 0x12, 0x00, 0x40, 0x90, 0x00, 0x00, 0xa0, 0x80, 0x04, 0x04, 0x01, 0x08, 0x08, 0x40, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x09, 0x40, 0x20, 0x41, 0x80, 0x00, 0x50, 0x40, 0x01, 0x10, 0x80, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x08, 0xc0, 0x48, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x34, 0xa8, 0x00, 0x00, 0x38, 0x00, 0x02, 0x00, 0x00, 0x48, 0x01, 0x00, 0x28, 0x00, 0x02, 0x01, 0x02, 0x00, 0x00, 0x14, 0x50, 0x03, 0x80, 0x0e, 0x00, 0x20, 0x20, 0x00, 0xa8, 0x02, 0x50, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x28, 0x00, 0x0f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x2a, 0x1e, 0x3a, 0x01, 0xe0, 0x1c, 0x30, 0xe3, 0xa8, 0x16, 0x00, 0x00, 0x00, 0x0e, 0x01, 0x20, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3c, 0x34, 0x00, 0xa2, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0xce, 0x0a, 0xa8, 0x04, 0x20, 0x40, 0x10, 0x40, 0x44, 0x0c, 0x28, 0x00, 0x80, 0x40, 0x40, 0x23, 0xe7, 0x2c, 0x00, 0x20, 0x40, 0x08, 0x01, 0x20, 0x00, 0x0c, 0x81, 0x00, 0x8c, 0x01, 0x00, 0x20, 0x14, 0x60, 0x38, 0x00, 0x87, 0x49, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x08, 0x08, 0x00, 0xe0, 0x0e, 0x20, 0x10, 0x00, 0xa0, 0x1e, 0x02, 0xf0, 0x00, 0x01, 0x00, 0x01, 0xd0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x06, 0x40, 0x00, 0x20, 0x00, 0x06, 0x60, 0x00, 0x00, 0x08, 0x00, 0x20, 0x0b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x0e, 0x01, 0x00, 0x94, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x40, 0x02, 0xc0, 0x00, 0x00, 0x00, 0x07, 0x03, 0x00, 0x68, 0x00, 0x00, 0x00, 0x78, 0x07, 0x00, 0x00, 0x01, 0x01, 0xc3, 0x00, 0x00, 0x01, 0xa0, 0x0c, 0x00, 0x00, 0x00, 0x14, 0x38, 0xe4, 0x80, 0x02, 0x0a, 0x28, 0x00, 0x00, 0x70, 0x02, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x3c, 0x14, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x08, 0x14, 0x10, 0x00, 0x80, 0x28, 0x08, 0x02, 0x00, 0x10, 0x2c, 0x20, 0x0a, 0x10, 0x09, 0x20, 0x00, 0x00, 0x14, 0x02, 0x20, 0x00, 0x00, 0xe0, 0x00, 0x0c, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x03, 0x00, 0x0a, 0x4d, 0x00, 0x50, 0x38, 0x80, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0xa8, 0x60, 0x83, 0x00, 0x02, 0x48, 0x00, 0x4d, 0x80, 0x07, 0x43, 0x02, 0x62, 0x28, 0x06, 0x10, 0x14, 0xd0, 0x0a, 0x27, 0x00, 0xe0, 0x00, 0x10, 0x00, 0x83, 0x40, 0x0c, 0x00, 0xa8, 0x00, 0x88, 0x10, 0x04, 0xc0, 0x0d, 0x00, 0x00, 0x0c, 0xb0, 0x10, 0x00, 0x00, 0x29, 0x01, 0xf0, 0x0f, 0x90, 0x14, 0x20, 0xc0, 0x00, 0x00, 0xe0, 0x0b, 0x1c, 0x00, 0x01, 0x82, 0x29, 0x00, 0x00, 0x00, 0x34, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x28, 0x60, 0x08, 0x00, 0x50, 0x04, 0x11, 0x8d, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x38, 0x00, 0x00, 0x00, 0x40, 0x00, 0xc0, 0x00, 0x00, 0x60, 0x02, 0x00, 0x00, 0x00, 0x08, 0x1c, 0x00, 0x01, 0x80, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0a, 0x20, 0x00, 0x80, 0x80, 0x00, 0x08, 0x0b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x10, 0x00, 0x03, 0x00, 0x04, 0x20, 0x83, 0x18, 0x09, 0x00, 0x00, 0x14, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x12, 0x01, 0x00, 0x00, 0x10, 0x32, 0x02, 0x14, 0x11, 0x00, 0x00, 0x20, 0x00, 0x00, 0x80, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x10, 0x00, 0x02, 0x28, 0x10, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x30, 0x21, 0x00, 0x00, 0x06, 0x06, 0x02, 0x00, 0x10, 0x8b, 0x00, 0x00, 0x03, 0x01, 0x25, 0x00, 0x80, 0x00, 0x22, 0x00, 0x98, 0x20, 0x0e, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x18, 0x00, 0x04, 0x01, 0x08, 0x00, 0x01, 0x40, 0x80, 0x00, 0x20, 0x01, 0x08, 0x00, 0x04, 0x02, 0x11, 0x00, 0x08, 0x02, 0x08, 0x00, 0x14, 0x84, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x40, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x04, 0x02, 0x50, 0xa0, 0x00, 0x40, 0x2a, 0x08, 0x40, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x10, 0x00, 0x03, 0x80, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x17, 0x90, 0x00, 0x00, 0x00, 0x47, 0x1c, 0x80, 0x03, 0x20, 0x10, 0x03, 0x00, 0x00, 0x10, 0x7c, 0x01, 0x80, 0x30, 0x01, 0xf0, 0x00, 0x01, 0x30, 0x07, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0xc0, 0x01, 0x38, 0x00, 0x03, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x18, 0x00, 0x40, 0x30, 0x80, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x60, 0x43, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0xf1, 0xe8, 0x30, 0x30, 0x07, 0x80, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x1d, 0x44, 0xe7, 0x87, 0x00, 0x00, 0x08, 0x10, 0x70, 0x00, 0x60, 0x05, 0x40, 0x02, 0x09, 0xe0, 0x00, 0x02, 0x08, 0x23, 0x20, 0x01, 0xf0, 0x04, 0x31, 0x30, 0x00, 0x00, 0x1c, 0x08, 0x00, 0x00, 0x32, 0x04, 0x03, 0x80, 0x0e, 0x00, 0x00, 0x06, 0x31, 0x30, 0xe0, 0x03, 0x0f, 0x02, 0xc8, 0x06, 0x55, 0x00, 0x0c, 0x03, 0x21, 0x02, 0xc8, 0x06, 0x48, 0x00, 0x63, 0xa0, 0x0e, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x00, 0x00, 0x0c, 0x3c, 0x60, 0x00, 0x80, 0x00, 0x07, 0x00, 0x30, 0xa8, 0x60, 0x00, 0x00, 0x60, 0x08, 0x01, 0x74, 0x00, 0xe3, 0x20, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x70, 0x02, 0x00, 0x00, 0x08, 0x34, 0x00, 0x30, 0x00, 0x03, 0x08, 0x00, 0x20, 0x00, 0x01, 0x38, 0x03, 0x9b, 0x08, 0x00, 0xe0, 0x00, 0x1c, 0xbc, 0x01, 0x40, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x08, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x36, 0x03, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x05, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x0e, 0x00, 0x80, 0x07, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x31, 0x88, 0x40, 0x28, 0x04, 0x00, 0x40, 0x10, 0x01, 0x80, 0x10, 0x78, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0xe0, 0x14, 0x90, 0x32, 0x78, 0x00, 0x0d, 0x02, 0xf0, 0x21, 0x08, 0x3c, 0x03, 0xd0, 0x1e, 0x00, 0x00, 0x06, 0x14, 0x01, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x06, 0x01, 0x00, 0x01, 0xc3, 0x40, 0x00, 0xc0, 0x06, 0x50, 0x3c, 0x07, 0xc0, 0x1f, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe1, 0x8e, 0x00, 0x00, 0x00, 0x03, 0x08, 0x00, 0x00, 0x00, 0x20, 0x70, 0x04, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00, 0x10, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x08, 0x00, 0x05, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x14, 0x00, 0x00, 0x80, 0x08, 0x08, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x44, 0x00, 0x20, 0x04, 0x0c, 0x08, 0x00, 0x44, 0x00, 0x00, 0x02, 0x00, 0x02, 0x40, 0x88, 0x04, 0x00, 0x00, 0x00, 0x04, 0x08, 0x01, 0x08, 0x08, 0x00, 0x00, 0x80, 0x00, 0x00, 0x24, 0x90, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x04, 0x04, 0x28, 0x10, 0x08, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x20, 0x44, 0x04, 0x40, 0x00, 0x00, 0x10, 0x0a, 0x48, 0x2a, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x50, 0x44, 0x00, 0x04, 0x40, 0x20, 0x00, 0x40, 0x80, 0x02, 0x04, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x00, 0x40, 0x02, 0x80, 0x44, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x28, 0x00, 0x14, 0x00, 0x08, 0x04, 0x00, 0x00, 0x20, 0x14, 0x89, 0x0a, 0x04, 0x00, 0x04, 0x80, 0x20, 0x00, 0x80, 0x00, 0x02, 0x80, 0x04, 0x0c, 0x30, 0x14, 0x09, 0x84, 0x24, 0x00, 0x00, 0x04, 0x8c, 0x04, 0x01, 0x08, 0x00, 0x02, 0x08, 0x04, 0x00, 0x04, 0x01, 0x41, 0x8c, 0x84, 0x04, 0x00, 0x21, 0x8a, 0x84, 0x8a, 0x41, 0x01, 0x10, 0x41, 0x40, 0x20, 0x80, 0x00, 0x04, 0x04, 0x89, 0x00, 0x22, 0x10, 0x04, 0x04, 0x00, 0x02, 0x01, 0x04, 0x80, 0x00, 0x00, 0x00, 0x02, 0x80, 0x09, 0x04, 0x01, 0x00, 0x00, 0x20, 0x80, 0x94, 0x80, 0x40, 0x82, 0x20, 0x04, 0x80, 0x11, 0x48, 0x08, 0x00, 0x0c, 0x40, 0x00, 0x20, 0x00, 0x28, 0x09, 0x0a, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x48, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0d, 0x0c, 0x00, 0x0e, 0x00, 0x09, 0x00, 0x00, 0x00, 0xb0, 0x00, 0xb0, 0x0c, 0x0c, 0x00, 0x90, 0x0c, 0x00, 0x00, 0x0d, 0x02, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x3c, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x1d, 0x3c, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x09, 0x0a, 0x0c, 0x20, 0x08, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0e, 0x00, 0x00, 0x6c, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x05, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x78, 0x00, 0x00, 0x09, 0x40, 0x09, 0x00, 0x00, 0x60, 0x02, 0x50, 0x00, 0x40, 0x05, 0x00, 0x00, 0x06, 0x00, 0x00, 0x06, 0x06, 0x18, 0x00, 0x00, 0x08, 0x00, 0x00, 0x18, 0x06, 0x0d, 0x00, 0x06, 0x50, 0x08, 0x00, 0x00, 0xb6, 0x35, 0x04, 0x00, 0xa0, 0x00, 0x0e, 0x1e, 0x02, 0x09, 0x00, 0x00, 0x0a, 0x0e, 0x90, 0x08, 0xa0, 0xb0, 0x30, 0xb0, 0x00, 0x00, 0x50, 0x06, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x50, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x30, 0xb0, 0x00, 0x00, 0x3c, 0xb2, 0x08, 0x00, 0x39, 0xaa, 0x90, 0x08, 0x00, 0x00, 0x10, 0x00, 0xb6, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xe0, 0x00, 0x30, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x50, 0x10, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x50, 0x10, 0x0c, 0x09, 0x03, 0x20, 0x58, 0x04, 0x00, 0x00, 0x24, 0x01, 0x00, 0x04, 0x00, 0x00, 0x10, 0xb0, 0x05, 0x60, 0x60, 0x00, 0x8c, 0x00, 0x04, 0x00, 0x80, 0x50, 0x00, 0x10, 0x00, 0x00, 0x10, 0x30, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x71, 0x04, 0x04, 0x30, 0x00, 0x00, 0x00, 0x20, 0x80, 0x80, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x04, 0x10, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x65, 0x02, 0x00, 0x00, 0x26, 0x34, 0x02, 0x08, 0x1a, 0x10, 0x00, 0x30, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x00, 0x00, 0x04, 0x30, 0x18, 0x30, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0c, 0x0e, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x1c, 0x0c, 0x00, 0x00, 0x08, 0x10, 0x20, 0x00, 0x10, 0x00, 0x48, 0x10, 0x05, 0x08, 0x20, 0x0c, 0x0c, 0x1c, 0x30, 0x0a, 0x00, 0x04, 0xb8, 0x00, 0x08, 0x00, 0x00, 0x0c, 0x80, 0x04, 0x00, 0x00, 0x0c, 0x1c, 0x28, 0x1c, 0x08, 0x00, 0xa8, 0x28, 0x98, 0x38, 0x08, 0x0c, 0x00, 0x14, 0x30, 0x00, 0x10, 0x00, 0x00, 0x0c, 0x38, 0x00, 0x0c, 0x00, 0x0c, 0x0c, 0x00, 0x0c, 0x68, 0x0c, 0x10, 0x60, 0x00, 0x00, 0x0c, 0x10, 0x5c, 0x08, 0x04, 0x01, 0x00, 0x10, 0x30, 0x3c, 0x10, 0x10, 0x14, 0x00, 0xf4, 0x30, 0x08, 0x30, 0x80, 0x00, 0x0c, 0x10, 0x80, 0x20, 0x00, 0x2a, 0x08, 0x08, 0x8c, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x30, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x04, 0x00, 0x08, 0x00, 0x04, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x0c, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x40, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x30, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x41, 0x00, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x00, 0x08, 0x00, 0x00, 0x04, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x53, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xee, 0xee, 0xb0, 0x70, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x01, 0xee, 0x0e, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x33, 0x00, 0xff, 0xff, 0x80, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa5, 0xa5, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x5f, 0xa0, 0xea, 0x2a, 0xfc, 0xdc, 0xfc, 0x88, 0x00, 0xac, 0xdf, 0xff, 0xff, 0xef, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xef, 0xef, 0xff, 0xff, 0xfe, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xce, 0xcc, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb3, 0x33, 0xfa, 0xc8, 0xfa, 0xc8, 0xfa, 0xc8, 0xff, 0xff, 0xf3, 0xf3, 0xcf, 0xff, 0xff, 0x3f, 0xff, 0xfe, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0xb8, 0xb8, 0xf3, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xff, 0xbb, 0x88, 0xfc, 0x30, 0xe4, 0xe4, 0xf3, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x96, 0x96, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xef, 0x00, 0xbb, 0xfc, 0xfe, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x78, 0x00, 0x12, 0x00, 0x30, 0x04, 0x00, 0x00, 0x31, 0x40, 0x00, 0x04, 0x78, 0x00, 0x00, 0x08, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x12, 0x0c, 0x78, 0x04, 0x00, 0x0c, 0x78, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x8c, 0x70, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x24, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x04, 0x78, 0x04, 0x01, 0x24, 0x70, 0x00, 0x09, 0x20, 0x30, 0x00, 0x12, 0x04, 0x78, 0x04, 0x12, 0x04, 0x78, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x12, 0x0c, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x09, 0xa8, 0x00, 0x00, 0x12, 0x8c, 0x48, 0x04, 0x12, 0x00, 0x00, 0x04, 0x09, 0x28, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x04, 0x48, 0x04, 0x12, 0x04, 0x48, 0x04, 0x12, 0x04, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0xff, 0xfc, 0xff, 0xfe, 0x77, 0x70, 0x32, 0x32, 0xff, 0xff, 0xff, 0xff, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xcc, 0x88, 0xff, 0xff, 0x22, 0x88, 0x22, 0x22, 0x66, 0xaa, 0x55, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xdf, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xff, 0xff, 0x1d, 0xff, 0x51, 0x55, 0xaa, 0xae, 0xaa, 0xee, 0xff, 0xfb, 0xff, 0xff, 0x5f, 0xff, 0xff, 0xff, 0xa8, 0x00, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcc, 0xc4, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xfa, 0x0a, 0xfa, 0x0a, 0xac, 0xac, 0xca, 0xca, 0xfc, 0x0c, 0xfc, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x99, 0x99, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x0c, 0xff, 0x33, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x96, 0x69, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x02, 0x01, 0x0a, 0x00, 0x00, 0x40, 0x00, 0x04, 0x10, 0x10, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x02, 0x00, 0x00, 0x40, 0x00, 0x04, 0x10, 0x00, 0x00, 0x8a, 0x00, 0x48, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x20, 0x03, 0x41, 0x9c, 0x40, 0x00, 0x04, 0x12, 0x30, 0x64, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x30, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x04, 0x08, 0xd0, 0x98, 0x48, 0x20, 0x04, 0x12, 0x10, 0x26, 0x00, 0x0c, 0x08, 0x20, 0x04, 0x12, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x0b, 0x44, 0x0c, 0x48, 0x20, 0x04, 0x12, 0x00, 0x03, 0x51, 0x90, 0x40, 0x00, 0x04, 0x10, 0x00, 0x00, 0x01, 0x90, 0x48, 0x20, 0x04, 0x12, 0x29, 0x40, 0x01, 0x9c, 0x08, 0x20, 0x04, 0x12, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x90, 0x08, 0x20, 0x04, 0x12, 0x09, 0x53, 0x00, 0x00, 0x48, 0x20, 0x00, 0x02, 0x13, 0x00, 0x01, 0x80, 0x00, 0x00, 0x04, 0x10, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x20, 0x00, 0x21, 0x02, 0x00, 0x81, 0x00, 0x84, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x81, 0x00, 0x84, 0x00, 0x00, 0x00, 0x24, 0x00, 0x8a, 0x00, 0x84, 0x20, 0x00, 0x00, 0x22, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x06, 0x04, 0x00, 0x00, 0x20, 0x28, 0x03, 0x89, 0x20, 0x84, 0x00, 0x04, 0x21, 0x24, 0x40, 0x83, 0x04, 0x04, 0x20, 0x04, 0x21, 0x38, 0xc9, 0x80, 0x04, 0x84, 0x00, 0x00, 0x21, 0x20, 0x01, 0x83, 0x14, 0x84, 0x20, 0x04, 0x21, 0x24, 0x49, 0x03, 0x14, 0x00, 0x20, 0x04, 0x21, 0x10, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x01, 0x04, 0x00, 0x00, 0x04, 0x21, 0x00, 0x41, 0x61, 0x14, 0x04, 0x00, 0x04, 0x20, 0x00, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x14, 0x04, 0x00, 0x04, 0x20, 0x28, 0xa0, 0x02, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0xc9, 0x82, 0x04, 0x04, 0x00, 0x00, 0x20, 0x21, 0x83, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x40, 0xa0, 0xa2, 0x00, 0xc0, 0x03, 0x00, 0xc0, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x03, 0x00, 0xc0, 0xc0, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x03, 0x02, 0x01, 0x80, 0x00, 0x23, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0xe0, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x03, 0xc0, 0x00, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x02, 0x13, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x23, 0xe0, 0x00, 0xc3, 0xc0, 0xcb, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x02, 0xe2, 0x01, 0x03, 0xdb, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x05, 0x03, 0xc3, 0x03, 0x83, 0x02, 0x00, 0x00, 0xc0, 0xe0, 0x80, 0xc4, 0x62, 0x00, 0x00, 0x00, 0x00, 0xc4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0xc3, 0xe3, 0x43, 0x57, 0xc7, 0xe0, 0x00, 0x03, 0x40, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd3, 0x00, 0xcb, 0x00, 0x03, 0xe0, 0xc0, 0x00, 0x07, 0x00, 0x13, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x40, 0x00, 0x02, 0x80, 0x02, 0x41, 0x00, 0x80, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x02, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x40, 0x80, 0x40, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x40, 0x04, 0x01, 0x02, 0x80, 0x80, 0x01, 0x40, 0x04, 0x40, 0x00, 0x02, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x04, 0x20, 0x00, 0x10, 0x08, 0x00, 0x00, 0x04, 0x40, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0xc0, 0x20, 0x0c, 0x04, 0x00, 0x00, 0x10, 0x00, 0x02, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x21, 0x00, 0x04, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x02, 0x8a, 0x40, 0x01, 0x20, 0x9f, 0x81, 0x00, 0x00, 0x20, 0x1c, 0x10, 0x00, 0x0b, 0x11, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x14, 0x34, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x28, 0x21, 0x08, 0x00, 0x00, 0x02, 0x08, 0x10, 0x41, 0x00, 0x1c, 0x00, 0x00, 0x10, 0x00, 0x00, 0xc3, 0xc6, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x30, 0x00, 0x00, 0x40, 0x10, 0x05, 0xc0, 0x01, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x04, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x20, 0x48, 0x00, 0x8c, 0x00, 0x40, 0x00, 0x24, 0x5e, 0x80, 0x53, 0x85, 0x0c, 0x74, 0x00, 0x08, 0x1f, 0x00, 0x10, 0x00, 0x02, 0x00, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x28, 0x01, 0x10, 0x10, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x0c, 0x00, 0x02, 0x40, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0c, 0x00, 0x5c, 0x12, 0x23, 0xc2, 0x0c, 0x00, 0x01, 0xc0, 0x00, 0x14, 0x20, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x14, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x14, 0x81, 0x20, 0x00, 0x01, 0x0a, 0x29, 0xc7, 0x2c, 0x14, 0x20, 0x00, 0x38, 0x95, 0x02, 0x00, 0x1c, 0x00, 0x81, 0x84, 0x00, 0x08, 0x08, 0x00, 0x41, 0x00, 0x00, 0xa2, 0x48, 0x08, 0xc0, 0x00, 0x40, 0x48, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x1c, 0x40, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1c, 0x08, 0x00, 0x00, 0x03, 0x02, 0x09, 0xc8, 0x00, 0x08, 0x00, 0x80, 0x0e, 0x74, 0x00, 0x07, 0x1c, 0x08, 0xc0, 0xa5, 0x06, 0xc0, 0x00, 0x00, 0x1c, 0x00, 0x80, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x09, 0xd0, 0x02, 0x00, 0x00, 0x84, 0x76, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x07, 0x02, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0a, 0x80, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x14, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x02, 0xd4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc1, 0x28, 0x11, 0x05, 0x14, 0x00, 0x81, 0x00, 0x00, 0x18, 0x01, 0x00, 0x10, 0x00, 0x00, 0x40, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x01, 0x08, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xa0, 0x40, 0x00, 0x00, 0x11, 0x00, 0x00, 0x01, 0x00, 0x40, 0x05, 0x40, 0x14, 0x20, 0x00, 0x02, 0x20, 0x05, 0x40, 0x54, 0x43, 0x80, 0x00, 0x02, 0x00, 0x01, 0x40, 0x00, 0x90, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x10, 0x00, 0x04, 0x04, 0x24, 0x10, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x04, 0x10, 0x00, 0x00, 0x08, 0x07, 0x20, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x14, 0x00, 0x42, 0x08, 0x60, 0x03, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0b, 0x00, 0xc4, 0x02, 0x08, 0x00, 0x30, 0x80, 0x07, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xe0, 0x00, 0x1c, 0x0a, 0xa8, 0x61, 0x9d, 0x78, 0xe1, 0x88, 0x1c, 0x40, 0x08, 0x10, 0x0c, 0x00, 0x63, 0x83, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x80, 0xf0, 0x00, 0x01, 0x01, 0x80, 0x40, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x0e, 0x00, 0x02, 0x00, 0x1c, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x9c, 0x04, 0x00, 0x00, 0x1c, 0x00, 0x28, 0x07, 0x02, 0x00, 0x01, 0x80, 0x0e, 0x00, 0xa4, 0xc1, 0xd0, 0x28, 0x63, 0x00, 0x92, 0x08, 0x00, 0x0c, 0x90, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x80, 0x60, 0x00, 0x20, 0x00, 0xc0, 0x1b, 0x1c, 0x38, 0x03, 0xc0, 0x10, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x10, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x14, 0x30, 0x00, 0x03, 0x00, 0x02, 0x00, 0x00, 0x09, 0x08, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x80, 0x10, 0xc8, 0x07, 0x8f, 0x40, 0x78, 0x04, 0x10, 0x00, 0x05, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x08, 0x00, 0xbd, 0x18, 0x12, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x1e, 0x1c, 0x00, 0x04, 0x00, 0x09, 0x70, 0xa2, 0x08, 0x00, 0x03, 0x03, 0x9b, 0x09, 0x40, 0x22, 0x00, 0x31, 0x34, 0xe4, 0x10, 0x40, 0x00, 0xc0, 0x16, 0x00, 0x01, 0x00, 0x00, 0x40, 0x70, 0x00, 0x00, 0x00, 0x34, 0x00, 0x40, 0x01, 0x00, 0x00, 0x08, 0x20, 0x10, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x90, 0x01, 0x02, 0xb1, 0x46, 0x00, 0x69, 0x90, 0x62, 0x48, 0x30, 0x00, 0x06, 0x31, 0x80, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x1c, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0e, 0x1c, 0x7a, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x80, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x20, 0x20, 0x20, 0x40, 0x00, 0x00, 0x02, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x24, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x88, 0x40, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x40, 0x90, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x22, 0x84, 0x00, 0x04, 0x00, 0x00, 0x80, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x12, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x80, 0x04, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x84, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x84, 0x00, 0x04, 0x04, 0x04, 0x40, 0x80, 0x00, 0x04, 0x04, 0x42, 0x02, 0x0a, 0x11, 0x04, 0x02, 0x24, 0x84, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x20, 0x04, 0x20, 0x02, 0x80, 0x08, 0x01, 0x00, 0x20, 0x0c, 0x04, 0x28, 0x08, 0x20, 0x00, 0x00, 0x08, 0x80, 0x00, 0x40, 0x09, 0x00, 0x48, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x29, 0x00, 0x00, 0x44, 0x08, 0x00, 0x20, 0x00, 0x80, 0x10, 0x01, 0x88, 0x00, 0x00, 0x00, 0x28, 0x44, 0x40, 0x31, 0x22, 0x81, 0x80, 0x01, 0x80, 0x00, 0x04, 0x84, 0x00, 0x14, 0x08, 0x00, 0x00, 0x01, 0x00, 0x84, 0x01, 0x00, 0x04, 0x04, 0x00, 0x80, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x90, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x10, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x0c, 0x00, 0x06, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x05, 0x00, 0x30, 0x00, 0x66, 0x0d, 0x10, 0x20, 0x30, 0x72, 0x09, 0x00, 0x70, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x30, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x3d, 0x0c, 0x0c, 0x15, 0x00, 0x10, 0x00, 0x00, 0x04, 0x90, 0x00, 0x00, 0x00, 0x00, 0x1d, 0x0c, 0x2a, 0x00, 0x00, 0x0c, 0x3d, 0x00, 0x06, 0x50, 0xa0, 0x00, 0x00, 0x02, 0x14, 0x0e, 0x0c, 0x05, 0x00, 0x00, 0x04, 0x00, 0x0c, 0xbc, 0x00, 0x55, 0x09, 0x0c, 0x00, 0x00, 0x0c, 0x58, 0x00, 0x00, 0xa0, 0x08, 0x09, 0x00, 0x50, 0x20, 0xbe, 0x0c, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x50, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x0c, 0x00, 0x40, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x7c, 0x00, 0x0e, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x06, 0x00, 0x00, 0x10, 0x10, 0x20, 0x20, 0x00, 0x00, 0x04, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x88, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x90, 0x20, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x10, 0x50, 0x00, 0x10, 0x10, 0x30, 0x08, 0x00, 0x60, 0x7c, 0x00, 0x04, 0x3c, 0x00, 0x08, 0x80, 0x00, 0x11, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x34, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x30, 0x0c, 0x80, 0x88, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0e, 0x00, 0x00, 0x52, 0x08, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x30, 0x08, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x34, 0x0c, 0x00, 0x86, 0x00, 0x00, 0x04, 0x02, 0x41, 0x80, 0x08, 0x50, 0x04, 0x00, 0x40, 0x1c, 0x00, 0x0c, 0x08, 0x7c, 0x30, 0x30, 0x00, 0x44, 0x04, 0xac, 0x7d, 0x0c, 0x04, 0x04, 0x88, 0x04, 0x34, 0x01, 0x00, 0x08, 0x30, 0x00, 0x40, 0x80, 0x71, 0x80, 0x4c, 0x30, 0x0a, 0x84, 0x0e, 0x30, 0x7c, 0x08, 0x2a, 0x00, 0x2a, 0xd1, 0x0a, 0x00, 0x30, 0x00, 0x10, 0x0c, 0x00, 0x06, 0x00, 0x00, 0x00, 0x50, 0x00, 0x70, 0x00, 0x2c, 0x01, 0x00, 0x10, 0x40, 0x01, 0x00, 0x00, 0x30, 0x72, 0x08, 0x10, 0x60, 0x00, 0x60, 0x30, 0x1c, 0x30, 0x08, 0x38, 0x2c, 0x30, 0x0c, 0x20, 0x80, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x18, 0x8c, 0x00, 0x08, 0x08, 0x00, 0x10, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x44, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x30, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x92, 0x00, 0x02, 0x00, 0x80, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x21, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x84, 0xcc, 0xc8, 0x04, 0xcc, 0xcc, 0xb7, 0xb7, 0xf3, 0x3f, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xee, 0xeb, 0xff, 0xbb, 0xff, 0xbb, 0xff, 0xcc, 0xff, 0xe1, 0x7f, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0x5f, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xee, 0x22, 0xe4, 0xe4, 0xdd, 0x88, 0xbb, 0x88, 0xfc, 0x0c, 0xaf, 0xa0, 0xcf, 0xc0, 0xcf, 0xc0, 0xff, 0xff, 0xff, 0xff, 0x3c, 0x3c, 0xff, 0xff, 0xa5, 0xa5, 0xff, 0xff, 0xfe, 0x01, 0xc9, 0xc9, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x00, 0xf0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x66, 0xa8, 0x08, 0xa0, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xf5, 0xf7, 0xff, 0x88, 0x00, 0xf8, 0xff, 0x7f, 0x77, 0x88, 0xaa, 0x0f, 0x1d, 0x5f, 0xff, 0xdf, 0xdd, 0xfd, 0xf0, 0xf8, 0x00, 0xff, 0xbb, 0xff, 0xf7, 0xfe, 0xfe, 0xff, 0xff, 0xbb, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xb8, 0xb8, 0xee, 0x44, 0xd8, 0xd8, 0xfc, 0x30, 0xf5, 0xff, 0xff, 0xff, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xca, 0xff, 0xd8, 0xaf, 0xff, 0xff, 0xff, 0x0c, 0x00, 0x7f, 0xff, 0xcd, 0xc8, 0xff, 0xff, 0xf3, 0xc0, 0xff, 0xff, 0xfa, 0x50, 0xee, 0x44, 0xff, 0xff, 0xef, 0xea, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xd8, 0xd8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xf7, 0xff, 0xd8, 0xaa, 0x55, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc8, 0x00, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0xff, 0x55, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x78, 0x00, 0x12, 0x04, 0x78, 0x04, 0x09, 0x24, 0x78, 0x00, 0x12, 0x08, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x28, 0x30, 0x00, 0x12, 0x04, 0x78, 0x04, 0x12, 0x00, 0x30, 0x04, 0x01, 0x28, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x28, 0x30, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x01, 0x28, 0x30, 0x00, 0x12, 0x01, 0x31, 0x44, 0x12, 0x01, 0x31, 0x44, 0x12, 0x01, 0x31, 0x44, 0x12, 0x01, 0x31, 0x44, 0x01, 0x2c, 0x70, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0xa8, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x12, 0x04, 0x78, 0x04, 0x12, 0x04, 0x78, 0x04, 0x09, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x12, 0x04, 0x78, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x12, 0x8c, 0x48, 0x04, 0x12, 0x8c, 0x48, 0x04, 0x01, 0x2c, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x13, 0x29, 0x00, 0x04, 0x12, 0x01, 0x00, 0x04, 0x02, 0x01, 0x00, 0x04, 0x12, 0x01, 0x00, 0x04, 0x01, 0x2c, 0x40, 0x00, 0x09, 0x28, 0x00, 0x00, 0x01, 0x2c, 0x40, 0x00, 0x01, 0x24, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x01, 0x06, 0x95, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0x32, 0x01, 0x02, 0x8d, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x12, 0x00, 0x00, 0x04, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0xc0, 0xfe, 0xee, 0x70, 0xb0, 0xd0, 0x70, 0xff, 0xee, 0x00, 0x05, 0xcf, 0x9f, 0xcf, 0x9f, 0xfa, 0xeb, 0xff, 0xff, 0xaa, 0x99, 0xff, 0xff, 0xfa, 0xaf, 0xff, 0xff, 0x7f, 0xff, 0xfc, 0xff, 0xba, 0xaa, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x80, 0xff, 0xff, 0x80, 0x00, 0x77, 0xbb, 0xaf, 0xa0, 0xfa, 0x0a, 0xfa, 0x0a, 0xac, 0xac, 0xbb, 0x88, 0xf3, 0xc0, 0xe2, 0xe2, 0xee, 0x22, 0xff, 0xff, 0xff, 0xff, 0x66, 0x66, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x4c, 0xff, 0xff, 0x80, 0xff, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x88, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xaa, 0xaa, 0xff, 0x00, 0xcc, 0xcc, 0xf0, 0xf0, 0xaa, 0xaa, 0xff, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xf0, 0xf0, 0xaa, 0xaa, 0xff, 0x00, 0xf0, 0xf0, 0xcc, 0xcc, 0xaa, 0xaa, 0xff, 0x00, 0xff, 0x00, 0xcc, 0xcc, 0xaa, 0xaa, 0xcc, 0xcc, 0xff, 0x00, 0xff, 0x00, 0xf0, 0xf0, 0xaa, 0xaa, 0xf0, 0xf0, 0xaa, 0xaa, 0xf0, 0xf0, 0xff, 0x00, 0xcc, 0x33, 0x55, 0xaa, 0xff, 0x77, 0xff, 0xff, 0x55, 0x00, 0xff, 0xff, 0xcf, 0xcf, 0xff, 0xff, 0xee, 0x22, 0xff, 0xff, 0xfa, 0x50, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0xff, 0xef, 0xff, 0xef, 0xff, 0xfc, 0x7f, 0xff, 0xfe, 0xcc, 0xef, 0xcc, 0xff, 0xff, 0xff, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xee, 0xf5, 0xfe, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x04, 0x12, 0x01, 0x2a, 0x00, 0x00, 0x08, 0x20, 0x04, 0x12, 0x01, 0x42, 0x00, 0x00, 0x48, 0x20, 0x04, 0x1a, 0x20, 0xc4, 0x00, 0x00, 0x48, 0x20, 0x04, 0x1a, 0x31, 0x73, 0x00, 0x00, 0x48, 0x20, 0x04, 0x10, 0x28, 0xa0, 0x80, 0x10, 0x40, 0x00, 0x04, 0x12, 0x30, 0x70, 0x09, 0x1c, 0x48, 0x20, 0x04, 0x12, 0x33, 0xe3, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x48, 0x20, 0x04, 0x12, 0x15, 0x2a, 0xc9, 0x14, 0x48, 0x20, 0x04, 0x12, 0x10, 0xc9, 0x00, 0x10, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x50, 0x00, 0x0c, 0x08, 0x20, 0x04, 0x12, 0x00, 0x02, 0x00, 0x9c, 0x00, 0x00, 0x04, 0x12, 0x00, 0x00, 0x01, 0x9c, 0x08, 0x20, 0x04, 0x12, 0x00, 0xc9, 0x0d, 0x10, 0x08, 0x20, 0x04, 0x10, 0x02, 0xd0, 0x08, 0x0c, 0x08, 0x20, 0x00, 0x02, 0x01, 0x80, 0x00, 0x40, 0x40, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x04, 0x48, 0x20, 0x04, 0x12, 0x10, 0x81, 0x00, 0x00, 0x48, 0x20, 0x00, 0x00, 0x33, 0x80, 0x0f, 0xc0, 0x08, 0x20, 0x04, 0x12, 0x01, 0xeb, 0xe6, 0x00, 0x48, 0x20, 0x04, 0x12, 0x38, 0x44, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x0c, 0x00, 0x08, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x04, 0x00, 0x20, 0x04, 0x21, 0x02, 0x20, 0x03, 0x04, 0x00, 0x20, 0x00, 0x21, 0x10, 0x4c, 0x83, 0x04, 0x84, 0x20, 0x04, 0x00, 0x14, 0x00, 0x83, 0x04, 0x84, 0x00, 0x04, 0x00, 0x11, 0x89, 0x83, 0x00, 0x84, 0x20, 0x04, 0x00, 0x28, 0xc4, 0x89, 0x04, 0x04, 0x08, 0x00, 0x21, 0x21, 0x40, 0x8b, 0x14, 0x84, 0x20, 0x00, 0x21, 0x21, 0xf1, 0x88, 0x00, 0x04, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x22, 0xe1, 0x93, 0x14, 0x04, 0x20, 0x84, 0x21, 0x26, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x01, 0x04, 0x00, 0x00, 0x04, 0xa1, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x03, 0x14, 0x00, 0x20, 0x04, 0x20, 0x00, 0x48, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x03, 0x14, 0x00, 0x00, 0x00, 0x20, 0x02, 0x20, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x14, 0x00, 0x00, 0x00, 0x20, 0x02, 0x88, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x00, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x38, 0xc7, 0x82, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x24, 0x00, 0x00, 0x00, 0x20, 0x02, 0x20, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x04, 0xc9, 0x00, 0x24, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x02, 0x08, 0x00, 0x13, 0x13, 0x00, 0x00, 0x00, 0x01, 0x07, 0xc3, 0x13, 0x44, 0x00, 0x00, 0x00, 0x13, 0x03, 0xe0, 0x00, 0xc8, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x03, 0xc8, 0x40, 0x01, 0x03, 0x00, 0x01, 0x03, 0x03, 0xa3, 0x01, 0x00, 0x00, 0xc7, 0x00, 0xc0, 0x03, 0x03, 0xc0, 0x00, 0x47, 0x00, 0x02, 0xc0, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0xf3, 0x03, 0x03, 0x00, 0x00, 0x00, 0xc4, 0x00, 0x03, 0x23, 0x13, 0x00, 0x00, 0x83, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x08, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x08, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0xc0, 0x00, 0x00, 0x40, 0xc0, 0x00, 0xc0, 0xc3, 0x45, 0x10, 0x47, 0xc8, 0x00, 0x08, 0x44, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc3, 0xc9, 0xc3, 0x08, 0xc7, 0x00, 0x00, 0x10, 0x93, 0xc3, 0x03, 0x00, 0x13, 0x00, 0x07, 0xc8, 0x00, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x03, 0xc0, 0x00, 0xc0, 0xe0, 0x23, 0xc3, 0xd3, 0xe0, 0x00, 0xc3, 0x00, 0xc7, 0x43, 0xc9, 0x00, 0x80, 0xc1, 0x03, 0x00, 0xa0, 0x20, 0x02, 0x03, 0x04, 0x07, 0xc8, 0x01, 0x00, 0x13, 0x03, 0x07, 0x00, 0xc9, 0xd3, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x80, 0x00, 0x02, 0x00, 0x04, 0x02, 0x80, 0x40, 0x01, 0x09, 0x01, 0x08, 0x00, 0x40, 0x08, 0x04, 0x02, 0x40, 0x00, 0x00, 0x20, 0x00, 0x04, 0x20, 0x01, 0x10, 0x00, 0x40, 0x02, 0x04, 0x02, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0xa0, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x18, 0x01, 0x00, 0x40, 0x40, 0x00, 0x01, 0x00, 0x21, 0xc0, 0x10, 0x40, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x40, 0x10, 0x00, 0x05, 0x0c, 0x20, 0x00, 0x20, 0x00, 0x40, 0x00, 0x00, 0x41, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x20, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x04, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x20, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x40, 0x40, 0x40, 0x00, 0x20, 0x00, 0x00, 0x88, 0x02, 0x00, 0x00, 0xc0, 0x00, 0x04, 0xc0, 0x40, 0x00, 0x80, 0x41, 0x02, 0x00, 0x00, 0x04, 0x04, 0x08, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x02, 0x4f, 0x00, 0x34, 0x71, 0x45, 0x06, 0x78, 0x08, 0x0f, 0x20, 0x38, 0xe1, 0x83, 0x00, 0x60, 0x03, 0xfe, 0x1e, 0x28, 0x00, 0x00, 0x1c, 0x70, 0xc2, 0x80, 0x88, 0x00, 0x00, 0x9f, 0x5c, 0x68, 0x12, 0xc0, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x02, 0xe8, 0x00, 0x40, 0x00, 0x04, 0x00, 0x40, 0x62, 0x43, 0x8b, 0x8c, 0x40, 0x51, 0x85, 0x26, 0x60, 0x04, 0x00, 0x4a, 0x84, 0x70, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x10, 0x00, 0x07, 0x0e, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x21, 0x1e, 0x28, 0x69, 0x80, 0x1d, 0x70, 0x00, 0x00, 0x15, 0x80, 0x90, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x80, 0x00, 0x00, 0x20, 0x60, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x06, 0x60, 0x20, 0x06, 0x00, 0x10, 0x23, 0x85, 0xa8, 0x01, 0x20, 0x34, 0x00, 0x00, 0x11, 0xc0, 0x0e, 0x02, 0x20, 0x08, 0x01, 0x0c, 0x00, 0x90, 0x00, 0x00, 0xa0, 0x0a, 0x1e, 0x00, 0x01, 0x80, 0x00, 0x06, 0x40, 0x01, 0x40, 0x38, 0x02, 0x40, 0x0e, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x36, 0x10, 0x00, 0x11, 0xb0, 0x00, 0x50, 0x00, 0x60, 0x00, 0x0f, 0x00, 0x28, 0x00, 0x40, 0x01, 0x30, 0x00, 0x08, 0x20, 0x34, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, 0x10, 0x48, 0x01, 0x80, 0x00, 0x00, 0x03, 0x88, 0x1e, 0x00, 0xe0, 0x0b, 0x20, 0x70, 0x00, 0x2e, 0x20, 0x04, 0x94, 0x0c, 0x0f, 0x00, 0xe0, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x03, 0xca, 0x1c, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x08, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xe0, 0x00, 0x00, 0x39, 0xe3, 0xcd, 0xa7, 0x31, 0x03, 0xc0, 0x00, 0x2c, 0x01, 0x83, 0x0e, 0x08, 0x00, 0x07, 0x14, 0x54, 0xe0, 0x00, 0x0e, 0x08, 0xc1, 0xc3, 0x08, 0x01, 0x20, 0x04, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x41, 0xc2, 0x2d, 0x00, 0x00, 0x00, 0x00, 0x14, 0x10, 0x00, 0x00, 0x00, 0x08, 0xe1, 0xc0, 0x14, 0x10, 0x64, 0x83, 0x00, 0x40, 0xaa, 0x06, 0x0c, 0x09, 0xd7, 0x4d, 0x83, 0x62, 0x41, 0x80, 0x08, 0x0a, 0x00, 0xab, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x0c, 0x14, 0x00, 0x00, 0x2c, 0x00, 0x04, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x0c, 0x68, 0x00, 0x00, 0x1d, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x05, 0x4c, 0x00, 0xa0, 0x06, 0x00, 0x00, 0x00, 0x02, 0x42, 0x00, 0xa8, 0x04, 0x7c, 0x72, 0x02, 0x13, 0x10, 0x00, 0xc8, 0x67, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x05, 0x00, 0x5c, 0x34, 0x81, 0xc0, 0x00, 0x00, 0x00, 0x08, 0x34, 0x28, 0x05, 0xc0, 0x28, 0x60, 0x08, 0x00, 0x10, 0x54, 0x07, 0x82, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x07, 0x0e, 0x30, 0xe0, 0x08, 0x15, 0x00, 0x0a, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xb8, 0x08, 0x02, 0x42, 0x80, 0x00, 0x11, 0x10, 0x00, 0x03, 0x2a, 0x00, 0x00, 0xe0, 0x00, 0x0e, 0x38, 0x08, 0x00, 0x00, 0x3c, 0x03, 0xa0, 0x40, 0x01, 0x04, 0x05, 0x42, 0x78, 0x01, 0xc7, 0x2c, 0x00, 0x80, 0x00, 0x12, 0x00, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x9c, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x30, 0x20, 0x28, 0x0a, 0x44, 0x00, 0x00, 0x08, 0x04, 0x11, 0x20, 0x10, 0x85, 0x56, 0x10, 0x01, 0x00, 0x40, 0x50, 0x81, 0x20, 0x20, 0x10, 0x00, 0x29, 0x60, 0x58, 0x02, 0x0b, 0x00, 0x30, 0x00, 0x40, 0x00, 0x38, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x24, 0x40, 0x00, 0x00, 0x00, 0x42, 0x04, 0x10, 0x38, 0xc0, 0x00, 0x20, 0x00, 0x0e, 0x14, 0x51, 0x64, 0x00, 0x02, 0x08, 0x01, 0x00, 0x02, 0x00, 0x30, 0x10, 0x00, 0x00, 0x02, 0x00, 0x30, 0x33, 0xc5, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x80, 0x08, 0x41, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x08, 0x08, 0x04, 0x00, 0x00, 0x02, 0x42, 0x02, 0x08, 0x08, 0x00, 0x40, 0x06, 0x00, 0x01, 0x20, 0x44, 0x00, 0x00, 0x00, 0x41, 0x40, 0x14, 0x00, 0x80, 0x00, 0x00, 0x20, 0x12, 0x00, 0x02, 0xa0, 0x20, 0x01, 0x00, 0x88, 0x00, 0x20, 0x20, 0x20, 0x10, 0x04, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x10, 0x10, 0x01, 0x20, 0x04, 0x80, 0x00, 0x90, 0x00, 0x20, 0x20, 0x02, 0x0c, 0x40, 0x00, 0x0a, 0x04, 0x00, 0x00, 0x10, 0x00, 0x02, 0x83, 0x00, 0x20, 0x00, 0x60, 0x00, 0x00, 0x00, 0x03, 0x08, 0x00, 0x40, 0x00, 0x80, 0x30, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x0c, 0x00, 0x22, 0x60, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x05, 0x24, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x60, 0x28, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x27, 0x00, 0x41, 0x90, 0xe3, 0x83, 0x20, 0x08, 0xca, 0x00, 0x0d, 0xb0, 0x00, 0x07, 0x00, 0x00, 0x00, 0x08, 0x30, 0x00, 0x00, 0x02, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x87, 0x10, 0x80, 0x02, 0x00, 0x01, 0x38, 0x63, 0x23, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x00, 0x00, 0x00, 0x81, 0x12, 0x20, 0x00, 0x00, 0x61, 0x83, 0x00, 0x00, 0x21, 0xc0, 0x0d, 0xa8, 0x93, 0x93, 0x08, 0x68, 0xa0, 0xc3, 0x08, 0x30, 0x87, 0x8a, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x03, 0x8c, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x60, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0xc0, 0x03, 0x40, 0x04, 0x10, 0x40, 0x00, 0x60, 0x00, 0x00, 0x30, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x38, 0x00, 0x10, 0x20, 0x60, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x01, 0xe0, 0x03, 0x00, 0x00, 0x04, 0x00, 0x16, 0x00, 0xe0, 0x0c, 0x00, 0x00, 0x03, 0x85, 0x5e, 0x60, 0x10, 0x00, 0x48, 0x00, 0x01, 0xa5, 0x40, 0x10, 0x30, 0xc0, 0x01, 0x08, 0x02, 0x67, 0x02, 0x00, 0x00, 0x06, 0x02, 0x84, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x01, 0xa0, 0x0c, 0x09, 0x20, 0x10, 0x70, 0x08, 0x04, 0x43, 0x0c, 0x01, 0xe0, 0x00, 0x70, 0x00, 0x80, 0x60, 0x0e, 0x00, 0x08, 0x08, 0x00, 0x10, 0x63, 0x07, 0x1c, 0x00, 0xf0, 0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x78, 0x05, 0xd0, 0x42, 0x80, 0x00, 0x00, 0x00, 0x78, 0x01, 0xe8, 0x1d, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x38, 0x00, 0x00, 0x20, 0x00, 0x00, 0xe0, 0x09, 0x00, 0x00, 0x0b, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x10, 0x90, 0xe2, 0x9a, 0x40, 0x00, 0x02, 0x00, 0x00, 0xa9, 0x10, 0x00, 0x60, 0x00, 0x00, 0x08, 0x00, 0x34, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x80, 0x80, 0x40, 0xc2, 0x00, 0x10, 0x70, 0x04, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x3c, 0x04, 0x2b, 0x40, 0x00, 0x00, 0x00, 0x1c, 0x29, 0x60, 0x23, 0x3c, 0x60, 0xa2, 0x8a, 0x10, 0x73, 0x01, 0x44, 0x00, 0x00, 0x01, 0x96, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x01, 0x00, 0x00, 0x14, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x82, 0x00, 0x00, 0x80, 0x50, 0x20, 0x80, 0x0d, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x14, 0x80, 0x00, 0x05, 0x00, 0x05, 0x00, 0x0a, 0x10, 0x00, 0x00, 0x04, 0x09, 0x01, 0xa0, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0xca, 0x00, 0x01, 0x90, 0x28, 0x04, 0x00, 0x06, 0x40, 0x00, 0x00, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0xc0, 0x01, 0x08, 0x10, 0x02, 0x05, 0x1e, 0x00, 0xf0, 0x16, 0x70, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x3c, 0xe0, 0x00, 0x00, 0x00, 0xa1, 0x88, 0x0a, 0x80, 0x00, 0x00, 0x01, 0x60, 0xa0, 0x0a, 0x16, 0xc8, 0x00, 0x10, 0x42, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x80, 0x10, 0x40, 0x06, 0x14, 0x30, 0xf0, 0x0f, 0x00, 0x70, 0x00, 0x0e, 0x00, 0x01, 0xe0, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x80, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0b, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x10, 0x00, 0x10, 0x10, 0x12, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x04, 0x08, 0x00, 0x08, 0x04, 0x04, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x20, 0x00, 0x80, 0x04, 0x00, 0x40, 0x8a, 0x40, 0x22, 0x00, 0x84, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x44, 0x41, 0x04, 0x20, 0x40, 0x00, 0x04, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x20, 0x18, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x84, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x04, 0x10, 0x48, 0x44, 0x08, 0x02, 0x40, 0x40, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x80, 0x08, 0x80, 0x0c, 0x04, 0x00, 0x02, 0x00, 0x80, 0x09, 0x40, 0x40, 0x20, 0x48, 0x80, 0x48, 0x40, 0x40, 0x00, 0x40, 0x20, 0x08, 0x82, 0x80, 0x00, 0x29, 0x22, 0x8a, 0x10, 0x04, 0x2a, 0x00, 0x04, 0x01, 0x42, 0x22, 0x08, 0x00, 0x80, 0x40, 0x04, 0x01, 0x00, 0x28, 0x04, 0x04, 0x44, 0x80, 0x04, 0x01, 0x44, 0x24, 0x02, 0x84, 0x21, 0x10, 0x80, 0x20, 0x80, 0x58, 0x01, 0x21, 0x00, 0x82, 0x00, 0x00, 0x00, 0x40, 0x42, 0x28, 0x84, 0x20, 0x00, 0x0c, 0x80, 0x28, 0x80, 0x84, 0x90, 0x04, 0x80, 0x51, 0x02, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x01, 0x4c, 0x00, 0x00, 0x04, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x10, 0x20, 0x01, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x30, 0x10, 0x30, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x50, 0x00, 0x00, 0x00, 0x08, 0x50, 0x0c, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x0a, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x3c, 0x0c, 0x09, 0x1a, 0x09, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x06, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x09, 0x06, 0x00, 0x30, 0x00, 0x00, 0xb0, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x0d, 0x00, 0x09, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0e, 0x9e, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0a, 0x08, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x10, 0x00, 0x08, 0x02, 0x00, 0x09, 0x00, 0x00, 0x04, 0x0e, 0x00, 0x00, 0x0e, 0x09, 0x09, 0x58, 0x00, 0x00, 0x0a, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x00, 0x18, 0x00, 0x39, 0x0e, 0x0e, 0x0d, 0xa4, 0x00, 0x10, 0x05, 0xb4, 0x90, 0x00, 0x00, 0x08, 0x40, 0x0c, 0x0d, 0x20, 0x06, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x0a, 0x06, 0x0d, 0x00, 0x00, 0x06, 0x00, 0xb6, 0x00, 0x08, 0x00, 0x78, 0x0c, 0x09, 0x00, 0x00, 0x00, 0x0c, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x30, 0x3e, 0x00, 0x00, 0x50, 0x00, 0x00, 0x09, 0x0a, 0x0e, 0x00, 0x0d, 0x05, 0x00, 0x05, 0x00, 0x01, 0x08, 0x00, 0x00, 0x08, 0x00, 0x0a, 0x00, 0x8a, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x03, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0c, 0x00, 0x20, 0x70, 0x30, 0x40, 0x00, 0x31, 0x10, 0x10, 0x04, 0x00, 0x30, 0x00, 0x00, 0x80, 0x08, 0x44, 0x00, 0x20, 0x3c, 0x00, 0x00, 0x10, 0x80, 0x00, 0x30, 0x00, 0x20, 0x7a, 0x8a, 0x0e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x70, 0x00, 0x08, 0x00, 0x02, 0x01, 0x00, 0x00, 0x01, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xf0, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x84, 0x00, 0x04, 0x00, 0x00, 0x10, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x70, 0x08, 0x74, 0x00, 0x00, 0x18, 0x0a, 0x08, 0x20, 0x30, 0x00, 0x0c, 0x20, 0x00, 0x01, 0x00, 0x00, 0x70, 0x00, 0x8c, 0x00, 0x10, 0x00, 0x12, 0x08, 0x08, 0xf0, 0x08, 0x00, 0x10, 0x0c, 0x20, 0x20, 0x30, 0x10, 0x10, 0x06, 0x00, 0x20, 0x01, 0x11, 0x00, 0x80, 0x38, 0x10, 0x00, 0x98, 0x30, 0x38, 0x0b, 0x04, 0x20, 0x00, 0x00, 0x78, 0x38, 0x00, 0x00, 0x60, 0x3a, 0x20, 0x08, 0x0c, 0x0a, 0x00, 0x0c, 0x50, 0x34, 0x30, 0x08, 0x08, 0x10, 0x28, 0x58, 0x18, 0x0c, 0x00, 0x10, 0x20, 0x10, 0x10, 0x0c, 0xa8, 0x00, 0x3c, 0x00, 0x07, 0x00, 0xb0, 0x18, 0x02, 0x30, 0x10, 0x00, 0x00, 0x30, 0x00, 0x30, 0x9c, 0x30, 0x58, 0x1e, 0x08, 0x08, 0x20, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x24, 0x01, 0x08, 0x3c, 0x0f, 0x00, 0x04, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x20, 0x0c, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x30, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x6c, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x0c, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x20, 0x08, 0x00, 0x0d, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x10, 0x00, 0x00, 0x00, 0x00, 0x20, 0x40, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x20, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x20, 0x00, 0x20, 0x08, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x61, 0x39, 0x40, 0x0c, 0x00, 0x20, 0x01, 0x00, 0x05, 0x20, 0x84, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x41, 0x90, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x80, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x4a, 0x00, 0x00, 0x43, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00, 0x24, 0x04, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x04, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x5a, 0x66, 0x66, 0x5a, 0x5a, 0x3c, 0x3c, 0x66, 0x66, 0x5a, 0x5a, 0x66, 0x66, 0xff, 0xff, 0x55, 0xaa, 0x3c, 0x3c, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x5a, 0x0f, 0xf0, 0x66, 0x66, 0x66, 0x66, 0x33, 0xcc, 0x0f, 0xf0, 0x8c, 0xcc, 0x55, 0xaa, 0x08, 0x00, 0xec, 0x00, 0x22, 0x00, 0xf7, 0xff, 0xfa, 0x32, 0xc8, 0xc8, 0x01, 0x01, 0x5f, 0xaf, 0x88, 0x00, 0x02, 0x00, 0xf5, 0xff, 0xea, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xff, 0xf3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xcc, 0xff, 0xff, 0x73, 0x00, 0xc0, 0x00, 0xff, 0xff, 0xfc, 0xcc, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xfe, 0xff, 0xff, 0xbb, 0xff, 0xbb, 0xff, 0xff, 0xef, 0xff, 0xff, 0xbb, 0xff, 0xf3, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0x5f, 0xff, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0x00, 0x30, 0xcc, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x55, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x28, 0x30, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x01, 0x2c, 0x78, 0x00, 0x01, 0x24, 0x78, 0x00, 0x01, 0x24, 0x78, 0x00, 0x12, 0x04, 0x78, 0x04, 0x00, 0x04, 0x78, 0x00, 0x13, 0x20, 0x30, 0x04, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x2c, 0x40, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x01, 0x2c, 0x40, 0x00, 0x01, 0x2c, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x2c, 0x40, 0x00, 0x01, 0x28, 0x00, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0xb2, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x9d, 0xb3, 0x21, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x1d, 0xb2, 0x01, 0x02, 0x1d, 0x33, 0x21, 0x02, 0x1d, 0xb2, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x0d, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff, 0xff, 0x33, 0xcc, 0xff, 0xff, 0x80, 0x00, 0x33, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x66, 0x66, 0x66, 0x66, 0xb9, 0xd9, 0x55, 0xaa, 0x0f, 0xf0, 0xff, 0xff, 0xea, 0xaa, 0xdf, 0x75, 0x88, 0x88, 0xff, 0xff, 0xbb, 0x77, 0x77, 0x77, 0xcc, 0x8c, 0xf5, 0xd7, 0xff, 0xff, 0xff, 0xfd, 0xbb, 0xb3, 0xf0, 0x00, 0xa5, 0xa5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xd5, 0xd0, 0xa0, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0xff, 0x3f, 0xdd, 0xff, 0xaf, 0xff, 0xff, 0x3f, 0xcf, 0xff, 0xcf, 0xff, 0xf7, 0xf7, 0x66, 0x66, 0x3c, 0x3c, 0x66, 0x66, 0x5a, 0x5a, 0x55, 0xaa, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x3c, 0x66, 0x66, 0x55, 0xaa, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x3c, 0x66, 0x66, 0x3c, 0x3c, 0x3c, 0x3c, 0x33, 0xcc, 0x66, 0x66, 0x3c, 0x3c, 0x33, 0xcc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x33, 0xcc, 0x33, 0xcc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x55, 0xaa, 0x66, 0x66, 0x66, 0x66, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x04, 0x10, 0x00, 0x24, 0x08, 0x00, 0x48, 0x20, 0x04, 0x12, 0x33, 0xf3, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x35, 0xeb, 0x8a, 0x00, 0x48, 0x20, 0x04, 0x12, 0x31, 0xc3, 0x0d, 0x9c, 0x48, 0x20, 0x04, 0x12, 0x03, 0x32, 0xc0, 0x00, 0x48, 0x20, 0x04, 0x12, 0x15, 0x2a, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x11, 0x26, 0x00, 0x00, 0x40, 0x40, 0x06, 0x02, 0x30, 0x73, 0xc7, 0xc0, 0x40, 0x60, 0x04, 0x02, 0x35, 0xeb, 0x00, 0x04, 0x08, 0x20, 0x02, 0x02, 0x01, 0x83, 0x09, 0x10, 0x40, 0x20, 0x04, 0x02, 0x03, 0x33, 0x0e, 0x00, 0x48, 0x60, 0x00, 0x02, 0x15, 0x0a, 0x00, 0x80, 0x48, 0x20, 0x04, 0x00, 0x11, 0x00, 0x10, 0x00, 0x48, 0x20, 0x00, 0x00, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x01, 0x40, 0x08, 0x20, 0x04, 0x10, 0x00, 0x50, 0x00, 0x90, 0x00, 0x00, 0x04, 0x10, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x04, 0x10, 0x02, 0x64, 0x01, 0x90, 0x00, 0x00, 0x04, 0x10, 0x00, 0x70, 0x01, 0x90, 0x40, 0x00, 0x04, 0x12, 0x34, 0x6b, 0x0c, 0x00, 0x08, 0x20, 0x04, 0x12, 0x01, 0x81, 0x80, 0x08, 0x40, 0x00, 0x04, 0x12, 0x10, 0x22, 0x0a, 0x08, 0x48, 0x20, 0x04, 0x12, 0x10, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x21, 0xd1, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x22, 0xe1, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x34, 0xcd, 0x13, 0x14, 0x04, 0x00, 0x00, 0x20, 0x00, 0xd1, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x22, 0xe1, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x34, 0xc9, 0x89, 0x04, 0x00, 0x00, 0x00, 0x80, 0x01, 0x10, 0xe3, 0x04, 0x01, 0x00, 0x00, 0xa1, 0x02, 0x20, 0x02, 0x14, 0x00, 0x20, 0x00, 0x00, 0x10, 0x08, 0x83, 0x04, 0x05, 0x00, 0x00, 0xa0, 0x28, 0x09, 0x82, 0x04, 0x00, 0x20, 0x80, 0x21, 0x02, 0x00, 0xe3, 0x40, 0x04, 0x00, 0x00, 0x80, 0x14, 0x04, 0x86, 0x00, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x04, 0x04, 0x00, 0x00, 0x20, 0x00, 0x20, 0x03, 0x04, 0x00, 0x00, 0x00, 0x20, 0x10, 0x11, 0x89, 0x14, 0x04, 0x00, 0x00, 0x20, 0x24, 0x54, 0x83, 0x14, 0x04, 0x00, 0x00, 0x20, 0x38, 0xe9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0xc0, 0x00, 0x00, 0x03, 0x02, 0x10, 0x00, 0x07, 0x01, 0x13, 0x03, 0x00, 0x00, 0xe2, 0x00, 0x03, 0x01, 0xc0, 0x00, 0x03, 0xa2, 0xc8, 0x03, 0x00, 0xc0, 0xa3, 0x03, 0x01, 0x00, 0xc8, 0x00, 0xc7, 0x00, 0x03, 0x02, 0xcb, 0x80, 0x00, 0x03, 0x00, 0x00, 0x00, 0x47, 0x13, 0xc4, 0x00, 0x00, 0x03, 0x44, 0x07, 0x00, 0x00, 0x03, 0x00, 0x02, 0x03, 0x00, 0x07, 0x00, 0xe2, 0x83, 0x22, 0x47, 0x01, 0x02, 0x62, 0xc4, 0x00, 0x81, 0x81, 0x03, 0x04, 0x00, 0x81, 0x00, 0x03, 0xc0, 0x00, 0x13, 0x03, 0x03, 0x00, 0x00, 0x00, 0xd7, 0x00, 0x00, 0x07, 0x03, 0x23, 0x00, 0x03, 0xcb, 0xc3, 0x93, 0xc1, 0xc4, 0x13, 0xcb, 0x13, 0xc8, 0x93, 0x00, 0xc1, 0xc3, 0x83, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x88, 0x00, 0x00, 0x00, 0xc8, 0xc3, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x03, 0x40, 0xc0, 0x43, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x03, 0x00, 0x00, 0x13, 0x03, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0x03, 0x03, 0xc0, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x03, 0x00, 0xc0, 0x00, 0xc4, 0x03, 0x03, 0xc3, 0xc3, 0xc0, 0xc8, 0x00, 0x47, 0x22, 0xc8, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x01, 0x00, 0x00, 0x08, 0x04, 0x00, 0x02, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x08, 0x40, 0x04, 0x00, 0x01, 0x04, 0x00, 0x20, 0x00, 0x10, 0x02, 0x04, 0x01, 0x00, 0x80, 0x00, 0x02, 0x00, 0x08, 0x04, 0x01, 0x80, 0x80, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x04, 0x20, 0x08, 0x00, 0x00, 0x02, 0x00, 0x04, 0x82, 0x04, 0x08, 0x01, 0x02, 0x00, 0x02, 0xc0, 0x40, 0x04, 0x01, 0x04, 0x20, 0x00, 0x10, 0xc0, 0x03, 0x20, 0x00, 0x00, 0x03, 0x00, 0x08, 0x10, 0x80, 0x00, 0x01, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x40, 0x0a, 0x80, 0x03, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x08, 0x21, 0x84, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x40, 0x02, 0x10, 0x01, 0x00, 0x00, 0x08, 0x09, 0x40, 0x12, 0x48, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x10, 0x80, 0x10, 0x00, 0x00, 0x40, 0x10, 0x01, 0x10, 0x80, 0x20, 0x01, 0x10, 0x80, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x30, 0x00, 0x30, 0x00, 0x80, 0x82, 0x02, 0x08, 0x41, 0x28, 0x30, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x20, 0x08, 0x00, 0x28, 0xe0, 0x00, 0x00, 0x32, 0xc4, 0x5e, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x16, 0x90, 0x00, 0x84, 0x1d, 0x00, 0x20, 0x00, 0x14, 0x2a, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x12, 0x70, 0x01, 0x00, 0x0a, 0x02, 0x00, 0x00, 0x00, 0x78, 0x00, 0x0a, 0x01, 0x70, 0xe1, 0xe0, 0x08, 0x00, 0xa1, 0xa0, 0x00, 0x00, 0x01, 0x57, 0x00, 0x02, 0xb1, 0x0f, 0x00, 0x10, 0x71, 0x4f, 0x4e, 0x00, 0x00, 0x00, 0x01, 0x38, 0x04, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x1c, 0x00, 0x85, 0xc0, 0x00, 0xb0, 0x01, 0x80, 0x0c, 0x00, 0x10, 0x04, 0x01, 0xe8, 0xd3, 0xc0, 0x00, 0x03, 0x69, 0x45, 0x86, 0x00, 0x00, 0x00, 0x1c, 0x80, 0x68, 0x0d, 0x00, 0x10, 0xf0, 0x2b, 0x1e, 0x38, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x0b, 0x20, 0x30, 0x00, 0x20, 0x06, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x68, 0x07, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x03, 0x00, 0x60, 0x00, 0x06, 0x20, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x04, 0x00, 0x10, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x6c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x80, 0x00, 0x00, 0x05, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0xe1, 0xc0, 0x00, 0x48, 0x03, 0x02, 0x46, 0x00, 0x00, 0x46, 0x40, 0x88, 0x08, 0x10, 0x00, 0x02, 0x20, 0x00, 0x00, 0x08, 0x05, 0x80, 0x00, 0x00, 0x08, 0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x60, 0x00, 0x1c, 0x14, 0x30, 0x00, 0xaa, 0x26, 0x00, 0xa0, 0x00, 0x1c, 0x14, 0xe0, 0x80, 0x0e, 0x08, 0xa2, 0x04, 0x00, 0x00, 0x03, 0xc8, 0x0e, 0x34, 0xa4, 0x00, 0x30, 0x7a, 0x0b, 0x84, 0x10, 0x00, 0x00, 0x00, 0x1c, 0x14, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x68, 0x01, 0x80, 0x00, 0x08, 0x80, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x30, 0x6b, 0x23, 0x80, 0x00, 0x00, 0x00, 0x02, 0x30, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x70, 0x05, 0x90, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x06, 0x00, 0x00, 0x00, 0x02, 0x08, 0x00, 0x10, 0x00, 0x70, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x00, 0x00, 0x00, 0x06, 0x40, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0x68, 0x00, 0x00, 0x00, 0x74, 0x00, 0x06, 0x90, 0x14, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x30, 0x10, 0x01, 0x4c, 0x10, 0x01, 0x00, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x21, 0xb0, 0x00, 0x00, 0x00, 0x20, 0x00, 0x60, 0x00, 0x2c, 0x30, 0x00, 0x80, 0x00, 0x00, 0x46, 0x00, 0x24, 0x00, 0x00, 0x40, 0x02, 0x61, 0x00, 0x08, 0x02, 0x02, 0x92, 0x00, 0x09, 0x08, 0x28, 0x42, 0xa0, 0x21, 0x09, 0x00, 0x34, 0x00, 0x28, 0x33, 0x04, 0x28, 0x00, 0x04, 0x10, 0x00, 0x00, 0x84, 0x80, 0xc0, 0x8e, 0x00, 0x01, 0x00, 0x00, 0x00, 0x24, 0x10, 0x20, 0x00, 0x00, 0xc1, 0x00, 0x00, 0x08, 0x04, 0x03, 0x00, 0x00, 0x81, 0x00, 0xa0, 0x08, 0x09, 0x40, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x44, 0xa0, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x30, 0x41, 0x00, 0x00, 0x60, 0x10, 0x00, 0x08, 0x4a, 0x81, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x08, 0x81, 0x00, 0x01, 0x00, 0x83, 0x02, 0x08, 0x00, 0x90, 0x00, 0x02, 0x08, 0xf0, 0x02, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x01, 0x00, 0x41, 0x00, 0x00, 0x20, 0x08, 0x02, 0x00, 0x00, 0x00, 0x11, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x06, 0x10, 0x01, 0x20, 0x00, 0x00, 0x08, 0xb0, 0xe0, 0x1c, 0x00, 0x00, 0x08, 0x00, 0x00, 0xa0, 0x07, 0x00, 0x40, 0x02, 0x10, 0x1c, 0x00, 0x10, 0x00, 0x10, 0x3c, 0x0f, 0x00, 0x00, 0x00, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xa0, 0x08, 0x00, 0x14, 0x02, 0x00, 0x06, 0xc0, 0x10, 0x01, 0x00, 0x30, 0x22, 0x07, 0x12, 0xe4, 0x20, 0x03, 0x80, 0x00, 0xe1, 0x98, 0x10, 0x00, 0x42, 0x04, 0x30, 0x68, 0x01, 0x87, 0x5c, 0x00, 0x00, 0x00, 0x0c, 0x34, 0x80, 0x00, 0x00, 0x10, 0x18, 0x00, 0x12, 0x01, 0x05, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x28, 0x45, 0xb1, 0x96, 0x0c, 0x10, 0x03, 0x80, 0x90, 0xe0, 0x00, 0x10, 0x01, 0x00, 0x00, 0x17, 0x00, 0x10, 0x03, 0xe0, 0x35, 0x28, 0x10, 0x03, 0x52, 0x00, 0x0b, 0xc6, 0x14, 0x00, 0xe1, 0x82, 0x06, 0x00, 0x01, 0xe0, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x03, 0x00, 0x15, 0x30, 0x00, 0x02, 0x00, 0x00, 0x01, 0x89, 0x82, 0x32, 0x00, 0x08, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x17, 0x00, 0x00, 0x00, 0x60, 0x00, 0xb4, 0xc0, 0x02, 0x10, 0x00, 0x00, 0x00, 0x10, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0xe0, 0x06, 0x01, 0x50, 0x18, 0x00, 0x00, 0x30, 0x03, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x28, 0x02, 0x10, 0x00, 0x24, 0x08, 0x00, 0xc0, 0x00, 0x1c, 0x08, 0x01, 0x80, 0x00, 0x00, 0xa6, 0x80, 0x1c, 0x00, 0x00, 0x4f, 0x80, 0x01, 0x00, 0x08, 0x00, 0x00, 0x10, 0x60, 0x02, 0xc0, 0x30, 0x20, 0x0a, 0x81, 0xf3, 0x80, 0x48, 0x62, 0x32, 0x40, 0x00, 0x00, 0xf4, 0x15, 0x08, 0x05, 0x02, 0x10, 0x00, 0x00, 0x61, 0x80, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x50, 0x00, 0xe0, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x30, 0xa5, 0x00, 0x4c, 0x38, 0x03, 0xd0, 0x0e, 0x40, 0x00, 0x00, 0x1c, 0x14, 0x04, 0x03, 0x40, 0x04, 0xd2, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x26, 0x80, 0x0a, 0x00, 0x84, 0x23, 0xa6, 0x60, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x60, 0x06, 0x00, 0x48, 0x00, 0x00, 0x00, 0x80, 0x40, 0x09, 0x08, 0x1c, 0x00, 0x50, 0x04, 0x0d, 0x70, 0x05, 0x80, 0x00, 0x00, 0x00, 0x03, 0x80, 0x60, 0x01, 0x08, 0x30, 0x30, 0x68, 0x03, 0x49, 0x00, 0x00, 0x00, 0x34, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x02, 0x24, 0x00, 0x20, 0x01, 0x20, 0x30, 0x00, 0x20, 0x34, 0x08, 0x4c, 0x0a, 0x02, 0x00, 0x02, 0x00, 0x2c, 0x20, 0x59, 0x22, 0x48, 0x18, 0x80, 0x18, 0x80, 0x10, 0x10, 0x04, 0x4c, 0x11, 0x38, 0x01, 0x00, 0x08, 0x00, 0x14, 0x00, 0x08, 0x00, 0x30, 0x00, 0x00, 0x20, 0x41, 0x00, 0x10, 0x08, 0x04, 0x00, 0x00, 0x01, 0x10, 0x00, 0x88, 0x00, 0x0c, 0x00, 0x00, 0x40, 0x09, 0x04, 0x21, 0x01, 0x00, 0x00, 0x80, 0x00, 0x11, 0x90, 0x2c, 0x00, 0x40, 0x00, 0x00, 0x00, 0x49, 0x14, 0x40, 0x00, 0x00, 0x00, 0x00, 0x54, 0x14, 0x04, 0x18, 0x00, 0x2a, 0x00, 0x00, 0x04, 0x14, 0x40, 0x28, 0x02, 0x00, 0x00, 0x00, 0x24, 0x11, 0x24, 0x14, 0x02, 0x19, 0x00, 0x34, 0x48, 0x4c, 0x14, 0x54, 0x81, 0x00, 0x10, 0x80, 0x80, 0x5c, 0x00, 0x3c, 0x32, 0x04, 0x04, 0x04, 0x04, 0x04, 0x21, 0x00, 0x04, 0x48, 0x00, 0x10, 0x08, 0x11, 0x84, 0x04, 0x02, 0x10, 0x44, 0x42, 0x20, 0x10, 0x10, 0x20, 0x20, 0x04, 0x44, 0x09, 0x84, 0x00, 0x80, 0x8c, 0x01, 0x81, 0x84, 0x00, 0x01, 0x01, 0x28, 0x21, 0x00, 0x20, 0x22, 0x80, 0x00, 0x20, 0x10, 0x20, 0x18, 0x10, 0x14, 0x00, 0x44, 0x29, 0x00, 0x14, 0x00, 0x00, 0x00, 0x20, 0x34, 0x10, 0x24, 0x90, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x10, 0x40, 0x00, 0x40, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x0e, 0x00, 0x00, 0x20, 0x90, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x10, 0x08, 0x24, 0x04, 0x0e, 0x00, 0x00, 0x1e, 0x64, 0x0d, 0x34, 0x00, 0x04, 0x18, 0xb0, 0x34, 0x68, 0x09, 0x20, 0x20, 0x04, 0x00, 0x18, 0x0e, 0x0a, 0x04, 0x00, 0x20, 0x00, 0x9c, 0x06, 0x25, 0x60, 0x09, 0x00, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x00, 0xb0, 0x30, 0x10, 0x00, 0xb0, 0x0a, 0x00, 0x60, 0x00, 0x00, 0x08, 0x10, 0x06, 0x06, 0x00, 0x0e, 0x00, 0x00, 0x39, 0x20, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x10, 0x00, 0x06, 0x00, 0x3a, 0x00, 0x20, 0x20, 0x00, 0x68, 0x00, 0x10, 0x70, 0x20, 0x00, 0x04, 0x00, 0x00, 0x48, 0x00, 0x90, 0x10, 0x4a, 0x20, 0x00, 0x00, 0x20, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x30, 0x00, 0x24, 0xb0, 0x2c, 0x3e, 0x00, 0xbd, 0x1e, 0x08, 0x09, 0x0e, 0x30, 0x1a, 0x0c, 0x58, 0x10, 0x00, 0x3e, 0x50, 0xb0, 0x50, 0x3d, 0xb0, 0x0d, 0x0a, 0x09, 0x00, 0x00, 0x50, 0x70, 0x7c, 0x00, 0x00, 0x20, 0x98, 0x10, 0xa0, 0x30, 0x00, 0x20, 0x98, 0x30, 0x04, 0x00, 0x00, 0x2e, 0x3a, 0x00, 0x30, 0x49, 0x0c, 0x76, 0x14, 0x30, 0x10, 0x05, 0x00, 0x04, 0x0e, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x10, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x10, 0x00, 0x70, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x0c, 0x00, 0x20, 0x00, 0x30, 0x10, 0x00, 0x80, 0x0c, 0x08, 0x70, 0x08, 0x80, 0x10, 0x30, 0x18, 0x30, 0x00, 0x00, 0x10, 0x70, 0x31, 0x00, 0x00, 0x80, 0x18, 0x0c, 0x10, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x30, 0x3c, 0x00, 0x00, 0x00, 0x74, 0x00, 0x00, 0x88, 0x00, 0x00, 0x20, 0x0a, 0x00, 0x00, 0x00, 0x30, 0x08, 0xf4, 0x1c, 0x0c, 0x40, 0x00, 0x30, 0x00, 0x48, 0x1a, 0x10, 0x00, 0x30, 0x00, 0x40, 0x00, 0x38, 0x0c, 0x30, 0xd0, 0x70, 0x00, 0x00, 0x20, 0x50, 0x84, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x51, 0x70, 0x3c, 0x7c, 0x04, 0x08, 0x04, 0x58, 0x80, 0x31, 0x3e, 0x10, 0x04, 0x18, 0x38, 0x00, 0x00, 0xa0, 0x3e, 0x10, 0x0a, 0x08, 0x08, 0x0c, 0x00, 0x80, 0x01, 0x8c, 0x18, 0x80, 0xd0, 0x20, 0x0b, 0x00, 0x00, 0x7c, 0x14, 0x09, 0x68, 0x00, 0x30, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x31, 0x0c, 0x34, 0xd0, 0x31, 0xb4, 0x0c, 0xbc, 0x30, 0x80, 0x55, 0x88, 0x2a, 0x34, 0x0e, 0xb0, 0x80, 0x30, 0x8a, 0x30, 0x01, 0x20, 0x00, 0x00, 0x04, 0x00, 0x14, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x28, 0x60, 0x88, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x50, 0x10, 0x00, 0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x80, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x40, 0x00, 0x04, 0x00, 0x00, 0x22, 0x00, 0x0c, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x05, 0x04, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x05, 0x00, 0x00, 0x20, 0x00, 0x00, 0x80, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x14, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x04, 0x03, 0x80, 0x10, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x04, 0x54, 0x01, 0x00, 0x01, 0x0c, 0x00, 0x90, 0x40, 0x14, 0x90, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0xc2, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xee, 0xf5, 0x00, 0x8c, 0x8c, 0xff, 0xff, 0xcf, 0xcc, 0x00, 0xfb, 0x00, 0xf0, 0xee, 0xe0, 0x00, 0x10, 0x5f, 0x5f, 0xfc, 0xc3, 0xcd, 0xff, 0x55, 0x55, 0x0f, 0x0f, 0x0f, 0x0f, 0x00, 0xff, 0x55, 0x55, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0x55, 0x55, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0x55, 0x55, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xae, 0xff, 0xf3, 0xf3, 0xff, 0xfc, 0xf0, 0xcc, 0xc0, 0x88, 0xc0, 0x80, 0xf3, 0xff, 0xff, 0xfc, 0xff, 0xe0, 0xe0, 0xf0, 0x77, 0x77, 0xef, 0xff, 0xf3, 0x11, 0xc0, 0x84, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xa0, 0xa0, 0xc0, 0xc0, 0x31, 0x31, 0xff, 0xff, 0xdf, 0xdf, 0xdf, 0xdf, 0xcf, 0xff, 0xcf, 0xff, 0xaf, 0xcf, 0xff, 0xc3, 0xf5, 0xff, 0xf5, 0xff, 0xaf, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xfc, 0xa8, 0xfc, 0xee, 0xfc, 0xee, 0xfe, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xec, 0xfe, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xd5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x13, 0x20, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x13, 0x20, 0x30, 0x04, 0x09, 0x24, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x01, 0x24, 0x70, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x73, 0x25, 0x46, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x8d, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xee, 0xe0, 0xe0, 0xf0, 0x00, 0xa0, 0xd0, 0xdd, 0x55, 0x51, 0xcf, 0x8a, 0xbf, 0xbf, 0x0f, 0x0d, 0x0a, 0x00, 0x3c, 0x3c, 0x33, 0x33, 0x00, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x00, 0xff, 0x0f, 0x0f, 0x0f, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xcc, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xf3, 0xf3, 0x00, 0x11, 0xd8, 0xd8, 0xe2, 0xe2, 0xfc, 0x0c, 0xaf, 0xa0, 0xac, 0xac, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xdf, 0xdf, 0xdf, 0xdf, 0x6f, 0xf6, 0x6f, 0xf6, 0x7b, 0xde, 0x7d, 0xbe, 0x7b, 0xde, 0x6f, 0xf6, 0x7b, 0xde, 0x7d, 0xbe, 0x6f, 0xf6, 0x6f, 0xf6, 0x7b, 0xde, 0x7b, 0xde, 0x7d, 0xbe, 0x7d, 0xbe, 0x6f, 0xf6, 0x7b, 0xde, 0xee, 0xee, 0xfc, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaf, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xdd, 0x88, 0xdf, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x04, 0x12, 0x01, 0x26, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x20, 0xc5, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x25, 0x89, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x31, 0xe7, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x13, 0x32, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x15, 0x2a, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x11, 0x26, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x08, 0x23, 0x07, 0x90, 0x48, 0x60, 0x04, 0x02, 0x34, 0x6b, 0x07, 0x1c, 0x00, 0x20, 0x04, 0x02, 0x01, 0xe4, 0xd6, 0x10, 0x40, 0x60, 0x04, 0x12, 0x13, 0x02, 0x0c, 0x00, 0x48, 0x20, 0x00, 0x00, 0x15, 0x00, 0x08, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x90, 0x58, 0x20, 0x04, 0x12, 0x00, 0xa1, 0x08, 0x00, 0x50, 0x20, 0x04, 0x12, 0x00, 0x09, 0x01, 0x44, 0x00, 0x00, 0x04, 0x12, 0x00, 0x51, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x02, 0x10, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x39, 0xf3, 0x01, 0x84, 0x40, 0x00, 0x04, 0x12, 0x34, 0x6b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x48, 0x20, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x04, 0x00, 0x20, 0x04, 0x21, 0x10, 0x08, 0x83, 0x04, 0x84, 0x20, 0x04, 0x21, 0x14, 0x08, 0x83, 0x04, 0x84, 0x00, 0x04, 0x21, 0x02, 0x80, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x34, 0xc9, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x21, 0xd1, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x22, 0xe1, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x34, 0xc9, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x00, 0xc7, 0x8d, 0x04, 0x00, 0x00, 0x00, 0xa1, 0x00, 0x20, 0x23, 0x20, 0x01, 0x00, 0x00, 0xa0, 0x10, 0x00, 0x86, 0x04, 0x01, 0x00, 0x00, 0x21, 0x01, 0x10, 0x82, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x21, 0x00, 0x01, 0x0b, 0x04, 0x00, 0x20, 0x00, 0x21, 0x10, 0x0c, 0x09, 0x24, 0x10, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x84, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x04, 0x00, 0x00, 0x04, 0x21, 0x00, 0x41, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x08, 0x10, 0x89, 0x1c, 0x04, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x03, 0x03, 0xa2, 0x02, 0x00, 0xe1, 0x47, 0xc7, 0xc0, 0x02, 0x22, 0x01, 0x00, 0xc3, 0xe3, 0x82, 0x23, 0xc3, 0xc5, 0xc0, 0x22, 0xc4, 0x93, 0x03, 0x00, 0x08, 0xc0, 0x03, 0x07, 0xc4, 0x22, 0xcb, 0x43, 0x09, 0xc1, 0x00, 0x22, 0x81, 0xc0, 0xc3, 0xdb, 0x08, 0xe3, 0x00, 0x22, 0xc3, 0xc8, 0xc4, 0x03, 0xc4, 0x00, 0xe1, 0x00, 0xc0, 0x00, 0xc0, 0xcf, 0x00, 0x03, 0x03, 0x00, 0xc8, 0x00, 0x00, 0xc3, 0x00, 0x07, 0x00, 0x00, 0x03, 0x00, 0x01, 0xc4, 0x08, 0xc0, 0xc8, 0x22, 0x47, 0x62, 0x01, 0xe2, 0xc0, 0x53, 0x02, 0x40, 0xc8, 0x01, 0x00, 0x13, 0x80, 0xc3, 0xc9, 0x00, 0xc8, 0x00, 0xa0, 0x07, 0x00, 0x88, 0x00, 0x00, 0xc3, 0xc7, 0xe2, 0xc0, 0x03, 0x00, 0xd3, 0x00, 0xcb, 0x47, 0xc0, 0x47, 0x80, 0xc0, 0x47, 0x40, 0x03, 0xc0, 0x02, 0x43, 0x02, 0x83, 0xa3, 0x07, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0xc3, 0xc3, 0x20, 0x03, 0xe0, 0x04, 0x01, 0x99, 0xc7, 0x88, 0xeb, 0x03, 0x83, 0xf3, 0x13, 0xcb, 0xe3, 0xc7, 0xd3, 0xe3, 0xa3, 0xe3, 0x00, 0xc3, 0x05, 0xc0, 0xe2, 0xe0, 0xc0, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x08, 0x08, 0x02, 0x04, 0x00, 0x40, 0x20, 0x04, 0x84, 0x84, 0x40, 0x41, 0x04, 0x18, 0x40, 0x84, 0x04, 0x14, 0x20, 0x01, 0x00, 0x00, 0x02, 0x08, 0x80, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x08, 0x21, 0x40, 0x21, 0x02, 0x00, 0xc0, 0x20, 0xa0, 0x00, 0x00, 0x10, 0x02, 0x00, 0x50, 0x80, 0x02, 0x01, 0x00, 0x00, 0x40, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x01, 0x40, 0x00, 0x04, 0x80, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x40, 0x04, 0x00, 0x10, 0x00, 0x00, 0x04, 0x20, 0x20, 0x10, 0x80, 0x20, 0x04, 0x40, 0x00, 0x01, 0x00, 0x00, 0x80, 0x03, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x88, 0x04, 0x02, 0x84, 0x21, 0x40, 0x10, 0x00, 0x20, 0x20, 0x10, 0x20, 0x80, 0x02, 0x20, 0x20, 0x20, 0x04, 0x04, 0x28, 0x04, 0x0c, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x12, 0x00, 0x02, 0x10, 0x00, 0x41, 0x00, 0x10, 0x02, 0x00, 0x09, 0x03, 0x00, 0x00, 0x08, 0x10, 0x40, 0x02, 0x08, 0x04, 0x40, 0x00, 0x88, 0x00, 0xa0, 0x10, 0x00, 0x84, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x4b, 0xc1, 0x00, 0x38, 0x00, 0x0f, 0x01, 0x61, 0x0a, 0x00, 0x00, 0x01, 0x20, 0x4b, 0x1c, 0x02, 0x10, 0x00, 0x5c, 0x00, 0x24, 0x04, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x03, 0x80, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x70, 0x01, 0xc0, 0x0e, 0x80, 0x00, 0x00, 0x00, 0x0f, 0x01, 0x44, 0x2e, 0x82, 0xa0, 0x0f, 0x0a, 0x28, 0x20, 0x80, 0x0f, 0x0a, 0xb0, 0x00, 0x12, 0xb0, 0x03, 0x83, 0x0e, 0x80, 0x06, 0x84, 0x00, 0x00, 0x90, 0x07, 0x90, 0x30, 0xe0, 0x21, 0x1c, 0x08, 0x50, 0x07, 0x2c, 0x60, 0x03, 0x81, 0x12, 0x30, 0x70, 0x50, 0x92, 0x16, 0xf9, 0x07, 0x5c, 0x30, 0x00, 0x0b, 0x80, 0x00, 0xf0, 0x0f, 0x00, 0xb4, 0x78, 0x00, 0x0e, 0x32, 0x00, 0x01, 0x14, 0x2a, 0x01, 0xc0, 0x01, 0x00, 0x03, 0x80, 0x08, 0x09, 0x00, 0x05, 0x00, 0x4c, 0x02, 0x8e, 0x00, 0x48, 0x20, 0x07, 0x2c, 0x00, 0x00, 0x16, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x20, 0x32, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x21, 0x80, 0x0c, 0x14, 0x05, 0x87, 0x0c, 0x0c, 0xc1, 0xd0, 0x0c, 0x02, 0x23, 0x8a, 0x00, 0x04, 0xe0, 0x00, 0x88, 0x14, 0x87, 0x92, 0x42, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x2c, 0x28, 0x04, 0xd0, 0x16, 0x70, 0x00, 0x00, 0x1c, 0x30, 0x0b, 0x2f, 0x18, 0x08, 0xe0, 0x06, 0xbc, 0xb2, 0x24, 0x82, 0x50, 0x00, 0xe0, 0x00, 0x08, 0x88, 0x04, 0x93, 0x40, 0x60, 0x00, 0x50, 0x40, 0x10, 0x23, 0x24, 0x80, 0x61, 0x05, 0x00, 0x00, 0x88, 0x35, 0x87, 0x42, 0x18, 0x01, 0x20, 0x00, 0x08, 0xf1, 0xc3, 0x08, 0x18, 0xe2, 0x00, 0x1d, 0x83, 0x20, 0x03, 0x00, 0x04, 0x00, 0x00, 0x90, 0x28, 0x0c, 0x80, 0x28, 0x00, 0xe0, 0x00, 0x00, 0x88, 0x03, 0x80, 0x00, 0x30, 0x01, 0xa0, 0x08, 0x28, 0x60, 0x17, 0x00, 0x10, 0x00, 0x07, 0x10, 0x00, 0x80, 0x17, 0x06, 0x00, 0x00, 0x07, 0x88, 0x48, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x30, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x10, 0x00, 0x50, 0x00, 0x04, 0x00, 0x00, 0xce, 0x02, 0x0f, 0x00, 0x00, 0x01, 0x00, 0x90, 0x28, 0x90, 0xc0, 0x20, 0x40, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x11, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x00, 0x88, 0x00, 0x00, 0x02, 0x00, 0x38, 0x45, 0x30, 0x00, 0x00, 0x41, 0x20, 0x01, 0x30, 0x40, 0x64, 0x40, 0x19, 0x00, 0x80, 0x00, 0x04, 0x04, 0x10, 0x21, 0x00, 0x00, 0x84, 0x02, 0x20, 0x00, 0x0c, 0x53, 0x80, 0x02, 0x00, 0x70, 0x00, 0x80, 0x0d, 0x0a, 0x10, 0x0c, 0x40, 0x40, 0x14, 0x94, 0x01, 0x50, 0x10, 0x2c, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x20, 0x20, 0x00, 0x40, 0x00, 0x02, 0x00, 0xa0, 0x00, 0x84, 0x20, 0x80, 0x01, 0x08, 0x06, 0x05, 0x44, 0x00, 0x70, 0x02, 0x80, 0x2a, 0x9a, 0x40, 0x10, 0x00, 0x10, 0x03, 0x32, 0xc3, 0x08, 0x50, 0x12, 0x0c, 0x00, 0x00, 0x00, 0x41, 0x08, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x70, 0x04, 0x03, 0x00, 0x00, 0x26, 0x06, 0x08, 0x00, 0xc3, 0x0f, 0x0d, 0x00, 0x19, 0xc1, 0xc0, 0x30, 0x63, 0x82, 0x1c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x0c, 0x00, 0x03, 0x20, 0x00, 0x00, 0x15, 0x03, 0xb1, 0x28, 0x05, 0x80, 0x30, 0x7c, 0xa0, 0x61, 0x14, 0x90, 0x11, 0x82, 0x0f, 0x00, 0x10, 0x06, 0x14, 0x00, 0x00, 0x87, 0x00, 0x00, 0x2b, 0x26, 0x00, 0x28, 0x04, 0x03, 0x00, 0xc0, 0x08, 0xd4, 0x00, 0x38, 0x21, 0x88, 0x00, 0x40, 0x08, 0x7f, 0x90, 0x10, 0xf0, 0x0f, 0x00, 0x64, 0x41, 0x86, 0x10, 0x00, 0x24, 0xc0, 0x06, 0xb4, 0x51, 0x18, 0x3e, 0x10, 0x62, 0x05, 0x02, 0x90, 0x30, 0x07, 0x80, 0x28, 0xcb, 0x80, 0x0e, 0x0a, 0x00, 0x00, 0x30, 0xa8, 0x83, 0x00, 0x08, 0x60, 0x00, 0x00, 0x1c, 0x28, 0x80, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0e, 0x32, 0x20, 0x03, 0x08, 0x00, 0x00, 0x00, 0x0c, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x80, 0x00, 0x0b, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0b, 0xb8, 0x00, 0x8f, 0x40, 0x02, 0x33, 0x94, 0x4c, 0x48, 0xf0, 0x8b, 0x0f, 0x04, 0xc0, 0x00, 0x0e, 0x01, 0x10, 0x10, 0x28, 0x78, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0xe0, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x0e, 0x0c, 0x00, 0x00, 0x0b, 0x00, 0x61, 0x40, 0x0a, 0x34, 0x02, 0x21, 0xaf, 0x88, 0x00, 0x02, 0x00, 0x0c, 0x00, 0xe3, 0xc0, 0x86, 0x00, 0x02, 0x00, 0x6c, 0x80, 0x03, 0xcb, 0x4c, 0x44, 0x05, 0x14, 0x88, 0x02, 0x70, 0x14, 0x00, 0xe0, 0xa0, 0x0e, 0x00, 0x02, 0x00, 0x04, 0x00, 0x48, 0x40, 0x5e, 0x2c, 0xad, 0xa0, 0x84, 0x06, 0x40, 0xd5, 0x8e, 0x14, 0xac, 0x04, 0x4f, 0x00, 0x44, 0x00, 0x10, 0x40, 0x94, 0x01, 0x60, 0x2c, 0x70, 0x30, 0x06, 0x00, 0x28, 0x01, 0x68, 0x01, 0x14, 0x06, 0x00, 0x20, 0x00, 0x58, 0x0b, 0x40, 0x44, 0x02, 0x9e, 0x14, 0x03, 0x50, 0x04, 0x62, 0x00, 0x00, 0x0b, 0x1e, 0xa8, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x11, 0x90, 0x10, 0x90, 0x00, 0x20, 0x02, 0x20, 0x00, 0x80, 0x20, 0x00, 0x08, 0x88, 0x00, 0x08, 0x00, 0x10, 0x18, 0x50, 0x08, 0x90, 0x00, 0x50, 0x8a, 0x20, 0x38, 0x10, 0x00, 0x20, 0x28, 0x34, 0x10, 0x80, 0x18, 0x20, 0x10, 0x00, 0x08, 0x00, 0x14, 0x10, 0x40, 0x00, 0x10, 0x10, 0x0a, 0x01, 0x90, 0x04, 0x01, 0x00, 0x09, 0x00, 0x24, 0x00, 0x09, 0x20, 0x10, 0x00, 0x00, 0x30, 0x02, 0x24, 0x88, 0x80, 0x24, 0x40, 0x44, 0x28, 0x04, 0x02, 0x00, 0x0c, 0x10, 0x01, 0x08, 0x81, 0x10, 0x10, 0x02, 0x44, 0x08, 0x28, 0x20, 0x40, 0x04, 0x10, 0x24, 0x9c, 0x04, 0x00, 0x20, 0x80, 0x10, 0x00, 0x84, 0x28, 0x00, 0x02, 0x08, 0x00, 0x00, 0x00, 0x80, 0x30, 0x24, 0x10, 0x04, 0x20, 0x48, 0x84, 0x24, 0x00, 0x00, 0x0c, 0x00, 0x0a, 0x08, 0x02, 0x42, 0x38, 0x19, 0x00, 0x90, 0x38, 0x02, 0x10, 0x18, 0x28, 0x02, 0x00, 0x09, 0x30, 0x24, 0x14, 0x02, 0x28, 0x00, 0x00, 0x24, 0x20, 0x20, 0x40, 0x21, 0x00, 0x3c, 0x30, 0x30, 0x10, 0x48, 0x00, 0x10, 0x00, 0x80, 0x18, 0x38, 0x80, 0x00, 0x28, 0x80, 0x28, 0x09, 0x21, 0x40, 0x21, 0x30, 0x10, 0x01, 0x00, 0x20, 0x00, 0x04, 0x02, 0x20, 0x08, 0x80, 0x01, 0x00, 0x08, 0x0c, 0x20, 0x20, 0x04, 0x00, 0x20, 0x80, 0x41, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x10, 0x20, 0x20, 0x00, 0x00, 0xb0, 0x10, 0xbe, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x04, 0x02, 0x04, 0x09, 0x2d, 0x28, 0x06, 0x0c, 0x00, 0x00, 0x0a, 0x04, 0x00, 0x14, 0x30, 0x00, 0x00, 0x38, 0x20, 0x0d, 0x00, 0x2c, 0x90, 0x20, 0x00, 0x3c, 0x70, 0x00, 0x20, 0x00, 0x00, 0x00, 0x2a, 0x5c, 0x60, 0x00, 0x00, 0x0e, 0x40, 0x1c, 0x00, 0x90, 0x00, 0x1c, 0x70, 0x00, 0x90, 0x0e, 0x00, 0x00, 0x05, 0x08, 0xb0, 0x60, 0x0e, 0x30, 0x0c, 0x0e, 0x90, 0x99, 0x04, 0x1e, 0x00, 0xa4, 0x00, 0x16, 0x20, 0x00, 0x00, 0x0c, 0x08, 0x3e, 0x0e, 0x00, 0x12, 0x09, 0x18, 0x00, 0x00, 0x05, 0x00, 0x30, 0x00, 0x00, 0x00, 0x08, 0x5c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x3e, 0x3a, 0x30, 0x00, 0x00, 0x64, 0x70, 0x00, 0x00, 0x09, 0x74, 0x50, 0x00, 0x0c, 0x0a, 0x10, 0x14, 0x34, 0x70, 0x3e, 0x00, 0x00, 0x20, 0x2c, 0x54, 0xb0, 0xb0, 0x08, 0x18, 0x09, 0x38, 0x7a, 0x04, 0x0d, 0x9a, 0x05, 0x7d, 0x00, 0x00, 0xb5, 0xac, 0x1c, 0x20, 0x0e, 0x08, 0x0c, 0x20, 0x29, 0x00, 0x09, 0x00, 0x24, 0x56, 0x0d, 0x94, 0x00, 0x0c, 0xbc, 0x12, 0x0a, 0x06, 0x10, 0x30, 0x0e, 0x00, 0x20, 0x08, 0x79, 0x00, 0x80, 0x04, 0x09, 0x00, 0x00, 0x04, 0x04, 0x50, 0x00, 0x50, 0x00, 0x0d, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x90, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0c, 0x10, 0x00, 0x10, 0x00, 0x1a, 0x84, 0x00, 0x00, 0x30, 0x32, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x20, 0x3c, 0x10, 0x30, 0x00, 0x50, 0x21, 0x80, 0x30, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00, 0x80, 0x70, 0x0c, 0x00, 0x30, 0x00, 0x00, 0x70, 0x5c, 0x04, 0x10, 0x00, 0x54, 0x70, 0xf8, 0x00, 0x10, 0x80, 0x8c, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x26, 0x10, 0x3c, 0x12, 0xbc, 0x20, 0x04, 0x00, 0x70, 0x00, 0x00, 0x04, 0x70, 0x34, 0x40, 0x00, 0x0d, 0x14, 0x82, 0x00, 0x80, 0x10, 0x48, 0x00, 0x08, 0x38, 0x50, 0x0a, 0x22, 0x20, 0x00, 0x00, 0x10, 0x20, 0x01, 0x09, 0x50, 0x00, 0x00, 0x0b, 0x10, 0x00, 0xb8, 0x03, 0x0c, 0x20, 0x20, 0x34, 0x3c, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x9c, 0x00, 0x0c, 0x50, 0x30, 0x10, 0x08, 0x00, 0x00, 0x20, 0x04, 0x0e, 0x08, 0x2b, 0x00, 0x05, 0x00, 0x30, 0x00, 0x02, 0x18, 0x30, 0x0e, 0x3a, 0x3c, 0x61, 0x0c, 0x20, 0x10, 0x01, 0x20, 0x80, 0x00, 0x00, 0x30, 0x00, 0x00, 0x30, 0x50, 0x30, 0x20, 0x10, 0x0c, 0xac, 0x30, 0x24, 0x30, 0x00, 0x5c, 0x76, 0xb0, 0x0b, 0x74, 0x08, 0x10, 0x0a, 0x20, 0x08, 0x00, 0x00, 0x78, 0x30, 0x30, 0x08, 0x60, 0x10, 0x30, 0x1c, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0xa0, 0x00, 0x09, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x42, 0x04, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xbe, 0xff, 0xff, 0xaf, 0xff, 0xee, 0xe0, 0x00, 0x10, 0xff, 0xd5, 0xee, 0xe0, 0xaa, 0x20, 0xff, 0xff, 0x88, 0x08, 0xaa, 0xa9, 0xff, 0xff, 0x80, 0x00, 0xf0, 0xb4, 0x7f, 0x00, 0x3c, 0x3c, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xff, 0x88, 0x88, 0x20, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x11, 0x00, 0xff, 0xff, 0xe0, 0x60, 0xe0, 0x20, 0xe0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x55, 0xff, 0xff, 0xbf, 0xff, 0xfc, 0xfc, 0xff, 0xff, 0xb2, 0x30, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x00, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0xa0, 0x88, 0x88, 0xf0, 0x00, 0xff, 0xff, 0xc0, 0xc0, 0x88, 0x88, 0x88, 0x88, 0xcc, 0x00, 0xc0, 0xc0, 0x88, 0x88, 0x88, 0x88, 0xc0, 0xc0, 0xcc, 0x00, 0xff, 0xff, 0xc0, 0xc0, 0xc0, 0xc0, 0x88, 0x88, 0xaa, 0x00, 0xaa, 0x00, 0xff, 0xff, 0xf0, 0x00, 0xf0, 0x00, 0xf0, 0x00, 0xa0, 0xa0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0xff, 0xfe, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x8a, 0x80, 0xf0, 0xd8, 0xd8, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x08, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x28, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x24, 0x70, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x01, 0x28, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x09, 0x28, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x01, 0x02, 0x15, 0xb2, 0x01, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x1d, 0xb2, 0x01, 0x02, 0x9d, 0x33, 0x21, 0x02, 0x9d, 0xb3, 0x21, 0x02, 0x1d, 0xb2, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x9d, 0xb3, 0x21, 0x02, 0x1d, 0xb3, 0x21, 0x02, 0x9d, 0x33, 0x25, 0x42, 0x1d, 0x33, 0x25, 0x42, 0x1d, 0xb3, 0x25, 0x42, 0x9d, 0x33, 0x21, 0x02, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0xff, 0xff, 0x00, 0xea, 0xff, 0xff, 0xfb, 0xfb, 0x8c, 0x00, 0x0f, 0x8f, 0xee, 0xe0, 0xff, 0x3f, 0xce, 0xcc, 0x80, 0xf0, 0xff, 0xff, 0x80, 0x00, 0x50, 0x00, 0x01, 0x01, 0xaa, 0x5a, 0x80, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x55, 0xaa, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x0f, 0xf0, 0x33, 0xcc, 0xff, 0xff, 0xc3, 0xc3, 0xa5, 0xa5, 0xff, 0xff, 0x9a, 0xfe, 0xdf, 0xff, 0xa0, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa5, 0xa5, 0xff, 0xff, 0xfe, 0xfe, 0xff, 0xff, 0xfb, 0xf3, 0xf0, 0x00, 0x88, 0x88, 0x5a, 0xaa, 0x3c, 0xcc, 0x3c, 0xcc, 0x5a, 0xaa, 0x3c, 0xcc, 0x5a, 0xaa, 0x3c, 0xcc, 0x5a, 0xaa, 0x5a, 0xaa, 0x3c, 0xcc, 0x3c, 0xcc, 0x5a, 0xaa, 0x3c, 0xcc, 0x3c, 0xcc, 0x5a, 0xaa, 0x3c, 0xcc, 0x5a, 0xaa, 0x5a, 0xaa, 0x3c, 0xcc, 0x3c, 0xcc, 0x5a, 0xaa, 0x3c, 0xcc, 0x3c, 0xcc, 0x5a, 0xaa, 0x5a, 0xaa, 0x5a, 0xaa, 0x5a, 0xaa, 0x3c, 0xcc, 0x3c, 0xcc, 0x5a, 0xaa, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xef, 0xef, 0xcf, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x04, 0x12, 0x03, 0xf3, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x20, 0xe1, 0x90, 0x00, 0x48, 0x20, 0x04, 0x02, 0x34, 0xc9, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x09, 0xa2, 0x81, 0xc0, 0x48, 0x20, 0x04, 0x12, 0x03, 0x32, 0xd0, 0x00, 0x48, 0x20, 0x00, 0x00, 0x15, 0x00, 0x00, 0x0c, 0x48, 0x20, 0x00, 0x02, 0x18, 0x02, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x19, 0x41, 0x0c, 0x0c, 0x40, 0x20, 0x02, 0x02, 0x21, 0x8b, 0x80, 0x00, 0x48, 0x60, 0x04, 0x12, 0x38, 0x01, 0x23, 0x10, 0x48, 0x60, 0x06, 0x02, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x58, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x20, 0x58, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x48, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x90, 0x48, 0x20, 0x04, 0x12, 0x02, 0x10, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x09, 0x00, 0x03, 0x40, 0x48, 0x20, 0x04, 0x10, 0x35, 0xe0, 0x4c, 0x04, 0x48, 0x20, 0x00, 0x02, 0x31, 0x83, 0x01, 0x90, 0x00, 0x00, 0x04, 0x12, 0x00, 0x32, 0x09, 0x10, 0x08, 0x20, 0x04, 0x12, 0x01, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x04, 0x00, 0x20, 0x04, 0x20, 0x00, 0xc3, 0x83, 0x04, 0x84, 0x20, 0x04, 0x21, 0x14, 0x68, 0x83, 0x04, 0x04, 0x20, 0x00, 0x29, 0x22, 0x44, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x0b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x00, 0xd1, 0x82, 0x00, 0x04, 0x00, 0x00, 0x00, 0x22, 0x80, 0x82, 0x24, 0x04, 0x00, 0x00, 0x20, 0x24, 0x89, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x82, 0x14, 0x05, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x8b, 0x04, 0x00, 0x00, 0x00, 0x20, 0x04, 0xc7, 0x82, 0x04, 0x00, 0x00, 0x00, 0x08, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x20, 0x10, 0x00, 0x82, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa3, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x20, 0x8a, 0x14, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x03, 0x04, 0x00, 0x00, 0x00, 0x20, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0xc3, 0xc0, 0xdb, 0x00, 0x00, 0x01, 0x23, 0x00, 0x22, 0xc6, 0x81, 0x82, 0x00, 0x02, 0x08, 0x47, 0xd3, 0x03, 0xea, 0x44, 0x00, 0x03, 0x01, 0x00, 0x07, 0x00, 0xc1, 0x20, 0x05, 0x44, 0x02, 0x03, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x87, 0x00, 0x03, 0x00, 0xc8, 0x01, 0x00, 0x10, 0xc0, 0xcb, 0xc5, 0x00, 0x23, 0x00, 0x00, 0xd3, 0x00, 0x00, 0x00, 0x00, 0x07, 0x13, 0x00, 0x44, 0xc0, 0x03, 0x03, 0x00, 0x13, 0x00, 0x13, 0x02, 0x03, 0xc2, 0x03, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x40, 0x00, 0x05, 0x00, 0x03, 0x03, 0x02, 0x01, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x05, 0x00, 0x00, 0x00, 0x02, 0x00, 0x05, 0x00, 0x13, 0xc0, 0x05, 0x00, 0x02, 0x00, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x44, 0xc5, 0xdb, 0xc0, 0x13, 0x05, 0x13, 0x23, 0xc4, 0x00, 0x81, 0xc0, 0x03, 0x93, 0xcb, 0x00, 0xc0, 0xc7, 0x47, 0xc7, 0xa0, 0xcd, 0xcb, 0x13, 0x80, 0x00, 0xdb, 0xc8, 0x00, 0x00, 0x01, 0x8b, 0xc0, 0xe3, 0x40, 0x01, 0xd3, 0x83, 0xc8, 0xe2, 0x03, 0xd3, 0xc3, 0x13, 0x00, 0x22, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x03, 0x03, 0xc2, 0x13, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, 0x04, 0x40, 0x40, 0x01, 0x00, 0x04, 0x03, 0x82, 0x00, 0x02, 0x00, 0x02, 0x10, 0x40, 0x00, 0x00, 0x80, 0x21, 0x41, 0x02, 0x00, 0x02, 0x03, 0x00, 0x00, 0x00, 0x80, 0x08, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x20, 0x00, 0x80, 0x04, 0x08, 0x02, 0x00, 0x00, 0x00, 0x10, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x21, 0x12, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x80, 0x02, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x08, 0x08, 0x08, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x10, 0x80, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x08, 0x80, 0x10, 0x00, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x08, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xa0, 0x02, 0x40, 0x02, 0x04, 0x00, 0x80, 0x10, 0x20, 0x20, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x80, 0x10, 0x01, 0x01, 0x10, 0x03, 0x00, 0x04, 0x40, 0x20, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x08, 0x14, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x02, 0x8a, 0x31, 0x10, 0x00, 0x00, 0x00, 0x02, 0xc1, 0xa1, 0x2c, 0x88, 0x58, 0x8f, 0x11, 0xb0, 0x02, 0xe0, 0x16, 0xb8, 0x50, 0xa0, 0x06, 0x40, 0x00, 0x01, 0x00, 0x34, 0x04, 0x0f, 0x1f, 0x70, 0xc5, 0xa6, 0x00, 0x00, 0xf1, 0x40, 0x0c, 0x00, 0x0b, 0x86, 0x00, 0x00, 0x00, 0x05, 0x10, 0x68, 0x00, 0x08, 0x00, 0x38, 0x00, 0x00, 0x06, 0x00, 0x01, 0x58, 0x80, 0x70, 0x50, 0x0f, 0x07, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x40, 0x1d, 0x00, 0x00, 0x04, 0x0e, 0x38, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x6f, 0x0e, 0x00, 0x09, 0x20, 0x3d, 0x34, 0x20, 0x02, 0x00, 0x12, 0x4a, 0x0a, 0x01, 0x70, 0x20, 0x02, 0x00, 0x08, 0xa8, 0x40, 0x00, 0x02, 0x00, 0x00, 0x08, 0x61, 0xa0, 0x40, 0x13, 0x00, 0x00, 0x00, 0x08, 0x78, 0x40, 0x40, 0x34, 0x34, 0x00, 0x00, 0x00, 0x90, 0x02, 0x00, 0x00, 0x08, 0x01, 0x80, 0x00, 0xe1, 0xa0, 0x40, 0x5e, 0x69, 0x68, 0x05, 0x00, 0xe8, 0x02, 0xca, 0x40, 0x00, 0x68, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x20, 0x34, 0x00, 0x00, 0x00, 0xb0, 0x0b, 0x80, 0x1c, 0x08, 0x68, 0x15, 0x00, 0x04, 0x08, 0x00, 0x00, 0x29, 0x80, 0x07, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0xf0, 0x01, 0x00, 0xe8, 0x61, 0xd0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x07, 0x0e, 0x05, 0xe2, 0x04, 0x0c, 0x49, 0xe0, 0x4f, 0x0c, 0xe0, 0x08, 0x00, 0x10, 0x08, 0x12, 0x42, 0x50, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x08, 0x48, 0x00, 0x38, 0xc0, 0x6c, 0x32, 0x00, 0x02, 0xc0, 0x40, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x06, 0xc0, 0x00, 0x00, 0x13, 0x48, 0x14, 0x00, 0xc4, 0x2c, 0x2c, 0x00, 0x04, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x01, 0xf7, 0x2c, 0x15, 0x61, 0x85, 0x41, 0x60, 0x00, 0x17, 0x1c, 0x38, 0x10, 0x0a, 0x80, 0x60, 0xea, 0x07, 0x5c, 0x0d, 0x30, 0x0a, 0x80, 0x60, 0x09, 0xc0, 0x1c, 0x92, 0x20, 0x3a, 0x00, 0x30, 0x0c, 0x40, 0x14, 0x14, 0x00, 0x02, 0x40, 0x12, 0xac, 0xc0, 0x00, 0x2e, 0x08, 0x30, 0x40, 0x10, 0x06, 0xc3, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x09, 0xc0, 0x0c, 0x00, 0xc0, 0x02, 0x40, 0x60, 0x00, 0x00, 0x5c, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe2, 0x22, 0x00, 0x14, 0xa8, 0xe1, 0xc0, 0x00, 0x60, 0x01, 0x00, 0x10, 0x28, 0x60, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x80, 0x00, 0x02, 0xe0, 0x00, 0x1c, 0x32, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x10, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x82, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x08, 0x00, 0x80, 0x1c, 0x40, 0x55, 0x11, 0x00, 0x20, 0x00, 0x09, 0x62, 0x20, 0xc4, 0x00, 0x44, 0x10, 0x20, 0x20, 0x10, 0x80, 0x01, 0x9b, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x60, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x10, 0x00, 0x00, 0x0e, 0x04, 0x00, 0x21, 0x0c, 0x00, 0x40, 0x18, 0x24, 0x00, 0x00, 0x03, 0xc4, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x20, 0x00, 0x00, 0x10, 0x00, 0x89, 0x00, 0x28, 0x80, 0x08, 0x41, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x08, 0x42, 0x10, 0x01, 0xa8, 0x00, 0x80, 0x00, 0x00, 0x41, 0x00, 0x10, 0x18, 0x00, 0x10, 0x00, 0x40, 0xc2, 0x00, 0x40, 0x40, 0x15, 0xc5, 0x04, 0x50, 0x41, 0x00, 0x40, 0x00, 0x02, 0x10, 0x00, 0x4a, 0x82, 0x04, 0x18, 0x09, 0x23, 0x40, 0xb4, 0x10, 0x02, 0x02, 0x30, 0x00, 0x08, 0x00, 0x09, 0x80, 0x00, 0x00, 0x04, 0x04, 0x3a, 0x10, 0x42, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x10, 0x40, 0x1c, 0x42, 0x90, 0x54, 0x00, 0x20, 0x00, 0xc0, 0x03, 0x38, 0x00, 0x36, 0x00, 0x00, 0x90, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x11, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x03, 0x0c, 0xc0, 0x19, 0xf8, 0x0c, 0x00, 0x64, 0x08, 0x1e, 0x08, 0x40, 0x04, 0x08, 0x00, 0x04, 0x87, 0x00, 0x00, 0x00, 0x00, 0x70, 0x04, 0xe2, 0x04, 0x0c, 0x4a, 0x42, 0x07, 0x8c, 0x28, 0x66, 0x10, 0x1c, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x02, 0x1e, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x30, 0x06, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x02, 0xc0, 0x06, 0x14, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x12, 0x01, 0x00, 0x00, 0x02, 0x03, 0x40, 0x44, 0x04, 0x50, 0x1c, 0x10, 0xe0, 0x08, 0x00, 0xc4, 0x41, 0xb3, 0x9d, 0x04, 0xe0, 0x05, 0x00, 0x04, 0xe1, 0x97, 0x08, 0x00, 0x20, 0x00, 0x80, 0x80, 0x01, 0xe7, 0x02, 0x09, 0x00, 0x03, 0x82, 0x04, 0x00, 0x60, 0x15, 0x10, 0x30, 0x07, 0x00, 0x08, 0xe1, 0x18, 0x1e, 0x10, 0x00, 0x02, 0x00, 0xe4, 0x00, 0x04, 0x1e, 0x08, 0x38, 0xa8, 0x00, 0xb2, 0x4f, 0xc4, 0x40, 0x00, 0x23, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0xb0, 0x60, 0x10, 0x08, 0xe1, 0xa0, 0x00, 0x38, 0x00, 0x00, 0x12, 0x04, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x31, 0x20, 0x00, 0x11, 0x80, 0xc3, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x49, 0x00, 0x00, 0x04, 0x00, 0x41, 0x80, 0x00, 0x0a, 0xac, 0x68, 0x2f, 0x84, 0x09, 0x10, 0x20, 0x00, 0x10, 0x00, 0xa3, 0x80, 0x1e, 0x40, 0xa2, 0x88, 0x10, 0x04, 0xa4, 0x2b, 0x9c, 0xc0, 0xe1, 0x9a, 0x00, 0x00, 0x78, 0x02, 0x08, 0x00, 0x02, 0x1e, 0x14, 0x00, 0x00, 0x00, 0x49, 0x10, 0x01, 0x80, 0x80, 0x00, 0x00, 0x05, 0x02, 0x00, 0x03, 0x88, 0x40, 0x00, 0xa0, 0x04, 0x8e, 0x00, 0x00, 0x06, 0x50, 0x0a, 0x02, 0x80, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x01, 0x30, 0xe2, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x80, 0x4a, 0x3c, 0x84, 0x0b, 0x02, 0x01, 0xe0, 0x0e, 0x0c, 0x00, 0x24, 0x0b, 0x40, 0x01, 0x01, 0x80, 0xd6, 0x00, 0x1f, 0xc0, 0x80, 0x00, 0x02, 0x80, 0x11, 0x00, 0x20, 0x03, 0x60, 0x00, 0x00, 0x1a, 0x4c, 0xc8, 0x00, 0x0b, 0x42, 0x30, 0x01, 0x8a, 0x10, 0x0a, 0xa0, 0x0b, 0x00, 0x00, 0x02, 0x80, 0xd0, 0x02, 0x64, 0x84, 0x08, 0xc0, 0x40, 0x04, 0x09, 0x80, 0xe0, 0x43, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x70, 0x43, 0x80, 0x11, 0x6a, 0x01, 0x8a, 0x40, 0x04, 0x06, 0x80, 0x10, 0x28, 0xe4, 0x03, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x91, 0xa0, 0x16, 0x0c, 0x30, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x01, 0x04, 0x04, 0x00, 0x04, 0x02, 0x00, 0x04, 0x02, 0x20, 0x30, 0x21, 0x20, 0x24, 0x10, 0x54, 0x00, 0x04, 0x04, 0x44, 0x14, 0x22, 0x44, 0x14, 0x22, 0x20, 0x20, 0x54, 0x10, 0x00, 0x40, 0x24, 0x32, 0x2c, 0x00, 0x20, 0x84, 0x1c, 0x10, 0x44, 0x08, 0x00, 0x01, 0x10, 0x02, 0x40, 0x0a, 0x40, 0x40, 0x28, 0x00, 0x00, 0x00, 0x01, 0x82, 0x20, 0x48, 0x24, 0x24, 0x40, 0x09, 0x90, 0x80, 0x30, 0x90, 0x58, 0x02, 0x80, 0x10, 0x00, 0x20, 0x08, 0x30, 0x88, 0x28, 0x90, 0x34, 0x29, 0x81, 0x00, 0x14, 0x00, 0x02, 0x10, 0x88, 0x40, 0x00, 0x98, 0x20, 0x80, 0x00, 0x00, 0x11, 0x10, 0x20, 0x04, 0x10, 0x08, 0x82, 0x20, 0x08, 0x30, 0x49, 0x8c, 0x0a, 0x00, 0x11, 0x12, 0x00, 0x00, 0x22, 0x98, 0x31, 0x88, 0x30, 0x02, 0x00, 0x10, 0x08, 0x00, 0x58, 0x40, 0x84, 0x00, 0x80, 0x90, 0x41, 0x01, 0x08, 0x08, 0x40, 0x00, 0x20, 0x80, 0x08, 0x90, 0x39, 0x01, 0x12, 0x38, 0x02, 0x20, 0x19, 0x22, 0x31, 0x14, 0x00, 0x32, 0x01, 0x94, 0x11, 0x04, 0x38, 0x28, 0x3c, 0x10, 0x10, 0x18, 0x30, 0x18, 0x20, 0x12, 0x18, 0x30, 0x20, 0x40, 0x8a, 0x00, 0x0c, 0x08, 0x38, 0x12, 0x1c, 0x51, 0x90, 0x30, 0x20, 0x80, 0x28, 0x20, 0x00, 0x41, 0x08, 0x10, 0x80, 0x00, 0x32, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x60, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x20, 0x20, 0x10, 0x00, 0x00, 0x0a, 0x21, 0x6e, 0x00, 0x30, 0x5e, 0x50, 0x90, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0c, 0x08, 0x00, 0x00, 0x90, 0x24, 0x2c, 0x00, 0x08, 0x00, 0x00, 0x30, 0x0e, 0x00, 0x0c, 0x00, 0x0a, 0x04, 0xb0, 0x00, 0x00, 0x30, 0x05, 0x0e, 0x04, 0x00, 0x70, 0x50, 0x10, 0x30, 0x00, 0x3e, 0x3e, 0x34, 0x58, 0x0d, 0x10, 0xb0, 0x10, 0x04, 0x20, 0x70, 0x0c, 0x3d, 0x02, 0x00, 0x09, 0x00, 0x00, 0x00, 0x75, 0x30, 0x0c, 0x00, 0x9d, 0x38, 0x00, 0x00, 0x08, 0x0e, 0x19, 0x00, 0x30, 0x00, 0x00, 0xa0, 0xb9, 0x00, 0x9c, 0x30, 0x0c, 0x7c, 0x00, 0x00, 0x20, 0x30, 0x09, 0xb0, 0x00, 0x20, 0x20, 0x98, 0x30, 0xa0, 0x19, 0x02, 0x58, 0x10, 0x18, 0x1a, 0x00, 0x78, 0x00, 0x20, 0xa0, 0x08, 0x00, 0x98, 0xb2, 0x00, 0x40, 0x02, 0x00, 0x2e, 0x20, 0x00, 0x12, 0x1c, 0x69, 0x6c, 0x00, 0x0d, 0x2e, 0x2e, 0x16, 0x0d, 0x69, 0x20, 0x29, 0x10, 0x0c, 0x78, 0x2c, 0x00, 0x3e, 0x3c, 0x3e, 0x00, 0x00, 0x00, 0x30, 0x16, 0x0d, 0x60, 0x04, 0x00, 0x04, 0xac, 0x34, 0x10, 0x04, 0x3a, 0x30, 0x0a, 0x09, 0x0a, 0x84, 0x00, 0x90, 0x80, 0x04, 0x20, 0x00, 0x7e, 0x10, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x50, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4e, 0x38, 0x82, 0x00, 0x08, 0x00, 0x04, 0x00, 0x84, 0x0c, 0x00, 0x04, 0x4c, 0x30, 0x20, 0x3c, 0x90, 0x14, 0x00, 0x14, 0x80, 0x04, 0x0c, 0x30, 0x04, 0x14, 0x10, 0x0c, 0x18, 0x30, 0x00, 0x00, 0x06, 0x00, 0x30, 0x28, 0x05, 0x0c, 0x00, 0x20, 0x1c, 0x0c, 0x71, 0x1c, 0x00, 0x0a, 0x04, 0x00, 0x04, 0x10, 0x08, 0x3e, 0x00, 0x0e, 0x00, 0x00, 0x70, 0x8c, 0x30, 0x2a, 0x00, 0x08, 0x1c, 0x10, 0xd8, 0x10, 0x10, 0x00, 0x30, 0x3a, 0x79, 0x32, 0x7e, 0x00, 0xb0, 0x00, 0x10, 0x10, 0x30, 0x10, 0x34, 0x0c, 0x28, 0x00, 0x54, 0x50, 0x7c, 0x00, 0x10, 0x30, 0x40, 0x10, 0x20, 0x20, 0x03, 0x40, 0x0c, 0x00, 0xb0, 0x04, 0x50, 0x00, 0x1c, 0x00, 0x00, 0x1a, 0x1c, 0x14, 0x08, 0x00, 0x04, 0x04, 0xf0, 0x00, 0x2c, 0x10, 0x1c, 0x30, 0x10, 0x08, 0x80, 0x00, 0x00, 0x80, 0x10, 0x90, 0x34, 0x51, 0x30, 0x10, 0x3c, 0x59, 0x00, 0x00, 0x10, 0x00, 0x10, 0x30, 0x00, 0x3a, 0x0c, 0xfc, 0x4c, 0x20, 0x04, 0x21, 0x0c, 0x04, 0x0c, 0x00, 0x80, 0x28, 0x08, 0x20, 0x78, 0x8c, 0x26, 0x00, 0x38, 0x0a, 0x50, 0x0a, 0x20, 0x00, 0x20, 0x0c, 0x00, 0x30, 0x30, 0x10, 0x08, 0x00, 0x7c, 0x00, 0x30, 0x78, 0x00, 0x18, 0x00, 0x10, 0x10, 0x3a, 0x30, 0x00, 0x00, 0x34, 0x00, 0x00, 0x30, 0x00, 0x14, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x26, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0x40, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x02, 0x00, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x90, 0x94, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x41, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc2, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x14, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x50, 0xff, 0xff, 0x88, 0xaa, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x20, 0x20, 0xef, 0x00, 0xf7, 0x55, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa5, 0xa5, 0xff, 0xff, 0xb8, 0x00, 0xa8, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xfa, 0x0a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x99, 0x99, 0xff, 0xff, 0xff, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x02, 0xaa, 0xb8, 0x0a, 0x0a, 0xff, 0xff, 0xce, 0x0e, 0xff, 0x0f, 0x00, 0x0a, 0x1d, 0xcc, 0xff, 0xff, 0x8a, 0xba, 0xcc, 0x00, 0xcc, 0x00, 0xff, 0xcf, 0xff, 0xbf, 0xcc, 0x33, 0xff, 0xff, 0xff, 0xca, 0xff, 0xca, 0xff, 0xff, 0xff, 0xff, 0xe0, 0xc0, 0xea, 0x40, 0xff, 0xff, 0xfb, 0xd9, 0x00, 0x80, 0x00, 0x00, 0xec, 0xcc, 0xec, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xee, 0xee, 0xfa, 0xfe, 0xfc, 0xab, 0xa8, 0xbf, 0xff, 0xfd, 0xff, 0xbf, 0xff, 0xff, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x14, 0x02, 0x91, 0x01, 0x20, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x24, 0x70, 0x00, 0x09, 0x20, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x26, 0xf8, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x12, 0x08, 0x38, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x24, 0x70, 0x00, 0x13, 0x20, 0x30, 0x04, 0x13, 0x28, 0x30, 0x04, 0x0d, 0x22, 0x31, 0x00, 0x13, 0x20, 0x30, 0x04, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x12, 0x01, 0x06, 0x15, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0xb3, 0x21, 0x06, 0x1d, 0x72, 0x01, 0x02, 0x1d, 0x32, 0x01, 0x02, 0x9d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x33, 0x25, 0x42, 0x9d, 0xb3, 0x21, 0x02, 0x1d, 0x33, 0x21, 0x02, 0x8d, 0x13, 0x20, 0x00, 0x04, 0x01, 0x24, 0x48, 0x00, 0x13, 0x20, 0x00, 0x04, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xf3, 0x30, 0x20, 0xff, 0xff, 0x11, 0x00, 0xf0, 0xc3, 0xcc, 0x33, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xff, 0x33, 0xff, 0xff, 0x88, 0x00, 0xc3, 0xc3, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x80, 0xff, 0xff, 0xc0, 0x00, 0x80, 0x00, 0xff, 0xfc, 0x99, 0x99, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa0, 0x80, 0x88, 0xa0, 0x88, 0x80, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x55, 0x55, 0x33, 0x33, 0x55, 0x55, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x0f, 0x0f, 0x33, 0x33, 0x55, 0x55, 0x33, 0x33, 0x55, 0x55, 0x55, 0x55, 0x0f, 0x0f, 0x5a, 0x5a, 0x0f, 0x0f, 0x0f, 0x0f, 0x66, 0x66, 0x66, 0x66, 0x5a, 0x5a, 0x00, 0xff, 0x33, 0x33, 0x00, 0xff, 0x00, 0xff, 0x33, 0xcc, 0x55, 0xaa, 0x55, 0xaa, 0x33, 0xcc, 0x33, 0xcc, 0xaa, 0x55, 0xfa, 0xee, 0xfc, 0xfa, 0xff, 0xef, 0xa0, 0xc0, 0xff, 0xaf, 0xaf, 0x0f, 0xf8, 0x00, 0xcc, 0x80, 0xdf, 0xd5, 0xf5, 0xd5, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xbb, 0xb3, 0xb3, 0xff, 0xc8, 0xff, 0x80, 0xfa, 0xf0, 0xc0, 0x00, 0xff, 0xbf, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x10, 0x09, 0x00, 0x00, 0x08, 0x20, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x00, 0x22, 0x00, 0x0c, 0x48, 0x20, 0x04, 0x12, 0x34, 0x08, 0x00, 0x04, 0x40, 0x00, 0x04, 0x12, 0x34, 0x62, 0x92, 0x00, 0x48, 0x20, 0x04, 0x12, 0x19, 0x32, 0x0f, 0x40, 0x40, 0x20, 0x04, 0x02, 0x15, 0xe2, 0x90, 0x08, 0x40, 0x40, 0x06, 0x02, 0x30, 0x03, 0x00, 0x90, 0x00, 0x00, 0x04, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x41, 0x00, 0x90, 0x00, 0x00, 0x04, 0x12, 0x00, 0x21, 0x0e, 0x00, 0x48, 0x20, 0x00, 0x02, 0x00, 0x81, 0x80, 0x00, 0x40, 0x40, 0x04, 0x10, 0x24, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x0e, 0x08, 0x08, 0x20, 0x00, 0x02, 0x00, 0x00, 0xca, 0x00, 0x48, 0x20, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x02, 0x10, 0x80, 0x14, 0x48, 0x20, 0x04, 0x12, 0x38, 0xf3, 0x0c, 0x00, 0x48, 0x20, 0x04, 0x0a, 0x21, 0x82, 0x00, 0x8c, 0x00, 0x00, 0x04, 0x12, 0x00, 0x67, 0x06, 0x00, 0x48, 0x20, 0x00, 0x02, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x44, 0x80, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x21, 0x00, 0x10, 0x83, 0x04, 0x84, 0x20, 0x00, 0x20, 0x14, 0x47, 0x83, 0x14, 0x04, 0x20, 0x04, 0x21, 0x22, 0x20, 0x81, 0x84, 0x04, 0x00, 0x00, 0x20, 0x20, 0x63, 0x87, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xd1, 0x83, 0x04, 0x05, 0x00, 0x00, 0xa0, 0x22, 0x31, 0x81, 0x14, 0x00, 0x00, 0x00, 0x08, 0x04, 0x48, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x47, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x07, 0x82, 0x04, 0x04, 0x00, 0x00, 0x20, 0x10, 0x08, 0x89, 0x00, 0x80, 0x00, 0x04, 0x00, 0x00, 0x40, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x02, 0x14, 0x00, 0x00, 0x00, 0x20, 0x10, 0x08, 0x92, 0x04, 0x04, 0x00, 0x00, 0x20, 0x02, 0x11, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x01, 0x90, 0x83, 0x04, 0x04, 0x00, 0x00, 0x08, 0x2a, 0x49, 0x01, 0x1c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x8e, 0x14, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x10, 0x00, 0x03, 0x00, 0x04, 0x03, 0x00, 0x03, 0xc3, 0x03, 0x07, 0x03, 0x00, 0x00, 0x00, 0x03, 0x07, 0x00, 0x13, 0x00, 0xc8, 0x03, 0x00, 0x13, 0xc7, 0x00, 0x00, 0xc8, 0x00, 0xc4, 0x00, 0x02, 0x02, 0xc8, 0x13, 0xdb, 0x00, 0xc4, 0x47, 0xc0, 0x00, 0xc3, 0x47, 0x00, 0x10, 0xc8, 0xd3, 0xc3, 0x00, 0x00, 0xcb, 0x00, 0xc0, 0x00, 0x00, 0x03, 0x03, 0x00, 0xc8, 0x13, 0x00, 0x00, 0x18, 0xc3, 0x07, 0x00, 0x10, 0x00, 0x10, 0x00, 0x03, 0xc0, 0x00, 0x43, 0x02, 0x00, 0x10, 0xa0, 0xc3, 0xe3, 0x05, 0x04, 0x00, 0xe3, 0x10, 0x00, 0xc7, 0x00, 0x03, 0x00, 0x00, 0x03, 0x03, 0xe0, 0x00, 0xf3, 0x00, 0xd0, 0x00, 0xd0, 0x20, 0x00, 0x0b, 0xc3, 0x43, 0x00, 0x00, 0x00, 0x20, 0x23, 0xc0, 0x10, 0x00, 0x03, 0x00, 0x00, 0x03, 0xa0, 0xcf, 0x20, 0x00, 0x80, 0xc0, 0x05, 0xcb, 0x13, 0x13, 0xc8, 0xc3, 0xd3, 0xc5, 0x00, 0x00, 0xe3, 0xc3, 0x13, 0x83, 0xc9, 0x10, 0x03, 0x22, 0x10, 0xc0, 0x03, 0x93, 0x03, 0x03, 0x02, 0xd3, 0xc3, 0xc3, 0xc3, 0xd3, 0xc3, 0xc0, 0xe3, 0x00, 0xe0, 0x03, 0x00, 0x07, 0x01, 0x00, 0x00, 0x00, 0x23, 0x13, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x08, 0x00, 0x60, 0x00, 0x60, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x00, 0x80, 0x00, 0x00, 0x04, 0x00, 0x40, 0x03, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x80, 0x02, 0x40, 0x04, 0xc0, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x80, 0x40, 0x30, 0x20, 0x04, 0x00, 0x00, 0x10, 0xa0, 0x00, 0x00, 0x01, 0x40, 0x10, 0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x50, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x82, 0x10, 0x00, 0x03, 0x80, 0x40, 0x00, 0x00, 0x48, 0x20, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x10, 0x40, 0x80, 0x04, 0x00, 0x88, 0x80, 0x00, 0x00, 0x00, 0x21, 0x80, 0x00, 0x80, 0x00, 0x00, 0x01, 0x82, 0x41, 0x00, 0x40, 0x41, 0x00, 0x20, 0x40, 0x00, 0x04, 0x02, 0x11, 0x00, 0x80, 0x00, 0x00, 0x08, 0x01, 0x80, 0x05, 0x40, 0x80, 0x00, 0x00, 0x00, 0x82, 0x80, 0x04, 0x04, 0xc0, 0x40, 0x11, 0x00, 0x0c, 0x40, 0x40, 0x21, 0x00, 0x00, 0x04, 0x08, 0x04, 0x20, 0x01, 0x04, 0x20, 0x21, 0xc0, 0x03, 0x10, 0x03, 0x41, 0x02, 0x80, 0x20, 0x0c, 0x02, 0x00, 0x20, 0x00, 0x08, 0x04, 0x40, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x40, 0x01, 0x48, 0x04, 0x00, 0x40, 0xf0, 0x08, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x1c, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x50, 0x00, 0x00, 0x00, 0x32, 0xc1, 0xa6, 0x00, 0x08, 0x61, 0xc0, 0x43, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x00, 0x4a, 0x0e, 0x0a, 0x30, 0x18, 0x0f, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x04, 0x06, 0x04, 0x1e, 0x36, 0x10, 0x07, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0xd4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x03, 0x00, 0x00, 0x20, 0x0f, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x06, 0x90, 0x04, 0x00, 0x03, 0x20, 0x00, 0x40, 0x0e, 0x60, 0x34, 0x14, 0x00, 0x20, 0x00, 0xf3, 0x80, 0x0c, 0x10, 0xe0, 0x80, 0x1c, 0x30, 0x02, 0xa0, 0x08, 0x70, 0x01, 0x80, 0x1d, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x10, 0x2c, 0x34, 0x05, 0x16, 0x00, 0x36, 0xd4, 0x0f, 0xac, 0x64, 0x04, 0x0e, 0x11, 0x84, 0x11, 0x8f, 0x00, 0x00, 0x41, 0x00, 0x0d, 0x30, 0x21, 0x40, 0x40, 0x10, 0x2a, 0x86, 0x11, 0x02, 0x62, 0x1f, 0x26, 0x11, 0xa2, 0x90, 0x10, 0x41, 0x73, 0x80, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x1c, 0x00, 0x60, 0x03, 0x00, 0x08, 0x01, 0xc0, 0x00, 0x2f, 0x80, 0x00, 0x00, 0x08, 0x00, 0x00, 0x1c, 0x40, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x03, 0x80, 0x00, 0x08, 0x00, 0x00, 0x10, 0x39, 0x20, 0x00, 0x00, 0x00, 0xea, 0x08, 0x2c, 0x4c, 0x14, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x10, 0x2c, 0x00, 0x00, 0x00, 0x74, 0x00, 0x03, 0x40, 0x80, 0x00, 0x0c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x44, 0x00, 0x08, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x14, 0x00, 0x00, 0x08, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x04, 0x00, 0x10, 0x03, 0x00, 0x00, 0x00, 0x08, 0x14, 0x30, 0x03, 0x4c, 0x02, 0x00, 0x00, 0x11, 0x68, 0x00, 0x40, 0x00, 0x1c, 0x00, 0xc7, 0x00, 0x28, 0x09, 0xa0, 0x00, 0x08, 0x00, 0x03, 0xd4, 0x14, 0x01, 0x80, 0x08, 0x30, 0x03, 0x86, 0xac, 0x08, 0x20, 0x03, 0x0c, 0x60, 0xe0, 0x40, 0x0d, 0x0a, 0x80, 0x44, 0x2c, 0x0d, 0x50, 0x00, 0x5d, 0x90, 0xd3, 0x00, 0x00, 0x00, 0x21, 0x08, 0x1e, 0x4a, 0x02, 0x04, 0x4c, 0x04, 0xe0, 0x00, 0x0e, 0x00, 0x64, 0x8a, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x08, 0x00, 0x00, 0x00, 0x03, 0x00, 0x45, 0x28, 0x06, 0x00, 0x00, 0x04, 0x00, 0x00, 0x10, 0x00, 0x14, 0x00, 0x04, 0x00, 0x00, 0x30, 0x84, 0x80, 0x08, 0x00, 0x20, 0x20, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x80, 0x01, 0x13, 0xc4, 0x00, 0xc0, 0x14, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x10, 0x00, 0x01, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0x41, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x80, 0x90, 0xaa, 0x08, 0x00, 0x08, 0x00, 0x00, 0xe5, 0x09, 0x08, 0x00, 0x00, 0x00, 0x88, 0x00, 0xa0, 0x10, 0x04, 0x00, 0x00, 0x60, 0xa1, 0x00, 0x00, 0x48, 0x00, 0x20, 0x02, 0x05, 0x02, 0x0c, 0x82, 0x01, 0x22, 0x10, 0x30, 0x01, 0x04, 0x11, 0x00, 0x01, 0x40, 0x95, 0x40, 0x00, 0x20, 0x28, 0x95, 0xa0, 0x00, 0x20, 0x00, 0x48, 0x82, 0x85, 0x01, 0x82, 0x00, 0x40, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x18, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x14, 0x00, 0x20, 0x02, 0x00, 0x78, 0x05, 0x00, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x10, 0x00, 0x10, 0x30, 0x63, 0x88, 0x1c, 0x00, 0x01, 0x80, 0x11, 0x88, 0x00, 0x00, 0x00, 0x14, 0x03, 0xc6, 0x55, 0x28, 0x00, 0x03, 0x10, 0x00, 0x00, 0x00, 0x02, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x07, 0x3c, 0x0c, 0x00, 0x17, 0x4e, 0x00, 0x08, 0x10, 0x00, 0x00, 0x03, 0x00, 0x06, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x00, 0x06, 0x00, 0x03, 0x01, 0x00, 0x00, 0x04, 0x00, 0x84, 0x20, 0x10, 0x02, 0x00, 0x15, 0x81, 0xb0, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x06, 0x16, 0x00, 0x03, 0xa0, 0x98, 0x30, 0x00, 0x07, 0x2a, 0x80, 0x23, 0x00, 0x9c, 0x10, 0x03, 0x86, 0x5c, 0x70, 0x70, 0x05, 0x56, 0x00, 0x00, 0xc8, 0x02, 0x2a, 0xc0, 0x03, 0x82, 0x70, 0x40, 0x18, 0x10, 0x14, 0x20, 0x20, 0x28, 0xf6, 0xa8, 0x40, 0x0c, 0x0c, 0xd3, 0x14, 0x28, 0x10, 0x28, 0x11, 0x8c, 0xa8, 0x2b, 0x05, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x80, 0x00, 0x08, 0x04, 0x00, 0x40, 0xf0, 0x00, 0x00, 0x0c, 0x00, 0xe0, 0x0f, 0x00, 0x70, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x20, 0x00, 0x00, 0x00, 0x00, 0x20, 0x09, 0x00, 0x00, 0x00, 0x11, 0x28, 0x00, 0x0f, 0x00, 0x00, 0xc7, 0x86, 0x40, 0x94, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x14, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0xce, 0x1c, 0x04, 0x60, 0x07, 0x1f, 0x00, 0xc3, 0x8a, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x70, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x40, 0x01, 0x88, 0x00, 0x00, 0x00, 0x08, 0x00, 0x60, 0x00, 0x08, 0x1c, 0x00, 0x00, 0x00, 0xa8, 0x00, 0xc8, 0x04, 0x00, 0x30, 0x04, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0e, 0x00, 0x03, 0x88, 0x14, 0x68, 0x03, 0x80, 0x26, 0x00, 0x02, 0x5e, 0x8c, 0x30, 0x04, 0x20, 0x0c, 0x00, 0x06, 0x88, 0x70, 0x0a, 0x60, 0x05, 0x08, 0x00, 0x09, 0xc6, 0x1c, 0x0a, 0x03, 0x83, 0x00, 0x4a, 0xc0, 0x08, 0x0a, 0x70, 0x65, 0x40, 0x00, 0x70, 0xc2, 0xce, 0x20, 0x3c, 0x63, 0x57, 0x8e, 0x00, 0x00, 0x04, 0x1f, 0x2a, 0x04, 0x50, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x20, 0x10, 0x28, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x40, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x24, 0x00, 0x02, 0x12, 0x30, 0x20, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x14, 0x00, 0x0c, 0x00, 0x04, 0x42, 0x00, 0x01, 0x04, 0x44, 0x02, 0x82, 0x00, 0x80, 0x00, 0x80, 0x12, 0x20, 0x00, 0x08, 0x04, 0x80, 0x00, 0x22, 0x00, 0x24, 0x00, 0x00, 0x00, 0x20, 0x28, 0x08, 0x04, 0x08, 0x28, 0x00, 0x11, 0x80, 0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x40, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x11, 0x80, 0x04, 0x10, 0x02, 0x20, 0x00, 0x0c, 0x02, 0x30, 0x42, 0x21, 0x00, 0x84, 0x01, 0x10, 0x0c, 0x01, 0x49, 0x00, 0x04, 0x00, 0x41, 0x00, 0x04, 0x88, 0x40, 0x00, 0x00, 0x08, 0x41, 0x08, 0x08, 0x2a, 0x0a, 0x00, 0x80, 0x01, 0x22, 0x80, 0x04, 0x00, 0x02, 0x2a, 0x10, 0x00, 0x08, 0x21, 0x00, 0x0c, 0x0a, 0x01, 0x24, 0x8c, 0x24, 0x24, 0x2c, 0x01, 0x40, 0x90, 0x02, 0x0c, 0x0c, 0x01, 0x20, 0x08, 0x09, 0x21, 0x24, 0x90, 0x04, 0x0c, 0x04, 0x44, 0x22, 0x81, 0x10, 0x49, 0x02, 0x12, 0x0c, 0x20, 0x10, 0x04, 0x42, 0x80, 0x24, 0x08, 0x18, 0x01, 0x12, 0x00, 0x10, 0x20, 0x00, 0x48, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x70, 0x00, 0xb0, 0x00, 0x00, 0x0e, 0xb0, 0x00, 0x00, 0x00, 0x09, 0x00, 0x90, 0x00, 0x99, 0x08, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x2e, 0xb0, 0x00, 0x00, 0x0d, 0x00, 0x56, 0x00, 0x2a, 0x0a, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0xb0, 0x04, 0x00, 0x00, 0xb0, 0xb2, 0x10, 0x10, 0xb0, 0x00, 0x4e, 0x05, 0x04, 0x70, 0x00, 0x04, 0x04, 0xb0, 0x20, 0x0d, 0x0e, 0x00, 0x20, 0x0e, 0x00, 0x9d, 0x2e, 0x90, 0x30, 0xb0, 0x00, 0x00, 0x00, 0x60, 0x44, 0x70, 0x00, 0x1c, 0x00, 0x40, 0x2a, 0x62, 0x49, 0x40, 0x0c, 0x40, 0x20, 0x00, 0x00, 0x60, 0x40, 0x30, 0x30, 0x9c, 0x00, 0x04, 0x60, 0x00, 0x00, 0x0e, 0x00, 0x40, 0x34, 0x50, 0x60, 0x60, 0x04, 0x00, 0x00, 0x90, 0x14, 0x08, 0x0e, 0x64, 0x00, 0x46, 0x00, 0x60, 0x0e, 0x00, 0x0c, 0x05, 0x49, 0x68, 0x00, 0x6e, 0x40, 0x00, 0x60, 0x0d, 0x04, 0x90, 0xb0, 0x60, 0x69, 0x50, 0x00, 0x14, 0xb0, 0x00, 0x00, 0x42, 0xb8, 0x0c, 0x00, 0x10, 0x1d, 0x56, 0xb0, 0x30, 0x50, 0x50, 0x08, 0x10, 0x64, 0x90, 0x30, 0xb8, 0x0e, 0x18, 0x00, 0x32, 0x0e, 0x9d, 0xb4, 0x00, 0x0e, 0x3e, 0x90, 0x10, 0x09, 0xb8, 0x00, 0x0a, 0x92, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x5d, 0x0c, 0x00, 0x00, 0x00, 0x09, 0x00, 0x09, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x10, 0x70, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x0c, 0x20, 0x00, 0x10, 0x0c, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x78, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x08, 0x0c, 0x30, 0x20, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0c, 0x02, 0x5c, 0x00, 0x0c, 0xbc, 0x50, 0x0c, 0x08, 0x38, 0x08, 0x14, 0x80, 0x10, 0x00, 0x30, 0x48, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x80, 0xa0, 0x70, 0x0a, 0x00, 0x10, 0x10, 0x06, 0x6c, 0x00, 0x30, 0x00, 0x0c, 0x30, 0x0c, 0x00, 0x66, 0x0a, 0x00, 0x00, 0x00, 0x0b, 0x02, 0x00, 0x00, 0x10, 0x78, 0x00, 0x0c, 0x02, 0x00, 0x05, 0x30, 0x04, 0x00, 0x08, 0x10, 0x02, 0x00, 0x08, 0x22, 0x34, 0x28, 0x0a, 0x28, 0xf4, 0x50, 0x0c, 0x08, 0x38, 0x50, 0x00, 0x00, 0x34, 0x00, 0x0c, 0x90, 0x36, 0x40, 0x40, 0x00, 0x38, 0xd0, 0x00, 0x9c, 0x58, 0x06, 0x31, 0x78, 0x08, 0x20, 0x0c, 0x70, 0x08, 0x24, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x0c, 0x08, 0x18, 0x38, 0x14, 0x30, 0x18, 0x0c, 0x10, 0x10, 0x89, 0x00, 0x04, 0x08, 0x2a, 0x00, 0x0c, 0x08, 0x98, 0x36, 0x0c, 0x08, 0x8c, 0x18, 0x2c, 0x1d, 0x0a, 0x2c, 0x04, 0x78, 0x68, 0x30, 0x71, 0x6c, 0xb0, 0x10, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x0a, 0x01, 0x00, 0x0e, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x04, 0x04, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x81, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x02, 0x00, 0x00, 0x02, 0x08, 0x00, 0x44, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x26, 0x04, 0x20, 0x00, 0x04, 0x40, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x10, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x10, 0x80, 0x40, 0x00, 0x0c, 0x48, 0x08, 0x40, 0x10, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x80, 0x00, 0x09, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x25, 0xa0, 0x00, 0x01, 0x80, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x28, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x28, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x06, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x13, 0xa4, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x00, 0x01, 0x08, 0x04, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcc, 0x33, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xa0, 0x00, 0x0f, 0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xa5, 0xa5, 0xff, 0xff, 0xcc, 0x33, 0x96, 0x69, 0xff, 0xff, 0x96, 0x69, 0x96, 0x69, 0xcc, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xf5, 0xcc, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x20, 0x20, 0x30, 0x00, 0xbf, 0xff, 0xd6, 0xd6, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xa8, 0xff, 0xe2, 0xf7, 0xf6, 0xa0, 0xa0, 0xff, 0x22, 0xfc, 0x55, 0xfd, 0xee, 0xff, 0xdf, 0x00, 0xaa, 0xf7, 0xd5, 0xef, 0xdf, 0x88, 0x00, 0x0f, 0x07, 0x7f, 0xff, 0x45, 0xcf, 0xff, 0xff, 0xfc, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0xe4, 0xa0, 0x88, 0x80, 0xc4, 0xc4, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xd8, 0x00, 0xff, 0xfb, 0xcd, 0xc8, 0x80, 0x00, 0xff, 0xbf, 0xcc, 0xaa, 0xb8, 0xb8, 0x80, 0xaa, 0x88, 0x08, 0x00, 0x00, 0x00, 0x00, 0xff, 0xcf, 0xb3, 0xb3, 0x00, 0x00, 0x00, 0x00, 0xe2, 0xe2, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x28, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x09, 0x24, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x12, 0x04, 0x78, 0x04, 0x00, 0x04, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x38, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x30, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x04, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x05, 0x48, 0x14, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x21, 0x0e, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x48, 0x14, 0xbb, 0x25, 0x4a, 0x1d, 0x3b, 0x25, 0x4a, 0x9d, 0xbb, 0x25, 0x4a, 0x9d, 0x3b, 0x25, 0x4a, 0x1d, 0x3b, 0x25, 0x4a, 0x1d, 0x3b, 0x25, 0x4a, 0x0d, 0x12, 0x00, 0x00, 0x04, 0x09, 0x28, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x12, 0x00, 0x00, 0x04, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xf5, 0xf5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xcc, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5a, 0x5a, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0xc3, 0x96, 0x69, 0x96, 0x69, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xaa, 0xaa, 0xf0, 0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xaa, 0xaa, 0xf0, 0xf0, 0xff, 0x00, 0xff, 0x00, 0xf0, 0xf0, 0xcc, 0xcc, 0xff, 0x00, 0x0f, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0x66, 0x55, 0xaa, 0x66, 0x66, 0x3c, 0x3c, 0x55, 0xaa, 0x66, 0x66, 0x55, 0xaa, 0x3c, 0x3c, 0x66, 0x66, 0x33, 0xcc, 0x33, 0xcc, 0x66, 0x66, 0x33, 0xcc, 0x03, 0xa3, 0x5f, 0x55, 0xee, 0xe0, 0xff, 0xff, 0xcd, 0xc8, 0xfe, 0x02, 0xff, 0xef, 0xff, 0xc8, 0xaa, 0xa8, 0xd0, 0x50, 0x7f, 0xff, 0xc8, 0xc0, 0xff, 0xff, 0xc8, 0x88, 0xff, 0xf5, 0xd5, 0xd5, 0xff, 0xaf, 0xf5, 0x55, 0xff, 0xca, 0xe4, 0xa0, 0x00, 0x00, 0x00, 0x00, 0xea, 0xea, 0x88, 0x00, 0xf7, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x20, 0x04, 0x10, 0x10, 0x20, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x48, 0x20, 0x00, 0x00, 0x31, 0x80, 0x10, 0x00, 0x58, 0x20, 0x00, 0x02, 0x03, 0x02, 0x00, 0x00, 0x08, 0x20, 0x04, 0x12, 0x09, 0xc0, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x33, 0xf3, 0x00, 0x10, 0x48, 0x20, 0x04, 0x12, 0x21, 0xeb, 0xcf, 0x10, 0x48, 0x20, 0x04, 0x1a, 0x39, 0xa0, 0x8a, 0x0c, 0x48, 0x20, 0x04, 0x12, 0x19, 0x63, 0x4d, 0x90, 0x48, 0x20, 0x04, 0x02, 0x28, 0xd2, 0x00, 0x00, 0x48, 0x20, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x24, 0x90, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x22, 0xf3, 0x01, 0x90, 0x48, 0x20, 0x04, 0x10, 0x00, 0x60, 0x00, 0x00, 0x40, 0x00, 0x04, 0x12, 0x04, 0x03, 0x00, 0x00, 0x48, 0x20, 0x00, 0x0a, 0x23, 0x00, 0x00, 0x90, 0x08, 0x20, 0x04, 0x10, 0x01, 0x20, 0x00, 0x2c, 0x00, 0x00, 0x04, 0x12, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x04, 0x1a, 0x24, 0x40, 0x50, 0x00, 0x48, 0x20, 0x00, 0x00, 0x22, 0x80, 0x01, 0x80, 0x48, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x02, 0x04, 0x00, 0x00, 0x00, 0x28, 0x44, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x84, 0x00, 0x00, 0x00, 0x28, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x34, 0x80, 0x02, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x91, 0x03, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0xc7, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x21, 0xd1, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x2a, 0xc5, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x00, 0x28, 0xc5, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x8b, 0x04, 0x04, 0x00, 0x00, 0xa0, 0x28, 0x83, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x22, 0x90, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x21, 0x90, 0x83, 0x00, 0x04, 0x00, 0x00, 0x00, 0x34, 0xa0, 0x81, 0x04, 0x04, 0x00, 0x04, 0x20, 0x20, 0x48, 0x86, 0x04, 0x84, 0x00, 0x00, 0x00, 0x28, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x82, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x82, 0x08, 0x04, 0x00, 0x00, 0x08, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0xc3, 0xc8, 0x03, 0xc8, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x20, 0x13, 0x00, 0x05, 0xc3, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x13, 0x00, 0x03, 0x00, 0xa3, 0x13, 0x00, 0x04, 0x00, 0x00, 0xc7, 0x03, 0x03, 0xd3, 0xc3, 0xe2, 0x03, 0xc0, 0xc8, 0xc9, 0xe3, 0x80, 0xc0, 0x00, 0x00, 0x23, 0xc3, 0xc1, 0x83, 0xc9, 0xc0, 0x93, 0x00, 0x13, 0x83, 0x07, 0xc0, 0xc1, 0xa0, 0x13, 0xe0, 0xc3, 0xcb, 0xc0, 0xc9, 0xd3, 0xc3, 0x07, 0x00, 0x05, 0xc7, 0xd3, 0x01, 0x23, 0x00, 0x13, 0xa0, 0x00, 0xe0, 0x00, 0x00, 0x07, 0xe0, 0x80, 0x03, 0x00, 0xca, 0x23, 0x80, 0x40, 0x44, 0x40, 0x00, 0x00, 0xcb, 0xc5, 0xc1, 0x40, 0xc0, 0x22, 0x44, 0x00, 0xc0, 0x83, 0xc4, 0xc8, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xe2, 0xa2, 0x00, 0x02, 0x40, 0xc0, 0x00, 0x00, 0x13, 0x00, 0x07, 0x03, 0x80, 0x00, 0x84, 0x10, 0x04, 0x00, 0x01, 0x00, 0x03, 0xa3, 0x00, 0xc3, 0x07, 0x00, 0x00, 0x00, 0xc3, 0xc0, 0x04, 0x04, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x13, 0xc8, 0x03, 0x03, 0xd3, 0xc0, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x48, 0x21, 0x02, 0x84, 0x20, 0x09, 0x02, 0x00, 0x01, 0x20, 0x02, 0x10, 0x00, 0x00, 0x00, 0x14, 0x05, 0x84, 0x01, 0x10, 0x04, 0x01, 0x00, 0x84, 0x04, 0xa0, 0x21, 0x00, 0x04, 0x02, 0x0c, 0x04, 0x02, 0x40, 0x20, 0x30, 0x00, 0x00, 0x00, 0x40, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x04, 0x04, 0x80, 0x20, 0x02, 0x20, 0x00, 0x00, 0x08, 0x20, 0xc0, 0x20, 0x10, 0x04, 0x00, 0x04, 0x80, 0x0a, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x02, 0x00, 0x04, 0x20, 0x10, 0x00, 0x20, 0x04, 0x00, 0x00, 0x40, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x20, 0x80, 0x08, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0xc0, 0x01, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x08, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x21, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0xb4, 0x28, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x30, 0x00, 0x05, 0x08, 0x30, 0x00, 0x0f, 0x14, 0x38, 0x70, 0x80, 0x2e, 0x10, 0x00, 0x00, 0x3c, 0xc8, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x07, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x10, 0x00, 0x07, 0x0c, 0x18, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x91, 0x28, 0x72, 0x00, 0x1d, 0x00, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0c, 0x01, 0xc2, 0x0f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x06, 0x08, 0x0f, 0x10, 0x10, 0x05, 0x80, 0x00, 0x02, 0xf1, 0x24, 0x00, 0x09, 0x02, 0x50, 0x2c, 0x81, 0x04, 0x4a, 0x30, 0xb0, 0x00, 0x83, 0x08, 0x30, 0x0b, 0x80, 0x1c, 0x34, 0x00, 0x04, 0x00, 0x0c, 0x34, 0x08, 0x01, 0x09, 0x28, 0x0f, 0x5c, 0x40, 0x00, 0x08, 0x08, 0x8c, 0x24, 0x0b, 0x01, 0x71, 0xf7, 0x81, 0x0c, 0x32, 0x51, 0x85, 0x82, 0x40, 0xc0, 0x04, 0x10, 0x48, 0x7e, 0x00, 0x00, 0x00, 0x01, 0x60, 0x08, 0x2c, 0x00, 0x00, 0x52, 0x70, 0x03, 0x8f, 0x00, 0x00, 0x04, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0c, 0x00, 0x00, 0x0a, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x14, 0x38, 0x00, 0x00, 0x8d, 0x3a, 0x40, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x30, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x08, 0x00, 0x01, 0x1d, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xc0, 0x17, 0x00, 0x04, 0x04, 0xc0, 0x10, 0x40, 0x09, 0x00, 0x01, 0x00, 0x80, 0xe0, 0x02, 0x00, 0x21, 0xb0, 0x0c, 0x54, 0xc2, 0x00, 0x0c, 0x70, 0xe1, 0xc0, 0x74, 0xb0, 0x0b, 0xb0, 0x26, 0x00, 0x03, 0xc4, 0x01, 0x00, 0xc0, 0x04, 0x10, 0x70, 0x01, 0x80, 0x1c, 0x30, 0x6b, 0x02, 0x28, 0x34, 0x01, 0x0c, 0x01, 0x28, 0x10, 0x00, 0x00, 0x08, 0xe0, 0xc7, 0x0d, 0x31, 0xc1, 0xc3, 0x16, 0x84, 0xd0, 0x03, 0x02, 0x00, 0x02, 0x20, 0x01, 0x04, 0x00, 0x00, 0x01, 0x08, 0xc0, 0x03, 0x20, 0x00, 0x00, 0x00, 0x2c, 0x14, 0x60, 0x03, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x86, 0x18, 0x00, 0x00, 0x22, 0x88, 0x04, 0x01, 0x08, 0x12, 0x80, 0x80, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x10, 0x00, 0x04, 0x00, 0x08, 0x00, 0x02, 0x50, 0x00, 0x00, 0x04, 0x04, 0x08, 0x00, 0x10, 0x00, 0x50, 0x00, 0x10, 0x00, 0x00, 0x04, 0x05, 0x24, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x90, 0x00, 0x30, 0x24, 0x00, 0x02, 0x80, 0x01, 0x00, 0x00, 0x80, 0x10, 0x00, 0x02, 0x30, 0x01, 0x00, 0x42, 0x50, 0x20, 0x08, 0x00, 0xc0, 0x04, 0x20, 0x00, 0x04, 0x20, 0x00, 0x12, 0x40, 0x21, 0x60, 0x40, 0xc0, 0x80, 0x18, 0x14, 0x00, 0x00, 0x49, 0x07, 0x20, 0x50, 0x24, 0x20, 0x00, 0x21, 0x00, 0x28, 0x10, 0x22, 0x80, 0x00, 0x40, 0x00, 0x04, 0x80, 0x82, 0x10, 0x44, 0x24, 0x02, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x00, 0x40, 0x01, 0x28, 0x30, 0x00, 0x00, 0x21, 0x01, 0x00, 0x01, 0x02, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0xd0, 0x30, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x30, 0x00, 0x06, 0x08, 0x00, 0x01, 0x05, 0x86, 0x00, 0x00, 0x00, 0x00, 0x12, 0x70, 0x00, 0x00, 0x31, 0xb0, 0x20, 0x40, 0x18, 0x00, 0x00, 0x00, 0x30, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0x83, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x03, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x14, 0x40, 0x00, 0x00, 0x30, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0xc1, 0x00, 0x0c, 0x00, 0x13, 0xc8, 0x00, 0x00, 0x1a, 0x08, 0x14, 0x02, 0x03, 0x84, 0x50, 0x10, 0x39, 0xa0, 0x16, 0x30, 0x08, 0x00, 0x20, 0x90, 0xea, 0x07, 0x2c, 0x34, 0x00, 0x85, 0x02, 0x00, 0x00, 0x64, 0x14, 0x10, 0xe0, 0x92, 0x41, 0x10, 0x10, 0xc3, 0x1e, 0x00, 0x13, 0x30, 0x10, 0x60, 0x00, 0x64, 0x00, 0x08, 0x00, 0x00, 0x30, 0x60, 0x40, 0x01, 0xcc, 0x05, 0x18, 0x02, 0x90, 0x6a, 0xa0, 0x00, 0x0d, 0x01, 0x22, 0x00, 0x12, 0x80, 0x00, 0x00, 0x40, 0x04, 0x80, 0x05, 0x22, 0x00, 0x00, 0x10, 0x14, 0x80, 0x60, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x04, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x30, 0x14, 0x00, 0x00, 0x08, 0x00, 0xd0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x48, 0x00, 0x06, 0x00, 0x90, 0x21, 0xc0, 0x09, 0x00, 0x00, 0x00, 0x2c, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x12, 0x80, 0x00, 0x10, 0x40, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x14, 0x10, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x06, 0x01, 0xe4, 0x07, 0x0e, 0x08, 0x61, 0xd5, 0x06, 0x30, 0x02, 0x04, 0x0f, 0x80, 0x63, 0x93, 0x08, 0x64, 0xc1, 0x00, 0x15, 0x0a, 0xf1, 0x80, 0x02, 0x42, 0x21, 0x29, 0x00, 0x01, 0x03, 0xe3, 0xa0, 0x00, 0x21, 0x80, 0x0b, 0x51, 0x00, 0x05, 0x0c, 0x0c, 0x08, 0x48, 0x1c, 0x14, 0x73, 0xc0, 0x08, 0x04, 0x00, 0x16, 0x80, 0x2a, 0x50, 0x0b, 0x08, 0x04, 0xb0, 0x08, 0x40, 0x00, 0x01, 0x50, 0x09, 0xc0, 0x00, 0x06, 0x40, 0x3c, 0xd0, 0x10, 0x09, 0x70, 0x03, 0x88, 0x80, 0x30, 0x28, 0x00, 0x80, 0x40, 0x02, 0x0b, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x08, 0x28, 0x02, 0x80, 0x00, 0x00, 0x08, 0x48, 0x00, 0x20, 0x00, 0x08, 0x20, 0x01, 0x10, 0x00, 0x00, 0x00, 0x08, 0x08, 0x44, 0x00, 0x00, 0x90, 0x28, 0x88, 0x00, 0x00, 0x00, 0x80, 0x28, 0x08, 0x84, 0x04, 0x20, 0x02, 0x0c, 0x28, 0x00, 0x40, 0x80, 0x0c, 0x08, 0x09, 0x01, 0x00, 0x20, 0x90, 0x00, 0x10, 0x44, 0x04, 0x14, 0x14, 0x18, 0x30, 0x0a, 0x54, 0x10, 0x00, 0x28, 0x44, 0x00, 0x5c, 0x88, 0x21, 0x24, 0x80, 0x38, 0x42, 0x20, 0x22, 0x20, 0x40, 0x00, 0x84, 0x01, 0x01, 0x08, 0x44, 0x01, 0x04, 0x10, 0x80, 0x04, 0x00, 0x44, 0x01, 0x11, 0x22, 0x82, 0x01, 0x01, 0x24, 0x01, 0x04, 0x51, 0x44, 0x04, 0x48, 0x09, 0x01, 0x14, 0x41, 0x81, 0x49, 0x81, 0x00, 0x80, 0x10, 0x32, 0x80, 0x21, 0x5a, 0x80, 0x04, 0x10, 0x00, 0x08, 0x09, 0x00, 0x9c, 0x51, 0x4c, 0x28, 0x30, 0x31, 0x20, 0x8c, 0x00, 0x04, 0x84, 0x09, 0x80, 0x02, 0x44, 0x80, 0x84, 0x02, 0x3c, 0x1c, 0x08, 0x84, 0x32, 0x0c, 0x40, 0x44, 0x99, 0x02, 0x0c, 0x21, 0x44, 0x08, 0x41, 0x14, 0x28, 0x01, 0x0c, 0x00, 0x02, 0x22, 0x04, 0x38, 0x00, 0x80, 0x80, 0x24, 0x22, 0x10, 0x24, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x19, 0xb0, 0x30, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x70, 0x00, 0x00, 0x0d, 0x0c, 0x08, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x0c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x3e, 0x06, 0x19, 0x00, 0x0c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x04, 0x00, 0x0d, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0c, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x1a, 0x30, 0x30, 0x00, 0x00, 0x90, 0x09, 0x30, 0x30, 0x16, 0x10, 0x30, 0x10, 0xb0, 0x9c, 0x00, 0x0e, 0x04, 0x00, 0x60, 0x00, 0x08, 0x20, 0x0d, 0x00, 0x50, 0x00, 0x02, 0x00, 0xb0, 0x60, 0x00, 0x0c, 0x06, 0x30, 0x50, 0x20, 0x0a, 0x08, 0x90, 0x0e, 0x00, 0x1e, 0x60, 0x00, 0xb0, 0x40, 0x00, 0xa0, 0x00, 0x36, 0x5a, 0x06, 0x00, 0x00, 0x00, 0x35, 0x06, 0x79, 0x0c, 0x00, 0x00, 0x00, 0x38, 0x26, 0x50, 0x30, 0x14, 0xb0, 0x50, 0x30, 0x80, 0x00, 0x5c, 0x0e, 0x24, 0x20, 0x9c, 0x00, 0x30, 0x21, 0xb0, 0x84, 0xb6, 0x00, 0x08, 0x4c, 0x95, 0xa0, 0xba, 0x00, 0x9a, 0x0a, 0x38, 0x3c, 0x78, 0x39, 0x25, 0x4c, 0x65, 0x20, 0x14, 0x06, 0x54, 0x3d, 0x50, 0xb8, 0x5a, 0x1d, 0x5c, 0x86, 0x08, 0x95, 0x2e, 0x39, 0x10, 0x30, 0x0c, 0xb8, 0x7d, 0xb0, 0x70, 0x3a, 0x7c, 0xae, 0x50, 0x00, 0x1a, 0x90, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x30, 0x00, 0x00, 0x00, 0x90, 0x00, 0x41, 0x05, 0x15, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x01, 0x01, 0x50, 0x30, 0x00, 0x10, 0x08, 0x30, 0x00, 0x00, 0x80, 0x30, 0x70, 0x10, 0x70, 0x00, 0x10, 0x0c, 0x02, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x18, 0x50, 0x00, 0x30, 0x00, 0x10, 0x50, 0x00, 0x70, 0x30, 0x00, 0xc0, 0x30, 0x01, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x20, 0x10, 0x50, 0x00, 0x0c, 0x78, 0x00, 0x90, 0x10, 0xc0, 0x40, 0x18, 0x08, 0x7c, 0x04, 0x00, 0x10, 0xc4, 0x2c, 0x00, 0x00, 0x00, 0x14, 0x50, 0x20, 0x10, 0x1c, 0x3c, 0x11, 0x2e, 0x08, 0x00, 0x2c, 0x30, 0x00, 0x00, 0x38, 0x04, 0x7c, 0x72, 0x38, 0xd8, 0x08, 0x00, 0x10, 0x09, 0x00, 0x38, 0x04, 0x58, 0x38, 0x2c, 0x04, 0x04, 0x08, 0x04, 0x88, 0x04, 0x3c, 0x08, 0x10, 0x0c, 0x04, 0x08, 0x20, 0x34, 0x08, 0x3c, 0x00, 0x20, 0x61, 0x20, 0x30, 0xb8, 0x3c, 0x20, 0x08, 0x00, 0x02, 0x00, 0x04, 0x70, 0x38, 0x3c, 0x14, 0x8e, 0x20, 0x1c, 0x30, 0x0c, 0x00, 0x04, 0x35, 0x08, 0x16, 0x64, 0x1c, 0x00, 0x34, 0x00, 0x00, 0x0c, 0x50, 0xac, 0x20, 0x04, 0x00, 0xbc, 0x3c, 0x50, 0x0c, 0xbc, 0x1c, 0x00, 0x14, 0x0c, 0x06, 0x08, 0x08, 0x00, 0xe8, 0x8c, 0x88, 0x00, 0x01, 0x31, 0x30, 0x3c, 0x18, 0x50, 0x39, 0x00, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x80, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x26, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x40, 0x00, 0x30, 0x00, 0x02, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x04, 0x00, 0x04, 0x00, 0x40, 0x00, 0x04, 0x02, 0x0c, 0x06, 0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x00, 0x02, 0x2c, 0x00, 0x04, 0x40, 0x02, 0x05, 0x00, 0x04, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x06, 0x02, 0x02, 0x20, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0e, 0x02, 0x40, 0x00, 0x00, 0x80, 0x00, 0x00, 0x0c, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xb0, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x10, 0x40, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x40, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0xa0, 0x00, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x06, 0x00, 0x00, 0x00, 0x10, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x41, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x0c, 0x00, 0x00, 0x80, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x80, 0x04, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x4c, 0x00, 0x40, 0x20, 0x00, 0x0d, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x04, 0x02, 0x40, 0x10, 0x40, 0x10, 0x04, 0x80, 0x00, 0x00, 0xa0, 0x20, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x09, 0x0c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x10, 0x00, 0x84, 0x20, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x08, 0x40, 0x08, 0x0c, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x10, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x4b, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x02, 0x84, 0x00, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x18, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x41, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc9, 0xcc, 0xcc, 0x99, 0x00, 0x11, 0xc3, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0xf0, 0x70, 0xff, 0xfd, 0xf5, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x0f, 0x69, 0x96, 0x96, 0x69, 0xa5, 0x5a, 0xff, 0xff, 0xc3, 0x3c, 0xc3, 0x3c, 0x99, 0x66, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xac, 0x00, 0xa8, 0x00, 0xff, 0xff, 0x7f, 0xff, 0xab, 0xa8, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xfc, 0xa8, 0xff, 0xff, 0x00, 0x88, 0xff, 0xdf, 0xff, 0xff, 0xfc, 0xa8, 0xaa, 0x0a, 0xff, 0x55, 0xff, 0xff, 0xcc, 0xa0, 0xd0, 0xdd, 0xb1, 0x00, 0xaa, 0xa0, 0x00, 0x00, 0x00, 0x00, 0xcf, 0xcf, 0xff, 0xff, 0xfa, 0xc8, 0xd0, 0xdd, 0xfe, 0xff, 0xd5, 0x00, 0x0a, 0x0f, 0xfb, 0xfb, 0xff, 0x80, 0xf3, 0xa2, 0xee, 0xe0, 0x00, 0x00, 0xf0, 0xcc, 0xcc, 0xaa, 0xfa, 0xee, 0xd8, 0x88, 0xcc, 0xc8, 0x8f, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xc8, 0xc8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x28, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x28, 0x30, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x12, 0x04, 0x78, 0x04, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x13, 0x20, 0x30, 0x04, 0x13, 0x20, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x13, 0x20, 0x00, 0x04, 0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x25, 0x46, 0x95, 0xf3, 0x29, 0x06, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf2, 0x01, 0x06, 0x8d, 0x1a, 0x01, 0x06, 0x95, 0xf2, 0x01, 0x06, 0x9d, 0x72, 0x01, 0x06, 0x8d, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x29, 0x06, 0x15, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x8d, 0x00, 0x01, 0x06, 0x15, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x8d, 0x09, 0x20, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x24, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0xfe, 0x01, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0xf3, 0xf3, 0xf5, 0xf5, 0xff, 0x55, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x69, 0x96, 0x33, 0xcc, 0x96, 0x69, 0x33, 0xcc, 0x7d, 0xbe, 0x6f, 0xf6, 0x7b, 0xde, 0x7d, 0xbe, 0x7d, 0xbe, 0x6f, 0xf6, 0xff, 0xff, 0x3f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xff, 0x00, 0x0f, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xcc, 0xcc, 0x7f, 0xff, 0x0f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xff, 0xcc, 0xff, 0xf7, 0xff, 0xff, 0xab, 0xff, 0x00, 0x80, 0xaa, 0x10, 0xff, 0xcf, 0xff, 0xa2, 0x44, 0x40, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6e, 0x67, 0xff, 0xf2, 0xc4, 0xc4, 0xff, 0xfd, 0x8f, 0x00, 0xff, 0xff, 0xff, 0xff, 0xcc, 0x88, 0xc0, 0x80, 0xaa, 0xa8, 0x80, 0xcc, 0xee, 0xf3, 0xfd, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xff, 0xff, 0xdf, 0xff, 0xff, 0xa0, 0x00, 0xff, 0xf7, 0xff, 0xf5, 0xee, 0xe0, 0xee, 0xe0, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x12, 0x10, 0x51, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x33, 0xf3, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x00, 0xc1, 0x90, 0x40, 0x00, 0x04, 0x10, 0x10, 0x40, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x19, 0x00, 0x0e, 0x00, 0x58, 0x20, 0x04, 0x1a, 0x29, 0x60, 0x27, 0x10, 0x08, 0x20, 0x04, 0x1a, 0x09, 0xa0, 0x01, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x08, 0x00, 0x48, 0x20, 0x04, 0x0a, 0x28, 0x80, 0xd6, 0x0c, 0x50, 0x20, 0x02, 0x02, 0x00, 0x00, 0x09, 0x14, 0x00, 0x20, 0x04, 0x0a, 0x09, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x73, 0x01, 0x90, 0x08, 0x20, 0x04, 0x10, 0x01, 0xe0, 0x80, 0x00, 0x58, 0x20, 0x04, 0x12, 0x31, 0xe7, 0x00, 0x00, 0x40, 0x00, 0x04, 0x10, 0x10, 0x30, 0x40, 0x90, 0x48, 0x20, 0x04, 0x12, 0x15, 0x2a, 0x8a, 0x04, 0x48, 0x20, 0x04, 0x1a, 0x11, 0x24, 0x01, 0x14, 0x08, 0x20, 0x04, 0x12, 0x00, 0xc5, 0x0c, 0x04, 0x08, 0x20, 0x04, 0x12, 0x00, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x04, 0x04, 0x00, 0x00, 0x20, 0x24, 0x51, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x00, 0x89, 0x00, 0x04, 0x00, 0x00, 0x00, 0x28, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x8b, 0x04, 0x00, 0x00, 0x00, 0x00, 0x28, 0xc5, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc5, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x44, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x08, 0x28, 0xc1, 0x04, 0x14, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, 0x14, 0x10, 0x00, 0x00, 0x08, 0x00, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x8b, 0x04, 0x00, 0x00, 0x00, 0x20, 0x38, 0x08, 0x81, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x02, 0x20, 0x8b, 0x80, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x03, 0x14, 0x00, 0x00, 0x00, 0x20, 0x10, 0x08, 0x03, 0x84, 0x00, 0x00, 0x00, 0x20, 0x02, 0x20, 0x01, 0x04, 0x00, 0x00, 0x00, 0x09, 0x00, 0x41, 0x88, 0x14, 0x04, 0x00, 0x00, 0x20, 0x04, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x22, 0xe0, 0x03, 0xc0, 0x00, 0x03, 0x00, 0x03, 0x03, 0xcb, 0x03, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xc7, 0x00, 0xc2, 0x00, 0x00, 0x23, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xca, 0xe0, 0x01, 0xc1, 0x47, 0xda, 0x63, 0xc3, 0x13, 0x03, 0x01, 0xc3, 0xcb, 0x03, 0x80, 0x00, 0x80, 0xe0, 0x80, 0xc3, 0x00, 0x13, 0xc5, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0xe0, 0x00, 0xd3, 0xc5, 0x13, 0xcd, 0xc0, 0x00, 0xc0, 0x00, 0xc8, 0x00, 0x80, 0x07, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x03, 0x03, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xe2, 0x40, 0x02, 0x40, 0x40, 0x02, 0x42, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0xdb, 0x00, 0x00, 0x00, 0x00, 0x80, 0xdb, 0x80, 0x07, 0x03, 0x00, 0xc4, 0x00, 0x00, 0x23, 0x03, 0xc0, 0xc4, 0x22, 0x44, 0xc1, 0xc3, 0x41, 0x00, 0xc0, 0x43, 0x00, 0xc4, 0x07, 0xc7, 0xc0, 0xc4, 0x08, 0xcb, 0x00, 0x03, 0x00, 0x10, 0x03, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x1b, 0x00, 0x07, 0x03, 0xd0, 0xe3, 0x03, 0x05, 0x05, 0x00, 0x05, 0x04, 0x00, 0x08, 0x0b, 0x10, 0x03, 0xc0, 0x07, 0x08, 0x08, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x03, 0x04, 0x00, 0x80, 0x01, 0x00, 0x20, 0x00, 0x20, 0x28, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x12, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x41, 0x50, 0x20, 0x00, 0x20, 0x14, 0x00, 0x09, 0x05, 0x30, 0x08, 0x40, 0x82, 0x02, 0x04, 0x00, 0x04, 0x18, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x20, 0x41, 0x82, 0x80, 0x41, 0xc0, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0x82, 0x00, 0x80, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x40, 0x00, 0x02, 0x11, 0x50, 0x21, 0x02, 0x10, 0x41, 0x80, 0x00, 0x10, 0x40, 0x02, 0x00, 0x80, 0x40, 0x00, 0x20, 0x00, 0x00, 0x08, 0x40, 0x00, 0x08, 0x00, 0x04, 0x08, 0x02, 0x00, 0x00, 0x00, 0x02, 0x40, 0x08, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x01, 0x01, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6a, 0xf0, 0x01, 0x00, 0x29, 0x51, 0xe0, 0x08, 0x00, 0x00, 0x00, 0x0a, 0x0a, 0x10, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0xbd, 0x00, 0x04, 0x80, 0x00, 0xb0, 0xa0, 0x00, 0x08, 0x28, 0x05, 0xc2, 0x2e, 0x7c, 0x08, 0x00, 0x0c, 0x28, 0xe0, 0x08, 0x00, 0x34, 0x03, 0x80, 0x01, 0x00, 0x58, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0xdc, 0x70, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x1e, 0x00, 0x70, 0x00, 0x82, 0x00, 0x01, 0x03, 0xca, 0x80, 0x00, 0x01, 0x40, 0x18, 0x30, 0x06, 0x1e, 0x02, 0x48, 0x61, 0xc2, 0x40, 0x00, 0xc2, 0x0b, 0x34, 0x00, 0x00, 0x20, 0x00, 0x01, 0xe2, 0x10, 0x0a, 0x81, 0x19, 0xef, 0x40, 0x70, 0x00, 0x00, 0x00, 0x02, 0x24, 0x00, 0x00, 0x04, 0x12, 0x0e, 0x9e, 0xb0, 0x23, 0x9f, 0x09, 0x40, 0xa0, 0x2e, 0x4a, 0x28, 0x1a, 0x80, 0x1c, 0x00, 0xf5, 0x00, 0x0a, 0x30, 0xe0, 0x00, 0x02, 0x34, 0xc0, 0x0a, 0x8f, 0x10, 0x60, 0x80, 0x03, 0x30, 0x04, 0x00, 0x0a, 0x90, 0xe0, 0x00, 0x00, 0x70, 0x20, 0x00, 0x1c, 0x30, 0x69, 0x63, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0xa3, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x10, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x07, 0x00, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x40, 0x00, 0x00, 0x00, 0x0c, 0x11, 0x2f, 0x14, 0x00, 0x60, 0x44, 0x26, 0xe0, 0x01, 0xe6, 0x00, 0xae, 0x80, 0x45, 0x03, 0x40, 0x08, 0x40, 0x01, 0x80, 0x60, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0x14, 0x60, 0x00, 0x00, 0x00, 0x08, 0x00, 0x40, 0x10, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x04, 0x0e, 0x14, 0x00, 0x00, 0x0c, 0x02, 0xa4, 0xc0, 0x00, 0x30, 0x08, 0x10, 0x02, 0x60, 0x20, 0x06, 0x40, 0x28, 0x30, 0x05, 0x08, 0x3c, 0x01, 0x10, 0x0c, 0x14, 0x30, 0x14, 0x28, 0x62, 0xc0, 0x00, 0x00, 0x2c, 0x21, 0x85, 0x40, 0x71, 0x40, 0xf0, 0xa8, 0x08, 0x20, 0x83, 0x28, 0x0c, 0x00, 0x00, 0x0c, 0x10, 0x70, 0x00, 0x08, 0x12, 0x20, 0x07, 0x00, 0x50, 0x13, 0x87, 0x06, 0x04, 0xc8, 0x09, 0x1c, 0x81, 0x80, 0x00, 0x08, 0x08, 0x01, 0x07, 0x8c, 0x70, 0x03, 0x82, 0x81, 0xe1, 0xf0, 0x04, 0x1c, 0x42, 0xe0, 0x20, 0x0c, 0x84, 0x09, 0x00, 0x40, 0x68, 0x03, 0x90, 0x00, 0x84, 0xa2, 0x20, 0x2e, 0x54, 0x01, 0x93, 0x40, 0x60, 0x20, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x78, 0x08, 0x8b, 0x00, 0x30, 0x00, 0x00, 0x20, 0x20, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x3c, 0x00, 0x01, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x94, 0x00, 0x22, 0x02, 0x30, 0x28, 0x80, 0x20, 0x80, 0x88, 0x02, 0x00, 0x14, 0x01, 0x05, 0x40, 0x00, 0x20, 0x0c, 0x10, 0x00, 0x00, 0x02, 0x00, 0x80, 0x04, 0x82, 0x10, 0x04, 0x00, 0x00, 0x10, 0x00, 0x04, 0x90, 0x00, 0x00, 0x10, 0x00, 0x00, 0x04, 0x24, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x40, 0x10, 0x70, 0x00, 0x40, 0x04, 0x40, 0x31, 0x10, 0x0b, 0x10, 0x08, 0x01, 0x02, 0x04, 0x11, 0x00, 0x20, 0x70, 0x91, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x28, 0x00, 0x41, 0x60, 0x00, 0x89, 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x10, 0x80, 0x01, 0x02, 0x14, 0x00, 0x80, 0x10, 0x40, 0x21, 0x48, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x18, 0x00, 0x80, 0x22, 0x08, 0x2c, 0x18, 0x22, 0x80, 0x00, 0x06, 0x24, 0x01, 0x01, 0x40, 0x60, 0x80, 0x10, 0x01, 0x10, 0x20, 0x14, 0x00, 0x00, 0x00, 0x88, 0x00, 0x20, 0x81, 0x00, 0x80, 0x00, 0x04, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x08, 0x00, 0x00, 0x04, 0x00, 0x80, 0x1e, 0x30, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x80, 0x10, 0x00, 0x00, 0x10, 0x00, 0xe0, 0x00, 0x08, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x10, 0x18, 0x09, 0x30, 0x28, 0x03, 0x03, 0x0e, 0x12, 0x24, 0x08, 0x3c, 0x10, 0x8a, 0x08, 0x18, 0x70, 0x00, 0x60, 0x14, 0x32, 0xe1, 0x80, 0x00, 0xb4, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x01, 0x80, 0x0c, 0x00, 0x00, 0x01, 0x5c, 0x04, 0x00, 0x00, 0x08, 0x00, 0xa0, 0x08, 0x02, 0x08, 0x00, 0x00, 0x0c, 0x60, 0x41, 0x06, 0xb0, 0x14, 0xd0, 0x02, 0x06, 0x00, 0x00, 0x50, 0x00, 0x80, 0x80, 0x45, 0x02, 0x62, 0x00, 0x00, 0x02, 0x00, 0x83, 0x88, 0x08, 0x4d, 0x14, 0xc0, 0x09, 0x11, 0x02, 0x00, 0x10, 0x10, 0x00, 0x08, 0x00, 0x41, 0x00, 0x00, 0x00, 0x41, 0x10, 0xd7, 0xdc, 0x28, 0x03, 0xb7, 0x38, 0x66, 0xc0, 0x01, 0x94, 0x30, 0x73, 0x20, 0x16, 0x00, 0x05, 0xd0, 0x0d, 0x3a, 0x01, 0x82, 0x12, 0x39, 0x10, 0x00, 0x48, 0x0e, 0x60, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x21, 0x80, 0x0c, 0x80, 0x12, 0xc0, 0x0c, 0x09, 0x10, 0x93, 0x00, 0x60, 0x40, 0x00, 0x02, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x08, 0x10, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0xc0, 0x08, 0xb8, 0x00, 0x00, 0x14, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x03, 0x90, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x22, 0x40, 0x00, 0x32, 0x01, 0xe0, 0x06, 0x08, 0x31, 0xc8, 0x28, 0x80, 0xf0, 0xab, 0x08, 0x00, 0x20, 0x00, 0x1e, 0x14, 0x64, 0x10, 0x00, 0x70, 0x00, 0x00, 0x0c, 0x00, 0xf0, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x1c, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x1d, 0x01, 0x00, 0x06, 0x1c, 0x00, 0x00, 0x40, 0x01, 0x45, 0x05, 0x9a, 0x0c, 0x00, 0x03, 0xc0, 0x8c, 0x60, 0x04, 0x08, 0x16, 0x31, 0x00, 0x0f, 0x80, 0x44, 0xe2, 0x80, 0x0c, 0x01, 0x02, 0x90, 0x01, 0x00, 0xa2, 0x8a, 0x00, 0xf0, 0x03, 0x80, 0x68, 0x08, 0x00, 0x0e, 0x00, 0x38, 0x28, 0x00, 0x00, 0x00, 0xa5, 0x80, 0x4c, 0x4a, 0x12, 0x87, 0x48, 0x00, 0x00, 0x1a, 0x2c, 0xc9, 0x20, 0x00, 0x0c, 0xe0, 0x10, 0x16, 0x00, 0xc8, 0x00, 0x00, 0x42, 0x70, 0x20, 0x00, 0x08, 0x70, 0x15, 0x50, 0x08, 0x00, 0x00, 0x00, 0x1c, 0x08, 0xf4, 0x1a, 0x01, 0x60, 0xd6, 0x00, 0x00, 0x00, 0x20, 0x14, 0x40, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x22, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x22, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x20, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x22, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x22, 0x02, 0x84, 0x21, 0x88, 0x04, 0x40, 0x20, 0x02, 0x00, 0x01, 0x04, 0x08, 0x00, 0x08, 0x00, 0x20, 0x34, 0x00, 0x08, 0x0c, 0x02, 0x09, 0x00, 0x0a, 0x81, 0x08, 0x08, 0x28, 0x0c, 0x09, 0x00, 0x01, 0x24, 0x00, 0x28, 0x01, 0x10, 0x44, 0x04, 0x4a, 0x04, 0x92, 0x08, 0x08, 0x01, 0x01, 0x04, 0x24, 0x04, 0x04, 0x20, 0x00, 0x10, 0x82, 0x04, 0x0a, 0x01, 0x84, 0x41, 0x42, 0x04, 0x98, 0x18, 0x44, 0x02, 0x58, 0x00, 0x2a, 0x24, 0x82, 0x0c, 0x08, 0x48, 0x3c, 0x88, 0x00, 0x81, 0x08, 0x00, 0x08, 0x02, 0x40, 0x04, 0x30, 0x00, 0x40, 0x80, 0x04, 0x09, 0x82, 0x09, 0x02, 0x01, 0x21, 0x28, 0x00, 0x22, 0x8a, 0x80, 0x00, 0x84, 0x82, 0x08, 0x0a, 0x42, 0x00, 0x41, 0x01, 0x12, 0x24, 0x00, 0x24, 0x11, 0x08, 0x90, 0x0a, 0x81, 0x20, 0x82, 0x04, 0x09, 0x2c, 0x22, 0x0c, 0x84, 0x50, 0x00, 0x20, 0x09, 0x00, 0x4a, 0x09, 0x20, 0x00, 0x18, 0x01, 0x40, 0x98, 0x20, 0x42, 0x28, 0x20, 0x00, 0x80, 0x00, 0x20, 0x01, 0x00, 0x28, 0x40, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x30, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x90, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x10, 0xb0, 0x00, 0x02, 0x00, 0x3a, 0x09, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0xbc, 0x08, 0x50, 0xb0, 0x00, 0x00, 0x7d, 0x0e, 0x0e, 0x00, 0x00, 0x10, 0x50, 0x30, 0x08, 0x00, 0x10, 0x00, 0x00, 0x70, 0x00, 0x0e, 0x70, 0x90, 0x0e, 0x0c, 0x00, 0x30, 0x09, 0x00, 0x98, 0xa5, 0x80, 0x50, 0x08, 0x00, 0x1c, 0x14, 0x00, 0xbd, 0x30, 0xb0, 0x54, 0x60, 0x00, 0x38, 0x50, 0x0c, 0x28, 0x08, 0x00, 0x00, 0x04, 0x11, 0x08, 0x81, 0x50, 0x10, 0x30, 0x00, 0x90, 0x0d, 0x00, 0xb8, 0x0a, 0x08, 0x00, 0x00, 0x00, 0x0c, 0xbd, 0x0e, 0x0c, 0x30, 0x05, 0x90, 0x50, 0xa4, 0x04, 0x1e, 0x00, 0x5d, 0x09, 0x30, 0x00, 0x10, 0x86, 0x19, 0x9c, 0x0d, 0x58, 0x00, 0x00, 0x80, 0x90, 0x1c, 0x88, 0xa0, 0x0c, 0x50, 0x10, 0xa9, 0x5e, 0x1c, 0xa6, 0x7c, 0x34, 0x5d, 0x00, 0x00, 0x20, 0xbd, 0x10, 0x9d, 0x00, 0x84, 0x52, 0xb0, 0x75, 0x80, 0x81, 0x01, 0xba, 0xb0, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x10, 0x0e, 0x30, 0x00, 0x00, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x04, 0x10, 0x0c, 0x30, 0x04, 0x00, 0x00, 0x54, 0x00, 0x04, 0x70, 0x80, 0x00, 0x02, 0x50, 0x22, 0x3c, 0x00, 0x02, 0x08, 0x88, 0x04, 0x00, 0x48, 0x20, 0x00, 0x40, 0x10, 0x48, 0x0c, 0x00, 0x0c, 0x1c, 0x00, 0x30, 0x09, 0x40, 0x3d, 0xf8, 0x38, 0x04, 0x30, 0x5a, 0x00, 0x0c, 0x80, 0x08, 0x10, 0x5c, 0x00, 0x01, 0x00, 0x00, 0x1c, 0x7c, 0x08, 0x08, 0x10, 0x18, 0x9d, 0x00, 0x20, 0x50, 0x1c, 0x74, 0x20, 0x0a, 0x18, 0x10, 0x28, 0x8c, 0x00, 0x00, 0x04, 0x20, 0x00, 0x38, 0x00, 0x8a, 0x00, 0x08, 0x20, 0xf1, 0x3a, 0x0a, 0x20, 0x30, 0x08, 0x0c, 0x3c, 0x08, 0x08, 0x00, 0x3c, 0x30, 0x00, 0x04, 0x30, 0xb0, 0x00, 0x0c, 0x08, 0x00, 0x0c, 0xac, 0x01, 0x1c, 0x00, 0x40, 0x8c, 0x80, 0x18, 0x08, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2c, 0x50, 0xfc, 0x20, 0x3c, 0x04, 0x1c, 0x10, 0x50, 0x20, 0xd8, 0x00, 0x20, 0x80, 0x30, 0x50, 0x00, 0x80, 0x20, 0x30, 0x00, 0x14, 0x30, 0x30, 0x00, 0x30, 0x00, 0x20, 0x70, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x30, 0x10, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x04, 0x02, 0x02, 0x00, 0x80, 0x02, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x0c, 0x00, 0x04, 0x10, 0x00, 0x1c, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0x08, 0x12, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x00, 0x20, 0x04, 0x20, 0x00, 0x0d, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x06, 0x02, 0x00, 0x02, 0x80, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x61, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x90, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x20, 0x04, 0x4d, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x82, 0x08, 0x09, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcc, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xac, 0xff, 0xff, 0xaa, 0xac, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0xac, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xa8, 0xdd, 0xdd, 0xff, 0xff, 0xfc, 0x0f, 0xc0, 0xc0, 0xff, 0xcc, 0xfb, 0xf3, 0xbf, 0xff, 0xa8, 0x20, 0xdd, 0xb9, 0xff, 0x33, 0xfa, 0xc8, 0x33, 0x00, 0xff, 0xff, 0xfc, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xaa, 0x8a, 0xff, 0xff, 0xbb, 0xf3, 0xfa, 0xee, 0x32, 0x32, 0xff, 0xff, 0xe0, 0x20, 0xdd, 0xdd, 0xfd, 0xff, 0x88, 0x80, 0x88, 0x80, 0xff, 0xff, 0xee, 0x00, 0xfc, 0xa8, 0xf8, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xf3, 0xcf, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0x22, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x30, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x04, 0x78, 0x04, 0x00, 0x04, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x24, 0x70, 0x00, 0x13, 0x20, 0x30, 0x04, 0x00, 0x00, 0x30, 0x00, 0x00, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x11, 0x00, 0x04, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x12, 0x0c, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x95, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x1b, 0x25, 0x4e, 0x95, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x8d, 0x00, 0x04, 0x48, 0x00, 0x13, 0x20, 0x00, 0x04, 0x01, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x22, 0x00, 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xef, 0xef, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x5a, 0x6f, 0xf6, 0x7b, 0xde, 0x7b, 0xde, 0x7b, 0xde, 0x7d, 0xbe, 0x6f, 0xf6, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x88, 0x88, 0x80, 0xff, 0xf0, 0xee, 0xee, 0xff, 0xcc, 0xfc, 0xfc, 0xee, 0xee, 0xff, 0xcc, 0xff, 0xcc, 0xee, 0xee, 0xff, 0xcc, 0xfc, 0xfc, 0xee, 0xee, 0xee, 0xee, 0xff, 0xcc, 0xfc, 0xfc, 0xff, 0xf0, 0xee, 0xee, 0x45, 0x55, 0xcc, 0xff, 0xff, 0xf5, 0xff, 0xa2, 0xff, 0xff, 0xff, 0xff, 0x03, 0x57, 0xff, 0xff, 0xff, 0xf1, 0xaa, 0xcc, 0x44, 0x44, 0x00, 0xf0, 0xff, 0xfc, 0xff, 0x8a, 0x8c, 0x80, 0xfc, 0xfc, 0xea, 0xaa, 0xee, 0x22, 0xf0, 0xe4, 0xf3, 0xc0, 0xdd, 0xdd, 0xff, 0xef, 0x55, 0xff, 0xff, 0xf7, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x0a, 0xff, 0xff, 0xf0, 0xb0, 0xa2, 0x22, 0xff, 0xbf, 0xc8, 0x00, 0xee, 0x44, 0x70, 0xf0, 0xff, 0xdd, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x48, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x0c, 0x40, 0x40, 0x04, 0x0a, 0x00, 0x00, 0x00, 0xc0, 0x48, 0x20, 0x04, 0x0a, 0x04, 0x40, 0x01, 0x00, 0x48, 0x20, 0x04, 0x10, 0x02, 0x10, 0x00, 0x24, 0x48, 0x20, 0x04, 0x1a, 0x33, 0xf0, 0x01, 0xc0, 0x48, 0x20, 0x04, 0x12, 0x35, 0xeb, 0x22, 0x08, 0x48, 0x20, 0x04, 0x02, 0x30, 0x03, 0x01, 0x94, 0x48, 0x20, 0x04, 0x12, 0x13, 0x32, 0x00, 0x00, 0x40, 0x00, 0x04, 0x00, 0x14, 0x00, 0x01, 0x10, 0x48, 0x20, 0x04, 0x12, 0x11, 0x26, 0x09, 0x90, 0x48, 0x20, 0x04, 0x10, 0x20, 0xc4, 0x4a, 0x00, 0x58, 0x20, 0x00, 0x0a, 0x00, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x01, 0x90, 0x48, 0x20, 0x04, 0x10, 0x00, 0x04, 0xc0, 0x04, 0x40, 0x00, 0x04, 0x12, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x02, 0x04, 0x00, 0x00, 0x00, 0x28, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x44, 0x89, 0x24, 0x00, 0x00, 0x04, 0x08, 0x04, 0x43, 0x83, 0x04, 0x84, 0x20, 0x00, 0x08, 0x02, 0x45, 0x83, 0x40, 0x84, 0x20, 0x04, 0x00, 0x01, 0x00, 0x83, 0x00, 0x84, 0x20, 0x00, 0x00, 0x01, 0x00, 0x83, 0x04, 0x84, 0x20, 0x04, 0x20, 0x02, 0x20, 0x83, 0x14, 0x04, 0x00, 0x00, 0x28, 0x04, 0x48, 0x83, 0x14, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x89, 0x00, 0x04, 0x00, 0x04, 0x08, 0x00, 0x40, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x8b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x12, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x14, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x83, 0x00, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x91, 0x14, 0x04, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x81, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xc5, 0x02, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x01, 0x00, 0xe2, 0x83, 0x00, 0x23, 0xb3, 0xc5, 0xd7, 0x83, 0x93, 0xe3, 0xc1, 0x13, 0x13, 0xc0, 0xc1, 0x23, 0x03, 0x03, 0xc9, 0x00, 0xe3, 0x13, 0xc3, 0x23, 0x01, 0x01, 0x53, 0x13, 0xcb, 0x63, 0x01, 0x63, 0x46, 0x00, 0x03, 0x00, 0xc2, 0x00, 0x00, 0x23, 0xc8, 0x40, 0x44, 0x00, 0xcb, 0xc5, 0xa3, 0x00, 0x00, 0x03, 0xe0, 0x00, 0xc0, 0xe0, 0x00, 0x05, 0x00, 0x23, 0x03, 0xc3, 0x00, 0x23, 0x07, 0x13, 0x01, 0xe2, 0x00, 0x00, 0xc4, 0x00, 0xc3, 0x01, 0xc3, 0x63, 0x03, 0x00, 0xc8, 0x0d, 0x04, 0xcb, 0x00, 0x0f, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x03, 0x23, 0x00, 0xc8, 0x00, 0x07, 0x03, 0x22, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x04, 0x05, 0x00, 0x40, 0x00, 0x04, 0x00, 0x05, 0x80, 0x10, 0xc0, 0x00, 0x00, 0x20, 0x50, 0x00, 0x40, 0x11, 0x40, 0x00, 0x40, 0x10, 0xc0, 0x40, 0x41, 0x11, 0x01, 0x00, 0x40, 0x20, 0x41, 0x40, 0x04, 0x80, 0x40, 0x00, 0x14, 0x20, 0x08, 0x00, 0x00, 0x40, 0x00, 0x00, 0x20, 0x04, 0x08, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x20, 0x08, 0x00, 0x00, 0x00, 0x02, 0x28, 0x00, 0x00, 0x20, 0x00, 0x20, 0x20, 0x08, 0x00, 0x00, 0x00, 0x12, 0x01, 0x12, 0x40, 0x02, 0x00, 0x08, 0x00, 0x04, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x02, 0x50, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x80, 0x20, 0x38, 0x00, 0x0b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x34, 0xd0, 0x00, 0x00, 0xb0, 0x0b, 0x80, 0x00, 0x00, 0x1c, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x00, 0x0e, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x80, 0x00, 0x04, 0xa0, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x73, 0x80, 0x02, 0x00, 0xa3, 0xc1, 0x3c, 0x40, 0x73, 0x80, 0x06, 0xe8, 0x11, 0x16, 0x40, 0x48, 0x01, 0x45, 0x02, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x10, 0x00, 0x21, 0x00, 0x10, 0x01, 0x47, 0x08, 0x7a, 0x43, 0x80, 0x14, 0x6a, 0x91, 0x4f, 0x82, 0x40, 0x20, 0x5a, 0x02, 0xb0, 0x03, 0x87, 0x2c, 0x00, 0xb2, 0x20, 0x1c, 0x38, 0x21, 0x4f, 0x26, 0x00, 0x01, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x40, 0x08, 0x0b, 0xc0, 0x00, 0x08, 0x21, 0xcf, 0x00, 0x90, 0x01, 0x00, 0x0c, 0x38, 0x71, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xd0, 0x00, 0x00, 0x07, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x80, 0x1c, 0x14, 0x03, 0x9c, 0x00, 0x30, 0x01, 0xc0, 0x08, 0x2c, 0x60, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x41, 0x40, 0x00, 0x03, 0x88, 0x00, 0xd8, 0x00, 0x00, 0x40, 0xe0, 0x00, 0x00, 0x10, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x00, 0x08, 0x08, 0x00, 0x01, 0x00, 0x88, 0x00, 0x20, 0x10, 0x0a, 0x28, 0x00, 0x00, 0x00, 0x00, 0xa3, 0x6e, 0x60, 0x05, 0x11, 0x0c, 0x08, 0xe0, 0x4d, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x02, 0x00, 0xf4, 0xa0, 0xc7, 0x0c, 0x8d, 0xcb, 0x20, 0x89, 0x05, 0xe2, 0x01, 0x02, 0x31, 0xc0, 0x44, 0x00, 0x10, 0xdd, 0x01, 0x80, 0x08, 0x82, 0x07, 0x02, 0x06, 0xc0, 0x26, 0x3e, 0x08, 0x18, 0x00, 0x07, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x04, 0x00, 0xc0, 0x08, 0xa8, 0x11, 0xa4, 0x40, 0x30, 0x02, 0x00, 0x01, 0xb8, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x04, 0x28, 0x00, 0x03, 0x00, 0x80, 0x10, 0x24, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x08, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x09, 0x03, 0x01, 0x00, 0x04, 0x08, 0xd0, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x04, 0x08, 0x40, 0x00, 0x02, 0x04, 0x40, 0x11, 0x24, 0x08, 0x42, 0x00, 0x48, 0x00, 0x40, 0x08, 0x0c, 0x0b, 0x04, 0x48, 0x0c, 0x00, 0x02, 0x80, 0x34, 0x00, 0x00, 0x10, 0x00, 0x00, 0x4a, 0x20, 0x10, 0x00, 0x20, 0x00, 0x82, 0x81, 0x00, 0x0c, 0x04, 0x00, 0x84, 0x00, 0x04, 0x52, 0x00, 0x04, 0x00, 0x33, 0x06, 0x14, 0x60, 0x00, 0x00, 0x82, 0x20, 0x18, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x04, 0x00, 0x22, 0x41, 0x01, 0x00, 0x00, 0xa0, 0x08, 0x00, 0x01, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xa3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x34, 0x00, 0x01, 0x80, 0x00, 0x34, 0x05, 0x10, 0x30, 0x38, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x60, 0x0c, 0x0c, 0x00, 0x04, 0x2e, 0x02, 0x20, 0x00, 0x00, 0x38, 0x02, 0x00, 0x00, 0x3a, 0x21, 0x80, 0x00, 0x00, 0x60, 0x00, 0x00, 0x96, 0xc3, 0x21, 0x00, 0x38, 0x03, 0x8b, 0x21, 0x48, 0x30, 0x40, 0x10, 0x78, 0x01, 0x80, 0x20, 0x60, 0x00, 0x63, 0x00, 0x10, 0x82, 0x02, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x07, 0x00, 0x6c, 0x20, 0x0f, 0x2d, 0x88, 0x23, 0x87, 0x02, 0x03, 0x40, 0x71, 0x34, 0x8c, 0x04, 0x8b, 0x00, 0x34, 0x13, 0xa0, 0x00, 0x2c, 0x60, 0x05, 0x16, 0x00, 0x0c, 0x06, 0x12, 0x04, 0xda, 0x05, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x11, 0xe5, 0x90, 0x08, 0x0d, 0x21, 0xa2, 0x80, 0x80, 0x00, 0x10, 0x10, 0x68, 0x68, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x04, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x80, 0x00, 0x48, 0x00, 0x0b, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x80, 0x00, 0x14, 0x68, 0x14, 0x00, 0x30, 0x02, 0x00, 0x00, 0x00, 0x68, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x06, 0x1c, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0f, 0x3c, 0x00, 0x0b, 0x40, 0x80, 0x08, 0x40, 0x0b, 0x80, 0xe0, 0x20, 0x00, 0x30, 0x01, 0x80, 0x00, 0x68, 0x06, 0x8f, 0x00, 0x10, 0x31, 0x20, 0x1c, 0xd0, 0x00, 0x1b, 0x08, 0x40, 0xa0, 0x0e, 0x00, 0x0a, 0x00, 0x9f, 0x02, 0xe8, 0xa0, 0x00, 0x80, 0x02, 0x00, 0xa0, 0x82, 0x00, 0x02, 0x80, 0x00, 0x30, 0x00, 0x00, 0x40, 0x31, 0x22, 0x08, 0x88, 0x12, 0xe3, 0xd0, 0x66, 0x10, 0xe2, 0x00, 0x00, 0x30, 0x70, 0x00, 0x1c, 0x30, 0x02, 0x07, 0x00, 0x08, 0xe1, 0x80, 0x48, 0x3c, 0x40, 0x1e, 0x90, 0x00, 0x10, 0xa4, 0x09, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x80, 0x60, 0x22, 0x80, 0x02, 0x0c, 0x83, 0x43, 0x40, 0x40, 0x00, 0x00, 0x00, 0x3a, 0x80, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x30, 0x20, 0x20, 0x20, 0x10, 0x00, 0x02, 0x20, 0x40, 0x38, 0x00, 0x80, 0x08, 0x28, 0x02, 0x00, 0x00, 0x00, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x28, 0x00, 0x00, 0x08, 0x01, 0x20, 0x20, 0x00, 0x00, 0x00, 0x10, 0x20, 0x80, 0x80, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x40, 0x88, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x82, 0x00, 0x80, 0x01, 0x00, 0x08, 0x28, 0x00, 0x50, 0x00, 0x0a, 0x12, 0x01, 0x84, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x30, 0x08, 0x20, 0x50, 0x80, 0x20, 0x00, 0x00, 0x32, 0x02, 0x20, 0x80, 0x0c, 0x04, 0x00, 0x00, 0x22, 0x10, 0x08, 0x00, 0x52, 0x28, 0x21, 0x08, 0x42, 0x44, 0x04, 0x00, 0x09, 0x18, 0x24, 0x00, 0x12, 0x40, 0x42, 0x04, 0x22, 0x18, 0x24, 0x38, 0x00, 0x04, 0x24, 0x0a, 0x48, 0x11, 0x80, 0x00, 0x00, 0x04, 0x04, 0x14, 0x04, 0x81, 0x00, 0x02, 0x41, 0x00, 0x04, 0x80, 0x91, 0x28, 0x00, 0x90, 0x50, 0x10, 0x41, 0x21, 0x82, 0x88, 0x00, 0x48, 0x00, 0x2a, 0x00, 0x54, 0x49, 0x84, 0x04, 0x54, 0x0c, 0x12, 0x52, 0x02, 0x44, 0x08, 0x20, 0x00, 0x22, 0x00, 0x89, 0x20, 0x80, 0x30, 0x10, 0x00, 0x44, 0x0a, 0x20, 0x14, 0x00, 0x98, 0x14, 0x00, 0x42, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0xb0, 0x20, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x3a, 0xbd, 0x1c, 0x00, 0x00, 0x00, 0x50, 0x00, 0x1c, 0x0e, 0x00, 0x9c, 0x00, 0x00, 0x10, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x90, 0x18, 0xb8, 0x30, 0x30, 0x0a, 0x00, 0x39, 0x01, 0x00, 0xbe, 0x9a, 0x00, 0x00, 0x08, 0x09, 0x30, 0x08, 0x0d, 0x30, 0x10, 0x00, 0x00, 0x00, 0x30, 0x00, 0xb0, 0x60, 0x68, 0x30, 0x00, 0x39, 0x00, 0x0e, 0x00, 0x69, 0x10, 0x94, 0x9d, 0x0c, 0x40, 0x02, 0x50, 0x00, 0x08, 0x30, 0xb0, 0x30, 0x2a, 0x50, 0x50, 0x30, 0x00, 0x10, 0x78, 0x34, 0x50, 0x0e, 0x50, 0x04, 0x58, 0x25, 0x90, 0x1c, 0x0e, 0x0e, 0x06, 0x10, 0x80, 0x30, 0x40, 0x00, 0x90, 0x00, 0xb0, 0x00, 0x3d, 0x14, 0x6a, 0x30, 0x29, 0x20, 0x08, 0x90, 0x9c, 0x04, 0x60, 0x94, 0x00, 0x0c, 0x3d, 0x10, 0x00, 0x60, 0x4a, 0x00, 0xbc, 0x10, 0x36, 0x50, 0x60, 0xb0, 0xb0, 0x50, 0x7a, 0x30, 0x08, 0x9d, 0x00, 0x32, 0x1a, 0x00, 0x80, 0x00, 0xbe, 0x20, 0x00, 0x30, 0x10, 0x0d, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0xb2, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x10, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x20, 0x00, 0x10, 0x50, 0x40, 0x80, 0x00, 0x20, 0x10, 0x30, 0x00, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x10, 0x00, 0x11, 0x00, 0x30, 0x5c, 0x00, 0x00, 0x00, 0x10, 0x30, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x70, 0x00, 0x00, 0x10, 0x91, 0x30, 0x00, 0x00, 0x02, 0x00, 0x81, 0x40, 0x10, 0x32, 0x00, 0x0a, 0x82, 0x00, 0x00, 0x00, 0x00, 0xa9, 0x50, 0x10, 0x78, 0x00, 0x80, 0x10, 0x8e, 0x30, 0x00, 0x08, 0x0c, 0x0c, 0x38, 0x00, 0x32, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, 0x30, 0x10, 0xb0, 0x30, 0x00, 0x00, 0x30, 0xcc, 0x10, 0x30, 0x00, 0x80, 0x00, 0x80, 0x0c, 0x70, 0x00, 0x00, 0x20, 0x30, 0x2c, 0x00, 0x0c, 0x14, 0x04, 0xd0, 0x04, 0x00, 0x14, 0x80, 0x00, 0x10, 0x38, 0xe4, 0x24, 0x70, 0x25, 0x10, 0x00, 0x0c, 0x38, 0x04, 0x30, 0x08, 0x10, 0x81, 0x42, 0x00, 0x00, 0x0c, 0x70, 0xa8, 0x00, 0xf8, 0x1c, 0x5a, 0x0c, 0xb2, 0x3c, 0xb0, 0x00, 0x33, 0x30, 0x00, 0x1d, 0x1c, 0x31, 0x30, 0x0a, 0x30, 0x00, 0x08, 0x80, 0x18, 0x14, 0x38, 0x08, 0x1c, 0x04, 0x0c, 0x0c, 0x0c, 0x3c, 0x00, 0x30, 0x00, 0x3c, 0x8e, 0x00, 0x00, 0x10, 0x1a, 0x00, 0x00, 0x38, 0x08, 0x30, 0x04, 0x00, 0x10, 0x08, 0x70, 0x3c, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x26, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x0c, 0x01, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x4c, 0x02, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x05, 0x45, 0x00, 0x00, 0x00, 0x00, 0x84, 0x20, 0x34, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x60, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x84, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x24, 0x00, 0x64, 0x40, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x09, 0x00, 0x60, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x24, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x82, 0x00, 0xb1, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x41, 0x88, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0xc0, 0x80, 0x20, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x8f, 0x80, 0x00, 0x8a, 0x00, 0xdd, 0x5d, 0xdd, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0xff, 0xff, 0x80, 0x00, 0xf3, 0xf3, 0xf3, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0x33, 0xdd, 0xdd, 0xff, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xff, 0x33, 0x3f, 0x3f, 0xbb, 0xbb, 0xaa, 0xff, 0xcc, 0xff, 0xff, 0xfe, 0xf0, 0xff, 0xaf, 0xff, 0xfa, 0xc8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xf8, 0xff, 0xff, 0xdf, 0x8f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xaa, 0xfc, 0x30, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xa8, 0xf0, 0xc0, 0xfa, 0xc8, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x38, 0x00, 0x08, 0x08, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x28, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x0d, 0x26, 0xf8, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x2c, 0x48, 0x00, 0x00, 0x0c, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x13, 0x20, 0x00, 0x04, 0x01, 0x24, 0x40, 0x00, 0x01, 0x24, 0x40, 0x00, 0x13, 0x21, 0x06, 0x95, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x29, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x0d, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x58, 0x00, 0xf0, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0xbf, 0x33, 0xf0, 0xa0, 0xf0, 0xa5, 0xaa, 0x55, 0xff, 0xa0, 0xcc, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xea, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xcf, 0xf3, 0xbb, 0xff, 0xff, 0xcf, 0xaf, 0x08, 0x00, 0x80, 0x00, 0xaa, 0xaa, 0xff, 0x00, 0xcc, 0xcc, 0xff, 0x00, 0xaa, 0xaa, 0xcc, 0xcc, 0xff, 0x00, 0xaa, 0xaa, 0xf0, 0xf0, 0xcc, 0xcc, 0xff, 0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0x55, 0x55, 0xbb, 0xbb, 0xfa, 0xc8, 0xff, 0x80, 0xa8, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xc0, 0xff, 0xff, 0xff, 0xff, 0x70, 0xf0, 0x31, 0x31, 0xe2, 0xe2, 0xdd, 0x88, 0xff, 0xff, 0xd8, 0xd8, 0xff, 0xff, 0xf3, 0xc0, 0xee, 0x44, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xec, 0xc8, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0x8f, 0xfe, 0xfe, 0xfa, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x98, 0x48, 0x20, 0x04, 0x12, 0x11, 0x26, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x03, 0x80, 0xce, 0x00, 0x48, 0x20, 0x04, 0x12, 0x28, 0xeb, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x20, 0x04, 0x02, 0x00, 0x81, 0x24, 0x9c, 0x08, 0x20, 0x04, 0x02, 0x00, 0x00, 0x03, 0x40, 0x08, 0x20, 0x04, 0x1a, 0x02, 0xd0, 0x18, 0x00, 0x58, 0x20, 0x04, 0x00, 0x00, 0x00, 0xcc, 0x04, 0x58, 0x20, 0x04, 0x02, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x98, 0x00, 0x20, 0x04, 0x12, 0x08, 0xf3, 0x01, 0x9c, 0x00, 0x00, 0x04, 0x12, 0x00, 0x6b, 0x10, 0x00, 0x40, 0x00, 0x04, 0x00, 0x30, 0x00, 0x26, 0x2c, 0x48, 0x20, 0x04, 0x1a, 0x03, 0x30, 0x06, 0x0c, 0x08, 0x20, 0x00, 0x0a, 0x01, 0x00, 0x06, 0x90, 0x08, 0x20, 0x04, 0x10, 0x01, 0x00, 0xe6, 0x0c, 0x48, 0x20, 0x00, 0x02, 0x20, 0x81, 0x41, 0x9c, 0x40, 0x00, 0x04, 0x12, 0x24, 0x49, 0x0d, 0x98, 0x08, 0x20, 0x04, 0x12, 0x02, 0xd0, 0xc0, 0x0c, 0x48, 0x20, 0x00, 0x02, 0x00, 0x00, 0x09, 0x1c, 0x48, 0x20, 0x04, 0x12, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x34, 0xc9, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xa0, 0x01, 0x04, 0x00, 0x00, 0x00, 0x28, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x29, 0x00, 0x41, 0x20, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x14, 0x00, 0x00, 0x00, 0x28, 0x10, 0x48, 0x00, 0x10, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x23, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x40, 0x09, 0x14, 0x00, 0x00, 0x04, 0x29, 0x00, 0x40, 0x00, 0x14, 0x00, 0x00, 0x00, 0x21, 0x00, 0x10, 0x03, 0x14, 0x10, 0x00, 0x04, 0x21, 0x00, 0x90, 0x01, 0x14, 0x00, 0x00, 0x04, 0x21, 0x00, 0x20, 0x81, 0x00, 0x04, 0x00, 0x00, 0x08, 0x04, 0x40, 0x8b, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x20, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x92, 0x24, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0xc1, 0x14, 0x04, 0x00, 0x00, 0x20, 0x00, 0x20, 0x03, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x8a, 0x14, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x20, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc5, 0x40, 0x00, 0x03, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x63, 0x03, 0x03, 0x45, 0x22, 0xc4, 0x00, 0x03, 0xc0, 0xc0, 0x00, 0xe0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x07, 0xd3, 0x00, 0x00, 0xd3, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x13, 0xc0, 0x01, 0x00, 0x00, 0xc3, 0x00, 0xf3, 0x05, 0xc8, 0xc5, 0xc8, 0x00, 0xca, 0xd3, 0x80, 0x03, 0xa1, 0x13, 0x00, 0x00, 0xc2, 0x23, 0xd3, 0x00, 0xf0, 0x07, 0x45, 0x00, 0x03, 0x00, 0x04, 0x03, 0x44, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x22, 0x20, 0x00, 0x23, 0x04, 0x02, 0x07, 0x00, 0x00, 0x10, 0xc2, 0x02, 0x03, 0x02, 0x03, 0x00, 0xc0, 0xc3, 0xdb, 0xe0, 0xcb, 0xc3, 0xc3, 0xcb, 0xc8, 0x03, 0x05, 0xd3, 0x07, 0xc0, 0x03, 0x00, 0x22, 0xcb, 0x00, 0x10, 0x01, 0x01, 0x00, 0x10, 0x0b, 0x03, 0x03, 0xa3, 0x22, 0xa3, 0x93, 0x00, 0x22, 0x00, 0x03, 0x00, 0x07, 0x03, 0x03, 0xe0, 0x03, 0x00, 0x40, 0x00, 0x00, 0xc3, 0xc0, 0x00, 0xdb, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x07, 0x03, 0xc8, 0x00, 0x00, 0xc3, 0x00, 0xe0, 0xcb, 0xc0, 0xd3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x41, 0x01, 0x40, 0x00, 0x00, 0x80, 0x40, 0x04, 0x10, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x41, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x02, 0x10, 0x80, 0x01, 0x40, 0x00, 0x10, 0x00, 0x84, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x80, 0x20, 0x01, 0x00, 0x00, 0x80, 0x20, 0x00, 0x04, 0x00, 0x00, 0x80, 0x00, 0xa0, 0x03, 0x01, 0x12, 0x80, 0x00, 0x03, 0x12, 0x00, 0x00, 0x08, 0x88, 0x11, 0x08, 0x00, 0x40, 0x00, 0x01, 0x00, 0x01, 0x80, 0x00, 0x00, 0x02, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x08, 0x08, 0x01, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x04, 0x03, 0x00, 0x0a, 0x40, 0x20, 0x00, 0x00, 0x18, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0xf2, 0x01, 0x12, 0x28, 0xe0, 0x82, 0x00, 0x00, 0x00, 0x20, 0x08, 0x28, 0x00, 0x0f, 0x00, 0x88, 0xe9, 0x8f, 0x14, 0x14, 0x01, 0xc2, 0x01, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x58, 0x00, 0x00, 0x40, 0x00, 0x00, 0xa0, 0x48, 0x00, 0x82, 0x1c, 0x08, 0x00, 0x00, 0x00, 0x30, 0x21, 0x60, 0x00, 0x02, 0x00, 0x00, 0x00, 0x70, 0x03, 0xe0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x02, 0x10, 0x03, 0xc0, 0x00, 0x00, 0xc1, 0x04, 0x20, 0x36, 0x70, 0x44, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x5c, 0x10, 0x00, 0x00, 0x80, 0x06, 0x00, 0x00, 0x00, 0x80, 0xd0, 0x85, 0x00, 0x00, 0x20, 0x20, 0x10, 0x30, 0x03, 0x80, 0x10, 0xf8, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0xa4, 0x1a, 0x0e, 0x70, 0x1b, 0x95, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x28, 0x61, 0xe5, 0xa8, 0x00, 0x01, 0x10, 0x14, 0x00, 0x00, 0x0a, 0x10, 0x00, 0xa0, 0x06, 0x00, 0x09, 0x23, 0xa7, 0xde, 0x00, 0x00, 0x00, 0x1c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x90, 0x00, 0xa0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x14, 0x03, 0x80, 0x00, 0x42, 0xa4, 0x40, 0x0c, 0x38, 0x90, 0x00, 0xae, 0x04, 0x00, 0x00, 0x4c, 0x4c, 0x03, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x10, 0x08, 0x00, 0x00, 0x80, 0x08, 0x00, 0x82, 0x48, 0x09, 0x00, 0x00, 0x10, 0x14, 0x00, 0x00, 0x26, 0x00, 0x11, 0xe4, 0x5c, 0x10, 0x00, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x68, 0x00, 0x04, 0x01, 0x70, 0xe0, 0x00, 0x10, 0x08, 0x00, 0x43, 0x40, 0x08, 0x08, 0x00, 0x01, 0x80, 0x00, 0x07, 0x00, 0x70, 0x00, 0x00, 0x1c, 0x48, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x44, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x29, 0x29, 0x30, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x14, 0x00, 0x94, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x09, 0x20, 0x11, 0x38, 0x12, 0x18, 0x20, 0x00, 0x00, 0x64, 0x18, 0x50, 0x00, 0x00, 0x00, 0x00, 0x88, 0x90, 0x98, 0x0a, 0x81, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x90, 0x04, 0x00, 0x00, 0x46, 0x00, 0x02, 0x51, 0x89, 0x01, 0x02, 0x08, 0x04, 0x00, 0x21, 0x30, 0x01, 0x40, 0x80, 0x00, 0x09, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x08, 0x40, 0x04, 0x80, 0x06, 0x80, 0x00, 0x40, 0x10, 0x10, 0x0a, 0x00, 0x00, 0x0c, 0x31, 0x09, 0x15, 0x24, 0x60, 0x04, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc4, 0x08, 0x44, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x06, 0x80, 0x02, 0x01, 0x00, 0x10, 0x10, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x04, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x02, 0x00, 0x00, 0x42, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x28, 0x0c, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00, 0x18, 0x08, 0x08, 0x00, 0xe4, 0x48, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x02, 0x02, 0x01, 0x80, 0x00, 0x38, 0x00, 0x61, 0x0e, 0x29, 0x20, 0x40, 0x00, 0x40, 0xe0, 0x00, 0x02, 0x00, 0xc0, 0x03, 0x2c, 0x00, 0x00, 0xc4, 0x00, 0x00, 0x03, 0xa3, 0x00, 0x00, 0x08, 0xc0, 0x02, 0x04, 0x09, 0x80, 0x00, 0x10, 0x00, 0x0f, 0x00, 0x04, 0x00, 0x80, 0x1e, 0x4a, 0x27, 0xc0, 0x00, 0x00, 0x00, 0x24, 0x48, 0x00, 0x00, 0x00, 0x31, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x40, 0x00, 0x00, 0x00, 0x02, 0x23, 0x00, 0x30, 0x28, 0x00, 0x03, 0x00, 0x00, 0xe0, 0x16, 0x01, 0x00, 0xe3, 0x87, 0x01, 0x80, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x13, 0x01, 0x8d, 0x88, 0x11, 0x8c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x10, 0x08, 0x10, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x70, 0x07, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x10, 0x00, 0x50, 0x10, 0x00, 0x41, 0x00, 0x00, 0x08, 0x34, 0x79, 0x84, 0x03, 0x6a, 0x50, 0x0a, 0x14, 0x01, 0x78, 0x00, 0x40, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4e, 0x00, 0x04, 0x1a, 0x10, 0x00, 0xe1, 0xd0, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x8b, 0x28, 0x30, 0xc3, 0x8e, 0x00, 0x28, 0x83, 0xcb, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x80, 0x00, 0x00, 0xa1, 0x4f, 0x40, 0x71, 0x00, 0x00, 0x10, 0x3c, 0x07, 0x90, 0x42, 0x70, 0x00, 0x00, 0x1d, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x28, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x58, 0x00, 0x00, 0x00, 0x5a, 0x85, 0x50, 0xb0, 0x10, 0x94, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x40, 0x08, 0x0b, 0x00, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x20, 0x00, 0x08, 0x00, 0x82, 0x80, 0x00, 0x00, 0x80, 0x08, 0x20, 0x00, 0x28, 0x00, 0x08, 0x08, 0x00, 0x20, 0x28, 0x00, 0x04, 0x00, 0x00, 0x08, 0x08, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x08, 0x08, 0x08, 0x10, 0x02, 0x40, 0x04, 0x11, 0x80, 0x40, 0x02, 0x00, 0x00, 0x80, 0x00, 0x24, 0x82, 0x00, 0x09, 0x00, 0x08, 0x88, 0x84, 0x00, 0x00, 0x8c, 0x42, 0x08, 0x38, 0x00, 0x81, 0x1c, 0x20, 0x89, 0x40, 0x08, 0x81, 0x00, 0x04, 0x21, 0x04, 0x34, 0x20, 0x04, 0x08, 0x01, 0x04, 0x08, 0x82, 0x08, 0x00, 0x24, 0x00, 0x24, 0x08, 0x41, 0x08, 0x18, 0x00, 0x01, 0x82, 0x80, 0x21, 0x02, 0x90, 0x20, 0x48, 0x24, 0x30, 0x14, 0x00, 0x00, 0x8a, 0x80, 0x80, 0x2c, 0x20, 0x24, 0x84, 0x01, 0x80, 0x84, 0x04, 0x34, 0x84, 0x21, 0x11, 0x84, 0x20, 0x18, 0x42, 0x80, 0x4c, 0x08, 0x28, 0x20, 0x28, 0x08, 0x01, 0x10, 0x82, 0x0c, 0x21, 0x02, 0x24, 0x28, 0x28, 0x40, 0x49, 0x0c, 0x8c, 0x08, 0x41, 0x00, 0x40, 0x00, 0x34, 0x22, 0x04, 0x3c, 0x01, 0x08, 0x00, 0x20, 0x90, 0x0a, 0x88, 0x3a, 0x20, 0x20, 0x2a, 0x0c, 0x3c, 0x21, 0x04, 0x00, 0x24, 0x32, 0x80, 0x80, 0x80, 0x98, 0x10, 0x90, 0x04, 0x08, 0x10, 0x30, 0x50, 0x28, 0x44, 0x21, 0x40, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x80, 0x01, 0x00, 0x20, 0x00, 0x30, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x04, 0x42, 0x00, 0x08, 0x00, 0x0a, 0x09, 0x00, 0x04, 0x04, 0x04, 0x00, 0x04, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x7c, 0x10, 0x04, 0x04, 0x00, 0x00, 0x50, 0x14, 0x70, 0x0c, 0x04, 0x00, 0x00, 0x1c, 0x00, 0x04, 0x70, 0x0c, 0x09, 0x0d, 0x09, 0x19, 0x08, 0x10, 0x0d, 0x00, 0x74, 0x0d, 0xb0, 0x9c, 0x5e, 0x10, 0x00, 0x00, 0x0e, 0x99, 0x4c, 0x10, 0x08, 0x3c, 0x50, 0x00, 0x1a, 0x00, 0x00, 0xa0, 0x18, 0x1d, 0x90, 0x10, 0x3e, 0x20, 0x00, 0xb0, 0x08, 0x00, 0x00, 0x08, 0xba, 0x00, 0x00, 0x40, 0x70, 0x00, 0x5e, 0x12, 0x56, 0x00, 0x3d, 0x00, 0x1c, 0x3c, 0x00, 0x68, 0x98, 0xb4, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x30, 0x00, 0xac, 0xb0, 0xb0, 0x00, 0x3c, 0x0c, 0x3c, 0x6c, 0x08, 0x9c, 0x04, 0x7d, 0x48, 0x02, 0x7c, 0x30, 0x95, 0x7d, 0x10, 0x00, 0x00, 0x00, 0x0a, 0x3a, 0xb8, 0x18, 0x28, 0x9c, 0x30, 0x54, 0x0c, 0x28, 0x08, 0x0e, 0x00, 0x10, 0x0a, 0xae, 0x09, 0x70, 0x10, 0x3d, 0x38, 0x00, 0x94, 0x3e, 0x10, 0x2a, 0x04, 0x40, 0x00, 0x4a, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x0c, 0x10, 0x00, 0x30, 0x00, 0x00, 0x50, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x09, 0x10, 0x00, 0x10, 0x00, 0x00, 0x50, 0x18, 0x10, 0x50, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x50, 0x00, 0x10, 0x10, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x50, 0x08, 0x10, 0x08, 0x08, 0x3a, 0x10, 0x5c, 0x50, 0x50, 0x32, 0x40, 0x30, 0x19, 0x70, 0x5c, 0xf0, 0x50, 0x10, 0x18, 0x5a, 0x00, 0xb0, 0x18, 0x70, 0x30, 0x70, 0x14, 0x50, 0x30, 0x38, 0x10, 0x50, 0x3c, 0x50, 0x80, 0xb4, 0x09, 0x00, 0x30, 0x48, 0x00, 0x08, 0x70, 0x50, 0x1c, 0x80, 0x00, 0x18, 0x00, 0x14, 0x00, 0x9c, 0x00, 0x00, 0x00, 0x5c, 0xb0, 0x30, 0x3c, 0x09, 0x33, 0x90, 0x12, 0x94, 0x10, 0x58, 0x00, 0x00, 0x1c, 0x3a, 0x10, 0x10, 0x20, 0x28, 0x3c, 0x08, 0x30, 0x18, 0x08, 0x00, 0x10, 0x00, 0x08, 0x18, 0xb1, 0x50, 0x30, 0x11, 0x30, 0x00, 0x30, 0x20, 0x22, 0x00, 0x54, 0x00, 0x18, 0x50, 0x3c, 0x0c, 0x14, 0xb0, 0x30, 0xbf, 0x18, 0x04, 0x38, 0xe0, 0x2c, 0x01, 0x10, 0x01, 0x38, 0x1c, 0x0c, 0x2c, 0x04, 0x50, 0x00, 0x30, 0x30, 0x08, 0xb0, 0x3c, 0x11, 0xb0, 0x2c, 0x74, 0x2c, 0x11, 0x0c, 0x00, 0x9c, 0x38, 0x3e, 0x10, 0x3a, 0x10, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x0c, 0x10, 0x30, 0x30, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x10, 0x0c, 0x00, 0x30, 0x00, 0x0c, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x0c, 0x02, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x0a, 0x08, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x02, 0x00, 0x08, 0x0c, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x42, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x70, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0d, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x80, 0x0c, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x09, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x80, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0xc2, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x81, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x47, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x90, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdf, 0xd0, 0xf5, 0xcc, 0xee, 0x2e, 0xbf, 0x8c, 0xee, 0x4e, 0xe4, 0xee, 0xdf, 0x8a, 0xbf, 0x8c, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xca, 0xfa, 0xbf, 0xb0, 0xca, 0xfa, 0xfa, 0x3a, 0xdf, 0x8a, 0xdf, 0x8a, 0xee, 0x4e, 0xe2, 0xee, 0xb8, 0xfc, 0xfa, 0x72, 0xef, 0xff, 0xe2, 0xee, 0xf7, 0xc4, 0xff, 0xff, 0xb8, 0xfc, 0xf7, 0xc4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xca, 0xff, 0xfb, 0x3b, 0xff, 0xff, 0x80, 0x00, 0xbf, 0x8f, 0xef, 0x2f, 0x80, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0xff, 0xfb, 0xff, 0xff, 0xfb, 0x73, 0xbb, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x22, 0x00, 0xbb, 0xbb, 0x5b, 0xe5, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xaa, 0xea, 0xaa, 0xcc, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xfa, 0xc8, 0xa0, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xc8, 0xff, 0x80, 0xc0, 0x00, 0xff, 0xfc, 0xee, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xaa, 0xfc, 0x0c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x3b, 0xfc, 0xa8, 0xee, 0xe0, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0xb3, 0xff, 0xef, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0xf2, 0x01, 0x36, 0x9d, 0xf3, 0x21, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x9d, 0xf2, 0x01, 0x36, 0x8d, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x12, 0x04, 0x78, 0x04, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x24, 0x70, 0x00, 0x13, 0x20, 0x30, 0x04, 0x0d, 0x22, 0x31, 0x00, 0x12, 0x20, 0x30, 0x04, 0x00, 0x24, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x00, 0x00, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x00, 0x00, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x26, 0x71, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x12, 0x04, 0x78, 0x04, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x01, 0x06, 0x15, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x73, 0x29, 0x06, 0x1d, 0x73, 0x21, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x29, 0x06, 0x1d, 0x73, 0x29, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x1d, 0x73, 0x25, 0x46, 0x1d, 0x73, 0x29, 0x06, 0x8d, 0x01, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x8d, 0x01, 0x24, 0x40, 0x00, 0x13, 0x20, 0x00, 0x04, 0x01, 0x24, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x13, 0x20, 0x00, 0x04, 0x13, 0x20, 0x00, 0x04, 0x01, 0x20, 0x00, 0x00, 0x12, 0x04, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x04, 0x48, 0x04, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x33, 0x33, 0x55, 0x55, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x0f, 0x0f, 0x55, 0x55, 0x0f, 0x0f, 0x55, 0x55, 0x00, 0xff, 0x55, 0x55, 0x55, 0x55, 0x33, 0x33, 0x00, 0xff, 0x33, 0x33, 0x00, 0xff, 0x33, 0x33, 0x33, 0x33, 0x0f, 0x0f, 0x00, 0xff, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x00, 0xff, 0x55, 0x55, 0x0f, 0x0f, 0x0f, 0x0f, 0x33, 0x33, 0x33, 0x33, 0xaa, 0xaa, 0xa0, 0x00, 0xff, 0xf7, 0xff, 0xbf, 0xff, 0xdf, 0x7b, 0xde, 0x7d, 0xbe, 0x7d, 0xbe, 0x7d, 0xbe, 0x6f, 0xf6, 0x7d, 0xbe, 0x7b, 0xde, 0x7d, 0xbe, 0x7b, 0xde, 0x6f, 0xf6, 0x7b, 0xde, 0x6f, 0xf6, 0x7d, 0xbe, 0x7b, 0xde, 0x6f, 0xf6, 0x6f, 0xf6, 0x80, 0x00, 0x80, 0x00, 0xfb, 0x3b, 0xfb, 0x3b, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0xff, 0xdf, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x72, 0x77, 0xa8, 0x88, 0xcf, 0xcf, 0xff, 0xff, 0xfd, 0xff, 0xe2, 0xe2, 0xff, 0xfd, 0xff, 0xef, 0xf0, 0xc0, 0xff, 0xaf, 0xcc, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xc8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdd, 0xfd, 0xec, 0xfa, 0xff, 0xfa, 0xee, 0xf8, 0xf0, 0xc0, 0x80, 0xd8, 0xd8, 0xfc, 0x30, 0xfa, 0x50, 0xac, 0xff, 0xff, 0xff, 0xbf, 0xb3, 0xfc, 0x0c, 0xe2, 0xe2, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xfd, 0xff, 0xef, 0xfc, 0xa8, 0xe0, 0xe0, 0xff, 0xff, 0xaf, 0xa0, 0xfb, 0xfb, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x44, 0x44, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x2a, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x01, 0xa6, 0x00, 0x00, 0x40, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x20, 0x04, 0x12, 0x00, 0x51, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x04, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x0d, 0x08, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x02, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0a, 0x00, 0x00, 0x10, 0x00, 0x40, 0x20, 0x04, 0x1a, 0x34, 0x60, 0x08, 0x08, 0x48, 0x20, 0x04, 0x02, 0x31, 0x83, 0x0b, 0x90, 0x48, 0x20, 0x04, 0x12, 0x13, 0x32, 0x02, 0x90, 0x48, 0x20, 0x04, 0x1a, 0x15, 0x20, 0x9d, 0x9c, 0x48, 0x20, 0x04, 0x12, 0x11, 0x26, 0x4a, 0x00, 0x48, 0x20, 0x00, 0x00, 0x20, 0x80, 0x0f, 0x10, 0x48, 0x20, 0x04, 0x1a, 0x24, 0xc0, 0x0c, 0x0c, 0x48, 0x20, 0x00, 0x02, 0x02, 0x81, 0x41, 0x10, 0x40, 0x00, 0x04, 0x1a, 0x00, 0x00, 0x09, 0xc8, 0x40, 0x20, 0x04, 0x02, 0x0d, 0x08, 0xe0, 0x08, 0x48, 0x20, 0x04, 0x02, 0x00, 0x00, 0xe7, 0x18, 0x40, 0x20, 0x04, 0x12, 0x30, 0x73, 0x0f, 0x80, 0x48, 0x20, 0x04, 0x12, 0x35, 0xeb, 0x50, 0x80, 0x40, 0x00, 0x04, 0x1a, 0x00, 0x00, 0x0e, 0x00, 0x08, 0x20, 0x04, 0x0a, 0x00, 0x00, 0x0c, 0x00, 0x48, 0x20, 0x04, 0x02, 0x15, 0x0a, 0x4e, 0x08, 0x48, 0x20, 0x00, 0x02, 0x11, 0x02, 0x08, 0x24, 0x48, 0x20, 0x04, 0x12, 0x20, 0xc5, 0x41, 0x00, 0x48, 0x20, 0x04, 0x10, 0x24, 0xc0, 0x40, 0x00, 0x48, 0x20, 0x00, 0x00, 0x22, 0x80, 0x51, 0x90, 0x40, 0x00, 0x04, 0x10, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x83, 0x04, 0x84, 0x20, 0x00, 0x20, 0x10, 0x88, 0x81, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0x04, 0x10, 0x00, 0x00, 0x20, 0x34, 0x90, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x00, 0xa0, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x01, 0x04, 0x00, 0x00, 0x04, 0x08, 0x00, 0x41, 0x83, 0x04, 0x14, 0x00, 0x00, 0x01, 0x00, 0x21, 0x8b, 0x14, 0x04, 0x00, 0x04, 0x28, 0x14, 0x48, 0x93, 0x24, 0x04, 0x00, 0x00, 0x20, 0x01, 0x10, 0x8f, 0x04, 0x04, 0x00, 0x00, 0x00, 0x02, 0x21, 0x83, 0x14, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x8b, 0x04, 0x84, 0x00, 0x00, 0x00, 0x02, 0x21, 0x92, 0x14, 0x04, 0x20, 0x00, 0x21, 0x00, 0x10, 0x89, 0x04, 0x04, 0x00, 0x00, 0x00, 0x04, 0x01, 0x82, 0x14, 0x14, 0x00, 0x00, 0x28, 0x00, 0x80, 0x8b, 0x14, 0x04, 0x00, 0x00, 0x28, 0x01, 0x50, 0xc1, 0x14, 0x14, 0x00, 0x00, 0x20, 0x01, 0x10, 0x8b, 0x54, 0x04, 0x00, 0x00, 0x20, 0x02, 0x20, 0x00, 0x44, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x04, 0x00, 0x00, 0x04, 0x08, 0x00, 0x41, 0x83, 0x14, 0x04, 0x00, 0x04, 0x28, 0x02, 0x40, 0x8a, 0x14, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x8b, 0x08, 0x04, 0x00, 0x00, 0x00, 0x02, 0x20, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x81, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x04, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe2, 0x00, 0xc0, 0xf3, 0xc0, 0xc0, 0x00, 0x00, 0xe2, 0x44, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0x00, 0x03, 0x81, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x20, 0x00, 0xc0, 0x02, 0xe2, 0x03, 0x20, 0x08, 0xcb, 0xe0, 0x00, 0x03, 0xe2, 0x03, 0x00, 0x44, 0x07, 0x00, 0x23, 0x03, 0x07, 0xc2, 0xcf, 0x00, 0xc0, 0xc7, 0x03, 0x13, 0xc3, 0xc7, 0x93, 0x00, 0x03, 0x83, 0x00, 0xc0, 0x99, 0xe1, 0x8d, 0x88, 0x8d, 0x00, 0x00, 0xe0, 0xd3, 0x00, 0x03, 0xc0, 0x00, 0x00, 0xc8, 0xc3, 0x03, 0xcb, 0x05, 0x03, 0xc7, 0xc9, 0xcf, 0xc0, 0xe2, 0xd7, 0xc3, 0xe2, 0x43, 0xf3, 0x23, 0xd7, 0xc3, 0xcb, 0x00, 0x0b, 0xe3, 0xc0, 0xc3, 0xc2, 0xe3, 0xc3, 0xea, 0xc3, 0xe3, 0xf3, 0xd0, 0xd3, 0x1b, 0x02, 0x00, 0x00, 0x03, 0x00, 0xc8, 0xc9, 0xc1, 0xa3, 0xc0, 0x03, 0x05, 0x80, 0x00, 0x00, 0x00, 0x02, 0x13, 0x04, 0x45, 0x07, 0x23, 0x00, 0x00, 0xe3, 0xe3, 0xc0, 0x03, 0x07, 0xc0, 0x20, 0x03, 0x0b, 0xc3, 0xe3, 0x13, 0xc0, 0x05, 0xc3, 0xc8, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xcb, 0x00, 0x00, 0x00, 0xc0, 0x83, 0x00, 0x00, 0x10, 0x13, 0x03, 0x07, 0xd3, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x00, 0x00, 0x00, 0xc0, 0xa0, 0x80, 0xe0, 0x80, 0x00, 0x05, 0xa0, 0x00, 0xc0, 0xc7, 0x03, 0x00, 0xc8, 0xc0, 0xc0, 0x00, 0x03, 0xc8, 0x00, 0xc8, 0xe3, 0xc0, 0x00, 0x03, 0xc6, 0xe0, 0xd0, 0xc9, 0x80, 0xd3, 0x03, 0x00, 0xc3, 0x04, 0xc4, 0x00, 0xc0, 0xcb, 0x04, 0x00, 0x00, 0x00, 0xc8, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xc4, 0xc0, 0xc0, 0xc0, 0x00, 0xe3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x10, 0x00, 0x10, 0x80, 0x00, 0x01, 0x04, 0x00, 0x00, 0x10, 0x10, 0x10, 0x40, 0x00, 0x03, 0x18, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x05, 0x04, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x09, 0x04, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x14, 0x00, 0x40, 0x90, 0x40, 0x80, 0x01, 0x0c, 0x40, 0x02, 0x00, 0x01, 0x84, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x00, 0x01, 0x80, 0xc0, 0x10, 0x00, 0x30, 0x01, 0x20, 0x00, 0x40, 0x04, 0x20, 0x00, 0x88, 0x10, 0x00, 0x0a, 0x04, 0x21, 0x00, 0x00, 0x00, 0x05, 0x08, 0x00, 0x04, 0x02, 0x09, 0x11, 0x14, 0x04, 0xa0, 0x00, 0x14, 0x02, 0x00, 0x02, 0x80, 0x00, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x20, 0x05, 0x40, 0x10, 0x40, 0x00, 0x80, 0x00, 0x20, 0x00, 0x04, 0x00, 0x04, 0x40, 0x04, 0x00, 0x40, 0x20, 0x08, 0x10, 0x14, 0xa0, 0x02, 0x02, 0x00, 0x0a, 0x40, 0x41, 0x20, 0x02, 0x41, 0x00, 0x30, 0x00, 0x00, 0x40, 0x80, 0x08, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x84, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x40, 0x00, 0x10, 0x04, 0x00, 0x80, 0x08, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x02, 0x00, 0x00, 0x02, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x04, 0x00, 0x80, 0x04, 0x04, 0x10, 0x01, 0x80, 0x02, 0x02, 0x00, 0x14, 0x20, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xe0, 0x01, 0x1e, 0x30, 0x03, 0x90, 0x80, 0x02, 0x12, 0x81, 0x00, 0x03, 0x01, 0x80, 0x01, 0x00, 0x31, 0x81, 0x9c, 0x32, 0x03, 0x80, 0x00, 0x60, 0x40, 0x04, 0x50, 0x00, 0x00, 0xa2, 0x02, 0x00, 0xc0, 0x08, 0x00, 0x00, 0x03, 0x90, 0x1c, 0x02, 0x10, 0x21, 0x10, 0x00, 0x00, 0x97, 0x20, 0x02, 0x00, 0x08, 0x00, 0x00, 0x03, 0x80, 0x00, 0x64, 0x16, 0xa8, 0x16, 0x34, 0x20, 0x02, 0x0c, 0x34, 0x0a, 0x00, 0x00, 0x04, 0xe0, 0x03, 0x80, 0x14, 0x01, 0x28, 0x12, 0x11, 0x60, 0x25, 0x07, 0xb0, 0x04, 0x00, 0x10, 0xb0, 0x20, 0x00, 0x00, 0x04, 0x0a, 0x9a, 0x80, 0x2a, 0x64, 0x04, 0x16, 0x12, 0xa2, 0x89, 0x92, 0x68, 0x90, 0x83, 0x0c, 0x00, 0xa0, 0x00, 0x01, 0x32, 0x00, 0xa0, 0x01, 0x38, 0x00, 0x01, 0x01, 0x34, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x3c, 0x34, 0x00, 0x00, 0x00, 0x42, 0xc0, 0x0f, 0x90, 0xa8, 0x91, 0xd0, 0x08, 0x78, 0xa1, 0x1e, 0x01, 0x40, 0x74, 0x02, 0x9d, 0x40, 0x01, 0xc0, 0x09, 0x34, 0x20, 0x00, 0x00, 0x01, 0x50, 0x00, 0x08, 0x12, 0x02, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x10, 0x00, 0x1a, 0x00, 0x70, 0x0a, 0x80, 0x08, 0x28, 0xa0, 0x0f, 0x11, 0x00, 0x04, 0x0f, 0x00, 0x34, 0x14, 0x0c, 0x06, 0x04, 0x01, 0x80, 0x3c, 0x90, 0x00, 0x03, 0x80, 0x40, 0x00, 0x0a, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x12, 0x3a, 0x60, 0x8f, 0x00, 0x00, 0x08, 0x21, 0x14, 0x8c, 0x90, 0x0f, 0x1f, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0xe0, 0x00, 0x80, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00, 0x10, 0x80, 0x10, 0x03, 0x00, 0x12, 0x00, 0xd0, 0x00, 0x12, 0x28, 0x04, 0x80, 0x18, 0x02, 0xa8, 0x03, 0x1d, 0x28, 0x00, 0xd0, 0x18, 0x09, 0x10, 0x06, 0x40, 0x00, 0x03, 0x80, 0x0e, 0x00, 0x00, 0x07, 0x01, 0x80, 0x03, 0x80, 0x06, 0x01, 0x00, 0x0c, 0x00, 0x00, 0xe0, 0x00, 0x16, 0x90, 0x01, 0x10, 0x08, 0x2a, 0x01, 0xaa, 0x8c, 0xc0, 0x09, 0xc0, 0x40, 0x08, 0xc3, 0x84, 0x8e, 0x10, 0x02, 0xc1, 0x0c, 0x68, 0x93, 0x88, 0x1c, 0xc0, 0x00, 0x00, 0x50, 0xb0, 0x10, 0x12, 0x0e, 0x10, 0x01, 0x11, 0x0c, 0x28, 0x90, 0x05, 0x46, 0x00, 0xc8, 0x03, 0x1c, 0x00, 0x60, 0xb3, 0x4c, 0x02, 0x00, 0x00, 0x08, 0x88, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x0c, 0x14, 0x96, 0x00, 0x12, 0x00, 0x08, 0x00, 0x1c, 0x14, 0x80, 0x00, 0x00, 0x0c, 0x08, 0x07, 0x02, 0x40, 0xc1, 0xcf, 0x03, 0x02, 0x22, 0x00, 0x1c, 0x00, 0xe0, 0x84, 0x82, 0x04, 0x00, 0x00, 0x12, 0x29, 0x20, 0x00, 0x02, 0x00, 0xe0, 0x00, 0x5d, 0x50, 0x03, 0x20, 0x00, 0x00, 0x04, 0x43, 0x1c, 0x54, 0x01, 0x80, 0x01, 0x78, 0x00, 0xc7, 0x08, 0xa8, 0xe2, 0x6f, 0x0c, 0x44, 0x01, 0x10, 0x28, 0x00, 0x00, 0x00, 0x40, 0x70, 0x08, 0x00, 0x40, 0xb0, 0x10, 0x04, 0xa6, 0x00, 0x00, 0x08, 0x34, 0x0c, 0x80, 0x00, 0x28, 0x00, 0x00, 0x00, 0x1d, 0x40, 0x00, 0x00, 0x00, 0x05, 0x12, 0x08, 0x00, 0x49, 0x86, 0x07, 0x28, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x04, 0x04, 0x50, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 0x09, 0x10, 0x05, 0x00, 0x20, 0x04, 0x40, 0x80, 0x30, 0xb0, 0x02, 0x00, 0x18, 0x02, 0x40, 0x43, 0x80, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x24, 0x20, 0x0a, 0x00, 0xb0, 0x08, 0x00, 0x00, 0x00, 0x82, 0x01, 0x04, 0xc1, 0x04, 0x40, 0x00, 0x91, 0x31, 0x0c, 0x00, 0x22, 0x04, 0x00, 0x03, 0x10, 0x61, 0x00, 0x00, 0x62, 0x01, 0x00, 0x81, 0x00, 0x40, 0x34, 0x20, 0x10, 0x92, 0x30, 0x32, 0x10, 0xc0, 0x80, 0x09, 0x00, 0x80, 0x02, 0x80, 0x2a, 0x25, 0x00, 0x10, 0x10, 0x34, 0x00, 0x00, 0x15, 0x12, 0x00, 0x26, 0x2a, 0x0e, 0x00, 0xa4, 0x14, 0x45, 0xa9, 0x02, 0x42, 0x00, 0x30, 0x02, 0x04, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x88, 0x00, 0x10, 0x01, 0x40, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x10, 0x20, 0x10, 0x00, 0x02, 0x04, 0x80, 0x20, 0x24, 0x44, 0x46, 0x00, 0x00, 0x02, 0x00, 0x00, 0x01, 0x0c, 0x40, 0x00, 0x02, 0x00, 0x00, 0x20, 0x10, 0x00, 0x02, 0x00, 0x01, 0x00, 0x42, 0x80, 0x88, 0x20, 0x00, 0x28, 0x00, 0x08, 0x33, 0x08, 0x4a, 0x45, 0x22, 0x00, 0x01, 0x80, 0x20, 0x04, 0x00, 0x00, 0x40, 0x02, 0xc0, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x05, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x41, 0x58, 0x40, 0x08, 0x00, 0x01, 0x30, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x01, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01, 0xe0, 0x00, 0x40, 0x04, 0x05, 0xc0, 0x0e, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x01, 0xe0, 0x00, 0x70, 0xf1, 0x89, 0x0d, 0x30, 0x23, 0x80, 0x02, 0x62, 0x00, 0x01, 0x00, 0x00, 0x02, 0x00, 0x2f, 0x00, 0xc0, 0x06, 0x1c, 0x00, 0x11, 0x80, 0x0c, 0x01, 0x30, 0x0f, 0x35, 0x30, 0x03, 0x23, 0x0e, 0x00, 0x00, 0x0f, 0x08, 0x00, 0x0b, 0x00, 0x10, 0x10, 0x08, 0xc0, 0x30, 0x38, 0x74, 0x0b, 0x92, 0x10, 0x00, 0xf0, 0x0e, 0x00, 0xc1, 0x80, 0x8c, 0x00, 0x02, 0x44, 0x42, 0x71, 0x00, 0xaf, 0x0d, 0x80, 0x00, 0x40, 0x4d, 0x08, 0xc0, 0x03, 0x0e, 0x70, 0x01, 0xf4, 0x14, 0x0c, 0x00, 0x04, 0x06, 0x80, 0x04, 0x51, 0x40, 0x28, 0x0b, 0x83, 0x0d, 0x00, 0x10, 0x00, 0x00, 0x40, 0x02, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x2a, 0x04, 0xc0, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0a, 0xb4, 0x01, 0x80, 0x00, 0x30, 0x00, 0x18, 0x14, 0x01, 0x03, 0x80, 0x30, 0xf0, 0x00, 0x68, 0x0c, 0xb2, 0xe3, 0x85, 0x12, 0x00, 0x00, 0x08, 0x11, 0x00, 0x10, 0x00, 0x0c, 0x00, 0x19, 0x00, 0x01, 0x34, 0x04, 0x90, 0x08, 0x00, 0x01, 0x00, 0x32, 0x34, 0x03, 0x04, 0x00, 0x10, 0x15, 0xc8, 0x35, 0x72, 0xc0, 0xa0, 0x5c, 0x40, 0x01, 0xc1, 0x4d, 0x68, 0xe2, 0x03, 0x0e, 0x14, 0x03, 0xe0, 0x30, 0x30, 0x11, 0x90, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x31, 0x04, 0x00, 0x00, 0x00, 0x43, 0xc0, 0x36, 0x48, 0xb0, 0x60, 0x85, 0x1c, 0x00, 0x02, 0x61, 0x91, 0x34, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x20, 0x00, 0x08, 0x3c, 0x00, 0x0b, 0x2c, 0x02, 0x30, 0x29, 0x00, 0x00, 0x18, 0x0b, 0x10, 0x00, 0x04, 0x08, 0x80, 0x31, 0x00, 0x10, 0x0f, 0x04, 0x43, 0xae, 0x16, 0x00, 0x03, 0xe0, 0x00, 0x02, 0xd0, 0x27, 0x00, 0x30, 0x70, 0x4b, 0x8c, 0x00, 0x20, 0x28, 0x00, 0x00, 0x03, 0xc0, 0x4c, 0x02, 0x42, 0x6e, 0x2c, 0x28, 0x01, 0xcb, 0x06, 0x00, 0x06, 0x6e, 0x00, 0x0a, 0x74, 0x07, 0x06, 0x44, 0x02, 0x80, 0x5c, 0x14, 0xf0, 0x13, 0x01, 0x10, 0xa1, 0xa8, 0x15, 0x30, 0x10, 0x03, 0x03, 0x40, 0x05, 0x04, 0x0c, 0x01, 0xa0, 0x08, 0xa0, 0x70, 0x02, 0x25, 0x0c, 0x68, 0xa0, 0x04, 0x0c, 0x61, 0x02, 0x08, 0x11, 0x00, 0x00, 0x87, 0x6c, 0x00, 0x40, 0x10, 0x1d, 0x2a, 0x01, 0xe0, 0x01, 0x80, 0x10, 0x0e, 0x88, 0x00, 0x04, 0x00, 0x01, 0x10, 0xa0, 0x00, 0x11, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x08, 0x6c, 0x88, 0xe0, 0x10, 0x06, 0x40, 0x01, 0x4a, 0x00, 0x10, 0x54, 0x6f, 0x68, 0x08, 0x01, 0xc8, 0x00, 0x14, 0x10, 0x00, 0x01, 0x00, 0xc8, 0x18, 0x01, 0x00, 0x00, 0x05, 0x00, 0x00, 0x25, 0x20, 0x14, 0x00, 0x00, 0x14, 0x1c, 0x04, 0x40, 0x08, 0x00, 0x10, 0x50, 0x4a, 0x08, 0x68, 0x34, 0x0a, 0x50, 0x32, 0x04, 0x20, 0x83, 0x00, 0x22, 0x98, 0x00, 0x16, 0x60, 0x14, 0x01, 0x40, 0x00, 0x0a, 0x1c, 0x00, 0x04, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x21, 0x86, 0xa0, 0x2b, 0xd0, 0x60, 0x89, 0x00, 0x03, 0x8e, 0x00, 0x04, 0x28, 0x03, 0x4d, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x01, 0x02, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x40, 0x02, 0x04, 0x04, 0x48, 0x00, 0x02, 0x02, 0x10, 0x04, 0x02, 0x00, 0x04, 0x00, 0x00, 0x02, 0x40, 0x44, 0x40, 0x00, 0x40, 0x00, 0x28, 0x00, 0x08, 0x02, 0x40, 0x00, 0x48, 0x08, 0x08, 0x00, 0x0a, 0x44, 0x00, 0x90, 0x88, 0x20, 0x20, 0x00, 0x80, 0x22, 0x04, 0x2a, 0x09, 0x20, 0x40, 0x20, 0x29, 0x80, 0x08, 0x04, 0x28, 0x04, 0x20, 0x00, 0x28, 0x08, 0x04, 0x84, 0x04, 0x00, 0x04, 0x00, 0x2c, 0x04, 0x00, 0x3c, 0x08, 0x0c, 0x30, 0x40, 0x10, 0x04, 0x04, 0x04, 0x48, 0x22, 0x42, 0x14, 0x00, 0x08, 0x20, 0x02, 0x0a, 0x08, 0x04, 0x4c, 0x84, 0x18, 0x80, 0x51, 0x01, 0x0a, 0x2c, 0x00, 0x98, 0x08, 0x20, 0x08, 0x48, 0x48, 0x28, 0x00, 0x08, 0x08, 0x20, 0x80, 0x0c, 0x0a, 0x08, 0x22, 0x1a, 0x02, 0x08, 0x08, 0x18, 0x00, 0x08, 0x08, 0x88, 0x4a, 0x2c, 0x80, 0x08, 0x02, 0x08, 0x00, 0x02, 0x80, 0x20, 0x2a, 0x00, 0x80, 0x09, 0x08, 0x20, 0x01, 0x24, 0x81, 0x12, 0x80, 0x0a, 0x41, 0x0a, 0x49, 0x2c, 0x80, 0x02, 0x81, 0x3a, 0x04, 0x02, 0x2a, 0x48, 0x00, 0x82, 0x40, 0x02, 0x20, 0x88, 0x24, 0x08, 0x20, 0x04, 0x40, 0x1c, 0x0c, 0x0c, 0x04, 0x2a, 0x04, 0x48, 0x01, 0x31, 0x00, 0x50, 0x00, 0x80, 0x28, 0x82, 0x2c, 0x20, 0x10, 0x89, 0x01, 0x20, 0x8a, 0x42, 0x00, 0x00, 0x0a, 0x80, 0x20, 0x82, 0x22, 0x88, 0x38, 0x00, 0x42, 0x19, 0x00, 0x0a, 0x50, 0x52, 0x00, 0x00, 0x00, 0x82, 0x14, 0x24, 0x00, 0x0a, 0x01, 0x02, 0x01, 0x02, 0x01, 0x80, 0x00, 0x00, 0x40, 0x0c, 0x08, 0x80, 0x00, 0x40, 0x40, 0x48, 0x88, 0x08, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x08, 0x08, 0x88, 0x00, 0x80, 0x10, 0x20, 0x08, 0x08, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x0a, 0x04, 0x00, 0x0c, 0x0a, 0x0c, 0x00, 0x10, 0x20, 0x08, 0x00, 0x0a, 0x0e, 0x00, 0x00, 0x06, 0x00, 0x50, 0x00, 0x00, 0x92, 0x00, 0x0a, 0x00, 0x0e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x08, 0x0c, 0x20, 0x00, 0x30, 0x05, 0x00, 0x0e, 0x0c, 0x15, 0x00, 0x20, 0x0e, 0x08, 0x00, 0x0d, 0x0c, 0xbc, 0x00, 0xac, 0x00, 0x24, 0x00, 0x20, 0x00, 0x18, 0x0c, 0x0e, 0x0c, 0x04, 0x00, 0x9c, 0x04, 0x0c, 0x3c, 0xa0, 0x14, 0x04, 0x19, 0x90, 0xa4, 0x58, 0x08, 0xbe, 0x20, 0x9a, 0x30, 0x98, 0x0c, 0x7d, 0x08, 0xac, 0x00, 0x3c, 0x08, 0x1d, 0x0c, 0x9e, 0x08, 0xbe, 0x09, 0x00, 0x3e, 0x08, 0x0a, 0x9d, 0x0c, 0x00, 0x70, 0x0e, 0x09, 0x5d, 0x02, 0x16, 0xa8, 0x00, 0x00, 0x04, 0x30, 0x4e, 0x9a, 0x09, 0x1c, 0x90, 0x0e, 0x00, 0x5c, 0x6e, 0x09, 0x90, 0x0a, 0x00, 0x08, 0x00, 0x1c, 0x50, 0xb0, 0x09, 0x0c, 0x44, 0x00, 0x00, 0x0c, 0x3a, 0x90, 0x0a, 0x02, 0x40, 0x3a, 0x0a, 0xb9, 0xbc, 0x49, 0xbc, 0x00, 0x00, 0x08, 0x0d, 0x30, 0x9c, 0xa8, 0x7d, 0x00, 0x08, 0x08, 0x40, 0x1a, 0x08, 0x08, 0x10, 0x0d, 0x02, 0x38, 0x00, 0x60, 0x10, 0x1d, 0x0a, 0x09, 0x98, 0x10, 0x10, 0x30, 0xb2, 0x74, 0x90, 0x10, 0xb0, 0x4e, 0x90, 0x06, 0x02, 0x00, 0x00, 0x08, 0x08, 0x0d, 0x02, 0x00, 0x00, 0x04, 0x08, 0x3c, 0x02, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x0c, 0x00, 0x00, 0x25, 0x00, 0x04, 0x00, 0x00, 0x0d, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x08, 0x08, 0x0d, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x8c, 0x08, 0x0c, 0x00, 0x00, 0x10, 0x00, 0x80, 0x02, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x04, 0x00, 0x02, 0x04, 0x04, 0x00, 0x00, 0x00, 0x70, 0x00, 0x20, 0x00, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x22, 0x02, 0x10, 0x00, 0x70, 0x00, 0x48, 0x00, 0xc0, 0x02, 0x00, 0x30, 0x30, 0x00, 0x11, 0x14, 0x00, 0x14, 0x08, 0x10, 0x30, 0x10, 0x1c, 0x30, 0x00, 0x80, 0x90, 0x00, 0x10, 0x00, 0x32, 0x00, 0x0c, 0x14, 0x00, 0x00, 0x04, 0x72, 0x30, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x40, 0x00, 0x10, 0xbc, 0x1c, 0x04, 0x02, 0x00, 0x02, 0x0c, 0x0c, 0x00, 0x00, 0x34, 0x20, 0x00, 0x10, 0x34, 0x5c, 0xdc, 0x34, 0x00, 0x30, 0x00, 0x00, 0x00, 0x10, 0x30, 0xa0, 0x03, 0x80, 0x00, 0xb0, 0x30, 0x70, 0x0c, 0x00, 0x20, 0x08, 0x04, 0xd0, 0x5a, 0x40, 0x00, 0x70, 0x00, 0x10, 0x80, 0x30, 0x90, 0x00, 0x0c, 0x4a, 0x0e, 0x08, 0x10, 0xb0, 0x18, 0x50, 0x10, 0x74, 0x00, 0x10, 0x0c, 0x0c, 0x1c, 0x0c, 0xb0, 0x08, 0x10, 0x0c, 0x34, 0xb8, 0x30, 0x08, 0x18, 0x14, 0x04, 0x7c, 0x10, 0x30, 0x7a, 0x30, 0x30, 0x0c, 0x30, 0x3a, 0x30, 0x80, 0x10, 0x0c, 0x2a, 0x0c, 0x04, 0x74, 0x08, 0x1c, 0x88, 0x10, 0x08, 0x3c, 0x0a, 0x32, 0x00, 0x10, 0x20, 0x2c, 0x04, 0x10, 0x00, 0x3c, 0x04, 0x90, 0x18, 0x39, 0x00, 0x00, 0x7c, 0x11, 0x20, 0xa8, 0x19, 0x10, 0x10, 0x00, 0x3c, 0x04, 0x00, 0x54, 0x3a, 0x3c, 0x00, 0x00, 0x01, 0x98, 0x00, 0x8c, 0x00, 0x0c, 0x0c, 0x8c, 0x0c, 0x08, 0x0c, 0x10, 0x70, 0x00, 0x10, 0x08, 0x00, 0x10, 0x00, 0x20, 0x10, 0x10, 0x10, 0x80, 0x00, 0x00, 0x00, 0x04, 0x30, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x10, 0x00, 0x32, 0x70, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x10, 0x00, 0x00, 0x71, 0x01, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x4a, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0c, 0x00, 0x02, 0x00, 0x08, 0x00, 0x00, 0x80, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x80, 0x00, 0x04, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x02, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x02, 0x0c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x40, 0x00, 0x00, 0x00, 0x10, 0x04, 0x00, 0x0d, 0x00, 0x00, 0x30, 0x20, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x81, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x44, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x01, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x01, 0x00, 0x08, 0x00, 0x00, 0x40, 0x00, 0x24, 0x00, 0x05, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0c, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x22, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0xc0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x43, 0x00, 0x08, 0x00, 0x00, 0x08, 0x18, 0x00, 0x00, 0x0c, 0x04, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x43, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x43, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, 0x2c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00, 0x14, 0x24, 0x00, 0x02, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x00, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x43, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x3a, 0xdd, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xcc, 0xcc, 0xaa, 0xff, 0xff, 0xfa, 0x72, 0xfa, 0x3a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0x44, 0xff, 0xff, 0xdd, 0x88, 0xfc, 0x74, 0xee, 0x2e, 0xf7, 0xc4, 0xfc, 0x74, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xef, 0xff, 0xfb, 0xff, 0xff, 0xbf, 0xff, 0xbf, 0xff, 0xbf, 0xfb, 0xff, 0xff, 0xbf, 0xef, 0xff, 0xef, 0xff, 0xfd, 0xff, 0xfd, 0xff, 0xef, 0xff, 0xef, 0xff, 0xff, 0xbf, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xf7, 0xff, 0xbf, 0xff, 0xbf, 0xff, 0xbf, 0xff, 0xdf, 0xff, 0xdf, 0xff, 0xdf, 0xef, 0xff, 0xff, 0xbf, 0xef, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xf5, 0xee, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0xff, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xea, 0xba, 0x30, 0xc0, 0x55, 0xff, 0xff, 0xef, 0xff, 0xaf, 0xf0, 0xcc, 0xfc, 0xa8, 0xa0, 0x80, 0xac, 0xff, 0xac, 0xff, 0xaa, 0xb8, 0xff, 0xff, 0xaa, 0xb8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xaa, 0xe2, 0xe2, 0xcc, 0xf0, 0xfc, 0x0c, 0xff, 0xff, 0xff, 0xff, 0xf8, 0xf0, 0xa8, 0x00, 0xff, 0xff, 0xfc, 0xa8, 0xf8, 0xf0, 0xc8, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xcc, 0xaa, 0xf3, 0xc0, 0xf0, 0xcc, 0xf3, 0xc0, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x00, 0x00, 0x30, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x0d, 0x26, 0xf8, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x8c, 0x71, 0x40, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x31, 0x40, 0x01, 0x28, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x12, 0x00, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x26, 0xf8, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x01, 0x24, 0x70, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x13, 0x20, 0x30, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x28, 0x30, 0x00, 0x12, 0x04, 0x78, 0x04, 0x12, 0x04, 0x78, 0x04, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x04, 0x78, 0x04, 0x12, 0x04, 0x78, 0x04, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x2d, 0x4e, 0x95, 0xfb, 0x2d, 0x4e, 0x9d, 0xfb, 0x2d, 0x4e, 0x9d, 0xfb, 0x2d, 0x4e, 0x9d, 0xfb, 0x2d, 0x4e, 0x9d, 0xfb, 0x2d, 0x4e, 0x9d, 0xfb, 0x2d, 0x4e, 0x9d, 0xfb, 0x2d, 0x4e, 0x0d, 0x01, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x13, 0x25, 0x46, 0x95, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x29, 0x06, 0x9d, 0xf3, 0x2d, 0x46, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x29, 0x06, 0x9d, 0xf3, 0x25, 0x46, 0x9d, 0xf3, 0x21, 0x06, 0x0d, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x24, 0x40, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x12, 0x00, 0x00, 0x04, 0x12, 0x04, 0x48, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x12, 0x04, 0x48, 0x04, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0xf0, 0xf0, 0xcc, 0xcc, 0xaa, 0xaa, 0xff, 0x00, 0xcc, 0xcc, 0xf0, 0xf0, 0xaa, 0xaa, 0xaa, 0xaa, 0xff, 0x00, 0xcc, 0xcc, 0xf0, 0xf0, 0xf0, 0xf0, 0xcc, 0xcc, 0xff, 0x00, 0x55, 0x55, 0xff, 0xff, 0xff, 0xff, 0xca, 0xfa, 0xbf, 0xb0, 0xff, 0x00, 0xff, 0x00, 0xaa, 0xaa, 0xaa, 0xaa, 0xff, 0x00, 0xcc, 0xcc, 0xff, 0x00, 0xff, 0x00, 0xaa, 0xaa, 0xff, 0x00, 0xaa, 0xaa, 0xff, 0x00, 0xcc, 0xcc, 0xff, 0x00, 0xff, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xff, 0x00, 0xaa, 0xaa, 0xff, 0x00, 0xff, 0x00, 0xf0, 0xf0, 0xff, 0x00, 0xaa, 0xaa, 0xcc, 0xcc, 0xff, 0x00, 0xff, 0x00, 0xaa, 0xaa, 0xf0, 0xf0, 0xff, 0x00, 0xcc, 0xcc, 0x55, 0x55, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xc8, 0xff, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa, 0xee, 0xfc, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xaa, 0xff, 0xff, 0xfb, 0xff, 0xef, 0xff, 0xff, 0xfa, 0xc8, 0xc8, 0x00, 0xfe, 0x04, 0xff, 0xdf, 0xff, 0xfb, 0xfa, 0xfc, 0xee, 0x44, 0xff, 0xff, 0x00, 0x50, 0x7f, 0xff, 0xec, 0xcc, 0x88, 0x00, 0xcc, 0xaa, 0xff, 0xff, 0xbb, 0x88, 0xff, 0xff, 0xef, 0xef, 0xfe, 0xae, 0xbb, 0x88, 0xe2, 0xe2, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xaf, 0xa0, 0xd8, 0xd8, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0xcc, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x3b, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x48, 0x20, 0x00, 0x02, 0x31, 0x82, 0x8a, 0x00, 0x48, 0x20, 0x00, 0x0a, 0x13, 0x00, 0x08, 0x00, 0x48, 0x20, 0x04, 0x02, 0x15, 0x02, 0x8a, 0x00, 0x48, 0x20, 0x04, 0x0a, 0x19, 0x00, 0x00, 0x00, 0x48, 0x20, 0x04, 0x12, 0x00, 0xc9, 0x00, 0x00, 0x50, 0x20, 0x04, 0x1a, 0x00, 0x50, 0x00, 0x00, 0x50, 0x20, 0x04, 0x12, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x04, 0x12, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x10, 0x01, 0x10, 0x50, 0x20, 0x04, 0x12, 0x00, 0x33, 0x80, 0x00, 0x50, 0x20, 0x04, 0x12, 0x22, 0xeb, 0x06, 0x00, 0x00, 0x20, 0x04, 0x12, 0x00, 0x67, 0xc0, 0x00, 0x40, 0x20, 0x04, 0x12, 0x10, 0x32, 0x11, 0x80, 0x40, 0x00, 0x04, 0x00, 0x14, 0x10, 0xdc, 0x04, 0x48, 0x20, 0x00, 0x02, 0x11, 0x02, 0x50, 0x08, 0x50, 0x20, 0x04, 0x02, 0x24, 0x01, 0x00, 0x90, 0x00, 0x00, 0x04, 0x1a, 0x00, 0x40, 0x00, 0x04, 0x58, 0x20, 0x04, 0x12, 0x00, 0x50, 0x22, 0x80, 0x58, 0x20, 0x04, 0x12, 0x00, 0x04, 0x0c, 0x94, 0x08, 0x20, 0x04, 0x12, 0x00, 0x08, 0x00, 0xc0, 0x00, 0x00, 0x04, 0x02, 0x00, 0x44, 0x4c, 0x98, 0x48, 0x20, 0x04, 0x12, 0x33, 0x80, 0x0f, 0x38, 0x08, 0x20, 0x04, 0x12, 0x00, 0x6b, 0x0e, 0xc0, 0x08, 0x20, 0x04, 0x1a, 0x01, 0xe4, 0x4c, 0x00, 0x40, 0x20, 0x00, 0x02, 0x00, 0x02, 0x00, 0x98, 0x00, 0x00, 0x04, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x0e, 0x00, 0x48, 0x20, 0x04, 0x12, 0x20, 0xc5, 0x01, 0x18, 0x00, 0x00, 0x04, 0x12, 0x00, 0x49, 0x0e, 0x90, 0x08, 0x20, 0x04, 0x12, 0x02, 0xd1, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x04, 0x00, 0x00, 0x20, 0x34, 0x90, 0x08, 0x04, 0x04, 0x00, 0x00, 0x00, 0x21, 0x81, 0x09, 0x04, 0x04, 0x00, 0x04, 0x28, 0x22, 0xc8, 0x09, 0x04, 0x04, 0x00, 0x04, 0x08, 0x28, 0xc1, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x02, 0x20, 0x83, 0x04, 0x10, 0x00, 0x00, 0x01, 0x00, 0x01, 0x83, 0x04, 0x10, 0x00, 0x00, 0x20, 0x00, 0x08, 0x03, 0x04, 0x10, 0x00, 0x00, 0x20, 0x00, 0x20, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x83, 0x04, 0x10, 0x00, 0x04, 0x20, 0x00, 0x50, 0x93, 0x04, 0x10, 0x00, 0x00, 0x20, 0x21, 0xa0, 0x23, 0x04, 0x10, 0x00, 0x00, 0x20, 0x10, 0x88, 0x8b, 0x04, 0x14, 0x00, 0x00, 0x20, 0x01, 0x10, 0x81, 0x08, 0x04, 0x00, 0x00, 0x08, 0x00, 0x40, 0x82, 0x14, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x83, 0x14, 0x10, 0x00, 0x00, 0x28, 0x20, 0x48, 0x01, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x21, 0xa3, 0x14, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x83, 0x1c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x03, 0x24, 0x00, 0x00, 0x00, 0x20, 0x02, 0x20, 0x01, 0x14, 0x00, 0x00, 0x00, 0x28, 0x00, 0x40, 0x8a, 0x10, 0x04, 0x00, 0x00, 0x20, 0x01, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x03, 0x04, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x08, 0x04, 0x14, 0x00, 0x00, 0x20, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x01, 0x14, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x03, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x03, 0x00, 0x13, 0xe3, 0x82, 0xc1, 0xcb, 0x00, 0x23, 0x00, 0xe3, 0xd3, 0x00, 0xc9, 0xc0, 0x22, 0xa3, 0x05, 0x13, 0xc1, 0xca, 0xc3, 0x83, 0x00, 0xd3, 0x05, 0xe3, 0x03, 0x00, 0x01, 0x00, 0x1b, 0xc0, 0xc7, 0x01, 0x22, 0x0b, 0x0b, 0x0b, 0x00, 0x44, 0x00, 0xe1, 0x23, 0xcb, 0xc3, 0xc0, 0x63, 0xc3, 0xd3, 0x80, 0xc3, 0x03, 0x43, 0xc0, 0xc0, 0x02, 0x00, 0xc3, 0x01, 0x17, 0x40, 0xe0, 0xd0, 0x03, 0x00, 0xc0, 0x03, 0x44, 0x00, 0x03, 0x00, 0x03, 0xc0, 0xa3, 0x13, 0x02, 0x22, 0xc7, 0x00, 0x03, 0xc8, 0x01, 0xc0, 0xc2, 0xe2, 0xcb, 0x00, 0x03, 0x00, 0x03, 0x07, 0x03, 0x20, 0x57, 0xc0, 0x00, 0xd3, 0x03, 0x03, 0xc7, 0x22, 0x06, 0x02, 0x00, 0x03, 0x00, 0x02, 0x03, 0xc0, 0x00, 0x23, 0xc3, 0x13, 0x83, 0x03, 0xc4, 0xc1, 0xb3, 0xd3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xe3, 0x00, 0xe3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xdb, 0x00, 0xc0, 0xc3, 0xc8, 0xc3, 0x93, 0x00, 0xc8, 0x22, 0x80, 0x03, 0x09, 0x00, 0x23, 0xc7, 0x13, 0x07, 0x00, 0x00, 0x01, 0x00, 0xe0, 0x08, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xc0, 0x13, 0xc8, 0x03, 0x22, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x01, 0x08, 0x00, 0x00, 0x00, 0xf3, 0x00, 0xc0, 0x03, 0x00, 0x00, 0xc3, 0x00, 0x03, 0x00, 0x00, 0x13, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x05, 0xe0, 0x40, 0xc0, 0xd3, 0x13, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x03, 0xf3, 0x13, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x20, 0x84, 0x03, 0x20, 0x00, 0x40, 0x08, 0x04, 0x20, 0x00, 0x01, 0x80, 0x00, 0x04, 0x00, 0x00, 0x11, 0x04, 0x21, 0xa0, 0x00, 0x10, 0x00, 0x04, 0x01, 0x00, 0x01, 0x00, 0x00, 0x80, 0x10, 0x40, 0x40, 0x40, 0x01, 0x20, 0x00, 0x02, 0x00, 0x40, 0x00, 0x40, 0x18, 0x03, 0x20, 0x88, 0x04, 0x82, 0x05, 0x88, 0xa0, 0x82, 0x10, 0x04, 0x00, 0x12, 0x01, 0x00, 0xa0, 0x00, 0x10, 0x20, 0x00, 0x14, 0x80, 0x02, 0x00, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x05, 0x00, 0x20, 0x00, 0x20, 0x80, 0x40, 0x90, 0x84, 0x10, 0x20, 0x80, 0x08, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0xa0, 0x02, 0x02, 0x20, 0x08, 0x40, 0x00, 0x04, 0x80, 0x00, 0x01, 0x00, 0x80, 0x08, 0x02, 0x00, 0x00, 0x82, 0x00, 0xa0, 0x01, 0x00, 0x41, 0x00, 0x04, 0x08, 0x00, 0x10, 0x00, 0x00, 0x48, 0x40, 0x00, 0x08, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x08, 0x00, 0xa0, 0x00, 0x00, 0x84, 0xa0, 0x0c, 0x00, 0x11, 0x80, 0x20, 0x20, 0x02, 0x80, 0x08, 0x20, 0x00, 0x08, 0x40, 0x00, 0x04, 0x00, 0x04, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x02, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x02, 0x00, 0x20, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x41, 0x08, 0x00, 0x08, 0x03, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x80, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x40, 0x10, 0x00, 0x10, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x01, 0x28, 0x71, 0x40, 0x00, 0x00, 0x00, 0x08, 0x01, 0x10, 0x02, 0x60, 0x01, 0x00, 0x10, 0x00, 0x20, 0x30, 0x01, 0xc7, 0x00, 0x00, 0xa0, 0x0a, 0x54, 0x80, 0x00, 0x80, 0x08, 0x00, 0x22, 0x18, 0x92, 0x00, 0x01, 0x83, 0x0c, 0x60, 0x20, 0x0e, 0x08, 0x30, 0x00, 0x80, 0x19, 0x01, 0x4a, 0x94, 0x9d, 0x0c, 0x03, 0x90, 0x1d, 0x01, 0x40, 0x14, 0xa1, 0x34, 0x00, 0x80, 0x1e, 0x82, 0xf0, 0x06, 0x0c, 0x00, 0x00, 0x95, 0x08, 0x00, 0xe4, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x10, 0xc0, 0x00, 0x1c, 0x00, 0x73, 0x90, 0x1d, 0x02, 0x03, 0xaf, 0x00, 0x00, 0x00, 0xa0, 0x1e, 0x00, 0xc0, 0x00, 0x35, 0xac, 0x02, 0x90, 0x19, 0x00, 0x04, 0x24, 0x00, 0x34, 0x00, 0x04, 0x08, 0x60, 0x00, 0x1e, 0x88, 0x2c, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0e, 0x34, 0x00, 0x00, 0x2e, 0x44, 0xb0, 0x00, 0x1d, 0x08, 0xe1, 0x90, 0x00, 0x30, 0x50, 0x06, 0x00, 0x08, 0x51, 0x80, 0x06, 0x00, 0x44, 0x46, 0x8c, 0x3a, 0xe1, 0xc4, 0x1d, 0x30, 0xa2, 0x1e, 0x00, 0x09, 0x53, 0x40, 0x20, 0x30, 0xa2, 0x00, 0x11, 0x10, 0x50, 0x20, 0x40, 0x40, 0x40, 0x00, 0x10, 0x00, 0x00, 0x40, 0x06, 0x00, 0x02, 0xb4, 0x3c, 0x8c, 0xe4, 0x04, 0x02, 0x00, 0x03, 0xc4, 0x0c, 0x28, 0x01, 0xc0, 0x08, 0x30, 0x00, 0x00, 0x01, 0x34, 0x00, 0x00, 0x00, 0x08, 0x20, 0x40, 0x0c, 0x06, 0x00, 0x50, 0x02, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x04, 0xc0, 0x00, 0x0a, 0x28, 0x00, 0x5c, 0x40, 0x00, 0x87, 0x02, 0x00, 0x40, 0x00, 0x5c, 0x80, 0x07, 0xc0, 0x28, 0x00, 0x40, 0x04, 0x1c, 0xb0, 0xe2, 0x40, 0x03, 0x02, 0x41, 0x01, 0x34, 0x14, 0x09, 0xb3, 0x4c, 0x0a, 0x28, 0x07, 0x2d, 0x80, 0x00, 0x80, 0x0e, 0x08, 0x41, 0x04, 0x00, 0x00, 0x01, 0x80, 0x0c, 0x00, 0x40, 0xc4, 0x0c, 0x14, 0x04, 0xc0, 0x08, 0x60, 0xe0, 0x0b, 0x2e, 0x00, 0x03, 0xc0, 0x89, 0x01, 0xf0, 0xc0, 0x10, 0x00, 0x27, 0x00, 0x00, 0x09, 0xb0, 0x0e, 0xae, 0x14, 0x03, 0x80, 0x0c, 0x01, 0xe0, 0x07, 0x3c, 0x14, 0x02, 0x40, 0x28, 0x01, 0xd0, 0x0e, 0x80, 0x10, 0xe3, 0x80, 0x02, 0x00, 0x00, 0xc8, 0x00, 0x34, 0x00, 0x10, 0x10, 0x00, 0x00, 0x07, 0x0a, 0x28, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x40, 0x00, 0x00, 0x1d, 0x31, 0xcb, 0x80, 0x00, 0x84, 0x02, 0x08, 0x00, 0x3a, 0x01, 0x8c, 0x00, 0x0c, 0x00, 0xc7, 0x42, 0x08, 0x00, 0x05, 0xc8, 0x6d, 0x52, 0x00, 0x00, 0x08, 0x13, 0x80, 0x0c, 0x0c, 0x00, 0x00, 0x1c, 0x6e, 0x01, 0x83, 0x00, 0x0a, 0x40, 0x00, 0x00, 0x00, 0x00, 0x40, 0x20, 0x00, 0x00, 0x16, 0x10, 0x08, 0x60, 0x00, 0x01, 0x01, 0x00, 0x06, 0x52, 0x44, 0x07, 0x83, 0x49, 0x80, 0x00, 0x00, 0x1c, 0x0d, 0x80, 0x00, 0x00, 0x04, 0x08, 0x00, 0x12, 0x08, 0x60, 0x83, 0x28, 0x00, 0x00, 0x00, 0x14, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x1c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x50, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x00, 0x02, 0x10, 0x20, 0x08, 0x08, 0x40, 0x02, 0x44, 0x00, 0x44, 0x20, 0x04, 0x28, 0x82, 0x88, 0x05, 0x0c, 0x00, 0x30, 0x00, 0xc1, 0x25, 0x00, 0x00, 0x02, 0x00, 0x42, 0x08, 0x40, 0x02, 0x80, 0x00, 0x05, 0x48, 0x20, 0x04, 0x84, 0x81, 0x4c, 0x00, 0x00, 0x40, 0x80, 0x08, 0x90, 0x20, 0x00, 0x04, 0x08, 0x00, 0x10, 0x01, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x91, 0x08, 0x14, 0x00, 0x15, 0x45, 0x00, 0x00, 0x00, 0x00, 0x10, 0x81, 0x64, 0x00, 0x40, 0x00, 0x80, 0x08, 0x05, 0x01, 0x40, 0x04, 0x00, 0x02, 0x01, 0x08, 0x14, 0x41, 0x41, 0x01, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x01, 0x30, 0x0a, 0x00, 0x00, 0xc1, 0x00, 0x00, 0x02, 0x81, 0x00, 0x00, 0x00, 0x85, 0x20, 0x18, 0x00, 0x00, 0x1c, 0x28, 0x00, 0x00, 0x80, 0x00, 0x44, 0x80, 0x1a, 0x0f, 0x20, 0x68, 0x14, 0x20, 0x00, 0x40, 0x10, 0x11, 0x60, 0x81, 0x80, 0x00, 0x40, 0x08, 0x1a, 0x04, 0x20, 0x00, 0x80, 0x21, 0x60, 0x08, 0x20, 0x10, 0x20, 0x00, 0x00, 0x90, 0x80, 0x08, 0x02, 0x00, 0x20, 0x48, 0x08, 0x00, 0x05, 0x02, 0x24, 0x00, 0x0c, 0x30, 0x00, 0x0c, 0x48, 0x02, 0x00, 0x01, 0x40, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x40, 0x00, 0x00, 0x81, 0x00, 0x00, 0x50, 0x25, 0x02, 0x90, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x0a, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x07, 0x80, 0x02, 0x03, 0x00, 0x08, 0x00, 0x28, 0x60, 0x80, 0x06, 0x00, 0x00, 0x08, 0x00, 0x08, 0x02, 0x00, 0x02, 0x02, 0x04, 0x11, 0x36, 0x00, 0x04, 0x0d, 0x0c, 0x00, 0x00, 0x07, 0x3e, 0x00, 0x03, 0x83, 0x10, 0x00, 0xe0, 0x07, 0x34, 0x80, 0x00, 0x80, 0x0c, 0x00, 0x30, 0x09, 0x80, 0x40, 0x08, 0x03, 0x21, 0x00, 0x28, 0x07, 0x1c, 0x00, 0x0b, 0x20, 0x06, 0x00, 0xe0, 0x00, 0x14, 0x38, 0x03, 0xa3, 0x00, 0x00, 0xe0, 0x03, 0x10, 0x40, 0x06, 0x40, 0x20, 0x09, 0x20, 0x01, 0x3e, 0x30, 0x04, 0x00, 0x0f, 0x00, 0x40, 0x04, 0x12, 0x00, 0x04, 0x00, 0x20, 0x00, 0x04, 0x4c, 0x31, 0x2c, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x11, 0x04, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x08, 0x1e, 0x00, 0x00, 0x30, 0xa8, 0xd3, 0x80, 0x00, 0x40, 0x38, 0x01, 0x0a, 0x00, 0x80, 0x05, 0x02, 0x70, 0xca, 0x20, 0x3c, 0x80, 0xe0, 0x80, 0x00, 0x0a, 0xc8, 0x08, 0x00, 0x42, 0x8b, 0x23, 0x0c, 0x30, 0x0c, 0x00, 0x2c, 0x00, 0x23, 0x07, 0x00, 0x08, 0x40, 0x1c, 0x80, 0x28, 0x86, 0x04, 0x22, 0x6c, 0x01, 0x81, 0x30, 0x29, 0x30, 0x00, 0x5e, 0x00, 0xa8, 0x00, 0x71, 0x08, 0x03, 0x20, 0x5c, 0x64, 0x00, 0x00, 0x31, 0x29, 0x70, 0x00, 0x00, 0x40, 0x40, 0x1f, 0x00, 0x30, 0xe4, 0x07, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x0c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0xe0, 0x08, 0x00, 0x00, 0x05, 0x90, 0x00, 0x00, 0x00, 0x08, 0x20, 0x3c, 0x02, 0x0b, 0x10, 0x00, 0xe1, 0x0a, 0x1c, 0x00, 0x01, 0xca, 0x3e, 0x01, 0x00, 0x1e, 0x90, 0xf0, 0x01, 0xe4, 0x40, 0x00, 0xf0, 0x0e, 0x10, 0x00, 0x01, 0xd0, 0x0f, 0x00, 0x00, 0x08, 0x34, 0x31, 0x01, 0xc0, 0x40, 0x12, 0x00, 0x1e, 0xc0, 0x00, 0x01, 0x40, 0x06, 0x00, 0xe0, 0x00, 0x10, 0x00, 0x02, 0x00, 0x40, 0x02, 0xa0, 0x0a, 0x00, 0x08, 0x00, 0x0b, 0x0e, 0x00, 0xe0, 0x08, 0x10, 0x00, 0x03, 0x80, 0x00, 0x00, 0x40, 0x04, 0x14, 0x00, 0x00, 0x0b, 0x0e, 0x00, 0x00, 0x04, 0x90, 0x3c, 0x00, 0x02, 0x08, 0x30, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x70, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x28, 0x72, 0x00, 0x00, 0x00, 0xc3, 0x80, 0x09, 0xb4, 0x68, 0x00, 0x0c, 0x71, 0xc2, 0x9e, 0x2c, 0x11, 0xe0, 0x18, 0x0c, 0x30, 0xc0, 0x08, 0x00, 0x32, 0x61, 0x40, 0x20, 0x00, 0x21, 0x80, 0x28, 0x08, 0x84, 0x2f, 0x00, 0x01, 0x40, 0x0a, 0x00, 0xac, 0x00, 0x00, 0x06, 0x00, 0x09, 0xc6, 0x00, 0x30, 0x20, 0x00, 0x08, 0x00, 0x41, 0xa6, 0x00, 0x80, 0x01, 0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0e, 0x0a, 0x30, 0x04, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x40, 0x08, 0x0b, 0x00, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x00, 0x08, 0x00, 0x28, 0x00, 0x40, 0x02, 0x08, 0x20, 0x00, 0x08, 0x0c, 0x08, 0x20, 0x04, 0x02, 0x20, 0x00, 0x00, 0x00, 0x20, 0x04, 0x0c, 0x01, 0x20, 0x08, 0x20, 0x04, 0x00, 0x00, 0x00, 0x0a, 0x84, 0x01, 0x08, 0x00, 0x20, 0x04, 0x88, 0x00, 0x28, 0x00, 0x02, 0x28, 0x08, 0x81, 0x0a, 0x04, 0x24, 0x08, 0x08, 0x04, 0x92, 0x04, 0x01, 0x04, 0x0c, 0x28, 0x20, 0x01, 0x40, 0x04, 0x82, 0x24, 0x00, 0x40, 0x0c, 0x04, 0x00, 0x21, 0x40, 0x22, 0x0c, 0x28, 0x2a, 0x81, 0x04, 0x44, 0x81, 0x10, 0x00, 0x24, 0x00, 0x00, 0x0a, 0x08, 0x00, 0x80, 0x0c, 0x84, 0x0c, 0x00, 0x02, 0x80, 0x02, 0x08, 0x42, 0x80, 0x00, 0x02, 0x00, 0x00, 0x20, 0x01, 0x08, 0x00, 0x01, 0x10, 0x40, 0x00, 0x00, 0x4c, 0x14, 0x48, 0x04, 0x44, 0x08, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x41, 0x84, 0x02, 0x41, 0x01, 0x94, 0x80, 0x09, 0x02, 0x2c, 0x02, 0x01, 0x20, 0x4a, 0x04, 0x00, 0x99, 0x09, 0x80, 0x41, 0x09, 0x40, 0x41, 0x08, 0x21, 0x34, 0x04, 0x22, 0x00, 0x84, 0x10, 0x00, 0x04, 0x80, 0x80, 0x20, 0x14, 0x28, 0x02, 0x00, 0x08, 0x01, 0x01, 0x01, 0x00, 0x88, 0x80, 0x40, 0x14, 0x80, 0x0c, 0x14, 0x82, 0x80, 0x20, 0x01, 0x48, 0x08, 0x20, 0x04, 0x31, 0x18, 0x00, 0x02, 0x20, 0x81, 0x00, 0x08, 0x44, 0x48, 0x08, 0x41, 0x00, 0x00, 0x0a, 0x00, 0x22, 0x00, 0x20, 0x20, 0x28, 0x00, 0x00, 0x00, 0x80, 0x20, 0x80, 0x41, 0x00, 0x44, 0x00, 0x29, 0x00, 0x20, 0x81, 0x40, 0x0c, 0x48, 0x80, 0x21, 0x28, 0x20, 0x80, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x88, 0x28, 0x00, 0x00, 0x20, 0x42, 0x20, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x21, 0x40, 0x00, 0x20, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0e, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x6c, 0x3c, 0x00, 0x08, 0xb2, 0x00, 0x02, 0x00, 0x0d, 0x00, 0x0d, 0x0a, 0x68, 0x00, 0x00, 0x09, 0x68, 0x30, 0x98, 0x0c, 0x00, 0x38, 0x00, 0x6a, 0x08, 0x0a, 0x00, 0xb8, 0x08, 0x70, 0x00, 0x90, 0x0e, 0x00, 0x08, 0x18, 0x00, 0x09, 0x00, 0x00, 0x0e, 0x70, 0x10, 0xbe, 0x4c, 0x10, 0x10, 0xb0, 0x50, 0x1a, 0x58, 0xb8, 0x08, 0x01, 0x10, 0x30, 0x90, 0x0c, 0x00, 0x05, 0x00, 0x00, 0x50, 0x68, 0x0a, 0x00, 0x08, 0x19, 0x58, 0xa0, 0xb0, 0x3a, 0x90, 0x0c, 0x70, 0x90, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x30, 0x0e, 0x00, 0xb0, 0x0e, 0x00, 0x70, 0x1d, 0x38, 0x00, 0x71, 0x08, 0x3e, 0xbc, 0x70, 0x0a, 0x01, 0x0c, 0x19, 0x1d, 0x5e, 0xa2, 0x00, 0x10, 0x96, 0x48, 0x00, 0x08, 0xa0, 0x60, 0x06, 0x7c, 0x00, 0x4e, 0x10, 0x0c, 0x71, 0x00, 0x7c, 0x50, 0x70, 0x00, 0x9e, 0x0e, 0x79, 0x05, 0x1d, 0x0e, 0x3a, 0x0e, 0xaa, 0x0e, 0x96, 0xb8, 0x10, 0x18, 0x08, 0x00, 0x0c, 0x05, 0x70, 0x7d, 0x90, 0x58, 0xbe, 0x00, 0x30, 0x7c, 0x1c, 0x10, 0x50, 0x0e, 0x59, 0x0a, 0xbc, 0xbc, 0x01, 0x50, 0x30, 0x08, 0x0a, 0x00, 0x09, 0x0d, 0x00, 0x9c, 0x01, 0x3c, 0x04, 0xa0, 0x0a, 0x0d, 0x04, 0xba, 0x09, 0x09, 0x00, 0x00, 0x04, 0x90, 0x90, 0xbd, 0xa5, 0x9d, 0x00, 0x01, 0x90, 0xb9, 0x00, 0x0c, 0x00, 0x0e, 0x00, 0x00, 0x08, 0x04, 0x0a, 0x00, 0x08, 0x0e, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x09, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x0c, 0x80, 0x10, 0x70, 0x00, 0x80, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x20, 0x0e, 0x0c, 0x00, 0x00, 0x00, 0x2a, 0x01, 0x20, 0x00, 0x00, 0x20, 0x0a, 0x00, 0x0c, 0x00, 0x20, 0x0c, 0x0c, 0x20, 0x00, 0x00, 0x00, 0x20, 0x08, 0x0c, 0x89, 0x10, 0x00, 0x10, 0x08, 0x80, 0x01, 0x4e, 0x00, 0x18, 0x0c, 0x00, 0x0a, 0x10, 0x04, 0x3e, 0x81, 0x30, 0x41, 0x0c, 0xb0, 0x80, 0x18, 0x08, 0x80, 0x08, 0x00, 0x00, 0x51, 0x14, 0x0c, 0x04, 0x00, 0x08, 0x80, 0x00, 0x08, 0x10, 0x0c, 0x1c, 0x08, 0x8a, 0x30, 0x04, 0xf4, 0x81, 0x31, 0x30, 0x88, 0x04, 0x10, 0x38, 0x10, 0x80, 0xac, 0x18, 0x0f, 0x00, 0x28, 0x00, 0x00, 0x44, 0x00, 0x00, 0x30, 0x04, 0xa4, 0x4c, 0x40, 0x54, 0xb0, 0x00, 0x50, 0x1c, 0x3e, 0x00, 0x04, 0xcf, 0xf0, 0x30, 0x58, 0x00, 0x80, 0x0c, 0x70, 0x10, 0x70, 0x00, 0x10, 0x08, 0xb0, 0x04, 0x0c, 0x00, 0xcc, 0x08, 0x00, 0x00, 0x0a, 0x00, 0xa4, 0x90, 0x08, 0x04, 0x08, 0x2c, 0x30, 0x04, 0x08, 0x08, 0x4c, 0x5c, 0x00, 0x20, 0x00, 0x00, 0x14, 0x08, 0x10, 0x28, 0x08, 0x10, 0x28, 0x0a, 0x18, 0x38, 0x04, 0xa8, 0xc2, 0xbc, 0x00, 0x00, 0x78, 0x10, 0x10, 0x3b, 0x00, 0x90, 0x09, 0x00, 0x00, 0x48, 0x0c, 0x08, 0x00, 0x10, 0x30, 0x10, 0x0c, 0x31, 0x80, 0x00, 0x28, 0x20, 0x00, 0x0c, 0x20, 0x50, 0x1e, 0x00, 0x08, 0x00, 0x00, 0x0c, 0x30, 0x3c, 0x00, 0x00, 0x2c, 0x80, 0x00, 0x20, 0x50, 0x70, 0x0c, 0x00, 0x1c, 0x80, 0xa0, 0x00, 0x02, 0x70, 0x00, 0x00, 0x10, 0x20, 0x3e, 0x0c, 0x70, 0x18, 0x00, 0x24, 0x70, 0x20, 0x14, 0x00, 0x5c, 0x30, 0x20, 0x24, 0x10, 0x20, 0x20, 0x20, 0x70, 0x00, 0x00, 0x30, 0x00, 0x08, 0x00, 0x00, 0x30, 0x20, 0x00, 0x00, 0x30, 0x1c, 0x20, 0x30, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x14, 0x10, 0x00, 0x10, 0x08, 0x0c, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0c, 0x02, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x32, 0x22, 0x0d, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x02, 0x02, 0x09, 0x00, 0x32, 0x02, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0e, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x22, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x0e, 0x8c, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x02, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x10, 0x08, 0x02, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x82, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x20, 0x82, 0x0e, 0x01, 0x06, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x30, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0x20, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x02, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x40, 0xa4, 0x0e, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x04, 0x00, 0x0e, 0x00, 0x48, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0e, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x20, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x0c, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x01, 0x02, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0xa1, 0x80, 0x00, 0x08, 0x00, 0x00, 0x01, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x48, 0x08, 0x08, 0x00, 0x00, 0x09, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x43, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0b, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x28, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x4b, 0x08, 0x00, 0x00, 0x04, 0x80, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xcc, 0xee, 0x22, 0xe2, 0xe2, 0xf0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf6, 0x06, 0x5a, 0xa5, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0x80, 0xc4, 0xce, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xfa, 0xee, 0xfa, 0xf0, 0xe2, 0xff, 0xcc, 0xff, 0x10, 0xf1, 0xf0, 0x02, 0x8f, 0x0f, 0x0c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x0c, 0xe2, 0xe2, 0xe2, 0xe2, 0xf0, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1d, 0x3f, 0xff, 0xfc, 0x03, 0x88, 0x00, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, 0xf3, 0xff, 0xfe, 0xfe, 0xff, 0xef, 0x4f, 0xf0, 0xe2, 0xaa, 0xb8, 0xef, 0xff, 0xdd, 0xd0, 0xff, 0x88, 0xf8, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xfc, 0xee, 0xff, 0xff, 0xdf, 0xd5, 0xfa, 0xc8, 0xe0, 0x00, 0xfe, 0xce, 0xec, 0xcc, 0xf7, 0xff, 0xfa, 0xc8, 0xfa, 0xc8, 0xa8, 0x00, 0xee, 0xe0, 0xc0, 0x80, 0xfa, 0xc8, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x01, 0x20, 0x31, 0x40, 0x01, 0x20, 0x31, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x09, 0x2c, 0x78, 0x00, 0x01, 0x24, 0x70, 0x00, 0x0d, 0x26, 0x71, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x13, 0x20, 0x30, 0x04, 0x00, 0x04, 0x78, 0x00, 0x12, 0x04, 0x78, 0x04, 0x00, 0x00, 0x30, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x01, 0x20, 0x31, 0x40, 0x01, 0x28, 0x31, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x01, 0x28, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x12, 0x00, 0x30, 0x04, 0x00, 0x00, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x24, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x11, 0x00, 0x04, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x20, 0x00, 0x00, 0xb3, 0x29, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x1d, 0x33, 0x29, 0x02, 0x1d, 0xb3, 0x21, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x9d, 0x32, 0x01, 0x02, 0x0d, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0x33, 0x29, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x9d, 0xb3, 0x21, 0x02, 0x9d, 0xb3, 0x21, 0x02, 0x9d, 0x33, 0x21, 0x02, 0x1d, 0xb2, 0x01, 0x02, 0x8d, 0x33, 0x21, 0x02, 0x1d, 0xb3, 0x25, 0x42, 0x9d, 0xb3, 0x21, 0x02, 0x1d, 0x33, 0x25, 0x42, 0x1d, 0x33, 0x25, 0x42, 0x9d, 0x33, 0x21, 0x02, 0x0d, 0xb3, 0x21, 0x02, 0x1d, 0xb3, 0x21, 0x02, 0x9d, 0x33, 0x21, 0x02, 0x9d, 0x33, 0x21, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x9d, 0xb2, 0x01, 0x02, 0x0d, 0x09, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf3, 0x21, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x9d, 0xf2, 0x01, 0x06, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x22, 0x00, 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xc5, 0xcc, 0xca, 0xaa, 0x69, 0x69, 0xf0, 0x66, 0xbb, 0xbb, 0xff, 0xff, 0x88, 0x88, 0x88, 0x88, 0xaa, 0xcc, 0xff, 0xff, 0xcc, 0xaa, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x66, 0x66, 0x55, 0xaa, 0x66, 0x66, 0x3c, 0x3c, 0x3c, 0x3c, 0x33, 0xcc, 0x66, 0x66, 0x5a, 0x5a, 0x66, 0x66, 0x55, 0xaa, 0x33, 0xcc, 0x3c, 0x3c, 0xf0, 0x74, 0xe2, 0xaa, 0x5a, 0xa5, 0xde, 0x12, 0xbb, 0xbb, 0xe2, 0xff, 0xcc, 0x00, 0xfe, 0xfe, 0xaa, 0xcc, 0xee, 0x22, 0xca, 0xca, 0xb8, 0xb8, 0x66, 0x66, 0x55, 0xaa, 0x66, 0x66, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x66, 0x66, 0x55, 0xaa, 0x33, 0xcc, 0x3c, 0x3c, 0x66, 0x66, 0x55, 0xaa, 0x33, 0xcc, 0x33, 0xcc, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x66, 0x66, 0x33, 0xcc, 0x33, 0xcc, 0x33, 0xcc, 0x55, 0xaa, 0x33, 0xcc, 0x33, 0xcc, 0x66, 0x66, 0x66, 0x66, 0x55, 0xaa, 0x66, 0x66, 0x3c, 0x3c, 0x5a, 0x5a, 0x66, 0x66, 0x5a, 0x5a, 0x55, 0xaa, 0x55, 0xaa, 0x66, 0x66, 0x66, 0x66, 0xfc, 0xfc, 0xff, 0xff, 0xfa, 0xfa, 0xfa, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x6f, 0xf6, 0x6f, 0xf6, 0x7b, 0xde, 0x7d, 0xbe, 0x7b, 0xde, 0x6f, 0xf6, 0x7d, 0xbe, 0x7b, 0xde, 0x7d, 0xbe, 0x6f, 0xf6, 0x6f, 0xf6, 0x7b, 0xde, 0x7b, 0xde, 0x7d, 0xbe, 0x7d, 0xbe, 0x7d, 0xbe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x04, 0x00, 0x00, 0x20, 0x13, 0x43, 0x00, 0x00, 0x08, 0x60, 0x02, 0x00, 0x14, 0x27, 0x8a, 0x0c, 0x48, 0x20, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x41, 0x00, 0x00, 0x50, 0x20, 0x00, 0x08, 0x00, 0x53, 0x00, 0x04, 0x00, 0x20, 0x04, 0x0a, 0x00, 0x01, 0x01, 0x90, 0x50, 0x20, 0x04, 0x0a, 0x00, 0x60, 0x80, 0x00, 0x50, 0x00, 0x00, 0x00, 0x20, 0x00, 0x80, 0x00, 0x50, 0x20, 0x02, 0x00, 0x30, 0x63, 0x00, 0x9c, 0x00, 0x00, 0x04, 0x12, 0x00, 0x51, 0x4c, 0x0c, 0x04, 0x00, 0x00, 0x02, 0x28, 0x80, 0x08, 0x00, 0x00, 0x60, 0x02, 0x00, 0x12, 0x86, 0xce, 0x10, 0x48, 0x20, 0x04, 0x0a, 0x02, 0x04, 0x80, 0x00, 0x50, 0x00, 0x00, 0x20, 0x04, 0x11, 0x66, 0x00, 0x48, 0x20, 0x04, 0x02, 0x01, 0x8b, 0xc0, 0x00, 0x40, 0x00, 0x00, 0x08, 0x00, 0x61, 0x00, 0x04, 0x48, 0x20, 0x04, 0x1a, 0x13, 0x3b, 0x01, 0xcc, 0x48, 0x20, 0x04, 0x12, 0x15, 0x00, 0x01, 0x14, 0x48, 0x20, 0x04, 0x12, 0x11, 0x00, 0x00, 0x00, 0x48, 0x20, 0x00, 0x00, 0x20, 0x80, 0x00, 0x00, 0x48, 0x20, 0x00, 0x02, 0x24, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x48, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x04, 0x10, 0x02, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x73, 0x00, 0x00, 0x48, 0x20, 0x04, 0x10, 0x35, 0xe0, 0x00, 0x00, 0x08, 0x20, 0x00, 0x02, 0x01, 0x83, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0xc2, 0xa0, 0x01, 0x43, 0x21, 0xc7, 0x82, 0x00, 0x40, 0x00, 0x01, 0x83, 0x20, 0x43, 0x09, 0x10, 0x04, 0x00, 0x00, 0x28, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x25, 0x00, 0x63, 0x82, 0x00, 0x90, 0x00, 0x02, 0x0d, 0x00, 0x43, 0x03, 0x14, 0x10, 0x00, 0x00, 0x08, 0x00, 0x03, 0x83, 0x04, 0x10, 0x00, 0x00, 0x08, 0x00, 0x45, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x8a, 0x00, 0x10, 0x00, 0x02, 0x85, 0x28, 0x4d, 0x01, 0x14, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x8a, 0x14, 0xc2, 0xa0, 0x00, 0x20, 0x28, 0x88, 0x82, 0x00, 0x50, 0x00, 0x01, 0x83, 0x21, 0xc9, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x08, 0x01, 0x40, 0x88, 0x00, 0x00, 0x00, 0x02, 0x45, 0x20, 0x49, 0x8b, 0x04, 0x04, 0x00, 0x00, 0x28, 0x02, 0x00, 0x88, 0x00, 0x04, 0x00, 0x02, 0x0d, 0x00, 0x71, 0x83, 0x14, 0x04, 0x00, 0x00, 0x00, 0x01, 0x01, 0x83, 0x14, 0x04, 0x00, 0x00, 0x20, 0x02, 0x00, 0x83, 0x14, 0x04, 0x00, 0x00, 0x20, 0x14, 0x00, 0x82, 0x00, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x82, 0x04, 0x04, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x83, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x20, 0x02, 0x04, 0x00, 0x00, 0x00, 0x20, 0x10, 0x08, 0x01, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x13, 0xc0, 0xc3, 0xc9, 0x80, 0xeb, 0xc4, 0x00, 0x01, 0x00, 0x00, 0xc8, 0xa0, 0x03, 0x04, 0x00, 0x13, 0x00, 0xc4, 0xcb, 0xe3, 0xeb, 0xc0, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc1, 0xc0, 0x00, 0xc8, 0x80, 0x00, 0x02, 0xd3, 0xc2, 0xc8, 0x02, 0xc7, 0xc0, 0xc0, 0xe0, 0xc0, 0x47, 0xc0, 0xc8, 0xc0, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x88, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x13, 0xc0, 0x00, 0x00, 0x07, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0xc1, 0xeb, 0xd7, 0xea, 0x93, 0xe3, 0xc6, 0x00, 0x03, 0x00, 0x00, 0x00, 0xa0, 0x13, 0x00, 0x00, 0x83, 0x00, 0xc4, 0x07, 0x00, 0x01, 0x03, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x88, 0x00, 0xd3, 0xc0, 0x00, 0x03, 0xc0, 0xcf, 0xe1, 0x00, 0xc3, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x01, 0x00, 0xdb, 0x02, 0xd9, 0xc2, 0x83, 0x03, 0xc0, 0xc0, 0xc1, 0x40, 0x00, 0xc9, 0xe3, 0xcb, 0x44, 0xc0, 0xf3, 0x00, 0xc7, 0xca, 0xc0, 0xcf, 0xc4, 0x00, 0x88, 0xc8, 0xc0, 0x00, 0x00, 0xc0, 0xc8, 0xc0, 0xc3, 0xc0, 0xc9, 0x00, 0xc8, 0x04, 0xc0, 0x45, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x13, 0x05, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0xc0, 0x00, 0x03, 0x11, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x03, 0x13, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x13, 0x00, 0x22, 0x00, 0x00, 0x03, 0x00, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0xc0, 0x01, 0x88, 0x00, 0x00, 0x00, 0x40, 0x02, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x02, 0xa0, 0x02, 0x00, 0x00, 0x80, 0x00, 0x05, 0x10, 0x14, 0x00, 0x05, 0x04, 0x01, 0x10, 0x08, 0xa0, 0x08, 0x02, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x02, 0x04, 0x00, 0x40, 0x02, 0x88, 0x00, 0x04, 0x00, 0x80, 0x00, 0x84, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x10, 0x04, 0x00, 0x01, 0x80, 0x00, 0x20, 0x00, 0xc0, 0x00, 0x00, 0x08, 0x00, 0x03, 0x20, 0x00, 0x00, 0x90, 0x00, 0x82, 0xa0, 0x18, 0x80, 0x02, 0xc0, 0x28, 0x03, 0x01, 0x08, 0x08, 0x02, 0x02, 0x00, 0x40, 0x40, 0x80, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x08, 0x04, 0xa0, 0x04, 0x20, 0x00, 0x08, 0x00, 0x80, 0x40, 0x03, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x40, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x40, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x30, 0x71, 0x47, 0x01, 0x01, 0xf0, 0x10, 0x10, 0x30, 0x01, 0x80, 0x11, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0xd0, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x08, 0x8c, 0x30, 0x01, 0x50, 0x3c, 0x00, 0x20, 0x08, 0x00, 0x30, 0x02, 0x40, 0x09, 0x00, 0xa0, 0x00, 0x14, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1a, 0xc0, 0x08, 0x00, 0x20, 0x1d, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0xe0, 0x04, 0x0c, 0x31, 0x00, 0x04, 0x08, 0x06, 0xa2, 0x10, 0x00, 0x48, 0x01, 0xc0, 0x0c, 0x02, 0x10, 0x01, 0x00, 0x38, 0x62, 0x13, 0x11, 0x01, 0xa0, 0x08, 0x50, 0x30, 0xe2, 0x40, 0x0c, 0x78, 0x00, 0x00, 0x00, 0x10, 0x01, 0x9b, 0x00, 0x01, 0x30, 0x08, 0x1c, 0x30, 0x02, 0x47, 0x22, 0x00, 0x44, 0x18, 0x80, 0xb0, 0x61, 0x80, 0x00, 0x48, 0xc0, 0x14, 0x00, 0x30, 0xe2, 0x40, 0x02, 0x04, 0x01, 0x86, 0x00, 0x72, 0x01, 0xc0, 0x08, 0x10, 0xa1, 0x89, 0x94, 0x00, 0x01, 0x80, 0x16, 0x00, 0x23, 0x80, 0x00, 0xa8, 0x01, 0xe0, 0x00, 0x01, 0x02, 0x20, 0x10, 0x00, 0x02, 0x50, 0x06, 0x00, 0xe0, 0x14, 0x00, 0xb0, 0x81, 0xc4, 0x1c, 0x48, 0xf0, 0x01, 0x00, 0x40, 0x03, 0x90, 0x08, 0x02, 0x00, 0x08, 0x0e, 0x00, 0x03, 0xdb, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x30, 0x02, 0x00, 0x01, 0x91, 0x10, 0x00, 0x00, 0x38, 0x09, 0x80, 0x5c, 0xb1, 0x00, 0x02, 0x00, 0x00, 0x03, 0xc0, 0x15, 0x68, 0x14, 0x02, 0x00, 0x60, 0x01, 0x40, 0x00, 0x30, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x40, 0x07, 0x40, 0x74, 0xeb, 0x87, 0x0c, 0x00, 0x40, 0x07, 0x02, 0x74, 0x00, 0x80, 0x0c, 0x00, 0x10, 0x00, 0x54, 0x90, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x07, 0x40, 0x74, 0x08, 0x00, 0x0c, 0x02, 0xa8, 0x07, 0x00, 0x74, 0x01, 0x80, 0x0c, 0x00, 0xa0, 0x00, 0x00, 0x30, 0x01, 0x80, 0x00, 0x00, 0x00, 0x03, 0x14, 0x80, 0x03, 0x80, 0x0c, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x20, 0x07, 0x88, 0x74, 0x63, 0x40, 0x01, 0x10, 0x48, 0x10, 0x00, 0x30, 0x00, 0xa0, 0x07, 0x08, 0x00, 0x00, 0x00, 0x31, 0x70, 0x0b, 0x8c, 0x10, 0xc0, 0x01, 0xc0, 0x74, 0x00, 0x80, 0xa8, 0x00, 0x10, 0x00, 0x40, 0x38, 0x03, 0xc4, 0x46, 0x70, 0x40, 0x04, 0x42, 0x74, 0x01, 0x90, 0x06, 0x00, 0x01, 0xc0, 0x00, 0x48, 0x8b, 0x80, 0x0c, 0x00, 0x20, 0x06, 0x80, 0x74, 0x02, 0x00, 0x00, 0x08, 0xe2, 0xc7, 0x10, 0x10, 0x00, 0x20, 0x01, 0x00, 0x40, 0xc1, 0x00, 0x80, 0x01, 0x80, 0x00, 0x6a, 0x21, 0xc0, 0x14, 0x30, 0x01, 0x80, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0xa0, 0x01, 0x00, 0x50, 0x69, 0x80, 0x0c, 0x40, 0x00, 0x03, 0x00, 0x10, 0x02, 0x00, 0x20, 0x00, 0xe4, 0xc4, 0x40, 0x00, 0x82, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x40, 0x01, 0xb0, 0x1c, 0x70, 0xd0, 0x07, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x70, 0x07, 0x80, 0x40, 0x00, 0x00, 0x0d, 0x3a, 0x80, 0x1a, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x8a, 0xe0, 0x17, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3c, 0x70, 0x00, 0x05, 0x44, 0x14, 0x0c, 0x10, 0x42, 0x01, 0x80, 0xa2, 0x04, 0x88, 0x00, 0x20, 0x42, 0x80, 0x10, 0x08, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x8d, 0x80, 0x04, 0x40, 0x24, 0x00, 0x38, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x04, 0x00, 0x01, 0x8c, 0x42, 0x0a, 0x80, 0x0c, 0x44, 0x11, 0x10, 0x44, 0x00, 0x00, 0x40, 0x0b, 0x04, 0x82, 0x0c, 0x00, 0xb0, 0x00, 0x18, 0x00, 0x00, 0x01, 0x1c, 0xc2, 0x84, 0x08, 0x20, 0x06, 0x00, 0x04, 0x08, 0x12, 0x00, 0x00, 0xb8, 0x00, 0x20, 0x10, 0x08, 0x12, 0x08, 0x00, 0x04, 0x06, 0x00, 0xc1, 0x00, 0x30, 0x41, 0x00, 0x01, 0x64, 0x20, 0x02, 0x00, 0x98, 0x21, 0x00, 0x00, 0x0e, 0x08, 0xd1, 0x10, 0x08, 0x22, 0xaa, 0x00, 0x03, 0x00, 0x82, 0x24, 0x98, 0xa0, 0x08, 0x40, 0x05, 0x00, 0x11, 0x50, 0x23, 0x20, 0x22, 0x10, 0x03, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x50, 0x00, 0x40, 0x40, 0x10, 0xc8, 0x49, 0x08, 0x01, 0x06, 0x04, 0x0a, 0x40, 0x0a, 0x00, 0x81, 0x2c, 0x00, 0x00, 0x60, 0x10, 0x20, 0x08, 0x20, 0x01, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x08, 0xa0, 0x20, 0x32, 0x00, 0x0c, 0x02, 0x00, 0x08, 0x10, 0x80, 0x10, 0x00, 0x60, 0x00, 0x20, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x60, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xe0, 0x01, 0x88, 0x30, 0x61, 0xc3, 0x02, 0x00, 0xe0, 0xc1, 0x80, 0x30, 0x03, 0x83, 0x07, 0x80, 0x00, 0x06, 0x30, 0x0d, 0x21, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0xbc, 0x80, 0x09, 0x80, 0x1e, 0x01, 0xa0, 0x09, 0x0c, 0x28, 0x01, 0xa0, 0x0d, 0x00, 0x30, 0x00, 0x01, 0x70, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x0e, 0x00, 0x03, 0x00, 0x30, 0x31, 0x00, 0x07, 0x00, 0x30, 0x20, 0x01, 0xbd, 0x30, 0x00, 0x00, 0xc6, 0x00, 0xc1, 0xe0, 0x00, 0x42, 0x82, 0x00, 0x0e, 0x08, 0x30, 0x01, 0x80, 0x54, 0x6c, 0x83, 0x1c, 0x42, 0xa5, 0xc0, 0x00, 0x00, 0x13, 0x80, 0x07, 0xc4, 0xc0, 0x66, 0x08, 0x09, 0x24, 0x82, 0x00, 0x08, 0xb0, 0x04, 0x70, 0x00, 0x87, 0x02, 0x8c, 0x00, 0x10, 0x00, 0x30, 0x14, 0xc3, 0x84, 0x98, 0x80, 0xd0, 0x14, 0x30, 0x30, 0x02, 0x00, 0x0c, 0x61, 0xc0, 0x01, 0x90, 0x28, 0x00, 0x14, 0x06, 0x00, 0xd6, 0x47, 0x8c, 0xaa, 0x68, 0x20, 0x16, 0x00, 0xc1, 0x00, 0x0c, 0x94, 0x00, 0x20, 0x00, 0x48, 0x34, 0xc4, 0x09, 0x50, 0x93, 0x03, 0x50, 0x00, 0x10, 0x01, 0xbd, 0x30, 0x00, 0x03, 0xc2, 0x01, 0xa1, 0xe0, 0x94, 0x32, 0xe0, 0x08, 0x16, 0x01, 0x11, 0xef, 0x81, 0x80, 0x01, 0x8b, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x70, 0x3d, 0x08, 0x60, 0x03, 0x00, 0x08, 0x00, 0x40, 0x0d, 0x00, 0x00, 0x05, 0x80, 0x60, 0x04, 0x10, 0x16, 0x41, 0x00, 0x04, 0x00, 0xb0, 0x00, 0xe0, 0x00, 0x74, 0xe0, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x04, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x56, 0x3c, 0xe5, 0x9b, 0x66, 0x61, 0x46, 0x8e, 0x6c, 0x08, 0x02, 0x20, 0x68, 0x00, 0xc1, 0x96, 0xac, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x14, 0x10, 0xb0, 0x01, 0x40, 0x01, 0x02, 0xe0, 0x28, 0x00, 0x68, 0x00, 0x80, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0xc0, 0x34, 0x00, 0x20, 0x1f, 0x68, 0x07, 0x80, 0x28, 0x00, 0x58, 0x00, 0x40, 0x04, 0xb1, 0x94, 0x1c, 0x00, 0x01, 0x45, 0x12, 0x30, 0xe2, 0xd4, 0x20, 0x00, 0x14, 0x40, 0x01, 0x00, 0x10, 0x01, 0x00, 0x00, 0xe5, 0x8b, 0x48, 0x60, 0x02, 0x98, 0x1e, 0x30, 0x54, 0x6b, 0x28, 0x01, 0x41, 0x96, 0xe0, 0x00, 0xf0, 0x0b, 0x00, 0x10, 0x22, 0x80, 0x80, 0x01, 0x81, 0x83, 0x82, 0x00, 0x23, 0x86, 0x20, 0x00, 0xe2, 0xa5, 0x09, 0xe0, 0x22, 0x04, 0x80, 0x16, 0x01, 0x80, 0x42, 0x16, 0x20, 0x07, 0x0e, 0x80, 0x00, 0x04, 0x83, 0x00, 0xe2, 0x9e, 0x74, 0x88, 0x64, 0x00, 0x08, 0x62, 0x06, 0x00, 0x1e, 0x08, 0x58, 0x40, 0x00, 0x30, 0x40, 0x20, 0x40, 0x02, 0x25, 0x68, 0x02, 0x00, 0xa1, 0x08, 0x00, 0xe8, 0x79, 0x50, 0x2c, 0x01, 0x21, 0x8b, 0x00, 0x31, 0x62, 0x1c, 0x08, 0x10, 0x20, 0x08, 0x0c, 0xb0, 0x01, 0xc3, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x08, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x14, 0x00, 0xf0, 0x07, 0x00, 0x40, 0x05, 0x00, 0x01, 0x01, 0x60, 0x03, 0x80, 0xb8, 0x01, 0x80, 0x50, 0x10, 0x58, 0x0b, 0x80, 0x70, 0x00, 0x00, 0x16, 0x08, 0x1c, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x22, 0x01, 0x00, 0x00, 0x04, 0x20, 0x04, 0x81, 0x28, 0x04, 0x2c, 0x04, 0x80, 0x84, 0x00, 0x44, 0x00, 0x8c, 0x24, 0x00, 0x00, 0x22, 0x00, 0x04, 0x08, 0x44, 0x0c, 0x84, 0x00, 0x04, 0x21, 0x04, 0x20, 0x8a, 0x04, 0x00, 0x01, 0x0a, 0x00, 0x82, 0x08, 0x48, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x01, 0x04, 0x20, 0x00, 0x88, 0x00, 0x44, 0x02, 0x42, 0x01, 0x00, 0x04, 0x22, 0x00, 0x02, 0x00, 0x00, 0x04, 0x84, 0x20, 0x90, 0x20, 0x00, 0x00, 0x00, 0x20, 0x42, 0x04, 0x20, 0x00, 0x44, 0x20, 0x2c, 0x00, 0x0c, 0x49, 0x09, 0x28, 0x80, 0x20, 0x42, 0x01, 0x82, 0x0c, 0x02, 0x49, 0x0a, 0x04, 0x2c, 0x0c, 0x41, 0x30, 0x4c, 0x08, 0x02, 0x00, 0x24, 0x00, 0x0a, 0x1c, 0x00, 0x81, 0x02, 0x49, 0x11, 0x8c, 0x8c, 0x4c, 0x1c, 0x80, 0x04, 0x29, 0x40, 0x00, 0x04, 0x0c, 0x40, 0x00, 0x84, 0x44, 0x04, 0x8c, 0x8c, 0x88, 0x1c, 0x88, 0x0c, 0x08, 0x3a, 0x04, 0x1c, 0x04, 0x40, 0x0c, 0x40, 0x2a, 0x22, 0x5c, 0x0c, 0x0a, 0x84, 0x20, 0x04, 0x28, 0x3c, 0x04, 0x04, 0x0c, 0x0c, 0x04, 0x04, 0x4c, 0x82, 0x0c, 0x89, 0x04, 0x04, 0x04, 0x4c, 0x80, 0x08, 0x09, 0x00, 0x02, 0x00, 0x22, 0x02, 0x40, 0x04, 0x02, 0x90, 0x21, 0x09, 0x04, 0x84, 0x20, 0x00, 0x30, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x02, 0x04, 0x22, 0x20, 0x02, 0x22, 0x04, 0x04, 0x00, 0x00, 0x04, 0x01, 0x04, 0x22, 0x00, 0x00, 0x00, 0x04, 0x40, 0x02, 0x04, 0x02, 0x84, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x80, 0x00, 0x02, 0x00, 0x80, 0x00, 0x04, 0x01, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x88, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x06, 0x39, 0x08, 0x09, 0x00, 0x00, 0x0e, 0x09, 0x0a, 0x04, 0x0a, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x70, 0x00, 0x04, 0x04, 0x00, 0x00, 0x04, 0x00, 0x80, 0x00, 0x04, 0x00, 0xa0, 0x00, 0x00, 0x04, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x90, 0x00, 0x98, 0x00, 0x0c, 0x04, 0x0c, 0x00, 0x00, 0x06, 0x0a, 0x00, 0x00, 0x08, 0x02, 0x0c, 0x0c, 0x00, 0x0c, 0x0c, 0x0d, 0x00, 0x68, 0x08, 0x90, 0x80, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0x0a, 0x0c, 0x0d, 0x04, 0x0c, 0x0c, 0x0c, 0x89, 0x30, 0x04, 0x00, 0x50, 0x78, 0x0c, 0x05, 0x05, 0x10, 0x00, 0x00, 0x08, 0x04, 0x04, 0x08, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x3c, 0x05, 0x05, 0x0c, 0x05, 0x3c, 0x0e, 0x04, 0x64, 0x64, 0x02, 0x09, 0x60, 0x0c, 0x34, 0x0d, 0x09, 0x9c, 0x08, 0x00, 0x90, 0x04, 0x0a, 0x0c, 0x88, 0x9a, 0x00, 0x0e, 0x04, 0x06, 0x0c, 0x1c, 0x05, 0x0e, 0x38, 0xbe, 0x09, 0x0a, 0x00, 0xb0, 0x18, 0x0d, 0x9c, 0x00, 0x00, 0x0d, 0x00, 0x10, 0x08, 0x0d, 0x00, 0x00, 0x06, 0x30, 0x00, 0x00, 0x00, 0x0d, 0x08, 0x05, 0xa5, 0x0e, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x70, 0x04, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x90, 0x00, 0x00, 0x00, 0x90, 0x00, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x08, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x84, 0x0c, 0x00, 0x00, 0x04, 0x22, 0x0c, 0x34, 0x30, 0x00, 0x30, 0x00, 0x10, 0x34, 0x70, 0x30, 0x80, 0x3c, 0x38, 0x00, 0x50, 0x20, 0x00, 0x08, 0x00, 0x3c, 0x0c, 0x1c, 0x00, 0x0c, 0x28, 0x0c, 0x00, 0x38, 0x0c, 0x00, 0x08, 0x7c, 0x00, 0x18, 0x00, 0x20, 0x00, 0x00, 0x00, 0x70, 0x00, 0x70, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x32, 0x00, 0x10, 0x04, 0x38, 0x08, 0x00, 0x00, 0x10, 0x00, 0x04, 0x02, 0x00, 0x0c, 0x80, 0x30, 0x32, 0x30, 0x40, 0x00, 0x02, 0x12, 0x34, 0x5c, 0x12, 0x00, 0x10, 0x11, 0x18, 0x42, 0x7c, 0x18, 0x0c, 0x00, 0x10, 0x00, 0x08, 0x48, 0x3d, 0x0c, 0x40, 0x38, 0x08, 0x51, 0x08, 0x0c, 0x3c, 0x30, 0x34, 0x02, 0x49, 0x01, 0x3c, 0x00, 0x08, 0x5c, 0x42, 0x28, 0x08, 0x34, 0x04, 0x28, 0x28, 0x30, 0x58, 0x20, 0x8c, 0x18, 0x30, 0x00, 0x7d, 0x7c, 0x30, 0x02, 0xbc, 0x10, 0x00, 0x30, 0x10, 0x10, 0x0c, 0x10, 0x70, 0x00, 0x30, 0x50, 0x00, 0x04, 0x00, 0x00, 0x20, 0xb0, 0x10, 0x3c, 0x08, 0x00, 0x14, 0x1e, 0x00, 0x00, 0x18, 0x00, 0x0c, 0x0c, 0x04, 0x0c, 0x04, 0x3c, 0x30, 0x00, 0x00, 0x0c, 0x04, 0x78, 0x10, 0x30, 0x0a, 0x88, 0x00, 0x0c, 0x81, 0x3c, 0x08, 0x30, 0x08, 0x04, 0x11, 0x18, 0x04, 0x0c, 0x28, 0x30, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x0c, 0x00, 0x3c, 0x31, 0x08, 0x38, 0x00, 0x00, 0x0e, 0x01, 0x00, 0x0c, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x3e, 0x0c, 0x0c, 0x08, 0x38, 0x06, 0x00, 0x00, 0x00, 0x00, 0x09, 0x0a, 0x11, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x08, 0x0c, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x10, 0x00, 0x0e, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x20, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x0c, 0x02, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x06, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x0c, 0x04, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x30, 0x02, 0x04, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x40, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x09, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x40, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x08, 0x08, 0x00, 0x24, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x43, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0xe4, 0xe2, 0xe2, 0xf0, 0xaa, 0xf0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa3, 0xac, 0x66, 0x99, 0xdf, 0x80, 0x8c, 0xdc, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x30, 0xe4, 0xe4, 0xe2, 0xe2, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x02, 0xff, 0xff, 0xfe, 0x02, 0xff, 0xff, 0xfe, 0x02, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x0c, 0xfa, 0x0a, 0xe2, 0xe2, 0xf0, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0x00, 0xbf, 0xbf, 0x03, 0xbb, 0xfe, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0x44, 0xdd, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcf, 0xc0, 0xff, 0xff, 0xee, 0xee, 0xff, 0xff, 0xee, 0xe0, 0xcf, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xaa, 0xac, 0xff, 0xff, 0xee, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0xff, 0xff, 0xee, 0xee, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x00, 0x00, 0x31, 0x40, 0x01, 0x20, 0x31, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x01, 0x24, 0x70, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x09, 0x2c, 0x78, 0x00, 0x01, 0x24, 0x70, 0x00, 0x01, 0x28, 0x31, 0x40, 0x01, 0x28, 0x31, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x2c, 0x70, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x01, 0x20, 0x31, 0x40, 0x01, 0x20, 0x31, 0x40, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x16, 0x02, 0x01, 0x40, 0x16, 0x02, 0x01, 0x40, 0x00, 0x00, 0x31, 0x40, 0x09, 0x24, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x04, 0x78, 0x00, 0x01, 0x20, 0x30, 0x00, 0x01, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x0d, 0x22, 0x31, 0x00, 0x09, 0x20, 0x30, 0x00, 0x09, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf2, 0x01, 0x06, 0x1d, 0x72, 0x01, 0x06, 0x9d, 0x72, 0x01, 0x06, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x24, 0x48, 0x00, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x00, 0x04, 0x48, 0x00, 0x00, 0x04, 0x48, 0x00, 0xb2, 0x01, 0x02, 0x9d, 0x33, 0x25, 0x42, 0x1d, 0xb3, 0x25, 0x42, 0x9d, 0xb3, 0x25, 0x42, 0x1d, 0x33, 0x21, 0x02, 0x1d, 0x33, 0x21, 0x02, 0x0d, 0x33, 0x25, 0x42, 0x1d, 0xb3, 0x25, 0x42, 0x1d, 0xb3, 0x25, 0x42, 0x1d, 0xb3, 0x21, 0x02, 0x9d, 0x33, 0x25, 0x42, 0x9d, 0xb3, 0x21, 0x02, 0x0d, 0x01, 0x20, 0x00, 0x00, 0x01, 0x24, 0x40, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x20, 0x00, 0x00, 0x09, 0x24, 0x48, 0x00, 0x09, 0x20, 0x00, 0x00, 0x1b, 0x25, 0x4e, 0x95, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x9d, 0xfb, 0x25, 0x4e, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xd0, 0xf2, 0xf7, 0x80, 0x3c, 0xc3, 0x8d, 0xd8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe4, 0xe4, 0xff, 0xff, 0xca, 0xca, 0xff, 0xff, 0xff, 0x00, 0x33, 0xff, 0x7f, 0xff, 0xee, 0xee, 0x33, 0x33, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xcc, 0xff, 0xff, 0xf0, 0xaa, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xf0, 0xff, 0xff, 0xc5, 0xcc, 0xca, 0xaa, 0x5a, 0xa5, 0xf0, 0x66, 0xff, 0xff, 0xe2, 0xff, 0xcc, 0x00, 0xe2, 0xff, 0xf0, 0xcc, 0xee, 0x44, 0xca, 0xca, 0xfc, 0xfc, 0x5a, 0x5a, 0x55, 0xaa, 0x3c, 0x3c, 0x3c, 0x3c, 0x5a, 0x5a, 0x5a, 0x5a, 0x66, 0x66, 0x3c, 0x3c, 0x66, 0x66, 0x3c, 0x3c, 0x66, 0x66, 0x33, 0xcc, 0x3c, 0x3c, 0x3c, 0x3c, 0x5a, 0x5a, 0x66, 0x66, 0x5a, 0x5a, 0x33, 0xcc, 0x5a, 0x5a, 0x55, 0xaa, 0x3c, 0x3c, 0x66, 0x66, 0x5a, 0x5a, 0x33, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xee, 0x22, 0xff, 0xff, 0xff, 0xaa, 0xff, 0xff, 0xff, 0xcc, 0xff, 0xf0, 0xff, 0xaa, 0xff, 0xff, 0xff, 0x0f, 0xcf, 0xcf, 0xaf, 0xaf, 0xff, 0x0f, 0xff, 0x0f, 0xaf, 0xaf, 0xcf, 0xcf, 0xf5, 0xf5, 0xcf, 0xcf, 0xaf, 0xaf, 0xaf, 0xaf, 0xff, 0x0f, 0xff, 0x55, 0xaf, 0xaf, 0xdd, 0xdd, 0xf5, 0xf5, 0xdd, 0xdd, 0xf5, 0xf5, 0xbb, 0xbb, 0xff, 0x55, 0xbb, 0xbb, 0xbb, 0xbb, 0xff, 0x55, 0xf3, 0xf3, 0xdd, 0xdd, 0xff, 0x0f, 0xf5, 0xf5, 0xbb, 0xbb, 0xff, 0x33, 0xbb, 0xbb, 0xdd, 0xdd, 0xf5, 0xf5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x20, 0x19, 0x01, 0x0a, 0x00, 0x08, 0x60, 0x02, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00, 0x50, 0x00, 0x00, 0x08, 0x00, 0x01, 0x01, 0x90, 0x58, 0x20, 0x04, 0x0a, 0x09, 0x00, 0x00, 0x08, 0x50, 0x20, 0x04, 0x0a, 0x00, 0x02, 0x01, 0x40, 0x00, 0x20, 0x04, 0x02, 0x00, 0x40, 0x40, 0x00, 0x50, 0x20, 0x02, 0x00, 0x20, 0x42, 0x07, 0x10, 0x08, 0x20, 0x04, 0x10, 0x02, 0xd0, 0x4d, 0xc0, 0x04, 0x00, 0x04, 0x0a, 0x08, 0x40, 0x00, 0x00, 0x00, 0x60, 0x02, 0x00, 0x20, 0x26, 0x44, 0x00, 0x48, 0x20, 0x04, 0x0a, 0x02, 0x00, 0x0c, 0x00, 0x08, 0x20, 0x00, 0x20, 0x00, 0x43, 0x00, 0x04, 0x48, 0x20, 0x04, 0x12, 0x01, 0xeb, 0x00, 0x00, 0x48, 0x20, 0x00, 0x08, 0x31, 0x84, 0x09, 0x10, 0x48, 0x20, 0x04, 0x10, 0x00, 0x30, 0x00, 0x00, 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x40, 0x90, 0x48, 0x20, 0x04, 0x10, 0x01, 0x24, 0x01, 0xb4, 0x48, 0x20, 0x04, 0x12, 0x20, 0xc5, 0xe3, 0x84, 0x48, 0x20, 0x04, 0x12, 0x24, 0xc0, 0x08, 0x0c, 0x48, 0x20, 0x04, 0x02, 0x22, 0x81, 0x09, 0xac, 0x48, 0x20, 0x04, 0x12, 0x00, 0x04, 0x08, 0x00, 0x48, 0x20, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x48, 0x20, 0x00, 0x00, 0x02, 0x00, 0x4c, 0x00, 0x48, 0x20, 0x00, 0x00, 0x33, 0x80, 0xce, 0x00, 0x48, 0x20, 0x00, 0x00, 0x35, 0x80, 0xce, 0x00, 0x48, 0x20, 0x00, 0x00, 0x31, 0x80, 0xce, 0x00, 0x48, 0x20, 0x00, 0x00, 0x13, 0x00, 0xce, 0x00, 0x48, 0x20, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x42, 0x80, 0x01, 0x43, 0x28, 0xc7, 0x80, 0x00, 0xc0, 0x00, 0x01, 0x83, 0x28, 0x47, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x25, 0x00, 0x47, 0x80, 0x00, 0x00, 0x00, 0x02, 0x0d, 0x00, 0x47, 0x83, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0xc4, 0x83, 0x14, 0x10, 0x00, 0x00, 0x08, 0x00, 0x03, 0x03, 0x04, 0x10, 0x00, 0x00, 0x28, 0x00, 0x47, 0x8a, 0x00, 0x10, 0x00, 0x02, 0x85, 0x28, 0x55, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8b, 0x04, 0x42, 0x80, 0x00, 0x08, 0x28, 0xe0, 0x82, 0x00, 0xd0, 0x00, 0x01, 0x83, 0x28, 0x43, 0xab, 0x04, 0x04, 0x00, 0x00, 0x08, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x45, 0x00, 0x69, 0x8b, 0x24, 0x04, 0x00, 0x00, 0x20, 0x02, 0x20, 0x82, 0x00, 0x04, 0x00, 0x02, 0x0d, 0x14, 0x43, 0x8b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x83, 0x04, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x8b, 0x54, 0x04, 0x00, 0x00, 0x20, 0x02, 0x20, 0x8b, 0x84, 0x04, 0x00, 0x04, 0x28, 0x01, 0x50, 0x8b, 0x44, 0x04, 0x00, 0x00, 0x20, 0x14, 0x08, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x14, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x8a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x03, 0xc8, 0x01, 0x03, 0x93, 0xd3, 0xc7, 0x00, 0x00, 0x00, 0x03, 0x00, 0x13, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x03, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x62, 0xc3, 0x07, 0x03, 0x00, 0xc7, 0x00, 0xf3, 0xc0, 0xe3, 0xe2, 0x00, 0x01, 0x83, 0xea, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0x13, 0xe0, 0xc0, 0x00, 0x13, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0xc1, 0xc0, 0xc9, 0x03, 0x01, 0x81, 0xc7, 0xc7, 0x00, 0x00, 0x01, 0x03, 0xd3, 0xa0, 0x00, 0x00, 0x00, 0x03, 0x23, 0x00, 0x01, 0xc3, 0x00, 0x00, 0x00, 0x80, 0x11, 0x01, 0x05, 0x11, 0x01, 0xdb, 0x23, 0xc4, 0xdb, 0x03, 0x01, 0xc3, 0xc3, 0x57, 0x00, 0x00, 0x00, 0x03, 0x00, 0xcb, 0x80, 0x13, 0xc1, 0xc0, 0xd1, 0x03, 0x03, 0x40, 0x13, 0x13, 0x00, 0x00, 0xc3, 0x13, 0x00, 0x00, 0xe3, 0xc3, 0x13, 0xc0, 0xdb, 0x03, 0x00, 0xc3, 0x03, 0x00, 0xd3, 0x83, 0x00, 0x01, 0x13, 0x00, 0xc0, 0x00, 0x00, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x13, 0x13, 0xc0, 0x00, 0x03, 0x07, 0xc4, 0x05, 0x00, 0x07, 0x01, 0xc0, 0x03, 0x03, 0x13, 0x13, 0xc5, 0x00, 0x03, 0x00, 0x13, 0x01, 0x03, 0x23, 0xd3, 0x00, 0x01, 0x00, 0x03, 0x13, 0xc0, 0x23, 0x83, 0x00, 0x03, 0x00, 0x13, 0x01, 0x13, 0xe3, 0xc5, 0x00, 0x01, 0x00, 0x03, 0x23, 0xcb, 0x13, 0x80, 0x13, 0x13, 0x00, 0x03, 0x01, 0x00, 0x23, 0x03, 0x23, 0x03, 0x00, 0x03, 0x13, 0x00, 0x01, 0x01, 0x03, 0x83, 0x23, 0x13, 0x01, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x01, 0x80, 0x02, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x40, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x20, 0x88, 0x40, 0x40, 0x80, 0x08, 0x40, 0x00, 0x10, 0x20, 0x02, 0x00, 0x01, 0xc0, 0x00, 0x12, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x11, 0x82, 0x01, 0x40, 0x01, 0xc0, 0x02, 0x40, 0x00, 0x10, 0x03, 0x40, 0x40, 0x00, 0x01, 0x80, 0x00, 0x04, 0x00, 0x00, 0x01, 0x30, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x14, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x03, 0x10, 0x20, 0x04, 0x08, 0x01, 0x00, 0x01, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x20, 0xc0, 0x00, 0x80, 0x00, 0x04, 0x00, 0x50, 0x08, 0x00, 0x02, 0xa0, 0x40, 0x40, 0x00, 0x00, 0x82, 0x00, 0x00, 0x40, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x04, 0x01, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x01, 0x04, 0x00, 0x80, 0x00, 0x40, 0x00, 0x40, 0x00, 0x80, 0x00, 0x84, 0x00, 0x40, 0x00, 0x00, 0x01, 0x00, 0x02, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x01, 0x40, 0x01, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xb0, 0x0f, 0x00, 0x10, 0x71, 0x67, 0x22, 0x00, 0xa0, 0x06, 0xb4, 0x10, 0x00, 0x40, 0x06, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x10, 0x03, 0x80, 0x20, 0x70, 0x00, 0x00, 0x00, 0x00, 0x20, 0x3e, 0x0c, 0x10, 0x61, 0x60, 0x03, 0x00, 0x20, 0x0e, 0x14, 0x10, 0x00, 0x50, 0x0e, 0x00, 0x00, 0x00, 0x34, 0x50, 0x00, 0x00, 0x28, 0x01, 0xa0, 0x00, 0x16, 0x00, 0x03, 0x90, 0x00, 0x70, 0x02, 0x00, 0x01, 0x10, 0x03, 0xe0, 0x00, 0x00, 0x40, 0x1e, 0x00, 0x10, 0x02, 0x00, 0x09, 0x00, 0x02, 0x06, 0x20, 0xa8, 0x00, 0x00, 0x80, 0x98, 0xeb, 0xc0, 0x00, 0xd0, 0x70, 0x07, 0x00, 0x04, 0xa7, 0xc6, 0x0c, 0x10, 0x91, 0xa8, 0x08, 0x78, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x15, 0x00, 0x04, 0x20, 0x06, 0x08, 0x11, 0x02, 0x40, 0x8c, 0x02, 0xb0, 0x24, 0x35, 0x4b, 0x01, 0xcb, 0x03, 0x00, 0x20, 0x06, 0x00, 0x10, 0x11, 0x80, 0x0c, 0x00, 0x00, 0x06, 0x20, 0x35, 0x20, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x01, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0xc0, 0x00, 0x20, 0x00, 0x00, 0x20, 0x06, 0x00, 0x03, 0x80, 0x0a, 0x90, 0x00, 0x00, 0x20, 0x30, 0xc1, 0x80, 0x00, 0x00, 0x50, 0x20, 0x01, 0x08, 0xe0, 0x0e, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x94, 0x0c, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xe0, 0x07, 0x00, 0x90, 0xe2, 0x07, 0x10, 0x01, 0xe0, 0x0f, 0x00, 0x90, 0x01, 0xa0, 0x18, 0x00, 0x10, 0x00, 0x40, 0x00, 0x23, 0x8d, 0x00, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x74, 0xa8, 0x07, 0x01, 0x90, 0x02, 0x00, 0x10, 0x00, 0x00, 0x06, 0x00, 0x90, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x08, 0x00, 0xa0, 0x00, 0x00, 0x14, 0x01, 0x80, 0x00, 0x08, 0x44, 0xd8, 0x1c, 0x78, 0x22, 0x02, 0x46, 0x00, 0xf0, 0x06, 0x90, 0x90, 0x01, 0xa0, 0x0d, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x05, 0x00, 0x10, 0x09, 0x00, 0x00, 0x30, 0xe2, 0x07, 0x02, 0x43, 0x40, 0x4f, 0x91, 0x90, 0x02, 0x00, 0x09, 0x00, 0x10, 0x00, 0x40, 0x10, 0x23, 0x85, 0x0c, 0x70, 0xc0, 0x0f, 0x80, 0x90, 0xc1, 0x84, 0x0c, 0x00, 0xa0, 0x08, 0x10, 0x32, 0xc3, 0x80, 0x16, 0x02, 0x21, 0xcf, 0x80, 0x90, 0x09, 0x80, 0x20, 0x00, 0x00, 0x06, 0x1c, 0x38, 0x80, 0x0d, 0x20, 0x70, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x0d, 0x00, 0x00, 0x00, 0xc0, 0x0c, 0x30, 0x80, 0x00, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x80, 0x01, 0x80, 0x02, 0x08, 0x02, 0x00, 0x10, 0x70, 0x00, 0x00, 0x06, 0xb5, 0x02, 0x00, 0x40, 0x32, 0x01, 0x80, 0x0c, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x06, 0x08, 0x00, 0x00, 0x00, 0x32, 0x60, 0x03, 0x40, 0x00, 0x00, 0x00, 0x00, 0x38, 0x80, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x04, 0xf0, 0xc8, 0x41, 0x49, 0x54, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x03, 0x00, 0x90, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0xa0, 0x20, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x18, 0x00, 0x20, 0x44, 0x43, 0x00, 0x20, 0x00, 0x28, 0x03, 0x8c, 0xc0, 0x03, 0x00, 0x11, 0x00, 0x00, 0x02, 0x91, 0x08, 0x00, 0x00, 0x04, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x88, 0x10, 0x20, 0x02, 0x00, 0x60, 0x01, 0x46, 0x60, 0x0a, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x22, 0x04, 0x00, 0x12, 0x24, 0x01, 0x4c, 0x16, 0x10, 0x80, 0x14, 0x40, 0x14, 0xc0, 0x83, 0x08, 0x10, 0x08, 0x14, 0x00, 0x00, 0x08, 0x10, 0x31, 0x02, 0x00, 0x2c, 0x11, 0x08, 0x42, 0x84, 0x04, 0x07, 0x00, 0x40, 0x40, 0x00, 0x00, 0x8d, 0x00, 0x00, 0x80, 0x24, 0x31, 0x04, 0x42, 0x44, 0x20, 0x05, 0x04, 0x00, 0x12, 0x94, 0x2c, 0x40, 0x08, 0x0c, 0x88, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x14, 0x0d, 0x00, 0x10, 0x00, 0x00, 0x00, 0x02, 0x24, 0x00, 0x00, 0x00, 0x50, 0x10, 0x00, 0x02, 0x02, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x20, 0x00, 0x11, 0x40, 0x14, 0x02, 0x00, 0x00, 0x40, 0x00, 0x40, 0x10, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xc8, 0x0f, 0x31, 0x30, 0x63, 0x80, 0x1e, 0x01, 0x00, 0x07, 0x31, 0x30, 0x00, 0x00, 0x0e, 0x81, 0xb2, 0x0b, 0x88, 0x00, 0xe0, 0x02, 0x00, 0x10, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x05, 0x40, 0x82, 0x00, 0x09, 0x9c, 0x08, 0x05, 0x80, 0x0c, 0x03, 0x00, 0x01, 0x90, 0x10, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x01, 0x44, 0x00, 0x00, 0x2f, 0x00, 0x00, 0x00, 0x01, 0x30, 0x04, 0x40, 0x00, 0x80, 0xb0, 0x08, 0x0e, 0x10, 0x03, 0x22, 0x00, 0x02, 0xc0, 0x04, 0x3c, 0x00, 0x02, 0x00, 0x06, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x06, 0x08, 0x08, 0x00, 0x40, 0x70, 0xc0, 0x05, 0x0e, 0x30, 0x25, 0x87, 0xb0, 0x00, 0x05, 0x80, 0x1e, 0xb0, 0xc3, 0x8b, 0xac, 0x00, 0x0b, 0x22, 0x00, 0x00, 0x29, 0x87, 0x80, 0x00, 0xc5, 0x80, 0x1c, 0x00, 0x40, 0xc4, 0x30, 0x08, 0x60, 0x02, 0x32, 0x30, 0x2b, 0xc7, 0x88, 0x30, 0xc5, 0x80, 0x1c, 0x80, 0x00, 0x40, 0x30, 0x28, 0x00, 0x03, 0x20, 0x10, 0x00, 0x00, 0x1e, 0x80, 0xe0, 0x08, 0x00, 0x18, 0x00, 0x08, 0x30, 0x28, 0x10, 0x07, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x2c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x01, 0x28, 0x80, 0x02, 0x0e, 0x00, 0x00, 0x08, 0x00, 0x30, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x80, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0xc4, 0x00, 0x60, 0x00, 0x34, 0xe0, 0x0b, 0x00, 0x08, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc4, 0x00, 0x00, 0x00, 0x34, 0x00, 0x0b, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x10, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x0a, 0x00, 0x80, 0xe4, 0x0b, 0x03, 0x02, 0xe0, 0x10, 0x80, 0x02, 0x01, 0x90, 0x26, 0x00, 0xa2, 0x8a, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x60, 0x40, 0x0e, 0x20, 0x00, 0x01, 0x40, 0x1e, 0x00, 0xe0, 0x04, 0x0d, 0x00, 0x00, 0x50, 0x1e, 0x00, 0x00, 0x08, 0x0c, 0x38, 0x00, 0x00, 0x0e, 0x01, 0x00, 0x00, 0x54, 0xb4, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x0a, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x0e, 0x00, 0x00, 0x01, 0x80, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x06, 0x1c, 0xb9, 0x58, 0x05, 0x81, 0x00, 0xa0, 0x10, 0x1c, 0x00, 0x50, 0x04, 0x2c, 0x04, 0xe6, 0x8a, 0x00, 0x00, 0x59, 0x40, 0x00, 0x00, 0xa2, 0x44, 0x0a, 0x00, 0x12, 0x00, 0x0c, 0x01, 0x4b, 0xa1, 0x0e, 0xe8, 0x74, 0x00, 0x46, 0x18, 0xa2, 0x04, 0x40, 0x02, 0x02, 0x40, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x07, 0x40, 0x00, 0x00, 0x00, 0x1c, 0x30, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x0a, 0x0c, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x08, 0x9c, 0x00, 0x00, 0x00, 0x3c, 0x10, 0x00, 0x08, 0x00, 0x69, 0x00, 0x00, 0x81, 0x30, 0x00, 0x08, 0x00, 0xb4, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0x84, 0x08, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x04, 0x0b, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x04, 0x00, 0x00, 0x22, 0x04, 0x20, 0x2a, 0x04, 0x0c, 0x08, 0x00, 0x2c, 0x00, 0x1c, 0x08, 0x04, 0x24, 0x00, 0x00, 0x08, 0x04, 0x08, 0x08, 0x04, 0x0c, 0x00, 0x04, 0x0c, 0x00, 0x04, 0x08, 0x88, 0x04, 0x00, 0x00, 0x0a, 0x0c, 0x2a, 0x00, 0x00, 0x48, 0x02, 0x08, 0x08, 0x00, 0x48, 0x00, 0x8c, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x04, 0x04, 0x40, 0x00, 0x04, 0x00, 0x44, 0x04, 0x80, 0x04, 0x02, 0x00, 0x02, 0x28, 0x82, 0x04, 0x0c, 0x2c, 0x04, 0x00, 0x04, 0x0a, 0x88, 0x22, 0x80, 0x04, 0x24, 0x00, 0x02, 0x02, 0x24, 0x04, 0x04, 0x2c, 0x4c, 0x24, 0x0a, 0x8c, 0x1c, 0x24, 0x00, 0x0c, 0x04, 0x41, 0x00, 0x01, 0x0c, 0x19, 0x84, 0x04, 0x04, 0x42, 0x0c, 0x84, 0x04, 0x24, 0x02, 0x24, 0x04, 0x41, 0x00, 0x94, 0x8c, 0x08, 0x88, 0x0c, 0x40, 0x00, 0x08, 0x00, 0x09, 0x48, 0x82, 0x8c, 0x08, 0x08, 0x01, 0x08, 0x02, 0x04, 0x42, 0x08, 0x10, 0x80, 0x01, 0x24, 0x28, 0x04, 0x02, 0x18, 0x00, 0x08, 0x48, 0x00, 0x08, 0x00, 0x4a, 0x00, 0x00, 0x08, 0x2c, 0x20, 0x01, 0x84, 0x00, 0x18, 0x00, 0x80, 0x48, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x11, 0x00, 0x00, 0x10, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x90, 0x00, 0x10, 0x00, 0x00, 0xb0, 0x38, 0x00, 0x98, 0x08, 0x00, 0xb8, 0x00, 0x0c, 0x38, 0x00, 0x90, 0x00, 0x00, 0x08, 0x0a, 0x58, 0x0c, 0x70, 0x0c, 0x0e, 0x00, 0x08, 0x1e, 0x00, 0x00, 0x7c, 0x90, 0x00, 0x10, 0x78, 0x1c, 0x70, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0xb0, 0x50, 0x05, 0xb0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x05, 0x70, 0x30, 0x00, 0x00, 0x00, 0x1c, 0x70, 0x5c, 0x8c, 0x04, 0x00, 0x10, 0x00, 0x00, 0x60, 0x46, 0x6a, 0x7e, 0x10, 0x80, 0xa0, 0x70, 0x96, 0x26, 0x05, 0x40, 0x08, 0x7e, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x80, 0x00, 0x15, 0xa4, 0x18, 0xa0, 0x95, 0x7e, 0x00, 0x08, 0x05, 0x06, 0x99, 0x4e, 0x00, 0xae, 0x0e, 0x05, 0x00, 0x04, 0x90, 0x0c, 0x98, 0x10, 0x60, 0x08, 0x1c, 0x00, 0x00, 0x10, 0xa8, 0x0c, 0x00, 0x3d, 0x80, 0x06, 0xba, 0x01, 0x04, 0x28, 0x00, 0x0e, 0x10, 0x04, 0x0e, 0x70, 0x04, 0x00, 0x00, 0x70, 0x00, 0x5c, 0x0e, 0x68, 0xb0, 0x08, 0x10, 0x00, 0x00, 0x81, 0xb0, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x90, 0x7a, 0x00, 0x09, 0x00, 0x00, 0x59, 0x02, 0x00, 0x00, 0xa0, 0x60, 0xb0, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x50, 0x00, 0x20, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x04, 0x30, 0x04, 0x00, 0x80, 0x20, 0x54, 0x03, 0x8c, 0x04, 0x00, 0x00, 0x00, 0x34, 0x70, 0x00, 0xde, 0x74, 0x2c, 0x00, 0x00, 0x06, 0x8c, 0x00, 0x00, 0x0c, 0x0c, 0x00, 0x08, 0x0c, 0xf0, 0x0c, 0x00, 0x10, 0x0c, 0x00, 0x80, 0x0c, 0x8c, 0x0c, 0x00, 0x00, 0x30, 0x04, 0x00, 0x00, 0x00, 0x30, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x84, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x04, 0x80, 0x10, 0x00, 0x04, 0x80, 0xb0, 0x74, 0x1a, 0x8c, 0x0c, 0x00, 0x8c, 0xb0, 0x1c, 0x5d, 0x0c, 0x80, 0x08, 0xc0, 0x0c, 0x0c, 0x30, 0x04, 0x32, 0x0c, 0x8c, 0x02, 0x0c, 0x0c, 0x0c, 0x8c, 0x04, 0x30, 0x14, 0x28, 0x0c, 0x1c, 0x00, 0x1c, 0x00, 0xcc, 0x4c, 0x14, 0x00, 0x84, 0x0c, 0x74, 0x2c, 0x7c, 0x0c, 0x1c, 0x0c, 0xac, 0x0c, 0x3c, 0x0c, 0x1d, 0x0c, 0x38, 0x00, 0x20, 0x1c, 0x50, 0x20, 0x00, 0x9a, 0x00, 0x00, 0x8f, 0x7c, 0x00, 0xbc, 0x20, 0x02, 0x00, 0x8c, 0x00, 0x04, 0x08, 0x3c, 0x00, 0x0b, 0x30, 0x08, 0xa0, 0x30, 0x78, 0x0c, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x50, 0x3c, 0x00, 0x01, 0x80, 0x24, 0x1e, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x20, 0x30, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x04, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x0c, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x08, 0x00, 0x0c, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x08, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x06, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x01, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x01, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x05, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x0c, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x82, 0x40, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x08, 0x04, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x08, 0x00, 0x08, 0x00, 0x20, 0x00, 0x08, 0x00, 0x06, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x80, 0x89, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x80, 0x89, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x80, 0x99, 0x18, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x42, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x9e, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x01, 0x8e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x30, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x30, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x02, 0x12, 0x02, 0x00, 0x08, 0x01, 0x00, 0x00, 0x10, 0x00, 0x10, 0x01, 0x00, 0x01, 0x20, 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x02, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x02, 0x01, 0x00, 0x00, 0x12, 0x04, 0x01, 0x02, 0x00, 0x10, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x02, 0x04, 0x04, 0x00, 0x02, 0x04, 0x04, 0x00, 0x40, 0x02, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x20, 0x04, 0x00, 0x04, 0x41, 0x41, 0x10, 0x00, 0x80, 0x00, 0x00, 0x41, 0x02, 0x04, 0x02, 0x10, 0x00, 0x00, 0x00, 0x48, 0x00, 0x49, 0x00, 0x02, 0x08, 0x09, 0x00, 0x08, 0x04, 0x08, 0x04, 0x00, 0x04, 0x00, 0x02, 0x88, 0x00, 0x01, 0x00, 0x04, 0x00, 0x08, 0x08, 0x00, 0x10, 0x08, 0x04, 0x00, 0x04, 0x00, 0x0a, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x02, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x02, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x10, 0x40, 0x00, 0x30, 0x30, 0x1a, 0x00, 0x08, 0x90, 0x40, 0x09, 0x1a, 0x79, 0x1d, 0x0e, 0x00, 0x40, 0x00, 0x00, 0x60, 0x0a, 0x3c, 0x31, 0x7c, 0x70, 0xbc, 0x50, 0xbe, 0x30, 0x01, 0x00, 0x00, 0x50, 0x40, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x9a, 0x00, 0x4c, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x9a, 0x0c, 0x00, 0x04, 0x00, 0x08, 0x00, 0x90, 0x0a, 0xb0, 0x30, 0x00, 0x10, 0x40, 0x90, 0x0d, 0x60, 0x0d, 0x3e, 0x14, 0x3c, 0x9d, 0x40, 0x00, 0x30, 0x30, 0x0e, 0x90, 0x0e, 0xbd, 0x30, 0x0d, 0x00, 0x08, 0x00, 0x10, 0x00, 0x08, 0x3c, 0x00, 0x90, 0x70, 0x10, 0x90, 0x0e, 0x00, 0x4e, 0x00, 0x10, 0x70, 0x00, 0x70, 0x00, 0x4e, 0x30, 0x90, 0x6a, 0x90, 0x10, 0x0e, 0x99, 0x00, 0x4a, 0x50, 0x0e, 0x7d, 0x10, 0x09, 0x80, 0x00, 0x50, 0xba, 0x1e, 0xb0, 0x0e, 0x1e, 0x30, 0x00, 0x40, 0x58, 0x00, 0x78, 0x30, 0x90, 0x0c, 0x18, 0x00, 0x58, 0x00, 0x58, 0x1a, 0x0e, 0x10, 0x90, 0x00, 0x28, 0x0e, 0xbe, 0x00, 0xb0, 0x0a, 0x58, 0x1c, 0x9e, 0x10, 0x78, 0x30, 0x0d, 0xb0, 0x08, 0x1c, 0x18, 0xb0, 0x00, 0x9e, 0x90, 0x90, 0x58, 0x30, 0x0e, 0x96, 0x1d, 0x30, 0x00, 0x10, 0xa0, 0x1a, 0x06, 0xb6, 0x00, 0x1e, 0x70, 0x99, 0x0d, 0x90, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x1a, 0x08, 0x90, 0x00, 0x80, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xb0, 0x00, 0x00, 0x70, 0x20, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x8c, 0x0c, 0xfc, 0x00, 0x0e, 0x0c, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x10, 0x80, 0x80, 0x01, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x08, 0x00, 0x00, 0x00, 0x50, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00, 0x82, 0x0c, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x81, 0x83, 0x40, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x0c, 0x80, 0x00, 0x08, 0x08, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x06, 0x88, 0x00, 0x06, 0x0c, 0x8c, 0x6c, 0x00, 0x0c, 0x0c, 0x0c, 0x80, 0x10, 0x08, 0x00, 0x08, 0x32, 0x80, 0x00, 0x00, 0x0c, 0x8c, 0x00, 0x10, 0x0d, 0x00, 0x0c, 0x18, 0x18, 0x00, 0x00, 0x30, 0x42, 0x00, 0x1c, 0x88, 0x0c, 0x0c, 0x00, 0x80, 0x00, 0x00, 0x30, 0x00, 0x18, 0x80, 0x0c, 0x00, 0x8c, 0x00, 0x00, 0x0c, 0x00, 0x8c, 0x00, 0x88, 0x00, 0x0c, 0x80, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x06, 0x80, 0x00, 0x00, 0x00, 0x88, 0x00, 0x0c, 0x01, 0x88, 0xd0, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x0c, 0x00, 0x82, 0x80, 0x00, 0x00, 0x80, 0x00, 0x30, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x88, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x04, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x30, 0x31, 0x82, 0x22, 0x10, 0x44, 0x46, 0x86, 0x46, 0x31, 0x21, 0xc2, 0x20, 0x00, 0x24, 0xa1, 0x86, 0x04, 0x21, 0x31, 0x80, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x30, 0x31, 0x82, 0x22, 0x10, 0x44, 0x46, 0x86, 0x46, 0x31, 0x21, 0xc2, 0x20, 0x00, 0x24, 0xa1, 0x86, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x12, 0x18, 0x40, 0x06, 0x86, 0x46, 0x31, 0x21, 0xc2, 0x20, 0x00, 0x24, 0xa1, 0x86, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x31, 0x82, 0x22, 0x10, 0x44, 0x46, 0x86, 0x46, 0x31, 0x21, 0x82, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x71, 0x80, 0xa1, 0x00, 0x42, 0xc0, 0x86, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x31, 0x82, 0x22, 0x10, 0x44, 0x46, 0x86, 0x46, 0x31, 0x21, 0xc0, 0x20, 0x00, 0x20, 0x81, 0x86, 0x04, 0x01, 0x53, 0x80, 0x08, 0x00, 0x08, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x12, 0x18, 0x08, 0x02, 0xa4, 0x40, 0x01, 0x00, 0x40, 0x14, 0x00, 0x14, 0x00, 0x00, 0x80, 0x01, 0x40, 0x00, 0x34, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x14, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x18, 0x14, 0x00, 0x00, 0x40, 0x01, 0x00, 0x40, 0x14, 0x00, 0x14, 0x00, 0x00, 0x80, 0x01, 0x40, 0x00, 0x34, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x26, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x30, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x90, 0x04, 0x40, 0x00, 0x00, 0x02, 0x3c, 0x69, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0xc0, 0x08, 0x40, 0x00, 0x00, 0x02, 0x28, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x3d, 0x69, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x90, 0x00, 0x40, 0x00, 0x00, 0x02, 0x18, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x40, 0x00, 0x00, 0x02, 0x09, 0xf3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0xc0, 0x20, 0x40, 0x00, 0x00, 0x02, 0x1c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x3c, 0x69, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0xc0, 0x0c, 0x40, 0x00, 0x00, 0x02, 0x18, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x80, 0x24, 0x04, 0x00, 0x00, 0x20, 0x20, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x90, 0x84, 0x04, 0x00, 0x00, 0x20, 0x28, 0xd5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x88, 0x24, 0x04, 0x00, 0x00, 0x20, 0x20, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x80, 0x24, 0x04, 0x00, 0x00, 0x20, 0x24, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x88, 0x14, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x90, 0x04, 0x04, 0x00, 0x00, 0x20, 0x20, 0xd5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x88, 0x14, 0x04, 0x00, 0x00, 0x20, 0x20, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x90, 0x14, 0x04, 0x00, 0x00, 0x20, 0x24, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x12, 0x88, 0x00, 0x00, 0x10, 0x28, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x11, 0x08, 0x00, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x09, 0x08, 0x00, 0x00, 0x0c, 0xb4, 0x00, 0x00, 0x08, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xb0, 0x00, 0x00, 0x20, 0x0c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1c, 0xb0, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x19, 0x08, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x17, 0x88, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc8, 0x00, 0x1e, 0x1c, 0x12, 0x60, 0x00, 0x00, 0x00, 0x00, 0x01, 0x1e, 0x28, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0xc0, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x14, 0x10, 0x0a, 0x20, 0x00, 0x1c, 0x00, 0x00, 0x01, 0x0c, 0x34, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x13, 0x90, 0x00, 0x18, 0x20, 0x12, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x18, 0x10, 0x00, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x20, 0x28, 0x00, 0x00, 0x1c, 0x08, 0x00, 0x0e, 0x08, 0x88, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x3c, 0xf0, 0x00, 0x00, 0x20, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x03, 0x34, 0x00, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x02, 0x30, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x0c, 0x74, 0x00, 0x00, 0x00, 0x30, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x30, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x34, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x28, 0x80, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0c, 0x14, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x70, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x6a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x00, 0x00, 0x68, 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x05, 0x00, 0x00, 0x00, 0x00, 0x02, 0x30, 0x00, 0x00, 0x0c, 0x70, 0x00, 0x00, 0x01, 0x48, 0x00, 0x00, 0x0c, 0x38, 0x00, 0x00, 0x00, 0x4a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x30, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x0c, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x08, 0x00, 0x50, 0x10, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x40, 0x10, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0xc0, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x10, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x40, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x88, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x20, 0x05, 0x00, 0x00, 0x28, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x28, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x26, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x21, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x20, 0x10, 0x00, 0x01, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x60, 0x03, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x22, 0x50, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x14, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0xc4, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x02, 0xe0, 0x00, 0x00, 0x0c, 0x68, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, 0x28, 0x30, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x30, 0x28, 0x00, 0x00, 0x06, 0xf0, 0x00, 0x00, 0x1c, 0x40, 0x00, 0x00, 0x0f, 0x7c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x21, 0x10, 0x00, 0x00, 0x1c, 0x00, 0x10, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x01, 0xc4, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x1c, 0x78, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0d, 0x80, 0x00, 0x00, 0x14, 0x30, 0x00, 0x00, 0x03, 0x80, 0x00, 0x08, 0x1c, 0x38, 0x10, 0x00, 0x12, 0xe0, 0x00, 0x00, 0x68, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0xb0, 0x00, 0x08, 0x10, 0x80, 0x10, 0x00, 0x02, 0x44, 0x00, 0x00, 0x10, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x20, 0x94, 0x00, 0x08, 0x14, 0x80, 0x00, 0x00, 0x0d, 0x94, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x03, 0x44, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x03, 0x44, 0x00, 0x08, 0x10, 0x2c, 0x10, 0x00, 0x00, 0x94, 0x00, 0x08, 0x3c, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x1e, 0xe0, 0x00, 0x00, 0x08, 0x30, 0x00, 0x00, 0x0e, 0x68, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0xc0, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x01, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x1e, 0x70, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x40, 0x3c, 0x00, 0x00, 0x01, 0x70, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x1e, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x08, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x0e, 0x00, 0xb0, 0x00, 0x00, 0x1e, 0x10, 0x00, 0x0e, 0x00, 0xf0, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0xb0, 0x00, 0x00, 0x01, 0x14, 0x00, 0x00, 0x1e, 0x30, 0x00, 0x08, 0x00, 0xb0, 0xf0, 0x00, 0x00, 0x40, 0x00, 0x0e, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x70, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x40, 0x00, 0x0a, 0x00, 0x80, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x0d, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x18, 0x00, 0x00, 0x00, 0x80, 0x60, 0x00, 0x0c, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x20, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x21, 0x02, 0x20, 0x00, 0x00, 0x04, 0x04, 0x04, 0x0a, 0x04, 0x10, 0x04, 0x00, 0x0a, 0x08, 0x00, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x04, 0x08, 0x00, 0x04, 0x0a, 0x08, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x09, 0x04, 0x00, 0x22, 0x0c, 0x0a, 0x01, 0x0c, 0x00, 0x08, 0x01, 0x02, 0x04, 0x18, 0x04, 0x00, 0x0c, 0x04, 0x00, 0x04, 0x04, 0x24, 0x0c, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x18, 0x24, 0x00, 0x04, 0x0c, 0x0c, 0x00, 0x00, 0x24, 0x24, 0x02, 0x02, 0x04, 0x02, 0x88, 0x00, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x0c, 0x30, 0x04, 0x24, 0x04, 0x04, 0x04, 0x04, 0x98, 0x0c, 0x00, 0x02, 0x80, 0x04, 0x00, 0x00, 0x00, 0x14, 0x88, 0x08, 0x04, 0x00, 0x00, 0x0c, 0x0c, 0x04, 0x08, 0x08, 0x01, 0x04, 0x00, 0x94, 0x08, 0x00, 0x24, 0x0c, 0x10, 0x08, 0x04, 0x08, 0x00, 0x04, 0x0c, 0x00, 0x08, 0x24, 0x08, 0x04, 0x00, 0x00, 0x40, 0x88, 0x24, 0x20, 0x00, 0x02, 0x44, 0x04, 0x08, 0x04, 0x2c, 0x84, 0x4c, 0x04, 0x81, 0x00, 0x8c, 0x88, 0x08, 0x04, 0x04, 0x14, 0x02, 0x02, 0x88, 0x04, 0x0c, 0x0c, 0x14, 0x20, 0x08, 0x04, 0x4c, 0x08, 0x88, 0x00, 0x00, 0x84, 0x84, 0x00, 0x00, 0x04, 0x12, 0x0c, 0x8c, 0x02, 0x08, 0x00, 0x20, 0x0c, 0x04, 0x00, 0x80, 0x04, 0x40, 0x00, 0x22, 0x00, 0x1c, 0x04, 0x8c, 0x1c, 0x41, 0x04, 0x11, 0x02, 0x00, 0x00, 0x09, 0x02, 0x40, 0x44, 0x09, 0x04, 0x14, 0x14, 0x1c, 0x2c, 0x44, 0x04, 0x20, 0x04, 0x00, 0x02, 0x04, 0x28, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x04, 0x00, 0x20, 0x0e, 0x30, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x70, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x0c, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x05, 0x90, 0x0c, 0x00, 0x00, 0x90, 0x0c, 0x0c, 0x09, 0x08, 0x00, 0x08, 0xb0, 0x00, 0x30, 0x18, 0x0e, 0x00, 0x0c, 0x00, 0x0d, 0x00, 0x0a, 0x00, 0x0c, 0x08, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x98, 0x30, 0x20, 0x09, 0x0a, 0x0e, 0x00, 0x00, 0x0c, 0x0e, 0x00, 0x00, 0x04, 0x08, 0x0c, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x30, 0x08, 0x08, 0x00, 0x00, 0x00, 0x08, 0x18, 0x00, 0x0c, 0x08, 0x09, 0x00, 0x00, 0x10, 0x1c, 0xb0, 0x09, 0x08, 0x20, 0x08, 0x30, 0x18, 0x09, 0x0c, 0x0c, 0x5e, 0x0c, 0x05, 0x04, 0x04, 0x00, 0x95, 0xae, 0x08, 0x00, 0x08, 0x00, 0x0a, 0x30, 0x00, 0x08, 0x10, 0x38, 0x00, 0x0c, 0x00, 0x09, 0x90, 0x08, 0x38, 0x00, 0x0d, 0xb0, 0x20, 0x00, 0x30, 0xb8, 0x50, 0x0c, 0x08, 0x30, 0x00, 0x08, 0x90, 0xb8, 0xb8, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0d, 0x05, 0x0e, 0x0c, 0x08, 0x04, 0x0c, 0x90, 0x09, 0x0c, 0x00, 0x00, 0x09, 0x0a, 0x00, 0x30, 0xa0, 0x00, 0x0c, 0x5e, 0x18, 0x10, 0x00, 0x00, 0x2d, 0x00, 0x00, 0x0c, 0x14, 0xb0, 0x70, 0x75, 0x08, 0x00, 0x20, 0x20, 0x3c, 0xb8, 0x00, 0x0a, 0x00, 0x50, 0x00, 0x00, 0x90, 0x08, 0x00, 0x00, 0x0a, 0x00, 0x05, 0x00, 0x00, 0x0d, 0x0d, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x0c, 0x1a, 0x00, 0x0a, 0x0c, 0x0a, 0x0c, 0x02, 0x00, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x28, 0x0c, 0x10, 0x00, 0x00, 0x08, 0x8c, 0x08, 0x08, 0x08, 0x00, 0x0c, 0x80, 0x0c, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x08, 0x88, 0x00, 0x00, 0x08, 0x0c, 0x0a, 0x08, 0x00, 0x0d, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x0c, 0x0c, 0x50, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x0c, 0x0c, 0x88, 0x00, 0x0c, 0x00, 0x0c, 0x0c, 0x00, 0x09, 0x0c, 0x38, 0x0c, 0x0c, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x0c, 0x08, 0x0b, 0x80, 0xac, 0x28, 0x08, 0x0c, 0x08, 0x08, 0x30, 0x70, 0x0c, 0x02, 0x07, 0x0d, 0x01, 0x40, 0x09, 0x08, 0x20, 0x0c, 0x28, 0x08, 0x08, 0x08, 0x08, 0x30, 0x8c, 0x00, 0x08, 0x30, 0x08, 0x00, 0x01, 0x07, 0x08, 0x30, 0x00, 0x0c, 0x00, 0x00, 0x68, 0x88, 0x0c, 0x00, 0x00, 0x88, 0x08, 0x50, 0x18, 0x80, 0x00, 0x08, 0x08, 0x00, 0x00, 0x88, 0x80, 0x00, 0x59, 0x08, 0x06, 0x60, 0x0c, 0x0a, 0x0d, 0x0b, 0x00, 0x20, 0x10, 0x08, 0x0b, 0x00, 0x08, 0xa8, 0x0c, 0x00, 0xdc, 0xb8, 0x2c, 0x1c, 0x0c, 0x28, 0x00, 0x28, 0xa0, 0x00, 0x0c, 0x08, 0x0c, 0x0c, 0x88, 0x30, 0x0c, 0x0c, 0x0c, 0x0c, 0x00, 0x00, 0x08, 0x2c, 0x00, 0x30, 0x00, 0x00, 0x38, 0x2c, 0x82, 0x00, 0x0c, 0x0c, 0x6c, 0x28, 0x09, 0x00, 0x06, 0x00, 0x08, 0x08, 0x00, 0x20, 0x0c, 0x00, 0x80, 0x0c, 0x0a, 0x00, 0x0c, 0xac, 0x0c, 0x08, 0x0c, 0x0c, 0x0c, 0x00, 0x0f, 0x88, 0x0c, 0x30, 0x34, 0x08, 0x04, 0x00, 0x08, 0x08, 0x38, 0x18, 0x0c, 0x20, 0x0c, 0x00, 0x0c, 0x0c, 0x1a, 0x00, 0x30, 0x00, 0x10, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x06, 0x0c, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x04, 0x08, 0x20, 0x08, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x02, 0x00, 0x02, 0x08, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x22, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x01, 0x01, 0x00, 0x01, 0x01, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x08, 0x08, 0x08, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x02, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x20, 0x00, 0x08, 0x00, 0x41, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x43, 0x82, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0xc0, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0xc2, 0x80, 0x00, 0x20, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x81, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8c, 0x31, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0xc7, 0x8f, 0x1e, 0x3c, 0x78, 0xf1, 0xe3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x08, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x10, 0x08, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x02, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0xd0, 0x04, 0x40, 0x00, 0x00, 0x02, 0x18, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x08, 0x40, 0x00, 0x00, 0x02, 0x08, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x90, 0x0c, 0x40, 0x00, 0x00, 0x02, 0x1c, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0xc0, 0x08, 0x40, 0x00, 0x00, 0x02, 0x3d, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x02, 0x19, 0xa4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0x20, 0x40, 0x00, 0x00, 0x02, 0x09, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x08, 0x40, 0x00, 0x00, 0x02, 0x29, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x80, 0x24, 0x04, 0x00, 0x00, 0x20, 0x21, 0xd1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x90, 0x84, 0x04, 0x00, 0x00, 0x20, 0x28, 0xd1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x80, 0x14, 0x04, 0x00, 0x00, 0x20, 0x20, 0xc5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x88, 0x14, 0x04, 0x00, 0x00, 0x20, 0x20, 0xe9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x80, 0x84, 0x04, 0x00, 0x00, 0x20, 0x24, 0xc9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0xc0, 0x04, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x80, 0x14, 0x04, 0x00, 0x00, 0x20, 0x28, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x2c, 0x10, 0x00, 0x00, 0x01, 0xb0, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1c, 0x08, 0x00, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x08, 0x00, 0x00, 0x0c, 0x2c, 0x00, 0x00, 0x1c, 0xb0, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x09, 0xb0, 0x00, 0x00, 0x1c, 0x28, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x8c, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x00, 0x20, 0x32, 0x00, 0x00, 0x07, 0x10, 0x00, 0x0b, 0x02, 0x02, 0x60, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0xf0, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x07, 0x74, 0x00, 0x0e, 0x10, 0x00, 0x50, 0x00, 0x1c, 0x00, 0x00, 0x01, 0x00, 0x34, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x0d, 0x74, 0x00, 0x09, 0x20, 0x00, 0x18, 0x00, 0x08, 0x00, 0x00, 0x01, 0x0c, 0x34, 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x09, 0x90, 0x00, 0x00, 0x08, 0x30, 0x00, 0x00, 0x1c, 0xf0, 0x00, 0x07, 0x28, 0x00, 0x20, 0x00, 0x13, 0x00, 0x00, 0x1e, 0x00, 0x00, 0xe0, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x0c, 0x12, 0x00, 0x00, 0x3c, 0x40, 0x00, 0x00, 0x28, 0x80, 0x00, 0x00, 0x02, 0x30, 0x00, 0x00, 0x1c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x38, 0x30, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x1c, 0x30, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x22, 0x10, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x0d, 0x80, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x30, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x1c, 0xf0, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x70, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x1c, 0xf0, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x10, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x28, 0x10, 0x00, 0x00, 0x02, 0x48, 0x00, 0x00, 0x06, 0x4c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x10, 0x94, 0x00, 0x00, 0x02, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xe0, 0x00, 0x01, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x88, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x08, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x91, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x28, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x81, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0f, 0x4c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0f, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x4c, 0x00, 0x00, 0x28, 0x28, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3c, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x20, 0xc0, 0x00, 0x00, 0x0c, 0x84, 0x00, 0x00, 0x0e, 0x4c, 0x00, 0x00, 0x14, 0x32, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x30, 0x48, 0x00, 0x00, 0x30, 0x34, 0x00, 0x00, 0x09, 0xc4, 0x00, 0x00, 0x28, 0x70, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x44, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x00, 0x30, 0x48, 0x00, 0x00, 0x40, 0x40, 0x00, 0x00, 0x07, 0xf0, 0x00, 0x08, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x02, 0x3c, 0x00, 0x08, 0x0c, 0x28, 0x10, 0x00, 0x08, 0x94, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x07, 0x44, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x0f, 0xc0, 0x00, 0x08, 0x08, 0x2a, 0x00, 0x00, 0x0f, 0xc0, 0x00, 0x00, 0x10, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x07, 0x70, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x00, 0x08, 0x08, 0x08, 0x04, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x70, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x03, 0x30, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x3e, 0x70, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x16, 0x30, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x1e, 0x40, 0x00, 0x00, 0x01, 0x30, 0x00, 0x00, 0x01, 0x70, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x0c, 0x40, 0x00, 0x0e, 0x00, 0x00, 0xf0, 0x00, 0x01, 0x70, 0x00, 0x0e, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x08, 0x01, 0x30, 0xf0, 0x00, 0x00, 0x70, 0x00, 0x0a, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x0c, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x1e, 0x70, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x1f, 0x70, 0x00, 0x14, 0x00, 0x28, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x3c, 0x00, 0x00, 0x01, 0x60, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x01, 0x70, 0x00, 0x08, 0x40, 0xa8, 0x60, 0x00, 0x0d, 0x40, 0x00, 0x14, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x70, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x1e, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x40, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x28, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0a, 0x00, 0x02, 0x04, 0x00, 0x08, 0x02, 0x02, 0x01, 0x02, 0x20, 0x00, 0x02, 0x00, 0x04, 0x02, 0x20, 0x02, 0x0c, 0x01, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x01, 0x04, 0x04, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x01, 0x02, 0x00, 0x08, 0x84, 0x04, 0x0a, 0x04, 0x80, 0x04, 0x02, 0x0c, 0x08, 0x08, 0x84, 0x02, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x0c, 0x04, 0x41, 0x00, 0x01, 0x0c, 0x04, 0x02, 0x30, 0x04, 0x02, 0x01, 0x01, 0x02, 0x01, 0x10, 0x02, 0x88, 0x0c, 0x04, 0x04, 0x01, 0x84, 0x01, 0x00, 0x84, 0x04, 0x04, 0x24, 0x04, 0x08, 0x00, 0x0c, 0x0a, 0x0c, 0x24, 0x18, 0x44, 0x0c, 0x24, 0x00, 0x2c, 0x08, 0x04, 0x24, 0x10, 0x00, 0x34, 0x04, 0x52, 0x08, 0x28, 0x2c, 0x04, 0x04, 0x04, 0x04, 0x24, 0x08, 0x0a, 0x21, 0x28, 0x44, 0x24, 0x02, 0x01, 0x21, 0x0c, 0x09, 0x0c, 0x0c, 0x04, 0x18, 0x04, 0x04, 0x11, 0x01, 0x04, 0x02, 0x01, 0x04, 0x04, 0x09, 0x28, 0x04, 0x9c, 0x00, 0x8c, 0x08, 0x20, 0x14, 0x4c, 0x08, 0x08, 0x14, 0x02, 0x02, 0x14, 0x04, 0x1c, 0x8c, 0x0c, 0x09, 0x09, 0x21, 0x84, 0x09, 0x04, 0x04, 0x08, 0x08, 0x84, 0x04, 0x22, 0x04, 0x08, 0x02, 0x8c, 0x04, 0x01, 0x01, 0x01, 0x0c, 0x04, 0x40, 0x00, 0x28, 0x08, 0x20, 0x0a, 0x24, 0x0c, 0x04, 0x04, 0x24, 0x0c, 0x08, 0x08, 0x00, 0x80, 0x08, 0x04, 0x01, 0x20, 0x21, 0x42, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x20, 0x28, 0x00, 0x82, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x09, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x30, 0x00, 0x00, 0xb0, 0x20, 0x80, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x3d, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x30, 0x08, 0x05, 0x80, 0x0a, 0x0c, 0x00, 0x00, 0x81, 0x70, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x3a, 0x0d, 0x00, 0x8c, 0x00, 0x50, 0xbc, 0xb0, 0x8a, 0x00, 0x00, 0x0c, 0x08, 0x0c, 0xb0, 0x71, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0c, 0x00, 0x00, 0x0d, 0x00, 0x1c, 0x70, 0x0e, 0x38, 0x3a, 0x05, 0x00, 0x0e, 0x00, 0x01, 0x3d, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0xbd, 0xbd, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x08, 0x0e, 0xbc, 0x08, 0x0c, 0x00, 0x18, 0x0a, 0x08, 0x09, 0x7a, 0x0c, 0x08, 0x30, 0x00, 0x00, 0x9e, 0x10, 0x00, 0x2d, 0x8c, 0x04, 0x0c, 0x00, 0x0d, 0x00, 0x30, 0x10, 0x00, 0x04, 0x01, 0x08, 0x0e, 0x69, 0x0e, 0x40, 0xbd, 0x08, 0x08, 0x58, 0x0c, 0x0a, 0x08, 0x90, 0x81, 0x20, 0x7a, 0x15, 0x00, 0xa0, 0x90, 0x0a, 0x5c, 0x08, 0xae, 0x08, 0x70, 0x08, 0x5c, 0x00, 0x20, 0x5c, 0x6c, 0xbc, 0x06, 0xbe, 0x4e, 0x22, 0x30, 0x38, 0x5c, 0x38, 0x0c, 0xa8, 0x9d, 0x90, 0x08, 0xa0, 0x91, 0x0c, 0x78, 0x9d, 0xa0, 0x00, 0x00, 0x08, 0x0e, 0x0c, 0x10, 0xa1, 0x05, 0x05, 0x0c, 0x0e, 0x6e, 0x02, 0x1c, 0x08, 0xb0, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x30, 0x0c, 0x00, 0x08, 0x00, 0x00, 0x0c, 0x5e, 0x10, 0x0e, 0x1d, 0x50, 0x00, 0x0d, 0x00, 0x00, 0x50, 0x05, 0x00, 0x98, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x40, 0x00, 0x00, 0x0e, 0x0e, 0x00, 0x0a, 0x60, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x70, 0x00, 0x70, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x0c, 0x08, 0x00, 0x00, 0x8c, 0x08, 0x0c, 0x08, 0x00, 0x00, 0x0c, 0x80, 0x01, 0x08, 0x20, 0x0c, 0x08, 0x78, 0x08, 0x08, 0x04, 0x05, 0x0c, 0x08, 0x0c, 0x08, 0x0c, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x88, 0x0c, 0x00, 0x00, 0x38, 0x0c, 0x0c, 0x0c, 0x10, 0x08, 0x0c, 0x08, 0x00, 0x00, 0x1c, 0x0c, 0x50, 0x0a, 0x00, 0x14, 0x00, 0x0c, 0x78, 0x30, 0x00, 0x0c, 0x80, 0x0c, 0x0c, 0x1b, 0x8c, 0x0c, 0x00, 0x4c, 0x5c, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x08, 0x0c, 0x58, 0x00, 0x0c, 0x00, 0xb8, 0x08, 0x0c, 0x0c, 0x8c, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x3c, 0x0a, 0x3c, 0x0c, 0x0c, 0x00, 0x0c, 0x00, 0x8c, 0x1c, 0x50, 0x00, 0x08, 0x0c, 0x1c, 0x00, 0x30, 0x0c, 0x0c, 0x04, 0x0c, 0x88, 0xac, 0x00, 0x04, 0x30, 0x10, 0x38, 0x0c, 0x00, 0x0c, 0x0c, 0x88, 0x0c, 0x0c, 0x80, 0x0c, 0x00, 0x0c, 0x08, 0x04, 0x0c, 0x88, 0x8c, 0x04, 0x08, 0x88, 0x04, 0x10, 0x08, 0x3c, 0x00, 0x0c, 0x00, 0x10, 0x0c, 0x18, 0x00, 0x00, 0x58, 0x0c, 0x0c, 0x08, 0x88, 0x08, 0x3c, 0x8c, 0x0c, 0x00, 0x3c, 0x28, 0x00, 0x5c, 0x08, 0x00, 0x00, 0x2c, 0x08, 0x28, 0x8c, 0xf0, 0x08, 0x38, 0x89, 0x00, 0x84, 0x80, 0x08, 0x08, 0x10, 0x00, 0xa0, 0x00, 0x20, 0x0c, 0x08, 0x08, 0x08, 0x0c, 0xac, 0x0c, 0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x88, 0x00, 0xac, 0x3c, 0x00, 0x0c, 0x0a, 0x08, 0x00, 0x00, 0x20, 0x20, 0x00, 0x1c, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x80, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0a, 0x04, 0x40, 0x00, 0x00, 0x04, 0x00, 0x22, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x04, 0x00, 0x08, 0x00, 0x04, 0x00, 0x09, 0x00, 0x04, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x04, 0x0a, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x10, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x02, 0x00, 0x00, 0x2d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x01, 0x04, 0x00, 0x04, 0x01, 0x04, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x0a, 0x00, 0x00, 0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x02, 0x40, 0x00, 0x40, 0x00, 0x00, 0x20, 0x02, 0x0c, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x01, 0x00, 0x01, 0x0c, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0x04, 0x08, 0x00, 0x00, 0x04, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x02, 0x00, 0x2b, 0xb6, 0xe0, 0x30, 0xa1, 0x00, 0x0a, 0x30, 0xa1, 0x00, 0x03, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x30, 0xa1, 0x00, 0x05, 0x30, 0xe1, 0x00, 0x81, 0x30, 0xc1, 0x00, 0x81, 0x30, 0x02, 0x00, 0x19, 0x97, 0x3b, 0x30, 0xa1, 0x00, 0x0d, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00 }; const unsigned int usb_2020_bin_len = 149516;
378619.c
/* (c) 2018 Microchip Technology Inc. and its subsidiaries. Subject to your compliance with these terms, you may use Microchip software and any derivatives exclusively with Microchip products. It is your responsibility to comply with third party license terms applicable to your use of third party software (including open source software) that may accompany Microchip software. THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. */ #include "../include/pin_manager.h" void PIN_MANAGER_Initialize() { PD5_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); PD5_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PD5_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PD5_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PD5_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INPUT_DISABLE_gc); PA2_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); PA2_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PA2_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PA2_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PA2_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); CONF_WIFI_M2M_RESET_PIN_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); CONF_WIFI_M2M_RESET_PIN_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); CONF_WIFI_M2M_RESET_PIN_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); CONF_WIFI_M2M_RESET_PIN_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); CONF_WIFI_M2M_RESET_PIN_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); SW0_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); SW0_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); SW0_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_UP); SW0_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); SW0_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PA4_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); PA4_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PA4_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PA4_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PA4_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PA3_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); PA3_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PA3_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PA3_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PA3_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PA6_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); PA6_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PA6_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PA6_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PA6_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PA5_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); PA5_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PA5_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PA5_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PA5_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PA7_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); PA7_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PA7_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PA7_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PA7_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PF1_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); PF1_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PF1_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PF1_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PF1_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); PF0_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); PF0_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); PF0_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); PF0_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); PF0_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); CONF_WIFI_M2M_CHIP_ENABLE_PIN_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); CONF_WIFI_M2M_CHIP_ENABLE_PIN_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); CONF_WIFI_M2M_CHIP_ENABLE_PIN_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); CONF_WIFI_M2M_CHIP_ENABLE_PIN_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); CONF_WIFI_M2M_CHIP_ENABLE_PIN_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); LED_YELLOW_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); LED_YELLOW_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High true); LED_YELLOW_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); LED_YELLOW_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); LED_YELLOW_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); CONF_WIFI_M2M_INT_PIN_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); CONF_WIFI_M2M_INT_PIN_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); CONF_WIFI_M2M_INT_PIN_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); CONF_WIFI_M2M_INT_PIN_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); CONF_WIFI_M2M_INT_PIN_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); LED_RED_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); LED_RED_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High true); LED_RED_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); LED_RED_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); LED_RED_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); LED_BLUE_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); LED_BLUE_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High true); LED_BLUE_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); LED_BLUE_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); LED_BLUE_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); SW1_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); SW1_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); SW1_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_UP); SW1_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); SW1_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); CONF_WIFI_M2M_WAKE_PIN_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_IN); CONF_WIFI_M2M_WAKE_PIN_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High false); CONF_WIFI_M2M_WAKE_PIN_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); CONF_WIFI_M2M_WAKE_PIN_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); CONF_WIFI_M2M_WAKE_PIN_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); LED_GREEN_set_dir( // <y> Pin direction // <id> pad_dir // <PORT_DIR_OFF"> Off // <PORT_DIR_IN"> In // <PORT_DIR_OUT"> Out PORT_DIR_OUT); LED_GREEN_set_level( // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High true); LED_GREEN_set_pull_mode( // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up PORT_PULL_OFF); LED_GREEN_set_inverted( // <y> Invert I/O on pin // <id> pad_invert // <false"> Not inverted // <true"> Inverted false); LED_GREEN_set_isc( // <y> Pin Input/Sense Configuration // <id> pad_isc // <PORT_ISC_INTDISABLE_gc"> Interrupt disabled but input buffer enabled // <PORT_ISC_BOTHEDGES_gc"> Sense Both Edges // <PORT_ISC_RISING_gc"> Sense Rising Edge // <PORT_ISC_FALLING_gc"> Sense Falling Edge // <PORT_ISC_INPUT_DISABLE_gc"> Digital Input Buffer disabled // <PORT_ISC_LEVEL_gc"> Sense low Level PORT_ISC_INTDISABLE_gc); /* PORTMUX Initialization */ PORTMUX.USARTROUTEA = 0x00; PORTMUX.EVSYSROUTEA = 0x00; PORTMUX.TCAROUTEA = 0x00; PORTMUX.CCLROUTEA = 0x00; PORTMUX.TCBROUTEA = 0x00; PORTMUX.TWISPIROUTEA = 0x00; }
336895.c
/* * The MIT License (MIT) * * Copyright (c) 2015 Alexander Chumakov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "system.h" #include "mtick.h" #include "hw-wdt.h" #include "hw-uart.h" #include "mstring.h" #include "mcode-config.h" #include <avr/wdt.h> #include <avr/boot.h> #include <avr/pgmspace.h> #include <avr/interrupt.h> void reboot(void) { mprintstrln(PSTR("System reboot has been requested.")); wdt_reboot(); } #ifdef MCODE_BOOTLOADER void bootloader(void) { mprintstrln(PSTR("Enter bootloader mode.")); #ifdef MCODE_WDT wdt_stop(); #endif /* MCODE_WDT */ void (*bl_main)(void) = (void *)MCODE_BOOTLOADER_BASE; bl_main(); #ifdef MCODE_WDT wdt_start(); #endif /* MCODE_WDT */ } #endif /* MCODE_BOOTLOADER */
637340.c
/* * FreeRTOS Kernel V10.3.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * This demo application creates seven co-routines and one task (two including * the idle task). The co-routines execute as part of the idle task hook. * * Five of the created co-routines are the standard 'co-routine flash' * co-routines contained within the Demo/Common/Minimal/crflash.c file and * documented on the FreeRTOS.org WEB site. * * The 'LCD Task' rotates a string on the LCD, delaying between each character * as necessitated by the slow interface, and delaying between each string just * long enough to enable the text to be read. * * The sixth co-routine controls the transmission of a string to UART 0. The * co-routine periodically sends the first character of the string to the UART, * with the UART's TxEnd interrupt being used to transmit the remaining * characters. The UART's RxEnd interrupt receives the characters and places * them on a queue to be processed by the seventh and final co-routine. An * error is latched should an unexpected character be received, or any * character be received out of sequence. * * A loopback connector is required to ensure that each character transmitted * on the UART is also received on the same UART. For test purposes the UART * FIFO's are not utalised in order to maximise the interrupt overhead. Also * a pseudo random interval is used between the start of each transmission in * order that the resultant interrupts are more randomly distributed and * therefore more likely to highlight any problems. * * The flash co-routines control LED's zero to four. LED five is toggled each * time the string is transmitted on the UART. LED six is toggled each time * the string is CORRECTLY received on the UART. LED seven is latched on should * an error be detected in any task or co-routine. * * In addition the idle task makes repetative calls to * prvSetAndCheckRegisters(). This simply loads the general purpose registers * with a known value, then checks each register to ensure the held value is * still correct. As a low priority task this checking routine is likely to * get repeatedly swapped in and out. A register being found to contain an * incorrect value is therefore indicative of an error in the task switching * mechansim. * */ /* Scheduler include files. */ #include "FreeRTOS.h" #include "task.h" #include "queue.h" #include "croutine.h" /* Demo application include files. */ #include "partest.h" #include "crflash.h" /* Library include files. */ #include "DriverLib.h" /* The time to delay between writing each character to the LCD. */ #define mainCHAR_WRITE_DELAY ( 2 / portTICK_PERIOD_MS ) /* The time to delay between writing each string to the LCD. */ #define mainSTRING_WRITE_DELAY ( 400 / portTICK_PERIOD_MS ) /* The number of flash co-routines to create. */ #define mainNUM_FLASH_CO_ROUTINES ( 5 ) /* The length of the queue used to pass received characters to the Comms Rx task. */ #define mainRX_QUEUE_LEN ( 5 ) /* The priority of the co-routine used to initiate the transmission of the string on UART 0. */ #define mainTX_CO_ROUTINE_PRIORITY ( 1 ) /* The priority of the co-routine used to receive characters from the UART. */ #define mainRX_CO_ROUTINE_PRIORITY ( 2 ) /* Only one co-routine is created so its index is not important. */ #define mainTX_CO_ROUTINE_INDEX ( 0 ) #define mainRX_CO_ROUTINE_INDEX ( 0 ) /* The time between transmissions of the string on UART 0. This is pseudo random in order to generate a bit or randomness to when the interrupts occur.*/ #define mainMIN_TX_DELAY ( 40 / portTICK_PERIOD_MS ) #define mainMAX_TX_DELAY ( ( TickType_t ) 0x7f ) #define mainOFFSET_TIME ( ( TickType_t ) 3 ) /* The time the Comms Rx task should wait to receive a character. This should be slightly longer than the time between transmissions. If we do not receive a character after this time then there must be an error in the transmission or the timing of the transmission. */ #define mainCOMMS_RX_DELAY ( mainMAX_TX_DELAY + 20 ) /* The task priorites. */ #define mainLCD_TASK_PRIORITY ( tskIDLE_PRIORITY ) #define mainCOMMS_RX_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 ) /* The LED's toggled by the various tasks. */ #define mainCOMMS_FAIL_LED ( 7 ) #define mainCOMMS_RX_LED ( 6 ) #define mainCOMMS_TX_LED ( 5 ) /* The baud rate used by the UART comms tasks/co-routine. */ #define mainBAUD_RATE ( 57600 ) /* FIFO setting for the UART. The FIFO is not used to create a better test. */ #define mainFIFO_SET ( 0x10 ) /* The string that is transmitted on the UART contains sequentially the characters from mainFIRST_TX_CHAR to mainLAST_TX_CHAR. */ #define mainFIRST_TX_CHAR '0' #define mainLAST_TX_CHAR 'z' /* Just used to walk through the program memory in order that some random data can be generated. */ #define mainTOTAL_PROGRAM_MEMORY ( ( unsigned long * ) ( 8 * 1024 ) ) #define mainFIRST_PROGRAM_BYTES ( ( unsigned long * ) 4 ) /* The error routine that is called if the driver library encounters an error. */ #ifdef DEBUG void __error__(char *pcFilename, unsigned long ulLine) { } #endif /*-----------------------------------------------------------*/ /* * The task that rotates text on the LCD. */ static void vLCDTask( void * pvParameters ); /* * The task that receives the characters from UART 0. */ static void vCommsRxCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex ); /* * The co-routine that periodically initiates the transmission of the string on * the UART. */ static void vSerialTxCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex ); /* * Writes a string the the LCD. */ static void prvWriteString( const char *pcString ); /* * Initialisation routine for the UART. */ static void vSerialInit( void ); /* * Thread safe write to the PDC. */ static void prvPDCWrite( char cAddress, char cData ); /* * Function to simply set a known value into the general purpose registers * then read them back to ensure they remain set correctly. An incorrect value * being indicative of an error in the task switching mechanism. */ void prvSetAndCheckRegisters( void ); /* * Latch the LED that indicates that an error has occurred. */ void vSetErrorLED( void ); /* * Sets up the PLL and ports used by the demo. */ static void prvSetupHardware( void ); /*-----------------------------------------------------------*/ /* Error flag set to pdFAIL if an error is encountered in the tasks/co-routines defined within this file. */ unsigned portBASE_TYPE uxErrorStatus = pdPASS; /* The next character to transmit. */ static char cNextChar; /* The queue used to transmit characters from the interrupt to the Comms Rx task. */ static QueueHandle_t xCommsQueue; /*-----------------------------------------------------------*/ void Main( void ) { /* Create the queue used to communicate between the UART ISR and the Comms Rx task. */ xCommsQueue = xQueueCreate( mainRX_QUEUE_LEN, sizeof( char ) ); /* Setup the ports used by the demo and the clock. */ prvSetupHardware(); /* Create the co-routines that flash the LED's. */ vStartFlashCoRoutines( mainNUM_FLASH_CO_ROUTINES ); /* Create the co-routine that initiates the transmission of characters on the UART. */ xCoRoutineCreate( vSerialTxCoRoutine, mainTX_CO_ROUTINE_PRIORITY, mainTX_CO_ROUTINE_INDEX ); /* Create the co-routine that receives characters from the UART. */ xCoRoutineCreate( vCommsRxCoRoutine, mainRX_CO_ROUTINE_PRIORITY, mainRX_CO_ROUTINE_INDEX ); /* Create the LCD task. */ xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL ); /* Start the scheduler running the tasks and co-routines just created. */ vTaskStartScheduler(); /* Should not get here unless we did not have enough memory to start the scheduler. */ for( ;; ); } /*-----------------------------------------------------------*/ static void prvSetupHardware( void ) { /* Setup the PLL. */ SysCtlClockSet( SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_6MHZ ); /* Initialise the hardware used to talk to the LCD, LED's and UART. */ PDCInit(); vParTestInitialise(); vSerialInit(); } /*-----------------------------------------------------------*/ void vApplicationIdleHook( void ) { /* The co-routines are executed in the idle task using the idle task hook. */ for( ;; ) { /* Schedule the co-routines. */ vCoRoutineSchedule(); /* Run the register check function between each co-routine. */ prvSetAndCheckRegisters(); } } /*-----------------------------------------------------------*/ static void prvWriteString( const char *pcString ) { /* Write pcString to the LED, pausing between each character. */ prvPDCWrite(PDC_LCD_CSR, LCD_CLEAR); while( *pcString ) { vTaskDelay( mainCHAR_WRITE_DELAY ); prvPDCWrite( PDC_LCD_RAM, *pcString ); pcString++; } } /*-----------------------------------------------------------*/ void vLCDTask( void * pvParameters ) { unsigned portBASE_TYPE uxIndex; const unsigned char ucCFGData[] = { 0x30, /* Set data bus to 8-bits. */ 0x30, 0x30, 0x3C, /* Number of lines/font. */ 0x08, /* Display off. */ 0x01, /* Display clear. */ 0x06, /* Entry mode [cursor dir][shift]. */ 0x0C /* Display on [display on][curson on][blinking on]. */ }; /* The strings that are written to the LCD. */ const char *pcStringsToDisplay[] = { "Stellaris", "Demo", "Two", "www.FreeRTOS.org", "" }; /* Configure the LCD. */ uxIndex = 0; while( uxIndex < sizeof( ucCFGData ) ) { prvPDCWrite( PDC_LCD_CSR, ucCFGData[ uxIndex ] ); uxIndex++; vTaskDelay( mainCHAR_WRITE_DELAY ); } /* Turn the LCD Backlight on. */ prvPDCWrite( PDC_CSR, 0x01 ); /* Clear display. */ vTaskDelay( mainCHAR_WRITE_DELAY ); prvPDCWrite( PDC_LCD_CSR, LCD_CLEAR ); uxIndex = 0; for( ;; ) { /* Display the string on the LCD. */ prvWriteString( pcStringsToDisplay[ uxIndex ] ); /* Move on to the next string - wrapping if necessary. */ uxIndex++; if( *( pcStringsToDisplay[ uxIndex ] ) == 0x00 ) { uxIndex = 0; /* Longer pause on the last string to be sent. */ vTaskDelay( mainSTRING_WRITE_DELAY * 2 ); } /* Wait until it is time to move onto the next string. */ vTaskDelay( mainSTRING_WRITE_DELAY ); } } /*-----------------------------------------------------------*/ static void vCommsRxCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex ) { static char cRxedChar, cExpectedChar = mainFIRST_TX_CHAR; portBASE_TYPE xResult; crSTART( xHandle ); for( ;; ) { /* Wait for a character to be received. */ crQUEUE_RECEIVE( xHandle, xCommsQueue, ( void * ) &cRxedChar, mainCOMMS_RX_DELAY, &xResult ); /* Was the character recived (if any) the expected character. */ if( ( cRxedChar != cExpectedChar ) || ( xResult != pdPASS ) ) { /* Got an unexpected character. This can sometimes occur when reseting the system using the debugger leaving characters already in the UART regsters. */ uxErrorStatus = pdFAIL; /* Resync by waiting for the end of the current string. */ while( cRxedChar != mainLAST_TX_CHAR ) { crQUEUE_RECEIVE( xHandle, xCommsQueue, ( void * ) &cRxedChar, mainCOMMS_RX_DELAY, &xResult ); } /* The next expected character is the start of the string again. */ cExpectedChar = mainFIRST_TX_CHAR; } else { if( cExpectedChar == mainLAST_TX_CHAR ) { /* We have reached the end of the string - we now expect to receive the first character in the string again. The LED is toggled to indicate that the entire string was received without error. */ vParTestToggleLED( mainCOMMS_RX_LED ); cExpectedChar = mainFIRST_TX_CHAR; } else { /* We got the expected character, we now expect to receive the next character in the string. */ cExpectedChar++; } } } crEND(); } /*-----------------------------------------------------------*/ static void vSerialTxCoRoutine( CoRoutineHandle_t xHandle, unsigned portBASE_TYPE uxIndex ) { TickType_t xDelayPeriod; static unsigned long *pulRandomBytes = mainFIRST_PROGRAM_BYTES; /* Co-routine MUST start with a call to crSTART. */ crSTART( xHandle ); for(;;) { /* Was the previously transmitted string received correctly? */ if( uxErrorStatus != pdPASS ) { /* An error was encountered so set the error LED. */ vSetErrorLED(); } /* The next character to Tx is the first in the string. */ cNextChar = mainFIRST_TX_CHAR; UARTIntDisable( UART0_BASE, UART_INT_TX ); { /* Send the first character. */ if( !( HWREG( UART0_BASE + UART_O_FR ) & UART_FR_TXFF ) ) { HWREG( UART0_BASE + UART_O_DR ) = cNextChar; } /* Move the variable to the char to Tx on so the ISR transmits the next character in the string once this one has completed. */ cNextChar++; } UARTIntEnable(UART0_BASE, UART_INT_TX); /* Toggle the LED to show a new string is being transmitted. */ vParTestToggleLED( mainCOMMS_TX_LED ); /* Delay before we start the string off again. A pseudo-random delay is used as this will provide a better test. */ xDelayPeriod = xTaskGetTickCount() + ( *pulRandomBytes ); pulRandomBytes++; if( pulRandomBytes > mainTOTAL_PROGRAM_MEMORY ) { pulRandomBytes = mainFIRST_PROGRAM_BYTES; } /* Make sure we don't wait too long... */ xDelayPeriod &= mainMAX_TX_DELAY; /* ...but we do want to wait. */ if( xDelayPeriod < mainMIN_TX_DELAY ) { xDelayPeriod = mainMIN_TX_DELAY; } /* Block for the random(ish) time. */ crDELAY( xHandle, xDelayPeriod ); } /* Co-routine MUST end with a call to crEND. */ crEND(); } /*-----------------------------------------------------------*/ static void vSerialInit( void ) { /* Enable the UART. GPIOA has already been initialised. */ SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0); /* Set GPIO A0 and A1 as peripheral function. They are used to output the UART signals. */ GPIODirModeSet( GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1, GPIO_DIR_MODE_HW ); /* Configure the UART for 8-N-1 operation. */ UARTConfigSet( UART0_BASE, mainBAUD_RATE, UART_CONFIG_WLEN_8 | UART_CONFIG_PAR_NONE | UART_CONFIG_STOP_ONE ); /* We dont want to use the fifo. This is for test purposes to generate as many interrupts as possible. */ HWREG( UART0_BASE + UART_O_LCR_H ) &= ~mainFIFO_SET; /* Enable both Rx and Tx interrupts. */ HWREG( UART0_BASE + UART_O_IM ) |= ( UART_INT_TX | UART_INT_RX ); IntEnable( INT_UART0 ); } /*-----------------------------------------------------------*/ void vUART_ISR(void) { unsigned long ulStatus; char cRxedChar; portBASE_TYPE xTaskWokenByPost = pdFALSE; /* What caused the interrupt. */ ulStatus = UARTIntStatus( UART0_BASE, pdTRUE ); /* Clear the interrupt. */ UARTIntClear( UART0_BASE, ulStatus ); /* Was an Rx interrpt pending? */ if( ulStatus & UART_INT_RX ) { if( ( HWREG(UART0_BASE + UART_O_FR ) & UART_FR_RXFF ) ) { /* Get the char from the buffer and post it onto the queue of Rxed chars. Posting the character should wake the task that is blocked on the queue waiting for characters. */ cRxedChar = ( char ) HWREG( UART0_BASE + UART_O_DR ); xTaskWokenByPost = crQUEUE_SEND_FROM_ISR( xCommsQueue, &cRxedChar, xTaskWokenByPost ); } } /* Was a Tx interrupt pending? */ if( ulStatus & UART_INT_TX ) { /* Send the next character in the string. We are not using the FIFO. */ if( cNextChar <= mainLAST_TX_CHAR ) { if( !( HWREG( UART0_BASE + UART_O_FR ) & UART_FR_TXFF ) ) { HWREG( UART0_BASE + UART_O_DR ) = cNextChar; } cNextChar++; } } if( xTaskWokenByPost ) { /* We are posting to a co-routine rather than a task so don't bother causing a task switch. */ } } /*-----------------------------------------------------------*/ static void prvPDCWrite( char cAddress, char cData ) { vTaskSuspendAll(); { PDCWrite( cAddress, cData ); } xTaskResumeAll(); } /*-----------------------------------------------------------*/ void vSetErrorLED( void ) { vParTestSetLED( mainCOMMS_FAIL_LED, pdTRUE ); } /*-----------------------------------------------------------*/ void prvSetAndCheckRegisters( void ) { /* Fill the general purpose registers with known values. */ __asm volatile( " mov r11, #10\n" " add r0, r11, #1\n" " add r1, r11, #2\n" " add r2, r11, #3\n" " add r3, r11, #4\n" " add r4, r11, #5\n" " add r5, r11, #6\n" " add r6, r11, #7\n" " add r7, r11, #8\n" " add r12, r11, #12" ); /* Check the values are as expected. */ __asm volatile( " cmp r11, #10\n" " bne set_error_led\n" " cmp r0, #11\n" " bne set_error_led\n" " cmp r1, #12\n" " bne set_error_led\n" " cmp r2, #13\n" " bne set_error_led\n" " cmp r3, #14\n" " bne set_error_led\n" " cmp r4, #15\n" " bne set_error_led\n" " cmp r5, #16\n" " bne set_error_led\n" " cmp r6, #17\n" " bne set_error_led\n" " cmp r7, #18\n" " bne set_error_led\n" " cmp r12, #22\n" " bne set_error_led\n" " bx lr" ); __asm volatile( "set_error_led:\n" " push {r14}\n" " ldr r1, =vSetErrorLED\n" " blx r1\n" " pop {r14}\n" " bx lr" ); } /*-----------------------------------------------------------*/
610406.c
/* cpbt01.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of the command line, as in cc *.o -lf2c -lm Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., http://www.netlib.org/f2c/libf2c.zip */ #include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static integer c__1 = 1; static real c_b17 = 1.f; /* Subroutine */ int cpbt01_(char *uplo, integer *n, integer *kd, complex *a, integer *lda, complex *afac, integer *ldafac, real *rwork, real * resid) { /* System generated locals */ integer a_dim1, a_offset, afac_dim1, afac_offset, i__1, i__2, i__3, i__4, i__5; complex q__1; /* Builtin functions */ double r_imag(complex *); /* Local variables */ integer i__, j, k, kc, ml, mu; real akk, eps; extern /* Subroutine */ int cher_(char *, integer *, real *, complex *, integer *, complex *, integer *); integer klen; extern /* Complex */ VOID cdotc_(complex *, integer *, complex *, integer *, complex *, integer *); extern logical lsame_(char *, char *); real anorm; extern /* Subroutine */ int ctrmv_(char *, char *, char *, integer *, complex *, integer *, complex *, integer *); extern doublereal clanhb_(char *, char *, integer *, integer *, complex *, integer *, real *), slamch_(char *); extern /* Subroutine */ int csscal_(integer *, real *, complex *, integer *); /* -- LAPACK test routine (version 3.1) -- */ /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */ /* November 2006 */ /* .. Scalar Arguments .. */ /* .. */ /* .. Array Arguments .. */ /* .. */ /* Purpose */ /* ======= */ /* CPBT01 reconstructs a Hermitian positive definite band matrix A from */ /* its L*L' or U'*U factorization and computes the residual */ /* norm( L*L' - A ) / ( N * norm(A) * EPS ) or */ /* norm( U'*U - A ) / ( N * norm(A) * EPS ), */ /* where EPS is the machine epsilon, L' is the conjugate transpose of */ /* L, and U' is the conjugate transpose of U. */ /* Arguments */ /* ========= */ /* UPLO (input) CHARACTER*1 */ /* Specifies whether the upper or lower triangular part of the */ /* Hermitian matrix A is stored: */ /* = 'U': Upper triangular */ /* = 'L': Lower triangular */ /* N (input) INTEGER */ /* The number of rows and columns of the matrix A. N >= 0. */ /* KD (input) INTEGER */ /* The number of super-diagonals of the matrix A if UPLO = 'U', */ /* or the number of sub-diagonals if UPLO = 'L'. KD >= 0. */ /* A (input) COMPLEX array, dimension (LDA,N) */ /* The original Hermitian band matrix A. If UPLO = 'U', the */ /* upper triangular part of A is stored as a band matrix; if */ /* UPLO = 'L', the lower triangular part of A is stored. The */ /* columns of the appropriate triangle are stored in the columns */ /* of A and the diagonals of the triangle are stored in the rows */ /* of A. See CPBTRF for further details. */ /* LDA (input) INTEGER. */ /* The leading dimension of the array A. LDA >= max(1,KD+1). */ /* AFAC (input) COMPLEX array, dimension (LDAFAC,N) */ /* The factored form of the matrix A. AFAC contains the factor */ /* L or U from the L*L' or U'*U factorization in band storage */ /* format, as computed by CPBTRF. */ /* LDAFAC (input) INTEGER */ /* The leading dimension of the array AFAC. */ /* LDAFAC >= max(1,KD+1). */ /* RWORK (workspace) REAL array, dimension (N) */ /* RESID (output) REAL */ /* If UPLO = 'L', norm(L*L' - A) / ( N * norm(A) * EPS ) */ /* If UPLO = 'U', norm(U'*U - A) / ( N * norm(A) * EPS ) */ /* ===================================================================== */ /* .. Parameters .. */ /* .. */ /* .. Local Scalars .. */ /* .. */ /* .. External Functions .. */ /* .. */ /* .. External Subroutines .. */ /* .. */ /* .. Intrinsic Functions .. */ /* .. */ /* .. Executable Statements .. */ /* Quick exit if N = 0. */ /* Parameter adjustments */ a_dim1 = *lda; a_offset = 1 + a_dim1; a -= a_offset; afac_dim1 = *ldafac; afac_offset = 1 + afac_dim1; afac -= afac_offset; --rwork; /* Function Body */ if (*n <= 0) { *resid = 0.f; return 0; } /* Exit with RESID = 1/EPS if ANORM = 0. */ eps = slamch_("Epsilon"); anorm = clanhb_("1", uplo, n, kd, &a[a_offset], lda, &rwork[1]); if (anorm <= 0.f) { *resid = 1.f / eps; return 0; } /* Check the imaginary parts of the diagonal elements and return with */ /* an error code if any are nonzero. */ if (lsame_(uplo, "U")) { i__1 = *n; for (j = 1; j <= i__1; ++j) { if (r_imag(&afac[*kd + 1 + j * afac_dim1]) != 0.f) { *resid = 1.f / eps; return 0; } /* L10: */ } } else { i__1 = *n; for (j = 1; j <= i__1; ++j) { if (r_imag(&afac[j * afac_dim1 + 1]) != 0.f) { *resid = 1.f / eps; return 0; } /* L20: */ } } /* Compute the product U'*U, overwriting U. */ if (lsame_(uplo, "U")) { for (k = *n; k >= 1; --k) { /* Computing MAX */ i__1 = 1, i__2 = *kd + 2 - k; kc = max(i__1,i__2); klen = *kd + 1 - kc; /* Compute the (K,K) element of the result. */ i__1 = klen + 1; cdotc_(&q__1, &i__1, &afac[kc + k * afac_dim1], &c__1, &afac[kc + k * afac_dim1], &c__1); akk = q__1.r; i__1 = *kd + 1 + k * afac_dim1; afac[i__1].r = akk, afac[i__1].i = 0.f; /* Compute the rest of column K. */ if (klen > 0) { i__1 = *ldafac - 1; ctrmv_("Upper", "Conjugate", "Non-unit", &klen, &afac[*kd + 1 + (k - klen) * afac_dim1], &i__1, &afac[kc + k * afac_dim1], &c__1); } /* L30: */ } /* UPLO = 'L': Compute the product L*L', overwriting L. */ } else { for (k = *n; k >= 1; --k) { /* Computing MIN */ i__1 = *kd, i__2 = *n - k; klen = min(i__1,i__2); /* Add a multiple of column K of the factor L to each of */ /* columns K+1 through N. */ if (klen > 0) { i__1 = *ldafac - 1; cher_("Lower", &klen, &c_b17, &afac[k * afac_dim1 + 2], &c__1, &afac[(k + 1) * afac_dim1 + 1], &i__1); } /* Scale column K by the diagonal element. */ i__1 = k * afac_dim1 + 1; akk = afac[i__1].r; i__1 = klen + 1; csscal_(&i__1, &akk, &afac[k * afac_dim1 + 1], &c__1); /* L40: */ } } /* Compute the difference L*L' - A or U'*U - A. */ if (lsame_(uplo, "U")) { i__1 = *n; for (j = 1; j <= i__1; ++j) { /* Computing MAX */ i__2 = 1, i__3 = *kd + 2 - j; mu = max(i__2,i__3); i__2 = *kd + 1; for (i__ = mu; i__ <= i__2; ++i__) { i__3 = i__ + j * afac_dim1; i__4 = i__ + j * afac_dim1; i__5 = i__ + j * a_dim1; q__1.r = afac[i__4].r - a[i__5].r, q__1.i = afac[i__4].i - a[ i__5].i; afac[i__3].r = q__1.r, afac[i__3].i = q__1.i; /* L50: */ } /* L60: */ } } else { i__1 = *n; for (j = 1; j <= i__1; ++j) { /* Computing MIN */ i__2 = *kd + 1, i__3 = *n - j + 1; ml = min(i__2,i__3); i__2 = ml; for (i__ = 1; i__ <= i__2; ++i__) { i__3 = i__ + j * afac_dim1; i__4 = i__ + j * afac_dim1; i__5 = i__ + j * a_dim1; q__1.r = afac[i__4].r - a[i__5].r, q__1.i = afac[i__4].i - a[ i__5].i; afac[i__3].r = q__1.r, afac[i__3].i = q__1.i; /* L70: */ } /* L80: */ } } /* Compute norm( L*L' - A ) / ( N * norm(A) * EPS ) */ *resid = clanhb_("1", uplo, n, kd, &afac[afac_offset], ldafac, &rwork[1]); *resid = *resid / (real) (*n) / anorm / eps; return 0; /* End of CPBT01 */ } /* cpbt01_ */
719473.c
/* * Copyright 2014 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * */ #include <linux/firmware.h> #include <linux/slab.h> #include <linux/module.h> #include "amdgpu.h" #include "amdgpu_ucode.h" static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr) { DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes)); DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes)); DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major)); DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor)); DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major)); DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor)); DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version)); DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes)); DRM_DEBUG("ucode_array_offset_bytes: %u\n", le32_to_cpu(hdr->ucode_array_offset_bytes)); DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32)); } void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); DRM_DEBUG("MC\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { const struct mc_firmware_header_v1_0 *mc_hdr = container_of(hdr, struct mc_firmware_header_v1_0, header); DRM_DEBUG("io_debug_size_bytes: %u\n", le32_to_cpu(mc_hdr->io_debug_size_bytes)); DRM_DEBUG("io_debug_array_offset_bytes: %u\n", le32_to_cpu(mc_hdr->io_debug_array_offset_bytes)); } else { DRM_ERROR("Unknown MC ucode version: %u.%u\n", version_major, version_minor); } } void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); const struct smc_firmware_header_v1_0 *v1_0_hdr; const struct smc_firmware_header_v2_0 *v2_0_hdr; const struct smc_firmware_header_v2_1 *v2_1_hdr; DRM_DEBUG("SMC\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { v1_0_hdr = container_of(hdr, struct smc_firmware_header_v1_0, header); DRM_DEBUG("ucode_start_addr: %u\n", le32_to_cpu(v1_0_hdr->ucode_start_addr)); } else if (version_major == 2) { switch (version_minor) { case 0: v2_0_hdr = container_of(hdr, struct smc_firmware_header_v2_0, v1_0.header); DRM_DEBUG("ppt_offset_bytes: %u\n", le32_to_cpu(v2_0_hdr->ppt_offset_bytes)); DRM_DEBUG("ppt_size_bytes: %u\n", le32_to_cpu(v2_0_hdr->ppt_size_bytes)); break; case 1: v2_1_hdr = container_of(hdr, struct smc_firmware_header_v2_1, v1_0.header); DRM_DEBUG("pptable_count: %u\n", le32_to_cpu(v2_1_hdr->pptable_count)); DRM_DEBUG("pptable_entry_offset: %u\n", le32_to_cpu(v2_1_hdr->pptable_entry_offset)); break; default: break; } } else { DRM_ERROR("Unknown SMC ucode version: %u.%u\n", version_major, version_minor); } } void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); DRM_DEBUG("GFX\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { const struct gfx_firmware_header_v1_0 *gfx_hdr = container_of(hdr, struct gfx_firmware_header_v1_0, header); DRM_DEBUG("ucode_feature_version: %u\n", le32_to_cpu(gfx_hdr->ucode_feature_version)); DRM_DEBUG("jt_offset: %u\n", le32_to_cpu(gfx_hdr->jt_offset)); DRM_DEBUG("jt_size: %u\n", le32_to_cpu(gfx_hdr->jt_size)); } else { DRM_ERROR("Unknown GFX ucode version: %u.%u\n", version_major, version_minor); } } void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); DRM_DEBUG("RLC\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { const struct rlc_firmware_header_v1_0 *rlc_hdr = container_of(hdr, struct rlc_firmware_header_v1_0, header); DRM_DEBUG("ucode_feature_version: %u\n", le32_to_cpu(rlc_hdr->ucode_feature_version)); DRM_DEBUG("save_and_restore_offset: %u\n", le32_to_cpu(rlc_hdr->save_and_restore_offset)); DRM_DEBUG("clear_state_descriptor_offset: %u\n", le32_to_cpu(rlc_hdr->clear_state_descriptor_offset)); DRM_DEBUG("avail_scratch_ram_locations: %u\n", le32_to_cpu(rlc_hdr->avail_scratch_ram_locations)); DRM_DEBUG("master_pkt_description_offset: %u\n", le32_to_cpu(rlc_hdr->master_pkt_description_offset)); } else if (version_major == 2) { const struct rlc_firmware_header_v2_0 *rlc_hdr = container_of(hdr, struct rlc_firmware_header_v2_0, header); DRM_DEBUG("ucode_feature_version: %u\n", le32_to_cpu(rlc_hdr->ucode_feature_version)); DRM_DEBUG("jt_offset: %u\n", le32_to_cpu(rlc_hdr->jt_offset)); DRM_DEBUG("jt_size: %u\n", le32_to_cpu(rlc_hdr->jt_size)); DRM_DEBUG("save_and_restore_offset: %u\n", le32_to_cpu(rlc_hdr->save_and_restore_offset)); DRM_DEBUG("clear_state_descriptor_offset: %u\n", le32_to_cpu(rlc_hdr->clear_state_descriptor_offset)); DRM_DEBUG("avail_scratch_ram_locations: %u\n", le32_to_cpu(rlc_hdr->avail_scratch_ram_locations)); DRM_DEBUG("reg_restore_list_size: %u\n", le32_to_cpu(rlc_hdr->reg_restore_list_size)); DRM_DEBUG("reg_list_format_start: %u\n", le32_to_cpu(rlc_hdr->reg_list_format_start)); DRM_DEBUG("reg_list_format_separate_start: %u\n", le32_to_cpu(rlc_hdr->reg_list_format_separate_start)); DRM_DEBUG("starting_offsets_start: %u\n", le32_to_cpu(rlc_hdr->starting_offsets_start)); DRM_DEBUG("reg_list_format_size_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_format_size_bytes)); DRM_DEBUG("reg_list_format_array_offset_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_format_array_offset_bytes)); DRM_DEBUG("reg_list_size_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_size_bytes)); DRM_DEBUG("reg_list_array_offset_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_array_offset_bytes)); DRM_DEBUG("reg_list_format_separate_size_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_format_separate_size_bytes)); DRM_DEBUG("reg_list_format_separate_array_offset_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_format_separate_array_offset_bytes)); DRM_DEBUG("reg_list_separate_size_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_separate_size_bytes)); DRM_DEBUG("reg_list_separate_array_offset_bytes: %u\n", le32_to_cpu(rlc_hdr->reg_list_separate_array_offset_bytes)); if (version_minor == 1) { const struct rlc_firmware_header_v2_1 *v2_1 = container_of(rlc_hdr, struct rlc_firmware_header_v2_1, v2_0); DRM_DEBUG("reg_list_format_direct_reg_list_length: %u\n", le32_to_cpu(v2_1->reg_list_format_direct_reg_list_length)); DRM_DEBUG("save_restore_list_cntl_ucode_ver: %u\n", le32_to_cpu(v2_1->save_restore_list_cntl_ucode_ver)); DRM_DEBUG("save_restore_list_cntl_feature_ver: %u\n", le32_to_cpu(v2_1->save_restore_list_cntl_feature_ver)); DRM_DEBUG("save_restore_list_cntl_size_bytes %u\n", le32_to_cpu(v2_1->save_restore_list_cntl_size_bytes)); DRM_DEBUG("save_restore_list_cntl_offset_bytes: %u\n", le32_to_cpu(v2_1->save_restore_list_cntl_offset_bytes)); DRM_DEBUG("save_restore_list_gpm_ucode_ver: %u\n", le32_to_cpu(v2_1->save_restore_list_gpm_ucode_ver)); DRM_DEBUG("save_restore_list_gpm_feature_ver: %u\n", le32_to_cpu(v2_1->save_restore_list_gpm_feature_ver)); DRM_DEBUG("save_restore_list_gpm_size_bytes %u\n", le32_to_cpu(v2_1->save_restore_list_gpm_size_bytes)); DRM_DEBUG("save_restore_list_gpm_offset_bytes: %u\n", le32_to_cpu(v2_1->save_restore_list_gpm_offset_bytes)); DRM_DEBUG("save_restore_list_srm_ucode_ver: %u\n", le32_to_cpu(v2_1->save_restore_list_srm_ucode_ver)); DRM_DEBUG("save_restore_list_srm_feature_ver: %u\n", le32_to_cpu(v2_1->save_restore_list_srm_feature_ver)); DRM_DEBUG("save_restore_list_srm_size_bytes %u\n", le32_to_cpu(v2_1->save_restore_list_srm_size_bytes)); DRM_DEBUG("save_restore_list_srm_offset_bytes: %u\n", le32_to_cpu(v2_1->save_restore_list_srm_offset_bytes)); } } else { DRM_ERROR("Unknown RLC ucode version: %u.%u\n", version_major, version_minor); } } void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); DRM_DEBUG("SDMA\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { const struct sdma_firmware_header_v1_0 *sdma_hdr = container_of(hdr, struct sdma_firmware_header_v1_0, header); DRM_DEBUG("ucode_feature_version: %u\n", le32_to_cpu(sdma_hdr->ucode_feature_version)); DRM_DEBUG("ucode_change_version: %u\n", le32_to_cpu(sdma_hdr->ucode_change_version)); DRM_DEBUG("jt_offset: %u\n", le32_to_cpu(sdma_hdr->jt_offset)); DRM_DEBUG("jt_size: %u\n", le32_to_cpu(sdma_hdr->jt_size)); if (version_minor >= 1) { const struct sdma_firmware_header_v1_1 *sdma_v1_1_hdr = container_of(sdma_hdr, struct sdma_firmware_header_v1_1, v1_0); DRM_DEBUG("digest_size: %u\n", le32_to_cpu(sdma_v1_1_hdr->digest_size)); } } else { DRM_ERROR("Unknown SDMA ucode version: %u.%u\n", version_major, version_minor); } } void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); DRM_DEBUG("PSP\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { const struct psp_firmware_header_v1_0 *psp_hdr = container_of(hdr, struct psp_firmware_header_v1_0, header); DRM_DEBUG("ucode_feature_version: %u\n", le32_to_cpu(psp_hdr->ucode_feature_version)); DRM_DEBUG("sos_offset_bytes: %u\n", le32_to_cpu(psp_hdr->sos_offset_bytes)); DRM_DEBUG("sos_size_bytes: %u\n", le32_to_cpu(psp_hdr->sos_size_bytes)); if (version_minor == 1) { const struct psp_firmware_header_v1_1 *psp_hdr_v1_1 = container_of(psp_hdr, struct psp_firmware_header_v1_1, v1_0); DRM_DEBUG("toc_header_version: %u\n", le32_to_cpu(psp_hdr_v1_1->toc_header_version)); DRM_DEBUG("toc_offset_bytes: %u\n", le32_to_cpu(psp_hdr_v1_1->toc_offset_bytes)); DRM_DEBUG("toc_size_bytes: %u\n", le32_to_cpu(psp_hdr_v1_1->toc_size_bytes)); DRM_DEBUG("kdb_header_version: %u\n", le32_to_cpu(psp_hdr_v1_1->kdb_header_version)); DRM_DEBUG("kdb_offset_bytes: %u\n", le32_to_cpu(psp_hdr_v1_1->kdb_offset_bytes)); DRM_DEBUG("kdb_size_bytes: %u\n", le32_to_cpu(psp_hdr_v1_1->kdb_size_bytes)); } if (version_minor == 2) { const struct psp_firmware_header_v1_2 *psp_hdr_v1_2 = container_of(psp_hdr, struct psp_firmware_header_v1_2, v1_0); DRM_DEBUG("kdb_header_version: %u\n", le32_to_cpu(psp_hdr_v1_2->kdb_header_version)); DRM_DEBUG("kdb_offset_bytes: %u\n", le32_to_cpu(psp_hdr_v1_2->kdb_offset_bytes)); DRM_DEBUG("kdb_size_bytes: %u\n", le32_to_cpu(psp_hdr_v1_2->kdb_size_bytes)); } if (version_minor == 3) { const struct psp_firmware_header_v1_1 *psp_hdr_v1_1 = container_of(psp_hdr, struct psp_firmware_header_v1_1, v1_0); const struct psp_firmware_header_v1_3 *psp_hdr_v1_3 = container_of(psp_hdr_v1_1, struct psp_firmware_header_v1_3, v1_1); DRM_DEBUG("toc_header_version: %u\n", le32_to_cpu(psp_hdr_v1_3->v1_1.toc_header_version)); DRM_DEBUG("toc_offset_bytes: %u\n", le32_to_cpu(psp_hdr_v1_3->v1_1.toc_offset_bytes)); DRM_DEBUG("toc_size_bytes: %u\n", le32_to_cpu(psp_hdr_v1_3->v1_1.toc_size_bytes)); DRM_DEBUG("kdb_header_version: %u\n", le32_to_cpu(psp_hdr_v1_3->v1_1.kdb_header_version)); DRM_DEBUG("kdb_offset_bytes: %u\n", le32_to_cpu(psp_hdr_v1_3->v1_1.kdb_offset_bytes)); DRM_DEBUG("kdb_size_bytes: %u\n", le32_to_cpu(psp_hdr_v1_3->v1_1.kdb_size_bytes)); DRM_DEBUG("spl_header_version: %u\n", le32_to_cpu(psp_hdr_v1_3->spl_header_version)); DRM_DEBUG("spl_offset_bytes: %u\n", le32_to_cpu(psp_hdr_v1_3->spl_offset_bytes)); DRM_DEBUG("spl_size_bytes: %u\n", le32_to_cpu(psp_hdr_v1_3->spl_size_bytes)); } } else { DRM_ERROR("Unknown PSP ucode version: %u.%u\n", version_major, version_minor); } } void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr) { uint16_t version_major = le16_to_cpu(hdr->header_version_major); uint16_t version_minor = le16_to_cpu(hdr->header_version_minor); DRM_DEBUG("GPU_INFO\n"); amdgpu_ucode_print_common_hdr(hdr); if (version_major == 1) { const struct gpu_info_firmware_header_v1_0 *gpu_info_hdr = container_of(hdr, struct gpu_info_firmware_header_v1_0, header); DRM_DEBUG("version_major: %u\n", le16_to_cpu(gpu_info_hdr->version_major)); DRM_DEBUG("version_minor: %u\n", le16_to_cpu(gpu_info_hdr->version_minor)); } else { DRM_ERROR("Unknown gpu_info ucode version: %u.%u\n", version_major, version_minor); } } int amdgpu_ucode_validate(const struct firmware *fw) { const struct common_firmware_header *hdr = (const struct common_firmware_header *)fw->data; if (fw->size == le32_to_cpu(hdr->size_bytes)) return 0; return -EINVAL; } bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr, uint16_t hdr_major, uint16_t hdr_minor) { if ((hdr->common.header_version_major == hdr_major) && (hdr->common.header_version_minor == hdr_minor)) return false; return true; } enum amdgpu_firmware_load_type amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type) { switch (adev->asic_type) { #ifdef CONFIG_DRM_AMDGPU_SI case CHIP_TAHITI: case CHIP_PITCAIRN: case CHIP_VERDE: case CHIP_OLAND: case CHIP_HAINAN: return AMDGPU_FW_LOAD_DIRECT; #endif #ifdef CONFIG_DRM_AMDGPU_CIK case CHIP_BONAIRE: case CHIP_KAVERI: case CHIP_KABINI: case CHIP_HAWAII: case CHIP_MULLINS: return AMDGPU_FW_LOAD_DIRECT; #endif case CHIP_TOPAZ: case CHIP_TONGA: case CHIP_FIJI: case CHIP_CARRIZO: case CHIP_STONEY: case CHIP_POLARIS10: case CHIP_POLARIS11: case CHIP_POLARIS12: case CHIP_VEGAM: return AMDGPU_FW_LOAD_SMU; case CHIP_VEGA10: case CHIP_RAVEN: case CHIP_VEGA12: case CHIP_VEGA20: case CHIP_ARCTURUS: case CHIP_RENOIR: case CHIP_NAVI10: case CHIP_NAVI14: case CHIP_NAVI12: case CHIP_SIENNA_CICHLID: case CHIP_NAVY_FLOUNDER: case CHIP_VANGOGH: case CHIP_DIMGREY_CAVEFISH: case CHIP_ALDEBARAN: if (!load_type) return AMDGPU_FW_LOAD_DIRECT; else return AMDGPU_FW_LOAD_PSP; default: DRM_ERROR("Unknown firmware load type\n"); } return AMDGPU_FW_LOAD_DIRECT; } #define FW_VERSION_ATTR(name, mode, field) \ static ssize_t show_##name(struct device *dev, \ struct device_attribute *attr, \ char *buf) \ { \ struct drm_device *ddev = dev_get_drvdata(dev); \ struct amdgpu_device *adev = drm_to_adev(ddev); \ \ return snprintf(buf, PAGE_SIZE, "0x%08x\n", adev->field); \ } \ static DEVICE_ATTR(name, mode, show_##name, NULL) FW_VERSION_ATTR(vce_fw_version, 0444, vce.fw_version); FW_VERSION_ATTR(uvd_fw_version, 0444, uvd.fw_version); FW_VERSION_ATTR(mc_fw_version, 0444, gmc.fw_version); FW_VERSION_ATTR(me_fw_version, 0444, gfx.me_fw_version); FW_VERSION_ATTR(pfp_fw_version, 0444, gfx.pfp_fw_version); FW_VERSION_ATTR(ce_fw_version, 0444, gfx.ce_fw_version); FW_VERSION_ATTR(rlc_fw_version, 0444, gfx.rlc_fw_version); FW_VERSION_ATTR(rlc_srlc_fw_version, 0444, gfx.rlc_srlc_fw_version); FW_VERSION_ATTR(rlc_srlg_fw_version, 0444, gfx.rlc_srlg_fw_version); FW_VERSION_ATTR(rlc_srls_fw_version, 0444, gfx.rlc_srls_fw_version); FW_VERSION_ATTR(mec_fw_version, 0444, gfx.mec_fw_version); FW_VERSION_ATTR(mec2_fw_version, 0444, gfx.mec2_fw_version); FW_VERSION_ATTR(sos_fw_version, 0444, psp.sos_fw_version); FW_VERSION_ATTR(asd_fw_version, 0444, psp.asd_fw_version); FW_VERSION_ATTR(ta_ras_fw_version, 0444, psp.ta_ras_ucode_version); FW_VERSION_ATTR(ta_xgmi_fw_version, 0444, psp.ta_xgmi_ucode_version); FW_VERSION_ATTR(smc_fw_version, 0444, pm.fw_version); FW_VERSION_ATTR(sdma_fw_version, 0444, sdma.instance[0].fw_version); FW_VERSION_ATTR(sdma2_fw_version, 0444, sdma.instance[1].fw_version); FW_VERSION_ATTR(vcn_fw_version, 0444, vcn.fw_version); FW_VERSION_ATTR(dmcu_fw_version, 0444, dm.dmcu_fw_version); static struct attribute *fw_attrs[] = { &dev_attr_vce_fw_version.attr, &dev_attr_uvd_fw_version.attr, &dev_attr_mc_fw_version.attr, &dev_attr_me_fw_version.attr, &dev_attr_pfp_fw_version.attr, &dev_attr_ce_fw_version.attr, &dev_attr_rlc_fw_version.attr, &dev_attr_rlc_srlc_fw_version.attr, &dev_attr_rlc_srlg_fw_version.attr, &dev_attr_rlc_srls_fw_version.attr, &dev_attr_mec_fw_version.attr, &dev_attr_mec2_fw_version.attr, &dev_attr_sos_fw_version.attr, &dev_attr_asd_fw_version.attr, &dev_attr_ta_ras_fw_version.attr, &dev_attr_ta_xgmi_fw_version.attr, &dev_attr_smc_fw_version.attr, &dev_attr_sdma_fw_version.attr, &dev_attr_sdma2_fw_version.attr, &dev_attr_vcn_fw_version.attr, &dev_attr_dmcu_fw_version.attr, NULL }; static const struct attribute_group fw_attr_group = { .name = "fw_version", .attrs = fw_attrs }; int amdgpu_ucode_sysfs_init(struct amdgpu_device *adev) { return sysfs_create_group(&adev->dev->kobj, &fw_attr_group); } void amdgpu_ucode_sysfs_fini(struct amdgpu_device *adev) { sysfs_remove_group(&adev->dev->kobj, &fw_attr_group); } static int amdgpu_ucode_init_single_fw(struct amdgpu_device *adev, struct amdgpu_firmware_info *ucode, uint64_t mc_addr, void *kptr) { const struct common_firmware_header *header = NULL; const struct gfx_firmware_header_v1_0 *cp_hdr = NULL; const struct dmcu_firmware_header_v1_0 *dmcu_hdr = NULL; const struct dmcub_firmware_header_v1_0 *dmcub_hdr = NULL; const struct mes_firmware_header_v1_0 *mes_hdr = NULL; if (NULL == ucode->fw) return 0; ucode->mc_addr = mc_addr; ucode->kaddr = kptr; if (ucode->ucode_id == AMDGPU_UCODE_ID_STORAGE) return 0; header = (const struct common_firmware_header *)ucode->fw->data; cp_hdr = (const struct gfx_firmware_header_v1_0 *)ucode->fw->data; dmcu_hdr = (const struct dmcu_firmware_header_v1_0 *)ucode->fw->data; dmcub_hdr = (const struct dmcub_firmware_header_v1_0 *)ucode->fw->data; mes_hdr = (const struct mes_firmware_header_v1_0 *)ucode->fw->data; if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP || (ucode->ucode_id != AMDGPU_UCODE_ID_CP_MEC1 && ucode->ucode_id != AMDGPU_UCODE_ID_CP_MEC2 && ucode->ucode_id != AMDGPU_UCODE_ID_CP_MEC1_JT && ucode->ucode_id != AMDGPU_UCODE_ID_CP_MEC2_JT && ucode->ucode_id != AMDGPU_UCODE_ID_CP_MES && ucode->ucode_id != AMDGPU_UCODE_ID_CP_MES_DATA && ucode->ucode_id != AMDGPU_UCODE_ID_RLC_RESTORE_LIST_CNTL && ucode->ucode_id != AMDGPU_UCODE_ID_RLC_RESTORE_LIST_GPM_MEM && ucode->ucode_id != AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM && ucode->ucode_id != AMDGPU_UCODE_ID_RLC_IRAM && ucode->ucode_id != AMDGPU_UCODE_ID_RLC_DRAM && ucode->ucode_id != AMDGPU_UCODE_ID_DMCU_ERAM && ucode->ucode_id != AMDGPU_UCODE_ID_DMCU_INTV && ucode->ucode_id != AMDGPU_UCODE_ID_DMCUB)) { ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes); memcpy(ucode->kaddr, (void *)((uint8_t *)ucode->fw->data + le32_to_cpu(header->ucode_array_offset_bytes)), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC1 || ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC2) { ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - le32_to_cpu(cp_hdr->jt_size) * 4; memcpy(ucode->kaddr, (void *)((uint8_t *)ucode->fw->data + le32_to_cpu(header->ucode_array_offset_bytes)), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC1_JT || ucode->ucode_id == AMDGPU_UCODE_ID_CP_MEC2_JT) { ucode->ucode_size = le32_to_cpu(cp_hdr->jt_size) * 4; memcpy(ucode->kaddr, (void *)((uint8_t *)ucode->fw->data + le32_to_cpu(header->ucode_array_offset_bytes) + le32_to_cpu(cp_hdr->jt_offset) * 4), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_DMCU_ERAM) { ucode->ucode_size = le32_to_cpu(header->ucode_size_bytes) - le32_to_cpu(dmcu_hdr->intv_size_bytes); memcpy(ucode->kaddr, (void *)((uint8_t *)ucode->fw->data + le32_to_cpu(header->ucode_array_offset_bytes)), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_DMCU_INTV) { ucode->ucode_size = le32_to_cpu(dmcu_hdr->intv_size_bytes); memcpy(ucode->kaddr, (void *)((uint8_t *)ucode->fw->data + le32_to_cpu(header->ucode_array_offset_bytes) + le32_to_cpu(dmcu_hdr->intv_offset_bytes)), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_DMCUB) { ucode->ucode_size = le32_to_cpu(dmcub_hdr->inst_const_bytes); memcpy(ucode->kaddr, (void *)((uint8_t *)ucode->fw->data + le32_to_cpu(header->ucode_array_offset_bytes)), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_CNTL) { ucode->ucode_size = adev->gfx.rlc.save_restore_list_cntl_size_bytes; memcpy(ucode->kaddr, adev->gfx.rlc.save_restore_list_cntl, ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_GPM_MEM) { ucode->ucode_size = adev->gfx.rlc.save_restore_list_gpm_size_bytes; memcpy(ucode->kaddr, adev->gfx.rlc.save_restore_list_gpm, ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_RESTORE_LIST_SRM_MEM) { ucode->ucode_size = adev->gfx.rlc.save_restore_list_srm_size_bytes; memcpy(ucode->kaddr, adev->gfx.rlc.save_restore_list_srm, ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_IRAM) { ucode->ucode_size = adev->gfx.rlc.rlc_iram_ucode_size_bytes; memcpy(ucode->kaddr, adev->gfx.rlc.rlc_iram_ucode, ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_RLC_DRAM) { ucode->ucode_size = adev->gfx.rlc.rlc_dram_ucode_size_bytes; memcpy(ucode->kaddr, adev->gfx.rlc.rlc_dram_ucode, ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_CP_MES) { ucode->ucode_size = le32_to_cpu(mes_hdr->mes_ucode_size_bytes); memcpy(ucode->kaddr, (void *)((uint8_t *)adev->mes.fw->data + le32_to_cpu(mes_hdr->mes_ucode_offset_bytes)), ucode->ucode_size); } else if (ucode->ucode_id == AMDGPU_UCODE_ID_CP_MES_DATA) { ucode->ucode_size = le32_to_cpu(mes_hdr->mes_ucode_data_size_bytes); memcpy(ucode->kaddr, (void *)((uint8_t *)adev->mes.fw->data + le32_to_cpu(mes_hdr->mes_ucode_data_offset_bytes)), ucode->ucode_size); } return 0; } static int amdgpu_ucode_patch_jt(struct amdgpu_firmware_info *ucode, uint64_t mc_addr, void *kptr) { const struct gfx_firmware_header_v1_0 *header = NULL; const struct common_firmware_header *comm_hdr = NULL; uint8_t *src_addr = NULL; uint8_t *dst_addr = NULL; if (NULL == ucode->fw) return 0; comm_hdr = (const struct common_firmware_header *)ucode->fw->data; header = (const struct gfx_firmware_header_v1_0 *)ucode->fw->data; dst_addr = ucode->kaddr + ALIGN(le32_to_cpu(comm_hdr->ucode_size_bytes), PAGE_SIZE); src_addr = (uint8_t *)ucode->fw->data + le32_to_cpu(comm_hdr->ucode_array_offset_bytes) + (le32_to_cpu(header->jt_offset) * 4); memcpy(dst_addr, src_addr, le32_to_cpu(header->jt_size) * 4); return 0; } int amdgpu_ucode_create_bo(struct amdgpu_device *adev) { if (adev->firmware.load_type != AMDGPU_FW_LOAD_DIRECT) { amdgpu_bo_create_kernel(adev, adev->firmware.fw_size, PAGE_SIZE, amdgpu_sriov_vf(adev) ? AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT, &adev->firmware.fw_buf, &adev->firmware.fw_buf_mc, &adev->firmware.fw_buf_ptr); if (!adev->firmware.fw_buf) { dev_err(adev->dev, "failed to create kernel buffer for firmware.fw_buf\n"); return -ENOMEM; } else if (amdgpu_sriov_vf(adev)) { memset(adev->firmware.fw_buf_ptr, 0, adev->firmware.fw_size); } } return 0; } void amdgpu_ucode_free_bo(struct amdgpu_device *adev) { if (adev->firmware.load_type != AMDGPU_FW_LOAD_DIRECT) amdgpu_bo_free_kernel(&adev->firmware.fw_buf, &adev->firmware.fw_buf_mc, &adev->firmware.fw_buf_ptr); } int amdgpu_ucode_init_bo(struct amdgpu_device *adev) { uint64_t fw_offset = 0; int i; struct amdgpu_firmware_info *ucode = NULL; /* for baremetal, the ucode is allocated in gtt, so don't need to fill the bo when reset/suspend */ if (!amdgpu_sriov_vf(adev) && (amdgpu_in_reset(adev) || adev->in_suspend)) return 0; /* * if SMU loaded firmware, it needn't add SMC, UVD, and VCE * ucode info here */ if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP) { if (amdgpu_sriov_vf(adev)) adev->firmware.max_ucodes = AMDGPU_UCODE_ID_MAXIMUM - 3; else adev->firmware.max_ucodes = AMDGPU_UCODE_ID_MAXIMUM - 4; } else { adev->firmware.max_ucodes = AMDGPU_UCODE_ID_MAXIMUM; } for (i = 0; i < adev->firmware.max_ucodes; i++) { ucode = &adev->firmware.ucode[i]; if (ucode->fw) { amdgpu_ucode_init_single_fw(adev, ucode, adev->firmware.fw_buf_mc + fw_offset, adev->firmware.fw_buf_ptr + fw_offset); if (i == AMDGPU_UCODE_ID_CP_MEC1 && adev->firmware.load_type != AMDGPU_FW_LOAD_PSP) { const struct gfx_firmware_header_v1_0 *cp_hdr; cp_hdr = (const struct gfx_firmware_header_v1_0 *)ucode->fw->data; amdgpu_ucode_patch_jt(ucode, adev->firmware.fw_buf_mc + fw_offset, adev->firmware.fw_buf_ptr + fw_offset); fw_offset += ALIGN(le32_to_cpu(cp_hdr->jt_size) << 2, PAGE_SIZE); } fw_offset += ALIGN(ucode->ucode_size, PAGE_SIZE); } } return 0; }
559621.c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63a.c Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc.label.xml Template File: sources-sink-63a.tmpl.c */ /* * @description * CWE: 680 Integer Overflow to Buffer Overflow * BadSource: rand Set data to result of rand(), which may be zero * GoodSource: Small number greater than zero that will not cause an integer overflow in the sink * Sinks: * BadSink : Attempt to allocate array using length value from source * Flow Variant: 63 Data flow: pointer to data passed from one function to another in different source files * * */ #include "std_testcase.h" #ifndef OMITBAD /* bad function declaration */ void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63b_badSink(int * dataPtr); void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63_bad() { int data; /* Initialize data */ data = -1; /* POTENTIAL FLAW: Set data to a random value */ data = RAND32(); CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63b_badSink(&data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63b_goodG2BSink(int * data); static void goodG2B() { int data; /* Initialize data */ data = -1; /* FIX: Set data to a relatively small number greater than zero */ data = 20; CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63b_goodG2BSink(&data); } void CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63_good() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_rand_63_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
497454.c
// This file is part of "skiftOS" licensed under the MIT License. // See: LICENSE.md // Project URL: github.com/maker-dev/skift #include "cpu/cpu.h" #include "devices/atapio.h" #include "kernel/logging.h" #include "sync/atomic.h" int atapio_common(u8 drive, u32 numblock, u8 count) { outb(0x1F1, 0x00); /* NULL byte to port 0x1F1 */ outb(0x1F2, count); /* Sector count */ outb(0x1F3, (unsigned char)numblock); /* Low 8 bits of the block address */ outb(0x1F4, (unsigned char)(numblock >> 8)); /* Next 8 bits of the block address */ outb(0x1F5, (unsigned char)(numblock >> 16)); /* Next 8 bits of the block address */ /* Drive indicator, magic bits, and highest 4 bits of the block address */ outb(0x1F6, 0xE0 | (drive << 4) | ((numblock >> 24) & 0x0F)); return 0; } void atapio_wait() { u8 status; do { status = inb(0x1F7); } while ((status & 0x80) && !(status & 0x08)); } int atapio_read(u8 drive, u32 numblock, u8 count, char *buf) { atomic_begin(); debug("ATA::pio read drive:%d block:%d count:%d", drive, numblock, count); u16 tmpword; int idx; atapio_common(drive, numblock, count); outb(0x1F7, 0x20); /* Wait for the drive to signal that it's ready: */ atapio_wait(); for (idx = 0; idx < 256 * count; idx++) { tmpword = inw(0x1F0); buf[idx * 2] = (unsigned char)tmpword; buf[idx * 2 + 1] = (unsigned char)(tmpword >> 8); } debug("ATA::pio read done!"); atomic_end(); return count; } int atapio_write(u8 drive, u32 numblock, u8 count, char *buf) { // atomic_begin(); debug("ATA::pio write drive:%d block:%d count:%d", drive, numblock, count); u16 tmpword; atapio_common(drive, numblock, count); outb(0x1F7, 0x30); /* Wait for the drive to signal that it's ready: */ atapio_wait(); for (int i = 0; i < 256 * count; i++) { tmpword = (buf[i * 2 + 1] << 8) | buf[i * 2]; outw(0x1F0, tmpword); } debug("ATA::pio write done!"); atomic_end(); return count; }
379591.c
/*************************************************************************************************** ExploreEmbedded Copyright Notice ***************************************************************************************************** * File: logo.c * Version: 16.0 * Author: ExploreEmbedded * Website: http://www.exploreembedded.com/wiki * Description: File contains the bitmap for sample Logos. * Note: The logos are just for demo purpose and all rights pertaining to these belong to the respective owners. This code has been developed and tested on ExploreEmbedded boards. We strongly believe that the library works on any of development boards for respective controllers. Check this link http://www.exploreembedded.com/wiki for awesome tutorials on 8051,PIC,AVR,ARM,Robotics,RTOS,IOT. ExploreEmbedded invests substantial time and effort developing open source HW and SW tools, to support consider buying the ExploreEmbedded boards. The ExploreEmbedded libraries and examples are licensed under the terms of the new-bsd license(two-clause bsd license). See also: http://www.opensource.org/licenses/bsd-license.php EXPLOREEMBEDDED DISCLAIMS ANY KIND OF HARDWARE FAILURE RESULTING OUT OF USAGE OF LIBRARIES, DIRECTLY OR INDIRECTLY. FILES MAY BE SUBJECT TO CHANGE WITHOUT PRIOR NOTICE. THE REVISION HISTORY CONTAINS THE INFORMATION RELATED TO UPDATES. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that this copyright notices appear in all copies and that both those copyright notices and this permission notice appear in supporting documentation. ***************************************************************************************************/ #define _audi_ 0 #define _ford_ 1 #define _puma_ 2 #define _sparx_ 3 #define _intel_ 5 #define _microsoft_ 6 #define _nike_ 7 #define _spartans_ 8 #define _tajmahal_1_ 9 #define _tajmahal_2_ 10 #define _titanic_ 11 #define _AshokStambh_ 12 #define _Camera_ 13 #define _exploreEmbedded_ 14 #define _PremierLeage_ 15 #define _Arsenal_ 16 #define _Chelsea_ 17 #define _LiverPool_ 18 #define _ManchesterUnited_ 19 #define _SouthWalesScorpians_ 20 #define _IPL_ 21 #define _Bengaluru_ 22 #define _Delhi_ 23 #define _Gujrat_ 24 #define _Hyderabad_ 25 #define _Kolkata_ 26 #define _Mumbai_ 27 #define _Punjab_ 28 #define _Pune_ 29 #define _MakeInIndia_ 30 #define _NoLogo_ 99 /**************************************************************************** Select one of the above logos to be displayed ****************************************************************************/ #define SelectLogo _exploreEmbedded_ /***************************************************************************/ /****************************************************************************************************** 128x64 BitMap for standard Logos *******************************************************************************************************/ #if (SelectLogo == _audi_) code const unsigned char LogoBitMap[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x8F, 0x87, 0xC7, 0xC7, 0xE3, 0xE3, 0xF3, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF5, 0xF3, 0xF3, 0xEB, 0xEB, 0xDF, 0xF7, 0xBF, 0x7F, 0x7F, 0x0F, 0x8F, 0xC7, 0xC7, 0xE3, 0xE3, 0xF3, 0xF3, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF3, 0xFB, 0xEB, 0xFF, 0xDF, 0xDF, 0xB7, 0xFF, 0x5F, 0x8F, 0x87, 0xC7, 0xC7, 0xE3, 0xE3, 0xF3, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xFB, 0xFB, 0xEB, 0xFB, 0xDF, 0xFF, 0xBF, 0x7F, 0x0F, 0x0F, 0x8F, 0xC7, 0xC7, 0xE3, 0xE3, 0xF3, 0xF3, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF1, 0xF3, 0xEB, 0xEB, 0xFF, 0xDF, 0xDF, 0xBF, 0xEF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x07, 0x01, 0xE0, 0xE0, 0xF8, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x0F, 0x03, 0xC0, 0xF0, 0xFC, 0xFE, 0xFE, 0xFE, 0xFF, 0x27, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x07, 0x01, 0xE0, 0xE0, 0xF8, 0xFC, 0xF6, 0xFD, 0x3B, 0x0F, 0x0F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x0F, 0x03, 0xC0, 0xF0, 0xFC, 0xFE, 0xFF, 0xFF, 0xD9, 0x27, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xED, 0x33, 0x0F, 0x0F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0xC0, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xE1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80, 0x80, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0xE1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFD, 0xFD, 0xF7, 0xEF, 0xDB, 0xBF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7E, 0x3F, 0x1C, 0x3B, 0xBF, 0x9F, 0x9F, 0xC3, 0xF0, 0xF8, 0xDE, 0xFF, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7B, 0x3E, 0x19, 0x19, 0x37, 0xAF, 0xC3, 0xE0, 0x70, 0xFC, 0xFC, 0xBF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7E, 0x3E, 0x1C, 0x3B, 0xAF, 0x9F, 0xC1, 0xC1, 0xF0, 0xF8, 0xFE, 0xFF, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x1F, 0x1F, 0x1F, 0x8F, 0xC3, 0xE1, 0xF0, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFD, 0xFD, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFD, 0xFD, 0xFD, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFD, 0xFD, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFD, 0xFD, 0xFD, 0xFC, 0xFC, 0xFC, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x9F, 0xCF, 0xF2, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0xBF, 0xDF, 0xDF, 0xDF, 0xDE, 0xDE, 0xFE, 0xEE, 0xEE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0xDF, 0xDF, 0xDF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x9F, 0xEF, 0xF3, 0xFC, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xB3, 0xB3, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0xBF, 0x9F, 0xCE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF9, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0xFF, 0xBF, 0xBF, 0xBF, 0xDF, 0xE7, 0xE7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC1, 0xC1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; #endif #if (SelectLogo == _ford_) code const unsigned char LogoBitMap[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x40, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20, 0x08, 0x10, 0x90, 0x90, 0x90, 0x88, 0x88, 0xC8, 0xC8, 0xC8, 0xC4, 0xC4, 0xC4, 0xE4, 0x64, 0x64, 0x64, 0x64, 0x64, 0x62, 0x62, 0x62, 0x62, 0x72, 0x72, 0x72, 0x72, 0xF2, 0xF2, 0xF2, 0xD2, 0xF2, 0xF2, 0xF2, 0xD2, 0xD2, 0xD2, 0xD2, 0xD2, 0xF2, 0xF2, 0xF2, 0xF2, 0xF2, 0xF2, 0xF2, 0xF2, 0xE2, 0xE2, 0xE2, 0xA2, 0xA0, 0xA4, 0xE4, 0xE4, 0xE4, 0xE4, 0xC4, 0xC4, 0xC0, 0xC8, 0x48, 0xC8, 0x88, 0x88, 0x98, 0x90, 0x90, 0x10, 0x20, 0x20, 0x20, 0x20, 0x60, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0, 0x60, 0x30, 0x10, 0x88, 0xCC, 0xC4, 0xE4, 0xE2, 0xF2, 0xF1, 0xF9, 0xF9, 0xF8, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x07, 0x03, 0x01, 0xF1, 0xF8, 0xF8, 0xFC, 0x7C, 0x3C, 0x1E, 0xDE, 0xFE, 0xFE, 0xFE, 0xFE, 0x7C, 0x3C, 0x1C, 0x8C, 0xC4, 0xE4, 0x70, 0x30, 0x38, 0x78, 0xF0, 0xF1, 0xF1, 0xF1, 0xE1, 0xE1, 0xE1, 0xE1, 0xC1, 0xC1, 0xC3, 0xC3, 0xC1, 0xC1, 0xC1, 0xC1, 0xC1, 0xE1, 0xE1, 0xF1, 0xF1, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7F, 0xFE, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xF8, 0xF9, 0xF9, 0xF1, 0xF2, 0xE2, 0xE4, 0xC4, 0xCC, 0x98, 0x18, 0x30, 0x60, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFC, 0x0F, 0x03, 0x01, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0xBF, 0xFC, 0xF8, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xC8, 0xC8, 0xE4, 0x27, 0x07, 0x07, 0x03, 0xC1, 0xF0, 0xF0, 0xF2, 0xF3, 0x73, 0x73, 0x30, 0x30, 0x21, 0xF8, 0x7E, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x3F, 0x1F, 0x1F, 0x3F, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x7F, 0xFF, 0x7F, 0x1F, 0x0F, 0x03, 0x81, 0xC0, 0xF0, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF8, 0x01, 0x03, 0x1F, 0xFC, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0F, 0x1E, 0x38, 0x70, 0xE3, 0xC7, 0x8F, 0x1F, 0x3F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x01, 0x00, 0x00, 0x3C, 0x7E, 0x7F, 0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x81, 0xE0, 0xF0, 0xF8, 0xFE, 0x7F, 0x3F, 0x07, 0x03, 0x01, 0x00, 0xF8, 0xFC, 0xFE, 0xFE, 0x7F, 0x3F, 0x0F, 0x00, 0x80, 0xE0, 0xF1, 0xF8, 0x7C, 0x1E, 0x0E, 0x02, 0x80, 0xE0, 0xC0, 0x80, 0x0C, 0x1C, 0x98, 0x88, 0x0C, 0x06, 0x03, 0x01, 0x00, 0xF0, 0xF8, 0xFC, 0x7E, 0x3E, 0x1E, 0x00, 0x00, 0x80, 0xE0, 0xF0, 0xFC, 0x7E, 0x3F, 0x9F, 0xCF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x1F, 0x8F, 0xC7, 0xE3, 0x70, 0x38, 0x1E, 0x0F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x07, 0x06, 0x0C, 0x0C, 0x19, 0x19, 0x13, 0x33, 0x33, 0x67, 0x67, 0x67, 0xCF, 0xCF, 0xCF, 0x9F, 0x9F, 0x9E, 0x9C, 0x38, 0x38, 0x30, 0x30, 0x70, 0x70, 0x78, 0x78, 0x78, 0x7C, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFE, 0xFE, 0xF8, 0xF8, 0xF0, 0xF0, 0xF1, 0xF1, 0xF8, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xF3, 0xF0, 0xF0, 0xF8, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0xF8, 0xF0, 0xF0, 0xF1, 0xF1, 0xF8, 0xFC, 0xF8, 0x70, 0x70, 0x70, 0x71, 0x71, 0x78, 0x3C, 0x3E, 0x3F, 0x3F, 0x9F, 0x9F, 0x9F, 0x9F, 0xCF, 0xCF, 0xCF, 0xE7, 0x67, 0x67, 0x73, 0x33, 0x33, 0x19, 0x19, 0x0C, 0x0C, 0x06, 0x07, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x03, 0x03, 0x03, 0x03, 0x02, 0x06, 0x06, 0x06, 0x06, 0x06, 0x04, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x08, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x09, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x07, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _sparx_) code const unsigned char LogoBitMap[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x1F, 0x10, 0x20, 0x20, 0x20, 0x70, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x60, 0x80, 0x80, 0x78, 0xB8, 0x08, 0x07, 0x02, 0x0E, 0x0C, 0x10, 0x10, 0x00, 0x08, 0x08, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0x00, 0x80, 0xF0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x90, 0xE8, 0xE0, 0xF0, 0xF0, 0xF8, 0x7C, 0x38, 0x1E, 0x1E, 0x1E, 0x2E, 0xCE, 0xEF, 0xFF, 0xFE, 0x7E, 0x7E, 0x3E, 0x1E, 0x8C, 0xD0, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0x3C, 0x9C, 0xCF, 0xEA, 0xEB, 0xEF, 0xFE, 0xFD, 0xFF, 0xF8, 0xF8, 0xF8, 0xFC, 0xFF, 0x7C, 0xBC, 0x80, 0x80, 0xC0, 0x80, 0x00, 0xC0, 0xF0, 0x70, 0x60, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xFF, 0x7F, 0x7F, 0xFF, 0xFF, 0xFD, 0xF0, 0xE0, 0xE0, 0xC0, 0xC0, 0xBF, 0x3F, 0x78, 0x7C, 0x9E, 0x8E, 0xCE, 0xEE, 0xE7, 0xEF, 0xCF, 0xE3, 0x77, 0xB7, 0xF7, 0xF5, 0xF5, 0xE3, 0x0F, 0xDF, 0xDF, 0xEF, 0xF7, 0xFB, 0xFD, 0xFC, 0xFE, 0xFE, 0xFC, 0x35, 0x3B, 0x9B, 0xE0, 0xFF, 0xFF, 0x3F, 0xFF, 0xFF, 0xFE, 0xFD, 0x7D, 0x83, 0x83, 0xE7, 0xF3, 0x7C, 0x9F, 0xE7, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xC3, 0xE1, 0x71, 0x3C, 0xBC, 0x1E, 0x4E, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x06, 0x05, 0x0B, 0x1B, 0x77, 0xFF, 0xAF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xF3, 0xFF, 0xFF, 0xFF, 0xFF, 0xEF, 0xF1, 0xFC, 0x7F, 0x7F, 0x7F, 0x7F, 0xB7, 0xBC, 0x9F, 0xBF, 0xBF, 0xBF, 0xBF, 0xDF, 0xEF, 0xFF, 0xDF, 0xDF, 0xDF, 0xDC, 0xEF, 0xFF, 0xFF, 0xFD, 0xF0, 0xE0, 0xD7, 0xEF, 0xEF, 0xEF, 0xF7, 0x7F, 0x7B, 0xFB, 0xF8, 0xFF, 0x9F, 0x0B, 0x0C, 0x06, 0x06, 0x06, 0x05, 0x00, 0x06, 0x02, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0xB4, 0xBC, 0xBC, 0x38, 0xF8, 0xB8, 0xB8, 0x7A, 0x5E, 0x5C, 0x5C, 0x5E, 0x0E, 0x2E, 0x2F, 0x37, 0x17, 0x17, 0xC3, 0xF9, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCF, 0xCF, 0xFE, 0xDF, 0xDF, 0xDF, 0xDF, 0xCF, 0xEF, 0xEF, 0xEF, 0xFF, 0xEF, 0xEF, 0xFF, 0xF7, 0xF7, 0xF7, 0xF3, 0xFB, 0xFD, 0xFD, 0xFD, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x1F, 0x0F, 0x07, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x0E, 0x7F, 0x5F, 0x5F, 0x1F, 0x0F, 0x03, 0x03, 0x00, 0x01, 0x03, 0x03, 0x07, 0x07, 0x07, 0x03, 0x07, 0x07, 0x0F, 0x0F, 0x0F, 0x0F, 0x1F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _puma_) code const unsigned char LogoBitMap[] = { 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x0F, 0x07, 0x07, 0x07, 0x07, 0x0F, 0x0F, 0x0F, 0x0F, 0x3F, 0x3F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x0F, 0x0F, 0x0F, 0x07, 0x87, 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x0E, 0x8C, 0x0C, 0x0C, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x03, 0x07, 0x0F, 0x0F, 0x1F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x07, 0xF1, 0xF8, 0xFC, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFE, 0xFC, 0xF8, 0xF8, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC1, 0xC1, 0xC1, 0xC3, 0x03, 0x03, 0x07, 0x07, 0x07, 0x03, 0x03, 0xF1, 0xF1, 0xF8, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xCF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xCF, 0xCF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xCF, 0x8F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x1F, 0x1F, 0xFF, 0xFF, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xCF, 0x8F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xF0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF8, 0xF0, 0xF0, 0x80, 0x03, 0x07, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC7, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xE0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE7, 0xC3, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xF8, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xFF, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; #endif #if (SelectLogo == _intel_) code const unsigned char LogoBitMap[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xD0, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xE0, 0xF0, 0xF0, 0xF8, 0xF8, 0x7C, 0x3C, 0x3E, 0x3E, 0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x43, 0xC3, 0xE1, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x61, 0x21, 0x03, 0x03, 0x43, 0xC3, 0x83, 0x87, 0x87, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF8, 0xDC, 0x7C, 0x3E, 0x1F, 0x0F, 0x07, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xC0, 0xDC, 0xFC, 0xFC, 0x20, 0x20, 0x10, 0x80, 0xC0, 0x40, 0x40, 0xC0, 0x00, 0x02, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x04, 0x04, 0x07, 0x0F, 0x0F, 0x1F, 0x1F, 0x36, 0x7E, 0x7C, 0xF8, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF8, 0xFE, 0x3F, 0x0F, 0x03, 0x01, 0x00, 0x00, 0x98, 0x98, 0x00, 0x00, 0xFC, 0xFC, 0xEC, 0x20, 0x30, 0x78, 0xF9, 0xE1, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0x00, 0x00, 0xFE, 0xFF, 0x89, 0x88, 0xC6, 0xE3, 0x40, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x0F, 0x3F, 0xFC, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x1F, 0x3F, 0x03, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x00, 0x00, 0x00, 0x1F, 0x1F, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x80, 0xC0, 0xC1, 0x01, 0x00, 0x90, 0x9C, 0x98, 0x00, 0x00, 0xC0, 0xE0, 0x60, 0x70, 0xFF, 0xFF, 0x03, 0x00, 0xF0, 0xFC, 0xDE, 0x46, 0x62, 0x3E, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0xF0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE6, 0xE6, 0x04, 0x00, 0x28, 0xFC, 0xFC, 0x30, 0x10, 0x18, 0xF8, 0xF0, 0x00, 0x0C, 0x1F, 0x3F, 0x63, 0xC1, 0x80, 0x00, 0x07, 0xFF, 0xFB, 0x00, 0x3C, 0xFF, 0xC3, 0xC0, 0x20, 0xBF, 0xFF, 0x00, 0x00, 0x07, 0x0F, 0x08, 0x08, 0x1C, 0x0E, 0x06, 0x00, 0x80, 0xC0, 0xF0, 0x3E, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0D, 0x3E, 0x78, 0xF0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x00, 0x00, 0x00, 0x1F, 0x3F, 0x02, 0x00, 0x18, 0x1C, 0x1F, 0x07, 0x03, 0x00, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xB0, 0x70, 0x3C, 0x1E, 0x0F, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x07, 0x0F, 0x1E, 0x16, 0x3C, 0x7C, 0x78, 0x78, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xF0, 0x70, 0x70, 0x78, 0x38, 0x3C, 0x1C, 0x1E, 0x0A, 0x0F, 0x07, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _microsoft_) code const unsigned char LogoBitMap[] ={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x90, 0xE8, 0x10, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x02, 0x24, 0x04, 0x44, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0C, 0x0C, 0x0E, 0x18, 0x18, 0x1C, 0x3C, 0x7E, 0xF1, 0xFF, 0xFF, 0xFF, 0x3B, 0x0C, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x0C, 0x30, 0x20, 0x60, 0xF0, 0xDC, 0xD0, 0xB0, 0xF0, 0xF0, 0xF0, 0x30, 0x0C, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x06, 0x04, 0x0C, 0x08, 0x10, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xC0, 0xF0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x01, 0xE0, 0xE7, 0xE7, 0xE7, 0xE7, 0x67, 0x03, 0x00, 0x80, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0xC0, 0xE0, 0xE0, 0xA0, 0x80, 0xC0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xC0, 0x00, 0x80, 0xE0, 0xE0, 0xE0, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xEF, 0xE7, 0xE3, 0xE0, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xE0, 0x00, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFF, 0x7F, 0x1F, 0xC7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x03, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xBF, 0x07, 0x03, 0x01, 0x00, 0x81, 0x87, 0x87, 0x87, 0x87, 0x87, 0x07, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x0F, 0x07, 0x03, 0xF3, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, 0x03, 0x01, 0x00, 0x00, 0xC1, 0xFF, 0xFF, 0xBF, 0xBF, 0xBF, 0x9E, 0x80, 0x8F, 0x9F, 0x9F, 0x3F, 0x3F, 0x3F, 0x7C, 0x7C, 0xFC, 0xF9, 0xFB, 0xFB, 0xF3, 0xE3, 0x03, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, 0x01, 0x01, 0x00, 0x00, 0xC1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x81, 0xF9, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x01, 0x01, 0xC1, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x01, 0x01, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x0F, 0x00, 0x00, 0x0B, 0x1F, 0x1F, 0x1F, 0x1F, 0x0F, 0x03, 0x00, 0x18, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x0F, 0x00, 0x1E, 0x1F, 0x1F, 0x1F, 0x1F, 0x0F, 0x00, 0x00, 0x03, 0x07, 0x0F, 0x1F, 0x1F, 0x1F, 0x1E, 0x1E, 0x1E, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x03, 0x01, 0x1E, 0x1F, 0x1F, 0x1F, 0x1F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x0F, 0x0F, 0x1F, 0x1F, 0x1E, 0x1E, 0x1E, 0x1E, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x01, 0x01, 0x07, 0x0F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1C, 0x1C, 0x1C, 0x1E, 0x1F, 0x1F, 0x1F, 0x0F, 0x07, 0x03, 0x00, 0x03, 0x07, 0x0F, 0x1F, 0x1F, 0x1F, 0x1E, 0x1E, 0x1E, 0x1E, 0x1F, 0x1F, 0x0F, 0x07, 0x07, 0x01, 0x00, 0x08, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x07, 0x00, 0x00, 0x00, 0x0F, 0x0F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1E, 0x06, 0x00 }; #endif #if (SelectLogo == _nike_) code const unsigned char LogoBitMap[] ={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xF0, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x00, 0x00, 0x00, 0xE0, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x7C, 0x8C, 0xF0, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x1C, 0x84, 0xF0, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x7C, 0x1C, 0x80, 0xC0, 0xE0, 0xF0, 0xFC, 0xFC, 0xFC, 0xFC, 0x7C, 0x3C, 0x1C, 0xCC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x7C, 0x3C, 0x04, 0x00, 0x00, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0xC0, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x8F, 0xF1, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x83, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFE, 0xFF, 0x7F, 0x1F, 0x0F, 0x07, 0x03, 0x01, 0x00, 0xC0, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCF, 0xC1, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x87, 0xF1, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x83, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0x00, 0x00, 0x00, 0xC0, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x0F, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0x40, 0x60, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE0, 0xF8, 0xFC, 0x06, 0x00, 0x00, 0x00, 0xC0, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x07, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x8F, 0xF1, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x87, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x07, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFB, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xC8, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0x78, 0x78, 0x3C, 0x3C, 0x3C, 0x1C, 0x1E, 0x0E, 0x0E, 0x07, 0x07, 0x07, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF0, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0x80, 0x00, 0x00, 0x00, 0x01, 0x01, 0x81, 0x81, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x81, 0x81, 0x81, 0x81, 0xC1, 0xC1, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xF1, 0xF1, 0xF1, 0xF1, 0xF9, 0xF9, 0xF9, 0xFD, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x1F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x07, 0x03, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xF8, 0xF0, 0xF3, 0xF3, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x07, 0x07, 0x03, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x07, 0x07, 0x0F, 0x1F, 0x1F, 0x3F, 0x3F, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x07, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _spartans_) code const unsigned char LogoBitMap[] ={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xC0, 0xE0, 0x60, 0xE0, 0xB0, 0xB0, 0x70, 0x58, 0x78, 0x38, 0x3C, 0x3C, 0x3C, 0x1C, 0x1C, 0x1E, 0x1E, 0x1E, 0x0E, 0x0E, 0x0E, 0x0E, 0x0E, 0x0E, 0x0E, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x0E, 0x0E, 0x0E, 0x0E, 0x0E, 0x0E, 0x0E, 0x1E, 0x1E, 0x1E, 0x9C, 0x9C, 0x9C, 0xFC, 0xF8, 0xF8, 0x78, 0x78, 0x70, 0x70, 0x70, 0x60, 0x60, 0x60, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xB8, 0x7C, 0x3C, 0x3E, 0x17, 0x0B, 0x0B, 0x05, 0x07, 0x02, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0x40, 0x60, 0x20, 0x20, 0x20, 0x10, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0C, 0x1E, 0x12, 0x13, 0x11, 0x31, 0x21, 0x20, 0x40, 0x40, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFC, 0xFF, 0x1F, 0x0F, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF8, 0x4C, 0xF2, 0x05, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x1C, 0x1C, 0x1C, 0x1E, 0x1E, 0x1E, 0x1C, 0x3C, 0x1C, 0x3C, 0x3C, 0x3C, 0x78, 0xF8, 0xF1, 0xF3, 0xE6, 0xCC, 0xD0, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x0F, 0x3E, 0xF7, 0xDC, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xF8, 0xFF, 0xF7, 0xD8, 0xA0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x0F, 0x1F, 0x3F, 0x7F, 0xFF, 0xFA, 0xF4, 0xF8, 0xF0, 0xE0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0C, 0x18, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x10, 0x0F, 0x07, 0x01, 0x00, 0x00, 0x10, 0x18, 0x0C, 0x0E, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0E, 0x0E, 0x0E, 0x1E, 0x1C, 0x1C, 0x1C, 0x3C, 0x3C, 0x3C, 0x7C, 0x7C, 0xFC, 0xBC, 0xFC, 0x1C, 0x1C, 0x1C, 0x0C, 0x0C, 0x0C, 0x0E, 0x0E, 0x0E, 0x0E, 0x06, 0x06, 0x07, 0x07, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x70, 0x10, 0x00, 0x00, 0x00, 0x10, 0x50, 0x70, 0x80, 0x00, 0x01, 0xF0, 0x00, 0x00, 0x00, 0xD0, 0x20, 0x20, 0x40, 0xD0, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x10, 0x10, 0xF0, 0x10, 0x10, 0x00, 0x10, 0x30, 0xC0, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x60, 0xC0, 0x20, 0x30, 0x40, 0x40, 0x30, 0x00, 0x00, 0x00, 0xB0, 0x90, 0x80, 0x01, 0x01, 0x80, 0xB0, 0xA0, 0x50, 0x40, 0x00, 0x10, 0x10, 0xF0, 0x10, 0x10, 0x00, 0x00, 0xF0, 0x80, 0x90, 0x00, 0x00, 0x00, 0xF0, 0x10, 0x50, 0xB0, 0x80, 0x00, 0x00, 0x10, 0x20, 0x60, 0x40, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x06, 0x0F, 0x1F, 0x1D, 0x38, 0x38, 0x70, 0x70, 0xF0, 0xE0, 0xE1, 0xE1, 0xC1, 0xC2, 0x80, 0x00, 0x00, 0x00, 0x02, 0xFE, 0xFE, 0xFE, 0x82, 0x82, 0x82, 0xC2, 0x46, 0x7E, 0x3C, 0x3C, 0x18, 0x00, 0xC0, 0x60, 0x18, 0x0E, 0x1E, 0x7E, 0xF8, 0xF0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x02, 0x02, 0xFE, 0xFE, 0xFE, 0xBE, 0x82, 0x82, 0x82, 0x46, 0x7E, 0x3C, 0x3C, 0x18, 0x00, 0x00, 0x06, 0x02, 0x02, 0x02, 0x02, 0xFE, 0xFE, 0xFE, 0xFE, 0x02, 0x02, 0x02, 0x02, 0x06, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x70, 0x18, 0x0E, 0x3E, 0x7C, 0xF8, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0xFC, 0x38, 0x78, 0xF0, 0xE0, 0xE0, 0xC0, 0x82, 0x82, 0xFE, 0xFE, 0xFE, 0x02, 0x02, 0x00, 0x00, 0x0E, 0x0F, 0x1F, 0x3D, 0x38, 0x78, 0x70, 0x70, 0xE0, 0xE1, 0xE1, 0xC3, 0xC2, 0xC0, 0x00, 0x01, 0x0E, 0x0C, 0x0C, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0C, 0x0F, 0x07, 0x07, 0x03, 0x01, 0x00, 0x00, 0x08, 0x0F, 0x0F, 0x0F, 0x09, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x0C, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x0F, 0x0F, 0x0E, 0x08, 0x08, 0x08, 0x08, 0x0F, 0x0F, 0x0F, 0x0D, 0x08, 0x00, 0x01, 0x03, 0x07, 0x0F, 0x2E, 0x3C, 0x38, 0x30, 0x60, 0x60, 0x40, 0x80, 0x08, 0x0F, 0x0F, 0x0F, 0x0F, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x0E, 0x0B, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0B, 0x0F, 0x0F, 0x0E, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0F, 0x0F, 0x0F, 0x08, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x07, 0x0F, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x0E, 0x0C, 0x0C, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0D, 0x0F, 0x07, 0x07, 0x03 }; #endif #if (SelectLogo == _tajmahal_1_) code const unsigned char LogoBitMap[] ={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xFC, 0xFF, 0xFC, 0xE0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0x60, 0x30, 0x18, 0x18, 0x0C, 0x0E, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0E, 0x0E, 0x1C, 0x18, 0x70, 0x70, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0xB8, 0xFC, 0xFE, 0xFB, 0xFF, 0xFE, 0xFC, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0xE0, 0xFC, 0x0E, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x0F, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xB0, 0xFC, 0xFE, 0xF7, 0xF7, 0xFE, 0xFC, 0xB0, 0x30, 0x00, 0x00, 0x00, 0x01, 0xFF, 0x3F, 0x03, 0x01, 0x03, 0xFF, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0xF8, 0xFC, 0xFC, 0xF8, 0xF0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xE0, 0xF0, 0xE0, 0xC0, 0xC0, 0x00, 0x00, 0x80, 0xE0, 0xF0, 0xD8, 0xCC, 0xCE, 0xCF, 0xC7, 0xCE, 0xCD, 0xDF, 0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0xAF, 0xAF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF, 0xAF, 0xAF, 0xBF, 0xFF, 0xFF, 0xFF, 0xDF, 0xDC, 0xCE, 0xCF, 0xCF, 0xCC, 0xD8, 0xF8, 0xF0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xE0, 0xF0, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0xF0, 0xF0, 0xD8, 0xF8, 0xF0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFB, 0xFF, 0x03, 0x03, 0x0F, 0x0F, 0xFF, 0xF7, 0x03, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0x38, 0x3C, 0x3C, 0x3C, 0xFF, 0xFF, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x03, 0x03, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xF0, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xF3, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xF0, 0xF8, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xFF, 0x0F, 0x07, 0x07, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xFF, 0xFF, 0x38, 0x38, 0x38, 0x38, 0xFF, 0xFF, 0x30, 0x00, 0x80, 0xC0, 0xFF, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 0xDF, 0xFF, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x06, 0xFF, 0x0F, 0x0E, 0x0E, 0x3F, 0xFF, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0xFF, 0x80, 0xFE, 0x86, 0x83, 0x86, 0xFE, 0x80, 0xFF, 0x00, 0xF8, 0xFE, 0x82, 0x83, 0x83, 0x83, 0x86, 0xFE, 0x80, 0x80, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x0F, 0x07, 0x03, 0x03, 0xF1, 0x38, 0x18, 0x19, 0xF9, 0xE3, 0x07, 0x0F, 0x1F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x17, 0xFC, 0xFE, 0x06, 0x83, 0x83, 0x87, 0xFE, 0xFC, 0x80, 0x00, 0xFF, 0xFC, 0xFE, 0x06, 0x83, 0x87, 0xFE, 0xF8, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0x0E, 0x0E, 0x0E, 0xFF, 0xFF, 0x06, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0xCF, 0x80, 0x80, 0x80, 0x80, 0x81, 0xFF, 0xC0, 0x80, 0x01, 0xFF, 0xFF, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xFF, 0xE1, 0x01, 0x00, 0x00, 0x00, 0x0C, 0xFF, 0xFF, 0x0E, 0x0E, 0x0E, 0x1E, 0xFF, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x07, 0xFB, 0x0F, 0x0F, 0x0F, 0xFB, 0xF3, 0xFF, 0x00, 0xF7, 0xFF, 0x1F, 0x0F, 0x0F, 0x0F, 0x1B, 0xF3, 0x03, 0x03, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x03, 0x03, 0x03, 0x03, 0xE3, 0xF3, 0x33, 0x33, 0xF3, 0x01, 0x01, 0x01, 0x01, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x07, 0xF7, 0xFF, 0x1F, 0x0F, 0x0F, 0x1F, 0xFF, 0xF7, 0x07, 0x00, 0xFF, 0xF7, 0xFF, 0x0D, 0x0D, 0x0D, 0xFD, 0xE7, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0xFF, 0x1F, 0x1E, 0x1E, 0x1E, 0x1F, 0xFF, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x81, 0xFF, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0xFF, 0xFF, 0x01, 0x06, 0xFF, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8E, 0x8F, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8F, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8E, 0x8E, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8F, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8F, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0x8F, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8E, 0x8F, 0xFF, 0xFE }; #endif #if (SelectLogo == _tajmahal_2_) code const unsigned char LogoBitMap[] ={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x60, 0x20, 0x10, 0x08, 0x0C, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x04, 0x04, 0x08, 0x30, 0x60, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x64, 0x66, 0x68, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x9C, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC3, 0xFF, 0xFE, 0xFC, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x48, 0x44, 0x44, 0x48, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x06, 0xFE, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x20, 0x00, 0x10, 0x00, 0x20, 0x40, 0x80, 0x1F, 0x1F, 0x0F, 0x06, 0x84, 0x0C, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x68, 0x64, 0x64, 0x66, 0xEE, 0xCF, 0xCF, 0x8F, 0x8F, 0x1F, 0x07, 0x80, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x20, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x04, 0x04, 0x3C, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00, 0x00, 0xDF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x01, 0x09, 0xF9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x98, 0x90, 0x80, 0x80, 0x84, 0xFF, 0xD6, 0x84, 0xE4, 0x94, 0x84, 0xC6, 0xF6, 0xFF, 0xC0, 0xC0, 0xC0, 0xF8, 0xF8, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0xF8, 0x80, 0x80, 0xFC, 0x84, 0x84, 0x94, 0x94, 0x94, 0x84, 0xF6, 0xF7, 0x87, 0x80, 0x80, 0x90, 0x90, 0x1F, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0B, 0x7B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x01, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xC0, 0x70, 0x30, 0x60, 0x00, 0xBE, 0x00, 0x00, 0xE0, 0xF0, 0x18, 0x18, 0x10, 0x60, 0x00, 0x00, 0x00, 0xFF, 0x07, 0x00, 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xF8, 0xFC, 0x7C, 0x7C, 0x7C, 0x78, 0x78, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xE0, 0xF0, 0x10, 0x10, 0x10, 0x10, 0x60, 0x00, 0x00, 0xFE, 0x00, 0xF0, 0x70, 0x70, 0xC0, 0x05, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7F, 0x00, 0x00, 0x00, 0x1C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x60, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDF, 0x0F, 0x07, 0x80, 0xC0, 0x80, 0x00, 0x05, 0x00, 0x00, 0x87, 0xC0, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x87, 0xC0, 0x40, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x83, 0xC0, 0x80, 0x03, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x40, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x9F, 0x80, 0x80, 0x80, 0xFF, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x81, 0x80, 0xFF, 0x81, 0x80, 0x81, 0x80, 0xC0, 0x80, 0x80, 0x9F, 0x81, 0x80, 0x80, 0xC0, 0xC3, 0x80, 0x80, 0xC0, 0xC7, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 0xDF, 0xC1, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC7, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xCF, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xDF, 0xC0, 0xC0, 0xC1, 0xD8, 0xC3, 0xC0, 0xC1, 0xDE, 0xC0, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 0xC0, 0x80, 0x80, 0x80, 0x80, 0x80, 0xBF, 0x80, 0x80, 0x80, 0x80, 0x80, 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _titanic_) code const unsigned char LogoBitMap[] ={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0xFE, 0x7E, 0x7E, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFC, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x47, 0x47, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x37, 0x3F, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x3F, 0x3F, 0x3F, 0x3F, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x0F, 0x06, 0x06, 0x00, 0x0F, 0xE6, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF4, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xC0, 0x08, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xD0, 0xD0, 0xC0, 0xC0, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x04, 0x16, 0x16, 0x16, 0x96, 0x86, 0x86, 0x86, 0x84, 0x84, 0x86, 0x86, 0x86, 0x82, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x8A, 0x88, 0x88, 0x88, 0x84, 0x84, 0x81, 0x85, 0x85, 0xE5, 0xE5, 0xE4, 0xE4, 0xE4, 0xE4, 0xE4, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE2, 0xE2, 0xE2, 0xE2, 0xE2, 0xE2, 0xE2, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF1, 0xF1, 0xF0, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x31, 0x73, 0x73, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x8F, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x25, 0x25, 0x3C, 0x3C, 0x3D, 0x9C, 0x81, 0x85, 0x85, 0x1F, 0x1F, 0x1B, 0x1B, 0x1F, 0x9F, 0x9F, 0x9B, 0x9B, 0x3B, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x63, 0x63, 0x7F, 0x63, 0x63, 0x63, 0x67, 0x7F, 0x1F, 0x1F, 0x5F, 0x5F, 0x5F, 0x1F, 0x1F, 0x5F, 0x1F, 0x1F, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x03, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x3F, 0x3F, 0x27, 0x27, 0x3F, 0x3F, 0x3F, 0x3F, 0x27, 0x23, 0x07, 0x04, 0x04, 0x04, 0x00, 0x01, 0x1C }; #endif #if (SelectLogo == _AshokStambh_) code const unsigned char LogoBitMap[] ={ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x8F, 0xE7, 0xF3, 0xE3, 0xD3, 0x33, 0xC9, 0xED, 0x26, 0x12, 0x89, 0x01, 0x13, 0xA7, 0x4F, 0x8F, 0x9F, 0xBF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x1F, 0x4F, 0x5F, 0x3F, 0x3F, 0x3F, 0x3F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xEF, 0xE7, 0xF3, 0xFB, 0x01, 0xF9, 0x81, 0xB9, 0xB9, 0x99, 0xC9, 0xE9, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE7, 0x11, 0x7C, 0x7C, 0xFE, 0xFE, 0xF8, 0x79, 0x73, 0xCB, 0x90, 0x23, 0x2B, 0x0B, 0x52, 0xE0, 0x4A, 0x5A, 0x12, 0x20, 0x42, 0x51, 0x91, 0x12, 0x52, 0x81, 0xA1, 0x61, 0x49, 0x59, 0x74, 0x84, 0x08, 0x6A, 0x44, 0xD1, 0x11, 0x25, 0x29, 0x03, 0x8B, 0x83, 0x27, 0x47, 0x4F, 0x0F, 0x9F, 0x1F, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x0F, 0x2B, 0xBB, 0x91, 0x45, 0x21, 0x01, 0xA0, 0x00, 0x80, 0x45, 0xF5, 0x69, 0xB9, 0x2F, 0x2F, 0x2F, 0xF7, 0x7F, 0x7B, 0xFB, 0x16, 0x94, 0xA8, 0xE8, 0xC8, 0x09, 0x43, 0x1F, 0x1F, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x74, 0x74, 0x44, 0x4C, 0x60, 0x74, 0x7C, 0xFF, 0x7F, 0x3F, 0x3F, 0xBF, 0xBF, 0x9F, 0x9F, 0x1F, 0x9F, 0x4F, 0xEC, 0xA3, 0x47, 0x69, 0x67, 0x6E, 0x68, 0xE7, 0xCE, 0xC9, 0x17, 0x8E, 0xB0, 0xA2, 0xB3, 0x34, 0x31, 0x33, 0x2A, 0x5B, 0x11, 0x55, 0xE9, 0x8A, 0x24, 0xA4, 0x42, 0x2A, 0x30, 0xC9, 0x29, 0x1A, 0x92, 0x46, 0x04, 0x01, 0x8A, 0x18, 0x05, 0x94, 0x20, 0x10, 0x22, 0x31, 0x10, 0x98, 0xBC, 0xBD, 0x3D, 0x3C, 0x3D, 0xBF, 0xBF, 0xBD, 0xBD, 0xBD, 0x3D, 0x3D, 0x3D, 0x3E, 0xDF, 0xDF, 0xCF, 0x4F, 0x4F, 0x4E, 0x4E, 0x06, 0x87, 0x87, 0x8B, 0x09, 0x00, 0xF7, 0x04, 0xC8, 0xF5, 0x5F, 0x75, 0x74, 0x9D, 0x9B, 0x0B, 0x1B, 0x1F, 0x1B, 0x5A, 0x6E, 0x66, 0xFB, 0xFA, 0xD2, 0xF6, 0xA4, 0x12, 0x10, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFE, 0xB0, 0xB2, 0x9A, 0xDA, 0xE2, 0xFE, 0x47, 0x28, 0xB7, 0xB9, 0xA6, 0xF2, 0xFC, 0xE2, 0xDB, 0xC9, 0xDD, 0xC3, 0xC7, 0x1B, 0x2A, 0xDC, 0xBD, 0x42, 0x39, 0x83, 0xC6, 0xB4, 0x30, 0xF0, 0xA1, 0x03, 0x01, 0x0D, 0x7C, 0x78, 0x00, 0x03, 0x68, 0x64, 0x32, 0xD2, 0xF4, 0x62, 0x11, 0xD4, 0x66, 0x3A, 0x94, 0xC6, 0x22, 0x9A, 0xC4, 0x02, 0x88, 0x48, 0x4C, 0x04, 0xD0, 0x41, 0x43, 0x0F, 0x0F, 0x2F, 0x2F, 0xAF, 0xAF, 0xBF, 0xBE, 0xAE, 0xAE, 0xBE, 0x8C, 0x8C, 0xCD, 0xCC, 0xCE, 0xC6, 0xC6, 0xD6, 0xD6, 0xCB, 0xCA, 0xCA, 0x81, 0x9D, 0xDE, 0xC4, 0x80, 0x00, 0xC2, 0x10, 0x4C, 0x54, 0x7A, 0x3D, 0xAD, 0x5A, 0x0E, 0x82, 0x9E, 0x18, 0x36, 0x58, 0xB5, 0x79, 0x7A, 0x75, 0x49, 0x33, 0xC0, 0x11, 0xB5, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0xBF, 0xBF, 0xBF, 0xBF, 0x3F, 0xBF, 0xBF, 0xF1, 0x02, 0x2E, 0xFA, 0x22, 0x4F, 0xDF, 0xF1, 0x65, 0x5C, 0xDC, 0xE1, 0xF1, 0x60, 0x2A, 0x15, 0x68, 0x43, 0x4E, 0x41, 0x61, 0x15, 0x07, 0x87, 0xC4, 0xE0, 0xC0, 0xB0, 0x1E, 0x1B, 0x40, 0xC8, 0x93, 0x36, 0xA6, 0x88, 0x22, 0x66, 0x4C, 0x88, 0x17, 0x33, 0x66, 0x4C, 0x04, 0x32, 0x26, 0x04, 0x13, 0x22, 0x04, 0x11, 0x32, 0x24, 0x85, 0xC9, 0xC8, 0xF8, 0xF8, 0xFB, 0xDB, 0xCB, 0xCB, 0xCB, 0xCB, 0xCB, 0xCB, 0xEB, 0xE3, 0xE7, 0xE7, 0xE7, 0xE7, 0xF7, 0xDF, 0x87, 0xA7, 0x27, 0xE7, 0xA7, 0xB7, 0x43, 0x03, 0xA0, 0xC7, 0x10, 0x25, 0x5D, 0xBD, 0x1B, 0x6A, 0x30, 0xE4, 0x89, 0xFA, 0x11, 0xC8, 0x34, 0x6A, 0x3B, 0xBD, 0x4D, 0x25, 0x98, 0x03, 0xA0, 0x02, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xBF, 0xDF, 0xCF, 0x00, 0xEF, 0xEC, 0x09, 0x49, 0xEC, 0xCE, 0xCF, 0xFF, 0xFE, 0xFC, 0xFD, 0xFD, 0xFD, 0xFD, 0xFD, 0xF8, 0x1B, 0xC3, 0x12, 0xE2, 0xE8, 0xEC, 0x13, 0xC3, 0xDA, 0x69, 0xAB, 0xC3, 0xD9, 0x28, 0x82, 0xF1, 0x68, 0xA8, 0xC8, 0x50, 0x9B, 0xB2, 0xA4, 0x31, 0x26, 0x6C, 0x61, 0x01, 0x44, 0x44, 0x51, 0x05, 0x54, 0x80, 0x01, 0x55, 0x94, 0x40, 0x05, 0x09, 0x40, 0x42, 0x11, 0x30, 0x70, 0xF1, 0xF7, 0xF7, 0xF5, 0xF1, 0xF1, 0xF9, 0xF9, 0xF9, 0xF9, 0xF9, 0xF9, 0xF9, 0xF9, 0xF1, 0xF1, 0xF1, 0xE5, 0xC5, 0xC5, 0xC4, 0xCC, 0xCF, 0x81, 0x87, 0x30, 0x08, 0x01, 0x00, 0x54, 0xFE, 0x00, 0x7C, 0xFA, 0xF4, 0xF4, 0xED, 0xE4, 0x34, 0x0C, 0xF8, 0xC8, 0xEC, 0xEC, 0xE5, 0x10, 0x8C, 0xE9, 0xEF, 0xEB, 0x20, 0x17, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xB6, 0xB6, 0x34, 0x66, 0x06, 0x97, 0xF7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE1, 0x84, 0x1E, 0x7E, 0xFE, 0x7F, 0x9F, 0xCE, 0xD2, 0x04, 0xDE, 0xCE, 0xCD, 0x4C, 0x64, 0xD5, 0x49, 0x45, 0xD5, 0x5D, 0x48, 0x8D, 0x15, 0x24, 0xB2, 0x9B, 0xAB, 0x31, 0x17, 0x52, 0x71, 0x2D, 0xA6, 0xA2, 0x4A, 0x0C, 0x85, 0x42, 0x50, 0x18, 0x0A, 0x99, 0xD0, 0xC2, 0xC2, 0xE8, 0xE8, 0xF0, 0xF9, 0xFB, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xFA, 0xF8, 0xF8, 0xFD, 0xFD, 0xFD, 0xF9, 0xFB, 0xFB, 0xFB, 0xFB, 0xFB, 0xFA, 0xF3, 0x80, 0x91, 0x3F, 0x27, 0x8F, 0x0C, 0x80, 0x35, 0x00, 0x73, 0x7B, 0x7B, 0x59, 0xED, 0x39, 0xB4, 0xB4, 0xBF, 0x3F, 0xAF, 0x27, 0x22, 0xD0, 0x97, 0x9F, 0xDF, 0x07, 0x08, 0x02, 0xE0, 0xE0, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xBF, 0xB0, 0x26, 0xA6, 0xB7, 0xB3, 0xBB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFC, 0xF1, 0xE7, 0xEB, 0xE1, 0xC3, 0x97, 0xB7, 0x60, 0x6C, 0x18, 0x91, 0x80, 0xC8, 0xE4, 0xED, 0xF3, 0xFB, 0xF8, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFC, 0xF8, 0xF0, 0xF8, 0xF2, 0xF6, 0xE2, 0xE1, 0xE1, 0xE5, 0xC5, 0xE5, 0xE4, 0xF4, 0xF0, 0xF2, 0xF2, 0xF2, 0xF2, 0xF8, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0xF9, 0xE9, 0xE2, 0xF3, 0xF3, 0xF9, 0xFD }; #endif #if (SelectLogo == _Camera_) code const unsigned char LogoBitMap[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xC0, 0xC0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, 0xF0, 0xF8, 0xF8, 0xFC, 0xFC, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFC, 0xFC, 0xF8, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE0, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x3F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x0F, 0x07, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x3F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF8, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0xE0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF8, 0x78, 0x38, 0x38, 0x1C, 0x1C, 0x1C, 0x1C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x0C, 0x1C, 0x1C, 0x1C, 0x1C, 0x38, 0x38, 0x78, 0xF8, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0x07, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xF1, 0xE0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xE0, 0xF1, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x01, 0x03, 0x0F, 0x1F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x07, 0x07, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xC0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x0F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x07, 0x0F, 0x0F, 0x1F, 0x3F, 0x3F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x03, 0x03, 0x03, 0x07, 0x07, 0x07, 0x0F, 0x0F, 0x0F, 0x1F, 0x1F, 0x1F, 0x1F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _exploreEmbedded_) code const unsigned char LogoBitMap[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0x7E, 0x7E, 0x7E, 0x7C, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF0, 0xF0, 0xF0, 0xE0, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF8, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x81, 0xC1, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0xF8, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0xE1, 0xC1, 0x83, 0x07, 0x07, 0x0F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x01, 0x01, 0x01, 0x81, 0xFF, 0xFF, 0x01, 0x01, 0x01, 0x01, 0x83, 0xFF, 0xFF, 0x01, 0x01, 0x01, 0x01, 0x83, 0xFF, 0xFF, 0x01, 0x01, 0x01, 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF8, 0xF0, 0xE0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x87, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0x38, 0x00, 0x00, 0x00, 0x03, 0xFF, 0xFF, 0x71, 0x71, 0x71, 0x71, 0x71, 0x71, 0x71, 0xFF, 0xF9, 0xF9, 0xF9, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x71, 0x71, 0x71, 0x71, 0x71, 0x71, 0x71, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0x70, 0x60, 0x00, 0x00, 0x03, 0x07, 0x0F, 0x0F, 0x1F, 0x1F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x0F, 0x07, 0x03, 0x81, 0xC0, 0xE0, 0xF0, 0xFC, 0xFF, 0xFF, 0xFF, 0x1C, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x81, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE, 0xFF, 0xFE, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x86, 0x86, 0x86, 0x86, 0x86, 0x86, 0x86, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x86, 0x86, 0x86, 0x86, 0x86, 0x86, 0x86, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x1F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x0F, 0x1F, 0x3F, 0x7F, 0xEF, 0xC7, 0x83, 0x81, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x0F, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x07, 0x07, 0x0F, 0x0F, 0x9F, 0x1F, 0x3F, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xBF, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x07, 0x03, 0x81, 0x01, 0x00, 0x01, 0x01, 0x03, 0x07, 0x07, 0x0F, 0x0F, 0x1F, 0x1F, 0x1F, 0x3F, 0x3F, 0xBF, 0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x9F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x07, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x44, 0x44, 0x44, 0x00, 0x42, 0x66, 0x18, 0x1C, 0x66, 0x40, 0x00, 0xFE, 0x42, 0x42, 0x7E, 0x00, 0x00, 0x7F, 0x00, 0x3C, 0x42, 0x42, 0x3C, 0x00, 0x00, 0x7E, 0x02, 0x02, 0x00, 0x3C, 0x4A, 0x4A, 0x6E, 0x00, 0x00, 0x7F, 0x44, 0x44, 0x44, 0x00, 0x00, 0x7E, 0x02, 0x02, 0x7C, 0x02, 0x02, 0x7C, 0x00, 0x7F, 0x42, 0x42, 0x7E, 0x00, 0x00, 0x3C, 0x4A, 0x4A, 0x6E, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x7F, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x7F, 0x00, 0x00, 0x3C, 0x4A, 0x4A, 0x6E, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x7F, 0x00, 0x00, 0x40, 0x00, 0x00, 0x3C, 0x42, 0x42, 0x42, 0x24, 0x00, 0x3C, 0x42, 0x42, 0x3C, 0x00, 0x00, 0x7E, 0x02, 0x02, 0x7C, 0x02, 0x02, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _PremierLeage_) code const unsigned char LogoBitMap [] = { 0xFF, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x11, 0xE1, 0xB1, 0x21, 0x61, 0x71, 0x19, 0x31, 0x61, 0x61, 0x31, 0xF9, 0x31, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF4, 0xF6, 0xFC, 0x1E, 0x0F, 0x27, 0xC7, 0x07, 0x0F, 0x04, 0x46, 0x27, 0x27, 0x0E, 0xFE, 0xF2, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF1, 0x91, 0x82, 0x8E, 0x0A, 0x90, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0x60, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x3D, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x9F, 0xEF, 0xE7, 0xFF, 0x3F, 0x0F, 0xE7, 0x7F, 0x3F, 0x9F, 0x0F, 0x07, 0xC1, 0xFF, 0xFF, 0x1F, 0x1E, 0x1C, 0x1C, 0x18, 0x18, 0x30, 0x70, 0x60, 0xC0, 0xC0, 0x80, 0x8C, 0x1E, 0x13, 0x11, 0x31, 0x33, 0x33, 0x31, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x60, 0x60, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x08, 0xF8, 0xF8, 0x18, 0x18, 0x38, 0xF0, 0xE0, 0x00, 0x08, 0xF8, 0xF8, 0x18, 0x18, 0x18, 0xF0, 0xF0, 0x40, 0x00, 0x00, 0xF8, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0xF8, 0xF8, 0xF0, 0xE0, 0x80, 0x00, 0x00, 0xC0, 0xE0, 0xF8, 0xF8, 0xF8, 0x00, 0x00, 0x08, 0xF8, 0xF8, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x08, 0xF8, 0xF8, 0x18, 0x18, 0x18, 0xF0, 0xF0, 0x40, 0x00, 0x0F, 0x07, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0xFE, 0xDE, 0xE0, 0xF0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF0, 0x80, 0x00, 0x00, 0x01, 0x01, 0x81, 0x81, 0x83, 0x03, 0x02, 0x62, 0xE2, 0xC6, 0x84, 0x0C, 0x18, 0xF8, 0xD8, 0x18, 0x0C, 0x0F, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x40, 0x7F, 0x7F, 0x06, 0x06, 0x03, 0x03, 0x01, 0x00, 0x40, 0x7F, 0x7F, 0x02, 0x07, 0x1F, 0x7F, 0x71, 0x60, 0x00, 0x00, 0x7F, 0x7F, 0x63, 0x63, 0x63, 0x63, 0x20, 0x00, 0x00, 0x7F, 0x7F, 0x00, 0x01, 0x03, 0x0F, 0x0F, 0x03, 0x01, 0x00, 0x7F, 0x7F, 0x00, 0x00, 0x40, 0x7F, 0x7F, 0x00, 0x00, 0x00, 0x7F, 0x7F, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x40, 0x7F, 0x7F, 0x02, 0x07, 0x1F, 0x7F, 0x71, 0x60, 0x00, 0x00, 0x01, 0x01, 0x01, 0x1F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x47, 0x47, 0x47, 0x47, 0x47, 0xC6, 0xC0, 0x60, 0x20, 0x30, 0x38, 0x3C, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x3E, 0x7E, 0xFF, 0xFF, 0xFF, 0xFE, 0xF8, 0xF8, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0xC6, 0xC6, 0xC6, 0xC6, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF8, 0x3E, 0x1E, 0x7C, 0xF0, 0x80, 0x00, 0x00, 0xE0, 0xF8, 0xFC, 0x1C, 0x0E, 0x06, 0x06, 0x06, 0x86, 0x86, 0x80, 0x00, 0x00, 0xFE, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0xFE, 0x00, 0x00, 0xFE, 0xFE, 0xFE, 0xC6, 0xC6, 0xC6, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xFF, 0xFF, 0x07, 0xF1, 0x84, 0x82, 0x83, 0x83, 0x01, 0x00, 0x3C, 0x78, 0x78, 0x70, 0x30, 0x01, 0x00, 0x00, 0x80, 0x00, 0x01, 0x03, 0x07, 0x0F, 0x0F, 0x9F, 0xFF, 0xFF, 0xFE, 0x78, 0x30, 0x00, 0x01, 0x01, 0x07, 0x07, 0x1F, 0x3F, 0xFF, 0xFF, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x9F, 0x9F, 0x98, 0x98, 0x98, 0x98, 0x80, 0x80, 0x9F, 0x9F, 0x98, 0x98, 0x98, 0x98, 0x88, 0x80, 0x98, 0x9F, 0x8F, 0x83, 0x82, 0x82, 0x82, 0x87, 0x9F, 0x9C, 0x90, 0x81, 0x87, 0x8F, 0x8C, 0x9C, 0x98, 0x98, 0x98, 0x98, 0x8F, 0x8F, 0x80, 0x80, 0x87, 0x8F, 0x9C, 0x98, 0x98, 0x98, 0x98, 0x8C, 0x8F, 0x87, 0x80, 0x80, 0x9F, 0x9F, 0x9F, 0x98, 0x98, 0x98, 0x88, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x98, 0x9C, 0x9C, 0x9C, 0x9E, 0x9F, 0x9C, 0x99, 0x83, 0x87, 0x8F, 0x93, 0x90, 0x90, 0x80, 0x98, 0x9C, 0x9C, 0x90, 0x88, 0x84, 0x82, 0x80, 0x80, 0x9C, 0x9C, 0x9C, 0x9C, 0x9E, 0x9F, 0x8F, 0x87, 0x81, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x88, 0x9F, 0x9F, 0x9F, 0x9F, 0x9C, 0x98, 0x80, 0x80, 0x80, 0x80, 0x80, 0xFF }; #endif #if (SelectLogo == _Arsenal_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xE0, 0x30, 0x08, 0x18, 0x20, 0xC0, 0x00, 0xC0, 0x30, 0x88, 0x08, 0x04, 0x00, 0x02, 0x82, 0x40, 0x21, 0x19, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0x40, 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x30, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x18, 0x18, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x30, 0x30, 0x20, 0x20, 0x20, 0x20, 0x60, 0x40, 0x40, 0xC0, 0xC0, 0xC0, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x30, 0x40, 0xC0, 0x02, 0x02, 0x24, 0x44, 0x88, 0x38, 0x20, 0xC0, 0x00, 0x80, 0x40, 0x60, 0x10, 0x00, 0x10, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x06, 0x04, 0x08, 0x10, 0x27, 0x78, 0xE0, 0x80, 0x00, 0x20, 0x08, 0x93, 0x48, 0x05, 0x06, 0x82, 0x82, 0xC3, 0xA1, 0xB0, 0x88, 0x06, 0x00, 0x00, 0x00, 0xC0, 0xFC, 0x3F, 0x07, 0x01, 0x00, 0xC0, 0x7C, 0x07, 0x00, 0x80, 0xE0, 0x70, 0x70, 0xF0, 0x80, 0x00, 0x00, 0xC0, 0xC0, 0x80, 0x40, 0x40, 0x80, 0xC0, 0x40, 0x40, 0x40, 0x00, 0x80, 0xC0, 0x40, 0x00, 0xC0, 0x80, 0x00, 0xC0, 0xC0, 0x00, 0x40, 0xC0, 0xC0, 0x00, 0x00, 0x40, 0x40, 0x40, 0xC0, 0x80, 0x00, 0x10, 0xF0, 0xC0, 0x03, 0x1E, 0xF0, 0x00, 0x00, 0x01, 0x0F, 0xFE, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x12, 0x32, 0x42, 0xC3, 0xC3, 0x02, 0x04, 0x04, 0x24, 0x5B, 0x14, 0x0B, 0x10, 0x00, 0x90, 0x42, 0xE0, 0x38, 0x35, 0x12, 0x08, 0x08, 0x18, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0xC4, 0x04, 0x00, 0x0B, 0x0C, 0x10, 0x30, 0x64, 0xD0, 0x0D, 0x63, 0x18, 0x80, 0xA6, 0x12, 0x00, 0x01, 0x21, 0x20, 0xF0, 0x08, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0xF8, 0xFF, 0x00, 0x00, 0x06, 0x07, 0x03, 0x02, 0x02, 0x07, 0x07, 0x06, 0x00, 0x07, 0x07, 0x00, 0x00, 0x00, 0x04, 0x05, 0x05, 0x07, 0x07, 0x00, 0x03, 0x07, 0x05, 0x05, 0x04, 0x04, 0x00, 0x07, 0x07, 0x04, 0x00, 0x00, 0x07, 0x06, 0x00, 0x06, 0x05, 0x05, 0x05, 0x07, 0x06, 0x00, 0x07, 0x07, 0x00, 0x00, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, 0x08, 0xD0, 0xA1, 0x20, 0x41, 0x49, 0x40, 0x50, 0xA6, 0xA4, 0x8E, 0xB3, 0x0F, 0xA0, 0xC0, 0xA8, 0x62, 0x30, 0x18, 0x0C, 0x0B, 0x08, 0x88, 0xF0, 0x00, 0x00, 0x00, 0x08, 0x38, 0x48, 0x89, 0x0A, 0x04, 0x08, 0x18, 0x10, 0x34, 0x60, 0xDB, 0x00, 0x7F, 0xA3, 0x11, 0xC0, 0x40, 0x20, 0x10, 0x0C, 0x0B, 0x04, 0xFC, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0xFF, 0xE0, 0x00, 0x00, 0x07, 0x7F, 0xC0, 0x00, 0x08, 0x18, 0x1C, 0x3C, 0x3E, 0x3E, 0x3E, 0x3E, 0x3E, 0x3E, 0x1E, 0xEE, 0x76, 0xBA, 0xA8, 0xAC, 0xD6, 0x5A, 0x7A, 0xBA, 0xBA, 0x43, 0x7F, 0x43, 0xBA, 0xBA, 0x5A, 0x56, 0xB4, 0xAC, 0xBA, 0x36, 0xE6, 0xCE, 0x3E, 0x7E, 0x7E, 0x7E, 0x3E, 0x3E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0xFE, 0x3F, 0x1E, 0x1E, 0x9E, 0xFE, 0x7F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x49, 0x0E, 0x0A, 0x18, 0x00, 0x00, 0x44, 0x01, 0x91, 0xA3, 0x84, 0x7F, 0x81, 0xC3, 0x60, 0x20, 0x34, 0x11, 0x10, 0x1C, 0x00, 0x0B, 0x08, 0xC8, 0x30, 0x00, 0x00, 0x00, 0x00, 0x39, 0x6A, 0x8A, 0x8C, 0x08, 0x09, 0x0A, 0x08, 0x19, 0x8E, 0x31, 0x6D, 0x9F, 0x41, 0xEC, 0x10, 0xF0, 0x08, 0x00, 0x02, 0x01, 0x03, 0x3C, 0x08, 0x30, 0x60, 0xC0, 0x40, 0x40, 0x40, 0x47, 0x4F, 0x7C, 0x70, 0xE0, 0x83, 0x8E, 0x98, 0xE0, 0xC0, 0xC0, 0x60, 0x60, 0x70, 0x70, 0x38, 0x3C, 0x30, 0x07, 0x1C, 0x3B, 0x2B, 0x6B, 0x45, 0xC5, 0x82, 0x83, 0x82, 0x84, 0xFD, 0x82, 0x83, 0x82, 0x84, 0xC4, 0x44, 0x68, 0x38, 0x18, 0x0F, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x30, 0x1C, 0x87, 0xC1, 0xE0, 0x78, 0x5E, 0x4F, 0x43, 0x40, 0x40, 0x40, 0xC0, 0x20, 0x20, 0x10, 0x3C, 0x42, 0x01, 0x01, 0x42, 0x00, 0x18, 0x99, 0x20, 0x24, 0xE0, 0x11, 0x5E, 0x67, 0x34, 0x11, 0x09, 0x90, 0x0A, 0x08, 0x19, 0x0C, 0x0C, 0xC0, 0x63, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30, 0x40, 0x49, 0x08, 0x8A, 0x82, 0x84, 0x04, 0x04, 0x05, 0x04, 0x0D, 0x8A, 0x89, 0x9B, 0x54, 0x48, 0x06, 0xD8, 0xAE, 0x60, 0x40, 0x80, 0x00, 0xC0, 0x3F, 0x18, 0x18, 0x88, 0x44, 0x44, 0x28, 0x20, 0x11, 0x13, 0x0E, 0x0C, 0x18, 0xB1, 0xF2, 0x64, 0xC8, 0x90, 0xA0, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x20, 0xB0, 0xD0, 0x48, 0x64, 0xB3, 0x19, 0x1C, 0x0E, 0x0F, 0x13, 0x11, 0x20, 0x2C, 0x44, 0x84, 0x88, 0x10, 0x18, 0x77, 0xA0, 0x00, 0x20, 0x80, 0x40, 0x52, 0xAA, 0x68, 0x50, 0xC0, 0xD8, 0x86, 0x8B, 0xAD, 0x0E, 0xA4, 0x84, 0x24, 0x05, 0x84, 0x84, 0x0E, 0x42, 0x42, 0x2A, 0x39, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0x04, 0x03, 0x00, 0x08, 0x1C, 0x12, 0xD1, 0x31, 0x10, 0x10, 0xD0, 0x30, 0x10, 0x08, 0x00, 0x85, 0x02, 0x42, 0xA3, 0x92, 0x0C, 0x65, 0x81, 0x5B, 0x19, 0xA0, 0x94, 0x48, 0x24, 0x10, 0x18, 0x14, 0x20, 0x22, 0x01, 0x40, 0x40, 0x00, 0x80, 0x80, 0x81, 0x03, 0x03, 0x06, 0x07, 0x0D, 0x0E, 0x08, 0x1C, 0x18, 0x38, 0x30, 0x30, 0x60, 0x60, 0x60, 0x30, 0x30, 0x38, 0x1C, 0x1C, 0x0A, 0x0E, 0x05, 0x06, 0x02, 0x03, 0x81, 0x81, 0x80, 0x00, 0x40, 0x40, 0x41, 0x21, 0x22, 0x24, 0x18, 0x18, 0x34, 0x24, 0x48, 0x92, 0x14, 0x29, 0x23, 0x95, 0x4D, 0x1D, 0x32, 0x2A, 0x4B, 0x92, 0xA4, 0x04, 0x02, 0x1A, 0x10, 0x00, 0x64, 0xD0, 0xE1, 0x00, 0x11, 0x02, 0x12, 0x15, 0x0E, 0x18, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x04, 0x08, 0x08, 0x00, 0x12, 0x63, 0xC3, 0x02, 0x83, 0x82, 0x82, 0x82, 0x01, 0x01, 0x40, 0x40, 0x20, 0x20, 0x10, 0x09, 0x08, 0x04, 0x02, 0x01, 0x01, 0x00, 0x02, 0x02, 0x00, 0x04, 0x04, 0x00, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, 0x10, 0x06, 0x22, 0x20, 0x2D, 0x31, 0x31, 0x0D, 0x01, 0x00, 0x4C, 0x58, 0x40, 0x40, 0x52, 0x48, 0x50, 0x48, 0x40, 0x50, 0x44, 0x48, 0x11, 0x01, 0x2D, 0x2D, 0x21, 0x20, 0x2A, 0x0A, 0x14, 0x10, 0x10, 0x00, 0x08, 0x08, 0x08, 0x04, 0x04, 0x04, 0x02, 0x02, 0x02, 0x01, 0x01, 0x02, 0x04, 0x04, 0x08, 0x10, 0x00, 0x20, 0x00, 0x40, 0x40, 0x01, 0x82, 0x82, 0x02, 0x82, 0x82, 0x83, 0x43, 0x22, 0x12, 0x11, 0x08, 0x08, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Chelsea_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xC0, 0xC0, 0xA0, 0xA0, 0xD0, 0xF0, 0xE8, 0x10, 0x34, 0x78, 0x0A, 0x0E, 0x3D, 0xFD, 0xE3, 0x02, 0x4A, 0x4A, 0x7E, 0xFE, 0xFE, 0xFE, 0xFF, 0x01, 0x7F, 0x7F, 0x7E, 0x7E, 0x66, 0xC2, 0x9A, 0x13, 0xF5, 0xFD, 0x3E, 0x0A, 0x48, 0x5C, 0x90, 0x90, 0x90, 0xE8, 0xE0, 0xD0, 0xA0, 0xC0, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x60, 0xD0, 0xEC, 0xFA, 0xFD, 0xFE, 0xFF, 0xF1, 0xF1, 0xC6, 0xC6, 0xCE, 0xDF, 0xCF, 0xE7, 0x7C, 0x38, 0x1B, 0x9F, 0xCC, 0x8C, 0x87, 0x06, 0x06, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x83, 0xC3, 0x83, 0x03, 0x06, 0x06, 0x07, 0x0F, 0x0C, 0x18, 0x1B, 0x3B, 0x76, 0xF7, 0xF7, 0xF7, 0xF3, 0xA3, 0x8D, 0xE0, 0xF9, 0xFF, 0xFE, 0xFD, 0xFA, 0xEC, 0xD0, 0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x98, 0xF2, 0x7C, 0x3F, 0x1F, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x1F, 0x1F, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x07, 0xEF, 0xFD, 0xFF, 0xCF, 0xC7, 0x80, 0x80, 0x00, 0x80, 0x80, 0x80, 0xF0, 0xFB, 0xFF, 0xFF, 0xFF, 0xFF, 0x3D, 0x2F, 0x27, 0x0E, 0x12, 0x50, 0x20, 0xE0, 0xE0, 0xE0, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x1F, 0x7F, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0x1F, 0x3F, 0x7C, 0xF2, 0x98, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFC, 0xF0, 0xFF, 0xFF, 0xFC, 0xFC, 0xFC, 0xFD, 0xF8, 0xFE, 0xFF, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0xFF, 0xFF, 0x83, 0xCB, 0xCF, 0xEF, 0xF7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xEE, 0x06, 0x06, 0x30, 0xFC, 0xFC, 0xF6, 0x37, 0x73, 0xF1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xFF, 0xFE, 0xF8, 0xFD, 0xFC, 0xFC, 0xFC, 0xFF, 0xFF, 0xE0, 0xFC, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xC3, 0x7F, 0xFF, 0x0F, 0x27, 0x07, 0x07, 0x0F, 0xDF, 0xFF, 0xF0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0xFF, 0xFF, 0x07, 0x03, 0x03, 0x47, 0xE3, 0xF3, 0xF3, 0xF3, 0xF9, 0xFD, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFE, 0xD8, 0x90, 0xB0, 0xB1, 0x3F, 0x1E, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xF0, 0xFF, 0xFF, 0x0F, 0x27, 0x07, 0x07, 0x0F, 0xFF, 0x7F, 0xC1, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x13, 0x4F, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x7E, 0xF8, 0xF0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x01, 0x07, 0x77, 0x30, 0x78, 0x78, 0x38, 0x7F, 0x3F, 0x3F, 0x3F, 0x3F, 0x07, 0x00, 0x00, 0x60, 0x70, 0x71, 0x73, 0x7F, 0x7F, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0, 0xC0, 0xE0, 0xF0, 0xF8, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0x4F, 0x13, 0x06, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x0D, 0x17, 0x2F, 0x5F, 0xBD, 0xFC, 0xFC, 0x7C, 0x7C, 0xE6, 0xDB, 0xEB, 0xB7, 0x4F, 0x6F, 0x9E, 0xFE, 0x3C, 0xBC, 0xF8, 0x78, 0x78, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0xF0, 0x70, 0xF0, 0xF8, 0xF8, 0xF8, 0x3C, 0xDC, 0xFE, 0xDE, 0x3F, 0x7F, 0xE7, 0xE7, 0xE7, 0xDB, 0xD7, 0xEC, 0x78, 0xF9, 0xBD, 0x5F, 0x2F, 0x17, 0x0D, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x01, 0x05, 0x03, 0x0B, 0x07, 0x17, 0x1F, 0x2E, 0x2F, 0x3F, 0x1C, 0x18, 0x5F, 0x5B, 0x5C, 0x5C, 0x5C, 0x78, 0x7F, 0x78, 0x7B, 0x5B, 0x5E, 0x59, 0x1B, 0x1F, 0x3F, 0x2F, 0x2E, 0x1E, 0x17, 0x07, 0x0B, 0x03, 0x03, 0x03, 0x05, 0x03, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _LiverPool_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x80, 0x80, 0x00, 0xC0, 0xE0, 0xE0, 0x20, 0xF8, 0x08, 0x08, 0xE8, 0x48, 0x48, 0x48, 0xE8, 0x08, 0xF8, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC8, 0xC8, 0xD8, 0xF8, 0xE8, 0xE4, 0xB4, 0xB4, 0x98, 0x98, 0xD8, 0xE8, 0x68, 0x68, 0x68, 0xD6, 0x96, 0x92, 0xD2, 0x5A, 0x6A, 0xAA, 0x9A, 0x9A, 0xDC, 0xF4, 0xFC, 0xF8, 0x08, 0x90, 0xF0, 0x98, 0x08, 0x08, 0x98, 0x96, 0xFE, 0x04, 0xFC, 0x64, 0x08, 0x08, 0x10, 0x30, 0x30, 0x18, 0x0C, 0x06, 0xDE, 0xFB, 0x9C, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x0C, 0x3E, 0x25, 0xAD, 0x7F, 0x37, 0xFE, 0xFF, 0xBA, 0xFE, 0xEF, 0x6F, 0xF3, 0xFF, 0x00, 0x00, 0x5F, 0x6E, 0x7F, 0x7D, 0xFF, 0x00, 0xFF, 0xF7, 0x0D, 0x19, 0x31, 0xC5, 0x0D, 0x3D, 0xE5, 0x85, 0x05, 0x05, 0xE5, 0xC5, 0x45, 0x45, 0xC5, 0xC5, 0xC5, 0x45, 0x75, 0xF5, 0x05, 0x05, 0xF5, 0xF5, 0xF5, 0xB5, 0xFD, 0xF9, 0xF9, 0xFA, 0xEA, 0xEA, 0xEA, 0xEA, 0xFB, 0xF3, 0xF7, 0xD5, 0xD5, 0xF5, 0xE2, 0xEA, 0xEB, 0xAB, 0xEB, 0xDB, 0x53, 0xD2, 0xD2, 0xA2, 0xA1, 0xA1, 0x21, 0x40, 0x40, 0x41, 0xE1, 0xF1, 0xED, 0x36, 0x1D, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x40, 0x60, 0x58, 0xEF, 0xF9, 0xEF, 0xE1, 0x40, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x44, 0xFC, 0xBE, 0x03, 0x21, 0xF0, 0xF8, 0x7C, 0xFD, 0x8F, 0xBF, 0xFF, 0xFC, 0x63, 0x1F, 0xFF, 0x00, 0x00, 0xF2, 0xA3, 0xA7, 0xF7, 0xFD, 0x00, 0xFF, 0xEF, 0x00, 0x00, 0x00, 0x81, 0xFF, 0x00, 0x80, 0xFF, 0x3C, 0x00, 0x8E, 0xCF, 0x5B, 0x71, 0x71, 0x71, 0x71, 0x79, 0xDB, 0xCE, 0x00, 0x00, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0x9F, 0x9F, 0x3F, 0x3F, 0xBF, 0xBF, 0x7F, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFD, 0xFF, 0xFE, 0xFA, 0xFE, 0xFC, 0xF5, 0xF9, 0xEB, 0xFA, 0xD6, 0xF4, 0xA6, 0xEB, 0x49, 0xD0, 0xB0, 0xA0, 0xE0, 0x3F, 0xE7, 0x7F, 0x0F, 0xC0, 0xE0, 0x60, 0x41, 0xC1, 0xE2, 0x02, 0x04, 0xFC, 0x38, 0xF0, 0x0F, 0x00, 0x80, 0x80, 0x80, 0x40, 0x00, 0xD8, 0xF8, 0x08, 0xF8, 0xF8, 0xB8, 0x68, 0x6D, 0x65, 0xDF, 0xF7, 0xBB, 0x7A, 0xDE, 0xBC, 0xF4, 0x75, 0x35, 0x7D, 0x7D, 0x16, 0xBE, 0xCF, 0xFF, 0x00, 0x00, 0xFD, 0x7D, 0x7F, 0x7F, 0x5B, 0x00, 0xFF, 0x67, 0x30, 0x98, 0xC6, 0x63, 0x38, 0x0C, 0x07, 0x01, 0x00, 0x00, 0x71, 0x7B, 0x6E, 0x6E, 0x6E, 0x7E, 0x66, 0x66, 0x63, 0xE3, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0xFC, 0xFC, 0xFE, 0x7B, 0x7F, 0x76, 0x6F, 0x5E, 0xFF, 0xBD, 0xFE, 0x4D, 0xDE, 0x99, 0x8F, 0x9B, 0x17, 0x3B, 0xC7, 0xBF, 0x7F, 0x57, 0x2B, 0x1D, 0x1D, 0x9D, 0x9D, 0x9D, 0xDF, 0xDF, 0xDF, 0xDF, 0xFF, 0xEF, 0x8B, 0xFF, 0xFE, 0x0F, 0xF9, 0x7F, 0x03, 0xD0, 0xFE, 0xFF, 0xF7, 0xFB, 0xF6, 0x3D, 0x01, 0xFC, 0x1F, 0xF9, 0x17, 0x00, 0xFF, 0x00, 0x01, 0x01, 0x01, 0x03, 0x14, 0x1F, 0x1F, 0x10, 0x1F, 0x1F, 0x1F, 0x17, 0xB6, 0xA7, 0xFB, 0xEF, 0xDD, 0x5E, 0x7B, 0x3D, 0x2F, 0xAC, 0xBA, 0xBA, 0xB6, 0x6C, 0x7D, 0xF3, 0xFF, 0x00, 0x88, 0xFF, 0x6B, 0x6B, 0x7F, 0x5F, 0x00, 0xFF, 0xEC, 0x08, 0x31, 0x62, 0x8C, 0x18, 0x70, 0xE0, 0x00, 0x00, 0x00, 0xFE, 0xFF, 0xC5, 0xCD, 0xF7, 0xF6, 0xCF, 0xCF, 0xFD, 0xFD, 0x00, 0x00, 0xFF, 0x7F, 0xFD, 0xEF, 0xFF, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFE, 0xFF, 0xEE, 0xEE, 0xFC, 0xF9, 0xF1, 0xF5, 0xE7, 0xEF, 0xCD, 0xCC, 0xCC, 0xC4, 0xE4, 0xE2, 0xE1, 0xF0, 0xFC, 0xFF, 0xFC, 0xFC, 0xFE, 0xFD, 0xFD, 0xFD, 0xFB, 0xFB, 0xF7, 0xC1, 0xFF, 0x7F, 0xE0, 0x3F, 0xFC, 0x80, 0x1C, 0xFC, 0x8B, 0xEB, 0x68, 0xAC, 0xE0, 0x03, 0x7F, 0xF0, 0x3F, 0xD0, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x22, 0x3F, 0x7D, 0xC0, 0x84, 0x0F, 0x1F, 0x3E, 0xBF, 0xF1, 0xFD, 0x7F, 0x3F, 0xC6, 0xF8, 0xFF, 0x00, 0x15, 0xD7, 0x9F, 0x9F, 0x96, 0xD7, 0x00, 0xFF, 0xD7, 0x00, 0x00, 0x00, 0x83, 0xFE, 0x00, 0x81, 0xFF, 0x08, 0x00, 0xF3, 0xF3, 0xD2, 0xDA, 0xDE, 0xDE, 0xDC, 0xCC, 0xCC, 0xCC, 0x00, 0x00, 0xFF, 0xBB, 0xFD, 0xFF, 0xFF, 0xF7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xBF, 0xFF, 0x7F, 0x5F, 0x7F, 0xAF, 0xBF, 0x9F, 0x57, 0x4F, 0x6B, 0xEF, 0xB5, 0x13, 0x1B, 0x09, 0x0D, 0x0F, 0xF9, 0xCF, 0xFC, 0xC0, 0x0E, 0x0C, 0x06, 0x04, 0x85, 0x87, 0x40, 0x61, 0x3F, 0x19, 0x08, 0xF7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x38, 0xFC, 0xAC, 0xB5, 0xFE, 0xEC, 0x7F, 0x7F, 0x5D, 0x7F, 0x77, 0xF6, 0xCF, 0xFF, 0x00, 0x00, 0xFE, 0x6A, 0x6A, 0xFA, 0xDB, 0x00, 0xFF, 0xE6, 0xB0, 0x98, 0x0C, 0x23, 0x30, 0x3C, 0x27, 0x61, 0x60, 0x60, 0x6C, 0x6C, 0x6C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0xAF, 0xAF, 0xA0, 0xA0, 0xAF, 0xAD, 0xAF, 0xAF, 0xAF, 0xAF, 0xBF, 0x1F, 0x5F, 0x5F, 0x57, 0x57, 0xD7, 0xDF, 0xCF, 0xAF, 0xAB, 0xAB, 0xAB, 0x67, 0x57, 0x55, 0xD5, 0xD7, 0xCB, 0x4A, 0x4A, 0x89, 0x8D, 0x85, 0x85, 0x04, 0x02, 0x02, 0x8E, 0x9B, 0x77, 0xD9, 0x30, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x06, 0x0C, 0x3E, 0xEF, 0x3E, 0xE7, 0x04, 0x02, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x01, 0x01, 0x01, 0x03, 0x07, 0x07, 0x04, 0x0F, 0x10, 0x10, 0x17, 0x13, 0x13, 0x12, 0x12, 0x10, 0x1F, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x23, 0x33, 0x3B, 0x2F, 0x2F, 0x2F, 0x2F, 0x39, 0x39, 0x39, 0x15, 0x17, 0x16, 0x36, 0x2E, 0x6A, 0x6B, 0x59, 0x59, 0x76, 0x76, 0x7F, 0x69, 0x79, 0x7D, 0x6F, 0x3F, 0x1F, 0x30, 0x09, 0x0E, 0x1B, 0x10, 0x10, 0x99, 0xEB, 0x7F, 0x61, 0x7F, 0x20, 0x30, 0x10, 0x18, 0x0C, 0x08, 0x10, 0x30, 0x60, 0xBF, 0xDF, 0x3F, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF }; #endif #if (SelectLogo == _ManchesterUnited_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xC0, 0xA0, 0xC0, 0xD0, 0xF0, 0xEC, 0xEE, 0x7D, 0x35, 0xB1, 0xF6, 0xF6, 0xFC, 0xFE, 0x1F, 0xFC, 0xFD, 0x7E, 0x1C, 0xF6, 0xFA, 0x79, 0x35, 0xBD, 0xEE, 0xFC, 0xF0, 0xC0, 0xE0, 0xA0, 0xC0, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x20, 0x10, 0xE8, 0x88, 0x70, 0xA0, 0xD0, 0xE8, 0xF4, 0xFA, 0x9D, 0x9E, 0xBE, 0x3F, 0x7B, 0x63, 0xCB, 0xFF, 0xF6, 0xF1, 0xF3, 0xFE, 0x78, 0x7B, 0x5F, 0x3B, 0x3F, 0x3F, 0x38, 0x3F, 0x3F, 0x3E, 0x38, 0x3F, 0x7B, 0x78, 0x36, 0xFF, 0x6F, 0xFF, 0xD9, 0xC0, 0xFF, 0x7D, 0x3F, 0xD7, 0xEE, 0xEF, 0xFE, 0x7A, 0x74, 0xE8, 0xD0, 0xA0, 0xD0, 0x48, 0xB8, 0x10, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x92, 0xEA, 0xF6, 0xFD, 0xFE, 0xEE, 0xCF, 0xBF, 0x5D, 0x51, 0xC9, 0xF3, 0xF7, 0x7E, 0xB8, 0x7F, 0x1F, 0x0F, 0xFF, 0xFD, 0xFE, 0xFF, 0xFF, 0x7E, 0x7E, 0x1E, 0x7E, 0x4E, 0x06, 0x4E, 0x7E, 0x4E, 0x06, 0x4E, 0x7E, 0x4E, 0x06, 0x4E, 0xFE, 0xFE, 0xFF, 0xFD, 0xFE, 0xFD, 0xFF, 0x0F, 0x1F, 0x7F, 0xB9, 0x74, 0xFE, 0xDF, 0xCF, 0x66, 0x17, 0xDB, 0xC6, 0xFD, 0xFA, 0xFD, 0xF6, 0xEA, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x21, 0xE4, 0xAB, 0x97, 0x3F, 0xFF, 0x6F, 0xCF, 0x9F, 0x17, 0x0B, 0x07, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x06, 0x06, 0x06, 0x86, 0xC6, 0xE6, 0xE6, 0xE6, 0x86, 0x36, 0xFE, 0xF6, 0xF6, 0xFE, 0xF6, 0x16, 0xF6, 0xA6, 0xF6, 0xA6, 0xF7, 0x06, 0x06, 0x06, 0x06, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x05, 0x0B, 0x0F, 0xDF, 0xDF, 0x6F, 0xEF, 0x9F, 0xB7, 0xBB, 0xC4, 0x63, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x3F, 0x59, 0x3E, 0xC1, 0xC0, 0x5C, 0x49, 0xC8, 0xE4, 0xF2, 0xFF, 0x9F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x02, 0xFF, 0xFF, 0xC7, 0xFE, 0xFF, 0xFE, 0xFF, 0xFF, 0xBE, 0x35, 0x7D, 0xFF, 0x39, 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x9F, 0xAF, 0x52, 0x24, 0xC0, 0xC1, 0xDE, 0xC0, 0xC0, 0x76, 0x51, 0x3E, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4E, 0x7D, 0xFF, 0xFE, 0xFF, 0xFF, 0xFF, 0xFE, 0xFD, 0xFA, 0xFC, 0xF8, 0xF0, 0xD0, 0xA0, 0xCF, 0x58, 0x90, 0xA0, 0x60, 0x40, 0x80, 0x80, 0x03, 0x03, 0x33, 0xFF, 0xFF, 0xFF, 0x97, 0x07, 0x1F, 0x1E, 0x3E, 0x3F, 0x80, 0x40, 0x40, 0x20, 0xB0, 0x10, 0xCF, 0xA0, 0xF0, 0xF0, 0xE8, 0xF4, 0xFA, 0xFD, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0x7F, 0xC2, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x05, 0x0F, 0x1F, 0x2F, 0x5F, 0xBF, 0xFF, 0x7F, 0xFF, 0xC7, 0xB1, 0xBD, 0x9F, 0xCF, 0xF7, 0xFE, 0x1F, 0xCD, 0x9E, 0x7E, 0x7B, 0x1F, 0xFA, 0xFE, 0x1F, 0xFB, 0xF9, 0xFC, 0xDC, 0x1E, 0xFF, 0xFB, 0xFE, 0xEC, 0x0F, 0xF7, 0xFE, 0xFF, 0xF3, 0xE5, 0x9D, 0xFD, 0xD9, 0x63, 0xFF, 0xBF, 0x5F, 0x3F, 0x1F, 0x0F, 0x07, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x01, 0x07, 0x07, 0x0F, 0x0B, 0x0F, 0x16, 0x37, 0x5F, 0x5E, 0x6C, 0x6F, 0x6F, 0x2F, 0x4C, 0x2F, 0x3F, 0x6F, 0x6F, 0x2C, 0x7C, 0x6F, 0x5F, 0x5F, 0x7E, 0x36, 0x0E, 0x0B, 0x07, 0x07, 0x01, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _SouthWalesScorpians_) code const unsigned char LogoBitMap [] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0xFF, 0xFF, 0x9F, 0x0F, 0x0F, 0x07, 0x1F, 0xFF, 0xE3, 0xC1, 0xC1, 0x81, 0x81, 0x01, 0x01, 0x19, 0x19, 0x1D, 0x1D, 0x13, 0x37, 0x1F, 0x1F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x3F, 0x31, 0x20, 0x60, 0x60, 0x60, 0x21, 0xE3, 0xF7, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xC0, 0x80, 0x00, 0x00, 0xC0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF8, 0x78, 0x3C, 0x1F, 0x1F, 0x9F, 0x9F, 0x1F, 0x1F, 0x1F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xEF, 0x41, 0x51, 0x41, 0x41, 0x6F, 0xE3, 0xC1, 0xDD, 0xC9, 0xC1, 0x73, 0x61, 0x41, 0x4F, 0x4F, 0x41, 0xE3, 0xFD, 0xF9, 0x41, 0x41, 0x7D, 0x7F, 0x41, 0x41, 0x77, 0x41, 0xC1, 0xFF, 0xFF, 0x7F, 0x71, 0x41, 0x43, 0x71, 0x41, 0x43, 0xC1, 0xDD, 0xC7, 0x61, 0x61, 0x41, 0xC7, 0xFF, 0xC1, 0xC1, 0x4F, 0x4F, 0x51, 0x41, 0x41, 0x45, 0xC1, 0xFF, 0xC9, 0x41, 0x51, 0x41, 0x67, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x8C, 0x84, 0x86, 0xC6, 0xC6, 0xC6, 0xC6, 0x66, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCE, 0x8C, 0x88, 0x08, 0x18, 0x10, 0x11, 0x01, 0x01, 0x83, 0xC3, 0xFF, 0xE3, 0x80, 0x80, 0x00, 0x1E, 0x3E, 0x1C, 0x0C, 0x8C, 0xDD, 0xFF, 0xC1, 0x80, 0x00, 0x1C, 0x1E, 0x3E, 0x1C, 0x80, 0x80, 0xC1, 0xFF, 0x80, 0x00, 0x00, 0x00, 0xE2, 0xC2, 0x00, 0x00, 0x18, 0x3D, 0xFF, 0x00, 0x00, 0x00, 0xE6, 0xE6, 0xE0, 0xF0, 0xF0, 0xF9, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xF7, 0xC1, 0x80, 0x00, 0x1C, 0x3E, 0x1E, 0x08, 0x80, 0x80, 0xC1, 0xFF, 0x00, 0x00, 0x00, 0x90, 0xE0, 0xC3, 0x87, 0x00, 0x00, 0x00, 0xFF, 0xDD, 0x98, 0x10, 0x10, 0x32, 0x22, 0x00, 0x84, 0x84, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFB, 0xE1, 0xF0, 0x18, 0x0C, 0x0C, 0x0C, 0x8C, 0xC6, 0x67, 0x67, 0x77, 0x3F, 0x3F, 0x1F, 0x1F, 0xBF, 0xFF, 0xFF, 0xFF, 0xCF, 0xCF, 0xEF, 0xE7, 0xBF, 0x9F, 0x9F, 0xDF, 0xDF, 0xCF, 0xDF, 0xDF, 0x7F, 0x3F, 0x3F, 0x3F, 0x9F, 0xDF, 0xDF, 0xFF, 0x7F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x07, 0xFF, 0xFF, 0x1F, 0x0F, 0x0F, 0x0F, 0x0F, 0x1F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x03, 0x03, 0x93, 0x93, 0x13, 0x03, 0x43, 0xE7, 0xFF, 0x03, 0x03, 0x03, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0x03, 0x03, 0x03, 0x93, 0x93, 0x93, 0xF3, 0x9F, 0x07, 0x03, 0x03, 0xF3, 0xF3, 0x63, 0x63, 0x67, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x1F, 0x8F, 0xCF, 0x4E, 0x46, 0x26, 0x27, 0x3C, 0x9C, 0x98, 0xF8, 0xFC, 0xC6, 0x86, 0x83, 0x83, 0xC3, 0x63, 0x70, 0x30, 0x18, 0x18, 0x0C, 0x0C, 0x0C, 0x17, 0x87, 0x83, 0xC3, 0xC3, 0x43, 0x63, 0x72, 0x7B, 0x7F, 0x4F, 0xC7, 0xC7, 0xC6, 0x86, 0x86, 0x07, 0x07, 0x0F, 0x0F, 0xFF, 0xF3, 0xE1, 0xC1, 0xC0, 0xE0, 0xE0, 0xE1, 0xE1, 0xF1, 0xF9, 0xFF, 0xFF, 0xFE, 0xFF, 0xFF, 0xFC, 0xF8, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0x80, 0x01, 0xE7, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFC, 0xFF, 0xFF, 0xFE, 0xFC, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFC, 0xFC, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xF3, 0xF9, 0xF8, 0xFC, 0xFE, 0xFF, 0x03, 0x00, 0x80, 0xF0, 0xFC, 0xFE, 0x1F, 0x07, 0xC3, 0xE1, 0xF1, 0x70, 0x1F, 0x0F, 0x07, 0x87, 0xC6, 0xC6, 0xEC, 0xF8, 0xF8, 0xFC, 0xFE, 0x7A, 0x71, 0x61, 0xE0, 0xE0, 0xE0, 0xF0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xB1, 0x1F, 0x0F, 0x8F, 0x83, 0x01, 0x41, 0x41, 0xF1, 0xF9, 0xF9, 0xFB, 0xF3, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF3, 0xF1, 0xF0, 0xF8, 0xFC, 0xFF, 0x3F, 0x1F, 0xC4, 0xC0, 0xE0, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x1C, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0xF0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x87, 0x87, 0xCF, 0xFF, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0xFF, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0xC0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0xF0, 0xF0, 0xE0, 0xE0, 0xC6, 0xDF, 0xF1, 0xE0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE1, 0xE1, 0xE1, 0xE3, 0xF3, 0xF3, 0xF3, 0xF3, 0xF3, 0xFB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; #endif #if (SelectLogo == _IPL_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x88, 0x84, 0xC4, 0x42, 0x43, 0x41, 0x41, 0x41, 0x80, 0x00, 0x40, 0x80, 0x00, 0x00, 0x20, 0x01, 0x01, 0x03, 0x03, 0x07, 0x1F, 0x3E, 0xFC, 0xF8, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x09, 0x01, 0x01, 0x01, 0x00, 0x00, 0x38, 0x7C, 0x7C, 0xFC, 0x7C, 0xF8, 0xF0, 0x00, 0xC0, 0xE0, 0xF8, 0xFF, 0x7F, 0x1E, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC1, 0x7F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0x07, 0x0F, 0x1F, 0x3E, 0x7C, 0xF8, 0xF0, 0xE0, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x01, 0x83, 0xFF, 0xFF, 0x7E, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0xC0, 0xF0, 0x7C, 0x47, 0x47, 0x7F, 0xFF, 0xF8, 0xE0, 0x80, 0x00, 0x00, 0xFF, 0xFF, 0x07, 0x0F, 0x1E, 0x3C, 0x78, 0xF0, 0xE0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1F, 0x3F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xF8, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x80, 0x20, 0x10, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE3, 0xE3, 0xE3, 0x20, 0x20, 0xE0, 0xE3, 0xC3, 0x80, 0x00, 0x00, 0xE0, 0xE0, 0xE1, 0x23, 0x63, 0xE0, 0xE0, 0xC0, 0x83, 0x03, 0x03, 0xE2, 0xE2, 0xE2, 0x23, 0x21, 0x21, 0x20, 0x00, 0x00, 0x00, 0xE3, 0xE3, 0xE3, 0xC0, 0x00, 0x03, 0x03, 0x00, 0x00, 0x80, 0xE0, 0xE0, 0xE0, 0x03, 0x03, 0x03, 0xE2, 0xE0, 0xE3, 0xE3, 0x00, 0x00, 0xE0, 0xE0, 0xE0, 0x20, 0x21, 0x23, 0x23, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0xE0, 0x20, 0x60, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x0F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFF, 0xF8, 0xF0, 0xE0, 0xE0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x04, 0x07, 0x07, 0x03, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x08, 0x3C, 0x7F, 0xF7, 0xE3, 0xC1, 0x80, 0x00, 0xFF, 0xFF, 0xFF, 0xC6, 0x84, 0x84, 0xC4, 0xC0, 0x00, 0xC0, 0xFF, 0x03, 0x07, 0x1F, 0x7F, 0xFC, 0xF0, 0x78, 0x0E, 0x03, 0x03, 0xFF, 0xFF, 0xFC, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xE0, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xC4, 0x84, 0x84, 0xC4, 0xC0, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x08, 0x3C, 0x7F, 0xF7, 0xE3, 0xC1, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x5E, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0xF8, 0xF8, 0xF8, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x70, 0x38, 0xF8, 0xF8, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF0, 0xF0, 0x18, 0x08, 0x08, 0x08, 0x08, 0x08, 0x18, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0xF8, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0xF8, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xFC, 0xFE, 0x7F, 0x7F, 0xBF, 0xBF, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x3F, 0x30, 0x20, 0x20, 0x30, 0x30, 0x00, 0x38, 0x3F, 0x3F, 0x3F, 0x21, 0x21, 0x31, 0x30, 0x00, 0x20, 0x38, 0x1E, 0x07, 0x06, 0x06, 0x07, 0x07, 0x1F, 0x3F, 0x3C, 0x30, 0x01, 0x0F, 0x1F, 0x1F, 0x38, 0x30, 0x20, 0x20, 0x36, 0x3E, 0x3E, 0x02, 0x00, 0x00, 0x0F, 0x1F, 0x3F, 0x30, 0x20, 0x20, 0x20, 0x30, 0x1C, 0x0F, 0x00, 0x00, 0x00, 0x3F, 0x3F, 0x3F, 0x21, 0x21, 0x31, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x01, 0x01, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Bengaluru_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xC0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFC, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF8, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF8, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xFC, 0xF8, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF0, 0xF0, 0xF0, 0xE8, 0xF8, 0xF0, 0xF0, 0xF0, 0xF0, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x70, 0x70, 0xE0, 0xB0, 0xD0, 0xF0, 0x70, 0x60, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x70, 0xFE, 0xBF, 0xDF, 0xFF, 0x7F, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x1F, 0x8F, 0xCF, 0xCF, 0xC7, 0xC7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xC7, 0xC7, 0xCF, 0x8F, 0x8F, 0x1F, 0x1F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xF8, 0xE0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x07, 0x07, 0x07, 0x0F, 0x1F, 0x1F, 0x2F, 0x7F, 0xFE, 0xFE, 0xFE, 0xFE, 0xFC, 0xF8, 0xFC, 0xFF, 0xFF, 0xF6, 0xF0, 0xF8, 0xE1, 0xA3, 0xDF, 0xFF, 0xBF, 0xFF, 0x7F, 0xF7, 0x1E, 0x9F, 0xF4, 0xFD, 0xFE, 0xFB, 0xFF, 0xFA, 0xD0, 0xDF, 0xB7, 0xBC, 0xBF, 0xFF, 0xEF, 0xFF, 0x1F, 0xFB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x03, 0x01, 0xF0, 0xFC, 0xFE, 0xFF, 0x7F, 0x3F, 0x3F, 0x7F, 0x7F, 0x81, 0x19, 0x3D, 0x7F, 0x3F, 0x3F, 0x1F, 0x87, 0x77, 0x7F, 0x3D, 0x11, 0x02, 0xFC, 0xF8, 0xE0, 0x01, 0x07, 0x1F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x30, 0xDC, 0xF6, 0xFC, 0x66, 0xFC, 0xDC, 0xF8, 0xFA, 0x9E, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0xBF, 0xDF, 0xFF, 0xFD, 0xDE, 0xFB, 0xFD, 0xFF, 0xDB, 0xFD, 0xF7, 0xEF, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFD, 0x7F, 0xFF, 0xFF, 0x7B, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0xC0, 0x80, 0x0F, 0x3F, 0x7F, 0x80, 0xCC, 0xCE, 0xCE, 0xCE, 0xCC, 0xC0, 0xC8, 0xCC, 0xCC, 0xCE, 0xC4, 0x84, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0x7F, 0x3F, 0x1F, 0x07, 0x80, 0xE0, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x0C, 0xCC, 0xFF, 0xDC, 0x7F, 0x7F, 0x7F, 0x7F, 0xBF, 0xF7, 0xFF, 0xEB, 0x7F, 0xFF, 0xFF, 0xE7, 0x7F, 0xFF, 0xF7, 0x6F, 0x7F, 0x7E, 0xDF, 0xFB, 0xEF, 0x7F, 0xFF, 0x2F, 0x3F, 0x7F, 0x3F, 0x7F, 0xFF, 0xB7, 0xBF, 0xFF, 0xBF, 0xBF, 0xBF, 0xBE, 0xFF, 0x7F, 0xFE, 0xF6, 0xFD, 0xF9, 0xBD, 0xED, 0xFF, 0xBF, 0xFF, 0xFF, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF8, 0xF8, 0xF1, 0xF3, 0xF3, 0xE3, 0xE3, 0xE7, 0xE7, 0xE7, 0xE7, 0xE7, 0xE3, 0xE3, 0xF3, 0xF1, 0xF1, 0xF8, 0xF8, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x1F, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x60, 0x60, 0xE0, 0xA7, 0xFE, 0xF7, 0xBF, 0xFE, 0xFD, 0xD5, 0x7D, 0xFF, 0xFF, 0x7F, 0xEF, 0x3D, 0x3D, 0x35, 0x37, 0x3E, 0x3F, 0x3F, 0x2B, 0xEF, 0xFA, 0xD0, 0xF0, 0xF0, 0xF0, 0x70, 0xD0, 0x58, 0x6F, 0x77, 0x3F, 0x1F, 0x0F, 0x00, 0x11, 0x3B, 0x2F, 0x3F, 0x2F, 0x7F, 0x4F, 0x7F, 0x6F, 0x7F, 0x3F, 0x3F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x7F, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x03, 0x03, 0x01, 0x03, 0x02, 0x07, 0x07, 0x06, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x03, 0x03, 0x01, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x03, 0x07, 0x07, 0x0F, 0x0F, 0x1F, 0x1F, 0x1F, 0x3F, 0x3F, 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, 0x1F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, }; #endif #if (SelectLogo == _Delhi_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0x70, 0x70, 0x38, 0x38, 0x3C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x3E, 0x3C, 0x3C, 0x3C, 0x7C, 0x7C, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x30, 0x10, 0x10, 0x10, 0x30, 0xE0, 0x80, 0x00, 0xC0, 0xF0, 0x90, 0x90, 0x90, 0x10, 0x00, 0x00, 0xF0, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xF0, 0x80, 0x80, 0x80, 0x80, 0xC0, 0xF0, 0x00, 0x00, 0xE0, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x06, 0x03, 0x01, 0x80, 0x80, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0xC4, 0x80, 0x08, 0x00, 0xF0, 0xE0, 0x80, 0x01, 0x03, 0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x9F, 0x98, 0x98, 0x18, 0x08, 0x0C, 0x07, 0x01, 0x98, 0x9F, 0x99, 0x99, 0x99, 0x19, 0x00, 0x80, 0x9F, 0x9F, 0x98, 0x18, 0x18, 0x10, 0x00, 0x1C, 0x1F, 0x81, 0x81, 0x81, 0x81, 0x91, 0x9F, 0x81, 0x00, 0x18, 0x1F, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x01, 0x01, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x1F, 0xFF, 0xFF, 0xFE, 0xFC, 0xFF, 0xFF, 0x3C, 0x80, 0xF0, 0xFF, 0xFF, 0xFF, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xBF, 0x81, 0x81, 0x81, 0xC1, 0x63, 0x3E, 0x80, 0xC0, 0x70, 0x5C, 0x46, 0x47, 0x7F, 0xF0, 0x80, 0x00, 0xC0, 0xFF, 0x1F, 0x11, 0x71, 0xD9, 0x0F, 0x00, 0x80, 0xFE, 0x9F, 0x89, 0x89, 0x89, 0x01, 0x00, 0xF8, 0xFF, 0x81, 0x81, 0x81, 0xC1, 0x63, 0x7E, 0x00, 0x80, 0xFE, 0x9F, 0x89, 0x89, 0x89, 0x01, 0x01, 0x07, 0x3E, 0xE0, 0x60, 0x38, 0x0C, 0x03, 0x01, 0xC0, 0xFF, 0x07, 0x00, 0xF0, 0xFF, 0x83, 0x80, 0x80, 0x00, 0x06, 0x8F, 0x99, 0x99, 0xF1, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE0, 0xFC, 0xFF, 0xFF, 0xFF, 0xEF, 0xFF, 0xFD, 0x7E, 0x3F, 0x1F, 0x0F, 0x03, 0x81, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x1F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xE0, 0xF0, 0xF0, 0xF8, 0xFC, 0x7E, 0x7F, 0x3F, 0x3F, 0x1F, 0x0F, 0x0F, 0x07, 0x03, 0x01, 0x00, 0x80, 0xC0, 0xF0, 0xF8, 0x7E, 0x7F, 0x3F, 0x1F, 0x0F, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x0C, 0x0C, 0x06, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x08, 0x0C, 0x04, 0x06, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Gujrat_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0xC0, 0x40, 0x60, 0xE0, 0x20, 0x30, 0x30, 0x30, 0xF8, 0x18, 0x14, 0x14, 0x1C, 0xF8, 0xF0, 0x30, 0xA0, 0xA0, 0x20, 0x60, 0xC0, 0xC0, 0x40, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF8, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xF2, 0xE1, 0xC9, 0xB7, 0x86, 0xC8, 0xF3, 0x6E, 0x68, 0xE3, 0xF7, 0xF7, 0xF6, 0xF0, 0xFF, 0xF0, 0x7C, 0x7D, 0x70, 0xFF, 0xF0, 0xF8, 0x79, 0xF0, 0xFE, 0xF7, 0xF1, 0xE0, 0xE0, 0xF0, 0x9E, 0xCD, 0xE1, 0xF1, 0xFB, 0xF2, 0xFE, 0xFC, 0xFC, 0xFC, 0xF8, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF1, 0xF9, 0xE9, 0xF1, 0xF1, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x02, 0x04, 0x00, 0x00, 0x00, 0x81, 0x42, 0x62, 0x98, 0x80, 0x16, 0xB1, 0x5B, 0xAF, 0x2F, 0x1F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x1E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF3, 0xE5, 0xF7, 0x43, 0x83, 0xC1, 0x60, 0x80, 0x80, 0x40, 0x20, 0x30, 0x08, 0x80, 0x94, 0x9C, 0x9C, 0x99, 0xB3, 0xF3, 0x31, 0x14, 0xDE, 0x9F, 0xDE, 0xDE, 0x7C, 0x3E, 0xCE, 0x07, 0x53, 0x97, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xF8, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x05, 0x0A, 0x17, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDF, 0x5F, 0x7D, 0x7C, 0xBF, 0xBB, 0x3C, 0x1F, 0x3F, 0x7E, 0xFE, 0x9A, 0x1A, 0x3A, 0x33, 0xB3, 0xA3, 0x62, 0x43, 0x83, 0x03, 0x02, 0x0D, 0x1F, 0x7F, 0xFF, 0x7C, 0xEC, 0xFA, 0xFD, 0xFA, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0x3F, 0x1F, 0x2F, 0x07, 0x03, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x1D, 0x3B, 0xFB, 0xCB, 0x0F, 0x0E, 0x1C, 0x78, 0xE0, 0x81, 0x03, 0x0F, 0xFE, 0xF8, 0xC0, 0x00, 0x03, 0xBF, 0xF8, 0xC0, 0x01, 0x03, 0x07, 0x1E, 0xF8, 0xE1, 0x02, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xC0, 0xC0, 0x81, 0x39, 0x33, 0x67, 0xE7, 0xC1, 0x90, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x06, 0x1C, 0x78, 0xE0, 0x00, 0x07, 0xBF, 0xDC, 0xEC, 0x6E, 0x77, 0x3F, 0x3C, 0x1C, 0x0E, 0x06, 0x06, 0x06, 0x06, 0x06, 0x07, 0x07, 0x06, 0x06, 0x06, 0x0C, 0x1D, 0xFF, 0xFF, 0xE0, 0x78, 0x7F, 0xCF, 0x01, 0x20, 0xF9, 0x3F, 0x0F, 0x06, 0x00, 0x80, 0xE1, 0xFB, 0x3F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x7C, 0x1E, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x06, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0E, 0xF8, 0x70, 0x38, 0x1C, 0x0F, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Hyderabad_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, 0xFC, 0xE8, 0x88, 0x90, 0x20, 0x20, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC4, 0x18, 0x00, 0x80, 0xC0, 0x00, 0xB8, 0xCE, 0x20, 0x80, 0x00, 0xC0, 0x40, 0xC0, 0x40, 0xA0, 0x38, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x20, 0x20, 0x10, 0x98, 0xC8, 0xF4, 0xCE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0D, 0x1E, 0xAC, 0xC9, 0x93, 0x92, 0x22, 0x24, 0x44, 0x49, 0x49, 0x9A, 0x92, 0x94, 0xF4, 0x78, 0x58, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x12, 0x2C, 0x54, 0x90, 0xB8, 0xB8, 0x58, 0xAC, 0xEA, 0x94, 0x6F, 0x9E, 0x55, 0x2C, 0x18, 0x10, 0x17, 0x0C, 0x0D, 0x0D, 0x0A, 0x00, 0x16, 0x11, 0x22, 0x28, 0x5D, 0xAC, 0x5B, 0x85, 0xE2, 0x69, 0x50, 0xB0, 0x90, 0xD8, 0x28, 0x14, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x58, 0x68, 0xF4, 0x94, 0x92, 0x9A, 0x49, 0x49, 0x40, 0x24, 0x24, 0xB2, 0x93, 0xD9, 0xED, 0x3E, 0x0D, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x12, 0x3D, 0xAD, 0xE9, 0xCA, 0xD2, 0xD2, 0x92, 0x96, 0x96, 0x97, 0xB7, 0xBD, 0xE8, 0xA0, 0xA0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1E, 0x32, 0x51, 0xDC, 0xF1, 0x0E, 0x01, 0x08, 0x34, 0x36, 0x06, 0xE6, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, 0xFC, 0x80, 0x00, 0x00, 0x00, 0x00, 0x03, 0xFD, 0x84, 0xE0, 0x78, 0x1D, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA0, 0xA0, 0xE8, 0xBD, 0xB7, 0x97, 0x96, 0x96, 0x92, 0x92, 0xD2, 0xCA, 0xC9, 0xA9, 0x3D, 0x17, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x0E, 0x2E, 0x7A, 0x5A, 0xD2, 0xD2, 0x42, 0x4A, 0x0A, 0x2B, 0xBE, 0x98, 0x60, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x81, 0x81, 0xC3, 0x45, 0x4D, 0xBB, 0xA3, 0x84, 0x84, 0xA4, 0x08, 0x48, 0x48, 0x40, 0x44, 0x07, 0x73, 0x08, 0x85, 0x81, 0x81, 0x81, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x70, 0xD8, 0xBE, 0x2E, 0x0B, 0x4A, 0x42, 0xD2, 0xD2, 0x52, 0x7A, 0x6A, 0x0E, 0x02, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x10, 0xD1, 0xE9, 0xAF, 0xB3, 0x95, 0xB5, 0xD4, 0x84, 0x1A, 0xFB, 0xE3, 0x89, 0x3C, 0xFD, 0xC1, 0x1D, 0xFE, 0xD8, 0x3E, 0xBE, 0x60, 0x09, 0x7F, 0x7F, 0x0C, 0xC4, 0xBF, 0xFB, 0x80, 0xBF, 0xFF, 0x81, 0x7E, 0x6F, 0x4B, 0x7A, 0x3E, 0x40, 0x7A, 0xFE, 0x96, 0xC5, 0x0D, 0xA5, 0xF1, 0x7B, 0x7B, 0xCA, 0xF6, 0x34, 0x85, 0xE9, 0x6B, 0x6F, 0x59, 0xD1, 0xA0, 0x60, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x0D, 0x11, 0x15, 0x1C, 0x14, 0x14, 0x0B, 0x0B, 0x0C, 0x15, 0x29, 0x6D, 0xFC, 0xCE, 0xC2, 0x92, 0x92, 0x93, 0x27, 0x23, 0x61, 0x08, 0x49, 0x6B, 0x4E, 0x00, 0x60, 0x48, 0x48, 0x28, 0x4A, 0x69, 0x60, 0x25, 0x35, 0xB3, 0x93, 0x8A, 0x52, 0xC6, 0xAA, 0xDE, 0x2D, 0x35, 0x0C, 0x0C, 0x0B, 0x09, 0x16, 0x16, 0x2D, 0x2D, 0x2F, 0x17, 0x19, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x03, 0x06, 0xC5, 0xE2, 0xD9, 0xAB, 0x45, 0x17, 0x04, 0xC8, 0x18, 0x38, 0x1C, 0x0C, 0xC9, 0x15, 0x8F, 0x47, 0xAB, 0x59, 0xE2, 0xC5, 0x02, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x07, 0x0F, 0x1E, 0x3B, 0x7C, 0x61, 0xFC, 0xE0, 0xC0, 0xFE, 0x70, 0x7E, 0x39, 0x0E, 0x05, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Kolkata_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x80, 0x80, 0x80, 0xFE, 0xFE, 0xFE, 0xEC, 0x1C, 0x1C, 0x1C, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xEC, 0x4C, 0x9C, 0x0C, 0x0C, 0x0C, 0xCC, 0xDC, 0x98, 0x38, 0xF8, 0xF0, 0xE0, 0x70, 0x70, 0x70, 0x60, 0x60, 0xE0, 0xC0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xFC, 0xFF, 0xFF, 0xE3, 0xE3, 0xEB, 0xFB, 0xFF, 0x7F, 0xCF, 0xF7, 0xFE, 0xF9, 0xF9, 0xF8, 0xF8, 0xF0, 0x11, 0x31, 0x33, 0x13, 0x33, 0x33, 0x23, 0x20, 0x61, 0x23, 0x66, 0x7C, 0xF0, 0xF1, 0x11, 0x10, 0x10, 0x10, 0x10, 0x10, 0x64, 0xCC, 0x8E, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF, 0xFF, 0x3F, 0xFC, 0xFE, 0xFC, 0xE0, 0xE0, 0xF8, 0xF0, 0xF0, 0x00, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0xC0, 0x00, 0x80, 0xFE, 0xFF, 0xFF, 0x79, 0xF9, 0xFB, 0xFB, 0xFF, 0x7F, 0x03, 0xF8, 0xFF, 0xFF, 0xF8, 0xF0, 0xF1, 0xF1, 0xF1, 0x31, 0x13, 0x30, 0x20, 0x21, 0x23, 0x62, 0x66, 0x62, 0x42, 0x46, 0xC4, 0xC4, 0xCD, 0xC7, 0x9F, 0xFD, 0xF0, 0xE0, 0x21, 0x23, 0x62, 0x67, 0x63, 0x62, 0xC6, 0xCE, 0x46, 0xCF, 0xFF, 0xFF, 0xFC, 0xC3, 0x1F, 0xF9, 0xCF, 0x3F, 0xFF, 0x03, 0xFF, 0xFF, 0x07, 0x3F, 0xFF, 0xFC, 0x1E, 0xFE, 0xE0, 0xF8, 0xF0, 0x80, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0xC0, 0x00, 0xE0, 0xE0, 0xE0, 0x38, 0xF8, 0xFC, 0xFC, 0xC6, 0x82, 0xC3, 0xF9, 0xF9, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFF, 0x3F, 0xCF, 0x78, 0x0F, 0x00, 0xFF, 0xFF, 0xFF, 0x78, 0x78, 0x78, 0x7A, 0xFF, 0xFF, 0x00, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xBF, 0x3F, 0x7F, 0x3F, 0xFC, 0x70, 0x62, 0xC6, 0x66, 0xC6, 0xC6, 0xCE, 0xCC, 0xC0, 0xC4, 0xFC, 0xFD, 0x38, 0x31, 0x43, 0x43, 0x7F, 0x7E, 0x70, 0x42, 0x46, 0x4E, 0xC0, 0xC3, 0xCF, 0xCE, 0x81, 0x80, 0x83, 0x9F, 0xFF, 0xFC, 0xF0, 0x87, 0x1F, 0x7C, 0xF0, 0xC0, 0x83, 0x00, 0xC0, 0xC7, 0xC1, 0xC0, 0xCF, 0xC7, 0xC0, 0x8F, 0x9F, 0x87, 0x83, 0x9C, 0x84, 0x8E, 0x1C, 0x3C, 0xF8, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xD0, 0xFC, 0x7A, 0x76, 0xF3, 0xFB, 0x19, 0x71, 0x3D, 0xFE, 0xFE, 0xFF, 0xFF, 0x4F, 0x38, 0xC7, 0xBF, 0x7F, 0xFF, 0xFF, 0xFC, 0xF9, 0xFB, 0xF7, 0xFF, 0xEF, 0xFF, 0xDF, 0xDF, 0xBF, 0x7F, 0xFF, 0xFB, 0xFD, 0xEE, 0xD3, 0xA0, 0x40, 0x80, 0x00, 0x3F, 0xFF, 0xFF, 0xFD, 0xFC, 0xFD, 0xBD, 0x7F, 0xFF, 0xF8, 0x03, 0xFF, 0xCF, 0x17, 0x17, 0x1F, 0x0F, 0x0F, 0x1E, 0x3E, 0x7F, 0xFF, 0x66, 0x0C, 0x0C, 0x4C, 0xCC, 0xDC, 0x8C, 0x99, 0x88, 0x88, 0x3B, 0xFF, 0x9E, 0xC0, 0x70, 0x3C, 0x0C, 0xFC, 0x7C, 0x64, 0x80, 0x88, 0x88, 0x88, 0x98, 0x18, 0x18, 0x18, 0x00, 0x81, 0xC3, 0xEF, 0xE7, 0x0E, 0x38, 0xE1, 0x83, 0x0E, 0x1D, 0x76, 0xE9, 0xD3, 0xA7, 0x4F, 0x9F, 0x3F, 0x1F, 0x8F, 0xCF, 0xE7, 0xE3, 0xF1, 0x78, 0x3E, 0x1F, 0x0F, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x60, 0x30, 0x30, 0x3C, 0x1F, 0x8F, 0xE7, 0x04, 0x3E, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0x7E, 0xBF, 0x5F, 0x65, 0x3A, 0x7B, 0xFB, 0xF7, 0xF7, 0x77, 0x17, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x00, 0x01, 0x01, 0x03, 0x03, 0x03, 0x06, 0x01, 0x06, 0x00, 0x07, 0x7F, 0xFF, 0xFE, 0x9E, 0x5E, 0x5E, 0x1F, 0xFF, 0xFE, 0xE1, 0x7F, 0x7E, 0xFE, 0xFE, 0xFE, 0xFA, 0xF4, 0xEC, 0x18, 0xE0, 0x03, 0x0E, 0x38, 0x38, 0x58, 0x18, 0x28, 0x0D, 0x85, 0x85, 0x43, 0x43, 0xA1, 0xD0, 0x68, 0x3C, 0x1F, 0x0D, 0x04, 0x88, 0x8B, 0x0C, 0x18, 0x10, 0x11, 0x31, 0xF1, 0xF1, 0x71, 0xB1, 0x59, 0x2F, 0x13, 0x80, 0xE0, 0xBF, 0xFF, 0xFE, 0xFC, 0xF0, 0xE0, 0x81, 0x03, 0x07, 0x0E, 0x1E, 0x7F, 0xFF, 0xE7, 0xC3, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF0, 0x3C, 0x1E, 0x4F, 0x37, 0x39, 0x1E, 0x3E, 0xF9, 0x77, 0x0F, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1F, 0x7F, 0xFF, 0xFF, 0x9F, 0x8F, 0xAF, 0xFF, 0xFF, 0xFC, 0xF0, 0xC0, 0x00, 0x10, 0x71, 0xD0, 0xD1, 0xD1, 0xE0, 0xA0, 0xA0, 0xA0, 0xA0, 0xA6, 0xA3, 0xC5, 0x46, 0x42, 0x43, 0x4F, 0x79, 0xE0, 0xC0, 0x1C, 0x3C, 0xFA, 0xE7, 0xC7, 0x46, 0x4E, 0x4F, 0x4D, 0xCE, 0x9C, 0x80, 0x82, 0x81, 0x88, 0x9C, 0x96, 0x1B, 0x3D, 0x1E, 0xBF, 0x9F, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x1E, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1D, 0x1F, 0x1F, 0x1F, 0x1E, 0x1C, 0x18, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x07, 0x07, 0x03, 0x03, 0x03, 0x03, 0x03, 0x07, 0x0F, 0x1E, 0x1C, 0x38, 0x39, 0x39, 0x78, 0x38, 0x3C, 0x3F, 0x1F, 0x0F, 0x03, 0x03, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x0F, 0x1F, 0x3C, 0x78, 0x79, 0x73, 0xF3, 0xE3, 0xF1, 0x71, 0x7F, 0x7F, 0x3E, 0x0E, 0x0E, 0x0E, 0x0E, 0x0F, 0x1F, 0x1F, 0x0F, 0x0F, 0x07, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Mumbai_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x20, 0x80, 0x80, 0xC0, 0x40, 0xE0, 0xE0, 0xE0, 0xF0, 0x70, 0x58, 0x68, 0xA8, 0xA4, 0xF4, 0xF0, 0x72, 0x70, 0x78, 0x78, 0x78, 0xF8, 0xE8, 0xEC, 0xEC, 0xE4, 0xE4, 0xE4, 0xE4, 0xE4, 0xE0, 0xE0, 0xE0, 0xC0, 0xC0, 0xC0, 0xC0, 0x88, 0x88, 0x88, 0x08, 0x08, 0x18, 0x18, 0x18, 0x38, 0x30, 0x70, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x20, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xE0, 0xB0, 0x08, 0x80, 0xC0, 0x60, 0x10, 0x08, 0xF4, 0x7E, 0x1E, 0x0F, 0x0D, 0x04, 0x12, 0x09, 0x0D, 0x06, 0x02, 0x83, 0x81, 0x81, 0x00, 0x02, 0x00, 0x01, 0x01, 0x00, 0x00, 0x02, 0x02, 0x02, 0x01, 0x01, 0x09, 0x89, 0x89, 0x09, 0x1D, 0x1F, 0x7F, 0xFF, 0xFF, 0xFE, 0xFE, 0x3E, 0x7C, 0x7C, 0xF8, 0xF0, 0xF0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0xFF, 0xFF, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFC, 0x1F, 0x03, 0x01, 0x00, 0xE0, 0xC0, 0x80, 0x80, 0x00, 0x00, 0xFC, 0xFF, 0xFF, 0xBF, 0x1F, 0x1F, 0x3F, 0x20, 0x40, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x04, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x70, 0x00, 0x00, 0x00, 0x80, 0xE1, 0xFF, 0x1E, 0x3C, 0xFC, 0xF3, 0xDA, 0xFF, 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0x30, 0x1C, 0x0F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x87, 0x8C, 0x80, 0x90, 0x83, 0x87, 0x8F, 0x8F, 0x9F, 0x9F, 0x9F, 0xFF, 0xFF, 0xFF, 0xFF, 0xF6, 0xE6, 0x62, 0x62, 0x60, 0x20, 0x30, 0x90, 0x90, 0x80, 0x88, 0xC0, 0xC0, 0x60, 0x60, 0x10, 0x10, 0x88, 0x80, 0xC4, 0x42, 0x60, 0x30, 0xD8, 0x68, 0xBC, 0x9E, 0xCF, 0x63, 0x30, 0x38, 0x1C, 0x0E, 0x07, 0x81, 0xC0, 0x70, 0x3E, 0x1F, 0x0F, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x81, 0x81, 0x81, 0x43, 0x43, 0x43, 0x43, 0x63, 0x63, 0x73, 0x73, 0x73, 0x3B, 0x39, 0x3D, 0x3F, 0x1F, 0x1F, 0x1B, 0x0B, 0x0D, 0x0D, 0x06, 0x06, 0x06, 0x23, 0x33, 0x11, 0x18, 0x0C, 0x0E, 0x07, 0x07, 0x03, 0x03, 0x01, 0x01, 0x00, 0x80, 0xF0, 0x3E, 0x0C, 0x18, 0x30, 0x10, 0x10, 0x88, 0xE8, 0x7C, 0x0C, 0xF0, 0xFE, 0x86, 0x00, 0x00, 0x00, 0x80, 0x80, 0x60, 0x3C, 0x0E, 0xE0, 0x7C, 0x0C, 0x08, 0x10, 0x30, 0x10, 0x08, 0xC8, 0xFC, 0x1C, 0xE0, 0xFC, 0x1E, 0x12, 0x12, 0x12, 0x12, 0x92, 0xFE, 0x6E, 0x00, 0x80, 0xC0, 0x60, 0x50, 0x48, 0x44, 0x5E, 0xFA, 0xC0, 0x01, 0x00, 0xC0, 0xF8, 0x1E, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x88, 0xF0, 0xF0, 0xF0, 0x30, 0x00, 0xE4, 0xC0, 0x80, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0xE0, 0xE0, 0xE0, 0x20, 0x00, 0xC0, 0xE0, 0xE0, 0xE0, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0xE0, 0xC0, 0xC0, 0xC0, 0xA0, 0x00, 0x40, 0x00, 0x80, 0x10, 0xC0, 0xE0, 0xE0, 0x60, 0x01, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x81, 0xC0, 0xE0, 0xE0, 0xE0, 0x21, 0x01, 0x41, 0x21, 0x11, 0x00, 0x00, 0x00, 0x31, 0x81, 0xE0, 0xC0, 0x80, 0x20, 0x40, 0x80, 0x00, 0x01, 0x00, 0x00, 0x01, 0x81, 0x31, 0xC9, 0xE1, 0xE1, 0xE1, 0x01, 0x00, 0x90, 0xD1, 0xE1, 0xE8, 0x60, 0x70, 0x70, 0x70, 0x30, 0x30, 0x71, 0x70, 0x70, 0x71, 0x70, 0x70, 0x30, 0xB0, 0x40, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x08, 0xE1, 0xFC, 0xFF, 0xFF, 0x1F, 0x81, 0xF0, 0xFF, 0xFF, 0x3F, 0xC7, 0x27, 0x2F, 0x5E, 0xBD, 0x7A, 0x70, 0xE0, 0xE8, 0xE3, 0xF8, 0xFF, 0xFF, 0x1F, 0x81, 0xF0, 0xFE, 0xFF, 0x3F, 0x87, 0x10, 0x03, 0x01, 0x01, 0x01, 0x01, 0x81, 0x01, 0x40, 0xA2, 0xDC, 0xE1, 0xFF, 0x7F, 0x3F, 0x0E, 0x81, 0xF0, 0xFE, 0xFF, 0x3F, 0x87, 0x98, 0x43, 0xA0, 0xD0, 0xE8, 0xF4, 0xFA, 0xFD, 0xDE, 0xCF, 0xD3, 0xD9, 0xC3, 0xFF, 0xFF, 0xFF, 0xF8, 0xC6, 0x30, 0x80, 0xC0, 0x18, 0xE3, 0xFC, 0xFF, 0x7F, 0x0F, 0x27, 0x07, 0x2F, 0x5E, 0xBD, 0x7A, 0xF0, 0xE0, 0xEC, 0xF1, 0xFE, 0xFF, 0x3F, 0x87, 0x00, 0x08, 0x17, 0x0F, 0x8F, 0x8F, 0x1C, 0x1D, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0xB8, 0xFA, 0xF0, 0x44, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x16, 0x10, 0x17, 0x17, 0x17, 0x17, 0x10, 0x14, 0x17, 0x17, 0x17, 0x11, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x05, 0x0B, 0x17, 0x17, 0x10, 0x14, 0x17, 0x17, 0x17, 0x17, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x06, 0x06, 0x03, 0x0B, 0x0B, 0x05, 0x05, 0x02, 0x18, 0x03, 0x14, 0x17, 0x17, 0x17, 0x11, 0x10, 0x15, 0x16, 0x17, 0x17, 0x13, 0x09, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x0C, 0x13, 0x07, 0x07, 0x07, 0x04, 0x11, 0x10, 0x17, 0x17, 0x07, 0x17, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x05, 0x0B, 0x17, 0x13, 0x14, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x07, 0x07, 0x03, 0x0B, 0x05, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Pune_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x80, 0x00, 0x70, 0xE0, 0xC0, 0x88, 0xE0, 0x00, 0x70, 0x98, 0x88, 0x08, 0xC8, 0x00, 0x00, 0x00, 0xC0, 0xF8, 0x98, 0x90, 0x60, 0x80, 0x60, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0, 0xC8, 0x38, 0x60, 0xCE, 0x8F, 0x2D, 0x2C, 0x1C, 0x01, 0x0E, 0x80, 0x07, 0x00, 0x00, 0x01, 0x03, 0x80, 0xC1, 0xE1, 0xE1, 0xE1, 0xE0, 0xE0, 0xE0, 0xE1, 0xE0, 0xC0, 0xC0, 0xC0, 0x8F, 0x8C, 0x8C, 0x06, 0x31, 0x0C, 0x8E, 0xEF, 0x60, 0x38, 0x88, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7C, 0xFC, 0x7C, 0x7C, 0xFC, 0xFC, 0xFC, 0xFC, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xB8, 0xE8, 0x20, 0x60, 0xC0, 0xC0, 0xC0, 0x82, 0x83, 0x86, 0x8C, 0x1F, 0x03, 0x02, 0x01, 0xC0, 0xE0, 0xC0, 0x80, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0F, 0x1F, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0xC7, 0x07, 0xFF, 0xBF, 0x3E, 0x24, 0x18, 0x60, 0xC7, 0x0F, 0x11, 0x86, 0x80, 0x83, 0x80, 0xC0, 0xE0, 0xC0, 0x60, 0x20, 0xE8, 0xB8, 0x78, 0xF8, 0x78, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0x7C, 0x7C, 0x7C, 0x00, 0x00, 0x00, 0x03, 0x07, 0x17, 0x37, 0xF7, 0x77, 0x77, 0x77, 0x77, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x76, 0x66, 0x5E, 0xD0, 0x86, 0x78, 0xCF, 0x7F, 0xFD, 0xF5, 0xFF, 0x07, 0x00, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF0, 0x40, 0x01, 0xF8, 0xFF, 0xFE, 0xFB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE7, 0xF8, 0xFF, 0xFE, 0xBF, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x07, 0xFF, 0xE5, 0xFD, 0xFF, 0x0F, 0xF8, 0x86, 0xD0, 0x5E, 0x63, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x77, 0x7F, 0x7F, 0x7F, 0x7F, 0x77, 0x77, 0xF7, 0x37, 0x17, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x07, 0x0B, 0x1B, 0x1B, 0x1B, 0x5B, 0xDB, 0xFB, 0xDB, 0xFF, 0xFB, 0xFB, 0xFB, 0xFB, 0xFF, 0xFB, 0xFB, 0xFB, 0x7B, 0x7B, 0x7B, 0x7B, 0x7F, 0x7F, 0x5F, 0x7B, 0x7A, 0x6A, 0x78, 0x67, 0xD2, 0x23, 0xEF, 0x3E, 0x70, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFB, 0xFB, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x03, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x58, 0xE0, 0x78, 0x1E, 0xEF, 0x23, 0xA8, 0x47, 0x78, 0x6A, 0x5A, 0x7B, 0x7F, 0x7F, 0x7F, 0x7F, 0x7B, 0x7B, 0x7B, 0x7B, 0x7B, 0xFF, 0xFF, 0xFB, 0xFB, 0xFF, 0xFF, 0xFF, 0xFB, 0xFB, 0xDB, 0x5B, 0x5B, 0x1B, 0x1B, 0x0B, 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x03, 0x07, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0D, 0x0F, 0x0C, 0x0B, 0xCF, 0x45, 0x87, 0x0F, 0x3F, 0x7F, 0xFF, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xFC, 0xFE, 0x7F, 0x3F, 0x0F, 0xC7, 0x4D, 0x0F, 0x8D, 0x08, 0x0E, 0x0D, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x07, 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, 0x07, 0x00, 0x79, 0x46, 0x62, 0x30, 0xD8, 0xF1, 0x23, 0xE7, 0x07, 0x8D, 0x9D, 0x96, 0x13, 0x13, 0x37, 0x27, 0x27, 0x27, 0x3B, 0x3F, 0x3F, 0x37, 0x1F, 0x17, 0x9F, 0x9F, 0x0B, 0xC5, 0xC6, 0x83, 0xB1, 0xC8, 0x0C, 0x1E, 0x30, 0x63, 0x03, 0x0D, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x0F, 0x1B, 0x16, 0x01, 0x30, 0x0F, 0x19, 0x2F, 0x00, 0x1E, 0x33, 0x23, 0x32, 0x00, 0x1F, 0x00, 0x1F, 0x0D, 0x07, 0x0C, 0x09, 0x04, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _Punjab_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x40, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xE0, 0x60, 0x30, 0x18, 0x0C, 0x04, 0x06, 0x1E, 0x1E, 0x06, 0x06, 0x66, 0x7E, 0xF6, 0xF6, 0x7E, 0x7C, 0x76, 0x36, 0x3E, 0x1E, 0x0E, 0x3C, 0x74, 0x70, 0xF0, 0xA0, 0xE0, 0xE0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0xC0, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x0F, 0xFE, 0xFC, 0xF8, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x18, 0x58, 0x50, 0x00, 0x00, 0x78, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x60, 0x30, 0x98, 0x7A, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0x99, 0xC0, 0xC0, 0x60, 0x63, 0xE7, 0xE0, 0xE0, 0x10, 0x80, 0xE0, 0xE0, 0x7C, 0x1C, 0x98, 0x78, 0xF8, 0xF8, 0xF8, 0x38, 0x3F, 0xFF, 0xDF, 0xFF, 0xEE, 0xEF, 0xEF, 0xEF, 0xAF, 0xB7, 0x2F, 0x6F, 0xDB, 0x11, 0x30, 0xA0, 0x01, 0x01, 0x01, 0x01, 0x81, 0xC1, 0xC1, 0xE1, 0xE3, 0xE3, 0x63, 0xE3, 0xC6, 0xC6, 0x86, 0x8E, 0x0C, 0x1C, 0x18, 0x38, 0x38, 0x70, 0x60, 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x0C, 0x04, 0x03, 0x3B, 0x7C, 0xFE, 0xF8, 0xF0, 0xEF, 0x1F, 0x1F, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3C, 0x3E, 0x3E, 0xF6, 0x76, 0x38, 0x3C, 0xBC, 0x9E, 0x8E, 0x66, 0x76, 0x7E, 0x3E, 0x3E, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x3F, 0x67, 0x0F, 0x1F, 0x23, 0x03, 0x07, 0x00, 0x00, 0x03, 0x01, 0x07, 0x07, 0x0F, 0x0F, 0x01, 0xC0, 0x40, 0x40, 0x8F, 0x0E, 0x03, 0x01, 0x80, 0x80, 0x40, 0x48, 0x87, 0x07, 0x01, 0x01, 0x03, 0x03, 0x00, 0x00, 0x01, 0x00, 0x02, 0x03, 0x01, 0x01, 0x02, 0x0F, 0x0F, 0x1F, 0x3F, 0x3B, 0x1F, 0xDF, 0xDF, 0xCE, 0xEE, 0xF7, 0xF7, 0xF3, 0xFB, 0xF9, 0xFD, 0xFC, 0xFE, 0xEC, 0xE0, 0xE0, 0xE0, 0xC0, 0x01, 0x01, 0x03, 0x07, 0x0E, 0x1C, 0x3C, 0x78, 0xF0, 0xE0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xDD, 0xCC, 0xCC, 0xDC, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x8E, 0xDF, 0x9F, 0x9F, 0x9B, 0x9B, 0x98, 0x9F, 0x9F, 0x9F, 0x9F, 0xDF, 0x9B, 0x9B, 0x9F, 0xDF, 0xDF, 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x40, 0x80, 0x91, 0x13, 0x0D, 0x00, 0x02, 0xB2, 0xB2, 0xB1, 0xB0, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0xB0, 0xB0, 0xB1, 0xB1, 0xB2, 0x02, 0x00, 0x00, 0x0D, 0x13, 0x90, 0x40, 0x60, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x1D, 0xCD, 0xCD, 0xCD, 0xCC, 0xCE, 0xCE, 0xCE, 0xCE, 0xC6, 0xC6, 0xF6, 0xFE, 0xFE, 0xBE, 0x9C, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x0F, 0x1E, 0x7C, 0xF8, 0xF0, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x74, 0x74, 0x6C, 0x66, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCD, 0xDD, 0xDD, 0xDF, 0xDF, 0xDF, 0xDF, 0xCF, 0xCF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDF, 0xDD, 0xDD, 0xC9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x02, 0x09, 0x89, 0xC8, 0xB0, 0x00, 0x40, 0x4D, 0x4D, 0x8D, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x87, 0x8F, 0x0F, 0x0F, 0x0F, 0x0D, 0x8D, 0x59, 0x59, 0x40, 0x00, 0x00, 0xB0, 0xC8, 0x09, 0x02, 0x06, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x60, 0x70, 0x7E, 0x6E, 0x6E, 0xEE, 0xEF, 0xCF, 0xCF, 0xCF, 0xCF, 0xDF, 0x9F, 0x9F, 0x1F, 0x1B, 0x1B, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xE0, 0xF0, 0x78, 0x3E, 0x1F, 0x0F, 0x03, 0x01, 0x00, 0x00, 0x00, 0x20, 0x30, 0x70, 0xE0, 0xC8, 0x5C, 0x3F, 0x3F, 0x1E, 0xCE, 0xF2, 0xF0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x6E, 0x6E, 0x7C, 0x7C, 0x7C, 0x78, 0x78, 0x7C, 0x7C, 0x7C, 0x7C, 0x7E, 0x6E, 0x6F, 0x67, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0xFC, 0xE6, 0xF0, 0xF8, 0xC4, 0xC0, 0xE0, 0x00, 0x00, 0x80, 0x80, 0xC0, 0xE0, 0xF0, 0xF0, 0x00, 0x02, 0x02, 0x02, 0xF1, 0x90, 0xC0, 0x80, 0x01, 0x02, 0x02, 0x32, 0xE1, 0xC0, 0x80, 0xC0, 0xC0, 0x80, 0x00, 0x00, 0x80, 0x00, 0x40, 0xC0, 0x80, 0x80, 0x60, 0x70, 0xF0, 0xF8, 0xF8, 0xDC, 0xDC, 0xFF, 0xFB, 0xFB, 0xF3, 0x17, 0x07, 0x06, 0x06, 0x0E, 0x0E, 0x0E, 0x0C, 0x0F, 0x0F, 0x07, 0x07, 0x03, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0x78, 0x3C, 0x1E, 0x0F, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0x7F, 0x3F, 0x1F, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x16, 0x06, 0x00, 0x02, 0x1E, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x0C, 0x18, 0x5E, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0x99, 0x03, 0x03, 0x86, 0xC6, 0xE7, 0x07, 0x0F, 0x08, 0x01, 0x07, 0x07, 0x3C, 0x38, 0x19, 0x1E, 0x1F, 0x1F, 0x1F, 0x1C, 0xFC, 0xFF, 0xFB, 0xFF, 0xFF, 0xF7, 0xF7, 0xF7, 0xF7, 0xE5, 0xF4, 0xF6, 0xD3, 0x09, 0x0D, 0x05, 0x80, 0x80, 0x80, 0x80, 0x80, 0x81, 0x81, 0x81, 0xC3, 0xC3, 0xC7, 0xE7, 0x67, 0x62, 0x60, 0x70, 0x30, 0x38, 0x18, 0x1C, 0x1C, 0x0E, 0x06, 0x07, 0x07, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x07, 0x04, 0x0C, 0x18, 0x30, 0x60, 0x60, 0x78, 0x78, 0x60, 0x60, 0x66, 0x7E, 0x46, 0x6E, 0x7E, 0x7E, 0x7E, 0x6C, 0x78, 0x78, 0x70, 0x78, 0x2E, 0x0E, 0x0E, 0x0D, 0x07, 0x07, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif #if (SelectLogo == _MakeInIndia_) code const unsigned char LogoBitMap [] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xE0, 0xF0, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xF8, 0xF8, 0xF8, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xC0, 0xC0, 0xC0, 0xE0, 0xE0, 0xE0, 0xF0, 0xF0, 0xF0, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFE, 0xFE, 0xFE, 0xFE, 0xFA, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFE, 0xF1, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0x78, 0x3C, 0x1C, 0x1E, 0x1E, 0x0E, 0x0E, 0x0F, 0x0F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x07, 0x0F, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0xFF, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF0, 0xE0, 0xC0, 0xE0, 0xFF, 0xFF, 0x1F, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF0, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x80, 0x87, 0x80, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x8F, 0x8F, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x81, 0x18, 0x3E, 0xFF, 0x00, 0x00, 0xE7, 0xE7, 0xE7, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xC0, 0x83, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xC0, 0x83, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xCF, 0xCF, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xCF, 0xE7, 0xE7, 0xC7, 0x07, 0x07, 0x07, 0x03, 0x01, 0x00, 0x03, 0x1F, 0x3F, 0x7E, 0xF8, 0xF0, 0xE0, 0xC0, 0x80, 0xC0, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0x7C, 0x1F, 0x1C, 0x3C, 0x3C, 0x7C, 0x7C, 0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFC, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFC, 0xFC, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0xFF, 0xFF, 0x3F, 0x3F, 0x03, 0x0F, 0x0F, 0x0F, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0F, 0x0F, 0x1F, 0x1F, 0x1F, 0x1F, 0x3F, 0x1E, 0x1E, 0x18, 0x10, 0xE0, 0xF0, 0xF0, 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x3F, 0x1F, 0x0F, 0x07, 0x07, 0x07, 0x03, 0x03, 0x01, 0x07, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xE0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x1F, 0x0F, 0x03, 0x07, 0x0F, 0x1F, 0x1F, 0x3F, 0x3F, 0x1F, 0x3F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x9F, 0x0F, 0x07, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE3, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x3F, 0x0F, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0F, 0x1F, 0x3F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xF0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x3F, 0x7F, 0x7F, 0x7F, 0x7E, 0x7E, 0x7E, 0x7E, 0x7C, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x0F, 0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7E, 0x3E, 0x3E, 0x3E, 0x3E, 0x3C, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x7F, 0x7F, 0xFF, 0xFF, 0xFF, 0xFE, 0xFC, 0xF8, 0x70, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x07, 0x0F, 0x3F, 0x7F, 0x7F, 0x7F, 0x7E, 0x7E, 0x7C, 0x7C, 0x5C, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #endif
1005116.c
// Auto-generated file. Do not edit! // Template: src/f32-vrnd/vrndd-wasmsimd-addsub.c.in // Generator: tools/xngen // // Copyright 2020 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <assert.h> #include <wasm_simd128.h> #include <xnnpack/common.h> #include <xnnpack/math.h> #include <xnnpack/vunary.h> void xnn_f32_vrndd_ukernel__wasmsimd_addsub_x8( size_t n, const float* x, float* y, const union xnn_f32_rnd_params params[restrict XNN_MIN_ELEMENTS(1)]) XNN_DISABLE_TSAN { assert(n != 0); assert(n % sizeof(float) == 0); const v128_t vsign_mask = wasm_f32x4_splat(-0.0f); const v128_t vmagic_number = wasm_f32x4_splat(0x1.000000p+23f); const v128_t vone = wasm_f32x4_splat(1.0f); for (; n >= 8 * sizeof(float); n -= 8 * sizeof(float)) { const v128_t vx0123 = wasm_v128_load(x); const v128_t vx4567 = wasm_v128_load(x + 4); x += 8; const v128_t vabsx0123 = wasm_v128_andnot(vx0123, vsign_mask); const v128_t vabsx4567 = wasm_v128_andnot(vx4567, vsign_mask); const v128_t vrndmask0123 = wasm_v128_or(vsign_mask, wasm_f32x4_le(vmagic_number, vabsx0123)); const v128_t vrndmask4567 = wasm_v128_or(vsign_mask, wasm_f32x4_le(vmagic_number, vabsx4567)); const v128_t vrndabsx0123 = wasm_f32x4_sub(wasm_f32x4_add(vabsx0123, vmagic_number), vmagic_number); const v128_t vrndabsx4567 = wasm_f32x4_sub(wasm_f32x4_add(vabsx4567, vmagic_number), vmagic_number); const v128_t vrndx0123 = wasm_v128_bitselect(vx0123, vrndabsx0123, vrndmask0123); const v128_t vrndx4567 = wasm_v128_bitselect(vx4567, vrndabsx4567, vrndmask4567); const v128_t vy0123 = wasm_f32x4_sub(vrndx0123, wasm_v128_and(wasm_f32x4_lt(vx0123, vrndx0123), vone)); const v128_t vy4567 = wasm_f32x4_sub(vrndx4567, wasm_v128_and(wasm_f32x4_lt(vx4567, vrndx4567), vone)); wasm_v128_store(y, vy0123); wasm_v128_store(y + 4, vy4567); y += 8; } for (; n >= 4 * sizeof(float); n -= 4 * sizeof(float)) { const v128_t vx = wasm_v128_load(x); x += 4; const v128_t vabsx = wasm_v128_andnot(vx, vsign_mask); const v128_t vrndmask = wasm_v128_or(vsign_mask, wasm_f32x4_le(vmagic_number, vabsx)); const v128_t vrndabsx = wasm_f32x4_sub(wasm_f32x4_add(vabsx, vmagic_number), vmagic_number); const v128_t vrndx = wasm_v128_bitselect(vx, vrndabsx, vrndmask); const v128_t vy = wasm_f32x4_sub(vrndx, wasm_v128_and(wasm_f32x4_lt(vx, vrndx), vone)); wasm_v128_store(y, vy); y += 4; } if XNN_UNLIKELY(n != 0) { const v128_t vx = wasm_v128_load(x); const v128_t vabsx = wasm_v128_andnot(vx, vsign_mask); const v128_t vrndmask = wasm_v128_or(vsign_mask, wasm_f32x4_le(vmagic_number, vabsx)); const v128_t vrndabsx = wasm_f32x4_sub(wasm_f32x4_add(vabsx, vmagic_number), vmagic_number); const v128_t vrndx = wasm_v128_bitselect(vx, vrndabsx, vrndmask); v128_t vy = wasm_f32x4_sub(vrndx, wasm_v128_and(wasm_f32x4_lt(vx, vrndx), vone)); if (n & (2 * sizeof(float))) { *((double*) y) = wasm_f64x2_extract_lane(vy, 0); vy = wasm_v32x4_shuffle(vy, vy, 2, 3, 2, 3); y += 2; } if (n & (1 * sizeof(float))) { *y = wasm_f32x4_extract_lane(vy, 0); } } }
862993.c
/* * CRIS emulation for qemu: main translation routines. * * Copyright (c) 2008 AXIS Communications AB * Written by Edgar E. Iglesias. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ /* * FIXME: * The condition code translation is in need of attention. */ #include "qemu/osdep.h" #include "cpu.h" #include "disas/disas.h" #include "exec/exec-all.h" #include "tcg-op.h" #include "exec/helper-proto.h" #include "mmu.h" #include "exec/cpu_ldst.h" #include "crisv32-decode.h" #include "exec/helper-gen.h" #include "trace-tcg.h" #include "exec/log.h" #define DISAS_CRIS 0 #if DISAS_CRIS # define LOG_DIS(...) qemu_log_mask(CPU_LOG_TB_IN_ASM, ## __VA_ARGS__) #else # define LOG_DIS(...) do { } while (0) #endif #define D(x) #define BUG() (gen_BUG(dc, __FILE__, __LINE__)) #define BUG_ON(x) ({if (x) BUG();}) #define DISAS_SWI 5 /* Used by the decoder. */ #define EXTRACT_FIELD(src, start, end) \ (((src) >> start) & ((1 << (end - start + 1)) - 1)) #define CC_MASK_NZ 0xc #define CC_MASK_NZV 0xe #define CC_MASK_NZVC 0xf #define CC_MASK_RNZV 0x10e static TCGv_env cpu_env; static TCGv cpu_R[16]; static TCGv cpu_PR[16]; static TCGv cc_x; static TCGv cc_src; static TCGv cc_dest; static TCGv cc_result; static TCGv cc_op; static TCGv cc_size; static TCGv cc_mask; static TCGv env_btaken; static TCGv env_btarget; static TCGv env_pc; #include "exec/gen-icount.h" /* This is the state at translation time. */ typedef struct DisasContext { CRISCPU *cpu; target_ulong pc, ppc; /* Decoder. */ unsigned int (*decoder)(CPUCRISState *env, struct DisasContext *dc); uint32_t ir; uint32_t opcode; unsigned int op1; unsigned int op2; unsigned int zsize, zzsize; unsigned int mode; unsigned int postinc; unsigned int size; unsigned int src; unsigned int dst; unsigned int cond; int update_cc; int cc_op; int cc_size; uint32_t cc_mask; int cc_size_uptodate; /* -1 invalid or last written value. */ int cc_x_uptodate; /* 1 - ccs, 2 - known | X_FLAG. 0 not up-to-date. */ int flags_uptodate; /* Whether or not $ccs is up-to-date. */ int flagx_known; /* Whether or not flags_x has the x flag known at translation time. */ int flags_x; int clear_x; /* Clear x after this insn? */ int clear_prefix; /* Clear prefix after this insn? */ int clear_locked_irq; /* Clear the irq lockout. */ int cpustate_changed; unsigned int tb_flags; /* tb dependent flags. */ int is_jmp; #define JMP_NOJMP 0 #define JMP_DIRECT 1 #define JMP_DIRECT_CC 2 #define JMP_INDIRECT 3 int jmp; /* 0=nojmp, 1=direct, 2=indirect. */ uint32_t jmp_pc; int delayed_branch; struct TranslationBlock *tb; int singlestep_enabled; } DisasContext; static void gen_BUG(DisasContext *dc, const char *file, int line) { fprintf(stderr, "BUG: pc=%x %s %d\n", dc->pc, file, line); if (qemu_log_separate()) { qemu_log("BUG: pc=%x %s %d\n", dc->pc, file, line); } cpu_abort(CPU(dc->cpu), "%s:%d\n", file, line); } static const char *regnames_v32[] = { "$r0", "$r1", "$r2", "$r3", "$r4", "$r5", "$r6", "$r7", "$r8", "$r9", "$r10", "$r11", "$r12", "$r13", "$sp", "$acr", }; static const char *pregnames_v32[] = { "$bz", "$vr", "$pid", "$srs", "$wz", "$exs", "$eda", "$mof", "$dz", "$ebp", "$erp", "$srp", "$nrp", "$ccs", "$usp", "$spc", }; /* We need this table to handle preg-moves with implicit width. */ static int preg_sizes[] = { 1, /* bz. */ 1, /* vr. */ 4, /* pid. */ 1, /* srs. */ 2, /* wz. */ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, }; #define t_gen_mov_TN_env(tn, member) \ tcg_gen_ld_tl(tn, cpu_env, offsetof(CPUCRISState, member)) #define t_gen_mov_env_TN(member, tn) \ tcg_gen_st_tl(tn, cpu_env, offsetof(CPUCRISState, member)) static inline void t_gen_mov_TN_preg(TCGv tn, int r) { assert(r >= 0 && r <= 15); if (r == PR_BZ || r == PR_WZ || r == PR_DZ) { tcg_gen_mov_tl(tn, tcg_const_tl(0)); } else if (r == PR_VR) { tcg_gen_mov_tl(tn, tcg_const_tl(32)); } else { tcg_gen_mov_tl(tn, cpu_PR[r]); } } static inline void t_gen_mov_preg_TN(DisasContext *dc, int r, TCGv tn) { assert(r >= 0 && r <= 15); if (r == PR_BZ || r == PR_WZ || r == PR_DZ) { return; } else if (r == PR_SRS) { tcg_gen_andi_tl(cpu_PR[r], tn, 3); } else { if (r == PR_PID) { gen_helper_tlb_flush_pid(cpu_env, tn); } if (dc->tb_flags & S_FLAG && r == PR_SPC) { gen_helper_spc_write(cpu_env, tn); } else if (r == PR_CCS) { dc->cpustate_changed = 1; } tcg_gen_mov_tl(cpu_PR[r], tn); } } /* Sign extend at translation time. */ static int sign_extend(unsigned int val, unsigned int width) { int sval; /* LSL. */ val <<= 31 - width; sval = val; /* ASR. */ sval >>= 31 - width; return sval; } static int cris_fetch(CPUCRISState *env, DisasContext *dc, uint32_t addr, unsigned int size, unsigned int sign) { int r; switch (size) { case 4: { r = cpu_ldl_code(env, addr); break; } case 2: { if (sign) { r = cpu_ldsw_code(env, addr); } else { r = cpu_lduw_code(env, addr); } break; } case 1: { if (sign) { r = cpu_ldsb_code(env, addr); } else { r = cpu_ldub_code(env, addr); } break; } default: cpu_abort(CPU(dc->cpu), "Invalid fetch size %d\n", size); break; } return r; } static void cris_lock_irq(DisasContext *dc) { dc->clear_locked_irq = 0; t_gen_mov_env_TN(locked_irq, tcg_const_tl(1)); } static inline void t_gen_raise_exception(uint32_t index) { TCGv_i32 tmp = tcg_const_i32(index); gen_helper_raise_exception(cpu_env, tmp); tcg_temp_free_i32(tmp); } static void t_gen_lsl(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(); t_31 = tcg_const_tl(31); tcg_gen_shl_tl(d, a, b); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); tcg_gen_xor_tl(d, d, t0); tcg_temp_free(t0); tcg_temp_free(t_31); } static void t_gen_lsr(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(); t_31 = tcg_temp_new(); tcg_gen_shr_tl(d, a, b); tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); tcg_gen_xor_tl(d, d, t0); tcg_temp_free(t0); tcg_temp_free(t_31); } static void t_gen_asr(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(); t_31 = tcg_temp_new(); tcg_gen_sar_tl(d, a, b); tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_or_tl(d, d, t0); tcg_temp_free(t0); tcg_temp_free(t_31); } static void t_gen_cris_dstep(TCGv d, TCGv a, TCGv b) { TCGv t = tcg_temp_new(); /* * d <<= 1 * if (d >= s) * d -= s; */ tcg_gen_shli_tl(d, a, 1); tcg_gen_sub_tl(t, d, b); tcg_gen_movcond_tl(TCG_COND_GEU, d, d, b, t, d); tcg_temp_free(t); } static void t_gen_cris_mstep(TCGv d, TCGv a, TCGv b, TCGv ccs) { TCGv t; /* * d <<= 1 * if (n) * d += s; */ t = tcg_temp_new(); tcg_gen_shli_tl(d, a, 1); tcg_gen_shli_tl(t, ccs, 31 - 3); tcg_gen_sari_tl(t, t, 31); tcg_gen_and_tl(t, t, b); tcg_gen_add_tl(d, d, t); tcg_temp_free(t); } /* Extended arithmetics on CRIS. */ static inline void t_gen_add_flag(TCGv d, int flag) { TCGv c; c = tcg_temp_new(); t_gen_mov_TN_preg(c, PR_CCS); /* Propagate carry into d. */ tcg_gen_andi_tl(c, c, 1 << flag); if (flag) { tcg_gen_shri_tl(c, c, flag); } tcg_gen_add_tl(d, d, c); tcg_temp_free(c); } static inline void t_gen_addx_carry(DisasContext *dc, TCGv d) { if (dc->flagx_known) { if (dc->flags_x) { TCGv c; c = tcg_temp_new(); t_gen_mov_TN_preg(c, PR_CCS); /* C flag is already at bit 0. */ tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_add_tl(d, d, c); tcg_temp_free(c); } } else { TCGv x, c; x = tcg_temp_new(); c = tcg_temp_new(); t_gen_mov_TN_preg(x, PR_CCS); tcg_gen_mov_tl(c, x); /* Propagate carry into d if X is set. Branch free. */ tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_andi_tl(x, x, X_FLAG); tcg_gen_shri_tl(x, x, 4); tcg_gen_and_tl(x, x, c); tcg_gen_add_tl(d, d, x); tcg_temp_free(x); tcg_temp_free(c); } } static inline void t_gen_subx_carry(DisasContext *dc, TCGv d) { if (dc->flagx_known) { if (dc->flags_x) { TCGv c; c = tcg_temp_new(); t_gen_mov_TN_preg(c, PR_CCS); /* C flag is already at bit 0. */ tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_sub_tl(d, d, c); tcg_temp_free(c); } } else { TCGv x, c; x = tcg_temp_new(); c = tcg_temp_new(); t_gen_mov_TN_preg(x, PR_CCS); tcg_gen_mov_tl(c, x); /* Propagate carry into d if X is set. Branch free. */ tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_andi_tl(x, x, X_FLAG); tcg_gen_shri_tl(x, x, 4); tcg_gen_and_tl(x, x, c); tcg_gen_sub_tl(d, d, x); tcg_temp_free(x); tcg_temp_free(c); } } /* Swap the two bytes within each half word of the s operand. T0 = ((T0 << 8) & 0xff00ff00) | ((T0 >> 8) & 0x00ff00ff) */ static inline void t_gen_swapb(TCGv d, TCGv s) { TCGv t, org_s; t = tcg_temp_new(); org_s = tcg_temp_new(); /* d and s may refer to the same object. */ tcg_gen_mov_tl(org_s, s); tcg_gen_shli_tl(t, org_s, 8); tcg_gen_andi_tl(d, t, 0xff00ff00); tcg_gen_shri_tl(t, org_s, 8); tcg_gen_andi_tl(t, t, 0x00ff00ff); tcg_gen_or_tl(d, d, t); tcg_temp_free(t); tcg_temp_free(org_s); } /* Swap the halfwords of the s operand. */ static inline void t_gen_swapw(TCGv d, TCGv s) { TCGv t; /* d and s refer the same object. */ t = tcg_temp_new(); tcg_gen_mov_tl(t, s); tcg_gen_shli_tl(d, t, 16); tcg_gen_shri_tl(t, t, 16); tcg_gen_or_tl(d, d, t); tcg_temp_free(t); } /* Reverse the within each byte. T0 = (((T0 << 7) & 0x80808080) | ((T0 << 5) & 0x40404040) | ((T0 << 3) & 0x20202020) | ((T0 << 1) & 0x10101010) | ((T0 >> 1) & 0x08080808) | ((T0 >> 3) & 0x04040404) | ((T0 >> 5) & 0x02020202) | ((T0 >> 7) & 0x01010101)); */ static inline void t_gen_swapr(TCGv d, TCGv s) { struct { int shift; /* LSL when positive, LSR when negative. */ uint32_t mask; } bitrev[] = { {7, 0x80808080}, {5, 0x40404040}, {3, 0x20202020}, {1, 0x10101010}, {-1, 0x08080808}, {-3, 0x04040404}, {-5, 0x02020202}, {-7, 0x01010101} }; int i; TCGv t, org_s; /* d and s refer the same object. */ t = tcg_temp_new(); org_s = tcg_temp_new(); tcg_gen_mov_tl(org_s, s); tcg_gen_shli_tl(t, org_s, bitrev[0].shift); tcg_gen_andi_tl(d, t, bitrev[0].mask); for (i = 1; i < ARRAY_SIZE(bitrev); i++) { if (bitrev[i].shift >= 0) { tcg_gen_shli_tl(t, org_s, bitrev[i].shift); } else { tcg_gen_shri_tl(t, org_s, -bitrev[i].shift); } tcg_gen_andi_tl(t, t, bitrev[i].mask); tcg_gen_or_tl(d, d, t); } tcg_temp_free(t); tcg_temp_free(org_s); } static void t_gen_cc_jmp(TCGv pc_true, TCGv pc_false) { TCGLabel *l1 = gen_new_label(); /* Conditional jmp. */ tcg_gen_mov_tl(env_pc, pc_false); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1); tcg_gen_mov_tl(env_pc, pc_true); gen_set_label(l1); } static inline bool use_goto_tb(DisasContext *dc, target_ulong dest) { #ifndef CONFIG_USER_ONLY return (dc->tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK) || (dc->ppc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK); #else return true; #endif } static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) { if (use_goto_tb(dc, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_tl(env_pc, dest); tcg_gen_exit_tb((uintptr_t)dc->tb + n); } else { tcg_gen_movi_tl(env_pc, dest); tcg_gen_exit_tb(0); } } static inline void cris_clear_x_flag(DisasContext *dc) { if (dc->flagx_known && dc->flags_x) { dc->flags_uptodate = 0; } dc->flagx_known = 1; dc->flags_x = 0; } static void cris_flush_cc_state(DisasContext *dc) { if (dc->cc_size_uptodate != dc->cc_size) { tcg_gen_movi_tl(cc_size, dc->cc_size); dc->cc_size_uptodate = dc->cc_size; } tcg_gen_movi_tl(cc_op, dc->cc_op); tcg_gen_movi_tl(cc_mask, dc->cc_mask); } static void cris_evaluate_flags(DisasContext *dc) { if (dc->flags_uptodate) { return; } cris_flush_cc_state(dc); switch (dc->cc_op) { case CC_OP_MCP: gen_helper_evaluate_flags_mcp(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_src, cc_dest, cc_result); break; case CC_OP_MULS: gen_helper_evaluate_flags_muls(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_result, cpu_PR[PR_MOF]); break; case CC_OP_MULU: gen_helper_evaluate_flags_mulu(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_result, cpu_PR[PR_MOF]); break; case CC_OP_MOVE: case CC_OP_AND: case CC_OP_OR: case CC_OP_XOR: case CC_OP_ASR: case CC_OP_LSR: case CC_OP_LSL: switch (dc->cc_size) { case 4: gen_helper_evaluate_flags_move_4(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_result); break; case 2: gen_helper_evaluate_flags_move_2(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_result); break; default: gen_helper_evaluate_flags(cpu_env); break; } break; case CC_OP_FLAGS: /* live. */ break; case CC_OP_SUB: case CC_OP_CMP: if (dc->cc_size == 4) { gen_helper_evaluate_flags_sub_4(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_src, cc_dest, cc_result); } else { gen_helper_evaluate_flags(cpu_env); } break; default: switch (dc->cc_size) { case 4: gen_helper_evaluate_flags_alu_4(cpu_PR[PR_CCS], cpu_env, cpu_PR[PR_CCS], cc_src, cc_dest, cc_result); break; default: gen_helper_evaluate_flags(cpu_env); break; } break; } if (dc->flagx_known) { if (dc->flags_x) { tcg_gen_ori_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], X_FLAG); } else if (dc->cc_op == CC_OP_FLAGS) { tcg_gen_andi_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], ~X_FLAG); } } dc->flags_uptodate = 1; } static void cris_cc_mask(DisasContext *dc, unsigned int mask) { uint32_t ovl; if (!mask) { dc->update_cc = 0; return; } /* Check if we need to evaluate the condition codes due to CC overlaying. */ ovl = (dc->cc_mask ^ mask) & ~mask; if (ovl) { /* TODO: optimize this case. It trigs all the time. */ cris_evaluate_flags(dc); } dc->cc_mask = mask; dc->update_cc = 1; } static void cris_update_cc_op(DisasContext *dc, int op, int size) { dc->cc_op = op; dc->cc_size = size; dc->flags_uptodate = 0; } static inline void cris_update_cc_x(DisasContext *dc) { /* Save the x flag state at the time of the cc snapshot. */ if (dc->flagx_known) { if (dc->cc_x_uptodate == (2 | dc->flags_x)) { return; } tcg_gen_movi_tl(cc_x, dc->flags_x); dc->cc_x_uptodate = 2 | dc->flags_x; } else { tcg_gen_andi_tl(cc_x, cpu_PR[PR_CCS], X_FLAG); dc->cc_x_uptodate = 1; } } /* Update cc prior to executing ALU op. Needs source operands untouched. */ static void cris_pre_alu_update_cc(DisasContext *dc, int op, TCGv dst, TCGv src, int size) { if (dc->update_cc) { cris_update_cc_op(dc, op, size); tcg_gen_mov_tl(cc_src, src); if (op != CC_OP_MOVE && op != CC_OP_AND && op != CC_OP_OR && op != CC_OP_XOR && op != CC_OP_ASR && op != CC_OP_LSR && op != CC_OP_LSL) { tcg_gen_mov_tl(cc_dest, dst); } cris_update_cc_x(dc); } } /* Update cc after executing ALU op. needs the result. */ static inline void cris_update_result(DisasContext *dc, TCGv res) { if (dc->update_cc) { tcg_gen_mov_tl(cc_result, res); } } /* Returns one if the write back stage should execute. */ static void cris_alu_op_exec(DisasContext *dc, int op, TCGv dst, TCGv a, TCGv b, int size) { /* Emit the ALU insns. */ switch (op) { case CC_OP_ADD: tcg_gen_add_tl(dst, a, b); /* Extended arithmetics. */ t_gen_addx_carry(dc, dst); break; case CC_OP_ADDC: tcg_gen_add_tl(dst, a, b); t_gen_add_flag(dst, 0); /* C_FLAG. */ break; case CC_OP_MCP: tcg_gen_add_tl(dst, a, b); t_gen_add_flag(dst, 8); /* R_FLAG. */ break; case CC_OP_SUB: tcg_gen_sub_tl(dst, a, b); /* Extended arithmetics. */ t_gen_subx_carry(dc, dst); break; case CC_OP_MOVE: tcg_gen_mov_tl(dst, b); break; case CC_OP_OR: tcg_gen_or_tl(dst, a, b); break; case CC_OP_AND: tcg_gen_and_tl(dst, a, b); break; case CC_OP_XOR: tcg_gen_xor_tl(dst, a, b); break; case CC_OP_LSL: t_gen_lsl(dst, a, b); break; case CC_OP_LSR: t_gen_lsr(dst, a, b); break; case CC_OP_ASR: t_gen_asr(dst, a, b); break; case CC_OP_NEG: tcg_gen_neg_tl(dst, b); /* Extended arithmetics. */ t_gen_subx_carry(dc, dst); break; case CC_OP_LZ: tcg_gen_clzi_tl(dst, b, TARGET_LONG_BITS); break; case CC_OP_MULS: tcg_gen_muls2_tl(dst, cpu_PR[PR_MOF], a, b); break; case CC_OP_MULU: tcg_gen_mulu2_tl(dst, cpu_PR[PR_MOF], a, b); break; case CC_OP_DSTEP: t_gen_cris_dstep(dst, a, b); break; case CC_OP_MSTEP: t_gen_cris_mstep(dst, a, b, cpu_PR[PR_CCS]); break; case CC_OP_BOUND: tcg_gen_movcond_tl(TCG_COND_LEU, dst, a, b, a, b); break; case CC_OP_CMP: tcg_gen_sub_tl(dst, a, b); /* Extended arithmetics. */ t_gen_subx_carry(dc, dst); break; default: qemu_log_mask(LOG_GUEST_ERROR, "illegal ALU op.\n"); BUG(); break; } if (size == 1) { tcg_gen_andi_tl(dst, dst, 0xff); } else if (size == 2) { tcg_gen_andi_tl(dst, dst, 0xffff); } } static void cris_alu(DisasContext *dc, int op, TCGv d, TCGv op_a, TCGv op_b, int size) { TCGv tmp; int writeback; writeback = 1; if (op == CC_OP_CMP) { tmp = tcg_temp_new(); writeback = 0; } else if (size == 4) { tmp = d; writeback = 0; } else { tmp = tcg_temp_new(); } cris_pre_alu_update_cc(dc, op, op_a, op_b, size); cris_alu_op_exec(dc, op, tmp, op_a, op_b, size); cris_update_result(dc, tmp); /* Writeback. */ if (writeback) { if (size == 1) { tcg_gen_andi_tl(d, d, ~0xff); } else { tcg_gen_andi_tl(d, d, ~0xffff); } tcg_gen_or_tl(d, d, tmp); } if (!TCGV_EQUAL(tmp, d)) { tcg_temp_free(tmp); } } static int arith_cc(DisasContext *dc) { if (dc->update_cc) { switch (dc->cc_op) { case CC_OP_ADDC: return 1; case CC_OP_ADD: return 1; case CC_OP_SUB: return 1; case CC_OP_DSTEP: return 1; case CC_OP_LSL: return 1; case CC_OP_LSR: return 1; case CC_OP_ASR: return 1; case CC_OP_CMP: return 1; case CC_OP_NEG: return 1; case CC_OP_OR: return 1; case CC_OP_AND: return 1; case CC_OP_XOR: return 1; case CC_OP_MULU: return 1; case CC_OP_MULS: return 1; default: return 0; } } return 0; } static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond) { int arith_opt, move_opt; /* TODO: optimize more condition codes. */ /* * If the flags are live, we've gotta look into the bits of CCS. * Otherwise, if we just did an arithmetic operation we try to * evaluate the condition code faster. * * When this function is done, T0 should be non-zero if the condition * code is true. */ arith_opt = arith_cc(dc) && !dc->flags_uptodate; move_opt = (dc->cc_op == CC_OP_MOVE); switch (cond) { case CC_EQ: if ((arith_opt || move_opt) && dc->cc_x_uptodate != (2 | X_FLAG)) { tcg_gen_setcond_tl(TCG_COND_EQ, cc, cc_result, tcg_const_tl(0)); } else { cris_evaluate_flags(dc); tcg_gen_andi_tl(cc, cpu_PR[PR_CCS], Z_FLAG); } break; case CC_NE: if ((arith_opt || move_opt) && dc->cc_x_uptodate != (2 | X_FLAG)) { tcg_gen_mov_tl(cc, cc_result); } else { cris_evaluate_flags(dc); tcg_gen_xori_tl(cc, cpu_PR[PR_CCS], Z_FLAG); tcg_gen_andi_tl(cc, cc, Z_FLAG); } break; case CC_CS: cris_evaluate_flags(dc); tcg_gen_andi_tl(cc, cpu_PR[PR_CCS], C_FLAG); break; case CC_CC: cris_evaluate_flags(dc); tcg_gen_xori_tl(cc, cpu_PR[PR_CCS], C_FLAG); tcg_gen_andi_tl(cc, cc, C_FLAG); break; case CC_VS: cris_evaluate_flags(dc); tcg_gen_andi_tl(cc, cpu_PR[PR_CCS], V_FLAG); break; case CC_VC: cris_evaluate_flags(dc); tcg_gen_xori_tl(cc, cpu_PR[PR_CCS], V_FLAG); tcg_gen_andi_tl(cc, cc, V_FLAG); break; case CC_PL: if (arith_opt || move_opt) { int bits = 31; if (dc->cc_size == 1) { bits = 7; } else if (dc->cc_size == 2) { bits = 15; } tcg_gen_shri_tl(cc, cc_result, bits); tcg_gen_xori_tl(cc, cc, 1); } else { cris_evaluate_flags(dc); tcg_gen_xori_tl(cc, cpu_PR[PR_CCS], N_FLAG); tcg_gen_andi_tl(cc, cc, N_FLAG); } break; case CC_MI: if (arith_opt || move_opt) { int bits = 31; if (dc->cc_size == 1) { bits = 7; } else if (dc->cc_size == 2) { bits = 15; } tcg_gen_shri_tl(cc, cc_result, bits); tcg_gen_andi_tl(cc, cc, 1); } else { cris_evaluate_flags(dc); tcg_gen_andi_tl(cc, cpu_PR[PR_CCS], N_FLAG); } break; case CC_LS: cris_evaluate_flags(dc); tcg_gen_andi_tl(cc, cpu_PR[PR_CCS], C_FLAG | Z_FLAG); break; case CC_HI: cris_evaluate_flags(dc); { TCGv tmp; tmp = tcg_temp_new(); tcg_gen_xori_tl(tmp, cpu_PR[PR_CCS], C_FLAG | Z_FLAG); /* Overlay the C flag on top of the Z. */ tcg_gen_shli_tl(cc, tmp, 2); tcg_gen_and_tl(cc, tmp, cc); tcg_gen_andi_tl(cc, cc, Z_FLAG); tcg_temp_free(tmp); } break; case CC_GE: cris_evaluate_flags(dc); /* Overlay the V flag on top of the N. */ tcg_gen_shli_tl(cc, cpu_PR[PR_CCS], 2); tcg_gen_xor_tl(cc, cpu_PR[PR_CCS], cc); tcg_gen_andi_tl(cc, cc, N_FLAG); tcg_gen_xori_tl(cc, cc, N_FLAG); break; case CC_LT: cris_evaluate_flags(dc); /* Overlay the V flag on top of the N. */ tcg_gen_shli_tl(cc, cpu_PR[PR_CCS], 2); tcg_gen_xor_tl(cc, cpu_PR[PR_CCS], cc); tcg_gen_andi_tl(cc, cc, N_FLAG); break; case CC_GT: cris_evaluate_flags(dc); { TCGv n, z; n = tcg_temp_new(); z = tcg_temp_new(); /* To avoid a shift we overlay everything on the V flag. */ tcg_gen_shri_tl(n, cpu_PR[PR_CCS], 2); tcg_gen_shri_tl(z, cpu_PR[PR_CCS], 1); /* invert Z. */ tcg_gen_xori_tl(z, z, 2); tcg_gen_xor_tl(n, n, cpu_PR[PR_CCS]); tcg_gen_xori_tl(n, n, 2); tcg_gen_and_tl(cc, z, n); tcg_gen_andi_tl(cc, cc, 2); tcg_temp_free(n); tcg_temp_free(z); } break; case CC_LE: cris_evaluate_flags(dc); { TCGv n, z; n = tcg_temp_new(); z = tcg_temp_new(); /* To avoid a shift we overlay everything on the V flag. */ tcg_gen_shri_tl(n, cpu_PR[PR_CCS], 2); tcg_gen_shri_tl(z, cpu_PR[PR_CCS], 1); tcg_gen_xor_tl(n, n, cpu_PR[PR_CCS]); tcg_gen_or_tl(cc, z, n); tcg_gen_andi_tl(cc, cc, 2); tcg_temp_free(n); tcg_temp_free(z); } break; case CC_P: cris_evaluate_flags(dc); tcg_gen_andi_tl(cc, cpu_PR[PR_CCS], P_FLAG); break; case CC_A: tcg_gen_movi_tl(cc, 1); break; default: BUG(); break; }; } static void cris_store_direct_jmp(DisasContext *dc) { /* Store the direct jmp state into the cpu-state. */ if (dc->jmp == JMP_DIRECT || dc->jmp == JMP_DIRECT_CC) { if (dc->jmp == JMP_DIRECT) { tcg_gen_movi_tl(env_btaken, 1); } tcg_gen_movi_tl(env_btarget, dc->jmp_pc); dc->jmp = JMP_INDIRECT; } } static void cris_prepare_cc_branch (DisasContext *dc, int offset, int cond) { /* This helps us re-schedule the micro-code to insns in delay-slots before the actual jump. */ dc->delayed_branch = 2; dc->jmp = JMP_DIRECT_CC; dc->jmp_pc = dc->pc + offset; gen_tst_cc(dc, env_btaken, cond); tcg_gen_movi_tl(env_btarget, dc->jmp_pc); } /* jumps, when the dest is in a live reg for example. Direct should be set when the dest addr is constant to allow tb chaining. */ static inline void cris_prepare_jmp (DisasContext *dc, unsigned int type) { /* This helps us re-schedule the micro-code to insns in delay-slots before the actual jump. */ dc->delayed_branch = 2; dc->jmp = type; if (type == JMP_INDIRECT) { tcg_gen_movi_tl(env_btaken, 1); } } static void gen_load64(DisasContext *dc, TCGv_i64 dst, TCGv addr) { int mem_index = cpu_mmu_index(&dc->cpu->env, false); /* If we get a fault on a delayslot we must keep the jmp state in the cpu-state to be able to re-execute the jmp. */ if (dc->delayed_branch == 1) { cris_store_direct_jmp(dc); } tcg_gen_qemu_ld_i64(dst, addr, mem_index, MO_TEQ); } static void gen_load(DisasContext *dc, TCGv dst, TCGv addr, unsigned int size, int sign) { int mem_index = cpu_mmu_index(&dc->cpu->env, false); /* If we get a fault on a delayslot we must keep the jmp state in the cpu-state to be able to re-execute the jmp. */ if (dc->delayed_branch == 1) { cris_store_direct_jmp(dc); } tcg_gen_qemu_ld_tl(dst, addr, mem_index, MO_TE + ctz32(size) + (sign ? MO_SIGN : 0)); } static void gen_store (DisasContext *dc, TCGv addr, TCGv val, unsigned int size) { int mem_index = cpu_mmu_index(&dc->cpu->env, false); /* If we get a fault on a delayslot we must keep the jmp state in the cpu-state to be able to re-execute the jmp. */ if (dc->delayed_branch == 1) { cris_store_direct_jmp(dc); } /* Conditional writes. We only support the kind were X and P are known at translation time. */ if (dc->flagx_known && dc->flags_x && (dc->tb_flags & P_FLAG)) { dc->postinc = 0; cris_evaluate_flags(dc); tcg_gen_ori_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], C_FLAG); return; } tcg_gen_qemu_st_tl(val, addr, mem_index, MO_TE + ctz32(size)); if (dc->flagx_known && dc->flags_x) { cris_evaluate_flags(dc); tcg_gen_andi_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], ~C_FLAG); } } static inline void t_gen_sext(TCGv d, TCGv s, int size) { if (size == 1) { tcg_gen_ext8s_i32(d, s); } else if (size == 2) { tcg_gen_ext16s_i32(d, s); } else if (!TCGV_EQUAL(d, s)) { tcg_gen_mov_tl(d, s); } } static inline void t_gen_zext(TCGv d, TCGv s, int size) { if (size == 1) { tcg_gen_ext8u_i32(d, s); } else if (size == 2) { tcg_gen_ext16u_i32(d, s); } else if (!TCGV_EQUAL(d, s)) { tcg_gen_mov_tl(d, s); } } #if DISAS_CRIS static char memsize_char(int size) { switch (size) { case 1: return 'b'; break; case 2: return 'w'; break; case 4: return 'd'; break; default: return 'x'; break; } } #endif static inline unsigned int memsize_z(DisasContext *dc) { return dc->zsize + 1; } static inline unsigned int memsize_zz(DisasContext *dc) { switch (dc->zzsize) { case 0: return 1; case 1: return 2; default: return 4; } } static inline void do_postinc (DisasContext *dc, int size) { if (dc->postinc) { tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], size); } } static inline void dec_prep_move_r(DisasContext *dc, int rs, int rd, int size, int s_ext, TCGv dst) { if (s_ext) { t_gen_sext(dst, cpu_R[rs], size); } else { t_gen_zext(dst, cpu_R[rs], size); } } /* Prepare T0 and T1 for a register alu operation. s_ext decides if the operand1 should be sign-extended or zero-extended when needed. */ static void dec_prep_alu_r(DisasContext *dc, int rs, int rd, int size, int s_ext, TCGv dst, TCGv src) { dec_prep_move_r(dc, rs, rd, size, s_ext, src); if (s_ext) { t_gen_sext(dst, cpu_R[rd], size); } else { t_gen_zext(dst, cpu_R[rd], size); } } static int dec_prep_move_m(CPUCRISState *env, DisasContext *dc, int s_ext, int memsize, TCGv dst) { unsigned int rs; uint32_t imm; int is_imm; int insn_len = 2; rs = dc->op1; is_imm = rs == 15 && dc->postinc; /* Load [$rs] onto T1. */ if (is_imm) { insn_len = 2 + memsize; if (memsize == 1) { insn_len++; } imm = cris_fetch(env, dc, dc->pc + 2, memsize, s_ext); tcg_gen_movi_tl(dst, imm); dc->postinc = 0; } else { cris_flush_cc_state(dc); gen_load(dc, dst, cpu_R[rs], memsize, 0); if (s_ext) { t_gen_sext(dst, dst, memsize); } else { t_gen_zext(dst, dst, memsize); } } return insn_len; } /* Prepare T0 and T1 for a memory + alu operation. s_ext decides if the operand1 should be sign-extended or zero-extended when needed. */ static int dec_prep_alu_m(CPUCRISState *env, DisasContext *dc, int s_ext, int memsize, TCGv dst, TCGv src) { int insn_len; insn_len = dec_prep_move_m(env, dc, s_ext, memsize, src); tcg_gen_mov_tl(dst, cpu_R[dc->op2]); return insn_len; } #if DISAS_CRIS static const char *cc_name(int cc) { static const char *cc_names[16] = { "cc", "cs", "ne", "eq", "vc", "vs", "pl", "mi", "ls", "hi", "ge", "lt", "gt", "le", "a", "p" }; assert(cc < 16); return cc_names[cc]; } #endif /* Start of insn decoders. */ static int dec_bccq(CPUCRISState *env, DisasContext *dc) { int32_t offset; int sign; uint32_t cond = dc->op2; offset = EXTRACT_FIELD(dc->ir, 1, 7); sign = EXTRACT_FIELD(dc->ir, 0, 0); offset *= 2; offset |= sign << 8; offset = sign_extend(offset, 8); LOG_DIS("b%s %x\n", cc_name(cond), dc->pc + offset); /* op2 holds the condition-code. */ cris_cc_mask(dc, 0); cris_prepare_cc_branch(dc, offset, cond); return 2; } static int dec_addoq(CPUCRISState *env, DisasContext *dc) { int32_t imm; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 7); imm = sign_extend(dc->op1, 7); LOG_DIS("addoq %d, $r%u\n", imm, dc->op2); cris_cc_mask(dc, 0); /* Fetch register operand, */ tcg_gen_addi_tl(cpu_R[R_ACR], cpu_R[dc->op2], imm); return 2; } static int dec_addq(CPUCRISState *env, DisasContext *dc) { LOG_DIS("addq %u, $r%u\n", dc->op1, dc->op2); dc->op1 = EXTRACT_FIELD(dc->ir, 0, 5); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], cpu_R[dc->op2], tcg_const_tl(dc->op1), 4); return 2; } static int dec_moveq(CPUCRISState *env, DisasContext *dc) { uint32_t imm; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 5); imm = sign_extend(dc->op1, 5); LOG_DIS("moveq %d, $r%u\n", imm, dc->op2); tcg_gen_movi_tl(cpu_R[dc->op2], imm); return 2; } static int dec_subq(CPUCRISState *env, DisasContext *dc) { dc->op1 = EXTRACT_FIELD(dc->ir, 0, 5); LOG_DIS("subq %u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], cpu_R[dc->op2], tcg_const_tl(dc->op1), 4); return 2; } static int dec_cmpq(CPUCRISState *env, DisasContext *dc) { uint32_t imm; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 5); imm = sign_extend(dc->op1, 5); LOG_DIS("cmpq %d, $r%d\n", imm, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], cpu_R[dc->op2], tcg_const_tl(imm), 4); return 2; } static int dec_andq(CPUCRISState *env, DisasContext *dc) { uint32_t imm; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 5); imm = sign_extend(dc->op1, 5); LOG_DIS("andq %d, $r%d\n", imm, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_AND, cpu_R[dc->op2], cpu_R[dc->op2], tcg_const_tl(imm), 4); return 2; } static int dec_orq(CPUCRISState *env, DisasContext *dc) { uint32_t imm; dc->op1 = EXTRACT_FIELD(dc->ir, 0, 5); imm = sign_extend(dc->op1, 5); LOG_DIS("orq %d, $r%d\n", imm, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_OR, cpu_R[dc->op2], cpu_R[dc->op2], tcg_const_tl(imm), 4); return 2; } static int dec_btstq(CPUCRISState *env, DisasContext *dc) { dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4); LOG_DIS("btstq %u, $r%d\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_evaluate_flags(dc); gen_helper_btst(cpu_PR[PR_CCS], cpu_env, cpu_R[dc->op2], tcg_const_tl(dc->op1), cpu_PR[PR_CCS]); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); cris_update_cc_op(dc, CC_OP_FLAGS, 4); dc->flags_uptodate = 1; return 2; } static int dec_asrq(CPUCRISState *env, DisasContext *dc) { dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4); LOG_DIS("asrq %u, $r%d\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); tcg_gen_sari_tl(cpu_R[dc->op2], cpu_R[dc->op2], dc->op1); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); return 2; } static int dec_lslq(CPUCRISState *env, DisasContext *dc) { dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4); LOG_DIS("lslq %u, $r%d\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); tcg_gen_shli_tl(cpu_R[dc->op2], cpu_R[dc->op2], dc->op1); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); return 2; } static int dec_lsrq(CPUCRISState *env, DisasContext *dc) { dc->op1 = EXTRACT_FIELD(dc->ir, 0, 4); LOG_DIS("lsrq %u, $r%d\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); tcg_gen_shri_tl(cpu_R[dc->op2], cpu_R[dc->op2], dc->op1); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); return 2; } static int dec_move_r(CPUCRISState *env, DisasContext *dc) { int size = memsize_zz(dc); LOG_DIS("move.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); if (size == 4) { dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, cpu_R[dc->op2]); cris_cc_mask(dc, CC_MASK_NZ); cris_update_cc_op(dc, CC_OP_MOVE, 4); cris_update_cc_x(dc); cris_update_result(dc, cpu_R[dc->op2]); } else { TCGv t0; t0 = tcg_temp_new(); dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, t0); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], t0, size); tcg_temp_free(t0); } return 2; } static int dec_scc_r(CPUCRISState *env, DisasContext *dc) { int cond = dc->op2; LOG_DIS("s%s $r%u\n", cc_name(cond), dc->op1); gen_tst_cc(dc, cpu_R[dc->op1], cond); tcg_gen_setcondi_tl(TCG_COND_NE, cpu_R[dc->op1], cpu_R[dc->op1], 0); cris_cc_mask(dc, 0); return 2; } static inline void cris_alu_alloc_temps(DisasContext *dc, int size, TCGv *t) { if (size == 4) { t[0] = cpu_R[dc->op2]; t[1] = cpu_R[dc->op1]; } else { t[0] = tcg_temp_new(); t[1] = tcg_temp_new(); } } static inline void cris_alu_free_temps(DisasContext *dc, int size, TCGv *t) { if (size != 4) { tcg_temp_free(t[0]); tcg_temp_free(t[1]); } } static int dec_and_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("and.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_AND, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_lz_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; LOG_DIS("lz $r%u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(); dec_prep_alu_r(dc, dc->op1, dc->op2, 4, 0, cpu_R[dc->op2], t0); cris_alu(dc, CC_OP_LZ, cpu_R[dc->op2], cpu_R[dc->op2], t0, 4); tcg_temp_free(t0); return 2; } static int dec_lsl_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("lsl.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); tcg_gen_andi_tl(t[1], t[1], 63); cris_alu(dc, CC_OP_LSL, cpu_R[dc->op2], t[0], t[1], size); cris_alu_alloc_temps(dc, size, t); return 2; } static int dec_lsr_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("lsr.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); tcg_gen_andi_tl(t[1], t[1], 63); cris_alu(dc, CC_OP_LSR, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_asr_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("asr.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 1, t[0], t[1]); tcg_gen_andi_tl(t[1], t[1], 63); cris_alu(dc, CC_OP_ASR, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_muls_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("muls.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZV); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 1, t[0], t[1]); cris_alu(dc, CC_OP_MULS, cpu_R[dc->op2], t[0], t[1], 4); cris_alu_free_temps(dc, size, t); return 2; } static int dec_mulu_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("mulu.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZV); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_MULU, cpu_R[dc->op2], t[0], t[1], 4); cris_alu_alloc_temps(dc, size, t); return 2; } static int dec_dstep_r(CPUCRISState *env, DisasContext *dc) { LOG_DIS("dstep $r%u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_DSTEP, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op1], 4); return 2; } static int dec_xor_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("xor.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); BUG_ON(size != 4); /* xor is dword. */ cris_cc_mask(dc, CC_MASK_NZ); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_XOR, cpu_R[dc->op2], t[0], t[1], 4); cris_alu_free_temps(dc, size, t); return 2; } static int dec_bound_r(CPUCRISState *env, DisasContext *dc) { TCGv l0; int size = memsize_zz(dc); LOG_DIS("bound.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); l0 = tcg_temp_local_new(); dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, l0); cris_alu(dc, CC_OP_BOUND, cpu_R[dc->op2], cpu_R[dc->op2], l0, 4); tcg_temp_free(l0); return 2; } static int dec_cmp_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("cmp.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_abs_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; LOG_DIS("abs $r%u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(); tcg_gen_sari_tl(t0, cpu_R[dc->op1], 31); tcg_gen_xor_tl(cpu_R[dc->op2], cpu_R[dc->op1], t0); tcg_gen_sub_tl(cpu_R[dc->op2], cpu_R[dc->op2], t0); tcg_temp_free(t0); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); return 2; } static int dec_add_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("add.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_addc_r(CPUCRISState *env, DisasContext *dc) { LOG_DIS("addc $r%u, $r%u\n", dc->op1, dc->op2); cris_evaluate_flags(dc); /* Set for this insn. */ dc->flagx_known = 1; dc->flags_x = X_FLAG; cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_ADDC, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op1], 4); return 2; } static int dec_mcp_r(CPUCRISState *env, DisasContext *dc) { LOG_DIS("mcp $p%u, $r%u\n", dc->op2, dc->op1); cris_evaluate_flags(dc); cris_cc_mask(dc, CC_MASK_RNZV); cris_alu(dc, CC_OP_MCP, cpu_R[dc->op1], cpu_R[dc->op1], cpu_PR[dc->op2], 4); return 2; } #if DISAS_CRIS static char * swapmode_name(int mode, char *modename) { int i = 0; if (mode & 8) { modename[i++] = 'n'; } if (mode & 4) { modename[i++] = 'w'; } if (mode & 2) { modename[i++] = 'b'; } if (mode & 1) { modename[i++] = 'r'; } modename[i++] = 0; return modename; } #endif static int dec_swap_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; #if DISAS_CRIS char modename[4]; #endif LOG_DIS("swap%s $r%u\n", swapmode_name(dc->op2, modename), dc->op1); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(); tcg_gen_mov_tl(t0, cpu_R[dc->op1]); if (dc->op2 & 8) { tcg_gen_not_tl(t0, t0); } if (dc->op2 & 4) { t_gen_swapw(t0, t0); } if (dc->op2 & 2) { t_gen_swapb(t0, t0); } if (dc->op2 & 1) { t_gen_swapr(t0, t0); } cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op1], cpu_R[dc->op1], t0, 4); tcg_temp_free(t0); return 2; } static int dec_or_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("or.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_OR, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_addi_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; LOG_DIS("addi.%c $r%u, $r%u\n", memsize_char(memsize_zz(dc)), dc->op2, dc->op1); cris_cc_mask(dc, 0); t0 = tcg_temp_new(); tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize)); tcg_gen_add_tl(cpu_R[dc->op1], cpu_R[dc->op1], t0); tcg_temp_free(t0); return 2; } static int dec_addi_acr(CPUCRISState *env, DisasContext *dc) { TCGv t0; LOG_DIS("addi.%c $r%u, $r%u, $acr\n", memsize_char(memsize_zz(dc)), dc->op2, dc->op1); cris_cc_mask(dc, 0); t0 = tcg_temp_new(); tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize)); tcg_gen_add_tl(cpu_R[R_ACR], cpu_R[dc->op1], t0); tcg_temp_free(t0); return 2; } static int dec_neg_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("neg.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_NEG, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } static int dec_btst_r(CPUCRISState *env, DisasContext *dc) { LOG_DIS("btst $r%u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); cris_evaluate_flags(dc); gen_helper_btst(cpu_PR[PR_CCS], cpu_env, cpu_R[dc->op2], cpu_R[dc->op1], cpu_PR[PR_CCS]); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); cris_update_cc_op(dc, CC_OP_FLAGS, 4); dc->flags_uptodate = 1; return 2; } static int dec_sub_r(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int size = memsize_zz(dc); LOG_DIS("sub.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu_alloc_temps(dc, size, t); dec_prep_alu_r(dc, dc->op1, dc->op2, size, 0, t[0], t[1]); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], t[0], t[1], size); cris_alu_free_temps(dc, size, t); return 2; } /* Zero extension. From size to dword. */ static int dec_movu_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; int size = memsize_z(dc); LOG_DIS("movu.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(); dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, t0); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], t0, 4); tcg_temp_free(t0); return 2; } /* Sign extension. From size to dword. */ static int dec_movs_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; int size = memsize_z(dc); LOG_DIS("movs.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); t0 = tcg_temp_new(); /* Size can only be qi or hi. */ t_gen_sext(t0, cpu_R[dc->op1], size); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op1], t0, 4); tcg_temp_free(t0); return 2; } /* zero extension. From size to dword. */ static int dec_addu_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; int size = memsize_z(dc); LOG_DIS("addu.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(); /* Size can only be qi or hi. */ t_gen_zext(t0, cpu_R[dc->op1], size); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], cpu_R[dc->op2], t0, 4); tcg_temp_free(t0); return 2; } /* Sign extension. From size to dword. */ static int dec_adds_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; int size = memsize_z(dc); LOG_DIS("adds.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(); /* Size can only be qi or hi. */ t_gen_sext(t0, cpu_R[dc->op1], size); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], cpu_R[dc->op2], t0, 4); tcg_temp_free(t0); return 2; } /* Zero extension. From size to dword. */ static int dec_subu_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; int size = memsize_z(dc); LOG_DIS("subu.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(); /* Size can only be qi or hi. */ t_gen_zext(t0, cpu_R[dc->op1], size); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], cpu_R[dc->op2], t0, 4); tcg_temp_free(t0); return 2; } /* Sign extension. From size to dword. */ static int dec_subs_r(CPUCRISState *env, DisasContext *dc) { TCGv t0; int size = memsize_z(dc); LOG_DIS("subs.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(); /* Size can only be qi or hi. */ t_gen_sext(t0, cpu_R[dc->op1], size); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], cpu_R[dc->op2], t0, 4); tcg_temp_free(t0); return 2; } static int dec_setclrf(CPUCRISState *env, DisasContext *dc) { uint32_t flags; int set = (~dc->opcode >> 2) & 1; flags = (EXTRACT_FIELD(dc->ir, 12, 15) << 4) | EXTRACT_FIELD(dc->ir, 0, 3); if (set && flags == 0) { LOG_DIS("nop\n"); return 2; } else if (!set && (flags & 0x20)) { LOG_DIS("di\n"); } else { LOG_DIS("%sf %x\n", set ? "set" : "clr", flags); } /* User space is not allowed to touch these. Silently ignore. */ if (dc->tb_flags & U_FLAG) { flags &= ~(S_FLAG | I_FLAG | U_FLAG); } if (flags & X_FLAG) { dc->flagx_known = 1; if (set) { dc->flags_x = X_FLAG; } else { dc->flags_x = 0; } } /* Break the TB if any of the SPI flag changes. */ if (flags & (P_FLAG | S_FLAG)) { tcg_gen_movi_tl(env_pc, dc->pc + 2); dc->is_jmp = DISAS_UPDATE; dc->cpustate_changed = 1; } /* For the I flag, only act on posedge. */ if ((flags & I_FLAG)) { tcg_gen_movi_tl(env_pc, dc->pc + 2); dc->is_jmp = DISAS_UPDATE; dc->cpustate_changed = 1; } /* Simply decode the flags. */ cris_evaluate_flags(dc); cris_update_cc_op(dc, CC_OP_FLAGS, 4); cris_update_cc_x(dc); tcg_gen_movi_tl(cc_op, dc->cc_op); if (set) { if (!(dc->tb_flags & U_FLAG) && (flags & U_FLAG)) { /* Enter user mode. */ t_gen_mov_env_TN(ksp, cpu_R[R_SP]); tcg_gen_mov_tl(cpu_R[R_SP], cpu_PR[PR_USP]); dc->cpustate_changed = 1; } tcg_gen_ori_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], flags); } else { tcg_gen_andi_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], ~flags); } dc->flags_uptodate = 1; dc->clear_x = 0; return 2; } static int dec_move_rs(CPUCRISState *env, DisasContext *dc) { LOG_DIS("move $r%u, $s%u\n", dc->op1, dc->op2); cris_cc_mask(dc, 0); gen_helper_movl_sreg_reg(cpu_env, tcg_const_tl(dc->op2), tcg_const_tl(dc->op1)); return 2; } static int dec_move_sr(CPUCRISState *env, DisasContext *dc) { LOG_DIS("move $s%u, $r%u\n", dc->op2, dc->op1); cris_cc_mask(dc, 0); gen_helper_movl_reg_sreg(cpu_env, tcg_const_tl(dc->op1), tcg_const_tl(dc->op2)); return 2; } static int dec_move_rp(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; LOG_DIS("move $r%u, $p%u\n", dc->op1, dc->op2); cris_cc_mask(dc, 0); t[0] = tcg_temp_new(); if (dc->op2 == PR_CCS) { cris_evaluate_flags(dc); tcg_gen_mov_tl(t[0], cpu_R[dc->op1]); if (dc->tb_flags & U_FLAG) { t[1] = tcg_temp_new(); /* User space is not allowed to touch all flags. */ tcg_gen_andi_tl(t[0], t[0], 0x39f); tcg_gen_andi_tl(t[1], cpu_PR[PR_CCS], ~0x39f); tcg_gen_or_tl(t[0], t[1], t[0]); tcg_temp_free(t[1]); } } else { tcg_gen_mov_tl(t[0], cpu_R[dc->op1]); } t_gen_mov_preg_TN(dc, dc->op2, t[0]); if (dc->op2 == PR_CCS) { cris_update_cc_op(dc, CC_OP_FLAGS, 4); dc->flags_uptodate = 1; } tcg_temp_free(t[0]); return 2; } static int dec_move_pr(CPUCRISState *env, DisasContext *dc) { TCGv t0; LOG_DIS("move $p%u, $r%u\n", dc->op2, dc->op1); cris_cc_mask(dc, 0); if (dc->op2 == PR_CCS) { cris_evaluate_flags(dc); } if (dc->op2 == PR_DZ) { tcg_gen_movi_tl(cpu_R[dc->op1], 0); } else { t0 = tcg_temp_new(); t_gen_mov_TN_preg(t0, dc->op2); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op1], cpu_R[dc->op1], t0, preg_sizes[dc->op2]); tcg_temp_free(t0); } return 2; } static int dec_move_mr(CPUCRISState *env, DisasContext *dc) { int memsize = memsize_zz(dc); int insn_len; LOG_DIS("move.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); if (memsize == 4) { insn_len = dec_prep_move_m(env, dc, 0, 4, cpu_R[dc->op2]); cris_cc_mask(dc, CC_MASK_NZ); cris_update_cc_op(dc, CC_OP_MOVE, 4); cris_update_cc_x(dc); cris_update_result(dc, cpu_R[dc->op2]); } else { TCGv t0; t0 = tcg_temp_new(); insn_len = dec_prep_move_m(env, dc, 0, memsize, t0); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], t0, memsize); tcg_temp_free(t0); } do_postinc(dc, memsize); return insn_len; } static inline void cris_alu_m_alloc_temps(TCGv *t) { t[0] = tcg_temp_new(); t[1] = tcg_temp_new(); } static inline void cris_alu_m_free_temps(TCGv *t) { tcg_temp_free(t[0]); tcg_temp_free(t[1]); } static int dec_movs_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("movs.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); /* sign extend. */ insn_len = dec_prep_alu_m(env, dc, 1, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_addu_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("addu.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); /* sign extend. */ insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_adds_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("adds.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); /* sign extend. */ insn_len = dec_prep_alu_m(env, dc, 1, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_subu_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("subu.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); /* sign extend. */ insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_subs_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("subs.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); /* sign extend. */ insn_len = dec_prep_alu_m(env, dc, 1, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_movu_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("movu.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_cmpu_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("cmpu.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], cpu_R[dc->op2], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_cmps_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_z(dc); int insn_len; LOG_DIS("cmps.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 1, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], cpu_R[dc->op2], t[1], memsize_zz(dc)); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_cmp_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("cmp.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], cpu_R[dc->op2], t[1], memsize_zz(dc)); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_test_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("test.%c [$r%u%s] op2=%x\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_evaluate_flags(dc); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZ); tcg_gen_andi_tl(cpu_PR[PR_CCS], cpu_PR[PR_CCS], ~3); cris_alu(dc, CC_OP_CMP, cpu_R[dc->op2], t[1], tcg_const_tl(0), memsize_zz(dc)); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_and_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("and.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_AND, cpu_R[dc->op2], t[0], t[1], memsize_zz(dc)); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_add_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("add.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_ADD, cpu_R[dc->op2], t[0], t[1], memsize_zz(dc)); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_addo_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("add.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 1, memsize, t[0], t[1]); cris_cc_mask(dc, 0); cris_alu(dc, CC_OP_ADD, cpu_R[R_ACR], t[0], t[1], 4); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_bound_m(CPUCRISState *env, DisasContext *dc) { TCGv l[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("bound.%c [$r%u%s, $r%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); l[0] = tcg_temp_local_new(); l[1] = tcg_temp_local_new(); insn_len = dec_prep_alu_m(env, dc, 0, memsize, l[0], l[1]); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_BOUND, cpu_R[dc->op2], l[0], l[1], 4); do_postinc(dc, memsize); tcg_temp_free(l[0]); tcg_temp_free(l[1]); return insn_len; } static int dec_addc_mr(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int insn_len = 2; LOG_DIS("addc [$r%u%s, $r%u\n", dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_evaluate_flags(dc); /* Set for this insn. */ dc->flagx_known = 1; dc->flags_x = X_FLAG; cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, 4, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_ADDC, cpu_R[dc->op2], t[0], t[1], 4); do_postinc(dc, 4); cris_alu_m_free_temps(t); return insn_len; } static int dec_sub_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("sub.%c [$r%u%s, $r%u ir=%x zz=%x\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2, dc->ir, dc->zzsize); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZVC); cris_alu(dc, CC_OP_SUB, cpu_R[dc->op2], t[0], t[1], memsize); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_or_m(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len; LOG_DIS("or.%c [$r%u%s, $r%u pc=%x\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2, dc->pc); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_OR, cpu_R[dc->op2], t[0], t[1], memsize_zz(dc)); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_move_mp(CPUCRISState *env, DisasContext *dc) { TCGv t[2]; int memsize = memsize_zz(dc); int insn_len = 2; LOG_DIS("move.%c [$r%u%s, $p%u\n", memsize_char(memsize), dc->op1, dc->postinc ? "+]" : "]", dc->op2); cris_alu_m_alloc_temps(t); insn_len = dec_prep_alu_m(env, dc, 0, memsize, t[0], t[1]); cris_cc_mask(dc, 0); if (dc->op2 == PR_CCS) { cris_evaluate_flags(dc); if (dc->tb_flags & U_FLAG) { /* User space is not allowed to touch all flags. */ tcg_gen_andi_tl(t[1], t[1], 0x39f); tcg_gen_andi_tl(t[0], cpu_PR[PR_CCS], ~0x39f); tcg_gen_or_tl(t[1], t[0], t[1]); } } t_gen_mov_preg_TN(dc, dc->op2, t[1]); do_postinc(dc, memsize); cris_alu_m_free_temps(t); return insn_len; } static int dec_move_pm(CPUCRISState *env, DisasContext *dc) { TCGv t0; int memsize; memsize = preg_sizes[dc->op2]; LOG_DIS("move.%c $p%u, [$r%u%s\n", memsize_char(memsize), dc->op2, dc->op1, dc->postinc ? "+]" : "]"); /* prepare store. Address in T0, value in T1. */ if (dc->op2 == PR_CCS) { cris_evaluate_flags(dc); } t0 = tcg_temp_new(); t_gen_mov_TN_preg(t0, dc->op2); cris_flush_cc_state(dc); gen_store(dc, cpu_R[dc->op1], t0, memsize); tcg_temp_free(t0); cris_cc_mask(dc, 0); if (dc->postinc) { tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], memsize); } return 2; } static int dec_movem_mr(CPUCRISState *env, DisasContext *dc) { TCGv_i64 tmp[16]; TCGv tmp32; TCGv addr; int i; int nr = dc->op2 + 1; LOG_DIS("movem [$r%u%s, $r%u\n", dc->op1, dc->postinc ? "+]" : "]", dc->op2); addr = tcg_temp_new(); /* There are probably better ways of doing this. */ cris_flush_cc_state(dc); for (i = 0; i < (nr >> 1); i++) { tmp[i] = tcg_temp_new_i64(); tcg_gen_addi_tl(addr, cpu_R[dc->op1], i * 8); gen_load64(dc, tmp[i], addr); } if (nr & 1) { tmp32 = tcg_temp_new_i32(); tcg_gen_addi_tl(addr, cpu_R[dc->op1], i * 8); gen_load(dc, tmp32, addr, 4, 0); } else { TCGV_UNUSED(tmp32); } tcg_temp_free(addr); for (i = 0; i < (nr >> 1); i++) { tcg_gen_extrl_i64_i32(cpu_R[i * 2], tmp[i]); tcg_gen_shri_i64(tmp[i], tmp[i], 32); tcg_gen_extrl_i64_i32(cpu_R[i * 2 + 1], tmp[i]); tcg_temp_free_i64(tmp[i]); } if (nr & 1) { tcg_gen_mov_tl(cpu_R[dc->op2], tmp32); tcg_temp_free(tmp32); } /* writeback the updated pointer value. */ if (dc->postinc) { tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], nr * 4); } /* gen_load might want to evaluate the previous insns flags. */ cris_cc_mask(dc, 0); return 2; } static int dec_movem_rm(CPUCRISState *env, DisasContext *dc) { TCGv tmp; TCGv addr; int i; LOG_DIS("movem $r%u, [$r%u%s\n", dc->op2, dc->op1, dc->postinc ? "+]" : "]"); cris_flush_cc_state(dc); tmp = tcg_temp_new(); addr = tcg_temp_new(); tcg_gen_movi_tl(tmp, 4); tcg_gen_mov_tl(addr, cpu_R[dc->op1]); for (i = 0; i <= dc->op2; i++) { /* Displace addr. */ /* Perform the store. */ gen_store(dc, addr, cpu_R[i], 4); tcg_gen_add_tl(addr, addr, tmp); } if (dc->postinc) { tcg_gen_mov_tl(cpu_R[dc->op1], addr); } cris_cc_mask(dc, 0); tcg_temp_free(tmp); tcg_temp_free(addr); return 2; } static int dec_move_rm(CPUCRISState *env, DisasContext *dc) { int memsize; memsize = memsize_zz(dc); LOG_DIS("move.%c $r%u, [$r%u]\n", memsize_char(memsize), dc->op2, dc->op1); /* prepare store. */ cris_flush_cc_state(dc); gen_store(dc, cpu_R[dc->op1], cpu_R[dc->op2], memsize); if (dc->postinc) { tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], memsize); } cris_cc_mask(dc, 0); return 2; } static int dec_lapcq(CPUCRISState *env, DisasContext *dc) { LOG_DIS("lapcq %x, $r%u\n", dc->pc + dc->op1*2, dc->op2); cris_cc_mask(dc, 0); tcg_gen_movi_tl(cpu_R[dc->op2], dc->pc + dc->op1 * 2); return 2; } static int dec_lapc_im(CPUCRISState *env, DisasContext *dc) { unsigned int rd; int32_t imm; int32_t pc; rd = dc->op2; cris_cc_mask(dc, 0); imm = cris_fetch(env, dc, dc->pc + 2, 4, 0); LOG_DIS("lapc 0x%x, $r%u\n", imm + dc->pc, dc->op2); pc = dc->pc; pc += imm; tcg_gen_movi_tl(cpu_R[rd], pc); return 6; } /* Jump to special reg. */ static int dec_jump_p(CPUCRISState *env, DisasContext *dc) { LOG_DIS("jump $p%u\n", dc->op2); if (dc->op2 == PR_CCS) { cris_evaluate_flags(dc); } t_gen_mov_TN_preg(env_btarget, dc->op2); /* rete will often have low bit set to indicate delayslot. */ tcg_gen_andi_tl(env_btarget, env_btarget, ~1); cris_cc_mask(dc, 0); cris_prepare_jmp(dc, JMP_INDIRECT); return 2; } /* Jump and save. */ static int dec_jas_r(CPUCRISState *env, DisasContext *dc) { LOG_DIS("jas $r%u, $p%u\n", dc->op1, dc->op2); cris_cc_mask(dc, 0); /* Store the return address in Pd. */ tcg_gen_mov_tl(env_btarget, cpu_R[dc->op1]); if (dc->op2 > 15) { abort(); } t_gen_mov_preg_TN(dc, dc->op2, tcg_const_tl(dc->pc + 4)); cris_prepare_jmp(dc, JMP_INDIRECT); return 2; } static int dec_jas_im(CPUCRISState *env, DisasContext *dc) { uint32_t imm; imm = cris_fetch(env, dc, dc->pc + 2, 4, 0); LOG_DIS("jas 0x%x\n", imm); cris_cc_mask(dc, 0); /* Store the return address in Pd. */ t_gen_mov_preg_TN(dc, dc->op2, tcg_const_tl(dc->pc + 8)); dc->jmp_pc = imm; cris_prepare_jmp(dc, JMP_DIRECT); return 6; } static int dec_jasc_im(CPUCRISState *env, DisasContext *dc) { uint32_t imm; imm = cris_fetch(env, dc, dc->pc + 2, 4, 0); LOG_DIS("jasc 0x%x\n", imm); cris_cc_mask(dc, 0); /* Store the return address in Pd. */ t_gen_mov_preg_TN(dc, dc->op2, tcg_const_tl(dc->pc + 8 + 4)); dc->jmp_pc = imm; cris_prepare_jmp(dc, JMP_DIRECT); return 6; } static int dec_jasc_r(CPUCRISState *env, DisasContext *dc) { LOG_DIS("jasc_r $r%u, $p%u\n", dc->op1, dc->op2); cris_cc_mask(dc, 0); /* Store the return address in Pd. */ tcg_gen_mov_tl(env_btarget, cpu_R[dc->op1]); t_gen_mov_preg_TN(dc, dc->op2, tcg_const_tl(dc->pc + 4 + 4)); cris_prepare_jmp(dc, JMP_INDIRECT); return 2; } static int dec_bcc_im(CPUCRISState *env, DisasContext *dc) { int32_t offset; uint32_t cond = dc->op2; offset = cris_fetch(env, dc, dc->pc + 2, 2, 1); LOG_DIS("b%s %d pc=%x dst=%x\n", cc_name(cond), offset, dc->pc, dc->pc + offset); cris_cc_mask(dc, 0); /* op2 holds the condition-code. */ cris_prepare_cc_branch(dc, offset, cond); return 4; } static int dec_bas_im(CPUCRISState *env, DisasContext *dc) { int32_t simm; simm = cris_fetch(env, dc, dc->pc + 2, 4, 0); LOG_DIS("bas 0x%x, $p%u\n", dc->pc + simm, dc->op2); cris_cc_mask(dc, 0); /* Store the return address in Pd. */ t_gen_mov_preg_TN(dc, dc->op2, tcg_const_tl(dc->pc + 8)); dc->jmp_pc = dc->pc + simm; cris_prepare_jmp(dc, JMP_DIRECT); return 6; } static int dec_basc_im(CPUCRISState *env, DisasContext *dc) { int32_t simm; simm = cris_fetch(env, dc, dc->pc + 2, 4, 0); LOG_DIS("basc 0x%x, $p%u\n", dc->pc + simm, dc->op2); cris_cc_mask(dc, 0); /* Store the return address in Pd. */ t_gen_mov_preg_TN(dc, dc->op2, tcg_const_tl(dc->pc + 12)); dc->jmp_pc = dc->pc + simm; cris_prepare_jmp(dc, JMP_DIRECT); return 6; } static int dec_rfe_etc(CPUCRISState *env, DisasContext *dc) { cris_cc_mask(dc, 0); if (dc->op2 == 15) { tcg_gen_st_i32(tcg_const_i32(1), cpu_env, -offsetof(CRISCPU, env) + offsetof(CPUState, halted)); tcg_gen_movi_tl(env_pc, dc->pc + 2); t_gen_raise_exception(EXCP_HLT); return 2; } switch (dc->op2 & 7) { case 2: /* rfe. */ LOG_DIS("rfe\n"); cris_evaluate_flags(dc); gen_helper_rfe(cpu_env); dc->is_jmp = DISAS_UPDATE; break; case 5: /* rfn. */ LOG_DIS("rfn\n"); cris_evaluate_flags(dc); gen_helper_rfn(cpu_env); dc->is_jmp = DISAS_UPDATE; break; case 6: LOG_DIS("break %d\n", dc->op1); cris_evaluate_flags(dc); /* break. */ tcg_gen_movi_tl(env_pc, dc->pc + 2); /* Breaks start at 16 in the exception vector. */ t_gen_mov_env_TN(trap_vector, tcg_const_tl(dc->op1 + 16)); t_gen_raise_exception(EXCP_BREAK); dc->is_jmp = DISAS_UPDATE; break; default: printf("op2=%x\n", dc->op2); BUG(); break; } return 2; } static int dec_ftag_fidx_d_m(CPUCRISState *env, DisasContext *dc) { return 2; } static int dec_ftag_fidx_i_m(CPUCRISState *env, DisasContext *dc) { return 2; } static int dec_null(CPUCRISState *env, DisasContext *dc) { printf("unknown insn pc=%x opc=%x op1=%x op2=%x\n", dc->pc, dc->opcode, dc->op1, dc->op2); fflush(NULL); BUG(); return 2; } static struct decoder_info { struct { uint32_t bits; uint32_t mask; }; int (*dec)(CPUCRISState *env, DisasContext *dc); } decinfo[] = { /* Order matters here. */ {DEC_MOVEQ, dec_moveq}, {DEC_BTSTQ, dec_btstq}, {DEC_CMPQ, dec_cmpq}, {DEC_ADDOQ, dec_addoq}, {DEC_ADDQ, dec_addq}, {DEC_SUBQ, dec_subq}, {DEC_ANDQ, dec_andq}, {DEC_ORQ, dec_orq}, {DEC_ASRQ, dec_asrq}, {DEC_LSLQ, dec_lslq}, {DEC_LSRQ, dec_lsrq}, {DEC_BCCQ, dec_bccq}, {DEC_BCC_IM, dec_bcc_im}, {DEC_JAS_IM, dec_jas_im}, {DEC_JAS_R, dec_jas_r}, {DEC_JASC_IM, dec_jasc_im}, {DEC_JASC_R, dec_jasc_r}, {DEC_BAS_IM, dec_bas_im}, {DEC_BASC_IM, dec_basc_im}, {DEC_JUMP_P, dec_jump_p}, {DEC_LAPC_IM, dec_lapc_im}, {DEC_LAPCQ, dec_lapcq}, {DEC_RFE_ETC, dec_rfe_etc}, {DEC_ADDC_MR, dec_addc_mr}, {DEC_MOVE_MP, dec_move_mp}, {DEC_MOVE_PM, dec_move_pm}, {DEC_MOVEM_MR, dec_movem_mr}, {DEC_MOVEM_RM, dec_movem_rm}, {DEC_MOVE_PR, dec_move_pr}, {DEC_SCC_R, dec_scc_r}, {DEC_SETF, dec_setclrf}, {DEC_CLEARF, dec_setclrf}, {DEC_MOVE_SR, dec_move_sr}, {DEC_MOVE_RP, dec_move_rp}, {DEC_SWAP_R, dec_swap_r}, {DEC_ABS_R, dec_abs_r}, {DEC_LZ_R, dec_lz_r}, {DEC_MOVE_RS, dec_move_rs}, {DEC_BTST_R, dec_btst_r}, {DEC_ADDC_R, dec_addc_r}, {DEC_DSTEP_R, dec_dstep_r}, {DEC_XOR_R, dec_xor_r}, {DEC_MCP_R, dec_mcp_r}, {DEC_CMP_R, dec_cmp_r}, {DEC_ADDI_R, dec_addi_r}, {DEC_ADDI_ACR, dec_addi_acr}, {DEC_ADD_R, dec_add_r}, {DEC_SUB_R, dec_sub_r}, {DEC_ADDU_R, dec_addu_r}, {DEC_ADDS_R, dec_adds_r}, {DEC_SUBU_R, dec_subu_r}, {DEC_SUBS_R, dec_subs_r}, {DEC_LSL_R, dec_lsl_r}, {DEC_AND_R, dec_and_r}, {DEC_OR_R, dec_or_r}, {DEC_BOUND_R, dec_bound_r}, {DEC_ASR_R, dec_asr_r}, {DEC_LSR_R, dec_lsr_r}, {DEC_MOVU_R, dec_movu_r}, {DEC_MOVS_R, dec_movs_r}, {DEC_NEG_R, dec_neg_r}, {DEC_MOVE_R, dec_move_r}, {DEC_FTAG_FIDX_I_M, dec_ftag_fidx_i_m}, {DEC_FTAG_FIDX_D_M, dec_ftag_fidx_d_m}, {DEC_MULS_R, dec_muls_r}, {DEC_MULU_R, dec_mulu_r}, {DEC_ADDU_M, dec_addu_m}, {DEC_ADDS_M, dec_adds_m}, {DEC_SUBU_M, dec_subu_m}, {DEC_SUBS_M, dec_subs_m}, {DEC_CMPU_M, dec_cmpu_m}, {DEC_CMPS_M, dec_cmps_m}, {DEC_MOVU_M, dec_movu_m}, {DEC_MOVS_M, dec_movs_m}, {DEC_CMP_M, dec_cmp_m}, {DEC_ADDO_M, dec_addo_m}, {DEC_BOUND_M, dec_bound_m}, {DEC_ADD_M, dec_add_m}, {DEC_SUB_M, dec_sub_m}, {DEC_AND_M, dec_and_m}, {DEC_OR_M, dec_or_m}, {DEC_MOVE_RM, dec_move_rm}, {DEC_TEST_M, dec_test_m}, {DEC_MOVE_MR, dec_move_mr}, {{0, 0}, dec_null} }; static unsigned int crisv32_decoder(CPUCRISState *env, DisasContext *dc) { int insn_len = 2; int i; /* Load a halfword onto the instruction register. */ dc->ir = cris_fetch(env, dc, dc->pc, 2, 0); /* Now decode it. */ dc->opcode = EXTRACT_FIELD(dc->ir, 4, 11); dc->op1 = EXTRACT_FIELD(dc->ir, 0, 3); dc->op2 = EXTRACT_FIELD(dc->ir, 12, 15); dc->zsize = EXTRACT_FIELD(dc->ir, 4, 4); dc->zzsize = EXTRACT_FIELD(dc->ir, 4, 5); dc->postinc = EXTRACT_FIELD(dc->ir, 10, 10); /* Large switch for all insns. */ for (i = 0; i < ARRAY_SIZE(decinfo); i++) { if ((dc->opcode & decinfo[i].mask) == decinfo[i].bits) { insn_len = decinfo[i].dec(env, dc); break; } } #if !defined(CONFIG_USER_ONLY) /* Single-stepping ? */ if (dc->tb_flags & S_FLAG) { TCGLabel *l1 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_NE, cpu_PR[PR_SPC], dc->pc, l1); /* We treat SPC as a break with an odd trap vector. */ cris_evaluate_flags(dc); t_gen_mov_env_TN(trap_vector, tcg_const_tl(3)); tcg_gen_movi_tl(env_pc, dc->pc + insn_len); tcg_gen_movi_tl(cpu_PR[PR_SPC], dc->pc + insn_len); t_gen_raise_exception(EXCP_BREAK); gen_set_label(l1); } #endif return insn_len; } #include "translate_v10.c" /* * Delay slots on QEMU/CRIS. * * If an exception hits on a delayslot, the core will let ERP (the Exception * Return Pointer) point to the branch (the previous) insn and set the lsb to * to give SW a hint that the exception actually hit on the dslot. * * CRIS expects all PC addresses to be 16-bit aligned. The lsb is ignored by * the core and any jmp to an odd addresses will mask off that lsb. It is * simply there to let sw know there was an exception on a dslot. * * When the software returns from an exception, the branch will re-execute. * On QEMU care needs to be taken when a branch+delayslot sequence is broken * and the branch and delayslot don't share pages. * * The TB contaning the branch insn will set up env->btarget and evaluate * env->btaken. When the translation loop exits we will note that the branch * sequence is broken and let env->dslot be the size of the branch insn (those * vary in length). * * The TB contaning the delayslot will have the PC of its real insn (i.e no lsb * set). It will also expect to have env->dslot setup with the size of the * delay slot so that env->pc - env->dslot point to the branch insn. This TB * will execute the dslot and take the branch, either to btarget or just one * insn ahead. * * When exceptions occur, we check for env->dslot in do_interrupt to detect * broken branch sequences and setup $erp accordingly (i.e let it point to the * branch and set lsb). Then env->dslot gets cleared so that the exception * handler can enter. When returning from exceptions (jump $erp) the lsb gets * masked off and we will reexecute the branch insn. * */ /* generate intermediate code for basic block 'tb'. */ void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb) { CPUCRISState *env = cs->env_ptr; uint32_t pc_start; unsigned int insn_len; struct DisasContext ctx; struct DisasContext *dc = &ctx; uint32_t next_page_start; target_ulong npc; int num_insns; int max_insns; if (env->pregs[PR_VR] == 32) { dc->decoder = crisv32_decoder; dc->clear_locked_irq = 0; } else { dc->decoder = crisv10_decoder; dc->clear_locked_irq = 1; } /* Odd PC indicates that branch is rexecuting due to exception in the * delayslot, like in real hw. */ pc_start = tb->pc & ~1; dc->cpu = cris_env_get_cpu(env); dc->tb = tb; dc->is_jmp = DISAS_NEXT; dc->ppc = pc_start; dc->pc = pc_start; dc->singlestep_enabled = cs->singlestep_enabled; dc->flags_uptodate = 1; dc->flagx_known = 1; dc->flags_x = tb->flags & X_FLAG; dc->cc_x_uptodate = 0; dc->cc_mask = 0; dc->update_cc = 0; dc->clear_prefix = 0; cris_update_cc_op(dc, CC_OP_FLAGS, 4); dc->cc_size_uptodate = -1; /* Decode TB flags. */ dc->tb_flags = tb->flags & (S_FLAG | P_FLAG | U_FLAG \ | X_FLAG | PFIX_FLAG); dc->delayed_branch = !!(tb->flags & 7); if (dc->delayed_branch) { dc->jmp = JMP_INDIRECT; } else { dc->jmp = JMP_NOJMP; } dc->cpustate_changed = 0; next_page_start = (pc_start & TARGET_PAGE_MASK) + TARGET_PAGE_SIZE; num_insns = 0; max_insns = tb->cflags & CF_COUNT_MASK; if (max_insns == 0) { max_insns = CF_COUNT_MASK; } if (max_insns > TCG_MAX_INSNS) { max_insns = TCG_MAX_INSNS; } gen_tb_start(tb); do { tcg_gen_insn_start(dc->delayed_branch == 1 ? dc->ppc | 1 : dc->pc); num_insns++; if (unlikely(cpu_breakpoint_test(cs, dc->pc, BP_ANY))) { cris_evaluate_flags(dc); tcg_gen_movi_tl(env_pc, dc->pc); t_gen_raise_exception(EXCP_DEBUG); dc->is_jmp = DISAS_UPDATE; /* The address covered by the breakpoint must be included in [tb->pc, tb->pc + tb->size) in order to for it to be properly cleared -- thus we increment the PC here so that the logic setting tb->size below does the right thing. */ dc->pc += 2; break; } /* Pretty disas. */ LOG_DIS("%8.8x:\t", dc->pc); if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) { gen_io_start(); } dc->clear_x = 1; insn_len = dc->decoder(env, dc); dc->ppc = dc->pc; dc->pc += insn_len; if (dc->clear_x) { cris_clear_x_flag(dc); } /* Check for delayed branches here. If we do it before actually generating any host code, the simulator will just loop doing nothing for on this program location. */ if (dc->delayed_branch) { dc->delayed_branch--; if (dc->delayed_branch == 0) { if (tb->flags & 7) { t_gen_mov_env_TN(dslot, tcg_const_tl(0)); } if (dc->cpustate_changed || !dc->flagx_known || (dc->flags_x != (tb->flags & X_FLAG))) { cris_store_direct_jmp(dc); } if (dc->clear_locked_irq) { dc->clear_locked_irq = 0; t_gen_mov_env_TN(locked_irq, tcg_const_tl(0)); } if (dc->jmp == JMP_DIRECT_CC) { TCGLabel *l1 = gen_new_label(); cris_evaluate_flags(dc); /* Conditional jmp. */ tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1); gen_goto_tb(dc, 1, dc->jmp_pc); gen_set_label(l1); gen_goto_tb(dc, 0, dc->pc); dc->is_jmp = DISAS_TB_JUMP; dc->jmp = JMP_NOJMP; } else if (dc->jmp == JMP_DIRECT) { cris_evaluate_flags(dc); gen_goto_tb(dc, 0, dc->jmp_pc); dc->is_jmp = DISAS_TB_JUMP; dc->jmp = JMP_NOJMP; } else { t_gen_cc_jmp(env_btarget, tcg_const_tl(dc->pc)); dc->is_jmp = DISAS_JUMP; } break; } } /* If we are rexecuting a branch due to exceptions on delay slots don't break. */ if (!(tb->pc & 1) && cs->singlestep_enabled) { break; } } while (!dc->is_jmp && !dc->cpustate_changed && !tcg_op_buf_full() && !singlestep && (dc->pc < next_page_start) && num_insns < max_insns); if (dc->clear_locked_irq) { t_gen_mov_env_TN(locked_irq, tcg_const_tl(0)); } npc = dc->pc; if (tb->cflags & CF_LAST_IO) gen_io_end(); /* Force an update if the per-tb cpu state has changed. */ if (dc->is_jmp == DISAS_NEXT && (dc->cpustate_changed || !dc->flagx_known || (dc->flags_x != (tb->flags & X_FLAG)))) { dc->is_jmp = DISAS_UPDATE; tcg_gen_movi_tl(env_pc, npc); } /* Broken branch+delayslot sequence. */ if (dc->delayed_branch == 1) { /* Set env->dslot to the size of the branch insn. */ t_gen_mov_env_TN(dslot, tcg_const_tl(dc->pc - dc->ppc)); cris_store_direct_jmp(dc); } cris_evaluate_flags(dc); if (unlikely(cs->singlestep_enabled)) { if (dc->is_jmp == DISAS_NEXT) { tcg_gen_movi_tl(env_pc, npc); } t_gen_raise_exception(EXCP_DEBUG); } else { switch (dc->is_jmp) { case DISAS_NEXT: gen_goto_tb(dc, 1, npc); break; default: case DISAS_JUMP: case DISAS_UPDATE: /* indicate that the hash table must be used to find the next TB */ tcg_gen_exit_tb(0); break; case DISAS_SWI: case DISAS_TB_JUMP: /* nothing more to generate */ break; } } gen_tb_end(tb, num_insns); tb->size = dc->pc - pc_start; tb->icount = num_insns; #ifdef DEBUG_DISAS #if !DISAS_CRIS if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM) && qemu_log_in_addr_range(pc_start)) { qemu_log_lock(); qemu_log("--------------\n"); qemu_log("IN: %s\n", lookup_symbol(pc_start)); log_target_disas(cs, pc_start, dc->pc - pc_start, env->pregs[PR_VR]); qemu_log("\nisize=%d osize=%d\n", dc->pc - pc_start, tcg_op_buf_count()); qemu_log_unlock(); } #endif #endif } void cris_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, int flags) { CRISCPU *cpu = CRIS_CPU(cs); CPUCRISState *env = &cpu->env; const char **regnames; const char **pregnames; int i; if (!env || !f) { return; } if (env->pregs[PR_VR] < 32) { pregnames = pregnames_v10; regnames = regnames_v10; } else { pregnames = pregnames_v32; regnames = regnames_v32; } cpu_fprintf(f, "PC=%x CCS=%x btaken=%d btarget=%x\n" "cc_op=%d cc_src=%d cc_dest=%d cc_result=%x cc_mask=%x\n", env->pc, env->pregs[PR_CCS], env->btaken, env->btarget, env->cc_op, env->cc_src, env->cc_dest, env->cc_result, env->cc_mask); for (i = 0; i < 16; i++) { cpu_fprintf(f, "%s=%8.8x ", regnames[i], env->regs[i]); if ((i + 1) % 4 == 0) { cpu_fprintf(f, "\n"); } } cpu_fprintf(f, "\nspecial regs:\n"); for (i = 0; i < 16; i++) { cpu_fprintf(f, "%s=%8.8x ", pregnames[i], env->pregs[i]); if ((i + 1) % 4 == 0) { cpu_fprintf(f, "\n"); } } if (env->pregs[PR_VR] >= 32) { uint32_t srs = env->pregs[PR_SRS]; cpu_fprintf(f, "\nsupport function regs bank %x:\n", srs); if (srs < ARRAY_SIZE(env->sregs)) { for (i = 0; i < 16; i++) { cpu_fprintf(f, "s%2.2d=%8.8x ", i, env->sregs[srs][i]); if ((i + 1) % 4 == 0) { cpu_fprintf(f, "\n"); } } } } cpu_fprintf(f, "\n\n"); } void cris_initialize_tcg(void) { int i; cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); tcg_ctx.tcg_env = cpu_env; cc_x = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_x), "cc_x"); cc_src = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_src), "cc_src"); cc_dest = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_dest), "cc_dest"); cc_result = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_result), "cc_result"); cc_op = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_op), "cc_op"); cc_size = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_size), "cc_size"); cc_mask = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, cc_mask), "cc_mask"); env_pc = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, pc), "pc"); env_btarget = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, btarget), "btarget"); env_btaken = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, btaken), "btaken"); for (i = 0; i < 16; i++) { cpu_R[i] = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, regs[i]), regnames_v32[i]); } for (i = 0; i < 16; i++) { cpu_PR[i] = tcg_global_mem_new(cpu_env, offsetof(CPUCRISState, pregs[i]), pregnames_v32[i]); } } void restore_state_to_opc(CPUCRISState *env, TranslationBlock *tb, target_ulong *data) { env->pc = data[0]; }
756977.c
/* * Copyright (C) 2011 by Project SESA, Boston University * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include "cobj.h" // This is a simple standalone 'C' illustration of how the 'C Object' // infrastructure can be used. To compile: // gcc -Wall cobjtest.c -o cobjtest // ./cobjtest // or relying on default make rules you can do make cobjtest // FIXME: JA: Someone should actually test the following code ;-) // The following is an example of the how one might use the // ContainingOC macro // // THIS EXAMPLE IS A LITTE OVERLOADED ;-) Sorry. It actually illustrates // an object (A) that implements two interfaces (A) and (B) and can be // reference by pointers to either type. To do this it embeddes an empty // (B) instance inorder to contain a sole vtable pointer to the // B interface that is setup to point to the appropriate offset // in its main vtable CObject(B) { CObjInterface(B) *ft; }; CObjInterface(B) { intptr_t (*trans)(BRef _self, intptr_t key); }; CObject(A) { CObjInterface(A) *ft; intptr_t base; uintptr_t mask; CObjectDefine(B) b; }; CObjInterface(A) { intptr_t (*getBase) (ARef _self); intptr_t (*setBase) (ARef _self, intptr_t b); uintptr_t (*getMask) (ARef _self); uintptr_t (*setMask) (ARef _self, uintptr_t m); CObjImplements(B); }; static intptr_t A_getBase(ARef self) { return self->base; } static intptr_t A_setBase(ARef self, intptr_t b) { intptr_t old = self->base; self->base = b; return old; } static uintptr_t A_getMask(ARef self) { return self->mask; } static uintptr_t A_setMask(ARef self, uintptr_t m) { uintptr_t old = self->mask; self->mask = m; return old; } static intptr_t A_B_trans(BRef _self, intptr_t key) { ARef self = ContainingCOPtr(_self,A,b); // convert BRef into ARef return self->base + (intptr_t)(((uintptr_t)key & self->mask)); } CObjInterface(A) A_ftable = { .getBase = A_getBase, .setBase = A_setBase, .getMask = A_getMask, .setMask = A_setMask, { .trans = A_B_trans } }; static inline void ASetFT(ARef a) { a->ft = &A_ftable; a->b.ft = &(A_ftable.B_if); } int ACreate(ARef *a_ptr, BRef *b_ptr, intptr_t b, uintptr_t m) { ARef aref; aref = (ARef)malloc(sizeof(A)); aref->base = b; aref->mask = m; ASetFT(aref); *a_ptr = aref; *b_ptr = &(aref->b); return 1; } typedef uintptr_t FuncNum; typedef uintptr_t (* getFunc )(void *); void FuncNumTest() { ARef aref=NULL; FuncNum gb, sb, gm, sm, tr; COBJFunc f0, f1; uintptr_t b, m; gb = COBJ_FUNCNUM(aref,getBase); sb = COBJ_FUNCNUM(aref,setBase); gm = COBJ_FUNCNUM(aref,getMask); sm = COBJ_FUNCNUM(aref,setMask); tr = COBJ_FUNCNUM(aref,B_if.trans); printf("setBase=%ld getBase=%ld setMask=%ld getMask=%ld " "B_if.trans=%ld\n", gb, sb, gm, sm, tr); aref = (ARef)malloc(sizeof(A)); ASetFT(aref); aref->ft->setBase(aref, 0xdeadbeef); aref->ft->setMask(aref, 0xfeedface); printf("getBase(aref)=%p getMask(aref)=%p\n", (void *)(aref->ft->getBase(aref)), (void *)(aref->ft->getMask(aref))); f0 = COBJ_FUNC(aref, gb); f1 = COBJ_FUNC(aref, gm); printf("f0=%p f1=%p call gb=%p call gm=%p\n", f0, f1, (void *)(((getFunc)COBJ_FUNC(aref,gb))(aref)), (void *)(((getFunc)COBJ_FUNC(aref,gm))(aref))); } int main(int argc, char **argv) { ARef a; BRef b; FuncNumTest(); ACreate(&a, &b, 0xdeadbeef, 0x3); // You may now refrence the instance either by : // the A Interface via the a_ptr pointer // or by the B interface by the b_ptr. printf("base=%ld mask=0x%lx trans(0xdead)=%ld\n", a->ft->getBase(a), a->ft->getMask(a), b->ft->trans(b, 0xdead)); return 1; }
152211.c
/* $Id: netproc.c,v 1.29 2020/12/24 08:17:49 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <[email protected]> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include "config.h" #include <assert.h> #include <ctype.h> #include <err.h> #include <errno.h> #include "bsd-stdlib.h" #include "bsd-string.h" #include "bsd-unistd.h" #include "libressl-tls.h" #include <vis.h> #include "http.h" #include "extern.h" #include "parse.h" #define RETRY_DELAY 5 #define RETRY_MAX 10 /* * Buffer used when collecting the results of a CURL transfer. */ struct buf { char *buf; /* binary buffer */ size_t sz; /* length of buffer */ }; /* * Used for CURL communications. */ struct conn { const char *newnonce; /* nonce authority */ char *kid; /* kid when account exists */ int fd; /* acctproc handle */ int dfd; /* dnsproc handle */ struct buf buf; /* http body buffer */ }; /* * If something goes wrong (or we're tracing output), we dump the * current transfer's data as a debug message. * Make sure that print all non-printable characters as question marks * so that we don't spam the console. * Also, consolidate white-space. * This of course will ruin string literals, but the intent here is just * to show the message, not to replicate it. */ static void buf_dump(const struct buf *buf) { size_t i; int j; char *nbuf; if (buf->sz == 0) return; if ((nbuf = malloc(buf->sz)) == NULL) err(EXIT_FAILURE, "malloc"); for (j = 0, i = 0; i < buf->sz; i++) if (isspace((int)buf->buf[i])) { nbuf[j++] = ' '; while (isspace((int)buf->buf[i])) i++; i--; } else nbuf[j++] = isprint((int)buf->buf[i]) ? buf->buf[i] : '?'; dodbg("transfer buffer: [%.*s] (%zu bytes)", j, nbuf, buf->sz); free(nbuf); } /* * Extract the domain and port from a URL. * The url must be formatted as schema://address[/stuff]. * This returns NULL on failure. */ static char * url2host(const char *host, short *port, char **path) { char *url, *ep; /* We only understand HTTP and HTTPS. */ if (strncmp(host, "https://", 8) == 0) { *port = 443; if ((url = strdup(host + 8)) == NULL) { warn("strdup"); return NULL; } } else if (strncmp(host, "http://", 7) == 0) { *port = 80; if ((url = strdup(host + 7)) == NULL) { warn("strdup"); return NULL; } } else { warnx("%s: unknown schema", host); return NULL; } /* Terminate path part. */ if ((ep = strchr(url, '/')) != NULL) { *path = strdup(ep); *ep = '\0'; } else *path = strdup(""); if (*path == NULL) { warn("strdup"); free(url); return NULL; } return url; } /* * Contact dnsproc and resolve a host. * Place the answers in "v" and return the number of answers, which can * be at most MAX_SERVERS_DNS. * Return <0 on failure. */ static ssize_t urlresolve(int fd, const char *host, struct source *v) { char *addr; size_t i, sz; long lval; if (writeop(fd, COMM_DNS, DNS_LOOKUP) <= 0) return -1; else if (writestr(fd, COMM_DNSQ, host) <= 0) return -1; else if ((lval = readop(fd, COMM_DNSLEN)) < 0) return -1; sz = lval; assert(sz <= MAX_SERVERS_DNS); for (i = 0; i < sz; i++) { memset(&v[i], 0, sizeof(struct source)); if ((lval = readop(fd, COMM_DNSF)) < 0) goto err; else if (lval != 4 && lval != 6) goto err; else if ((addr = readstr(fd, COMM_DNSA)) == NULL) goto err; v[i].family = lval; v[i].ip = addr; } return sz; err: for (i = 0; i < sz; i++) free(v[i].ip); return -1; } /* * Send a "regular" HTTP GET message to "addr" and stuff the response * into the connection buffer. * Return the HTTP error code or <0 on failure. */ static long nreq(struct conn *c, const char *addr) { struct httpget *g; struct source src[MAX_SERVERS_DNS]; struct httphead *st; char *host, *path; short port; size_t srcsz; ssize_t ssz; long code; int redirects = 0; if ((host = url2host(addr, &port, &path)) == NULL) return -1; again: if ((ssz = urlresolve(c->dfd, host, src)) < 0) { free(host); free(path); return -1; } srcsz = ssz; g = http_get(src, srcsz, host, port, path, 0, NULL, 0); free(host); free(path); if (g == NULL) return -1; switch (g->code) { case 301: case 302: case 303: case 307: case 308: redirects++; if (redirects > 3) { warnx("too many redirects"); http_get_free(g); return -1; } if ((st = http_head_get("Location", g->head, g->headsz)) == NULL) { warnx("redirect without location header"); return -1; } host = url2host(st->val, &port, &path); http_get_free(g); if (host == NULL) return -1; goto again; break; default: code = g->code; break; } /* Copy the body part into our buffer. */ free(c->buf.buf); c->buf.sz = g->bodypartsz; c->buf.buf = malloc(c->buf.sz); if (c->buf.buf == NULL) { warn("malloc"); code = -1; } else memcpy(c->buf.buf, g->bodypart, c->buf.sz); http_get_free(g); return code; } /* * Create and send a signed communication to the ACME server. * Stuff the response into the communication buffer. * Return <0 on failure on the HTTP error code otherwise. */ static long sreq(struct conn *c, const char *addr, int kid, const char *req, char **loc) { struct httpget *g; struct source src[MAX_SERVERS_DNS]; char *host, *path, *nonce, *reqsn; short port; struct httphead *h; ssize_t ssz; long code; if ((host = url2host(c->newnonce, &port, &path)) == NULL) return -1; if ((ssz = urlresolve(c->dfd, host, src)) < 0) { free(host); free(path); return -1; } g = http_get(src, (size_t)ssz, host, port, path, 1, NULL, 0); free(host); free(path); if (g == NULL) return -1; h = http_head_get("Replay-Nonce", g->head, g->headsz); if (h == NULL) { warnx("%s: no replay nonce", c->newnonce); http_get_free(g); return -1; } else if ((nonce = strdup(h->val)) == NULL) { warn("strdup"); http_get_free(g); return -1; } http_get_free(g); /* * Send the url, nonce and request payload to the acctproc. * This will create the proper JSON object we need. */ if (writeop(c->fd, COMM_ACCT, kid ? ACCT_KID_SIGN : ACCT_SIGN) <= 0) { free(nonce); return -1; } else if (writestr(c->fd, COMM_PAY, req) <= 0) { free(nonce); return -1; } else if (writestr(c->fd, COMM_NONCE, nonce) <= 0) { free(nonce); return -1; } else if (writestr(c->fd, COMM_URL, addr) <= 0) { free(nonce); return -1; } free(nonce); if (kid && writestr(c->fd, COMM_KID, c->kid) <= 0) return -1; /* Now read back the signed payload. */ if ((reqsn = readstr(c->fd, COMM_REQ)) == NULL) return -1; /* Now send the signed payload to the CA. */ if ((host = url2host(addr, &port, &path)) == NULL) { free(reqsn); return -1; } else if ((ssz = urlresolve(c->dfd, host, src)) < 0) { free(host); free(path); free(reqsn); return -1; } g = http_get(src, (size_t)ssz, host, port, path, 0, reqsn, strlen(reqsn)); free(host); free(path); free(reqsn); if (g == NULL) return -1; /* Stuff response into parse buffer. */ code = g->code; free(c->buf.buf); c->buf.sz = g->bodypartsz; c->buf.buf = malloc(c->buf.sz); if (c->buf.buf == NULL) { warn("malloc"); code = -1; } else memcpy(c->buf.buf, g->bodypart, c->buf.sz); if (loc != NULL) { free(*loc); *loc = NULL; h = http_head_get("Location", g->head, g->headsz); /* error checking done by caller */ if (h != NULL) *loc = strdup(h->val); } http_get_free(g); return code; } /* * Send to the CA that we want to authorise a new account. * This only happens once for a new account key. * Returns non-zero on success. */ static int donewacc(struct conn *c, const struct capaths *p, const char *contact) { struct jsmnn *j = NULL; int rc = 0; char *req, *detail, *error = NULL; long lc; if ((req = json_fmt_newacc(contact)) == NULL) warnx("json_fmt_newacc"); else if ((lc = sreq(c, p->newaccount, 0, req, &c->kid)) < 0) warnx("%s: bad comm", p->newaccount); else if (lc == 400) { if ((j = json_parse(c->buf.buf, c->buf.sz)) == NULL) warnx("%s: bad JSON object", p->newaccount); else { detail = json_getstr(j, "detail"); if (detail != NULL && stravis(&error, detail, VIS_SAFE) != -1) { warnx("%s", error); free(error); } } } else if (lc != 200 && lc != 201) warnx("%s: bad HTTP: %ld", p->newaccount, lc); else if (c->buf.buf == NULL || c->buf.sz == 0) warnx("%s: empty response", p->newaccount); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); free(req); return rc; } /* * Check if our account already exists, if not create it. * Populates conn->kid. * Returns non-zero on success. */ static int dochkacc(struct conn *c, const struct capaths *p, const char *contact) { int rc = 0; char *req; long lc; if ((req = json_fmt_chkacc()) == NULL) warnx("json_fmt_chkacc"); else if ((lc = sreq(c, p->newaccount, 0, req, &c->kid)) < 0) warnx("%s: bad comm", p->newaccount); else if (lc != 200 && lc != 400) warnx("%s: bad HTTP: %ld", p->newaccount, lc); else if (c->buf.buf == NULL || c->buf.sz == 0) warnx("%s: empty response", p->newaccount); else if (lc == 400) rc = donewacc(c, p, contact); else rc = 1; if (c->kid == NULL) rc = 0; if (rc == 0 || verbose > 1) buf_dump(&c->buf); free(req); return rc; } /* * Submit a new order for a certificate. */ static int doneworder(struct conn *c, const char *const *alts, size_t altsz, struct order *order, const struct capaths *p) { struct jsmnn *j = NULL; int rc = 0; char *req; long lc; if ((req = json_fmt_neworder(alts, altsz)) == NULL) warnx("json_fmt_neworder"); else if ((lc = sreq(c, p->neworder, 1, req, &order->uri)) < 0) warnx("%s: bad comm", p->neworder); else if (lc != 201) warnx("%s: bad HTTP: %ld", p->neworder, lc); else if ((j = json_parse(c->buf.buf, c->buf.sz)) == NULL) warnx("%s: bad JSON object", p->neworder); else if (!json_parse_order(j, order)) warnx("%s: bad order", p->neworder); else if (order->status == ORDER_INVALID) warnx("%s: order invalid", p->neworder); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); free(req); json_free(j); return rc; } /* * Update order status */ static int doupdorder(struct conn *c, struct order *order) { struct jsmnn *j = NULL; int rc = 0; long lc; if ((lc = sreq(c, order->uri, 1, "", NULL)) < 0) warnx("%s: bad comm", order->uri); else if (lc != 200) warnx("%s: bad HTTP: %ld", order->uri, lc); else if ((j = json_parse(c->buf.buf, c->buf.sz)) == NULL) warnx("%s: bad JSON object", order->uri); else if (!json_parse_upd_order(j, order)) warnx("%s: bad order", order->uri); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); json_free(j); return rc; } /* * Request a challenge for the given domain name. * This must be called for each name "alt". * On non-zero exit, fills in "chng" with the challenge. */ static int dochngreq(struct conn *c, const char *auth, struct chng *chng) { int rc = 0; long lc; struct jsmnn *j = NULL; dodbg("%s: %s", __func__, auth); if ((lc = sreq(c, auth, 1, "", NULL)) < 0) warnx("%s: bad comm", auth); else if (lc != 200) warnx("%s: bad HTTP: %ld", auth, lc); else if ((j = json_parse(c->buf.buf, c->buf.sz)) == NULL) warnx("%s: bad JSON object", auth); else if (!json_parse_challenge(j, chng)) warnx("%s: bad challenge", auth); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); json_free(j); return rc; } /* * Tell the CA that a challenge response is in place. */ static int dochngresp(struct conn *c, const struct chng *chng) { int rc = 0; long lc; dodbg("%s: challenge", chng->uri); if ((lc = sreq(c, chng->uri, 1, "{}", NULL)) < 0) warnx("%s: bad comm", chng->uri); else if (lc != 200 && lc != 201 && lc != 202) warnx("%s: bad HTTP: %ld", chng->uri, lc); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); return rc; } /* * Submit our csr to the CA. */ static int docert(struct conn *c, const char *uri, const char *csr) { char *req; int rc = 0; long lc; dodbg("%s: certificate", uri); if ((req = json_fmt_newcert(csr)) == NULL) warnx("json_fmt_newcert"); else if ((lc = sreq(c, uri, 1, req, NULL)) < 0) warnx("%s: bad comm", uri); else if (lc != 200) warnx("%s: bad HTTP: %ld", uri, lc); else if (c->buf.sz == 0 || c->buf.buf == NULL) warnx("%s: empty response", uri); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); free(req); return rc; } /* * Get certificate from CA */ static int dogetcert(struct conn *c, const char *uri) { int rc = 0; long lc; dodbg("%s: certificate", uri); if ((lc = sreq(c, uri, 1, "", NULL)) < 0) warnx("%s: bad comm", uri); else if (lc != 200) warnx("%s: bad HTTP: %ld", uri, lc); else if (c->buf.sz == 0 || c->buf.buf == NULL) warnx("%s: empty response", uri); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); return rc; } static int dorevoke(struct conn *c, const char *addr, const char *cert) { char *req; int rc = 0; long lc = 0; dodbg("%s: revocation", addr); if ((req = json_fmt_revokecert(cert)) == NULL) warnx("json_fmt_revokecert"); else if ((lc = sreq(c, addr, 1, req, NULL)) < 0) warnx("%s: bad comm", addr); else if (lc != 200 && lc != 201 && lc != 409) warnx("%s: bad HTTP: %ld", addr, lc); else rc = 1; if (lc == 409) warnx("%s: already revoked", addr); if (rc == 0 || verbose > 1) buf_dump(&c->buf); free(req); return rc; } /* * Look up directories from the certificate authority. */ static int dodirs(struct conn *c, const char *addr, struct capaths *paths) { struct jsmnn *j = NULL; long lc; int rc = 0; dodbg("%s: directories", addr); if ((lc = nreq(c, addr)) < 0) warnx("%s: bad comm", addr); else if (lc != 200 && lc != 201) warnx("%s: bad HTTP: %ld", addr, lc); else if ((j = json_parse(c->buf.buf, c->buf.sz)) == NULL) warnx("json_parse"); else if (!json_parse_capaths(j, paths)) warnx("%s: bad CA paths", addr); else rc = 1; if (rc == 0 || verbose > 1) buf_dump(&c->buf); json_free(j); return rc; } /* * Communicate with the ACME server. * We need the certificate we want to upload and our account key information. */ int netproc(int kfd, int afd, int Cfd, int cfd, int dfd, int rfd, int revocate, struct authority_c *authority, const char *const *alts, size_t altsz) { int rc = 0; size_t i; char *cert = NULL, *thumb = NULL, *url = NULL, *error = NULL; struct conn c; struct capaths paths; struct order order; struct chng *chngs = NULL; long lval; memset(&paths, 0, sizeof(struct capaths)); memset(&c, 0, sizeof(struct conn)); if (unveil(tls_default_ca_cert_file(), "r") == -1) { warn("unveil"); goto out; } if (pledge("stdio inet rpath", NULL) == -1) { warn("pledge"); goto out; } if (http_init() == -1) { warn("http_init"); goto out; } if (pledge("stdio inet", NULL) == -1) { warn("pledge"); goto out; } /* * Wait until the acctproc, keyproc, and revokeproc have started up and * are ready to serve us data. * Then check whether revokeproc indicates that the certificate on file * (if any) can be updated. */ if ((lval = readop(afd, COMM_ACCT_STAT)) == 0) { rc = 1; goto out; } else if (lval != ACCT_READY) { warnx("unknown operation from acctproc"); goto out; } if ((lval = readop(kfd, COMM_KEY_STAT)) == 0) { rc = 1; goto out; } else if (lval != KEY_READY) { warnx("unknown operation from keyproc"); goto out; } if ((lval = readop(rfd, COMM_REVOKE_RESP)) == 0) { rc = 1; goto out; } else if (lval != REVOKE_EXP && lval != REVOKE_OK) { warnx("unknown operation from revokeproc"); goto out; } /* If our certificate is up-to-date, return now. */ if (lval == REVOKE_OK) { rc = 1; goto out; } c.dfd = dfd; c.fd = afd; /* * Look up the API urls of the ACME server. */ if (!dodirs(&c, authority->api, &paths)) goto out; c.newnonce = paths.newnonce; /* Check if our account already exists or create it. */ if (!dochkacc(&c, &paths, authority->contact)) goto out; /* * If we're meant to revoke, then wait for revokeproc to send us * the certificate (if it's found at all). * Following that, submit the request to the CA then notify the * certproc, which will in turn notify the fileproc. * XXX currently we can only sign with the account key, the RFC * also mentions signing with the privat key of the cert itself. */ if (revocate) { if ((cert = readstr(rfd, COMM_CSR)) == NULL) goto out; if (!dorevoke(&c, paths.revokecert, cert)) goto out; else if (writeop(cfd, COMM_CSR_OP, CERT_REVOKE) > 0) rc = 1; goto out; } memset(&order, 0, sizeof(order)); if (!doneworder(&c, alts, altsz, &order, &paths)) goto out; chngs = calloc(order.authsz, sizeof(struct chng)); if (chngs == NULL) { warn("calloc"); goto out; } /* * Get thumbprint from acctproc. We will need it to construct * a response to the challenge */ if (writeop(afd, COMM_ACCT, ACCT_THUMBPRINT) <= 0) goto out; else if ((thumb = readstr(afd, COMM_THUMB)) == NULL) goto out; while(order.status != ORDER_VALID && order.status != ORDER_INVALID) { switch (order.status) { case ORDER_INVALID: warnx("order invalid"); goto out; case ORDER_VALID: rc = 1; continue; case ORDER_PENDING: if (order.authsz < 1) { warnx("order is in state pending but no " "authorizations know"); goto out; } for (i = 0; i < order.authsz; i++) { if (!dochngreq(&c, order.auths[i], &chngs[i])) goto out; dodbg("challenge, token: %s, uri: %s, status: " "%d", chngs[i].token, chngs[i].uri, chngs[i].status); if (chngs[i].status == CHNG_VALID || chngs[i].status == CHNG_INVALID) continue; if (chngs[i].retry++ >= RETRY_MAX) { warnx("%s: too many tries", chngs[i].uri); goto out; } if (writeop(Cfd, COMM_CHNG_OP, CHNG_SYN) <= 0) goto out; else if (writestr(Cfd, COMM_THUMB, thumb) <= 0) goto out; else if (writestr(Cfd, COMM_TOK, chngs[i].token) <= 0) goto out; /* Read that the challenge has been made. */ if (readop(Cfd, COMM_CHNG_ACK) != CHNG_ACK) goto out; } /* Write to the CA that it's ready. */ for (i = 0; i < order.authsz; i++) { if (chngs[i].status == CHNG_VALID || chngs[i].status == CHNG_INVALID) continue; if (!dochngresp(&c, &chngs[i])) goto out; } break; case ORDER_READY: /* * Write our acknowledgement that the challenges are * over. * The challenge process will remove all of the files. */ if (writeop(Cfd, COMM_CHNG_OP, CHNG_STOP) <= 0) goto out; /* Wait to receive the certificate itself. */ if ((cert = readstr(kfd, COMM_CERT)) == NULL) goto out; if (!docert(&c, order.finalize, cert)) goto out; break; default: warnx("unhandled status: %d", order.status); goto out; } if (!doupdorder(&c, &order)) goto out; dodbg("order.status %d", order.status); if (order.status == ORDER_PENDING) sleep(RETRY_DELAY); } if (order.status != ORDER_VALID) { for (i = 0; i < order.authsz; i++) { dochngreq(&c, order.auths[i], &chngs[i]); if (chngs[i].error != NULL) { if (stravis(&error, chngs[i].error, VIS_SAFE) != -1) { warnx("%s", error); free(error); error = NULL; } } } goto out; } if (order.certificate == NULL) { warnx("no certificate url received"); goto out; } if (!dogetcert(&c, order.certificate)) goto out; else if (writeop(cfd, COMM_CSR_OP, CERT_UPDATE) <= 0) goto out; else if (writebuf(cfd, COMM_CSR, c.buf.buf, c.buf.sz) <= 0) goto out; rc = 1; out: close(cfd); close(kfd); close(afd); close(Cfd); close(dfd); close(rfd); free(cert); free(url); free(thumb); free(c.kid); free(c.buf.buf); if (chngs != NULL) for (i = 0; i < order.authsz; i++) json_free_challenge(&chngs[i]); free(chngs); json_free_capaths(&paths); return rc; }
175557.c
/* * Copyright 2012-2013 Andrew Smith * Copyright 2012 Xiangfu <[email protected]> * Copyright 2013-2015 Con Kolivas <[email protected]> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 3 of the License, or (at your option) * any later version. See COPYING for more details. */ /* * Those code should be works fine with V2 and V3 bitstream of Icarus. * Operation: * No detection implement. * Input: 64B = 32B midstate + 20B fill bytes + last 12 bytes of block head. * Return: send back 32bits immediately when Icarus found a valid nonce. * no query protocol implemented here, if no data send back in ~11.3 * seconds (full cover time on 32bit nonce range by 380MH/s speed) * just send another work. * Notice: * 1. Icarus will start calculate when you push a work to them, even they * are busy. * 2. The 2 FPGAs on Icarus will distribute the job, one will calculate the * 0 ~ 7FFFFFFF, another one will cover the 80000000 ~ FFFFFFFF. * 3. It's possible for 2 FPGAs both find valid nonce in the meantime, the 2 * valid nonce will all be send back. * 4. Icarus will stop work when: a valid nonce has been found or 32 bits * nonce range is completely calculated. */ #include <float.h> #include <limits.h> #include <pthread.h> #include <stdint.h> #include <stdio.h> #include <strings.h> #include <sys/time.h> #include <unistd.h> #include <math.h> #include "config.h" #include "compat.h" #include "miner.h" #include "usbutils.h" // The serial I/O speed - Linux uses a define 'B115200' in bits/termios.h #define ICARUS_IO_SPEED 115200 #define ICARUS_BUF_SIZE 8 // The size of a successful nonce read #define ANT_READ_SIZE 5 #define ICARUS_READ_SIZE 4 #define ROCK_READ_SIZE 8 // Ensure the sizes are correct for the Serial read #if (ICARUS_READ_SIZE != 4) #error ICARUS_READ_SIZE must be 4 #endif #define ASSERT1(condition) __maybe_unused static char sizeof_uint32_t_must_be_4[(condition)?1:-1] ASSERT1(sizeof(uint32_t) == 4); // TODO: USB? Different calculation? - see usbstats to work it out e.g. 1/2 of normal send time // or even use that number? 1/2 // #define ICARUS_READ_TIME(baud) ((double)ICARUS_READ_SIZE * (double)8.0 / (double)(baud)) // maybe 1ms? #define ICARUS_READ_TIME(baud) (0.001) // USB ms timeout to wait - user specified timeouts are multiples of this #define ICA_WAIT_TIMEOUT 100 #define ANT_WAIT_TIMEOUT 10 #define AU3_WAIT_TIMEOUT 1 #define GSC_WAIT_TIMEOUT 1 #define ICARUS_WAIT_TIMEOUT (info->compac ? GSC_WAIT_TIMEOUT : (info->u3 ? AU3_WAIT_TIMEOUT : (info->ant ? ANT_WAIT_TIMEOUT : ICA_WAIT_TIMEOUT))) #define ICARUS_CMR2_TIMEOUT 1 // Defined in multiples of ICARUS_WAIT_TIMEOUT // Must of course be greater than ICARUS_READ_COUNT_TIMING/ICARUS_WAIT_TIMEOUT // There's no need to have this bigger, since the overhead/latency of extra work // is pretty small once you get beyond a 10s nonce range time and 10s also // means that nothing slower than 429MH/s can go idle so most icarus devices // will always mine without idling #define ICARUS_READ_TIME_LIMIT_MAX 100 // In timing mode: Default starting value until an estimate can be obtained // 5000 ms allows for up to a ~840MH/s device #define ICARUS_READ_COUNT_TIMING 5000 // Antminer USB is > 1GH/s so use a shorter limit // 1000 ms allows for up to ~4GH/s device #define ANTUSB_READ_COUNT_TIMING 1000 #define ANTU3_READ_COUNT_TIMING 100 #define COMPAC_READ_COUNT_TIMING 5000 #define ICARUS_READ_COUNT_MIN ICARUS_WAIT_TIMEOUT #define SECTOMS(s) ((int)((s) * 1000)) // How many ms below the expected completion time to abort work // extra in case the last read is delayed #define ICARUS_READ_REDUCE ((int)(ICARUS_WAIT_TIMEOUT * 1.5)) // For a standard Icarus REV3 (to 5 places) // Since this rounds up a the last digit - it is a slight overestimate // Thus the hash rate will be a VERY slight underestimate // (by a lot less than the displayed accuracy) // Minor inaccuracy of these numbers doesn't affect the work done, // only the displayed MH/s #define ICARUS_REV3_HASH_TIME 0.0000000026316 #define LANCELOT_HASH_TIME 0.0000000025000 #define ASICMINERUSB_HASH_TIME 0.0000000029761 // TODO: What is it? #define CAIRNSMORE1_HASH_TIME 0.0000000027000 // Per FPGA #define CAIRNSMORE2_HASH_TIME 0.0000000066600 #define NANOSEC 1000000000.0 #define ANTMINERUSB_HASH_MHZ 0.000000125 #define ANTMINERUSB_HASH_TIME (ANTMINERUSB_HASH_MHZ / (double)(opt_anu_freq)) #define ANTU3_HASH_MHZ 0.0000000032 #define ANTU3_HASH_TIME (ANTU3_HASH_MHZ / (double)(opt_au3_freq)) #define COMPAC_HASH_MHZ 0.0000000128 #define COMPAC_HASH_TIME (COMPAC_HASH_MHZ / (double)(opt_compac_freq)) #define CAIRNSMORE2_INTS 4 // Icarus Rev3 doesn't send a completion message when it finishes // the full nonce range, so to avoid being idle we must abort the // work (by starting a new work item) shortly before it finishes // // Thus we need to estimate 2 things: // 1) How many hashes were done if the work was aborted // 2) How high can the timeout be before the Icarus is idle, // to minimise the number of work items started // We set 2) to 'the calculated estimate' - ICARUS_READ_REDUCE // to ensure the estimate ends before idle // // The simple calculation used is: // Tn = Total time in seconds to calculate n hashes // Hs = seconds per hash // Xn = number of hashes // W = code/usb overhead per work // // Rough but reasonable estimate: // Tn = Hs * Xn + W (of the form y = mx + b) // // Thus: // Line of best fit (using least squares) // // Hs = (n*Sum(XiTi)-Sum(Xi)*Sum(Ti))/(n*Sum(Xi^2)-Sum(Xi)^2) // W = Sum(Ti)/n - (Hs*Sum(Xi))/n // // N.B. W is less when aborting work since we aren't waiting for the reply // to be transferred back (ICARUS_READ_TIME) // Calculating the hashes aborted at n seconds is thus just n/Hs // (though this is still a slight overestimate due to code delays) // // Both below must be exceeded to complete a set of data // Minimum how long after the first, the last data point must be #define HISTORY_SEC 60 // Minimum how many points a single ICARUS_HISTORY should have #define MIN_DATA_COUNT 5 // The value MIN_DATA_COUNT used is doubled each history until it exceeds: #define MAX_MIN_DATA_COUNT 100 static struct timeval history_sec = { HISTORY_SEC, 0 }; // Store the last INFO_HISTORY data sets // [0] = current data, not yet ready to be included as an estimate // Each new data set throws the last old set off the end thus // keeping a ongoing average of recent data #define INFO_HISTORY 10 struct ICARUS_HISTORY { struct timeval finish; double sumXiTi; double sumXi; double sumTi; double sumXi2; uint32_t values; uint32_t hash_count_min; uint32_t hash_count_max; }; enum timing_mode { MODE_DEFAULT, MODE_SHORT, MODE_LONG, MODE_VALUE }; static const char *MODE_DEFAULT_STR = "default"; static const char *MODE_SHORT_STR = "short"; static const char *MODE_SHORT_STREQ = "short="; static const char *MODE_LONG_STR = "long"; static const char *MODE_LONG_STREQ = "long="; static const char *MODE_VALUE_STR = "value"; static const char *MODE_UNKNOWN_STR = "unknown"; #define MAX_DEVICE_NUM 100 #define MAX_WORK_BUFFER_SIZE 2 #define MAX_CHIP_NUM 24 // Set it to 3, 5 or 9 #define NONCE_CORRECTION_TIMES 5 #define MAX_TRIES 4 #define RM_CMD_MASK 0x0F #define RM_STATUS_MASK 0xF0 #define RM_CHIP_MASK 0x3F #define RM_PRODUCT_MASK 0xC0 #define RM_PRODUCT_RBOX 0x00 #define RM_PRODUCT_T1 0x40 #define RM_PRODUCT_T2 0x80 #define RM_PRODUCT_TEST 0xC0 #if (NONCE_CORRECTION_TIMES == 5) static int32_t rbox_corr_values[] = {0, 1, -1, -2, -4}; #endif #if (NONCE_CORRECTION_TIMES == 9) static int32_t rbox_corr_values[] = {0, 1, -1, 2, -2, 3, -3, 4, -4}; #endif #if (NONCE_CORRECTION_TIMES == 3) static int32_t rbox_corr_values[] = {0, 1, -1}; #endif #define ANT_QUEUE_NUM 36 typedef enum { NONCE_DATA1_OFFSET = 0, NONCE_DATA2_OFFSET, NONCE_DATA3_OFFSET, NONCE_DATA4_OFFSET, NONCE_TASK_CMD_OFFSET, NONCE_CHIP_NO_OFFSET, NONCE_TASK_NO_OFFSET, NONCE_COMMAND_OFFSET, NONCE_MAX_OFFSET } NONCE_OFFSET; typedef enum { NONCE_DATA_CMD = 0, NONCE_TASK_COMPLETE_CMD, NONCE_GET_TASK_CMD, } NONCE_COMMAND; typedef struct nonce_data { int chip_no; unsigned int task_no ; unsigned char work_state; int cmd_value; } NONCE_DATA; typedef enum { ROCKMINER_RBOX = 0, ROCKMINER_T1, ROCKMINER_T2, ROCKMINER_MAX } ROCKMINER_PRODUCT_T; typedef struct rockminer_chip_info { unsigned char freq; int error_cnt; time_t last_received_task_complete_time; } ROCKMINER_CHIP_INFO; typedef struct rockminer_device_info { unsigned char detect_chip_no; unsigned char chip_max; unsigned char product_id; float min_frq; float def_frq; float max_frq; ROCKMINER_CHIP_INFO chip[MAX_CHIP_NUM]; time_t dev_detect_time; } ROCKMINER_DEVICE_INFO; struct ICARUS_INFO { enum sub_ident ident; int intinfo; // time to calculate the golden_ob uint64_t golden_hashes; struct timeval golden_tv; struct ICARUS_HISTORY history[INFO_HISTORY+1]; uint32_t min_data_count; int timeout; // seconds per Hash double Hs; // ms til we abort int read_time; // ms limit for (short=/long=) read_time int read_time_limit; // How long without hashes is considered a failed device int fail_time; enum timing_mode timing_mode; bool do_icarus_timing; double fullnonce; int count; double W; uint32_t values; uint64_t hash_count_range; // Determine the cost of history processing // (which will only affect W) uint64_t history_count; struct timeval history_time; // icarus-options int baud; int work_division; int fpga_count; uint32_t nonce_mask; uint8_t cmr2_speed; bool speed_next_work; bool flash_next_work; int nonce_size; bool failing; pthread_mutex_t lock; ROCKMINER_DEVICE_INFO rmdev; struct work *base_work; // For when we roll work struct work *g_work[MAX_CHIP_NUM][MAX_WORK_BUFFER_SIZE]; uint32_t last_nonce[MAX_CHIP_NUM][MAX_WORK_BUFFER_SIZE]; char rock_init[64]; uint64_t nonces_checked; uint64_t nonces_correction_times; uint64_t nonces_correction_tests; uint64_t nonces_fail; uint64_t nonces_correction[NONCE_CORRECTION_TIMES]; struct work **antworks; int nonces; int workid; bool ant; bool u3; bool compac; float compac_ramp_freq; float compac_target_freq; uint16_t compac_ramp_idx; }; #define ICARUS_MIDSTATE_SIZE 32 #define ICARUS_UNUSED_SIZE 16 #define ICARUS_WORK_SIZE 12 #define ICARUS_WORK_DATA_OFFSET 64 #define ICARUS_CMR2_SPEED_FACTOR 2.5 #define ICARUS_CMR2_SPEED_MIN_INT 100 #define ICARUS_CMR2_SPEED_DEF_INT 180 #define ICARUS_CMR2_SPEED_MAX_INT 220 #define CMR2_INT_TO_SPEED(_speed) ((uint8_t)((float)_speed / ICARUS_CMR2_SPEED_FACTOR)) #define ICARUS_CMR2_SPEED_MIN CMR2_INT_TO_SPEED(ICARUS_CMR2_SPEED_MIN_INT) #define ICARUS_CMR2_SPEED_DEF CMR2_INT_TO_SPEED(ICARUS_CMR2_SPEED_DEF_INT) #define ICARUS_CMR2_SPEED_MAX CMR2_INT_TO_SPEED(ICARUS_CMR2_SPEED_MAX_INT) #define ICARUS_CMR2_SPEED_INC 1 #define ICARUS_CMR2_SPEED_DEC -1 #define ICARUS_CMR2_SPEED_FAIL -10 #define ICARUS_CMR2_PREFIX ((uint8_t)0xB7) #define ICARUS_CMR2_CMD_SPEED ((uint8_t)0) #define ICARUS_CMR2_CMD_FLASH ((uint8_t)1) #define ICARUS_CMR2_DATA_FLASH_OFF ((uint8_t)0) #define ICARUS_CMR2_DATA_FLASH_ON ((uint8_t)1) #define ICARUS_CMR2_CHECK ((uint8_t)0x6D) #define ANT_UNUSED_SIZE 15 struct ICARUS_WORK { uint8_t midstate[ICARUS_MIDSTATE_SIZE]; // These 4 bytes are for CMR2 bitstreams that handle MHz adjustment uint8_t check; uint8_t data; uint8_t cmd; uint8_t prefix; uint8_t unused[ANT_UNUSED_SIZE]; uint8_t id; // Used only by ANT, otherwise unused by other icarus uint8_t work[ICARUS_WORK_SIZE]; }; #define ANT_U1_DEFFREQ 200 #define ANT_U3_DEFFREQ 225 #define ANT_U3_MAXFREQ 250 #define COMPAC_DEFFREQ 150 #define COMPAC_MAXFREQ 500 struct { float freq; uint16_t hex; } u3freqtable[] = { { 100, 0x0783 }, { 125, 0x0983 }, { 150, 0x0b83 }, { 175, 0x0d83 }, { 193.75, 0x0f03 }, { 196.88, 0x1f07 }, { 200, 0x0782 }, { 206.25, 0x1006 }, { 212.5, 0x1086 }, { 218.75, 0x1106 }, { 225, 0x0882 }, { 237.5, 0x1286 }, { 243.75, 0x1306 }, { 250, 0x0982 }, }; struct { float freq; uint16_t hex; } compacfreqtable[] = { { 100, 0x0783 }, { 106.25, 0x0803 }, { 112.5, 0x0883 }, { 118.75, 0x0903 }, { 125, 0x0983 }, { 131.25, 0x0a03 }, { 137.5, 0x0a83 }, { 143.75, 0x1687 }, { 150, 0x0b83 }, { 156.25, 0x0c03 }, { 162.5, 0x0c83 }, { 168.75, 0x1a87 }, { 175, 0x0d83 }, { 181.25, 0x0e83 }, { 193.75, 0x0f03 }, { 196.88, 0x1f07 }, { 200, 0x0782 }, { 206.25, 0x1006 }, { 212.5, 0x1086 }, { 218.75, 0x1106 }, { 225, 0x0882 }, { 231.25, 0x1206 }, { 237.5, 0x1286 }, { 243.75, 0x1306 }, { 250, 0x0982 }, { 256.25, 0x1406 }, { 262.5, 0x0a02 }, { 268.75, 0x1506 }, { 275, 0x0a82 }, { 281.25, 0x1606 }, { 287.5, 0x0b02 }, { 293.75, 0x1706 }, { 300, 0x0b82 }, { 306.25, 0x1806 }, { 312.5, 0x0c02 }, { 318.75, 0x1906 }, { 325, 0x0c82 }, { 331.25, 0x1a06 }, { 337.5, 0x0d02 }, { 343.75, 0x1b06 }, { 350, 0x0d82 }, { 356.25, 0x1c06 }, { 362.5, 0x0e02 }, { 368.75, 0x1d06 }, { 375, 0x0e82 }, { 381.25, 0x1e06 }, { 387.5, 0x0f02 }, { 393.75, 0x1f06 }, { 400, 0x0f82 }, { 412.5, 0x1006 }, { 425, 0x0801 }, { 437.5, 0x1105 }, { 450, 0x0881 }, { 462.5, 0x1205 }, { 475, 0x0901 }, { 487.5, 0x1305 }, { 500, 0x0981 }, }; #define END_CONDITION 0x0000ffff // Looking for options in --icarus-timing and --icarus-options: // // Code increments this each time we start to look at a device // However, this means that if other devices are checked by // the Icarus code (e.g. Avalon only as at 20130517) // they will count in the option offset // // This, however, is deterministic so that's OK // // If we were to increment after successfully finding an Icarus // that would be random since an Icarus may fail and thus we'd // not be able to predict the option order // // Devices are checked in the order libusb finds them which is ? // static int option_offset = -1; /* #define ICA_BUFSIZ (0x200) static void transfer_read(struct cgpu_info *icarus, uint8_t request_type, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, char *buf, int bufsiz, int *amount, enum usb_cmds cmd) { int err; err = usb_transfer_read(icarus, request_type, bRequest, wValue, wIndex, buf, bufsiz, amount, cmd); applog(LOG_DEBUG, "%s: cgid %d %s got err %d", icarus->drv->name, icarus->cgminer_id, usb_cmdname(cmd), err); } */ static void _transfer(struct cgpu_info *icarus, uint8_t request_type, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint32_t *data, int siz, enum usb_cmds cmd) { int err; err = usb_transfer_data(icarus, request_type, bRequest, wValue, wIndex, data, siz, cmd); applog(LOG_DEBUG, "%s: cgid %d %s got err %d", icarus->drv->name, icarus->cgminer_id, usb_cmdname(cmd), err); } #define transfer(icarus, request_type, bRequest, wValue, wIndex, cmd) \ _transfer(icarus, request_type, bRequest, wValue, wIndex, NULL, 0, cmd) static void icarus_initialise(struct cgpu_info *icarus, int baud) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); uint16_t wValue, wIndex; enum sub_ident ident; int interface; if (icarus->usbinfo.nodev) return; interface = _usb_interface(icarus, info->intinfo); ident = usb_ident(icarus); switch (ident) { case IDENT_BLT: case IDENT_LLT: case IDENT_CMR1: case IDENT_CMR2: // Reset transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_RESET, FTDI_VALUE_RESET, interface, C_RESET); if (icarus->usbinfo.nodev) return; // Latency _usb_ftdi_set_latency(icarus, info->intinfo); if (icarus->usbinfo.nodev) return; // Set data control transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_DATA, FTDI_VALUE_DATA_BLT, interface, C_SETDATA); if (icarus->usbinfo.nodev) return; // default to BLT/LLT 115200 wValue = FTDI_VALUE_BAUD_BLT; wIndex = FTDI_INDEX_BAUD_BLT; if (ident == IDENT_CMR1 || ident == IDENT_CMR2) { switch (baud) { case 115200: wValue = FTDI_VALUE_BAUD_CMR_115; wIndex = FTDI_INDEX_BAUD_CMR_115; break; case 57600: wValue = FTDI_VALUE_BAUD_CMR_57; wIndex = FTDI_INDEX_BAUD_CMR_57; break; default: quit(1, "icarus_intialise() invalid baud (%d) for Cairnsmore1", baud); break; } } // Set the baud transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_BAUD, wValue, (wIndex & 0xff00) | interface, C_SETBAUD); if (icarus->usbinfo.nodev) return; // Set Modem Control transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_MODEM, FTDI_VALUE_MODEM, interface, C_SETMODEM); if (icarus->usbinfo.nodev) return; // Set Flow Control transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_FLOW, FTDI_VALUE_FLOW, interface, C_SETFLOW); if (icarus->usbinfo.nodev) return; // Clear any sent data transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_RESET, FTDI_VALUE_PURGE_TX, interface, C_PURGETX); if (icarus->usbinfo.nodev) return; // Clear any received data transfer(icarus, FTDI_TYPE_OUT, FTDI_REQUEST_RESET, FTDI_VALUE_PURGE_RX, interface, C_PURGERX); break; case IDENT_ICA: // Set Data Control transfer(icarus, PL2303_CTRL_OUT, PL2303_REQUEST_CTRL, PL2303_VALUE_CTRL, interface, C_SETDATA); if (icarus->usbinfo.nodev) return; // Set Line Control uint32_t ica_data[2] = { PL2303_VALUE_LINE0, PL2303_VALUE_LINE1 }; _transfer(icarus, PL2303_CTRL_OUT, PL2303_REQUEST_LINE, PL2303_VALUE_LINE, interface, &ica_data[0], PL2303_VALUE_LINE_SIZE, C_SETLINE); if (icarus->usbinfo.nodev) return; // Vendor transfer(icarus, PL2303_VENDOR_OUT, PL2303_REQUEST_VENDOR, PL2303_VALUE_VENDOR, interface, C_VENDOR); break; case IDENT_AMU: case IDENT_ANU: case IDENT_AU3: case IDENT_BSC: case IDENT_GSC: case IDENT_LIN: // Enable the UART transfer(icarus, CP210X_TYPE_OUT, CP210X_REQUEST_IFC_ENABLE, CP210X_VALUE_UART_ENABLE, interface, C_ENABLE_UART); if (icarus->usbinfo.nodev) return; // Set data control transfer(icarus, CP210X_TYPE_OUT, CP210X_REQUEST_DATA, CP210X_VALUE_DATA, interface, C_SETDATA); if (icarus->usbinfo.nodev) return; // Set the baud uint32_t data = CP210X_DATA_BAUD; _transfer(icarus, CP210X_TYPE_OUT, CP210X_REQUEST_BAUD, 0, interface, &data, sizeof(data), C_SETBAUD); break; case IDENT_AVA: break; default: quit(1, "icarus_intialise() called with invalid %s cgid %i ident=%d", icarus->drv->name, icarus->cgminer_id, ident); } } static void rev(unsigned char *s, size_t l) { size_t i, j; unsigned char t; for (i = 0, j = l - 1; i < j; i++, j--) { t = s[i]; s[i] = s[j]; s[j] = t; } } #define ICA_NONCE_ERROR -1 #define ICA_NONCE_OK 0 #define ICA_NONCE_RESTART 1 #define ICA_NONCE_TIMEOUT 2 static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct timeval *tv_start, struct timeval *tv_finish, struct thr_info *thr, int read_time) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); int err, amt, rc; if (icarus->usbinfo.nodev) return ICA_NONCE_ERROR; cgtime(tv_start); err = usb_read_ii_timeout_cancellable(icarus, info->intinfo, (char *)buf, info->nonce_size, &amt, read_time, C_GETRESULTS); cgtime(tv_finish); if (err < 0 && err != LIBUSB_ERROR_TIMEOUT) { applog(LOG_ERR, "%s %i: Comms error (rerr=%d amt=%d)", icarus->drv->name, icarus->device_id, err, amt); dev_error(icarus, REASON_DEV_COMMS_ERROR); return ICA_NONCE_ERROR; } if (amt >= info->nonce_size) return ICA_NONCE_OK; rc = SECTOMS(tdiff(tv_finish, tv_start)); if (thr && thr->work_restart) { applog(LOG_DEBUG, "Icarus Read: Work restart at %d ms", rc); return ICA_NONCE_RESTART; } if (amt > 0) applog(LOG_DEBUG, "Icarus Read: Timeout reading for %d ms", rc); else applog(LOG_DEBUG, "Icarus Read: No data for %d ms", rc); return ICA_NONCE_TIMEOUT; } static const char *timing_mode_str(enum timing_mode timing_mode) { switch(timing_mode) { case MODE_DEFAULT: return MODE_DEFAULT_STR; case MODE_SHORT: return MODE_SHORT_STR; case MODE_LONG: return MODE_LONG_STR; case MODE_VALUE: return MODE_VALUE_STR; default: return MODE_UNKNOWN_STR; } } static void set_timing_mode(int this_option_offset, struct cgpu_info *icarus) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); int read_count_timing = 0; enum sub_ident ident; double Hs, fail_time; char buf[BUFSIZ+1]; char *ptr, *comma, *eq; size_t max; int i; if (opt_icarus_timing == NULL) buf[0] = '\0'; else { ptr = opt_icarus_timing; for (i = 0; i < this_option_offset; i++) { comma = strchr(ptr, ','); if (comma == NULL) break; ptr = comma + 1; } comma = strchr(ptr, ','); if (comma == NULL) max = strlen(ptr); else max = comma - ptr; if (max > BUFSIZ) max = BUFSIZ; strncpy(buf, ptr, max); buf[max] = '\0'; } ident = usb_ident(icarus); switch (ident) { case IDENT_ICA: case IDENT_AVA: info->Hs = ICARUS_REV3_HASH_TIME; read_count_timing = ICARUS_READ_COUNT_TIMING; break; case IDENT_BLT: case IDENT_LLT: info->Hs = LANCELOT_HASH_TIME; read_count_timing = ICARUS_READ_COUNT_TIMING; break; case IDENT_AMU: info->Hs = ASICMINERUSB_HASH_TIME; read_count_timing = ICARUS_READ_COUNT_TIMING; break; case IDENT_CMR1: info->Hs = CAIRNSMORE1_HASH_TIME; read_count_timing = ICARUS_READ_COUNT_TIMING; break; case IDENT_CMR2: info->Hs = CAIRNSMORE2_HASH_TIME; read_count_timing = ICARUS_READ_COUNT_TIMING; break; case IDENT_ANU: info->Hs = ANTMINERUSB_HASH_TIME; read_count_timing = ANTUSB_READ_COUNT_TIMING; break; case IDENT_AU3: info->Hs = ANTU3_HASH_TIME; read_count_timing = ANTU3_READ_COUNT_TIMING; break; case IDENT_BSC: case IDENT_GSC: info->Hs = COMPAC_HASH_TIME; read_count_timing = COMPAC_READ_COUNT_TIMING; break; default: quit(1, "Icarus get_options() called with invalid %s ident=%d", icarus->drv->name, ident); } info->read_time = 0; info->read_time_limit = 0; // 0 = no limit if (strcasecmp(buf, MODE_SHORT_STR) == 0) { // short info->read_time = read_count_timing; info->timing_mode = MODE_SHORT; info->do_icarus_timing = true; } else if (strncasecmp(buf, MODE_SHORT_STREQ, strlen(MODE_SHORT_STREQ)) == 0) { // short=limit info->read_time = read_count_timing; info->timing_mode = MODE_SHORT; info->do_icarus_timing = true; info->read_time_limit = atoi(&buf[strlen(MODE_SHORT_STREQ)]); if (info->read_time_limit < 0) info->read_time_limit = 0; if (info->read_time_limit > ICARUS_READ_TIME_LIMIT_MAX) info->read_time_limit = ICARUS_READ_TIME_LIMIT_MAX; } else if (strcasecmp(buf, MODE_LONG_STR) == 0) { // long info->read_time = read_count_timing; info->timing_mode = MODE_LONG; info->do_icarus_timing = true; } else if (strncasecmp(buf, MODE_LONG_STREQ, strlen(MODE_LONG_STREQ)) == 0) { // long=limit info->read_time = read_count_timing; info->timing_mode = MODE_LONG; info->do_icarus_timing = true; info->read_time_limit = atoi(&buf[strlen(MODE_LONG_STREQ)]); if (info->read_time_limit < 0) info->read_time_limit = 0; if (info->read_time_limit > ICARUS_READ_TIME_LIMIT_MAX) info->read_time_limit = ICARUS_READ_TIME_LIMIT_MAX; } else if ((Hs = atof(buf)) != 0) { // ns[=read_time] info->Hs = Hs / NANOSEC; info->fullnonce = info->Hs * (((double)0xffffffff) + 1); if ((eq = strchr(buf, '=')) != NULL) info->read_time = atoi(eq+1) * ICARUS_WAIT_TIMEOUT; if (info->read_time < ICARUS_READ_COUNT_MIN) info->read_time = SECTOMS(info->fullnonce) - ICARUS_READ_REDUCE; if (unlikely(info->read_time < ICARUS_READ_COUNT_MIN)) info->read_time = ICARUS_READ_COUNT_MIN; info->timing_mode = MODE_VALUE; info->do_icarus_timing = false; } else { // Anything else in buf just uses DEFAULT mode info->fullnonce = info->Hs * (((double)0xffffffff) + 1); if ((eq = strchr(buf, '=')) != NULL) info->read_time = atoi(eq+1) * ICARUS_WAIT_TIMEOUT; if (info->read_time < ICARUS_READ_COUNT_MIN) info->read_time = SECTOMS(info->fullnonce) - ICARUS_READ_REDUCE; if (unlikely(info->read_time < ICARUS_READ_COUNT_MIN)) info->read_time = ICARUS_READ_COUNT_MIN; info->timing_mode = MODE_DEFAULT; info->do_icarus_timing = false; } info->min_data_count = MIN_DATA_COUNT; // All values are in multiples of ICARUS_WAIT_TIMEOUT info->read_time_limit *= ICARUS_WAIT_TIMEOUT; applog(LOG_DEBUG, "%s: cgid %d Init: mode=%s read_time=%dms limit=%dms Hs=%e", icarus->drv->name, icarus->cgminer_id, timing_mode_str(info->timing_mode), info->read_time, info->read_time_limit, info->Hs); /* Set the time to detect a dead device to 30 full nonce ranges. */ fail_time = info->Hs * 0xffffffffull * 30.0; /* Integer accuracy is definitely enough. */ info->fail_time = fail_time + 1; } static uint32_t mask(int work_division) { uint32_t nonce_mask = 0x7fffffff; // yes we can calculate these, but this way it's easy to see what they are switch (work_division) { case 1: nonce_mask = 0xffffffff; break; case 2: nonce_mask = 0x7fffffff; break; case 4: nonce_mask = 0x3fffffff; break; case 8: nonce_mask = 0x1fffffff; break; default: quit(1, "Invalid2 icarus-options for work_division (%d) must be 1, 2, 4 or 8", work_division); } return nonce_mask; } static void get_options(int this_option_offset, struct cgpu_info *icarus, int *baud, int *work_division, int *fpga_count) { char buf[BUFSIZ+1]; char *ptr, *comma, *colon, *colon2; enum sub_ident ident; size_t max; int i, tmp; if (opt_icarus_options == NULL) buf[0] = '\0'; else { ptr = opt_icarus_options; for (i = 0; i < this_option_offset; i++) { comma = strchr(ptr, ','); if (comma == NULL) break; ptr = comma + 1; } comma = strchr(ptr, ','); if (comma == NULL) max = strlen(ptr); else max = comma - ptr; if (max > BUFSIZ) max = BUFSIZ; strncpy(buf, ptr, max); buf[max] = '\0'; } ident = usb_ident(icarus); switch (ident) { case IDENT_ICA: case IDENT_BLT: case IDENT_LLT: case IDENT_AVA: *baud = ICARUS_IO_SPEED; *work_division = 2; *fpga_count = 2; break; case IDENT_AMU: case IDENT_ANU: case IDENT_AU3: case IDENT_BSC: case IDENT_GSC: *baud = ICARUS_IO_SPEED; *work_division = 1; *fpga_count = 1; break; case IDENT_CMR1: *baud = ICARUS_IO_SPEED; *work_division = 2; *fpga_count = 2; break; case IDENT_CMR2: *baud = ICARUS_IO_SPEED; *work_division = 1; *fpga_count = 1; break; default: quit(1, "Icarus get_options() called with invalid %s ident=%d", icarus->drv->name, ident); } if (*buf) { colon = strchr(buf, ':'); if (colon) *(colon++) = '\0'; if (*buf) { tmp = atoi(buf); switch (tmp) { case 115200: *baud = 115200; break; case 57600: *baud = 57600; break; default: quit(1, "Invalid icarus-options for baud (%s) must be 115200 or 57600", buf); } } if (colon && *colon) { colon2 = strchr(colon, ':'); if (colon2) *(colon2++) = '\0'; if (*colon) { tmp = atoi(colon); if (tmp == 1 || tmp == 2 || tmp == 4 || tmp == 8) { *work_division = tmp; *fpga_count = tmp; // default to the same } else { quit(1, "Invalid icarus-options for work_division (%s) must be 1, 2, 4 or 8", colon); } } if (colon2 && *colon2) { tmp = atoi(colon2); if (tmp > 0 && tmp <= *work_division) *fpga_count = tmp; else { quit(1, "Invalid icarus-options for fpga_count (%s) must be >0 and <=work_division (%d)", colon2, *work_division); } } } } } unsigned char crc5(unsigned char *ptr, unsigned char len) { unsigned char i, j, k; unsigned char crc = 0x1f; unsigned char crcin[5] = {1, 1, 1, 1, 1}; unsigned char crcout[5] = {1, 1, 1, 1, 1}; unsigned char din = 0; j = 0x80; k = 0; for (i = 0; i < len; i++) { if (*ptr & j) din = 1; else din = 0; crcout[0] = crcin[4] ^ din; crcout[1] = crcin[0]; crcout[2] = crcin[1] ^ crcin[4] ^ din; crcout[3] = crcin[2]; crcout[4] = crcin[3]; j = j >> 1; k++; if (k == 8) { j = 0x80; k = 0; ptr++; } memcpy(crcin, crcout, 5); } crc = 0; if (crcin[4]) crc |= 0x10; if (crcin[3]) crc |= 0x08; if (crcin[2]) crc |= 0x04; if (crcin[1]) crc |= 0x02; if (crcin[0]) crc |= 0x01; return crc; } static uint16_t anu_find_freqhex(void) { float fout, best_fout = opt_anu_freq; int od, nf, nr, no, n, m, bs; uint16_t anu_freq_hex = 0; float best_diff = 1000; if (!best_fout) best_fout = ANT_U1_DEFFREQ; for (od = 0; od < 4; od++) { no = 1 << od; for (n = 0; n < 16; n++) { nr = n + 1; for (m = 0; m < 64; m++) { nf = m + 1; fout = 25 * (float)nf /((float)(nr) * (float)(no)); if (fabsf(fout - opt_anu_freq) > best_diff) continue; if (500 <= (fout * no) && (fout * no) <= 1000) bs = 1; else bs = 0; best_diff = fabsf(fout - opt_anu_freq); best_fout = fout; anu_freq_hex = (bs << 14) | (m << 7) | (n << 2) | od; if (fout == opt_anu_freq) { applog(LOG_DEBUG, "ANU found exact frequency %.1f with hex %04x", opt_anu_freq, anu_freq_hex); goto out; } } } } applog(LOG_NOTICE, "ANU found nearest frequency %.1f with hex %04x", best_fout, anu_freq_hex); out: return anu_freq_hex; } static uint16_t anu3_find_freqhex(void) { int i = 0, freq = opt_au3_freq, u3freq; uint16_t anu_freq_hex = 0x0882; if (!freq) freq = ANT_U3_DEFFREQ; do { u3freq = u3freqtable[i].freq; if (u3freq <= freq) anu_freq_hex = u3freqtable[i].hex; i++; } while (u3freq < ANT_U3_MAXFREQ); return anu_freq_hex; } static bool set_anu_freq(struct cgpu_info *icarus, struct ICARUS_INFO *info, uint16_t anu_freq_hex) { unsigned char cmd_buf[4], rdreg_buf[4]; int amount, err; char buf[512]; if (!anu_freq_hex) anu_freq_hex = anu_find_freqhex(); memset(cmd_buf, 0, 4); memset(rdreg_buf, 0, 4); cmd_buf[0] = 2 | 0x80; cmd_buf[1] = (anu_freq_hex & 0xff00u) >> 8; cmd_buf[2] = (anu_freq_hex & 0x00ffu); cmd_buf[3] = crc5(cmd_buf, 27); rdreg_buf[0] = 4 | 0x80; rdreg_buf[1] = 0; //16-23 rdreg_buf[2] = 0x04; //8-15 rdreg_buf[3] = crc5(rdreg_buf, 27); applog(LOG_DEBUG, "%s %i: Send frequency %02x%02x%02x%02x", icarus->drv->name, icarus->device_id, cmd_buf[0], cmd_buf[1], cmd_buf[2], cmd_buf[3]); err = usb_write_ii(icarus, info->intinfo, (char *)cmd_buf, 4, &amount, C_ANU_SEND_CMD); if (err != LIBUSB_SUCCESS || amount != 4) { applog(LOG_ERR, "%s %i: Write freq Comms error (werr=%d amount=%d)", icarus->drv->name, icarus->device_id, err, amount); return false; } err = usb_read_ii_timeout(icarus, info->intinfo, buf, 512, &amount, 100, C_GETRESULTS); if (err < 0 && err != LIBUSB_ERROR_TIMEOUT) { applog(LOG_ERR, "%s %i: Read freq Comms error (rerr=%d amount=%d)", icarus->drv->name, icarus->device_id, err, amount); return false; } applog(LOG_DEBUG, "%s %i: Send freq getstatus %02x%02x%02x%02x", icarus->drv->name, icarus->device_id, rdreg_buf[0], rdreg_buf[1], rdreg_buf[2], rdreg_buf[3]); err = usb_write_ii(icarus, info->intinfo, (char *)cmd_buf, 4, &amount, C_ANU_SEND_RDREG); if (err != LIBUSB_SUCCESS || amount != 4) { applog(LOG_ERR, "%s %i: Write freq Comms error (werr=%d amount=%d)", icarus->drv->name, icarus->device_id, err, amount); return false; } err = usb_read_ii_timeout(icarus, info->intinfo, buf, 512, &amount, 100, C_GETRESULTS); if (err < 0 && err != LIBUSB_ERROR_TIMEOUT) { applog(LOG_ERR, "%s %i: Read freq Comms error (rerr=%d amount=%d)", icarus->drv->name, icarus->device_id, err, amount); return false; } return true; } static void set_anu_volt(struct cgpu_info *icarus) { unsigned char voltage_data[2], cmd_buf[4]; char volt_buf[8]; int err, amount; /* Allow a zero setting to imply not to try and set voltage */ if (!opt_au3_volt) return; if (opt_au3_volt < 725 || opt_au3_volt > 850) { applog(LOG_WARNING, "Invalid ANU voltage %d specified, must be 725-850", opt_au3_volt); return; } sprintf(volt_buf, "%04d", opt_au3_volt); hex2bin(voltage_data, volt_buf, 2); cmd_buf[0] = 0xaa; cmd_buf[1] = voltage_data[0]; cmd_buf[1] &=0x0f; cmd_buf[1] |=0xb0; cmd_buf[2] = voltage_data[1]; cmd_buf[3] = 0x00; //0-7 cmd_buf[3] = crc5(cmd_buf, 4*8 - 5); cmd_buf[3] |= 0xc0; applog(LOG_INFO, "Send ANU voltage %02x%02x%02x%02x", cmd_buf[0], cmd_buf[1], cmd_buf[2], cmd_buf[3]); cgsleep_ms(500); err = usb_write(icarus, (char * )cmd_buf, 4, &amount, C_ANU_SEND_VOLT); if (err != LIBUSB_SUCCESS || amount != 4) applog(LOG_ERR, "Write voltage Comms error (werr=%d amount=%d)", err, amount); } static void rock_init_last_received_task_complete_time(struct ICARUS_INFO *info) { int i; if (opt_rock_freq < info->rmdev.min_frq || opt_rock_freq > info->rmdev.max_frq) opt_rock_freq = info->rmdev.def_frq; for (i = 0; i < MAX_CHIP_NUM; ++i) { info->rmdev.chip[i].last_received_task_complete_time = time(NULL); info->rmdev.chip[i].freq = opt_rock_freq/10 - 1; info->rmdev.chip[i].error_cnt = 0; } info->rmdev.dev_detect_time = time(NULL); } static void icarus_clear(struct cgpu_info *icarus, struct ICARUS_INFO *info) { char buf[512]; int amt; do { usb_read_ii_timeout(icarus, info->intinfo, buf, 512, &amt, 100, C_GETRESULTS); } while (amt > 0); } static struct cgpu_info *icarus_detect_one(struct libusb_device *dev, struct usb_find_devices *found) { int this_option_offset = ++option_offset; struct ICARUS_INFO *info; struct timeval tv_start, tv_finish; // Block 171874 nonce = (0xa2870100) = 0x000187a2 // N.B. golden_ob MUST take less time to calculate // than the timeout set in icarus_open() // This one takes ~0.53ms on Rev3 Icarus const char golden_ob[] = "4679ba4ec99876bf4bfe086082b40025" "4df6c356451471139a3afa71e48f544a" "00000000000000000000000000000000" "0000000087320b1a1426674f2fa722ce"; const char golden_nonce[] = "000187a2"; const uint32_t golden_nonce_val = 0x000187a2; unsigned char nonce_bin[ICARUS_BUF_SIZE]; struct ICARUS_WORK workdata; char *nonce_hex; int baud, uninitialised_var(work_division), uninitialised_var(fpga_count); bool anu_freqset = false; struct cgpu_info *icarus; int ret, err, amount, tries, i; bool ok; bool cmr2_ok[CAIRNSMORE2_INTS]; int cmr2_count; if ((sizeof(workdata) << 1) != (sizeof(golden_ob) - 1)) quithere(1, "Data and golden_ob sizes don't match"); icarus = usb_alloc_cgpu(&icarus_drv, 1); if (!usb_init(icarus, dev, found)) goto shin; get_options(this_option_offset, icarus, &baud, &work_division, &fpga_count); hex2bin((void *)(&workdata), golden_ob, sizeof(workdata)); info = cgcalloc(1, sizeof(struct ICARUS_INFO)); icarus->device_data = (void *)info; info->ident = usb_ident(icarus); switch (info->ident) { case IDENT_ICA: case IDENT_AVA: case IDENT_BLT: case IDENT_LLT: case IDENT_AMU: case IDENT_CMR1: info->timeout = ICARUS_WAIT_TIMEOUT; break; case IDENT_ANU: info->timeout = ANT_WAIT_TIMEOUT; break; case IDENT_AU3: info->timeout = AU3_WAIT_TIMEOUT; break; case IDENT_CMR2: if (found->intinfo_count != CAIRNSMORE2_INTS) { quithere(1, "CMR2 Interface count (%d) isn't expected: %d", found->intinfo_count, CAIRNSMORE2_INTS); } info->timeout = ICARUS_CMR2_TIMEOUT; cmr2_count = 0; for (i = 0; i < CAIRNSMORE2_INTS; i++) cmr2_ok[i] = false; break; default: quit(1, "%s icarus_detect_one() invalid %s ident=%d", icarus->drv->dname, icarus->drv->dname, info->ident); } info->nonce_size = ICARUS_READ_SIZE; // For CMR2 test each USB Interface retry: tries = 2; ok = false; while (!ok && tries-- > 0) { icarus_clear(icarus, info); icarus_initialise(icarus, baud); if (info->u3) { uint16_t anu_freq_hex = anu3_find_freqhex(); set_anu_volt(icarus); if (!set_anu_freq(icarus, info, anu_freq_hex)) { applog(LOG_WARNING, "%s %i: Failed to set frequency, too much overclock?", icarus->drv->name, icarus->device_id); continue; } icarus->usbdev->ident = info->ident = IDENT_AU3; info->Hs = ANTU3_HASH_TIME; icarus->drv->name = "AU3"; applog(LOG_DEBUG, "%s %i: Detected Antminer U3", icarus->drv->name, icarus->device_id); } else if (info->ident == IDENT_ANU && !info->u3) { if (!set_anu_freq(icarus, info, 0)) { applog(LOG_WARNING, "%s %i: Failed to set frequency, too much overclock?", icarus->drv->name, icarus->device_id); continue; } } err = usb_write_ii(icarus, info->intinfo, (char *)(&workdata), sizeof(workdata), &amount, C_SENDWORK); if (err != LIBUSB_SUCCESS || amount != sizeof(workdata)) continue; memset(nonce_bin, 0, sizeof(nonce_bin)); ret = icarus_get_nonce(icarus, nonce_bin, &tv_start, &tv_finish, NULL, 300); if (ret != ICA_NONCE_OK) continue; if (info->nonce_size == ICARUS_READ_SIZE && usb_buffer_size(icarus) == 4) { applog(LOG_DEBUG, "%s %i: Detected Rockminer, deferring detection", icarus->drv->name, icarus->device_id); usb_buffer_clear(icarus); break; } if (info->nonce_size == ICARUS_READ_SIZE && usb_buffer_size(icarus) == 1) { info->ant = true; usb_buffer_clear(icarus); icarus->usbdev->ident = info->ident = IDENT_ANU; info->nonce_size = ANT_READ_SIZE; info->Hs = ANTMINERUSB_HASH_TIME; icarus->drv->name = "ANU"; applog(LOG_DEBUG, "%s %i: Detected Antminer U1/2/3, changing nonce size to %d", icarus->drv->name, icarus->device_id, ANT_READ_SIZE); } nonce_hex = bin2hex(nonce_bin, sizeof(nonce_bin)); if (strncmp(nonce_hex, golden_nonce, 8) == 0) { if (info->ant && !anu_freqset) anu_freqset = true; else ok = true; } else { if (tries < 0 && info->ident != IDENT_CMR2) { applog(LOG_ERR, "Icarus Detect: " "Test failed at %s: get %s, should: %s", icarus->device_path, nonce_hex, golden_nonce); } } free(nonce_hex); } if (!ok) { if (info->ident != IDENT_CMR2) { if (info->u3) goto unshin; info->u3 = true; goto retry; } if (info->intinfo < CAIRNSMORE2_INTS-1) { info->intinfo++; goto retry; } } else { if (info->ident == IDENT_CMR2) { applog(LOG_DEBUG, "Icarus Detect: " "Test succeeded at %s i%d: got %s", icarus->device_path, info->intinfo, golden_nonce); cmr2_ok[info->intinfo] = true; cmr2_count++; if (info->intinfo < CAIRNSMORE2_INTS-1) { info->intinfo++; goto retry; } } } if (info->ident == IDENT_CMR2) { if (cmr2_count == 0) { applog(LOG_ERR, "Icarus Detect: Test failed at %s: for all %d CMR2 Interfaces", icarus->device_path, CAIRNSMORE2_INTS); goto unshin; } // set the interface to the first one that succeeded for (i = 0; i < CAIRNSMORE2_INTS; i++) if (cmr2_ok[i]) { info->intinfo = i; break; } } else { applog(LOG_DEBUG, "Icarus Detect: " "Test succeeded at %s: got %s", icarus->device_path, golden_nonce); } /* We have a real Icarus! */ if (!add_cgpu(icarus)) goto unshin; update_usb_stats(icarus); applog(LOG_INFO, "%s %d: Found at %s", icarus->drv->name, icarus->device_id, icarus->device_path); if (info->ident == IDENT_CMR2) { applog(LOG_INFO, "%s %d: with %d Interface%s", icarus->drv->name, icarus->device_id, cmr2_count, cmr2_count > 1 ? "s" : ""); // Assume 1 or 2 are running FPGA pairs if (cmr2_count < 3) { work_division = fpga_count = 2; info->Hs /= 2; } } applog(LOG_DEBUG, "%s %d: Init baud=%d work_division=%d fpga_count=%d", icarus->drv->name, icarus->device_id, baud, work_division, fpga_count); info->baud = baud; info->work_division = work_division; info->fpga_count = fpga_count; info->nonce_mask = mask(work_division); info->golden_hashes = (golden_nonce_val & info->nonce_mask) * fpga_count; timersub(&tv_finish, &tv_start, &(info->golden_tv)); set_timing_mode(this_option_offset, icarus); if (info->ident == IDENT_CMR2) { int i; for (i = info->intinfo + 1; i < icarus->usbdev->found->intinfo_count; i++) { struct cgpu_info *cgtmp; struct ICARUS_INFO *intmp; if (!cmr2_ok[i]) continue; cgtmp = usb_copy_cgpu(icarus); if (!cgtmp) { applog(LOG_ERR, "%s %d: Init failed initinfo %d", icarus->drv->name, icarus->device_id, i); continue; } cgtmp->usbinfo.usbstat = USB_NOSTAT; intmp = cgmalloc(sizeof(struct ICARUS_INFO)); cgtmp->device_data = (void *)intmp; // Initialise everything to match memcpy(intmp, info, sizeof(struct ICARUS_INFO)); intmp->intinfo = i; icarus_initialise(cgtmp, baud); if (!add_cgpu(cgtmp)) { usb_uninit(cgtmp); free(intmp); continue; } update_usb_stats(cgtmp); } } return icarus; unshin: usb_uninit(icarus); free(info); icarus->device_data = NULL; shin: icarus = usb_free_cgpu(icarus); return NULL; } static struct cgpu_info *compac_detect_one(struct libusb_device *dev, struct usb_find_devices *found) { struct ICARUS_INFO *info; struct timeval tv_start, tv_finish; struct cgpu_info *compac = usb_alloc_cgpu(&icarus_drv, 1); if (!usb_init(compac, dev, found)) { compac = usb_free_cgpu(compac); return NULL; } info = cgcalloc(1, sizeof(struct ICARUS_INFO)); compac->device_data = info; info->ident = usb_ident(compac); if (info->ident == IDENT_BSC || info->ident == IDENT_GSC) { int this_option_offset = ++option_offset; const uint32_t golden_nonce_val = 0x000187a2; int baud, uninitialised_var(work_division), uninitialised_var(fpga_count); uint16_t compac_freq_hex; applog(LOG_DEBUG, "%s %i: Detected GekkoScience Compac", compac->drv->name, compac->device_id); get_options(this_option_offset, compac, &baud, &work_division, &fpga_count); info->compac_ramp_idx = 0; info->compac_ramp_freq = compacfreqtable[info->compac_ramp_idx].freq; info->compac_target_freq = opt_compac_freq; compac_freq_hex = compacfreqtable[info->compac_ramp_idx].hex; if (!set_anu_freq(compac, info, compac_freq_hex)) { applog(LOG_WARNING, "%s %i: Failed to set frequency, too much overclock?", compac->drv->name, compac->device_id); } applog(LOG_DEBUG, "%s %d: Init baud=%d work_division=%d fpga_count=%d", compac->drv->name, compac->device_id, baud, work_division, fpga_count); info->ant = true; info->compac = true; info->baud = baud; info->work_division = work_division; info->fpga_count = fpga_count; info->nonce_mask = mask(work_division); info->nonce_size = ANT_READ_SIZE; if (add_cgpu(compac)) { char *tmp_str = cgmalloc(50 * sizeof(char)); strncpy(tmp_str,compac->unique_id,11); strncpy(compac->unique_id,"\0\0\0\0\0\0\0\0\0\0\0",11); strncpy(compac->unique_id,(tmp_str)+3*sizeof(char),8); update_usb_stats(compac); info->golden_hashes = (golden_nonce_val & info->nonce_mask) * fpga_count; timersub(&tv_finish, &tv_start, &(info->golden_tv)); set_timing_mode(this_option_offset, compac); return compac; } } usb_uninit(compac); free(info); compac->device_data = NULL; compac = usb_free_cgpu(compac); return NULL; } static int64_t rock_scanwork(struct thr_info *thr); static void rock_statline_before(char *buf, size_t bufsiz, struct cgpu_info *cgpu) { if (cgpu->temp) tailsprintf(buf, bufsiz, "%3.0fMHz %3.0fC", opt_rock_freq, cgpu->temp); else tailsprintf(buf, bufsiz, "%.0fMHz", opt_rock_freq); } /* The only thing to do on flush_work is to remove the base work to prevent us * rolling what is now stale work */ static void rock_flush(struct cgpu_info *icarus) { struct ICARUS_INFO *info = icarus->device_data; struct work *work; mutex_lock(&info->lock); work = info->base_work; info->base_work = NULL; mutex_unlock(&info->lock); if (work) free_work(work); } static struct cgpu_info *rock_detect_one(struct libusb_device *dev, struct usb_find_devices *found) { struct ICARUS_INFO *info; struct timeval tv_start, tv_finish; char *ob_hex = NULL; // Block 171874 nonce = (0xa2870100) = 0x000187a2 // N.B. golden_ob MUST take less time to calculate // than the timeout set in icarus_open() // This one takes ~0.53ms on Rev3 Icarus const char golden_ob[] = "4679ba4ec99876bf4bfe086082b40025" "4df6c356451471139a3afa71e48f544a" "00000000000000000000000000000000" "aa1ff05587320b1a1426674f2fa722ce"; const char golden_nonce[] = "000187a2"; const uint32_t golden_nonce_val = 0x000187a2; unsigned char nonce_bin[ICARUS_BUF_SIZE]; struct ICARUS_WORK workdata; char *nonce_hex; struct cgpu_info *icarus; int ret, err, amount, tries; bool ok; int correction_times = 0; NONCE_DATA nonce_data; uint32_t nonce; char *newname = NULL; if ((sizeof(workdata) << 1) != (sizeof(golden_ob) - 1)) quithere(1, "Data and golden_ob sizes don't match"); icarus = usb_alloc_cgpu(&icarus_drv, 1); if (!usb_init(icarus, dev, found)) goto shin; hex2bin((void *)(&workdata), golden_ob, sizeof(workdata)); rev((void *)(&(workdata.midstate)), ICARUS_MIDSTATE_SIZE); rev((void *)(&(workdata.work)), ICARUS_WORK_SIZE); if (opt_debug) { ob_hex = bin2hex((void *)(&workdata), sizeof(workdata)); applog(LOG_WARNING, "%s %d: send_gold_nonce %s", icarus->drv->name, icarus->device_id, ob_hex); free(ob_hex); } info = cgcalloc(1, sizeof(struct ICARUS_INFO)); (void)memset(info, 0, sizeof(struct ICARUS_INFO)); icarus->device_data = (void *)info; icarus->usbdev->ident = info->ident = IDENT_LIN; info->nonce_size = ROCK_READ_SIZE; info->fail_time = 10; info->nonce_mask = 0xffffffff; update_usb_stats(icarus); tries = MAX_TRIES; ok = false; while (!ok && tries-- > 0) { icarus_initialise(icarus, info->baud); applog(LOG_DEBUG, "tries: %d", tries); workdata.unused[ICARUS_UNUSED_SIZE - 3] = opt_rock_freq/10 - 1; workdata.unused[ICARUS_UNUSED_SIZE - 2] = (MAX_TRIES-1-tries); info->rmdev.detect_chip_no++; if (info->rmdev.detect_chip_no >= MAX_TRIES) info->rmdev.detect_chip_no = 0; //g_detect_chip_no = (g_detect_chip_no + 1) & MAX_CHIP_NUM; usb_buffer_clear(icarus); err = usb_write_ii(icarus, info->intinfo, (char *)(&workdata), sizeof(workdata), &amount, C_SENDWORK); if (err != LIBUSB_SUCCESS || amount != sizeof(workdata)) continue; memset(nonce_bin, 0, sizeof(nonce_bin)); ret = icarus_get_nonce(icarus, nonce_bin, &tv_start, &tv_finish, NULL, 100); applog(LOG_DEBUG, "Rockminer nonce_bin: %02x %02x %02x %02x %02x %02x %02x %02x", nonce_bin[0], nonce_bin[1], nonce_bin[2], nonce_bin[3], nonce_bin[4], nonce_bin[5], nonce_bin[6], nonce_bin[7]); if (ret != ICA_NONCE_OK) { applog(LOG_DEBUG, "detect_one get_gold_nonce error, tries = %d", tries); continue; } if (usb_buffer_size(icarus) == 1) { applog(LOG_INFO, "Rock detect found an ANU, skipping"); usb_buffer_clear(icarus); break; } newname = NULL; switch (nonce_bin[NONCE_CHIP_NO_OFFSET] & RM_PRODUCT_MASK) { case RM_PRODUCT_T1: newname = "LIR"; // Rocketbox info->rmdev.product_id = ROCKMINER_T1; info->rmdev.chip_max = 12; info->rmdev.min_frq = 200; info->rmdev.def_frq = 330; info->rmdev.max_frq = 400; break; #if 0 case RM_PRODUCT_T2: // what's this? newname = "LIX"; info->rmdev.product_id = ROCKMINER_T2; info->rmdev.chip_max = 16; info->rmdev.min_frq = 200; info->rmdev.def_frq = 300; info->rmdev.max_frq = 400; break; #endif case RM_PRODUCT_RBOX: newname = "LIN"; // R-Box info->rmdev.product_id = ROCKMINER_RBOX; info->rmdev.chip_max = 4; info->rmdev.min_frq = 200; info->rmdev.def_frq = 270; info->rmdev.max_frq = 400; break; default: continue; } snprintf(info->rock_init, sizeof(info->rock_init), "%02x %02x %02x %02x", nonce_bin[4], nonce_bin[5], nonce_bin[6], nonce_bin[7]); nonce_data.chip_no = nonce_bin[NONCE_CHIP_NO_OFFSET] & RM_CHIP_MASK; if (nonce_data.chip_no >= info->rmdev.chip_max) nonce_data.chip_no = 0; nonce_data.cmd_value = nonce_bin[NONCE_TASK_CMD_OFFSET] & RM_CMD_MASK; if (nonce_data.cmd_value == NONCE_TASK_COMPLETE_CMD) { applog(LOG_DEBUG, "complete g_detect_chip_no: %d", info->rmdev.detect_chip_no); workdata.unused[ICARUS_UNUSED_SIZE - 3] = opt_rock_freq/10 - 1; workdata.unused[ICARUS_UNUSED_SIZE - 2] = info->rmdev.detect_chip_no; info->rmdev.detect_chip_no++; if (info->rmdev.detect_chip_no >= MAX_TRIES) info->rmdev.detect_chip_no = 0; err = usb_write_ii(icarus, info->intinfo, (char *)(&workdata), sizeof(workdata), &amount, C_SENDWORK); if (err != LIBUSB_SUCCESS || amount != sizeof(workdata)) continue; applog(LOG_DEBUG, "send_gold_nonce usb_write_ii"); continue; } memcpy((char *)&nonce, nonce_bin, ICARUS_READ_SIZE); nonce = htobe32(nonce); applog(LOG_DEBUG, "Rockminer nonce: %08X", nonce); correction_times = 0; while (correction_times < NONCE_CORRECTION_TIMES) { nonce_hex = bin2hex(nonce_bin, 4); if (golden_nonce_val == nonce + rbox_corr_values[correction_times]) { memset(&(info->g_work[0]), 0, sizeof(info->g_work)); rock_init_last_received_task_complete_time(info); ok = true; break; } else { applog(LOG_DEBUG, "detect_one gold_nonce compare error times = %d", correction_times); if (tries < 0 && info->ident != IDENT_CMR2) { applog(LOG_WARNING, "Icarus Detect: " "Test failed at %s: get %s, should: %s", icarus->device_path, nonce_hex, golden_nonce); } if (nonce == 0) break; } free(nonce_hex); correction_times++; } } if (!ok) goto unshin; if (newname) { if (!icarus->drv->copy) icarus->drv = copy_drv(icarus->drv); icarus->drv->name = newname; } applog(LOG_DEBUG, "Icarus Detect: Test succeeded at %s: got %s", icarus->device_path, golden_nonce); /* We have a real Rockminer! */ if (!add_cgpu(icarus)) goto unshin; icarus->drv->scanwork = rock_scanwork; icarus->drv->dname = "Rockminer"; icarus->drv->get_statline_before = &rock_statline_before; icarus->drv->flush_work = &rock_flush; mutex_init(&info->lock); applog(LOG_INFO, "%s %d: Found at %s", icarus->drv->name, icarus->device_id, icarus->device_path); timersub(&tv_finish, &tv_start, &(info->golden_tv)); return icarus; unshin: usb_uninit(icarus); free(info); icarus->device_data = NULL; shin: icarus = usb_free_cgpu(icarus); return NULL; } static void icarus_detect(bool __maybe_unused hotplug) { usb_detect(&icarus_drv, rock_detect_one); usb_detect(&icarus_drv, compac_detect_one); usb_detect(&icarus_drv, icarus_detect_one); } static bool icarus_prepare(struct thr_info *thr) { struct cgpu_info *icarus = thr->cgpu; struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); if (info->ant) info->antworks = cgcalloc(sizeof(struct work *), ANT_QUEUE_NUM); return true; } static void cmr2_command(struct cgpu_info *icarus, uint8_t cmd, uint8_t data) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); struct ICARUS_WORK workdata; int amount; memset((void *)(&workdata), 0, sizeof(workdata)); workdata.prefix = ICARUS_CMR2_PREFIX; workdata.cmd = cmd; workdata.data = data; workdata.check = workdata.data ^ workdata.cmd ^ workdata.prefix ^ ICARUS_CMR2_CHECK; usb_write_ii(icarus, info->intinfo, (char *)(&workdata), sizeof(workdata), &amount, C_SENDWORK); } static void cmr2_commands(struct cgpu_info *icarus) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); if (info->speed_next_work) { info->speed_next_work = false; cmr2_command(icarus, ICARUS_CMR2_CMD_SPEED, info->cmr2_speed); return; } if (info->flash_next_work) { info->flash_next_work = false; cmr2_command(icarus, ICARUS_CMR2_CMD_FLASH, ICARUS_CMR2_DATA_FLASH_ON); cgsleep_ms(250); cmr2_command(icarus, ICARUS_CMR2_CMD_FLASH, ICARUS_CMR2_DATA_FLASH_OFF); cgsleep_ms(250); cmr2_command(icarus, ICARUS_CMR2_CMD_FLASH, ICARUS_CMR2_DATA_FLASH_ON); cgsleep_ms(250); cmr2_command(icarus, ICARUS_CMR2_CMD_FLASH, ICARUS_CMR2_DATA_FLASH_OFF); return; } } void rock_send_task(unsigned char chip_no, unsigned int current_task_id, struct thr_info *thr) { struct cgpu_info *icarus = thr->cgpu; struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); int err, amount; struct ICARUS_WORK workdata; char *ob_hex; struct work *work = NULL; /* Only base_work needs locking since it can be asynchronously deleted * by flush work */ if (info->g_work[chip_no][current_task_id] == NULL) { mutex_lock(&info->lock); if (!info->base_work) info->base_work = get_work(thr, thr->id); if (info->base_work->drv_rolllimit > 0) { info->base_work->drv_rolllimit--; roll_work(info->base_work); work = make_clone(info->base_work); } else { work = info->base_work; info->base_work = NULL; } mutex_unlock(&info->lock); info->g_work[chip_no][current_task_id] = work; } else { work = info->g_work[chip_no][current_task_id]; applog(LOG_DEBUG, "::resend work"); } memset((void *)(&workdata), 0, sizeof(workdata)); memcpy(&(workdata.midstate), work->midstate, ICARUS_MIDSTATE_SIZE); memcpy(&(workdata.work), work->data + ICARUS_WORK_DATA_OFFSET, ICARUS_WORK_SIZE); workdata.unused[ICARUS_UNUSED_SIZE - 4] = 0xaa; if (info->rmdev.chip[chip_no].freq > (info->rmdev.max_frq/10 - 1) || info->rmdev.chip[chip_no].freq < (info->rmdev.min_frq/10 - 1)) rock_init_last_received_task_complete_time(info); workdata.unused[ICARUS_UNUSED_SIZE - 3] = info->rmdev.chip[chip_no].freq; //icarus->freq/10 - 1; ; workdata.unused[ICARUS_UNUSED_SIZE - 2] = chip_no ; workdata.id = 0x55; if (opt_debug) { ob_hex = bin2hex((void *)(work->data), 128); applog(LOG_WARNING, "%s %d: work->data %s", icarus->drv->name, icarus->device_id, ob_hex); free(ob_hex); } // We only want results for the work we are about to send usb_buffer_clear(icarus); err = usb_write_ii(icarus, info->intinfo, (char *)(&workdata), sizeof(workdata), &amount, C_SENDWORK); if (err < 0 || amount != sizeof(workdata)) { applog(LOG_ERR, "%s %i: Comms error (werr=%d amt=%d)", icarus->drv->name, icarus->device_id, err, amount); dev_error(icarus, REASON_DEV_COMMS_ERROR); icarus_initialise(icarus, info->baud); if (info->g_work[chip_no][current_task_id]) { free_work(info->g_work[chip_no][current_task_id]); info->g_work[chip_no][current_task_id] = NULL; } return; } return; } static void process_history(struct cgpu_info *icarus, struct ICARUS_INFO *info, uint32_t nonce, uint64_t hash_count, struct timeval *elapsed, struct timeval *tv_start) { struct ICARUS_HISTORY *history0, *history; struct timeval tv_history_start, tv_history_finish; int count; double Hs, W, fullnonce; int read_time, i; bool limited; uint32_t values; int64_t hash_count_range; double Ti, Xi; // Ignore possible end condition values ... // TODO: set limitations on calculated values depending on the device // to avoid crap values caused by CPU/Task Switching/Swapping/etc if ((nonce & info->nonce_mask) <= END_CONDITION || (nonce & info->nonce_mask) >= (info->nonce_mask & ~END_CONDITION)) return; cgtime(&tv_history_start); history0 = &(info->history[0]); if (history0->values == 0) timeradd(tv_start, &history_sec, &(history0->finish)); Ti = (double)(elapsed->tv_sec) + ((double)(elapsed->tv_usec))/((double)1000000) - ((double)ICARUS_READ_TIME(info->baud)); Xi = (double)hash_count; history0->sumXiTi += Xi * Ti; history0->sumXi += Xi; history0->sumTi += Ti; history0->sumXi2 += Xi * Xi; history0->values++; if (history0->hash_count_max < hash_count) history0->hash_count_max = hash_count; if (history0->hash_count_min > hash_count || history0->hash_count_min == 0) history0->hash_count_min = hash_count; if (history0->values >= info->min_data_count && timercmp(tv_start, &(history0->finish), >)) { for (i = INFO_HISTORY; i > 0; i--) memcpy(&(info->history[i]), &(info->history[i-1]), sizeof(struct ICARUS_HISTORY)); // Initialise history0 to zero for summary calculation memset(history0, 0, sizeof(struct ICARUS_HISTORY)); // We just completed a history data set // So now recalc read_time based on the whole history thus we will // initially get more accurate until it completes INFO_HISTORY // total data sets count = 0; for (i = 1 ; i <= INFO_HISTORY; i++) { history = &(info->history[i]); if (history->values >= MIN_DATA_COUNT) { count++; history0->sumXiTi += history->sumXiTi; history0->sumXi += history->sumXi; history0->sumTi += history->sumTi; history0->sumXi2 += history->sumXi2; history0->values += history->values; if (history0->hash_count_max < history->hash_count_max) history0->hash_count_max = history->hash_count_max; if (history0->hash_count_min > history->hash_count_min || history0->hash_count_min == 0) history0->hash_count_min = history->hash_count_min; } } // All history data Hs = (history0->values*history0->sumXiTi - history0->sumXi*history0->sumTi) / (history0->values*history0->sumXi2 - history0->sumXi*history0->sumXi); W = history0->sumTi/history0->values - Hs*history0->sumXi/history0->values; hash_count_range = history0->hash_count_max - history0->hash_count_min; values = history0->values; // Initialise history0 to zero for next data set memset(history0, 0, sizeof(struct ICARUS_HISTORY)); fullnonce = W + Hs * (((double)0xffffffff) + 1); read_time = SECTOMS(fullnonce) - ICARUS_READ_REDUCE; if (info->read_time_limit > 0 && read_time > info->read_time_limit) { read_time = info->read_time_limit; limited = true; } else limited = false; info->Hs = Hs; info->read_time = read_time; info->fullnonce = fullnonce; info->count = count; info->W = W; info->values = values; info->hash_count_range = hash_count_range; if (info->min_data_count < MAX_MIN_DATA_COUNT) info->min_data_count *= 2; else if (info->timing_mode == MODE_SHORT) info->do_icarus_timing = false; applog(LOG_WARNING, "%s %d Re-estimate: Hs=%e W=%e read_time=%dms%s fullnonce=%.3fs", icarus->drv->name, icarus->device_id, Hs, W, read_time, limited ? " (limited)" : "", fullnonce); } info->history_count++; cgtime(&tv_history_finish); timersub(&tv_history_finish, &tv_history_start, &tv_history_finish); timeradd(&tv_history_finish, &(info->history_time), &(info->history_time)); } static int64_t icarus_scanwork(struct thr_info *thr) { struct cgpu_info *icarus = thr->cgpu; struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); int ret, err, amount; unsigned char nonce_bin[ICARUS_BUF_SIZE]; struct ICARUS_WORK workdata; char *ob_hex; uint32_t nonce; int64_t hash_count = 0; struct timeval tv_start, tv_finish, elapsed; int curr_hw_errors; bool was_hw_error; struct work *work; int64_t estimate_hashes; uint8_t workid = 0; if (info->compac && info->compac_ramp_freq < info->compac_target_freq) { uint16_t compac_freq_hex = compacfreqtable[++info->compac_ramp_idx].hex; if (!set_anu_freq(icarus, info, compac_freq_hex)) { applog(LOG_WARNING, "%s %i: Failed to set frequency, too much overclock?", icarus->drv->name, icarus->device_id); info->compac_target_freq = info->compac_ramp_freq; } else info->compac_ramp_freq = compacfreqtable[info->compac_ramp_idx].freq; } if (unlikely(share_work_tdiff(icarus) > info->fail_time)) { if (info->failing) { if (share_work_tdiff(icarus) > info->fail_time + 60) { applog(LOG_ERR, "%s %d: Device failed to respond to restart", icarus->drv->name, icarus->device_id); usb_nodev(icarus); return -1; } } else { applog(LOG_WARNING, "%s %d: No valid hashes for over %d secs, attempting to reset", icarus->drv->name, icarus->device_id, info->fail_time); usb_reset(icarus); info->failing = true; } } // Device is gone if (icarus->usbinfo.nodev) return -1; elapsed.tv_sec = elapsed.tv_usec = 0; work = get_work(thr, thr->id); memset((void *)(&workdata), 0, sizeof(workdata)); memcpy(&(workdata.midstate), work->midstate, ICARUS_MIDSTATE_SIZE); memcpy(&(workdata.work), work->data + ICARUS_WORK_DATA_OFFSET, ICARUS_WORK_SIZE); rev((void *)(&(workdata.midstate)), ICARUS_MIDSTATE_SIZE); rev((void *)(&(workdata.work)), ICARUS_WORK_SIZE); if (info->ant) { workid = info->workid; if (++info->workid >= 0x1F) info->workid = 0; if (info->antworks[workid]) free_work(info->antworks[workid]); info->antworks[workid] = work; workdata.id = workid; } if (info->speed_next_work || info->flash_next_work) cmr2_commands(icarus); // We only want results for the work we are about to send usb_buffer_clear(icarus); err = usb_write_ii(icarus, info->intinfo, (char *)(&workdata), sizeof(workdata), &amount, C_SENDWORK); if (err < 0 || amount != sizeof(workdata)) { applog(LOG_ERR, "%s %i: Comms error (werr=%d amt=%d)", icarus->drv->name, icarus->device_id, err, amount); dev_error(icarus, REASON_DEV_COMMS_ERROR); icarus_initialise(icarus, info->baud); goto out; } if (opt_debug) { ob_hex = bin2hex((void *)(&workdata), sizeof(workdata)); applog(LOG_DEBUG, "%s %d: sent %s", icarus->drv->name, icarus->device_id, ob_hex); free(ob_hex); } more_nonces: /* Icarus will return nonces or nothing. If we know we have enough data * for a response in the buffer already, there will be no usb read * performed. */ memset(nonce_bin, 0, sizeof(nonce_bin)); ret = icarus_get_nonce(icarus, nonce_bin, &tv_start, &tv_finish, thr, info->read_time); if (ret == ICA_NONCE_ERROR) goto out; // aborted before becoming idle, get new work if (ret == ICA_NONCE_TIMEOUT || ret == ICA_NONCE_RESTART) { if (info->ant) goto out; timersub(&tv_finish, &tv_start, &elapsed); // ONLY up to just when it aborted // We didn't read a reply so we don't subtract ICARUS_READ_TIME estimate_hashes = ((double)(elapsed.tv_sec) + ((double)(elapsed.tv_usec))/((double)1000000)) / info->Hs; // If some Serial-USB delay allowed the full nonce range to // complete it can't have done more than a full nonce if (unlikely(estimate_hashes > 0xffffffff)) estimate_hashes = 0xffffffff; applog(LOG_DEBUG, "%s %d: no nonce = 0x%08lX hashes (%ld.%06lds)", icarus->drv->name, icarus->device_id, (long unsigned int)estimate_hashes, (long)elapsed.tv_sec, (long)elapsed.tv_usec); hash_count = estimate_hashes; goto out; } if (info->ant) { workid = nonce_bin[4] & 0x1F; if (info->antworks[workid]) work = info->antworks[workid]; else goto out; } memcpy((char *)&nonce, nonce_bin, ICARUS_READ_SIZE); nonce = htobe32(nonce); curr_hw_errors = icarus->hw_errors; if (submit_nonce(thr, work, nonce)) info->failing = false; was_hw_error = (curr_hw_errors < icarus->hw_errors); /* U3s return shares fast enough to use just that for hashrate * calculation, otherwise the result is inaccurate instead. */ if (info->ant) { info->nonces++; if (usb_buffer_size(icarus) >= ANT_READ_SIZE) goto more_nonces; } else { hash_count = (nonce & info->nonce_mask); hash_count++; hash_count *= info->fpga_count; } #if 0 // This appears to only return zero nonce values if (usb_buffer_size(icarus) > 3) { memcpy((char *)&nonce, icarus->usbdev->buffer, sizeof(nonce_bin)); nonce = htobe32(nonce); applog(LOG_WARNING, "%s %d: attempting to submit 2nd nonce = 0x%08lX", icarus->drv->name, icarus->device_id, (long unsigned int)nonce); curr_hw_errors = icarus->hw_errors; submit_nonce(thr, work, nonce); was_hw_error = (curr_hw_errors > icarus->hw_errors); } #endif if (opt_debug || info->do_icarus_timing) timersub(&tv_finish, &tv_start, &elapsed); applog(LOG_DEBUG, "%s %d: nonce = 0x%08x = 0x%08lX hashes (%ld.%06lds)", icarus->drv->name, icarus->device_id, nonce, (long unsigned int)hash_count, (long)elapsed.tv_sec, (long)elapsed.tv_usec); if (info->do_icarus_timing && !was_hw_error) process_history(icarus, info, nonce, hash_count, &elapsed, &tv_start); out: if (!info->ant) free_work(work); else { /* Ant USBs free the work themselves. Return only one full * nonce worth on each pass to smooth out displayed hashrate */ if (info->nonces) { hash_count = 0xffffffff; info->nonces--; } } return hash_count; } static int64_t rock_scanwork(struct thr_info *thr) { struct cgpu_info *icarus = thr->cgpu; struct ICARUS_INFO *info = (struct ICARUS_INFO *)(icarus->device_data); int ret; unsigned char nonce_bin[ICARUS_BUF_SIZE]; uint32_t nonce; int64_t hash_count = 0; struct timeval tv_start, tv_finish, elapsed; struct work *work = NULL; int64_t estimate_hashes; int correction_times = 0; NONCE_DATA nonce_data; double temp; int chip_no = 0; time_t recv_time = 0; if (unlikely(share_work_tdiff(icarus) > info->fail_time)) { if (info->failing) { if (share_work_tdiff(icarus) > info->fail_time + 60) { applog(LOG_ERR, "%s %d: Device failed to respond to restart", icarus->drv->name, icarus->device_id); usb_nodev(icarus); return -1; } } else { applog(LOG_WARNING, "%s %d: No valid hashes for over %d secs, attempting to reset", icarus->drv->name, icarus->device_id, info->fail_time); usb_reset(icarus); info->failing = true; } } // Device is gone if (icarus->usbinfo.nodev) return -1; elapsed.tv_sec = elapsed.tv_usec = 0; for (chip_no = 0; chip_no < info->rmdev.chip_max; chip_no++) { recv_time = time(NULL); if (recv_time > info->rmdev.chip[chip_no].last_received_task_complete_time + 1) { info->rmdev.chip[chip_no].last_received_task_complete_time = recv_time; rock_send_task(chip_no, 0,thr); break; } } memset(nonce_bin, 0, sizeof(nonce_bin)); ret = icarus_get_nonce(icarus, nonce_bin, &tv_start, &tv_finish, thr, 3000);//info->read_time); nonce_data.chip_no = nonce_bin[NONCE_CHIP_NO_OFFSET] & RM_CHIP_MASK; if (nonce_data.chip_no >= info->rmdev.chip_max) nonce_data.chip_no = 0; nonce_data.task_no = nonce_bin[NONCE_TASK_NO_OFFSET] & 0x1; nonce_data.cmd_value = nonce_bin[NONCE_TASK_CMD_OFFSET] & RM_CMD_MASK; nonce_data.work_state = nonce_bin[NONCE_TASK_CMD_OFFSET] & RM_STATUS_MASK; temp = (double)nonce_bin[NONCE_COMMAND_OFFSET]; if (temp != 128) icarus->temp = temp; if (nonce_data.cmd_value == NONCE_TASK_COMPLETE_CMD) { info->rmdev.chip[nonce_data.chip_no].last_received_task_complete_time = time(NULL); if (info->g_work[nonce_data.chip_no][nonce_data.task_no]) { free_work(info->g_work[nonce_data.chip_no][nonce_data.task_no]); info->g_work[nonce_data.chip_no][nonce_data.task_no] = NULL; } goto out; } if (nonce_data.cmd_value == NONCE_GET_TASK_CMD) { rock_send_task(nonce_data.chip_no, nonce_data.task_no, thr); goto out; } if (ret == ICA_NONCE_TIMEOUT) rock_send_task(nonce_data.chip_no, nonce_data.task_no, thr); work = info->g_work[nonce_data.chip_no][nonce_data.task_no]; if (work == NULL) goto out; if (ret == ICA_NONCE_ERROR) goto out; // aborted before becoming idle, get new work if (ret == ICA_NONCE_TIMEOUT || ret == ICA_NONCE_RESTART) { timersub(&tv_finish, &tv_start, &elapsed); // ONLY up to just when it aborted // We didn't read a reply so we don't subtract ICARUS_READ_TIME estimate_hashes = ((double)(elapsed.tv_sec) + ((double)(elapsed.tv_usec))/((double)1000000)) / info->Hs; // If some Serial-USB delay allowed the full nonce range to // complete it can't have done more than a full nonce if (unlikely(estimate_hashes > 0xffffffff)) estimate_hashes = 0xffffffff; applog(LOG_DEBUG, "%s %d: no nonce = 0x%08lX hashes (%ld.%06lds)", icarus->drv->name, icarus->device_id, (long unsigned int)estimate_hashes, (long)elapsed.tv_sec, (long)elapsed.tv_usec); goto out; } memcpy((char *)&nonce, nonce_bin, ICARUS_READ_SIZE); nonce = htobe32(nonce); recv_time = time(NULL); if ((recv_time-info->rmdev.dev_detect_time) >= 60) { unsigned char i; info->rmdev.dev_detect_time = recv_time; for (i = 0; i < info->rmdev.chip_max; i ++) { if (info->rmdev.chip[i].error_cnt >= 12) { if (info->rmdev.chip[i].freq > info->rmdev.min_frq) info->rmdev.chip[i].freq--; } else if (info->rmdev.chip[i].error_cnt <= 1) { if (info->rmdev.chip[i].freq < (info->rmdev.def_frq / 10 - 1)) info->rmdev.chip[i].freq++; } info->rmdev.chip[i].error_cnt = 0; } } correction_times = 0; info->nonces_checked++; while (correction_times < NONCE_CORRECTION_TIMES) { uint32_t new_nonce; if (correction_times > 0) { info->nonces_correction_tests++; if (correction_times == 1) info->nonces_correction_times++; } new_nonce = nonce + rbox_corr_values[correction_times]; /* Basic dupe testing */ if (new_nonce == info->last_nonce[nonce_data.chip_no][nonce_data.task_no]) break; if (test_nonce(work, new_nonce)) { nonce = new_nonce; submit_tested_work(thr, work); info->last_nonce[nonce_data.chip_no][nonce_data.task_no] = nonce; info->nonces_correction[correction_times]++; hash_count++; info->failing = false; applog(LOG_DEBUG, "Rockminer nonce :::OK:::"); break; } else { applog(LOG_DEBUG, "Rockminer nonce error times = %d", correction_times); if (new_nonce == 0) break; } correction_times++; } if (correction_times >= NONCE_CORRECTION_TIMES) { inc_hw_errors(thr); info->nonces_fail++; } hash_count = (hash_count * info->nonce_mask); if (opt_debug || info->do_icarus_timing) timersub(&tv_finish, &tv_start, &elapsed); applog(LOG_DEBUG, "%s %d: nonce = 0x%08x = 0x%08lX hashes (%ld.%06lds)", icarus->drv->name, icarus->device_id, nonce, (long unsigned int)hash_count, (long)elapsed.tv_sec, (long)elapsed.tv_usec); out: return hash_count; } static struct api_data *icarus_api_stats(struct cgpu_info *cgpu) { struct api_data *root = NULL; struct ICARUS_INFO *info = (struct ICARUS_INFO *)(cgpu->device_data); char data[4096]; int i, off; size_t len; float avg; // Warning, access to these is not locked - but we don't really // care since hashing performance is way more important than // locking access to displaying API debug 'stats' // If locking becomes an issue for any of them, use copy_data=true also root = api_add_int(root, "read_time", &(info->read_time), false); root = api_add_int(root, "read_time_limit", &(info->read_time_limit), false); root = api_add_double(root, "fullnonce", &(info->fullnonce), false); root = api_add_int(root, "count", &(info->count), false); root = api_add_hs(root, "Hs", &(info->Hs), false); root = api_add_double(root, "W", &(info->W), false); root = api_add_uint(root, "total_values", &(info->values), false); root = api_add_uint64(root, "range", &(info->hash_count_range), false); root = api_add_uint64(root, "history_count", &(info->history_count), false); root = api_add_timeval(root, "history_time", &(info->history_time), false); root = api_add_uint(root, "min_data_count", &(info->min_data_count), false); root = api_add_uint(root, "timing_values", &(info->history[0].values), false); root = api_add_const(root, "timing_mode", timing_mode_str(info->timing_mode), false); root = api_add_bool(root, "is_timing", &(info->do_icarus_timing), false); root = api_add_int(root, "baud", &(info->baud), false); root = api_add_int(root, "work_division", &(info->work_division), false); root = api_add_int(root, "fpga_count", &(info->fpga_count), false); if (info->ident == IDENT_LIN) { root = api_add_string(root, "rock_init", info->rock_init, false); root = api_add_uint8(root, "rock_chips", &(info->rmdev.detect_chip_no), false); root = api_add_uint8(root, "rock_chip_max", &(info->rmdev.chip_max), false); root = api_add_uint8(root, "rock_prod_id", &(info->rmdev.product_id), false); root = api_add_avg(root, "rock_min_freq", &(info->rmdev.min_frq), false); root = api_add_avg(root, "rock_max_freq", &(info->rmdev.max_frq), false); root = api_add_uint64(root, "rock_check", &(info->nonces_checked), false); root = api_add_uint64(root, "rock_corr", &(info->nonces_correction_times), false); root = api_add_uint64(root, "rock_corr_tests", &(info->nonces_correction_tests), false); root = api_add_uint64(root, "rock_corr_fail", &(info->nonces_fail), false); if (info->nonces_checked <= 0) avg = 0; else avg = (float)(info->nonces_correction_tests) / (float)(info->nonces_checked); root = api_add_avg(root, "rock_corr_avg", &avg, true); data[0] = '\0'; off = 0; for (i = 0; i < NONCE_CORRECTION_TIMES; i++) { len = snprintf(data+off, sizeof(data)-off, "%s%"PRIu64, i > 0 ? "/" : "", info->nonces_correction[i]); if (len >= (sizeof(data)-off)) off = sizeof(data)-1; else { if (len > 0) off += len; } } root = api_add_string(root, "rock_corr_finds", data, true); } return root; } static void icarus_statline_before(char *buf, size_t bufsiz, struct cgpu_info *cgpu) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(cgpu->device_data); if (info->ant) { if (info->compac) tailsprintf(buf, bufsiz, "%3.0fMHz", info->compac_ramp_freq); else if (info->u3) tailsprintf(buf, bufsiz, "%3.0fMHz %3dmV", opt_au3_freq, opt_au3_volt); else tailsprintf(buf, bufsiz, "%3.0fMHz", opt_anu_freq); } else if (info->ident == IDENT_CMR2 && info->cmr2_speed > 0) tailsprintf(buf, bufsiz, "%5.1fMhz", (float)(info->cmr2_speed) * ICARUS_CMR2_SPEED_FACTOR); } static void icarus_shutdown(__maybe_unused struct thr_info *thr) { // TODO: ? } static void icarus_identify(struct cgpu_info *cgpu) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(cgpu->device_data); if (info->ident == IDENT_CMR2) info->flash_next_work = true; } static char *icarus_set(struct cgpu_info *cgpu, char *option, char *setting, char *replybuf) { struct ICARUS_INFO *info = (struct ICARUS_INFO *)(cgpu->device_data); int val; if (info->ident != IDENT_CMR2) { strcpy(replybuf, "no set options available"); return replybuf; } if (strcasecmp(option, "help") == 0) { sprintf(replybuf, "clock: range %d-%d", ICARUS_CMR2_SPEED_MIN_INT, ICARUS_CMR2_SPEED_MAX_INT); return replybuf; } if (strcasecmp(option, "clock") == 0) { if (!setting || !*setting) { sprintf(replybuf, "missing clock setting"); return replybuf; } val = atoi(setting); if (val < ICARUS_CMR2_SPEED_MIN_INT || val > ICARUS_CMR2_SPEED_MAX_INT) { sprintf(replybuf, "invalid clock: '%s' valid range %d-%d", setting, ICARUS_CMR2_SPEED_MIN_INT, ICARUS_CMR2_SPEED_MAX_INT); } info->cmr2_speed = CMR2_INT_TO_SPEED(val); info->speed_next_work = true; return NULL; } sprintf(replybuf, "Unknown option: %s", option); return replybuf; } struct device_drv icarus_drv = { .drv_id = DRIVER_icarus, .dname = "Icarus", .name = "ICA", .drv_detect = icarus_detect, .hash_work = &hash_driver_work, .get_api_stats = icarus_api_stats, .get_statline_before = icarus_statline_before, .set_device = icarus_set, .identify_device = icarus_identify, .thread_prepare = icarus_prepare, .scanwork = icarus_scanwork, .thread_shutdown = icarus_shutdown, };
194399.c
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright 2019 NXP * Copyright 2017 NXP * Copyright (c) 2014, 2015 Linaro Limited * * Peng Fan <[email protected]> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <initcall.h> #include <io.h> #include <drivers/imx_snvs.h> #include <kernel/misc.h> #include <kernel/tee_time.h> #include <kernel/time_source.h> #include <mm/core_memprot.h> #include <mm/core_mmu.h> #include <mpa.h> #include <utee_defines.h> #include <platform_config.h> #include <stdint.h> #include <tee/tee_cryp_utl.h> #include <types_ext.h> #include <trace.h> /* SNVS LP SRTC takes 32K clock as input */ #define SNVS_SRTC_FREQ 0x8000 #define CNT_TO_SECS_SHIFT 15 #define CNT_TO_SECS_MASK GENMASK_32(14, 0) static uint64_t snvs_srtc_read_lp_counter(void) { vaddr_t snvs = core_mmu_get_va(SNVS_BASE, MEM_AREA_IO_SEC); uint64_t val1, val2; uint32_t val; do { val = read32(snvs + SNVS_LPSRTCMR); val1 = val; val1 <<= 32; val = read32(snvs + SNVS_LPSRTCLR); val1 |= val; val = read32(snvs + SNVS_LPSRTCMR); val2 = val; val2 <<= 32; val = read32(snvs + SNVS_LPSRTCLR); val2 |= val; /* * When cpu/bus runs at low freq, we may never get same value * during two consecutive read, so only compare the second value. */ } while ((val1 >> CNT_TO_SECS_SHIFT) != (val2 >> CNT_TO_SECS_SHIFT)); return val2; } static TEE_Result snvs_srtc_get_sys_time(TEE_Time *time) { uint64_t cnt = snvs_srtc_read_lp_counter(); time->seconds = cnt >> CNT_TO_SECS_SHIFT; time->millis = (cnt & CNT_TO_SECS_MASK) / (SNVS_SRTC_FREQ / TEE_TIME_MILLIS_BASE); return TEE_SUCCESS; } static const struct time_source snvs_srtc_time_source = { .name = "snvs srtc", .protection_level = 1000, .get_sys_time = snvs_srtc_get_sys_time, }; REGISTER_TIME_SOURCE(snvs_srtc_time_source) /* Needs to be invoked before service_init */ TEE_Result snvs_srtc_enable(void) { vaddr_t snvs = core_mmu_get_va(SNVS_BASE, MEM_AREA_IO_SEC); int timeout = 2000; uint32_t val; val = read32(snvs + SNVS_LPCR); val |= BM_SNVS_LPCR_SRTC_ENV; write32(val, snvs + SNVS_LPCR); do { val = read32(snvs + SNVS_LPCR); if (val & BM_SNVS_LPCR_SRTC_ENV) break; } while (--timeout); if (!timeout) return TEE_ERROR_GENERIC; return TEE_SUCCESS; } /* Reused from tee_time_arm_cntpct.c */ void plat_prng_add_jitter_entropy(enum crypto_rng_src sid, unsigned int *pnum) { uint64_t tsc = snvs_srtc_read_lp_counter(); int bytes = 0, n; static uint8_t first, bits; static uint16_t acc; if (!first) { acc = tsc; bytes = 2; first = 1; } else { acc = (acc << 2) | ((acc >> 6) & 3); for (n = 0; n < 64; n += 2) acc ^= (tsc >> n) & 3; bits += 2; if (bits >= 8) { bits = 0; bytes = 1; } } if (bytes) { FMSG("%s: 0x%02" PRIX16, __func__, acc & GENMASK_32(bytes * 8, 0)); crypto_rng_add_event(sid, pnum, (uint8_t *)&acc, bytes); } }
335705.c
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #include "sha256.h" #include <string.h> void sha256_reset(sha256_context_t *context) { context->h[0] = 0x6a09e667; context->h[1] = 0xbb67ae85; context->h[2] = 0x3c6ef372; context->h[3] = 0xa54ff53a; context->h[4] = 0x510e527f; context->h[5] = 0x9b05688c; context->h[6] = 0x1f83d9ab; context->h[7] = 0x5be0cd19; context->length = 0; context->posn = 0; } #define rightRotate(v, n) (((v) >> (n)) | ((v) << (32 - (n)))) static void sha256_transform(sha256_context_t *context, const uint8_t *m) { static uint32_t const k[64] = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 }; unsigned index; uint32_t temp1, temp2; uint32_t w[64]; /* Initialize working variables to the current hash value */ uint32_t a = context->h[0]; uint32_t b = context->h[1]; uint32_t c = context->h[2]; uint32_t d = context->h[3]; uint32_t e = context->h[4]; uint32_t f = context->h[5]; uint32_t g = context->h[6]; uint32_t h = context->h[7]; /* Convert the 16 message words from big endian to host byte order */ for (index = 0; index < 16; ++index) { w[index] = (((uint32_t)(m[0])) << 24) | (((uint32_t)(m[1])) << 16) | (((uint32_t)(m[2])) << 8) | ((uint32_t)(m[3])); m += 4; } /* Extend the first 16 words to 64 */ for (index = 16; index < 64; ++index) { w[index] = w[index - 16] + w[index - 7] + (rightRotate(w[index - 15], 7) ^ rightRotate(w[index - 15], 18) ^ (w[index - 15] >> 3)) + (rightRotate(w[index - 2], 17) ^ rightRotate(w[index - 2], 19) ^ (w[index - 2] >> 10)); } /* Round function */ #define SHA256_ROUND(a, b, c, d, e, f, g, h, n) \ (temp1 = (h) + k[index + (n)] + w[index + (n)] + \ (rightRotate((e), 6) ^ rightRotate((e), 11) ^ rightRotate((e), 25)) + \ (((e) & (f)) ^ ((~(e)) & (g))), \ temp2 = (rightRotate((a), 2) ^ rightRotate((a), 13) ^ rightRotate((a), 22)) + \ (((a) & (b)) ^ ((a) & (c)) ^ ((b) & (c))), \ (d) += temp1, \ (h) = temp1 + temp2) /* Compression function main loop */ for (index = 0; index < 64; index += 8) { SHA256_ROUND(a, b, c, d, e, f, g, h, 0); SHA256_ROUND(h, a, b, c, d, e, f, g, 1); SHA256_ROUND(g, h, a, b, c, d, e, f, 2); SHA256_ROUND(f, g, h, a, b, c, d, e, 3); SHA256_ROUND(e, f, g, h, a, b, c, d, 4); SHA256_ROUND(d, e, f, g, h, a, b, c, 5); SHA256_ROUND(c, d, e, f, g, h, a, b, 6); SHA256_ROUND(b, c, d, e, f, g, h, a, 7); } /* Add the compressed chunk to the current hash value */ context->h[0] += a; context->h[1] += b; context->h[2] += c; context->h[3] += d; context->h[4] += e; context->h[5] += f; context->h[6] += g; context->h[7] += h; } void sha256_update(sha256_context_t *context, const void *data, size_t size) { const uint8_t *d = (const uint8_t *)data; while (size > 0) { if (context->posn == 0 && size >= 64) { sha256_transform(context, d); d += 64; size -= 64; context->length += 64 * 8; } else { size_t temp = 64 - context->posn; if (temp > size) temp = size; memcpy(context->m + context->posn, d, temp); context->posn += temp; if (context->posn >= 64) { sha256_transform(context, context->m); context->posn = 0; } d += temp; size -= temp; context->length += temp * 8; } } } static void write_be32(uint8_t *out, uint32_t value) { out[0] = (uint8_t)(value >> 24); out[1] = (uint8_t)(value >> 16); out[2] = (uint8_t)(value >> 8); out[3] = (uint8_t)value; } void sha256_finish(sha256_context_t *context, uint8_t *hash) { uint8_t posn = context->posn; if (posn <= (64 - 9)) { context->m[posn] = 0x80; memset(context->m + posn + 1, 0, 64 - 8 - (posn + 1)); } else { context->m[posn] = 0x80; memset(context->m + posn + 1, 0, 64 - (posn + 1)); sha256_transform(context, context->m); memset(context->m, 0, 64 - 8); } write_be32(context->m + 64 - 8, (uint32_t)(context->length >> 32)); write_be32(context->m + 64 - 4, (uint32_t)context->length); sha256_transform(context, context->m); context->posn = 0; for (posn = 0; posn < 8; ++posn) write_be32(hash + posn * 4, context->h[posn]); }
988330.c
/** * @file aubuf.c Audio-buffer Testcode * * Copyright (C) 2010 Creytiv.com */ #include <string.h> #include <re.h> #include <rem.h> #include "test.h" #define DEBUG_MODULE "test_aubuf" #define DEBUG_LEVEL 5 #include <re_dbg.h> #define AUDIO_TIMEBASE 1000000U static int test_aubuf_raw(void) { struct aubuf *ab = NULL; int16_t sampv_in[160]; int16_t sampv_out[160]; struct mbuf *mb; unsigned i; int err; mb = mbuf_alloc(80 * sizeof(int16_t)); if (!mb) return ENOMEM; for (i=0; i<ARRAY_SIZE(sampv_in); i++) sampv_in[i] = i; memset(sampv_out, 0, sizeof(sampv_out)); err = aubuf_alloc(&ab, 320, 0); TEST_ERR(err); TEST_EQUALS(0, aubuf_cur_size(ab)); err = aubuf_write(ab, (uint8_t *)sampv_in, 80 * sizeof(int16_t)); TEST_ERR(err); TEST_EQUALS(160, aubuf_cur_size(ab)); (void)mbuf_write_mem(mb, (uint8_t *)&sampv_in[80], 80 * sizeof(int16_t)); mb->pos = 0; err = aubuf_append(ab, mb); TEST_ERR(err); TEST_EQUALS(320, aubuf_cur_size(ab)); memset(sampv_out, 0, sizeof(sampv_out)); aubuf_read(ab, (uint8_t *)sampv_out, 160 * sizeof(int16_t)); TEST_MEMCMP(sampv_in, sizeof(sampv_in), sampv_out, sizeof(sampv_out)); TEST_EQUALS(0, aubuf_cur_size(ab)); out: mem_deref(ab); mem_deref(mb); return err; } static int test_aubuf_samp(void) { struct aubuf *ab = NULL; int16_t sampv_in[160]; int16_t sampv_out[160]; unsigned i; int err; for (i=0; i<ARRAY_SIZE(sampv_in); i++) sampv_in[i] = i; memset(sampv_out, 0, sizeof(sampv_out)); err = aubuf_alloc(&ab, 320, 0); TEST_ERR(err); TEST_EQUALS(0, aubuf_cur_size(ab)); err |= aubuf_write_samp(ab, sampv_in, 80); err |= aubuf_write_samp(ab, &sampv_in[80], 80); TEST_ERR(err); TEST_EQUALS(320, aubuf_cur_size(ab)); aubuf_read_samp(ab, sampv_out, ARRAY_SIZE(sampv_out)); TEST_MEMCMP(sampv_in, sizeof(sampv_in), sampv_out, sizeof(sampv_out)); TEST_EQUALS(0, aubuf_cur_size(ab)); out: mem_deref(ab); return err; } static int test_aubuf_auframe(void) { struct aubuf *ab = NULL; float sampv_in[160]; float sampv_out[160]; struct auframe af_in; struct auframe af_out; unsigned i; int err; for (i=0; i<ARRAY_SIZE(sampv_in); i++) sampv_in[i] = (float)i; memset(sampv_out, 0, sizeof(sampv_out)); err = aubuf_alloc(&ab, 320, 0); TEST_ERR(err); TEST_EQUALS(0, aubuf_cur_size(ab)); auframe_init(&af_in, AUFMT_FLOAT, sampv_in, 80, 48000, 2); af_in.timestamp = 0; err |= aubuf_write_auframe(ab, &af_in); af_in.sampv = &sampv_in[80]; af_in.sampc = 80; af_in.timestamp = 80 * AUDIO_TIMEBASE / (af_in.srate * af_in.ch); err |= aubuf_write_auframe(ab, &af_in); TEST_ERR(err); TEST_EQUALS(160 * sizeof(float), aubuf_cur_size(ab)); af_out.fmt = AUFMT_FLOAT; af_out.sampv = sampv_out; af_out.sampc = 40; aubuf_read_auframe(ab, &af_out); TEST_EQUALS(120 * sizeof(float), aubuf_cur_size(ab)); TEST_EQUALS(0, af_out.timestamp); af_out.sampv = &sampv_out[40]; af_out.sampc = 40; aubuf_read_auframe(ab, &af_out); TEST_EQUALS(80 * sizeof(float), aubuf_cur_size(ab)); TEST_EQUALS(40 * AUDIO_TIMEBASE / (af_in.srate * af_in.ch), af_out.timestamp); af_out.sampv = &sampv_out[80]; af_out.sampc = 80; aubuf_read_auframe(ab, &af_out); TEST_EQUALS(2, af_out.ch); TEST_EQUALS(48000, af_out.srate); TEST_EQUALS(80 * AUDIO_TIMEBASE / (af_in.srate * af_in.ch), af_out.timestamp); TEST_MEMCMP(sampv_in, sizeof(sampv_in), sampv_out, sizeof(sampv_out)); TEST_EQUALS(0, aubuf_cur_size(ab)); out: mem_deref(ab); return err; } int test_aubuf(void) { int err; err = test_aubuf_raw(); TEST_ERR(err); err = test_aubuf_samp(); TEST_ERR(err); err = test_aubuf_auframe(); TEST_ERR(err); out: return err; }
312043.c
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - Hans-Kristian Arntzen * Copyright (C) 2011-2017 - Daniel De Matteis * Copyright (C) 2016-2019 - Brad Parker * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the License, or (at your option) any later version. * * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with RetroArch. * If not, see <http://www.gnu.org/licenses/>. */ /* VC6 needs objbase included before initguid, but nothing else does */ #include <objbase.h> #include <initguid.h> #include <windows.h> #include <ntverp.h> #ifndef COBJMACROS #define COBJMACROS #define COBJMACROS_DEFINED #endif /* We really just want shobjidl.h, but there's no way to detect its existance at compile time (especially with mingw). however shlobj happens to include it for us when it's supported, which is easier. */ #include <shlobj.h> #ifdef COBJMACROS_DEFINED #undef COBJMACROS #endif #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0601 /* Windows 7 */ #endif #include "../video_display_server.h" #include "../common/win32_common.h" #include "../../retroarch.h" #include "../../verbosity.h" #ifdef __ITaskbarList3_INTERFACE_DEFINED__ #define HAS_TASKBAR_EXT /* MSVC really doesn't want CINTERFACE to be used * with shobjidl for some reason, but since we use C++ mode, * we need a workaround... so use the names of the * COBJMACROS functions instead. */ #if defined(__cplusplus) && !defined(CINTERFACE) #define ITaskbarList3_HrInit(x) (x)->HrInit() #define ITaskbarList3_Release(x) (x)->Release() #define ITaskbarList3_SetProgressState(a, b, c) (a)->SetProgressState(b, c) #define ITaskbarList3_SetProgressValue(a, b, c, d) (a)->SetProgressValue(b, c, d) #endif #endif typedef struct { bool decorations; int progress; int crt_center; unsigned opacity; unsigned orig_width; unsigned orig_height; unsigned orig_refresh; #ifdef HAS_TASKBAR_EXT ITaskbarList3 *taskbar_list; #endif } dispserv_win32_t; /* NOTE: When an application displays a window, its taskbar button is created by the system. When the button is in place, the taskbar sends a TaskbarButtonCreated message to the window. Its value is computed by calling RegisterWindowMessage(L("TaskbarButtonCreated")). That message must be received by your application before it calls any ITaskbarList3 method. */ static void *win32_display_server_init(void) { dispserv_win32_t *dispserv = (dispserv_win32_t*)calloc(1, sizeof(*dispserv)); if (!dispserv) return NULL; #ifdef HAS_TASKBAR_EXT #ifdef __cplusplus /* When compiling in C++ mode, GUIDs are references instead of pointers */ if (FAILED(CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList3, (void**)&dispserv->taskbar_list))) #else /* Mingw GUIDs are pointers instead of references since we're in C mode */ if (FAILED(CoCreateInstance(&CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskbarList3, (void**)&dispserv->taskbar_list))) #endif { dispserv->taskbar_list = NULL; RARCH_ERR("[dispserv]: CoCreateInstance of ITaskbarList3 failed.\n"); } else { if (FAILED(ITaskbarList3_HrInit(dispserv->taskbar_list))) RARCH_ERR("[dispserv]: HrInit of ITaskbarList3 failed.\n"); } #endif return dispserv; } static void win32_display_server_destroy(void *data) { dispserv_win32_t *dispserv = (dispserv_win32_t*)data; if (dispserv->orig_width > 0 && dispserv->orig_height > 0) video_display_server_set_resolution( dispserv->orig_width, dispserv->orig_height, dispserv->orig_refresh, (float)dispserv->orig_refresh, dispserv->crt_center, 0, 0, 0); #ifdef HAS_TASKBAR_EXT if (dispserv->taskbar_list) { ITaskbarList3_Release(dispserv->taskbar_list); dispserv->taskbar_list = NULL; } #endif if (dispserv) free(dispserv); } static bool win32_display_server_set_window_opacity( void *data, unsigned opacity) { HWND hwnd = win32_get_window(); dispserv_win32_t *serv = (dispserv_win32_t*)data; if (serv) serv->opacity = opacity; #if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0500 /* Set window transparency on Windows 2000 and above */ if (opacity < 100) { SetWindowLongPtr(hwnd, GWL_EXSTYLE, GetWindowLongPtr(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); return SetLayeredWindowAttributes(hwnd, 0, (255 * opacity) / 100, LWA_ALPHA); } SetWindowLongPtr(hwnd, GWL_EXSTYLE, GetWindowLongPtr(hwnd, GWL_EXSTYLE) & ~WS_EX_LAYERED); return true; #else return false; #endif } static bool win32_display_server_set_window_progress( void *data, int progress, bool finished) { HWND hwnd = win32_get_window(); dispserv_win32_t *serv = (dispserv_win32_t*)data; if (serv) serv->progress = progress; #ifdef HAS_TASKBAR_EXT if (!serv->taskbar_list || !win32_taskbar_is_created()) return false; if (progress == -1) { if (ITaskbarList3_SetProgressState( serv->taskbar_list, hwnd, TBPF_INDETERMINATE) != S_OK) return false; } else if (finished) { if (ITaskbarList3_SetProgressState( serv->taskbar_list, hwnd, TBPF_NOPROGRESS) != S_OK) return false; } else if (progress >= 0) { if (ITaskbarList3_SetProgressState( serv->taskbar_list, hwnd, TBPF_NORMAL) != S_OK) return false; if (ITaskbarList3_SetProgressValue( serv->taskbar_list, hwnd, progress, 100) != S_OK) return false; } #endif return true; } static bool win32_display_server_set_window_decorations(void *data, bool on) { dispserv_win32_t *serv = (dispserv_win32_t*)data; if (serv) serv->decorations = on; /* menu_setting performs a reinit instead to properly * apply decoration changes */ return true; } static bool win32_display_server_set_resolution(void *data, unsigned width, unsigned height, int int_hz, float hz, int center, int monitor_index, int xoffset, int padjust) { DEVMODE dm = {0}; LONG res = 0; unsigned i = 0; unsigned curr_bpp = 0; #if _WIN32_WINNT >= 0x0500 unsigned curr_orientation = 0; #endif dispserv_win32_t *serv = (dispserv_win32_t*)data; if (!serv) return false; win32_get_video_output(&dm, -1, sizeof(dm)); if (serv->orig_width == 0) serv->orig_width = GetSystemMetrics(SM_CXSCREEN); if (serv->orig_height == 0) serv->orig_height = GetSystemMetrics(SM_CYSCREEN); if (serv->orig_refresh == 0) serv->orig_refresh = video_driver_get_refresh_rate(); /* Used to stop super resolution bug */ if (width == dm.dmPelsWidth) width = 0; if (width == 0) width = dm.dmPelsWidth; if (height == 0) height = dm.dmPelsHeight; if (curr_bpp == 0) curr_bpp = dm.dmBitsPerPel; if (int_hz == 0) int_hz = dm.dmDisplayFrequency; #if _WIN32_WINNT >= 0x0500 if (curr_orientation == 0) curr_orientation = dm.dmDisplayOrientation; #endif for (i = 0; win32_get_video_output(&dm, i, sizeof(dm)); i++) { if (dm.dmPelsWidth != width) continue; if (dm.dmPelsHeight != height) continue; if (dm.dmBitsPerPel != curr_bpp) continue; if (dm.dmDisplayFrequency != int_hz) continue; #if _WIN32_WINNT >= 0x0500 if (dm.dmDisplayOrientation != curr_orientation) continue; if (dm.dmDisplayFixedOutput != DMDFO_DEFAULT) continue; #endif dm.dmFields |= DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | DM_DISPLAYFREQUENCY; #if _WIN32_WINNT >= 0x0500 dm.dmFields |= DM_DISPLAYORIENTATION; #endif res = win32_change_display_settings(NULL, &dm, CDS_TEST); switch (res) { case DISP_CHANGE_SUCCESSFUL: res = win32_change_display_settings(NULL, &dm, 0); switch (res) { case DISP_CHANGE_SUCCESSFUL: return true; case DISP_CHANGE_NOTUPDATED: return true; default: break; } break; case DISP_CHANGE_RESTART: break; default: break; } } return true; } /* Display resolution list qsort helper function */ static int resolution_list_qsort_func( const video_display_config_t *a, const video_display_config_t *b) { char str_a[64]; char str_b[64]; if (!a || !b) return 0; snprintf(str_a, sizeof(str_a), "%04dx%04d (%d Hz)", a->width, a->height, a->refreshrate); snprintf(str_b, sizeof(str_b), "%04dx%04d (%d Hz)", b->width, b->height, b->refreshrate); return strcasecmp(str_a, str_b); } static void *win32_display_server_get_resolution_list( void *data, unsigned *len) { DEVMODE dm = {0}; unsigned i, j, count = 0; unsigned curr_width = 0; unsigned curr_height = 0; unsigned curr_bpp = 0; unsigned curr_refreshrate = 0; #if _WIN32_WINNT >= 0x0500 unsigned curr_orientation = 0; #endif struct video_display_config *conf = NULL; if (win32_get_video_output(&dm, -1, sizeof(dm))) { curr_width = dm.dmPelsWidth; curr_height = dm.dmPelsHeight; curr_bpp = dm.dmBitsPerPel; curr_refreshrate = dm.dmDisplayFrequency; #if _WIN32_WINNT >= 0x0500 curr_orientation = dm.dmDisplayOrientation; #endif } for (i = 0; win32_get_video_output(&dm, i, sizeof(dm)); i++) { if (dm.dmBitsPerPel != curr_bpp) continue; #if _WIN32_WINNT >= 0x0500 if (dm.dmDisplayOrientation != curr_orientation) continue; if (dm.dmDisplayFixedOutput != DMDFO_DEFAULT) continue; #endif count++; } *len = count; conf = (struct video_display_config*) calloc(*len, sizeof(struct video_display_config)); if (!conf) return NULL; for (i = 0, j = 0; win32_get_video_output(&dm, i, sizeof(dm)); i++) { if (dm.dmBitsPerPel != curr_bpp) continue; #if _WIN32_WINNT >= 0x0500 if (dm.dmDisplayOrientation != curr_orientation) continue; if (dm.dmDisplayFixedOutput != DMDFO_DEFAULT) continue; #endif conf[j].width = dm.dmPelsWidth; conf[j].height = dm.dmPelsHeight; conf[j].bpp = dm.dmBitsPerPel; conf[j].refreshrate = dm.dmDisplayFrequency; conf[j].idx = j; conf[j].current = false; if ( (conf[j].width == curr_width) && (conf[j].height == curr_height) && (conf[j].bpp == curr_bpp) && (conf[j].refreshrate == curr_refreshrate) ) conf[j].current = true; j++; } qsort( conf, count, sizeof(video_display_config_t), (int (*)(const void *, const void *)) resolution_list_qsort_func); return conf; } #if _WIN32_WINNT >= 0x0500 enum rotation win32_display_server_get_screen_orientation(void *data) { DEVMODE dm = {0}; enum rotation rotation; win32_get_video_output(&dm, -1, sizeof(dm)); switch (dm.dmDisplayOrientation) { case DMDO_DEFAULT: default: rotation = ORIENTATION_NORMAL; break; case DMDO_90: rotation = ORIENTATION_FLIPPED_ROTATED; break; case DMDO_180: rotation = ORIENTATION_FLIPPED; break; case DMDO_270: rotation = ORIENTATION_VERTICAL; break; } return rotation; } void win32_display_server_set_screen_orientation(void *data, enum rotation rotation) { DEVMODE dm = {0}; win32_get_video_output(&dm, -1, sizeof(dm)); switch (rotation) { case ORIENTATION_NORMAL: default: { int width = dm.dmPelsWidth; if (( dm.dmDisplayOrientation == DMDO_90 || dm.dmDisplayOrientation == DMDO_270) && width != dm.dmPelsHeight) { /* device is changing orientations, swap the aspect */ dm.dmPelsWidth = dm.dmPelsHeight; dm.dmPelsHeight = width; } dm.dmDisplayOrientation = DMDO_DEFAULT; break; } case ORIENTATION_VERTICAL: { int width = dm.dmPelsWidth; if (( dm.dmDisplayOrientation == DMDO_DEFAULT || dm.dmDisplayOrientation == DMDO_180) && width != dm.dmPelsHeight) { /* device is changing orientations, swap the aspect */ dm.dmPelsWidth = dm.dmPelsHeight; dm.dmPelsHeight = width; } dm.dmDisplayOrientation = DMDO_270; break; } case ORIENTATION_FLIPPED: { int width = dm.dmPelsWidth; if (( dm.dmDisplayOrientation == DMDO_90 || dm.dmDisplayOrientation == DMDO_270) && width != dm.dmPelsHeight) { /* device is changing orientations, swap the aspect */ dm.dmPelsWidth = dm.dmPelsHeight; dm.dmPelsHeight = width; } dm.dmDisplayOrientation = DMDO_180; break; } case ORIENTATION_FLIPPED_ROTATED: { int width = dm.dmPelsWidth; if (( dm.dmDisplayOrientation == DMDO_DEFAULT || dm.dmDisplayOrientation == DMDO_180) && width != dm.dmPelsHeight) { /* device is changing orientations, swap the aspect */ dm.dmPelsWidth = dm.dmPelsHeight; dm.dmPelsHeight = width; } dm.dmDisplayOrientation = DMDO_90; break; } } win32_change_display_settings(NULL, &dm, 0); } #endif static uint32_t win32_display_server_get_flags(void *data) { uint32_t flags = 0; BIT32_SET(flags, DISPSERV_CTX_CRT_SWITCHRES); return flags; } const video_display_server_t dispserv_win32 = { win32_display_server_init, win32_display_server_destroy, win32_display_server_set_window_opacity, win32_display_server_set_window_progress, win32_display_server_set_window_decorations, win32_display_server_set_resolution, win32_display_server_get_resolution_list, NULL, /* get_output_options */ #if _WIN32_WINNT >= 0x0500 win32_display_server_set_screen_orientation, win32_display_server_get_screen_orientation, #else NULL, NULL, #endif win32_display_server_get_flags, "win32" };
881345.c
/******************************************************************************************** * Supersingular Isogeny Key Encapsulation Library * * Abstract: benchmarking/testing isogeny-based key encapsulation mechanism SIKEp503 *********************************************************************************************/ #include <stdio.h> #include <string.h> #include "test_extras.h" #include "../P503/api.h" #include "../sha3/fips202.h" #define SCHEME_NAME "SIAKEp503" #include "test_sike.c"
82183.c
/* MSP432 port for the mbed Microcontroller Library * Copyright (c) 2020 Andreas Terstegge ([email protected]) * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "cmsis.h" // Bit-Band base addresses of the 10 GPIO ports __IO uint8_t *gpio_bitband_base[10] = { &BITBAND_PERI(P1->IN, 0), &BITBAND_PERI(P2->IN, 0), &BITBAND_PERI(P3->IN, 0), &BITBAND_PERI(P4->IN, 0), &BITBAND_PERI(P5->IN, 0), &BITBAND_PERI(P6->IN, 0), &BITBAND_PERI(P7->IN, 0), &BITBAND_PERI(P8->IN, 0), &BITBAND_PERI(P9->IN, 0), &BITBAND_PERI(P10->IN, 0) }; // Standard base addresses of the 10 ports __I uint8_t *port_base[10] = { &P1->IN, &P2->IN, &P3->IN, &P4->IN, &P5->IN, &P6->IN, &P7->IN, &P8->IN, &P9->IN, &P10->IN };
773229.c
/* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: * Copyright (C) 2012 CaH4e3 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "mapinc.h" static uint8 bank; static uint16 mode; static SFORMAT StateRegs[] = { { &bank, 1, "BANK" }, { &mode, 2, "MODE" }, { 0 } }; static void Sync(void) { setchr8(((mode & 0x1F) << 2) | (bank & 0x03)); if (mode & 0x20) { setprg16(0x8000, (mode & 0x40) | ((mode >> 8) & 0x3F)); setprg16(0xc000, (mode & 0x40) | ((mode >> 8) & 0x3F)); } else setprg32(0x8000, ((mode & 0x40) | ((mode >> 8) & 0x3F)) >> 1); setmirror(((mode >> 7) & 1) ^ 1); } static DECLFW(M62Write) { mode = A & 0x3FFF; bank = V & 3; Sync(); } static void M62Power(void) { bank = mode = 0; Sync(); SetWriteHandler(0x8000, 0xFFFF, M62Write); SetReadHandler(0x8000, 0xFFFF, CartBR); } static void M62Reset(void) { bank = mode = 0; Sync(); } static void StateRestore(int version) { Sync(); } void Mapper62_Init(CartInfo *info) { info->Power = M62Power; info->Reset = M62Reset; AddExState(&StateRegs, ~0, 0, 0); GameStateRestore = StateRestore; }
195011.c
#include <std.h> #define EARTH "%^BOLD%^%^YELLOW%^Earth%^RESET%^" #define FIRE "%^BOLD%^%^RED%^Fire%^RESET%^" #define WATER "%^BOLD%^%^CYAN%^Water%^RESET%^" #define WIND "%^BOLD%^Wind%^RESET%^" #define ELEMENTS "%^BOLD%^%^MAGENTA%^E%^CYAN%^l%^ORANGE%^e%^BLUE%^m%^RED%^e%^RESET%^%^BLUE%^n%^RED%^t%^GREEN%^s%^RESET%^" inherit ARMOUR; string OWNER; int in_use, uses; mapping pstats; void do_all(); void init() { ::init(); if(interactive(TP) && TP==environment(TO) && !OWNER) OWNER = TPQN; add_action("call_elem", "test"); add_action("call_elem", "callto"); } void create() { ::create(); in_use = 0; uses = 6; pstats = ([]); set_name("elemental plate armor"); set("id", ({"elemental plate", "armor", "plate", "plate armor"}) ); set("short", "%^BOLD%^%^CYAN%^Elemental Plate armor%^RESET%^"); set_long( " This suit of armor is made of a strange %^BOLD%^%^ORANGE%^brown%^RESET%^ metal that you can't identify. It reminds you of dirt. Veins of %^RED%^flame red%^RESET%^ and %^CYAN%^ocean blue%^RESET%^ cross through the metal. There are 4 gems in the shoulders, inscribed with runes. You can almost hear the elements call to you." ); set_weight(50); set("value", 25000); set_type("armour"); set_limbs( ({"torso" }) ); set_ac(9); set_property("enchantment", 5); set_property("magic resistance", "40"); set_wear((:this_object(), "extra_wear":)); set_remove((:TO, "remove_me":)); } int extra_wear() { if( ((int)TP->query_level() < 25) || ((string)TP->query_name() != OWNER)) { tell_object(TP, "%^CYAN%^The elements do not accept you."); TO->remove(); return 0; } tell_object(TP, "You slip into the %^BOLD%^%^ORANGE%^Armor of the Elements%^RESET%^ and feel a strange power flow through you.\nYou feel "+EARTH+" lend you his strength, "+FIRE+" his power, "+WATER+" her resistance, and "+WIND+" her speed."); return 1; } int remove_me(){ if(in_use){ tell_object(TP, "The power of the elements is still coursing through your body!"); return 0; } tell_object(TP, "%^BOLD%^%^RED%^You feel the power of the elements leave you as you slip from the suit of armor.%^RESET%^"); return 1; } int call_elem(string str){ int stat, time; if(!TO->query_worn()){ return 0; } if(in_use){ tell_object(TP, "The power of the elements is already in you."); return 1; } if(uses < 0){ tell_object(TP, "The armor has been drained of its power, and crumbles to dust."); TO->remove(); return 1; } if(!str){ tell_object(TP, "You must call upon either "+WIND+", "+WATER+", "+FIRE+", "+EARTH+", or all the "+ELEMENTS+"."); return 1; } time = (int)TP->query_lowest_level()*8; if(wizardp(TP)) time = 200; switch(str){ case "fire": if(uses < 2) { tell_object(TP, "There is not enough power in the armor."); return 1; } tell_object(TP, "You call upon the rage of "+FIRE+"!!"); stat = TP->query_stats("constitution"); stat = 25 - stat; TP->add_stat_bonus("constitution", stat); TP->add_damage_bonus(7); uses -= 2; in_use = 1; call_out("remove_power", time, "fire", stat); break; case "earth": if(uses < 2) { tell_object(TP, "There is not enough power in the armor."); return 1; } tell_object(TP, "You call upon the strength of "+EARTH+"!!"); stat = TP->query_stats("strength"); stat = 25 - stat; TP->add_stat_bonus("strength", stat); TP->add_attack_bonus(10); uses -= 2; in_use = 1; call_out("remove_power", time, "earth", stat); break; case "wind": if(uses < 2) { tell_object(TP, "There is not enough power in the armor."); return 1; } tell_object(TP, "You call upon the speed of "+WIND+"!!"); stat = TP->query_stats("dexterity"); stat = 25 - stat; TP->add_stat_bonus("dexterity", stat); uses -= 2; in_use = 1; call_out("remove_power", time, "wind", stat); break; case "water": tell_object(TP, "You call upon "+WATER+" to heal you."); TP->set_hp((int)TP->query_max_hp()); TP->heal(1); uses -= 1; in_use = 1; call_out("remove_power", time, "water", 0); break; case "elements": if(uses < 5) { tell_object(TP, "There is not enough power in the armor to do that."); return 1; } tell_object(TP, "You call up all of the "+ELEMENTS+" to aid you in your battle!"); TP->set_hp((int)TP->query_max_hp()); TP->heal(1); do_all(); uses = 0; in_use = 1; break; default: tell_object(TP, "You cannot call upon that element."); } return 1; } void remove_power(string str, int stat){ tell_object(TP, "You feel yourself returning to normal."); switch(str){ case "fire": TP->add_stat_bonus("constitution", -stat); TP->add_damage_bonus(-7); break; case "earth": TP->add_stat_bonus("strength", -stat); TP->add_attack_bonus(-10); break; case "wind": TP->add_stat_bonus("dexterity", -stat); break; default: TP->heal(20); } in_use = 0; } void set_uses(int x) {uses = x;} int query_uses() {return uses;} void do_all(){ int time, stat; pstats["strength"] = 25 - (int)TP->query_stats("strength"); pstats["dexterity"] = 25 - (int)TP->query_stats("dexterity"); pstats["constitution"] = 25 - (int)TP->query_stats("constitution"); time = (int)TP->query_lowest_level()*4; if(wizardp(TP)) time = 100; stat = pstats["strength"]; TP->add_stat_bonus("strength", stat); stat = pstats["dexterity"]; TP->add_stat_bonus("dexterity", stat); stat = pstats["constitution"]; TP->add_stat_bonus("constitution", stat); TP->add_damage_bonus(12); TP->add_attack_bonus(15); call_out("undo_elem", time); } void undo_elem(){ int stat; stat = pstats["strength"]; TP->add_stat_bonus("strength", -stat); stat = pstats["dexterity"]; TP->add_stat_bonus("dexterity", -stat); stat = pstats["constitution"]; TP->add_stat_bonus("constitution", -stat); TP->add_damage_bonus(-12); TP->add_attack_bonus(-15); tell_object(TP, "Having expended the greatest power of the armor, it crumbles to dust around you."); in_use = 0; TO->remove(); }
968676.c
/* * %CopyrightBegin% * * Copyright Ericsson AB 1997-2016. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * %CopyrightEnd% */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* If we HAVE_SCTP_H and Solaris, we need to define the following in order to get SCTP working: */ #if (defined(HAVE_SCTP_H) && defined(__sun) && defined(__SVR4)) #define SOLARIS10 1 /* WARNING: This is not quite correct, it may also be Solaris 11! */ #define _XPG4_2 #define __EXTENSIONS__ #endif #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <ctype.h> #include <sys/types.h> #include <errno.h> #define IDENTITY(c) c #define STRINGIFY_1(b) IDENTITY(#b) #define STRINGIFY(a) STRINGIFY_1(a) #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_SYS_UIO_H #include <sys/uio.h> #endif #ifdef HAVE_NET_IF_DL_H #include <net/if_dl.h> #endif #ifdef HAVE_IFADDRS_H #include <ifaddrs.h> #endif #ifdef HAVE_NETPACKET_PACKET_H #include <netpacket/packet.h> #endif #ifdef HAVE_SYS_UN_H #include <sys/un.h> #endif /* All platforms fail on malloc errors. */ #define FATAL_MALLOC #include "erl_driver.h" /* The IS_SOCKET_ERROR macro below is used for portability reasons. While POSIX specifies that errors from socket-related system calls should be indicated with a -1 return value, some users have experienced non-Windows OS kernels that return negative values other than -1. While one can argue that such kernels are technically broken, comparing against values less than 0 covers their out-of-spec return values without imposing incorrect semantics on systems that manage to correctly return -1 for errors, thus increasing Erlang's portability. */ #ifdef __WIN32__ #define IS_SOCKET_ERROR(val) ((val) == SOCKET_ERROR) #else #define IS_SOCKET_ERROR(val) ((val) < 0) #endif #ifdef __WIN32__ #define LLU "%I64u" #else #define LLU "%llu" #endif typedef unsigned long long llu_t; #ifndef INT16_MIN #define INT16_MIN (-32768) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifdef __WIN32__ #define STRNCASECMP strncasecmp #define INCL_WINSOCK_API_TYPEDEFS 1 #ifndef WINDOWS_H_INCLUDES_WINSOCK2_H #include <winsock2.h> #endif #include <windows.h> #include <Ws2tcpip.h> /* NEED VC 6.0 or higher */ /* Visual studio 2008+: NTDDI_VERSION needs to be set for iphlpapi.h to define the right structures. It needs to be set to WINXP (or LONGHORN) for IPV6 to work and it's set lower by default, so we need to change it. */ #ifdef HAVE_SDKDDKVER_H # include <sdkddkver.h> # ifdef NTDDI_VERSION # undef NTDDI_VERSION # endif # define NTDDI_VERSION NTDDI_WINXP #endif #include <iphlpapi.h> #undef WANT_NONBLOCKING #include "sys.h" #undef EWOULDBLOCK #undef ETIMEDOUT #ifdef EINPROGRESS #undef EINPROGRESS #endif #ifdef EALREADY #undef EALREADY #endif #ifdef ENOTSOCK #undef ENOTSOCK #endif #ifdef EDESTADDRREQ #undef EDESTADDRREQ #endif #ifdef EMSGSIZE #undef EMSGSIZE #endif #ifdef EPROTOTYPE #undef EPROTOTYPE #endif #ifdef ENOPROTOOPT #undef ENOPROTOOPT #endif #ifdef EPROTONOSUPPORT #undef EPROTONOSUPPORT #endif #ifdef EOPNOTSUPP #undef EOPNOTSUPP #endif #ifdef EAFNOSUPPORT #undef EAFNOSUPPORT #endif #ifdef EADDRINUSE #undef EADDRINUSE #endif #ifdef EADDRNOTAVAIL #undef EADDRNOTAVAIL #endif #ifdef ENETDOWN #undef ENETDOWN #endif #ifdef ENETUNREACH #undef ENETUNREACH #endif #ifdef ENETRESET #undef ENETRESET #endif #ifdef ECONNABORTED #undef ECONNABORTED #endif #ifdef ECONNRESET #undef ECONNRESET #endif #ifdef ENOBUFS #undef ENOBUFS #endif #ifdef EISCONN #undef EISCONN #endif #ifdef ENOTCONN #undef ENOTCONN #endif #ifdef ECONNREFUSED #undef ECONNREFUSED #endif #ifdef ELOOP #undef ELOOP #endif #ifdef EHOSTUNREACH #undef EHOSTUNREACH #endif #define HAVE_MULTICAST_SUPPORT #define HAVE_UDP #define ERRNO_BLOCK WSAEWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK #define EINPROGRESS WSAEINPROGRESS #define EALREADY WSAEALREADY #define ENOTSOCK WSAENOTSOCK #define EDESTADDRREQ WSAEDESTADDRREQ #define EMSGSIZE WSAEMSGSIZE #define EPROTOTYPE WSAEPROTOTYPE #define ENOPROTOOPT WSAENOPROTOOPT #define EPROTONOSUPPORT WSAEPROTONOSUPPORT #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT #define EOPNOTSUPP WSAEOPNOTSUPP #define EPFNOSUPPORT WSAEPFNOSUPPORT #define EAFNOSUPPORT WSAEAFNOSUPPORT #define EADDRINUSE WSAEADDRINUSE #define EADDRNOTAVAIL WSAEADDRNOTAVAIL #define ENETDOWN WSAENETDOWN #define ENETUNREACH WSAENETUNREACH #define ENETRESET WSAENETRESET #define ECONNABORTED WSAECONNABORTED #define ECONNRESET WSAECONNRESET #define ENOBUFS WSAENOBUFS #define EISCONN WSAEISCONN #define ENOTCONN WSAENOTCONN #define ESHUTDOWN WSAESHUTDOWN #define ETOOMANYREFS WSAETOOMANYREFS #define ETIMEDOUT WSAETIMEDOUT #define ECONNREFUSED WSAECONNREFUSED #define ELOOP WSAELOOP #undef ENAMETOOLONG #define ENAMETOOLONG WSAENAMETOOLONG #define EHOSTDOWN WSAEHOSTDOWN #define EHOSTUNREACH WSAEHOSTUNREACH #undef ENOTEMPTY #define ENOTEMPTY WSAENOTEMPTY #define EPROCLIM WSAEPROCLIM #define EUSERS WSAEUSERS #define EDQUOT WSAEDQUOT #define ESTALE WSAESTALE #define EREMOTE WSAEREMOTE #define INVALID_EVENT WSA_INVALID_EVENT static BOOL (WINAPI *fpSetHandleInformation)(HANDLE,DWORD,DWORD); #define sock_open(af, type, proto) \ make_noninheritable_handle(socket((af), (type), (proto))) #define sock_close(s) closesocket((s)) #define sock_shutdown(s, how) shutdown((s), (how)) #define sock_accept(s, addr, len) \ make_noninheritable_handle(accept((s), (addr), (len))) #define sock_connect(s, addr, len) connect((s), (addr), (len)) #define sock_listen(s, b) listen((s), (b)) #define sock_bind(s, addr, len) bind((s), (addr), (len)) #define sock_getopt(s,t,n,v,l) getsockopt((s),(t),(n),(v),(l)) #define sock_setopt(s,t,n,v,l) setsockopt((s),(t),(n),(v),(l)) #define sock_name(s, addr, len) getsockname((s), (addr), (len)) #define sock_peer(s, addr, len) getpeername((s), (addr), (len)) #define sock_ntohs(x) ntohs((x)) #define sock_ntohl(x) ntohl((x)) #define sock_htons(x) htons((x)) #define sock_htonl(x) htonl((x)) #define sock_send(s,buf,len,flag) send((s),(buf),(len),(flag)) #define sock_sendv(s, vec, size, np, flag) \ WSASend((s),(WSABUF*)(vec),(size),(np),(flag),NULL,NULL) #define sock_recv(s,buf,len,flag) recv((s),(buf),(len),(flag)) #define sock_recvfrom(s,buf,blen,flag,addr,alen) \ recvfrom((s),(buf),(blen),(flag),(addr),(alen)) #define sock_sendto(s,buf,blen,flag,addr,alen) \ sendto((s),(buf),(blen),(flag),(addr),(alen)) #define sock_hostname(buf, len) gethostname((buf), (len)) #define sock_getservbyname(name,proto) getservbyname((name),(proto)) #define sock_getservbyport(port,proto) getservbyport((port),(proto)) #define sock_errno() WSAGetLastError() #define sock_create_event(d) WSACreateEvent() #define sock_close_event(e) WSACloseEvent(e) #define sock_select(D, Flags, OnOff) winsock_event_select(D, Flags, OnOff) #define SET_BLOCKING(s) ioctlsocket(s, FIONBIO, &zero_value) #define SET_NONBLOCKING(s) ioctlsocket(s, FIONBIO, &one_value) static unsigned long zero_value = 0; static unsigned long one_value = 1; #define TCP_SHUT_WR SD_SEND #define TCP_SHUT_RD SD_RECEIVE #define TCP_SHUT_RDWR SD_BOTH #else /* !__WIN32__ */ #include <sys/time.h> #ifdef NETDB_H_NEEDS_IN_H #include <netinet/in.h> #endif #include <netdb.h> #include <sys/socket.h> #include <netinet/in.h> #ifdef DEF_INADDR_LOOPBACK_IN_RPC_TYPES_H #include <rpc/types.h> #endif #include <netinet/tcp.h> #include <arpa/inet.h> #include <sys/param.h> #ifdef HAVE_ARPA_NAMESER_H #include <arpa/nameser.h> #endif #ifdef HAVE_SYS_SOCKIO_H #include <sys/sockio.h> #endif #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif #include <net/if.h> #ifdef HAVE_SCHED_H #include <sched.h> #endif #ifdef HAVE_SETNS_H #include <setns.h> #endif #define HAVE_UDP /* SCTP support -- currently for UNIX platforms only: */ #undef HAVE_SCTP #if defined(HAVE_SCTP_H) #include <netinet/sctp.h> /* SCTP Socket API Draft from version 11 on specifies that netinet/sctp.h must explicitly define HAVE_SCTP in case when SCTP is supported, but Solaris 10 still apparently uses Draft 10, and does not define that symbol, so we have to define it explicitly: */ #ifndef HAVE_SCTP # define HAVE_SCTP #endif /* These changed in draft 11, so SOLARIS10 uses the old MSG_* */ #if ! HAVE_DECL_SCTP_UNORDERED # define SCTP_UNORDERED MSG_UNORDERED #endif #if ! HAVE_DECL_SCTP_ADDR_OVER # define SCTP_ADDR_OVER MSG_ADDR_OVER #endif #if ! HAVE_DECL_SCTP_ABORT # define SCTP_ABORT MSG_ABORT #endif #if ! HAVE_DECL_SCTP_EOF # define SCTP_EOF MSG_EOF #endif /* More Solaris 10 fixes: */ #if ! HAVE_DECL_SCTP_CLOSED && HAVE_DECL_SCTPS_IDLE # define SCTP_CLOSED SCTPS_IDLE # undef HAVE_DECL_SCTP_CLOSED # define HAVE_DECL_SCTP_CLOSED 1 #endif #if ! HAVE_DECL_SCTP_BOUND && HAVE_DECL_SCTPS_BOUND # define SCTP_BOUND SCTPS_BOUND # undef HAVE_DECL_SCTP_BOUND # define HAVE_DECL_SCTP_BOUND 1 #endif #if ! HAVE_DECL_SCTP_LISTEN && HAVE_DECL_SCTPS_LISTEN # define SCTP_LISTEN SCTPS_LISTEN # undef HAVE_DECL_SCTP_LISTEN # define HAVE_DECL_SCTP_LISTEN 1 #endif #if ! HAVE_DECL_SCTP_COOKIE_WAIT && HAVE_DECL_SCTPS_COOKIE_WAIT # define SCTP_COOKIE_WAIT SCTPS_COOKIE_WAIT # undef HAVE_DECL_SCTP_COOKIE_WAIT # define HAVE_DECL_SCTP_COOKIE_WAIT 1 #endif #if ! HAVE_DECL_SCTP_COOKIE_ECHOED && HAVE_DECL_SCTPS_COOKIE_ECHOED # define SCTP_COOKIE_ECHOED SCTPS_COOKIE_ECHOED # undef HAVE_DECL_SCTP_COOKIE_ECHOED # define HAVE_DECL_SCTP_COOKIE_ECHOED 1 #endif #if ! HAVE_DECL_SCTP_ESTABLISHED && HAVE_DECL_SCTPS_ESTABLISHED # define SCTP_ESTABLISHED SCTPS_ESTABLISHED # undef HAVE_DECL_SCTP_ESTABLISHED # define HAVE_DECL_SCTP_ESTABLISHED 1 #endif #if ! HAVE_DECL_SCTP_SHUTDOWN_PENDING && HAVE_DECL_SCTPS_SHUTDOWN_PENDING # define SCTP_SHUTDOWN_PENDING SCTPS_SHUTDOWN_PENDING # undef HAVE_DECL_SCTP_SHUTDOWN_PENDING # define HAVE_DECL_SCTP_SHUTDOWN_PENDING 1 #endif #if ! HAVE_DECL_SCTP_SHUTDOWN_SENT && HAVE_DECL_SCTPS_SHUTDOWN_SENT # define SCTP_SHUTDOWN_SENT SCTPS_SHUTDOWN_SENT # undef HAVE_DECL_SCTP_SHUTDOWN_SENT # define HAVE_DECL_SCTP_SHUTDOWN_SENT 1 #endif #if ! HAVE_DECL_SCTP_SHUTDOWN_RECEIVED && HAVE_DECL_SCTPS_SHUTDOWN_RECEIVED # define SCTP_SHUTDOWN_RECEIVED SCTPS_SHUTDOWN_RECEIVED # undef HAVE_DECL_SCTP_SHUTDOWN_RECEIVED # define HAVE_DECL_SCTP_SHUTDOWN_RECEIVED 1 #endif #if ! HAVE_DECL_SCTP_SHUTDOWN_ACK_SENT && HAVE_DECL_SCTPS_SHUTDOWN_ACK_SENT # define SCTP_SHUTDOWN_ACK_SENT SCTPS_SHUTDOWN_ACK_SENT # undef HAVE_DECL_SCTP_SHUTDOWN_ACK_SENT # define HAVE_DECL_SCTP_SHUTDOWN_ACK_SENT 1 #endif /* New spelling in lksctp 2.6.22 or maybe even earlier: * adaption -> adaptation */ #if !defined(SCTP_ADAPTATION_LAYER) && defined (SCTP_ADAPTION_LAYER) # define SCTP_ADAPTATION_LAYER SCTP_ADAPTION_LAYER # define SCTP_ADAPTATION_INDICATION SCTP_ADAPTION_INDICATION # define sctp_adaptation_event sctp_adaption_event # define sctp_setadaptation sctp_setadaption # define sn_adaptation_event sn_adaption_event # define sai_adaptation_ind sai_adaption_ind # define ssb_adaptation_ind ssb_adaption_ind # define sctp_adaptation_layer_event sctp_adaption_layer_event #endif #if defined(__GNUC__) && defined(HAVE_SCTP_BINDX) static typeof(sctp_bindx) *p_sctp_bindx = NULL; #else static int (*p_sctp_bindx) (int sd, struct sockaddr *addrs, int addrcnt, int flags) = NULL; #endif #if defined(__GNUC__) && defined(HAVE_SCTP_PEELOFF) static typeof(sctp_peeloff) *p_sctp_peeloff = NULL; #else static int (*p_sctp_peeloff) (int sd, sctp_assoc_t assoc_id) = NULL; #endif #if defined(__GNUC__) && defined(HAVE_SCTP_GETLADDRS) static typeof(sctp_getladdrs) *p_sctp_getladdrs = NULL; #else static int (*p_sctp_getladdrs) (int sd, sctp_assoc_t assoc_id, struct sockaddr **ss) = NULL; #endif #if defined(__GNUC__) && defined(HAVE_SCTP_FREELADDRS) static typeof(sctp_freeladdrs) *p_sctp_freeladdrs = NULL; #else static void (*p_sctp_freeladdrs)(struct sockaddr *addrs) = NULL; #endif #if defined(__GNUC__) && defined(HAVE_SCTP_GETPADDRS) static typeof(sctp_getpaddrs) *p_sctp_getpaddrs = NULL; #else static int (*p_sctp_getpaddrs) (int sd, sctp_assoc_t assoc_id, struct sockaddr **ss) = NULL; #endif #if defined(__GNUC__) && defined(HAVE_SCTP_FREEPADDRS) static typeof(sctp_freepaddrs) *p_sctp_freepaddrs = NULL; #else static void (*p_sctp_freepaddrs)(struct sockaddr *addrs) = NULL; #endif #endif /* #if defined(HAVE_SCTP_H) */ #ifndef WANT_NONBLOCKING #define WANT_NONBLOCKING #endif #include "sys.h" /* #define INET_DRV_DEBUG 1 */ #ifdef INET_DRV_DEBUG #define DEBUG 1 #undef DEBUGF #define DEBUGF(X) printf X #endif #if !defined(HAVE_STRNCASECMP) #define STRNCASECMP my_strncasecmp static int my_strncasecmp(const char *s1, const char *s2, size_t n) { int i; for (i=0;i<n-1 && s1[i] && s2[i] && toupper(s1[i]) == toupper(s2[i]);++i) ; return (toupper(s1[i]) - toupper(s2[i])); } #else #define STRNCASECMP strncasecmp #endif #define INVALID_SOCKET -1 #define INVALID_EVENT -1 #define SOCKET_ERROR -1 #define SOCKET int #define HANDLE long int #define FD_READ ERL_DRV_READ #define FD_WRITE ERL_DRV_WRITE #define FD_CLOSE 0 #define FD_CONNECT ERL_DRV_WRITE #define FD_ACCEPT ERL_DRV_READ #define sock_connect(s, addr, len) connect((s), (addr), (len)) #define sock_listen(s, b) listen((s), (b)) #define sock_bind(s, addr, len) bind((s), (addr), (len)) #define sock_getopt(s,t,n,v,l) getsockopt((s),(t),(n),(v),(l)) #define sock_setopt(s,t,n,v,l) setsockopt((s),(t),(n),(v),(l)) #define sock_name(s, addr, len) getsockname((s), (addr), (len)) #define sock_peer(s, addr, len) getpeername((s), (addr), (len)) #define sock_ntohs(x) ntohs((x)) #define sock_ntohl(x) ntohl((x)) #define sock_htons(x) htons((x)) #define sock_htonl(x) htonl((x)) #define sock_accept(s, addr, len) accept((s), (addr), (len)) #define sock_send(s,buf,len,flag) send((s),(buf),(len),(flag)) #define sock_sendto(s,buf,blen,flag,addr,alen) \ sendto((s),(buf),(blen),(flag),(addr),(alen)) #define sock_sendv(s, vec, size, np, flag) \ (*(np) = writev((s), (struct iovec*)(vec), (size))) #define sock_sendmsg(s,msghdr,flag) sendmsg((s),(msghdr),(flag)) #define sock_open(af, type, proto) socket((af), (type), (proto)) #define sock_close(s) close((s)) #define sock_shutdown(s, how) shutdown((s), (how)) #define sock_hostname(buf, len) gethostname((buf), (len)) #define sock_getservbyname(name,proto) getservbyname((name), (proto)) #define sock_getservbyport(port,proto) getservbyport((port), (proto)) #define sock_recv(s,buf,len,flag) recv((s),(buf),(len),(flag)) #define sock_recvfrom(s,buf,blen,flag,addr,alen) \ recvfrom((s),(buf),(blen),(flag),(addr),(alen)) #define sock_recvmsg(s,msghdr,flag) recvmsg((s),(msghdr),(flag)) #define sock_errno() errno #define sock_create_event(d) ((d)->s) /* return file descriptor */ #define sock_close_event(e) /* do nothing */ #define inet_driver_select(port, e, mode, on) \ driver_select(port, e, mode | (on?ERL_DRV_USE:0), on) #define sock_select(d, flags, onoff) do { \ ASSERT(!(d)->is_ignored); \ (d)->event_mask = (onoff) ? \ ((d)->event_mask | (flags)) : \ ((d)->event_mask & ~(flags)); \ DEBUGF(("(%s / %d) sock_select(%ld): flags=%02X, onoff=%d, event_mask=%02lX\r\n", \ __FILE__, __LINE__, (long) (d)->port, (flags), (onoff), (unsigned long) (d)->event_mask)); \ inet_driver_select((d)->port, (ErlDrvEvent)(long)(d)->event, (flags), (onoff)); \ } while(0) #define TCP_SHUT_WR SHUT_WR #define TCP_SHUT_RD SHUT_RD #define TCP_SHUT_RDWR SHUT_RDWR #endif /* !__WIN32__ */ #ifdef HAVE_SOCKLEN_T # define SOCKLEN_T socklen_t #else # define SOCKLEN_T size_t #endif #include "packet_parser.h" #define get_int24(s) ((((unsigned char*) (s))[0] << 16) | \ (((unsigned char*) (s))[1] << 8) | \ (((unsigned char*) (s))[2])) #define get_little_int32(s) ((((unsigned char*) (s))[3] << 24) | \ (((unsigned char*) (s))[2] << 16) | \ (((unsigned char*) (s))[1] << 8) | \ (((unsigned char*) (s))[0])) #ifdef HAVE_SYS_UN_H /* strnlen doesn't exist everywhere */ static size_t my_strnlen(const char *s, size_t maxlen) { size_t i = 0; while (i < maxlen && s[i] != '\0') i++; return i; } /* Check that some character in the buffer != '\0' */ static int is_nonzero(const char *s, size_t n) { size_t i; for (i = 0; i < n; i++) if (s[i] != '\0') return !0; return 0; } #endif #ifdef VALGRIND # include <valgrind/memcheck.h> #else # define VALGRIND_MAKE_MEM_DEFINED(ptr,size) #endif /* Magic errno value used locally for return of {error, system_limit} - the emulator definition of SYSTEM_LIMIT is not available here. */ #define INET_ERRNO_SYSTEM_LIMIT (15 << 8) /*---------------------------------------------------------------------------- ** Interface constants. ** ** This section must be "identical" to the corresponding inet_int.hrl */ /* general address encode/decode tag */ #define INET_AF_UNSPEC 0 #define INET_AF_INET 1 #define INET_AF_INET6 2 #define INET_AF_ANY 3 /* INADDR_ANY or IN6ADDR_ANY_INIT */ #define INET_AF_LOOPBACK 4 /* INADDR_LOOPBACK or IN6ADDR_LOOPBACK_INIT */ #define INET_AF_LOCAL 5 #define INET_AF_UNDEFINED 6 /* Unknown */ /* open and INET_REQ_GETTYPE enumeration */ #define INET_TYPE_STREAM 1 #define INET_TYPE_DGRAM 2 #define INET_TYPE_SEQPACKET 3 /* INET_LOPT_MODE options */ #define INET_MODE_LIST 0 #define INET_MODE_BINARY 1 /* INET_LOPT_DELIVER options */ #define INET_DELIVER_PORT 0 #define INET_DELIVER_TERM 1 /* INET_LOPT_ACTIVE options */ #define INET_PASSIVE 0 /* false */ #define INET_ACTIVE 1 /* true */ #define INET_ONCE 2 /* true; active once then passive */ #define INET_MULTI 3 /* true; active N then passive */ /* INET_REQ_GETSTATUS enumeration */ #define INET_F_OPEN 0x0001 /* INET_F_BOUND removed - renumber when there comes a bigger rewrite */ #define INET_F_ACTIVE 0x0004 #define INET_F_LISTEN 0x0008 #define INET_F_CON 0x0010 #define INET_F_ACC 0x0020 #define INET_F_LST 0x0040 #define INET_F_BUSY 0x0080 #define INET_F_MULTI_CLIENT 0x0100 /* Multiple clients for one descriptor, i.e. multi-accept */ /* One numberspace for *_REQ_* so if an e.g UDP request is issued ** for a TCP socket, the driver can protest. */ #define INET_REQ_OPEN 1 #define INET_REQ_CLOSE 2 #define INET_REQ_CONNECT 3 #define INET_REQ_PEER 4 #define INET_REQ_NAME 5 #define INET_REQ_BIND 6 #define INET_REQ_SETOPTS 7 #define INET_REQ_GETOPTS 8 /* #define INET_REQ_GETIX 9 NOT USED ANY MORE */ /* #define INET_REQ_GETIF 10 REPLACE BY NEW STUFF */ #define INET_REQ_GETSTAT 11 #define INET_REQ_GETHOSTNAME 12 #define INET_REQ_FDOPEN 13 #define INET_REQ_GETFD 14 #define INET_REQ_GETTYPE 15 #define INET_REQ_GETSTATUS 16 #define INET_REQ_GETSERVBYNAME 17 #define INET_REQ_GETSERVBYPORT 18 #define INET_REQ_SETNAME 19 #define INET_REQ_SETPEER 20 #define INET_REQ_GETIFLIST 21 #define INET_REQ_IFGET 22 #define INET_REQ_IFSET 23 #define INET_REQ_SUBSCRIBE 24 #define INET_REQ_GETIFADDRS 25 #define INET_REQ_ACCEPT 26 #define INET_REQ_LISTEN 27 #define INET_REQ_IGNOREFD 28 #define INET_REQ_GETLADDRS 29 #define INET_REQ_GETPADDRS 30 /* TCP requests */ /* #define TCP_REQ_ACCEPT 40 MOVED */ /* #define TCP_REQ_LISTEN 41 MERGED */ #define TCP_REQ_RECV 42 #define TCP_REQ_UNRECV 43 #define TCP_REQ_SHUTDOWN 44 /* UDP and SCTP requests */ #define PACKET_REQ_RECV 60 /* Common for UDP and SCTP */ /* #define SCTP_REQ_LISTEN 61 MERGED Different from TCP; not for UDP */ #define SCTP_REQ_BINDX 62 /* Multi-home SCTP bind */ #define SCTP_REQ_PEELOFF 63 /* INET_REQ_SUBSCRIBE sub-requests */ #define INET_SUBS_EMPTY_OUT_Q 1 /* TCP additional flags */ #define TCP_ADDF_DELAY_SEND 1 #define TCP_ADDF_CLOSE_SENT 2 /* Close sent (active mode only) */ #define TCP_ADDF_DELAYED_CLOSE_RECV 4 /* If receive fails, report {error,closed} (passive mode) */ #define TCP_ADDF_DELAYED_CLOSE_SEND 8 /* If send fails, report {error,closed} (passive mode) */ #define TCP_ADDF_PENDING_SHUT_WR 16 /* Call shutdown(sock, SHUT_WR) when queue empties */ #define TCP_ADDF_PENDING_SHUT_RDWR 32 /* Call shutdown(sock, SHUT_RDWR) when queue empties */ #define TCP_ADDF_PENDING_SHUTDOWN \ (TCP_ADDF_PENDING_SHUT_WR | TCP_ADDF_PENDING_SHUT_RDWR) #define TCP_ADDF_SHOW_ECONNRESET 64 /* Tell user about incoming RST */ #define TCP_ADDF_DELAYED_ECONNRESET 128 /* An ECONNRESET error occured on send or shutdown */ #define TCP_ADDF_SHUTDOWN_WR_DONE 256 /* A shutdown(sock, SHUT_WR) or SHUT_RDWR was made */ #define TCP_ADDF_LINGER_ZERO 512 /* Discard driver queue on port close */ /* *_REQ_* replies */ #define INET_REP_ERROR 0 #define INET_REP_OK 1 #define INET_REP 2 /* INET_REQ_SETOPTS and INET_REQ_GETOPTS options */ #define INET_OPT_REUSEADDR 0 /* enable/disable local address reuse */ #define INET_OPT_KEEPALIVE 1 /* enable/disable keep connections alive */ #define INET_OPT_DONTROUTE 2 /* enable/disable routing for messages */ #define INET_OPT_LINGER 3 /* linger on close if data is present */ #define INET_OPT_BROADCAST 4 /* enable/disable transmission of broadcast */ #define INET_OPT_OOBINLINE 5 /* enable/disable out-of-band data in band */ #define INET_OPT_SNDBUF 6 /* set send buffer size */ #define INET_OPT_RCVBUF 7 /* set receive buffer size */ #define INET_OPT_PRIORITY 8 /* set priority */ #define INET_OPT_TOS 9 /* Set type of service */ #define TCP_OPT_NODELAY 10 /* don't delay send to coalesce packets */ #define UDP_OPT_MULTICAST_IF 11 /* set/get IP multicast interface */ #define UDP_OPT_MULTICAST_TTL 12 /* set/get IP multicast timetolive */ #define UDP_OPT_MULTICAST_LOOP 13 /* set/get IP multicast loopback */ #define UDP_OPT_ADD_MEMBERSHIP 14 /* add an IP group membership */ #define UDP_OPT_DROP_MEMBERSHIP 15 /* drop an IP group membership */ #define INET_OPT_IPV6_V6ONLY 16 /* IPv6 only socket, no mapped v4 addrs */ /* LOPT is local options */ #define INET_LOPT_BUFFER 20 /* min buffer size hint */ #define INET_LOPT_HEADER 21 /* list header size */ #define INET_LOPT_ACTIVE 22 /* enable/disable active receive */ #define INET_LOPT_PACKET 23 /* packet header type (TCP) */ #define INET_LOPT_MODE 24 /* list or binary mode */ #define INET_LOPT_DELIVER 25 /* port or term delivery */ #define INET_LOPT_EXITONCLOSE 26 /* exit port on active close or not ! */ #define INET_LOPT_TCP_HIWTRMRK 27 /* set local high watermark */ #define INET_LOPT_TCP_LOWTRMRK 28 /* set local low watermark */ /* 29 unused */ #define INET_LOPT_TCP_SEND_TIMEOUT 30 /* set send timeout */ #define INET_LOPT_TCP_DELAY_SEND 31 /* Delay sends until next poll */ #define INET_LOPT_PACKET_SIZE 32 /* Max packet size */ #define INET_LOPT_UDP_READ_PACKETS 33 /* Number of packets to read */ #define INET_OPT_RAW 34 /* Raw socket options */ #define INET_LOPT_TCP_SEND_TIMEOUT_CLOSE 35 /* auto-close on send timeout or not */ #define INET_LOPT_MSGQ_HIWTRMRK 36 /* set local msgq high watermark */ #define INET_LOPT_MSGQ_LOWTRMRK 37 /* set local msgq low watermark */ #define INET_LOPT_NETNS 38 /* Network namespace pathname */ #define INET_LOPT_TCP_SHOW_ECONNRESET 39 /* tell user about incoming RST */ #define INET_LOPT_LINE_DELIM 40 /* Line delimiting char */ #define INET_OPT_TCLASS 41 /* IPv6 transport class */ /* SCTP options: a separate range, from 100: */ #define SCTP_OPT_RTOINFO 100 #define SCTP_OPT_ASSOCINFO 101 #define SCTP_OPT_INITMSG 102 #define SCTP_OPT_AUTOCLOSE 103 #define SCTP_OPT_NODELAY 104 #define SCTP_OPT_DISABLE_FRAGMENTS 105 #define SCTP_OPT_I_WANT_MAPPED_V4_ADDR 106 #define SCTP_OPT_MAXSEG 107 #define SCTP_OPT_SET_PEER_PRIMARY_ADDR 108 #define SCTP_OPT_PRIMARY_ADDR 109 #define SCTP_OPT_ADAPTATION_LAYER 110 #define SCTP_OPT_PEER_ADDR_PARAMS 111 #define SCTP_OPT_DEFAULT_SEND_PARAM 112 #define SCTP_OPT_EVENTS 113 #define SCTP_OPT_DELAYED_ACK_TIME 114 #define SCTP_OPT_STATUS 115 #define SCTP_OPT_GET_PEER_ADDR_INFO 116 /* INET_REQ_IFGET and INET_REQ_IFSET options */ #define INET_IFOPT_ADDR 1 #define INET_IFOPT_BROADADDR 2 #define INET_IFOPT_DSTADDR 3 #define INET_IFOPT_MTU 4 #define INET_IFOPT_NETMASK 5 #define INET_IFOPT_FLAGS 6 #define INET_IFOPT_HWADDR 7 /* INET_REQ_GETSTAT enumeration */ #define INET_STAT_RECV_CNT 1 #define INET_STAT_RECV_MAX 2 #define INET_STAT_RECV_AVG 3 #define INET_STAT_RECV_DVI 4 #define INET_STAT_SEND_CNT 5 #define INET_STAT_SEND_MAX 6 #define INET_STAT_SEND_AVG 7 #define INET_STAT_SEND_PND 8 #define INET_STAT_RECV_OCT 9 /* received octets */ #define INET_STAT_SEND_OCT 10 /* sent octets */ /* INET_IFOPT_FLAGS enumeration */ #define INET_IFF_UP 0x0001 #define INET_IFF_BROADCAST 0x0002 #define INET_IFF_LOOPBACK 0x0004 #define INET_IFF_POINTTOPOINT 0x0008 #define INET_IFF_RUNNING 0x0010 #define INET_IFF_MULTICAST 0x0020 /* Complement flags for turning them off */ #define INET_IFF_DOWN 0x0100 #define INET_IFF_NBROADCAST 0x0200 /* #define INET_IFF_NLOOPBACK 0x0400 */ #define INET_IFF_NPOINTTOPOINT 0x0800 /* #define INET_IFF_NRUNNING 0x1000 */ /* #define INET_IFF_NMULTICAST 0x2000 */ /* Flags for "sctp_sndrcvinfo". Used in a bitmask -- must be powers of 2: ** INET_REQ_SETOPTS:SCTP_OPT_DEFAULT_SEND_PARAM */ #define SCTP_FLAG_UNORDERED (1 /* am_unordered */) #define SCTP_FLAG_ADDR_OVER (2 /* am_addr_over */) #define SCTP_FLAG_ABORT (4 /* am_abort */) #define SCTP_FLAG_EOF (8 /* am_eof */) #define SCTP_FLAG_SNDALL (16 /* am_sndall, NOT YET IMPLEMENTED */) /* Flags for "sctp_set_opts" (actually for SCTP_OPT_PEER_ADDR_PARAMS). ** These flags are also used in a bitmask, so they must be powers of 2: */ #define SCTP_FLAG_HB_ENABLE (1 /* am_hb_enable */) #define SCTP_FLAG_HB_DISABLE (2 /* am_hb_disable */) #define SCTP_FLAG_HB_DEMAND (4 /* am_hb_demand */) #define SCTP_FLAG_PMTUD_ENABLE (8 /* am_pmtud_enable */) #define SCTP_FLAG_PMTUD_DISABLE (16 /* am_pmtud_disable */) #define SCTP_FLAG_SACDELAY_ENABLE (32 /* am_sackdelay_enable */) #define SCTP_FLAG_SACDELAY_DISABLE (64 /* am_sackdelay_disable */) /* ** End of interface constants. **--------------------------------------------------------------------------*/ #define INET_STATE_CLOSED (0) #define INET_STATE_OPEN (INET_F_OPEN) #define INET_STATE_CONNECTED (INET_STATE_OPEN | INET_F_ACTIVE) #define INET_STATE_LISTENING (INET_STATE_OPEN | INET_F_LISTEN) #define INET_STATE_CONNECTING (INET_STATE_OPEN | INET_F_CON) #define INET_STATE_ACCEPTING (INET_STATE_LISTENING | INET_F_ACC) #define INET_STATE_MULTI_ACCEPTING (INET_STATE_ACCEPTING | INET_F_MULTI_CLIENT) #define IS_OPEN(d) \ (((d)->state & INET_F_OPEN) == INET_F_OPEN) #define IS_CONNECTED(d) \ (((d)->state & INET_STATE_CONNECTED) == INET_STATE_CONNECTED) #define IS_CONNECTING(d) \ (((d)->state & INET_F_CON) == INET_F_CON) #define IS_BUSY(d) \ (((d)->state & INET_F_BUSY) == INET_F_BUSY) #define INET_MAX_OPT_BUFFER (64*1024) #define INET_DEF_BUFFER 1460 /* default buffer size */ #define INET_MIN_BUFFER 1 /* internal min buffer */ #define INET_HIGH_WATERMARK (1024*8) /* 8k pending high => busy */ #define INET_LOW_WATERMARK (1024*4) /* 4k pending => allow more */ #define INET_HIGH_MSGQ_WATERMARK (1024*8) /* 8k pending high => busy */ #define INET_LOW_MSGQ_WATERMARK (1024*4) /* 4k pending => allow more */ #define INET_INFINITY 0xffffffff /* infinity value */ #define INET_MAX_ASYNC 1 /* max number of async queue ops */ /* INET_LOPT_UDP_PACKETS */ #define INET_PACKET_POLL 5 /* maximum number of packets to poll */ /* Max interface name */ #define INET_IFNAMSIZ 16 /* INET Ignore states */ #define INET_IGNORE_NONE 0 #define INET_IGNORE_READ (1 << 0) #define INET_IGNORE_WRITE (1 << 1) #define INET_IGNORE_PASSIVE (1 << 2) /* Max length of Erlang Term Buffer (for outputting structured terms): */ #ifdef HAVE_SCTP #define PACKET_ERL_DRV_TERM_DATA_LEN 512 #else #define PACKET_ERL_DRV_TERM_DATA_LEN 32 #endif #define BIN_REALLOC_MARGIN(x) ((x)/4) /* 25% */ /* The general purpose sockaddr */ typedef union { struct sockaddr sa; struct sockaddr_in sai; #ifdef HAVE_IN6 struct sockaddr_in6 sai6; #endif #ifdef HAVE_SYS_UN_H struct sockaddr_un sal; #endif } inet_address; #define inet_address_port(x) \ ((((x)->sai.sin_family == AF_INET) || \ ((x)->sai.sin_family == AF_INET6)) ? \ ((x)->sai.sin_port) : -1) #ifdef HAVE_SYS_UN_H #define localaddrlen(data) \ ((((unsigned char*)(data))[0] == INET_AF_LOCAL) ? \ (1 + 1 + ((unsigned char*)(data))[1]) : 1) #else #define localaddrlen(data) (1) #endif #if defined(HAVE_IN6) && defined(AF_INET6) #define addrlen(data) \ ((((unsigned char*)(data))[0] == INET_AF_INET) ? \ (1 + 2 + 4) : \ ((((unsigned char*)(data))[0] == INET_AF_INET6) ? \ (1 + 2 + 16) : localaddrlen(data))) #else #define addrlen(data) \ ((((unsigned char*)(data))[0] == INET_AF_INET) ? \ (1 + 2 + 4) : localaddrlen(data)) #endif typedef struct _multi_timer_data { ErlDrvTime when; ErlDrvTermData caller; void (*timeout_function)(ErlDrvData drv_data, ErlDrvTermData caller); struct _multi_timer_data *next; struct _multi_timer_data *prev; } MultiTimerData; static MultiTimerData *add_multi_timer(MultiTimerData **first, ErlDrvPort port, ErlDrvTermData caller, unsigned timeout, void (*timeout_fun)(ErlDrvData drv_data, ErlDrvTermData caller)); static void fire_multi_timers(MultiTimerData **first, ErlDrvPort port, ErlDrvData data); static void remove_multi_timer(MultiTimerData **first, ErlDrvPort port, MultiTimerData *p); static void tcp_inet_multi_timeout(ErlDrvData e, ErlDrvTermData caller); static void clean_multi_timers(MultiTimerData **first, ErlDrvPort port); typedef struct { int id; /* id used to identify reply */ ErlDrvTermData caller; /* recipient of async reply */ int req; /* Request id (CONNECT/ACCEPT/RECV) */ union { unsigned value; /* Request timeout (since op issued,not started) */ MultiTimerData *mtd; } tmo; ErlDrvMonitor monitor; } inet_async_op; typedef struct inet_async_multi_op_ { inet_async_op op; struct inet_async_multi_op_ *next; } inet_async_multi_op; typedef struct subs_list_ { ErlDrvTermData subscriber; struct subs_list_ *next; } subs_list; #define NO_PROCESS 0 #define NO_SUBSCRIBERS(SLP) ((SLP)->subscriber == NO_PROCESS) static void send_to_subscribers(ErlDrvTermData, subs_list *, int, ErlDrvTermData [], int); static void free_subscribers(subs_list*); static int save_subscriber(subs_list *, ErlDrvTermData); typedef struct { SOCKET s; /* the socket or INVALID_SOCKET if not open */ HANDLE event; /* Event handle (same as s in unix) */ long event_mask; /* current FD events */ #ifdef __WIN32__ long forced_events; /* Mask of events that are forcefully signalled on windows see winsock_event_select for details */ int send_would_block; /* Last send attempt failed with "WOULDBLOCK" */ #endif ErlDrvPort port; /* the port identifier */ ErlDrvTermData dport; /* the port identifier as DriverTermData */ int state; /* status */ int prebound; /* only set when opened with inet_fdopen */ int mode; /* BINARY | LIST (affect how to interpret hsz) */ int exitf; /* exit port on close or not */ int deliver; /* Delivery mode, TERM or PORT */ ErlDrvTermData caller; /* recipient of sync reply */ ErlDrvTermData busy_caller; /* recipient of sync reply when caller busy. * Only valid while INET_F_BUSY. */ inet_async_op* oph; /* queue head or NULL */ inet_async_op* opt; /* queue tail or NULL */ inet_async_op op_queue[INET_MAX_ASYNC]; /* call queue */ int active; /* 0 = passive, 1 = active, 2 = active once */ Sint16 active_count; /* counter for {active,N} */ int stype; /* socket type: SOCK_STREAM/SOCK_DGRAM/SOCK_SEQPACKET */ int sprotocol; /* socket protocol: IPPROTO_TCP|IPPROTO_UDP|IPPROTO_SCTP */ int sfamily; /* address family */ enum PacketParseType htype; /* header type (TCP only?) */ unsigned int psize; /* max packet size (TCP only?) */ inet_address remote; /* remote address for connected sockets */ inet_address peer_addr; /* fake peer address */ inet_address name_addr; /* fake local address */ inet_address* peer_ptr; /* fake peername or NULL */ inet_address* name_ptr; /* fake sockname or NULL */ SOCKLEN_T peer_addr_len; /* fake peername size */ SOCKLEN_T name_addr_len; /* fake sockname size */ int bufsz; /* minimum buffer constraint */ unsigned int hsz; /* the list header size, -1 is large !!! */ /* statistics */ #ifdef ARCH_64 Uint64 recv_oct; /* number of received octets, 64 bits */ #else Uint32 recv_oct[2]; /* number of received octets, 64 bits */ #endif unsigned long recv_cnt; /* number of packets received */ unsigned long recv_max; /* maximum packet size received */ double recv_avg; /* average packet size received */ double recv_dvi; /* avarage deviation from avg_size */ #ifdef ARCH_64 Uint64 send_oct; /* number of octets sent, 64 bits */ #else Uint32 send_oct[2]; /* number of octets sent, 64 bits */ #endif char delimiter; /* Line delimiting character (def: '\n') */ unsigned long send_cnt; /* number of packets sent */ unsigned long send_max; /* maximum packet send */ double send_avg; /* average packet size sent */ subs_list empty_out_q_subs; /* Empty out queue subscribers */ int is_ignored; /* if a fd is ignored by the inet_drv. This flag should be set to true when the fd is used outside of inet_drv. */ #ifdef HAVE_SETNS char *netns; /* Socket network namespace name as full file path */ #endif } inet_descriptor; #define TCP_MAX_PACKET_SIZE 0x4000000 /* 64 M */ #define MAX_VSIZE 16 /* Max number of entries allowed in an I/O * vector sock_sendv(). */ static int tcp_inet_init(void); static void tcp_inet_stop(ErlDrvData); static void tcp_inet_command(ErlDrvData, char*, ErlDrvSizeT); static void tcp_inet_commandv(ErlDrvData, ErlIOVec*); static void tcp_inet_flush(ErlDrvData drv_data); static void tcp_inet_drv_input(ErlDrvData, ErlDrvEvent); static void tcp_inet_drv_output(ErlDrvData data, ErlDrvEvent event); static ErlDrvData tcp_inet_start(ErlDrvPort, char* command); static ErlDrvSSizeT tcp_inet_ctl(ErlDrvData, unsigned int, char*, ErlDrvSizeT, char**, ErlDrvSizeT); static void tcp_inet_timeout(ErlDrvData); static void tcp_inet_process_exit(ErlDrvData, ErlDrvMonitor *); static void inet_stop_select(ErlDrvEvent, void*); static void inet_emergency_close(ErlDrvData); #ifdef __WIN32__ static void tcp_inet_event(ErlDrvData, ErlDrvEvent); static void find_dynamic_functions(void); #endif static struct erl_drv_entry tcp_inet_driver_entry = { tcp_inet_init, /* inet_init will add this driver !! */ tcp_inet_start, tcp_inet_stop, tcp_inet_command, #ifdef __WIN32__ tcp_inet_event, NULL, #else tcp_inet_drv_input, tcp_inet_drv_output, #endif "tcp_inet", NULL, NULL, tcp_inet_ctl, tcp_inet_timeout, tcp_inet_commandv, NULL, tcp_inet_flush, NULL, NULL, ERL_DRV_EXTENDED_MARKER, ERL_DRV_EXTENDED_MAJOR_VERSION, ERL_DRV_EXTENDED_MINOR_VERSION, ERL_DRV_FLAG_USE_PORT_LOCKING|ERL_DRV_FLAG_SOFT_BUSY, NULL, tcp_inet_process_exit, inet_stop_select, inet_emergency_close }; #ifdef HAVE_UDP static int packet_inet_init(void); static void packet_inet_stop(ErlDrvData); static void packet_inet_command(ErlDrvData, char*, ErlDrvSizeT); static void packet_inet_drv_input(ErlDrvData data, ErlDrvEvent event); static void packet_inet_drv_output(ErlDrvData data, ErlDrvEvent event); static ErlDrvData udp_inet_start(ErlDrvPort, char* command); #ifdef HAVE_SCTP static ErlDrvData sctp_inet_start(ErlDrvPort, char* command); #endif static ErlDrvSSizeT packet_inet_ctl(ErlDrvData, unsigned int, char*, ErlDrvSizeT, char**, ErlDrvSizeT); static void packet_inet_timeout(ErlDrvData); #ifdef __WIN32__ static void packet_inet_event(ErlDrvData, ErlDrvEvent); static SOCKET make_noninheritable_handle(SOCKET s); static int winsock_event_select(inet_descriptor *, int, int); #endif static struct erl_drv_entry udp_inet_driver_entry = { packet_inet_init, /* inet_init will add this driver !! */ udp_inet_start, packet_inet_stop, packet_inet_command, #ifdef __WIN32__ packet_inet_event, NULL, #else packet_inet_drv_input, packet_inet_drv_output, #endif "udp_inet", NULL, NULL, packet_inet_ctl, packet_inet_timeout, NULL, NULL, NULL, NULL, NULL, ERL_DRV_EXTENDED_MARKER, ERL_DRV_EXTENDED_MAJOR_VERSION, ERL_DRV_EXTENDED_MINOR_VERSION, ERL_DRV_FLAG_USE_PORT_LOCKING, NULL, NULL, inet_stop_select, inet_emergency_close }; #endif #ifdef HAVE_SCTP static struct erl_drv_entry sctp_inet_driver_entry = { packet_inet_init, /* inet_init will add this driver !! */ sctp_inet_start, packet_inet_stop, packet_inet_command, #ifdef __WIN32__ packet_inet_event, NULL, #else packet_inet_drv_input, packet_inet_drv_output, #endif "sctp_inet", NULL, NULL, packet_inet_ctl, packet_inet_timeout, NULL, NULL, NULL, NULL, NULL, ERL_DRV_EXTENDED_MARKER, ERL_DRV_EXTENDED_MAJOR_VERSION, ERL_DRV_EXTENDED_MINOR_VERSION, ERL_DRV_FLAG_USE_PORT_LOCKING, NULL, NULL, /* process_exit */ inet_stop_select, inet_emergency_close }; #endif typedef struct { inet_descriptor inet; /* common data structure (DON'T MOVE) */ int high; /* high watermark */ int low; /* low watermark */ int send_timeout; /* timeout to use in send */ int send_timeout_close; /* auto-close socket on send_timeout */ int busy_on_send; /* busy on send with timeout! */ int i_bufsz; /* current input buffer size (<= bufsz) */ ErlDrvBinary* i_buf; /* current binary buffer */ char* i_ptr; /* current pos in buf */ char* i_ptr_start; /* packet start pos in buf */ int i_remain; /* remaining chars to read */ int tcp_add_flags;/* Additional TCP descriptor flags */ int http_state; /* 0 = response|request 1=headers fields */ inet_async_multi_op *multi_first;/* NULL == no multi-accept-queue, op is in ordinary queue */ inet_async_multi_op *multi_last; MultiTimerData *mtd; /* Timer structures for multiple accept */ } tcp_descriptor; /* send function */ static int tcp_send(tcp_descriptor* desc, char* ptr, ErlDrvSizeT len); static int tcp_sendv(tcp_descriptor* desc, ErlIOVec* ev); static int tcp_recv(tcp_descriptor* desc, int request_len); static int tcp_deliver(tcp_descriptor* desc, int len); static int tcp_shutdown_error(tcp_descriptor* desc, int err); static int tcp_inet_output(tcp_descriptor* desc, HANDLE event); static int tcp_inet_input(tcp_descriptor* desc, HANDLE event); #ifdef HAVE_UDP typedef struct { inet_descriptor inet; /* common data structure (DON'T MOVE) */ int read_packets; /* Number of packets to read per invocation */ int i_bufsz; /* current input buffer size */ ErlDrvBinary* i_buf; /* current binary buffer */ char* i_ptr; /* current pos in buf */ } udp_descriptor; static int packet_inet_input(udp_descriptor* udesc, HANDLE event); static int packet_inet_output(udp_descriptor* udesc, HANDLE event); #endif /* convert descriptor pointer to inet_descriptor pointer */ #define INETP(d) (&(d)->inet) static int async_ref = 0; /* async reference id generator */ #define NEW_ASYNC_ID() ((async_ref++) & 0xffff) /* check for transition from active to passive */ #define INET_CHECK_ACTIVE_TO_PASSIVE(inet) \ do { \ if ((inet)->active == INET_ONCE) \ (inet)->active = INET_PASSIVE; \ else if ((inet)->active == INET_MULTI && --((inet)->active_count) == 0) { \ (inet)->active = INET_PASSIVE; \ packet_passive_message(inet); \ } \ } while (0) static ErlDrvTermData am_ok; static ErlDrvTermData am_undefined; static ErlDrvTermData am_unspec; static ErlDrvTermData am_tcp; static ErlDrvTermData am_error; static ErlDrvTermData am_einval; static ErlDrvTermData am_inet_async; static ErlDrvTermData am_inet_reply; static ErlDrvTermData am_timeout; static ErlDrvTermData am_closed; static ErlDrvTermData am_tcp_passive; static ErlDrvTermData am_tcp_closed; static ErlDrvTermData am_tcp_error; static ErlDrvTermData am_empty_out_q; static ErlDrvTermData am_ssl_tls; #ifdef HAVE_UDP static ErlDrvTermData am_udp; static ErlDrvTermData am_udp_passive; static ErlDrvTermData am_udp_error; #endif #ifdef HAVE_SYS_UN_H static ErlDrvTermData am_local; #endif #ifdef HAVE_SCTP static ErlDrvTermData am_sctp; static ErlDrvTermData am_sctp_passive; static ErlDrvTermData am_sctp_error; static ErlDrvTermData am_true; static ErlDrvTermData am_false; static ErlDrvTermData am_buffer; static ErlDrvTermData am_mode; static ErlDrvTermData am_list; static ErlDrvTermData am_binary; static ErlDrvTermData am_active; static ErlDrvTermData am_once; static ErlDrvTermData am_multi; static ErlDrvTermData am_buffer; static ErlDrvTermData am_linger; static ErlDrvTermData am_recbuf; static ErlDrvTermData am_sndbuf; static ErlDrvTermData am_reuseaddr; static ErlDrvTermData am_dontroute; static ErlDrvTermData am_priority; static ErlDrvTermData am_tos; static ErlDrvTermData am_tclass; static ErlDrvTermData am_ipv6_v6only; static ErlDrvTermData am_netns; #endif static char str_eafnosupport[] = "eafnosupport"; static char str_einval[] = "einval"; /* special errors for bad ports and sequences */ #define EXBADPORT "exbadport" #define EXBADSEQ "exbadseq" static int inet_init(void); static ErlDrvSSizeT ctl_reply(int, char*, ErlDrvSizeT, char**, ErlDrvSizeT); struct erl_drv_entry inet_driver_entry = { inet_init, /* inet_init will add TCP, UDP and SCTP drivers */ NULL, /* start */ NULL, /* stop */ NULL, /* output */ NULL, /* ready_input */ NULL, /* ready_output */ "inet", NULL, NULL, /* handle */ NULL, /* control */ NULL, /* timeout */ NULL, /* outputv */ NULL, /* ready_async */ NULL, /* flush */ NULL, /* call */ NULL, /* event */ ERL_DRV_EXTENDED_MARKER, ERL_DRV_EXTENDED_MAJOR_VERSION, ERL_DRV_EXTENDED_MINOR_VERSION, 0, NULL, NULL, NULL, }; #if HAVE_IN6 # if ! defined(HAVE_IN6ADDR_ANY) || ! HAVE_IN6ADDR_ANY # if HAVE_DECL_IN6ADDR_ANY_INIT static const struct in6_addr in6addr_any = { { IN6ADDR_ANY_INIT } }; # else static const struct in6_addr in6addr_any = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }; # endif /* HAVE_IN6ADDR_ANY_INIT */ # endif /* ! HAVE_DECL_IN6ADDR_ANY */ # if ! defined(HAVE_IN6ADDR_LOOPBACK) || ! HAVE_IN6ADDR_LOOPBACK # if HAVE_DECL_IN6ADDR_LOOPBACK_INIT static const struct in6_addr in6addr_loopback = { { IN6ADDR_LOOPBACK_INIT } }; # else static const struct in6_addr in6addr_loopback = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }; # endif /* HAVE_IN6ADDR_LOOPBACk_INIT */ # endif /* ! HAVE_DECL_IN6ADDR_LOOPBACK */ #endif /* HAVE_IN6 */ /* XXX: is this a driver interface function ??? */ void erts_exit(int n, char*, ...); /* * Malloc wrapper, * we would like to change the behaviour for different * systems here. */ #ifdef FATAL_MALLOC static void *alloc_wrapper(ErlDrvSizeT size){ void *ret = driver_alloc(size); if(ret == NULL) erts_exit(ERTS_ERROR_EXIT,"Out of virtual memory in malloc (%s)", __FILE__); return ret; } #define ALLOC(X) alloc_wrapper(X) static void *realloc_wrapper(void *current, ErlDrvSizeT size){ void *ret = driver_realloc(current,size); if(ret == NULL) erts_exit(ERTS_ERROR_EXIT,"Out of virtual memory in realloc (%s)", __FILE__); return ret; } #define REALLOC(X,Y) realloc_wrapper(X,Y) #define FREE(P) driver_free((P)) #else /* FATAL_MALLOC */ #define ALLOC(X) driver_alloc((X)) #define REALLOC(X,Y) driver_realloc((X), (Y)) #define FREE(P) driver_free((P)) #endif /* FATAL_MALLOC */ #define INIT_ATOM(NAME) am_ ## NAME = driver_mk_atom(#NAME) #define LOAD_ATOM_CNT 2 #define LOAD_ATOM(vec, i, atom) \ (((vec)[(i)] = ERL_DRV_ATOM), \ ((vec)[(i)+1] = (atom)), \ ((i)+LOAD_ATOM_CNT)) #define LOAD_INT_CNT 2 #define LOAD_INT(vec, i, val) \ (((vec)[(i)] = ERL_DRV_INT), \ ((vec)[(i)+1] = (ErlDrvTermData)(val)), \ ((i)+LOAD_INT_CNT)) #define LOAD_UINT_CNT 2 #define LOAD_UINT(vec, i, val) \ (((vec)[(i)] = ERL_DRV_UINT), \ ((vec)[(i)+1] = (ErlDrvTermData)(val)), \ ((i)+LOAD_UINT_CNT)) #define LOAD_PORT_CNT 2 #define LOAD_PORT(vec, i, port) \ (((vec)[(i)] = ERL_DRV_PORT), \ ((vec)[(i)+1] = (port)), \ ((i)+LOAD_PORT_CNT)) #define LOAD_PID_CNT 2 #define LOAD_PID(vec, i, pid) \ (((vec)[(i)] = ERL_DRV_PID), \ ((vec)[(i)+1] = (pid)), \ ((i)+LOAD_PID_CNT)) #define LOAD_BINARY_CNT 4 #define LOAD_BINARY(vec, i, bin, offs, len) \ (((vec)[(i)] = ERL_DRV_BINARY), \ ((vec)[(i)+1] = (ErlDrvTermData)(bin)), \ ((vec)[(i)+2] = (len)), \ ((vec)[(i)+3] = (offs)), \ ((i)+LOAD_BINARY_CNT)) #define LOAD_BUF2BINARY_CNT 3 #define LOAD_BUF2BINARY(vec, i, buf, len) \ (((vec)[(i)] = ERL_DRV_BUF2BINARY), \ ((vec)[(i)+1] = (ErlDrvTermData)(buf)), \ ((vec)[(i)+2] = (len)), \ ((i)+LOAD_BUF2BINARY_CNT)) #define LOAD_STRING_CNT 3 #define LOAD_STRING(vec, i, str, len) \ (((vec)[(i)] = ERL_DRV_STRING), \ ((vec)[(i)+1] = (ErlDrvTermData)(str)), \ ((vec)[(i)+2] = (len)), \ ((i)+LOAD_STRING_CNT)) #define LOAD_STRING_CONS_CNT 3 #define LOAD_STRING_CONS(vec, i, str, len) \ (((vec)[(i)] = ERL_DRV_STRING_CONS), \ ((vec)[(i)+1] = (ErlDrvTermData)(str)), \ ((vec)[(i)+2] = (len)), \ ((i)+LOAD_STRING_CONS_CNT)) #define LOAD_TUPLE_CNT 2 #define LOAD_TUPLE(vec, i, size) \ (((vec)[(i)] = ERL_DRV_TUPLE), \ ((vec)[(i)+1] = (size)), \ ((i)+LOAD_TUPLE_CNT)) #define LOAD_NIL_CNT 1 #define LOAD_NIL(vec, i) \ (((vec)[(i)] = ERL_DRV_NIL), \ ((i)+LOAD_NIL_CNT)) #define LOAD_LIST_CNT 2 #define LOAD_LIST(vec, i, size) \ (((vec)[(i)] = ERL_DRV_LIST), \ ((vec)[(i)+1] = (size)), \ ((i)+LOAD_LIST_CNT)) #ifdef HAVE_SCTP /* "IS_SCTP": tells the difference between a UDP and an SCTP socket: */ # define IS_SCTP(desc)((desc)->sprotocol==IPPROTO_SCTP) /* For AssocID, 4 bytes should be enough -- checked by "init": */ # define GET_ASSOC_ID get_int32 # define ASSOC_ID_LEN 4 # define LOAD_ASSOC_ID LOAD_UINT # define LOAD_ASSOC_ID_CNT LOAD_UINT_CNT # define SCTP_ANC_BUFF_SIZE INET_DEF_BUFFER/2 /* XXX: not very good... */ #endif #ifdef HAVE_UDP static int load_address(ErlDrvTermData* spec, int i, char* buf) { int n; switch (*buf++) { /* Family */ case INET_AF_INET: { for (n = 2; n < 2+4; n++) { spec[i++] = ERL_DRV_INT; spec[i++] = (ErlDrvTermData) ((unsigned char)buf[n]); } spec[i++] = ERL_DRV_TUPLE; spec[i++] = 4; spec[i++] = ERL_DRV_INT; spec[i++] = (ErlDrvTermData) get_int16(buf); break; } #if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: { for (n = 2; n < 2+16; n += 2) { spec[i++] = ERL_DRV_INT; spec[i++] = (ErlDrvTermData) get_int16(buf+n); } spec[i++] = ERL_DRV_TUPLE; spec[i++] = 8; spec[i++] = ERL_DRV_INT; spec[i++] = (ErlDrvTermData) get_int16(buf); break; } #endif #ifdef HAVE_SYS_UN_H case INET_AF_LOCAL: { int len = *(unsigned char*)buf++; i = LOAD_ATOM(spec, i, am_local); i = LOAD_BUF2BINARY(spec, i, buf, len); spec[i++] = ERL_DRV_TUPLE; spec[i++] = 2; spec[i++] = ERL_DRV_INT; spec[i++] = 0; break; } #endif case INET_AF_UNSPEC: { i = LOAD_ATOM(spec, i, am_unspec); i = LOAD_BUF2BINARY(spec, i, buf, 0); spec[i++] = ERL_DRV_TUPLE; spec[i++] = 2; spec[i++] = ERL_DRV_INT; spec[i++] = 0; break; } default: { /* INET_AF_UNDEFINED */ i = LOAD_ATOM(spec, i, am_undefined); i = LOAD_BUF2BINARY(spec, i, buf, 0); spec[i++] = ERL_DRV_TUPLE; spec[i++] = 2; spec[i++] = ERL_DRV_INT; spec[i++] = 0; break; } } return i; } #endif #ifdef HAVE_SCTP /* For SCTP, we often need to return {IP, Port} tuples: */ static int inet_get_address(char* dst, inet_address* src, unsigned int* len); /* Max of {{int()*8},int()} | {{int()*4},int()} | * {{'local',binary()},int()} */ #define LOAD_INET_GET_ADDRESS_CNT \ (8*LOAD_INT_CNT + LOAD_TUPLE_CNT + LOAD_INT_CNT + LOAD_TUPLE_CNT) static int load_inet_get_address (ErlDrvTermData* spec, int i, inet_descriptor* desc, struct sockaddr_storage* addr) { /* The size of the buffer used to stringify the addr is the same as that of "sockaddr_storage" itself: only their layout is different: */ unsigned int len = sizeof(struct sockaddr_storage); unsigned int alen = len; char abuf [len]; int res = inet_get_address(abuf, (inet_address*) addr, &alen); ASSERT(res==0); (void)res; /* Now "abuf" contains: Family(1b), Port(2b), IP(4|16b) */ /* NB: the following functions are safe to use, as they create tuples of copied Ints on the "spec", and do not install any String pts -- a ptr to "abuf" would be dangling upon exiting this function: */ i = load_address(spec, i, abuf); /* IP,Port | Family,Addr */ i = LOAD_TUPLE (spec, i, 2); return i; } /* Loading Boolean flags as Atoms: */ #define LOAD_BOOL_CNT LOAD_ATOM_CNT #define LOAD_BOOL(spec, i, flag) \ LOAD_ATOM((spec), (i), (flag) ? am_true : am_false); #endif /* HAVE_SCTP */ /* Assume a cache line size of 64 bytes */ #define INET_DRV_CACHE_LINE_SIZE ((ErlDrvUInt) 64) #define INET_DRV_CACHE_LINE_MASK (INET_DRV_CACHE_LINE_SIZE - 1) /* ** Binary Buffer Managment ** We keep a stack of usable buffers */ #define BUFFER_STACK_SIZE 14 #define BUFFER_STACK_MAX_MEM_SIZE (1024*1024) ErlDrvTSDKey buffer_stack_key; typedef struct { int mem_size; int pos; ErlDrvBinary* stk[BUFFER_STACK_SIZE]; } InetDrvBufStkBase; typedef struct { InetDrvBufStkBase buf; char align[(((sizeof(InetDrvBufStkBase) - 1) / INET_DRV_CACHE_LINE_SIZE) + 1) * INET_DRV_CACHE_LINE_SIZE]; } InetDrvBufStk; static InetDrvBufStk *get_bufstk(void) { InetDrvBufStk *bs = erl_drv_tsd_get(buffer_stack_key); if (bs) return bs; bs = driver_alloc(sizeof(InetDrvBufStk) + INET_DRV_CACHE_LINE_SIZE - 1); if (!bs) return NULL; if ((((ErlDrvUInt) bs) & INET_DRV_CACHE_LINE_MASK) != 0) bs = ((InetDrvBufStk *) ((((ErlDrvUInt) bs) & ~INET_DRV_CACHE_LINE_MASK) + INET_DRV_CACHE_LINE_SIZE)); erl_drv_tsd_set(buffer_stack_key, bs); bs->buf.pos = 0; bs->buf.mem_size = 0; ASSERT(bs == erl_drv_tsd_get(buffer_stack_key)); return bs; } static ErlDrvBinary* alloc_buffer(ErlDrvSizeT minsz) { InetDrvBufStk *bs = get_bufstk(); DEBUGF(("alloc_buffer: "LLU"\r\n", (llu_t)minsz)); if (bs && bs->buf.pos > 0) { long size; ErlDrvBinary* buf = bs->buf.stk[--bs->buf.pos]; size = buf->orig_size; bs->buf.mem_size -= size; ASSERT(0 <= bs->buf.mem_size && bs->buf.mem_size <= BUFFER_STACK_MAX_MEM_SIZE); if (size >= minsz) return buf; driver_free_binary(buf); } ASSERT(!bs || bs->buf.pos != 0 || bs->buf.mem_size == 0); return driver_alloc_binary(minsz); } /*#define CHECK_DOUBLE_RELEASE 1*/ #ifdef CHECK_DOUBLE_RELEASE static void check_double_release(InetDrvBufStk *bs, ErlDrvBinary* buf) { #ifdef __GNUC__ #warning CHECK_DOUBLE_RELEASE is enabled, this is a custom build emulator #endif int i; for (i = 0; i < bs->buf.pos; ++i) { if (bs->buf.stk[i] == buf) { erts_exit(ERTS_ABORT_EXIT, "Multiple buffer release in inet_drv, this " "is a bug, save the core and send it to " "[email protected]!"); } } } #endif static void release_buffer(ErlDrvBinary* buf) { InetDrvBufStk *bs; long size; DEBUGF(("release_buffer: %ld\r\n", (buf==NULL) ? 0 : buf->orig_size)); if (!buf) return; size = buf->orig_size; if (size > BUFFER_STACK_MAX_MEM_SIZE) goto free_binary; bs = get_bufstk(); if (!bs || (bs->buf.mem_size + size > BUFFER_STACK_MAX_MEM_SIZE) || (bs->buf.pos >= BUFFER_STACK_SIZE)) { free_binary: driver_free_binary(buf); } else { #ifdef CHECK_DOUBLE_RELEASE check_double_release(bs, buf); #endif ASSERT(bs->buf.pos != 0 || bs->buf.mem_size == 0); bs->buf.mem_size += size; bs->buf.stk[bs->buf.pos++] = buf; ASSERT(0 <= bs->buf.mem_size && bs->buf.mem_size <= BUFFER_STACK_MAX_MEM_SIZE); } } #ifdef HAVE_UDP static ErlDrvBinary* realloc_buffer(ErlDrvBinary* buf, ErlDrvSizeT newsz) { return driver_realloc_binary(buf, newsz); } #endif /* use a TRICK, access the refc field to see if any one else has * a ref to this buffer then call driver_free_binary else * release_buffer instead */ static void free_buffer(ErlDrvBinary* buf) { DEBUGF(("free_buffer: %ld\r\n", (buf==NULL) ? 0 : buf->orig_size)); if (buf != NULL) { if (driver_binary_get_refc(buf) == 1) release_buffer(buf); else driver_free_binary(buf); } } #ifdef __WIN32__ static ErlDrvData dummy_start(ErlDrvPort port, char* command) { return (ErlDrvData)port; } static ErlDrvSSizeT dummy_ctl(ErlDrvData data, unsigned int cmd, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { static char error[] = "no_winsock2"; driver_failure_atom((ErlDrvPort)data, error); return ctl_reply(INET_REP_ERROR, error, sizeof(error), rbuf, rsize); } static void dummy_command(ErlDrvData data, char* buf, ErlDrvSizeT len) { } static struct erl_drv_entry dummy_tcp_driver_entry = { NULL, /* init */ dummy_start, /* start */ NULL, /* stop */ dummy_command, /* command */ NULL, /* input */ NULL, /* output */ "tcp_inet", /* name */ NULL, NULL, dummy_ctl, NULL, NULL }; static struct erl_drv_entry dummy_udp_driver_entry = { NULL, /* init */ dummy_start, /* start */ NULL, /* stop */ dummy_command, /* command */ NULL, /* input */ NULL, /* output */ "udp_inet", /* name */ NULL, NULL, dummy_ctl, NULL, NULL }; #ifdef HAVE_SCTP static struct erl_drv_entry dummy_sctp_driver_entry = { /* Though there is no SCTP for Win32 yet... */ NULL, /* init */ dummy_start, /* start */ NULL, /* stop */ dummy_command, /* command */ NULL, /* input */ NULL, /* output */ "sctp_inet", /* name */ NULL, NULL, dummy_ctl, NULL, NULL }; #endif #endif /* return lowercase string form of errno value */ static char *errno_str(int err) { switch (err) { case INET_ERRNO_SYSTEM_LIMIT: return "system_limit"; default: return erl_errno_id(err); } } /* general control reply function */ static ErlDrvSSizeT ctl_reply(int rep, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { char* ptr; if ((len+1) > rsize) { ptr = ALLOC(len+1); *rbuf = ptr; } else ptr = *rbuf; *ptr++ = rep; memcpy(ptr, buf, len); return len+1; } /* general control error reply function */ static ErlDrvSSizeT ctl_error(int err, char** rbuf, ErlDrvSizeT rsize) { char* s = errno_str(err); return ctl_reply(INET_REP_ERROR, s, strlen(s), rbuf, rsize); } static ErlDrvSSizeT ctl_xerror(char* xerr, char** rbuf, ErlDrvSizeT rsize) { int n = strlen(xerr); return ctl_reply(INET_REP_ERROR, xerr, n, rbuf, rsize); } static ErlDrvTermData error_atom(int err) { return driver_mk_atom(errno_str(err)); } static void enq_old_multi_op(tcp_descriptor *desc, int id, int req, ErlDrvTermData caller, MultiTimerData *timeout, ErlDrvMonitor *monitorp) { inet_async_multi_op *opp; opp = ALLOC(sizeof(inet_async_multi_op)); opp->op.id = id; opp->op.caller = caller; opp->op.req = req; opp->op.tmo.mtd = timeout; memcpy(&(opp->op.monitor), monitorp, sizeof(ErlDrvMonitor)); opp->next = NULL; if (desc->multi_first == NULL) { desc->multi_first = opp; } else { desc->multi_last->next = opp; } desc->multi_last = opp; } static void enq_multi_op(tcp_descriptor *desc, char *buf, int req, ErlDrvTermData caller, MultiTimerData *timeout, ErlDrvMonitor *monitorp) { int id = NEW_ASYNC_ID(); enq_old_multi_op(desc,id,req,caller,timeout,monitorp); if (buf != NULL) put_int16(id, buf); } static int deq_multi_op(tcp_descriptor *desc, int *id_p, int *req_p, ErlDrvTermData *caller_p, MultiTimerData **timeout_p, ErlDrvMonitor *monitorp) { inet_async_multi_op *opp; opp = desc->multi_first; if (!opp) { return -1; } desc->multi_first = opp->next; if (desc->multi_first == NULL) { desc->multi_last = NULL; } *id_p = opp->op.id; *req_p = opp->op.req; *caller_p = opp->op.caller; if (timeout_p != NULL) { *timeout_p = opp->op.tmo.mtd; } if (monitorp != NULL) { memcpy(monitorp,&(opp->op.monitor),sizeof(ErlDrvMonitor)); } FREE(opp); return 0; } static int remove_multi_op(tcp_descriptor *desc, int *id_p, int *req_p, ErlDrvTermData caller, MultiTimerData **timeout_p, ErlDrvMonitor *monitorp) { inet_async_multi_op *opp, *slap; for (opp = desc->multi_first, slap = NULL; opp != NULL && opp->op.caller != caller; slap = opp, opp = opp->next) ; if (!opp) { return -1; } if (slap == NULL) { desc->multi_first = opp->next; } else { slap->next = opp->next; } if (desc->multi_last == opp) { desc->multi_last = slap; } *id_p = opp->op.id; *req_p = opp->op.req; if (timeout_p != NULL) { *timeout_p = opp->op.tmo.mtd; } if (monitorp != NULL) { memcpy(monitorp,&(opp->op.monitor),sizeof(ErlDrvMonitor)); } FREE(opp); return 0; } /* setup a new async id + caller (format async_id into buf) */ static int enq_async_w_tmo(inet_descriptor* desc, char* buf, int req, unsigned timeout, ErlDrvMonitor *monitorp) { int id = NEW_ASYNC_ID(); inet_async_op* opp; if ((opp = desc->oph) == NULL) /* queue empty */ opp = desc->oph = desc->opt = desc->op_queue; else if (desc->oph == desc->opt) { /* queue full */ DEBUGF(("enq(%ld): queue full\r\n", (long)desc->port)); return -1; } opp->id = id; opp->caller = driver_caller(desc->port); opp->req = req; opp->tmo.value = timeout; if (monitorp != NULL) { memcpy(&(opp->monitor),monitorp,sizeof(ErlDrvMonitor)); } DEBUGF(("enq(%ld): %d %ld %d\r\n", (long) desc->port, opp->id, opp->caller, opp->req)); opp++; if (opp >= desc->op_queue + INET_MAX_ASYNC) desc->oph = desc->op_queue; else desc->oph = opp; if (buf != NULL) put_int16(id, buf); return 0; } static int enq_async(inet_descriptor* desc, char* buf, int req) { return enq_async_w_tmo(desc,buf,req,INET_INFINITY, NULL); } static int deq_async_w_tmo(inet_descriptor* desc, int* ap, ErlDrvTermData* cp, int* rp, unsigned *tp, ErlDrvMonitor *monitorp) { inet_async_op* opp; if ((opp = desc->opt) == NULL) { /* queue empty */ DEBUGF(("deq(%ld): queue empty\r\n", (long)desc->port)); return -1; } *ap = opp->id; *cp = opp->caller; *rp = opp->req; if (tp != NULL) { *tp = opp->tmo.value; } if (monitorp != NULL) { memcpy(monitorp,&(opp->monitor),sizeof(ErlDrvMonitor)); } DEBUGF(("deq(%ld): %d %ld %d\r\n", (long)desc->port, opp->id, opp->caller, opp->req)); opp++; if (opp >= desc->op_queue + INET_MAX_ASYNC) desc->opt = desc->op_queue; else desc->opt = opp; if (desc->opt == desc->oph) desc->opt = desc->oph = NULL; return 0; } static int deq_async(inet_descriptor* desc, int* ap, ErlDrvTermData* cp, int* rp) { return deq_async_w_tmo(desc,ap,cp,rp,NULL,NULL); } /* send message: ** {inet_async, Port, Ref, ok} */ static int send_async_ok(ErlDrvTermData Port, int Ref,ErlDrvTermData recipient) { ErlDrvTermData spec[2*LOAD_ATOM_CNT + LOAD_PORT_CNT + LOAD_INT_CNT + LOAD_TUPLE_CNT]; int i = 0; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, Port); i = LOAD_INT(spec, i, Ref); i = LOAD_ATOM(spec, i, am_ok); i = LOAD_TUPLE(spec, i, 4); ASSERT(i == sizeof(spec)/sizeof(*spec)); return erl_drv_send_term(Port, recipient, spec, i); } /* send message: ** {inet_async, Port, Ref, {ok,Port2}} */ static int send_async_ok_port(ErlDrvTermData Port, int Ref, ErlDrvTermData recipient, ErlDrvTermData Port2) { ErlDrvTermData spec[2*LOAD_ATOM_CNT + 2*LOAD_PORT_CNT + LOAD_INT_CNT + 2*LOAD_TUPLE_CNT]; int i = 0; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, Port); i = LOAD_INT(spec, i, Ref); { i = LOAD_ATOM(spec, i, am_ok); i = LOAD_PORT(spec, i, Port2); i = LOAD_TUPLE(spec, i, 2); } i = LOAD_TUPLE(spec, i, 4); ASSERT(i == sizeof(spec)/sizeof(*spec)); return erl_drv_send_term(Port, recipient, spec, i); } /* send message: ** {inet_async, Port, Ref, {error,Reason}} */ static int send_async_error(ErlDrvTermData Port, int Ref, ErlDrvTermData recipient, ErlDrvTermData Reason) { ErlDrvTermData spec[3*LOAD_ATOM_CNT + LOAD_PORT_CNT + LOAD_INT_CNT + 2*LOAD_TUPLE_CNT]; int i = 0; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, Port); i = LOAD_INT(spec, i, Ref); { i = LOAD_ATOM(spec, i, am_error); i = LOAD_ATOM(spec, i, Reason); i = LOAD_TUPLE(spec, i, 2); } i = LOAD_TUPLE(spec, i, 4); ASSERT(i == sizeof(spec)/sizeof(*spec)); DEBUGF(("send_async_error %ld %ld\r\n", recipient, Reason)); return erl_drv_send_term(Port, recipient, spec, i); } static int async_ok(inet_descriptor* desc) { int req; int aid; ErlDrvTermData caller; if (deq_async(desc, &aid, &caller, &req) < 0) return -1; return send_async_ok(desc->dport, aid, caller); } static int async_ok_port(inet_descriptor* desc, ErlDrvTermData Port2) { int req; int aid; ErlDrvTermData caller; if (deq_async(desc, &aid, &caller, &req) < 0) return -1; return send_async_ok_port(desc->dport, aid, caller, Port2); } static int async_error_am(inet_descriptor* desc, ErlDrvTermData reason) { int req; int aid; ErlDrvTermData caller; if (deq_async(desc, &aid, &caller, &req) < 0) return -1; return send_async_error(desc->dport, aid, caller, reason); } /* dequeue all operations */ static int async_error_am_all(inet_descriptor* desc, ErlDrvTermData reason) { int req; int aid; ErlDrvTermData caller; while (deq_async(desc, &aid, &caller, &req) == 0) { send_async_error(desc->dport, aid, caller, reason); } return 0; } static int async_error(inet_descriptor* desc, int err) { return async_error_am(desc, error_atom(err)); } /* send: ** {inet_reply, S, ok} */ static int inet_reply_ok(inet_descriptor* desc) { ErlDrvTermData spec[2*LOAD_ATOM_CNT + LOAD_PORT_CNT + LOAD_TUPLE_CNT]; ErlDrvTermData caller = desc->caller; int i = 0; i = LOAD_ATOM(spec, i, am_inet_reply); i = LOAD_PORT(spec, i, desc->dport); i = LOAD_ATOM(spec, i, am_ok); i = LOAD_TUPLE(spec, i, 3); ASSERT(i == sizeof(spec)/sizeof(*spec)); desc->caller = 0; return erl_drv_send_term(desc->dport, caller, spec, i); } #ifdef HAVE_SCTP static int inet_reply_ok_port(inet_descriptor* desc, ErlDrvTermData dport) { ErlDrvTermData spec[2*LOAD_ATOM_CNT + 2*LOAD_PORT_CNT + 2*LOAD_TUPLE_CNT]; ErlDrvTermData caller = desc->caller; int i = 0; i = LOAD_ATOM(spec, i, am_inet_reply); i = LOAD_PORT(spec, i, desc->dport); i = LOAD_ATOM(spec, i, am_ok); i = LOAD_PORT(spec, i, dport); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 3); ASSERT(i == sizeof(spec)/sizeof(*spec)); desc->caller = 0; return erl_drv_send_term(desc->dport, caller, spec, i); } #endif /* send: ** {inet_reply, S, {error, Reason}} */ static int inet_reply_error_am(inet_descriptor* desc, ErlDrvTermData reason) { ErlDrvTermData spec[3*LOAD_ATOM_CNT + LOAD_PORT_CNT + 2*LOAD_TUPLE_CNT]; ErlDrvTermData caller = desc->caller; int i = 0; i = LOAD_ATOM(spec, i, am_inet_reply); i = LOAD_PORT(spec, i, desc->dport); i = LOAD_ATOM(spec, i, am_error); i = LOAD_ATOM(spec, i, reason); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 3); ASSERT(i == sizeof(spec)/sizeof(*spec)); desc->caller = 0; DEBUGF(("inet_reply_error_am %ld %ld\r\n", caller, reason)); return erl_drv_send_term(desc->dport, caller, spec, i); } /* send: ** {inet_reply, S, {error, Reason}} */ static int inet_reply_error(inet_descriptor* desc, int err) { return inet_reply_error_am(desc, error_atom(err)); } /* ** Deliver port data from buffer */ static int inet_port_data(inet_descriptor* desc, const char* buf, int len) { unsigned int hsz = desc->hsz; DEBUGF(("inet_port_data(%ld): len = %d\r\n", (long)desc->port, len)); if ((desc->mode == INET_MODE_LIST) || (hsz > len)) return driver_output2(desc->port, (char*)buf, len, NULL, 0); else if (hsz > 0) return driver_output2(desc->port, (char*)buf, hsz, (char*)buf+hsz, len-hsz); else return driver_output(desc->port, (char*)buf, len); } /* ** Deliver port data from binary (for an active mode socket) */ static int inet_port_binary_data(inet_descriptor* desc, ErlDrvBinary* bin, int offs, int len) { unsigned int hsz = desc->hsz; DEBUGF(("inet_port_binary_data(%ld): offs=%d, len = %d\r\n", (long)desc->port, offs, len)); if ((desc->mode == INET_MODE_LIST) || (hsz > len)) return driver_output2(desc->port, bin->orig_bytes+offs, len, NULL, 0); else return driver_output_binary(desc->port, bin->orig_bytes+offs, hsz, bin, offs+hsz, len-hsz); } static ErlDrvTermData am_http_eoh; static ErlDrvTermData am_http_header; static ErlDrvTermData am_http_request; static ErlDrvTermData am_http_response; static ErlDrvTermData am_http_error; static ErlDrvTermData am_abs_path; static ErlDrvTermData am_absoluteURI; static ErlDrvTermData am_star; static ErlDrvTermData am_http; static ErlDrvTermData am_https; static ErlDrvTermData am_scheme; static int http_load_string(tcp_descriptor* desc, ErlDrvTermData* spec, int i, const char* str, int len) { if (desc->inet.htype >= TCP_PB_HTTP_BIN) { ASSERT(desc->inet.htype == TCP_PB_HTTP_BIN || desc->inet.htype == TCP_PB_HTTPH_BIN); i = LOAD_BUF2BINARY(spec, i, str, len); } else { i = LOAD_STRING(spec, i, str, len); } return i; } static int http_response_inetdrv(void *arg, int major, int minor, int status, const char* phrase, int phrase_len) { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; ErlDrvTermData spec[27]; ErlDrvTermData caller = ERL_DRV_NIL; if (desc->inet.active == INET_PASSIVE) { /* {inet_async,S,Ref,{ok,{http_response,Version,Status,Phrase}}} */ int req; int aid; if (deq_async(INETP(desc), &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); } else { /* {http, S, {http_response,Version,Status,Phrase}} */ i = LOAD_ATOM(spec, i, am_http); i = LOAD_PORT(spec, i, desc->inet.dport); } i = LOAD_ATOM(spec, i, am_http_response); i = LOAD_INT(spec, i, major); i = LOAD_INT(spec, i, minor); i = LOAD_TUPLE(spec, i, 2); i = LOAD_INT(spec, i, status); i = http_load_string(desc, spec, i, phrase, phrase_len); i = LOAD_TUPLE(spec, i, 4); if (desc->inet.active == INET_PASSIVE) { i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i<=27); return erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { i = LOAD_TUPLE(spec, i, 3); ASSERT(i<=27); return erl_drv_output_term(desc->inet.dport, spec, i); } } static int http_load_uri(tcp_descriptor* desc, ErlDrvTermData* spec, int i, const PacketHttpURI* uri) { ErlDrvTermData scheme; switch (uri->type) { case URI_STAR: i = LOAD_ATOM(spec, i, am_star); break; case URI_ABS_PATH: i = LOAD_ATOM(spec, i, am_abs_path); i = http_load_string(desc, spec, i, uri->s1_ptr, uri->s1_len); i = LOAD_TUPLE(spec, i, 2); break; case URI_HTTP: scheme = am_http; goto http_common; case URI_HTTPS: scheme = am_https; http_common: i = LOAD_ATOM(spec, i, am_absoluteURI); i = LOAD_ATOM(spec, i, scheme); i = http_load_string(desc, spec, i, uri->s1_ptr, uri->s1_len); if (uri->port == 0) { i = LOAD_ATOM(spec, i, am_undefined); } else { i = LOAD_INT(spec, i, uri->port); } i = http_load_string(desc, spec, i, uri->s2_ptr, uri->s2_len); i = LOAD_TUPLE(spec, i, 5); break; case URI_STRING: i = http_load_string(desc, spec, i, uri->s1_ptr, uri->s1_len); break; case URI_SCHEME: i = LOAD_ATOM(spec, i, am_scheme); i = http_load_string(desc, spec, i, uri->s1_ptr, uri->s1_len); i = http_load_string(desc, spec, i, uri->s2_ptr, uri->s2_len); i = LOAD_TUPLE(spec, i, 3); } return i; } static int http_request_inetdrv(void* arg, const http_atom_t* meth, const char* meth_ptr, int meth_len, const PacketHttpURI* uri, int major, int minor) { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; ErlDrvTermData spec[43]; ErlDrvTermData caller = ERL_DRV_NIL; if (desc->inet.active == INET_PASSIVE) { /* {inet_async, S, Ref, {ok,{http_request,Meth,Uri,Version}}} */ int req; int aid; if (deq_async(INETP(desc), &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); } else { /* {http, S, {http_request,Meth,Uri,Version}}} */ i = LOAD_ATOM(spec, i, am_http); i = LOAD_PORT(spec, i, desc->inet.dport); } i = LOAD_ATOM(spec, i, am_http_request); if (meth != NULL) i = LOAD_ATOM(spec, i, meth->atom); else i = http_load_string(desc, spec, i, meth_ptr, meth_len); i = http_load_uri(desc, spec, i, uri); i = LOAD_INT(spec, i, major); i = LOAD_INT(spec, i, minor); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); if (desc->inet.active == INET_PASSIVE) { i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= 43); return erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 43); return erl_drv_output_term(desc->inet.dport, spec, i); } } static int http_header_inetdrv(void* arg, const http_atom_t* name, const char* name_ptr, int name_len, const char* value_ptr, int value_len) { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; ErlDrvTermData spec[26]; ErlDrvTermData caller = ERL_DRV_NIL; if (desc->inet.active == INET_PASSIVE) { /* {inet_async,S,Ref,{ok,{http_header,Bit,Name,IValue,Value}} */ int req; int aid; if (deq_async(INETP(desc), &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); } else { /* {http, S, {http_header,Bit,Name,IValue,Value}} */ i = LOAD_ATOM(spec, i, am_http); i = LOAD_PORT(spec, i, desc->inet.dport); } i = LOAD_ATOM(spec, i, am_http_header); if (name != NULL) { i = LOAD_INT(spec, i, name->index+1); i = LOAD_ATOM(spec, i, name->atom); } else { i = LOAD_INT(spec, i, 0); i = http_load_string(desc, spec, i, name_ptr, name_len); } i = LOAD_ATOM(spec, i, am_undefined); i = http_load_string(desc, spec, i, value_ptr, value_len); i = LOAD_TUPLE(spec, i, 5); if (desc->inet.active == INET_PASSIVE) { i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= 26); return erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 26); return erl_drv_output_term(desc->inet.dport, spec, i); } } static int http_eoh_inetdrv(void* arg) { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; ErlDrvTermData spec[14]; if (desc->inet.active == INET_PASSIVE) { /* {inet_async,S,Ref,{ok,http_eoh}} */ int req; int aid; ErlDrvTermData caller; if (deq_async(INETP(desc), &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); i = LOAD_ATOM(spec, i, am_http_eoh); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= 14); return erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { /* {http, S, http_eoh} */ i = LOAD_ATOM(spec, i, am_http); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_ATOM(spec, i, am_http_eoh); i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 14); return erl_drv_output_term(desc->inet.dport, spec, i); } } static int http_error_inetdrv(void* arg, const char* buf, int len) { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; ErlDrvTermData spec[19]; if (desc->inet.active == INET_PASSIVE) { /* {inet_async,S,Ref,{ok,{http_error,Line}}} */ int req; int aid; ErlDrvTermData caller; if (deq_async(INETP(desc), &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); i = LOAD_ATOM(spec, i, am_http_error); i = http_load_string(desc, spec, i, buf, len); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= 19); return erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { /* {http, S, {http_error,Line} */ i = LOAD_ATOM(spec, i, am_http); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_ATOM(spec, i, am_http_error); i = http_load_string(desc, spec, i, buf, len); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 19); return erl_drv_output_term(desc->inet.dport, spec, i); } } static int ssl_tls_inetdrv(void* arg, unsigned type, unsigned major, unsigned minor, const char* buf, int len, const char* prefix, int plen) { tcp_descriptor* desc = (tcp_descriptor*) arg; int i = 0; ErlDrvTermData spec[30]; ErlDrvTermData caller = ERL_DRV_NIL; ErlDrvBinary* bin; int ret; if ((bin = driver_alloc_binary(plen+len)) == NULL) return async_error(&desc->inet, ENOMEM); memcpy(bin->orig_bytes+plen, buf, len); if (plen) { memcpy(bin->orig_bytes, prefix, plen); len += plen; } if (desc->inet.active == INET_PASSIVE) { /* {inet_async,S,Ref,{ok,{ssl_tls,...}}} */ int req; int aid; if (deq_async(INETP(desc), &aid, &caller, &req) < 0) { ret = -1; goto done; } i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); } /* {ssl_tls,S,ContentType,{Major,Minor},Bin} */ i = LOAD_ATOM(spec, i, am_ssl_tls); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_INT(spec, i, type); i = LOAD_INT(spec, i, major); i = LOAD_INT(spec, i, minor); i = LOAD_TUPLE(spec, i, 2); i = LOAD_BINARY(spec, i, bin, 0, len); i = LOAD_TUPLE(spec, i, 5); if (desc->inet.active == INET_PASSIVE) { i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= sizeof(spec)/sizeof(*spec)); ret = erl_drv_send_term(desc->inet.dport, caller, spec, i); } else { ASSERT(i <= sizeof(spec)/sizeof(*spec)); ret = erl_drv_output_term(desc->inet.dport, spec, i); } done: driver_free_binary(bin); return ret; } static PacketCallbacks packet_callbacks = { http_response_inetdrv, http_request_inetdrv, http_eoh_inetdrv, http_header_inetdrv, http_error_inetdrv, ssl_tls_inetdrv }; /* ** passive mode reply: ** {inet_async, S, Ref, {ok,[H1,...Hsz | Data]}} ** NB: this is for TCP only; ** UDP and SCTP use inet_async_binary_data . */ static int inet_async_data(inet_descriptor* desc, const char* buf, int len) { unsigned int hsz = desc->hsz; ErlDrvTermData spec[20]; ErlDrvTermData caller; int req; int aid; int i = 0; DEBUGF(("inet_async_data(%ld): len = %d\r\n", (long)desc->port, len)); if (deq_async(desc, &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); i = LOAD_PORT(spec, i, desc->dport); i = LOAD_INT(spec, i, aid); i = LOAD_ATOM(spec, i, am_ok); if ((desc->mode == INET_MODE_LIST) || (hsz > len)) { i = LOAD_STRING(spec, i, buf, len); /* => [H1,H2,...Hn] */ i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i == 15); desc->caller = 0; return erl_drv_send_term(desc->dport, caller, spec, i); } else { /* INET_MODE_BINARY => [H1,H2,...HSz | Binary] */ int sz = len - hsz; int code; i = LOAD_BUF2BINARY(spec, i, buf+hsz, sz); if (hsz > 0) i = LOAD_STRING_CONS(spec, i, buf, hsz); i = LOAD_TUPLE(spec, i, 2); i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= 20); desc->caller = 0; code = erl_drv_send_term(desc->dport, caller, spec, i); return code; } } #ifdef HAVE_SCTP /* ** SCTP-related atoms: */ static ErlDrvTermData am_sctp_rtoinfo, /* Option names */ am_sctp_associnfo, am_sctp_initmsg, am_sctp_autoclose, am_sctp_nodelay, am_sctp_disable_fragments, am_sctp_i_want_mapped_v4_addr, am_sctp_maxseg, am_sctp_set_peer_primary_addr, am_sctp_primary_addr, am_sctp_adaptation_layer, am_sctp_peer_addr_params, am_sctp_default_send_param, am_sctp_events, am_sctp_delayed_ack_time, am_sctp_status, am_sctp_get_peer_addr_info, /* Record names */ am_sctp_sndrcvinfo, am_sctp_assoc_change, am_sctp_paddr_change, am_sctp_remote_error, am_sctp_send_failed, am_sctp_shutdown_event, am_sctp_adaptation_event, am_sctp_pdapi_event, am_sctp_assocparams, am_sctp_prim, am_sctp_setpeerprim, am_sctp_setadaptation, am_sctp_paddrparams, am_sctp_event_subscribe, am_sctp_assoc_value, am_sctp_paddrinfo, /* For #sctp_sndrcvinfo{}: */ am_unordered, am_addr_over, am_abort, am_eof, /* For #sctp_assoc_change{}: */ am_comm_up, am_comm_lost, am_restart, am_shutdown_comp, am_cant_assoc, /* For #sctp_paddr_change{}: */ am_addr_available, am_addr_unreachable, am_addr_removed, am_addr_added, am_addr_made_prim, am_addr_confirmed, /* For #sctp_remote_error{}: */ am_short_recv, am_wrong_anc_data, /* For #sctp_pdap_event{}: */ am_partial_delivery_aborted, /* For #sctp_paddrparams{}: */ am_hb_enable, am_hb_disable, am_hb_demand, am_pmtud_enable, am_pmtud_disable, am_sackdelay_enable, am_sackdelay_disable, /* For #sctp_paddrinfo{}: */ am_active, am_inactive, # if HAVE_DECL_SCTP_UNCONFIRMED am_unconfirmed, # endif /* For #sctp_status{}: */ # if HAVE_DECL_SCTP_EMPTY am_empty, # endif # if HAVE_DECL_SCTP_BOUND am_bound, # endif # if HAVE_DECL_SCTP_LISTEN am_listen, # endif am_cookie_wait, am_cookie_echoed, am_established, am_shutdown_pending, am_shutdown_sent, am_shutdown_received, am_shutdown_ack_sent; /* ** Parsing of "sctp_sndrcvinfo": ancillary data coming with received msgs. ** This function is mainly used by "sctp_parse_ancillary_data", but also ** by "sctp_parse_async_event" in case of SCTP_SEND_FAILED: */ #define SCTP_PARSE_SNDRCVINFO_CNT \ (5*LOAD_ATOM_CNT + 5*LOAD_INT_CNT + 2*LOAD_UINT_CNT + \ LOAD_NIL_CNT + LOAD_LIST_CNT + LOAD_ASSOC_ID_CNT + LOAD_TUPLE_CNT) static int sctp_parse_sndrcvinfo (ErlDrvTermData * spec, int i, struct sctp_sndrcvinfo * sri) { int n; i = LOAD_ATOM (spec, i, am_sctp_sndrcvinfo); i = LOAD_INT (spec, i, sri->sinfo_stream); i = LOAD_INT (spec, i, sri->sinfo_ssn); /* Now Flags, as a list: */ n = 0; if (sri->sinfo_flags & SCTP_UNORDERED) { i = LOAD_ATOM (spec, i, am_unordered); n++; } if (sri->sinfo_flags & SCTP_ADDR_OVER) { i = LOAD_ATOM (spec, i, am_addr_over); n++; } if (sri->sinfo_flags & SCTP_ABORT) { i = LOAD_ATOM (spec, i, am_abort); n++; } if (sri->sinfo_flags & SCTP_EOF) { i = LOAD_ATOM (spec, i, am_eof); n++; } /* SCTP_SENDALL is not yet supported by the Linux kernel */ i = LOAD_NIL (spec, i); i = LOAD_LIST (spec, i, n+1); /* Continue with other top-level fields: */ i = LOAD_INT (spec, i, sock_ntohl(sri->sinfo_ppid)); i = LOAD_INT (spec, i, sri->sinfo_context); i = LOAD_INT (spec, i, sri->sinfo_timetolive); i = LOAD_UINT (spec, i, sri->sinfo_tsn); i = LOAD_UINT (spec, i, sri->sinfo_cumtsn); i = LOAD_ASSOC_ID (spec, i, sri->sinfo_assoc_id); /* Close up the record: */ i = LOAD_TUPLE (spec, i, 10); return i; } /* ** This function skips non-SCTP ancillary data, returns SCTP-specific anc.data ** (currently "sctp_sndrcvinfo" only) as a list of records: */ static int sctp_parse_ancillary_data (ErlDrvTermData * spec, int i, struct msghdr * mptr) { /* First of all, check for ancillary data: */ struct cmsghdr * cmsg, * frst_msg = CMSG_FIRSTHDR(mptr); int s = 0; for (cmsg = frst_msg; cmsg != NULL; cmsg = CMSG_NXTHDR(mptr,cmsg)) { struct sctp_sndrcvinfo * sri; /* Skip other possible ancillary data, e.g. from IPv6: */ if (cmsg->cmsg_level != IPPROTO_SCTP || cmsg->cmsg_type != SCTP_SNDRCV) continue; if (((char*)cmsg + cmsg->cmsg_len) - (char*)frst_msg > mptr->msg_controllen) /* MUST check this in Linux -- the returned "cmsg" may actually go too far! */ break; /* The ONLY kind of ancillary SCTP data which can occur on receiving is "sctp_sndrcvinfo" (on sending, "sctp_initmsg" can be specified by the user). So parse this type: */ sri = (struct sctp_sndrcvinfo*) CMSG_DATA(cmsg); i = sctp_parse_sndrcvinfo (spec, i, sri); s ++; } /* Now make the list of tuples created above. Normally, it will be [] or a singleton list. The list must first be closed with NIL, otherwise traversing it in Erlang would be problematic: */ i = LOAD_NIL (spec, i); i = LOAD_LIST(spec, i, s+1); return i; } /* ** Parsing of ERROR and ABORT SCTP chunks. The function returns a list of error ** causes (as atoms). The chunks also contain some extended cause info, but it ** is not very detailed anyway, and of no interest at the user level (it only ** concerns the protocol implementation), so we omit it: */ static int sctp_parse_error_chunk (ErlDrvTermData * spec, int i, char * chunk, int chlen) { /* The "chunk" itself contains its length, which must not be greater than the "chlen" derived from the over-all msg size: */ char *causes, *cause; int coff, /* Cause offset */ ccode, /* Cause code */ clen, /* cause length */ s; int len = sock_ntohs (*((uint16_t*)(chunk+2))); ASSERT(len >= 4 && len <= chlen); causes = chunk + 4; coff = 0; len -= 4; /* Total length of the "causes" fields */ cause = causes; s = 0; while (coff < len) { ccode = sock_ntohs (*((uint16_t*)(cause))); clen = sock_ntohs (*((uint16_t*)(cause + 2))); if (clen <= 0) /* Strange, but must guard against that! */ break; /* Install the corresp atom for this "ccode": */ i = LOAD_INT (spec, i, ccode); cause += clen; coff += clen; s ++; } i = LOAD_NIL (spec, i); i = LOAD_LIST(spec, i, s+1); return i; } /* ** Parsing of SCTP notification events. NB: they are NOT ancillary data: they ** are sent IN PLACE OF, not in conjunction with, the normal data: */ static int sctp_parse_async_event (ErlDrvTermData * spec, int i, int ok_pos, ErlDrvTermData error_atom, inet_descriptor* desc, ErlDrvBinary * bin, int offs, int sz) { char* body = bin->orig_bytes + offs; union sctp_notification * nptr = (union sctp_notification *) body; switch (nptr->sn_header.sn_type) { case SCTP_ASSOC_CHANGE: { /* {sctp_assoc_change, State : Atom(), Error : Atom(), OutBoundStreams : Int(), InBoundStreams : Int(), AssocID : Int(), // AbortCauses : [Atom()] // NOT YET IMPLEMENTED } */ struct sctp_assoc_change* sptr = &(nptr->sn_assoc_change); ASSERT(sptr->sac_length <= sz); /* No buffer overrun */ i = LOAD_ATOM (spec, i, am_sctp_assoc_change); switch (sptr->sac_state) { case SCTP_COMM_UP: i = LOAD_ATOM (spec, i, am_comm_up); break; case SCTP_COMM_LOST: i = LOAD_ATOM (spec, i, am_comm_lost); break; case SCTP_RESTART: i = LOAD_ATOM (spec, i, am_restart); break; case SCTP_SHUTDOWN_COMP: i = LOAD_ATOM (spec, i, am_shutdown_comp); break; case SCTP_CANT_STR_ASSOC: i = LOAD_ATOM (spec, i, am_cant_assoc); break; default: ASSERT(0); } i = LOAD_INT (spec, i, sptr->sac_error); i = LOAD_INT (spec, i, sptr->sac_outbound_streams); i = LOAD_INT (spec, i, sptr->sac_inbound_streams); i = LOAD_INT (spec, i, sptr->sac_assoc_id); /* The ABORT chunk may or may not be present at the end, depending on whether there was really an ABORT. In the Linux Kernel SCTP implementation, this chunk is not delivered anyway, so we leave it out. Just close up the tuple: */ i = LOAD_TUPLE (spec, i, 6); break; } case SCTP_PEER_ADDR_CHANGE: { /* {sctp_paddr_change, AffectedAddr : String(), State : Atom(), Error : Atom(), AssocID : Int() } */ struct sctp_paddr_change* sptr = &(nptr->sn_paddr_change); ASSERT(sptr->spc_length <= sz); /* No buffer overrun */ i = LOAD_ATOM (spec, i, am_sctp_paddr_change); i = load_inet_get_address(spec, i, desc, &sptr->spc_aaddr); switch (sptr->spc_state) { case SCTP_ADDR_AVAILABLE: i = LOAD_ATOM (spec, i, am_addr_available); break; case SCTP_ADDR_UNREACHABLE: i = LOAD_ATOM (spec, i, am_addr_unreachable); break; case SCTP_ADDR_REMOVED: i = LOAD_ATOM (spec, i, am_addr_removed); break; case SCTP_ADDR_ADDED: i = LOAD_ATOM (spec, i, am_addr_added); break; case SCTP_ADDR_MADE_PRIM: i = LOAD_ATOM (spec, i, am_addr_made_prim); break; #if HAVE_DECL_SCTP_ADDR_CONFIRMED case SCTP_ADDR_CONFIRMED: i = LOAD_ATOM (spec, i, am_addr_confirmed); break; #endif default: ASSERT(0); } i = LOAD_INT (spec, i, sptr->spc_error); i = LOAD_INT (spec, i, sptr->spc_assoc_id); i = LOAD_TUPLE (spec, i, 5); break; } case SCTP_REMOTE_ERROR: { /* This is an error condition, so we return an error term {sctp_remote_error, Error : Int(), AssocID : Int(), RemoteCauses : [Atom()] // Remote Error flags } */ char *chunk; int chlen; struct sctp_remote_error * sptr = &(nptr->sn_remote_error); ASSERT(sptr->sre_length <= sz); /* No buffer overrun */ /* Over-write the prev part of the response with an error: */ (void)LOAD_ATOM(spec, ok_pos, error_atom); /* Continue from the curr pos: */ i = LOAD_ATOM (spec, i, am_sctp_remote_error); i = LOAD_INT (spec, i, sock_ntohs(sptr->sre_error)); i = LOAD_INT (spec, i, sptr->sre_assoc_id); # ifdef HAVE_STRUCT_SCTP_REMOTE_ERROR_SRE_DATA chunk = (char*) (&(sptr->sre_data)); # else chunk = ((char*) &(sptr->sre_assoc_id)) + sizeof(sptr->sre_assoc_id); # endif chlen = sptr->sre_length - (chunk - (char *)sptr); i = sctp_parse_error_chunk(spec, i, chunk, chlen); i = LOAD_TUPLE (spec, i, 4); /* The {error, {...}} will be closed by the caller */ break; } case SCTP_SEND_FAILED: { /* {sctp_send_failed, DataSent : Atom() // true or false Error : Atom(), OrigInfo : Tuple(), AssocID : Int(), OrigData : Binary() } This is also an ERROR condition -- overwrite the 'ok': */ char *chunk; int chlen, choff; struct sctp_send_failed * sptr = &(nptr->sn_send_failed); ASSERT(sptr->ssf_length <= sz); /* No buffer overrun */ /* Over-write 'ok' with 'error', continue from curr "i": */ (void)LOAD_ATOM(spec, ok_pos, error_atom); i = LOAD_ATOM (spec, i, am_sctp_send_failed); switch (sptr->ssf_flags) { case SCTP_DATA_SENT: i = LOAD_ATOM (spec, i, am_true); break; case SCTP_DATA_UNSENT: i = LOAD_ATOM (spec, i, am_false); break; default: ASSERT(0); } i = LOAD_INT (spec, i, sptr->ssf_error); /* Now parse the orig SCTP_SNDRCV info */ i = sctp_parse_sndrcvinfo (spec, i, &sptr->ssf_info); i = LOAD_ASSOC_ID (spec, i, sptr->ssf_assoc_id); /* Load the orig data chunk, as an unparsed binary. Note that in LOAD_BINARY below, we must specify the offset wrt bin-> orig_bytes. In Solaris 10, we don't have ssf_data: */ # ifdef HAVE_STRUCT_SCTP_SEND_FAILED_SSF_DATA chunk = (char*) (&(sptr->ssf_data)); # else chunk = ((char*) &(sptr->ssf_assoc_id)) + sizeof(sptr->ssf_assoc_id); # endif chlen = sptr->ssf_length - (chunk - (char*) sptr); choff = chunk - bin->orig_bytes; i = LOAD_BINARY(spec, i, bin, choff, chlen); i = LOAD_TUPLE (spec, i, 6); /* The {error, {...}} tuple is not yet closed */ break; } case SCTP_SHUTDOWN_EVENT: { /* {sctp_shutdown_event, AssocID : Int() } */ struct sctp_shutdown_event * sptr = &(nptr->sn_shutdown_event); ASSERT (sptr->sse_length == sizeof(struct sctp_shutdown_event) && sptr->sse_length <= sz); /* No buffer overrun */ i = LOAD_ATOM (spec, i, am_sctp_shutdown_event); i = LOAD_INT (spec, i, sptr->sse_assoc_id); i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_ADAPTATION_INDICATION: { /* {sctp_adaptation_event, Indication : Atom(), AssocID : Int() } */ struct sctp_adaptation_event * sptr = &(nptr->sn_adaptation_event); ASSERT (sptr->sai_length == sizeof(struct sctp_adaptation_event) && sptr->sai_length <= sz); /* No buffer overrun */ i = LOAD_ATOM (spec, i, am_sctp_adaptation_event); i = LOAD_INT (spec, i, sock_ntohl(sptr->sai_adaptation_ind)); i = LOAD_INT (spec, i, sptr->sai_assoc_id); i = LOAD_TUPLE (spec, i, 3); break; } case SCTP_PARTIAL_DELIVERY_EVENT: { /* It is not clear whether this event is sent to the sender (when the receiver gets only a part of a message), or to the receiver itself. In any case, we do not support partial delivery of msgs in this implementation, so this is an error condition: {sctp_pdapi_event, sctp_partial_delivery_aborted, AssocID}: */ struct sctp_pdapi_event * sptr; (void) LOAD_ATOM (spec, ok_pos, error_atom); sptr = &(nptr->sn_pdapi_event); ASSERT (sptr->pdapi_length == sizeof(struct sctp_pdapi_event) && sptr->pdapi_length <= sz); /* No buffer overrun */ i = LOAD_ATOM (spec, i, am_sctp_pdapi_event); /* Currently, there is only one indication possible: */ ASSERT (sptr->pdapi_indication == SCTP_PARTIAL_DELIVERY_ABORTED); i = LOAD_ATOM (spec, i, am_partial_delivery_aborted); i = LOAD_INT (spec, i, sptr->pdapi_assoc_id); i = LOAD_TUPLE (spec, i, 3); /* The {error, {...}} tuple is not yet closed */ break; } /* XXX: No more supported SCTP Event types. The standard also provides SCTP_AUTHENTICATION_EVENT, but it is not implemented in the Linux kernel, hence not supported here either. It is not possible to request delivery of such events in this implementation, so they cannot occur: */ default: ASSERT(0); } return i; } #endif /* HAVE_SCTP */ /* ** passive mode reply: ** for UDP: ** {inet_async, S, Ref, {ok, Data=[H1,...,Hsz | BinData]}} ** or (in the list mode) ** {inet_async, S, Ref, {ok, Data=[H1,...,Hsz]}} ** ** for SCTP: ** {inet_async, S, Ref, {ok, {[H1,...,HSz], [AncilData], Data_OR_Event}}} ** where each AncilDatum:Tuple(); ** Data:List() or Binary(), but if List(), then without the Addr part, ** which is moved in front; ** Event:Tuple(); ** or ** {inet_async, S, Ref, {error, {[H1,...,HSz], [AncilData], ErrorTerm}}} ** ** Cf: the output of send_async_error() is ** {inet_async, S, Ref, {error, Cause:Atom()}} */ static int inet_async_binary_data (inet_descriptor* desc, unsigned int phsz, ErlDrvBinary * bin, int offs, int len, void * extra) { unsigned int hsz = desc->hsz + phsz; ErlDrvTermData spec [PACKET_ERL_DRV_TERM_DATA_LEN]; ErlDrvTermData caller = desc->caller; int aid; int req; int i = 0; #ifdef HAVE_SCTP int ok_pos; #endif DEBUGF(("inet_async_binary_data(%ld): offs=%d, len=%d\r\n", (long)desc->port, offs, len)); if (deq_async(desc, &aid, &caller, &req) < 0) return -1; i = LOAD_ATOM(spec, i, am_inet_async); /* 'inet_async' */ i = LOAD_PORT(spec, i, desc->dport); /* S */ i = LOAD_INT (spec, i, aid); /* Ref */ #ifdef HAVE_SCTP /* Need to memoise the position of the 'ok' atom written, as it may later be overridden by an 'error': */ ok_pos = i; #endif i = LOAD_ATOM(spec, i, am_ok); #ifdef HAVE_SCTP if (IS_SCTP(desc)) { /* For SCTP we always have desc->hsz==0 (i.e., no application-level headers are used), so hsz==phsz (see above): */ struct msghdr* mptr; int sz; ASSERT (hsz == phsz && hsz != 0); sz = len - hsz; /* Size of the msg data proper, w/o the addr */ /* We always put the Addr as a list in front */ i = LOAD_STRING(spec, i, bin->orig_bytes+offs, hsz); /* Put in the list (possibly empty) of Ancillary Data: */ mptr = (struct msghdr *) extra; i = sctp_parse_ancillary_data (spec, i, mptr); /* Then: Data or Event (Notification)? */ if (mptr->msg_flags & MSG_NOTIFICATION) /* This is an Event, parse it. It may indicate a normal or an error condition; in the latter case, the 'ok' above is overridden by an 'error', and the Event we receive contains the error term: */ i = sctp_parse_async_event (spec, i, ok_pos, am_error, desc, bin, offs+hsz, sz); else /* This is SCTP data, not a notification event. The data can be returned as a List or as a Binary, similar to the generic case: */ if (desc->mode == INET_MODE_LIST) /* INET_MODE_LIST => [H1,H2,...Hn], addr and data together, butthe Addr has already been parsed, so start at offs+hsz: */ i = LOAD_STRING(spec, i, bin->orig_bytes+offs+hsz, sz); else /* INET_MODE_BINARY => Binary */ i = LOAD_BINARY(spec, i, bin, offs+hsz, sz); /* Close up the {[H1,...,HSz], [AncilData], Event_OR_Data} tuple. This is valid even in the case when Event is a error notification: */ i = LOAD_TUPLE (spec, i, 3); } else #endif /* HAVE_SCTP */ /* Generic case. Both Addr and Data (or a single list of them together) are returned: */ if ((desc->mode == INET_MODE_LIST) || (hsz > len)) { /* INET_MODE_LIST => [H1,H2,...Hn] */ i = LOAD_STRING(spec, i, bin->orig_bytes+offs, len); } else { /* INET_MODE_BINARY => [H1,H2,...HSz | Binary] or [Binary]: */ int sz = len - hsz; i = LOAD_BINARY(spec, i, bin, offs+hsz, sz); if (hsz > 0) i = LOAD_STRING_CONS(spec, i, bin->orig_bytes+offs, hsz); } /* Close up the {ok, ...} or {error, ...} tuple: */ i = LOAD_TUPLE(spec, i, 2); /* Close up the outer {inet_async, S, Ref, {ok|error, ...}} tuple: */ i = LOAD_TUPLE(spec, i, 4); ASSERT(i <= PACKET_ERL_DRV_TERM_DATA_LEN); desc->caller = 0; return erl_drv_send_term(desc->dport, caller, spec, i); } /* ** active mode message: ** {tcp, S, [H1,...Hsz | Data]} */ static int tcp_message(inet_descriptor* desc, const char* buf, int len) { unsigned int hsz = desc->hsz; ErlDrvTermData spec[20]; int i = 0; DEBUGF(("tcp_message(%ld): len = %d\r\n", (long)desc->port, len)); /* XXX fprintf(stderr,"tcp_message send.\r\n"); */ i = LOAD_ATOM(spec, i, am_tcp); i = LOAD_PORT(spec, i, desc->dport); if ((desc->mode == INET_MODE_LIST) || (hsz > len)) { i = LOAD_STRING(spec, i, buf, len); /* => [H1,H2,...Hn] */ i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 20); return erl_drv_output_term(desc->dport, spec, i); } else { /* INET_MODE_BINARY => [H1,H2,...HSz | Binary] */ int sz = len - hsz; int code; i = LOAD_BUF2BINARY(spec, i, buf+hsz, sz); if (hsz > 0) i = LOAD_STRING_CONS(spec, i, buf, hsz); i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 20); code = erl_drv_output_term(desc->dport, spec, i); return code; } } /* ** active mode message: ** {tcp, S, [H1,...Hsz | Data]} */ static int tcp_binary_message(inet_descriptor* desc, ErlDrvBinary* bin, int offs, int len) { unsigned int hsz = desc->hsz; ErlDrvTermData spec[20]; int i = 0; DEBUGF(("tcp_binary_message(%ld): len = %d\r\n", (long)desc->port, len)); i = LOAD_ATOM(spec, i, am_tcp); i = LOAD_PORT(spec, i, desc->dport); if ((desc->mode == INET_MODE_LIST) || (hsz > len)) { /* INET_MODE_LIST => [H1,H2,...Hn] */ i = LOAD_STRING(spec, i, bin->orig_bytes+offs, len); } else { /* INET_MODE_BINARY => [H1,H2,...HSz | Binary] */ int sz = len - hsz; i = LOAD_BINARY(spec, i, bin, offs+hsz, sz); if (hsz > 0) i = LOAD_STRING_CONS(spec, i, bin->orig_bytes+offs, hsz); } i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 20); return erl_drv_output_term(desc->dport, spec, i); } /* ** send: active mode {tcp_closed, S} */ static int tcp_closed_message(tcp_descriptor* desc) { ErlDrvTermData spec[6]; int i = 0; DEBUGF(("tcp_closed_message(%ld):\r\n", (long)desc->inet.port)); if (!(desc->tcp_add_flags & TCP_ADDF_CLOSE_SENT)) { desc->tcp_add_flags |= TCP_ADDF_CLOSE_SENT; i = LOAD_ATOM(spec, i, am_tcp_closed); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_TUPLE(spec, i, 2); ASSERT(i <= 6); return erl_drv_output_term(desc->inet.dport, spec, i); } return 0; } /* ** send active message {tcp_error, S, Error} */ static int tcp_error_message(tcp_descriptor* desc, int err) { ErlDrvTermData spec[8]; ErlDrvTermData am_err = error_atom(err); int i = 0; DEBUGF(("tcp_error_message(%ld): %d\r\n", (long)desc->inet.port, err)); i = LOAD_ATOM(spec, i, am_tcp_error); i = LOAD_PORT(spec, i, desc->inet.dport); i = LOAD_ATOM(spec, i, am_err); i = LOAD_TUPLE(spec, i, 3); ASSERT(i <= 8); return erl_drv_output_term(desc->inet.dport, spec, i); } #ifdef HAVE_UDP /* ** active mode message: ** {udp, S, IP, Port, [H1,...Hsz | Data]} or ** {sctp, S, IP, Port, {[AncilData], Event_or_Data}} ** where ** [H1,...,HSz] are msg headers (without IP/Port, UDP only), ** [AddrLen, H2,...,HSz] are msg headers for UDP AF_UNIX only ** Data : List() | Binary() */ static int packet_binary_message (inet_descriptor* desc, ErlDrvBinary* bin, int offs, int len, void* extra) { unsigned int hsz = desc->hsz; ErlDrvTermData spec [PACKET_ERL_DRV_TERM_DATA_LEN]; int i = 0; int alen; char* data = bin->orig_bytes+offs; DEBUGF(("packet_binary_message(%ld): len = %d\r\n", (long)desc->port, len)); # ifdef HAVE_SCTP i = LOAD_ATOM(spec, i, IS_SCTP(desc) ? am_sctp : am_udp); /* UDP|SCTP */ # else i = LOAD_ATOM(spec, i, am_udp ); /* UDP only */ # endif i = LOAD_PORT(spec, i, desc->dport); /* S */ alen = addrlen(data); i = load_address(spec, i, data); /* IP,Port | Family,Addr */ offs += alen; len -= alen; # ifdef HAVE_SCTP if (!IS_SCTP(desc)) { # endif if ((desc->mode == INET_MODE_LIST) || (hsz > len)) /* INET_MODE_LIST, or only headers => [H1,H2,...Hn] */ i = LOAD_STRING(spec, i, bin->orig_bytes+offs, len); else { /* INET_MODE_BINARY => [H1,H2,...HSz | Binary] */ int sz = len - hsz; i = LOAD_BINARY(spec, i, bin, offs+hsz, sz); if (hsz > 0) i = LOAD_STRING_CONS(spec, i, bin->orig_bytes+offs, hsz); } # ifdef HAVE_SCTP } else { /* For SCTP we always have desc->hsz==0 (i.e., no application-level headers are used): */ struct msghdr* mptr; ASSERT(hsz == 0); /* Put in the list (possibly empty) of Ancillary Data: */ mptr = (struct msghdr *) extra; i = sctp_parse_ancillary_data (spec, i, mptr); /* Then: Data or Event (Notification)? */ if (mptr->msg_flags & MSG_NOTIFICATION) /* This is an Event, parse it. It may indicate a normal or an error condition; in the latter case, the initial 'sctp' atom is over- ridden by 'sctp_error', and the Event we receive contains the error term: */ i = sctp_parse_async_event (spec, i, 0, am_sctp_error, desc, bin, offs, len); else /* This is SCTP data, not a notification event. The data can be returned as a List or as a Binary, similar to the generic case: */ if (desc->mode == INET_MODE_LIST) /* INET_MODE_LIST => [H1,H2,...Hn], addr and data together, but the Addr has already been parsed, so start at offs: */ i = LOAD_STRING(spec, i, bin->orig_bytes+offs, len); else /* INET_MODE_BINARY => Binary */ i = LOAD_BINARY(spec, i, bin, offs, len); /* Close up the {[AncilData], Event_OR_Data} tuple: */ i = LOAD_TUPLE (spec, i, 2); } # endif /* HAVE_SCTP */ /* Close up the outer 5-tuple: */ i = LOAD_TUPLE(spec, i, 5); ASSERT(i <= PACKET_ERL_DRV_TERM_DATA_LEN); return erl_drv_output_term(desc->dport, spec, i); } #endif /* ** active mode message: send active-to-passive transition message ** {tcp_passive, S} or ** {udp_passive, S} or ** {sctp_passive, S} */ static int packet_passive_message(inet_descriptor* desc) { ErlDrvTermData spec[6]; int i = 0; DEBUGF(("packet_passive_message(%ld):\r\n", (long)desc->port)); #if !defined(HAVE_UDP) && !defined(HAVE_SCTP) i = LOAD_ATOM(spec, i, am_tcp_passive); #else if (desc->sprotocol == IPPROTO_TCP) i = LOAD_ATOM(spec, i, am_tcp_passive); else { #ifdef HAVE_SCTP i = LOAD_ATOM(spec, i, IS_SCTP(desc) ? am_sctp_passive : am_udp_passive); #else i = LOAD_ATOM(spec, i, am_udp_passive); #endif } #endif i = LOAD_PORT(spec, i, desc->dport); i = LOAD_TUPLE(spec, i, 2); ASSERT(i <= 6); return erl_drv_output_term(desc->dport, spec, i); } #ifdef HAVE_UDP /* ** send active message {udp_error|sctp_error, S, Error} */ static int packet_error_message(udp_descriptor* udesc, int err) { inet_descriptor* desc = INETP(udesc); ErlDrvTermData spec[2*LOAD_ATOM_CNT + LOAD_PORT_CNT + LOAD_TUPLE_CNT]; ErlDrvTermData am_err = error_atom(err); int i = 0; DEBUGF(("packet_error_message(%ld): %d\r\n", (long)desc->port, err)); # ifdef HAVE_SCTP if (IS_SCTP(desc) ) i = LOAD_ATOM(spec, i, am_sctp_error); else # endif i = LOAD_ATOM(spec, i, am_udp_error); i = LOAD_PORT(spec, i, desc->dport); i = LOAD_ATOM(spec, i, am_err); i = LOAD_TUPLE(spec, i, 3); ASSERT(i == sizeof(spec)/sizeof(*spec)); return erl_drv_output_term(desc->dport, spec, i); } #endif /* ** active=TRUE: ** (NOTE! distribution MUST use active=TRUE, deliver=PORT) ** deliver=PORT {S, {data, [H1,..Hsz | Data]}} ** deliver=TERM {tcp, S, [H1..Hsz | Data]} ** ** active=FALSE: ** {async, S, Ref, {ok,[H1,...Hsz | Data]}} */ static int tcp_reply_data(tcp_descriptor* desc, char* buf, int len) { int code; const char* body = buf; int bodylen = len; packet_get_body(desc->inet.htype, &body, &bodylen); if (desc->inet.deliver == INET_DELIVER_PORT) { code = inet_port_data(INETP(desc), body, bodylen); } else if ((code=packet_parse(desc->inet.htype, buf, len, &desc->http_state, &packet_callbacks, desc)) == 0) { /* No body parsing, return raw binary */ if (desc->inet.active == INET_PASSIVE) return inet_async_data(INETP(desc), body, bodylen); else code = tcp_message(INETP(desc), body, bodylen); } if (code < 0) return code; INET_CHECK_ACTIVE_TO_PASSIVE(INETP(desc)); return code; } static int tcp_reply_binary_data(tcp_descriptor* desc, ErlDrvBinary* bin, int offs, int len) { int code; const char* buf = bin->orig_bytes + offs; const char* body = buf; int bodylen = len; packet_get_body(desc->inet.htype, &body, &bodylen); offs = body - bin->orig_bytes; /* body offset now */ if (desc->inet.deliver == INET_DELIVER_PORT) code = inet_port_binary_data(INETP(desc), bin, offs, bodylen); else if ((code=packet_parse(desc->inet.htype, buf, len, &desc->http_state, &packet_callbacks,desc)) == 0) { /* No body parsing, return raw data */ if (desc->inet.active == INET_PASSIVE) return inet_async_binary_data(INETP(desc), 0, bin, offs, bodylen, NULL); else code = tcp_binary_message(INETP(desc), bin, offs, bodylen); } if (code < 0) return code; INET_CHECK_ACTIVE_TO_PASSIVE(INETP(desc)); return code; } #ifdef HAVE_UDP static int packet_reply_binary_data(inet_descriptor* desc, unsigned int hsz, ErlDrvBinary * bin, int offs, int len, void * extra) { int code; if (desc->active == INET_PASSIVE) /* "inet" is actually for both UDP and SCTP, as well as TCP! */ return inet_async_binary_data(desc, hsz, bin, offs, len, extra); else { /* INET_ACTIVE or INET_ONCE: */ if (desc->deliver == INET_DELIVER_PORT) code = inet_port_binary_data(desc, bin, offs, len); else code = packet_binary_message(desc, bin, offs, len, extra); if (code < 0) return code; INET_CHECK_ACTIVE_TO_PASSIVE(desc); return code; } } #endif /* ---------------------------------------------------------------------------- INET ---------------------------------------------------------------------------- */ static int sock_init(void) /* May be called multiple times. */ { #ifdef __WIN32__ WORD wVersionRequested; WSADATA wsaData; static int res = -1; /* res < 0 == initialization never attempted */ if (res >= 0) return res; wVersionRequested = MAKEWORD(2,0); if (WSAStartup(wVersionRequested, &wsaData) != 0) goto error; if ((LOBYTE(wsaData.wVersion) != 2) || (HIBYTE(wsaData.wVersion) != 0)) goto error; find_dynamic_functions(); return res = 1; error: WSACleanup(); return res = 0; #else return 1; #endif } #ifdef HAVE_SCTP static void inet_init_sctp(void) { INIT_ATOM(sctp); INIT_ATOM(sctp_passive); INIT_ATOM(sctp_error); INIT_ATOM(true); INIT_ATOM(false); INIT_ATOM(buffer); INIT_ATOM(mode); INIT_ATOM(list); INIT_ATOM(binary); INIT_ATOM(active); INIT_ATOM(once); INIT_ATOM(multi); INIT_ATOM(buffer); INIT_ATOM(linger); INIT_ATOM(recbuf); INIT_ATOM(sndbuf); INIT_ATOM(reuseaddr); INIT_ATOM(dontroute); INIT_ATOM(priority); INIT_ATOM(tos); INIT_ATOM(tclass); INIT_ATOM(ipv6_v6only); INIT_ATOM(netns); /* Option names */ INIT_ATOM(sctp_rtoinfo); INIT_ATOM(sctp_associnfo); INIT_ATOM(sctp_initmsg); INIT_ATOM(sctp_autoclose); INIT_ATOM(sctp_nodelay); INIT_ATOM(sctp_disable_fragments); INIT_ATOM(sctp_i_want_mapped_v4_addr); INIT_ATOM(sctp_maxseg); INIT_ATOM(sctp_set_peer_primary_addr); INIT_ATOM(sctp_primary_addr); INIT_ATOM(sctp_adaptation_layer); INIT_ATOM(sctp_peer_addr_params); INIT_ATOM(sctp_default_send_param); INIT_ATOM(sctp_events); INIT_ATOM(sctp_delayed_ack_time); INIT_ATOM(sctp_status); INIT_ATOM(sctp_get_peer_addr_info); /* Record names */ INIT_ATOM(sctp_sndrcvinfo); INIT_ATOM(sctp_assoc_change); INIT_ATOM(sctp_paddr_change); INIT_ATOM(sctp_remote_error); INIT_ATOM(sctp_send_failed); INIT_ATOM(sctp_shutdown_event); INIT_ATOM(sctp_adaptation_event); INIT_ATOM(sctp_pdapi_event); INIT_ATOM(sctp_assocparams); INIT_ATOM(sctp_prim); INIT_ATOM(sctp_setpeerprim); INIT_ATOM(sctp_setadaptation); INIT_ATOM(sctp_paddrparams); INIT_ATOM(sctp_event_subscribe); INIT_ATOM(sctp_assoc_value); INIT_ATOM(sctp_paddrinfo); /* For #sctp_sndrcvinfo{}: */ INIT_ATOM(unordered); INIT_ATOM(addr_over); INIT_ATOM(abort); INIT_ATOM(eof); /* For #sctp_assoc_change{}: */ INIT_ATOM(comm_up); INIT_ATOM(comm_lost); INIT_ATOM(restart); INIT_ATOM(shutdown_comp); INIT_ATOM(cant_assoc); /* For #sctp_paddr_change{}: */ INIT_ATOM(addr_available); INIT_ATOM(addr_unreachable); INIT_ATOM(addr_removed); INIT_ATOM(addr_added); INIT_ATOM(addr_made_prim); INIT_ATOM(addr_confirmed); INIT_ATOM(short_recv); INIT_ATOM(wrong_anc_data); /* For #sctp_pdap_event{}: */ INIT_ATOM(partial_delivery_aborted); /* For #sctp_paddrparams{}: */ INIT_ATOM(hb_enable); INIT_ATOM(hb_disable); INIT_ATOM(hb_demand); INIT_ATOM(pmtud_enable); INIT_ATOM(pmtud_disable); INIT_ATOM(sackdelay_enable); INIT_ATOM(sackdelay_disable); /* For #sctp_paddrinfo{}: */ INIT_ATOM(active); INIT_ATOM(inactive); # if HAVE_DECL_SCTP_UNCONFIRMED INIT_ATOM(unconfirmed); # endif /* For #sctp_status{}: */ # if HAVE_DECL_SCTP_EMPTY INIT_ATOM(empty); # endif # if HAVE_DECL_SCTP_BOUND INIT_ATOM(bound); # endif # if HAVE_DECL_SCTP_LISTEN INIT_ATOM(listen); # endif INIT_ATOM(cookie_wait); INIT_ATOM(cookie_echoed); INIT_ATOM(established); INIT_ATOM(shutdown_pending); INIT_ATOM(shutdown_sent); INIT_ATOM(shutdown_received); INIT_ATOM(shutdown_ack_sent); } #endif /* HAVE_SCTP */ static int inet_init() { if (!sock_init()) goto error; if (0 != erl_drv_tsd_key_create("inet_buffer_stack_key", &buffer_stack_key)) goto error; ERTS_CT_ASSERT(sizeof(struct in_addr) == 4); # if defined(HAVE_IN6) && defined(AF_INET6) ERTS_CT_ASSERT(sizeof(struct in6_addr) == 16); # endif INIT_ATOM(ok); INIT_ATOM(undefined); INIT_ATOM(unspec); INIT_ATOM(tcp); #ifdef HAVE_UDP INIT_ATOM(udp); #endif INIT_ATOM(error); INIT_ATOM(einval); INIT_ATOM(inet_async); INIT_ATOM(inet_reply); INIT_ATOM(timeout); INIT_ATOM(closed); INIT_ATOM(tcp_passive); INIT_ATOM(tcp_closed); INIT_ATOM(tcp_error); #ifdef HAVE_UDP INIT_ATOM(udp_passive); INIT_ATOM(udp_error); #endif #ifdef HAVE_SYS_UN_H INIT_ATOM(local); #endif INIT_ATOM(empty_out_q); INIT_ATOM(ssl_tls); INIT_ATOM(http_eoh); INIT_ATOM(http_header); INIT_ATOM(http_request); INIT_ATOM(http_response); INIT_ATOM(http_error); INIT_ATOM(abs_path); INIT_ATOM(absoluteURI); am_star = driver_mk_atom("*"); INIT_ATOM(http); INIT_ATOM(https); INIT_ATOM(scheme); /* add TCP, UDP and SCTP drivers */ add_driver_entry(&tcp_inet_driver_entry); #ifdef HAVE_UDP add_driver_entry(&udp_inet_driver_entry); #endif #ifdef HAVE_SCTP /* Check the size of SCTP AssocID -- currently both this driver and the Erlang part require 32 bit: */ ERTS_CT_ASSERT(sizeof(sctp_assoc_t)==ASSOC_ID_LEN); # if defined(HAVE_SCTP_BINDX) p_sctp_bindx = sctp_bindx; # if defined(HAVE_SCTP_PEELOFF) p_sctp_peeloff = sctp_peeloff; # else p_sctp_peeloff = NULL; # endif # if defined(HAVE_SCTP_GETLADDRS) && defined(HAVE_SCTP_FREELADDRS) p_sctp_getladdrs = sctp_getladdrs; p_sctp_freeladdrs = sctp_freeladdrs; # else p_sctp_getladdrs = NULL; p_sctp_freeladdrs = NULL; # endif # if defined(HAVE_SCTP_GETPADDRS) && defined(HAVE_SCTP_FREEPADDRS) p_sctp_getpaddrs = sctp_getpaddrs; p_sctp_freepaddrs = sctp_freepaddrs; # else p_sctp_getpaddrs = NULL; p_sctp_freepaddrs = NULL; # endif inet_init_sctp(); add_driver_entry(&sctp_inet_driver_entry); # else # ifndef LIBSCTP # error LIBSCTP not defined # endif { static void *h_libsctp = NULL; if (erts_sys_ddll_open_noext(STRINGIFY(LIBSCTP), &h_libsctp, NULL) == 0) { void *ptr; if (erts_sys_ddll_sym(h_libsctp, "sctp_bindx", &ptr) == 0) { p_sctp_bindx = ptr; if (erts_sys_ddll_sym(h_libsctp, "sctp_peeloff", &ptr) == 0) { p_sctp_peeloff = ptr; } else p_sctp_peeloff = NULL; if (erts_sys_ddll_sym(h_libsctp, "sctp_getladdrs", &ptr) == 0) { p_sctp_getladdrs = ptr; } else p_sctp_getladdrs = NULL; if (erts_sys_ddll_sym(h_libsctp, "sctp_freeladdrs", &ptr) == 0) { p_sctp_freeladdrs = ptr; } else { p_sctp_freeladdrs = NULL; p_sctp_getladdrs = NULL; } if (erts_sys_ddll_sym(h_libsctp, "sctp_getpaddrs", &ptr) == 0) { p_sctp_getpaddrs = ptr; } else p_sctp_getpaddrs = NULL; if (erts_sys_ddll_sym(h_libsctp, "sctp_freepaddrs", &ptr) == 0) { p_sctp_freepaddrs = ptr; } else { p_sctp_freepaddrs = NULL; p_sctp_getpaddrs = NULL; } inet_init_sctp(); add_driver_entry(&sctp_inet_driver_entry); } else p_sctp_bindx = NULL; } } # endif #endif /* remove the dummy inet driver */ remove_driver_entry(&inet_driver_entry); return 0; error: remove_driver_entry(&inet_driver_entry); return -1; } /* ** Set an inaddr structure: ** *src = [P1,P0,X1,X2,.....] ** dst points to a structure large enugh to keep any kind ** of inaddr. ** *len is set to length of src on call ** and is set to actual length of dst on return ** return NULL if ok or ptr to errno string for error */ static char* inet_set_address(int family, inet_address* dst, char* *src, ErlDrvSizeT* len) { short port; switch (family) { case AF_INET: { if (*len < 2+4) return str_einval; sys_memzero((char*)dst, sizeof(struct sockaddr_in)); port = get_int16(*src); #ifndef NO_SA_LEN dst->sai.sin_len = sizeof(struct sockaddr_in); #endif dst->sai.sin_family = family; dst->sai.sin_port = sock_htons(port); sys_memcpy(&dst->sai.sin_addr, (*src)+2, 4); *len = sizeof(struct sockaddr_in); *src += 2 + 4; return NULL; } #if defined(HAVE_IN6) && defined(AF_INET6) case AF_INET6: { if (*len < 2+16) return str_einval; sys_memzero((char*)dst, sizeof(struct sockaddr_in6)); port = get_int16(*src); #ifndef NO_SA_LEN dst->sai6.sin6_len = sizeof(struct sockaddr_in6); #endif dst->sai6.sin6_family = family; dst->sai6.sin6_port = sock_htons(port); dst->sai6.sin6_flowinfo = 0; /* XXX this may be set as well ?? */ sys_memcpy(&dst->sai6.sin6_addr, (*src)+2, 16); *len = sizeof(struct sockaddr_in6); *src += 2 + 16; return NULL; } #endif #ifdef HAVE_SYS_UN_H case AF_UNIX: { int n; if (*len == 0) return str_einval; n = *((unsigned char*)(*src)); /* Length field */ if ((*len < 1+n) || (sizeof(dst->sal.sun_path) < n+1)) { return str_einval; } sys_memzero((char*)dst, sizeof(struct sockaddr_un)); dst->sal.sun_family = family; sys_memcpy(dst->sal.sun_path, (*src)+1, n); *len = offsetof(struct sockaddr_un, sun_path) + n; *src += 1 + n; return NULL; } #endif } return str_eafnosupport; } /* ** Set an inaddr structure, address family comes from source data, ** or from argument if source data specifies constant address. ** ** *src = [TAG,P1,P0] ** when TAG = INET_AF_ANY | INET_AF_LOOPBACK ** *src = [TAG,P1,P0,X1,X2,...] ** when TAG = INET_AF_INET | INET_AF_INET6 | INET_AF_LOCAL ** *src = [TAG,Len,...] ** when TAG = INET_AF_LOCAL */ static char *inet_set_faddress(int family, inet_address* dst, char* *src, ErlDrvSizeT* len) { int tag; if (*len < 1) return str_einval; (*len) --; tag = *((*src) ++); switch (tag) { case INET_AF_INET: family = AF_INET; break; # if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: family = AF_INET6; break; # endif # ifdef HAVE_SYS_UN_H case INET_AF_LOCAL: { family = AF_UNIX; break; } # endif case INET_AF_ANY: case INET_AF_LOOPBACK: { int port; if (*len < 2) return str_einval; port = get_int16(*src); switch (family) { case AF_INET: { struct in_addr addr; switch (tag) { case INET_AF_ANY: addr.s_addr = sock_htonl(INADDR_ANY); break; case INET_AF_LOOPBACK: addr.s_addr = sock_htonl(INADDR_LOOPBACK); break; default: return str_einval; } sys_memzero((char*)dst, sizeof(struct sockaddr_in)); #ifndef NO_SA_LEN dst->sai.sin_len = sizeof(struct sockaddr_in6); #endif dst->sai.sin_family = family; dst->sai.sin_port = sock_htons(port); dst->sai.sin_addr.s_addr = addr.s_addr; *len = sizeof(struct sockaddr_in); } break; # if defined(HAVE_IN6) && defined(AF_INET6) case AF_INET6: { const struct in6_addr* paddr; switch (tag) { case INET_AF_ANY: paddr = &in6addr_any; break; case INET_AF_LOOPBACK: paddr = &in6addr_loopback; break; default: return str_einval; } sys_memzero((char*)dst, sizeof(struct sockaddr_in6)); #ifndef NO_SA_LEN dst->sai6.sin6_len = sizeof(struct sockaddr_in6); #endif dst->sai6.sin6_family = family; dst->sai6.sin6_port = sock_htons(port); dst->sai6.sin6_flowinfo = 0; /* XXX this may be set as well ?? */ dst->sai6.sin6_addr = *paddr; *len = sizeof(struct sockaddr_in6); } break; # endif default: return str_einval; } *src += 2; return NULL; } break; default: return str_eafnosupport; } return inet_set_address(family, dst, src, len); } /* Get a inaddr structure ** src = inaddr structure ** *len is the lenght of structure ** dst is filled with [F,P1,P0,X1,....] ** where F is the family code (coded) ** and *len is the length of dst on return ** (suitable to deliver to erlang) */ static int inet_get_address(char* dst, inet_address* src, unsigned int* len) { /* Compare the code with inet_address_to_erlang() */ int family; short port; family = src->sa.sa_family; if ((family == AF_INET) && (*len >= sizeof(struct sockaddr_in))) { dst[0] = INET_AF_INET; port = sock_ntohs(src->sai.sin_port); put_int16(port, dst+1); sys_memcpy(dst+3, (char*)&src->sai.sin_addr, sizeof(struct in_addr)); *len = 3 + sizeof(struct in_addr); return 0; } #if defined(HAVE_IN6) && defined(AF_INET6) else if ((family == AF_INET6) && (*len >= sizeof(struct sockaddr_in6))) { dst[0] = INET_AF_INET6; port = sock_ntohs(src->sai6.sin6_port); put_int16(port, dst+1); sys_memcpy(dst+3, (char*)&src->sai6.sin6_addr,sizeof(struct in6_addr)); *len = 3 + sizeof(struct in6_addr); return 0; } #endif #ifdef HAVE_SYS_UN_H else if (family == AF_UNIX) { size_t n, m; if (*len < offsetof(struct sockaddr_un, sun_path)) return -1; n = *len - offsetof(struct sockaddr_un, sun_path); if (255 < n) return -1; /* Portability fix: Assume that the address is a zero terminated * string, except when the first byte is \0 i.e the * string length is 0. Then use the reported length instead. * This fix handles Linux's abstract socket address * nonportable extension. */ m = my_strnlen(src->sal.sun_path, n); if ((m == 0) && is_nonzero(src->sal.sun_path, n)) m = n; dst[0] = INET_AF_LOCAL; dst[1] = (char) ((unsigned char) m); sys_memcpy(dst+2, src->sal.sun_path, m); *len = 1 + 1 + m; return 0; } #endif else if (family == AF_UNSPEC) { dst[0] = INET_AF_UNSPEC; *len = 1; } else { dst[0] = INET_AF_UNDEFINED; *len = 1; } return -1; } /* Same as the above, but take family from the address structure, ** and advance the address pointer to the next address ** according to the size of the current, ** and return the resulting encoded size */ static int inet_address_to_erlang(char *dst, inet_address **src, SOCKLEN_T sz) { /* Compare the code with inet_get_address() */ short port; switch ((*src)->sa.sa_family) { case AF_INET: if (dst) { dst[0] = INET_AF_INET; port = sock_ntohs((*src)->sai.sin_port); put_int16(port, dst+1); sys_memcpy(dst+1+2, (char *) &(*src)->sai.sin_addr, 4); } (*src) = (inet_address *) (&(*src)->sai + 1); return 1 + 2 + 4; #if defined(HAVE_IN6) && defined(AF_INET6) case AF_INET6: if (dst) { dst[0] = INET_AF_INET6; port = sock_ntohs((*src)->sai6.sin6_port); put_int16(port, dst+1); VALGRIND_MAKE_MEM_DEFINED(&(*src)->sai6.sin6_addr,16); /* false undefs from syscall sctp_get[lp]addrs */ sys_memcpy(dst+1+2, (char *) &(*src)->sai6.sin6_addr, 16); } (*src) = (inet_address *) (&(*src)->sai6 + 1); return 1 + 2 + 16; #endif #ifdef HAVE_SYS_UN_H case AF_UNIX: { size_t n, m; if (sz < offsetof(struct sockaddr_un, sun_path)) return -1; n = sz - offsetof(struct sockaddr_un, sun_path); if (255 < n) return -1; /* Portability fix: Assume that the address is a zero terminated * string, except when the first byte is \0 i.e the * string length is 0. Then use the reported length instead. * This fix handles Linux's abstract socket address * nonportable extension. */ m = my_strnlen((*src)->sal.sun_path, n); if ((m == 0) && is_nonzero((*src)->sal.sun_path, n)) m = n; if (dst) { dst[0] = INET_AF_LOCAL; dst[1] = (char) ((unsigned char) m); sys_memcpy(dst+2, (*src)->sal.sun_path, m); } (*src) = (inet_address *) (&(*src)->sal + 1); return 1 + 1 + m; } #endif default: return -1; } } /* Encode n encoded addresses from addrs in the result buffer */ static ErlDrvSizeT reply_inet_addrs (int n, inet_address *addrs, char **rbuf, ErlDrvSizeT rsize, SOCKLEN_T sz) { inet_address *ia; int i, s; ErlDrvSizeT rlen; if (IS_SOCKET_ERROR(n)) return ctl_error(sock_errno(), rbuf, rsize); if (n == 0) return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); /* The sz argument is only used when we have got an actual size * of addrs[0] from e.g getsockname() and then n == 1 * so we will loop over 1 element below. Otherwise sz * would be expected to differ between addresses but that * can only happen for AF_UNIX and we will only be called with * n > 1 for SCTP and that will never (?) happen with AF_UNIX */ /* Calculate result length */ rlen = 1; ia = addrs; for (i = 0; i < n; i++) { s = inet_address_to_erlang(NULL, &ia, sz); if (s < 0) break; rlen += s; } if (rlen > rsize) (*rbuf) = ALLOC(rlen); (*rbuf)[0] = INET_REP_OK; rlen = 1; ia = addrs; for (i = 0; i < n; i++) { s = inet_address_to_erlang((*rbuf)+rlen, &ia, sz); if (s < 0) break; rlen += s; } return rlen; } static void desc_close(inet_descriptor* desc) { if (desc->s != INVALID_SOCKET) { #ifdef __WIN32__ winsock_event_select(desc, FD_READ|FD_WRITE|FD_CLOSE, 0); sock_close(desc->s); desc->forced_events = 0; desc->send_would_block = 0; #endif /* * We should close the fd here, but the other driver might still * be selecting on it. */ if (!desc->is_ignored) driver_select(desc->port,(ErlDrvEvent)(long)desc->event, ERL_DRV_USE, 0); else inet_stop_select((ErlDrvEvent)(long)desc->event,NULL); desc->event = INVALID_EVENT; /* closed by stop_select callback */ desc->s = INVALID_SOCKET; desc->event_mask = 0; } } static void desc_close_read(inet_descriptor* desc) { if (desc->s != INVALID_SOCKET) { #ifdef __WIN32__ /* This call can not be right??? * We want to turn off read events but keep any write events. * But on windows driver_select(...,READ,1) is only used as a * way to hook into the pollset. sock_select is used to control * which events to wait for. * It seems we used to disabled all events for the socket here. * driver_select(desc->port, desc->event, DO_READ, 0); REMOVED */ #endif sock_select(desc, FD_READ | FD_CLOSE, 0); } } static int erl_inet_close(inet_descriptor* desc) { free_subscribers(&desc->empty_out_q_subs); if ((desc->prebound == 0) && (desc->state & INET_F_OPEN)) { desc_close(desc); desc->state = INET_STATE_CLOSED; } else if (desc->prebound && (desc->s != INVALID_SOCKET)) { sock_select(desc, FD_READ | FD_WRITE | FD_CLOSE | ERL_DRV_USE_NO_CALLBACK, 0); desc->event_mask = 0; #ifdef __WIN32__ desc->forced_events = 0; desc->send_would_block = 0; #endif } return 0; } static ErlDrvSSizeT inet_ctl_open(inet_descriptor* desc, int domain, int type, char** rbuf, ErlDrvSizeT rsize) { int save_errno; int protocol; #ifdef HAVE_SETNS int current_ns, new_ns; current_ns = new_ns = 0; #endif save_errno = 0; if (desc->state != INET_STATE_CLOSED) return ctl_xerror(EXBADSEQ, rbuf, rsize); #ifdef HAVE_SETNS if (desc->netns != NULL) { /* Temporarily change network namespace for this thread * while creating the socket */ current_ns = open("/proc/self/ns/net", O_RDONLY); if (current_ns == INVALID_SOCKET) return ctl_error(sock_errno(), rbuf, rsize); new_ns = open(desc->netns, O_RDONLY); if (new_ns == INVALID_SOCKET) { save_errno = sock_errno(); while (close(current_ns) == INVALID_SOCKET && sock_errno() == EINTR); return ctl_error(save_errno, rbuf, rsize); } if (setns(new_ns, CLONE_NEWNET) != 0) { save_errno = sock_errno(); while (close(new_ns) == INVALID_SOCKET && sock_errno() == EINTR); while (close(current_ns) == INVALID_SOCKET && sock_errno() == EINTR); return ctl_error(save_errno, rbuf, rsize); } else { while (close(new_ns) == INVALID_SOCKET && sock_errno() == EINTR); } } #endif protocol = desc->sprotocol; #ifdef HAVE_SYS_UN_H if (domain == AF_UNIX) protocol = 0; #endif if ((desc->s = sock_open(domain, type, protocol)) == INVALID_SOCKET) save_errno = sock_errno(); #ifdef HAVE_SETNS if (desc->netns != NULL) { /* Restore network namespace */ if (setns(current_ns, CLONE_NEWNET) != 0) { /* XXX Failed to restore network namespace. * What to do? Tidy up and return an error... * Note that the thread now might still be in the namespace. * Can this even happen? Should the emulator be aborted? */ if (desc->s != INVALID_SOCKET) save_errno = sock_errno(); while (close(desc->s) == INVALID_SOCKET && sock_errno() == EINTR); desc->s = INVALID_SOCKET; while (close(current_ns) == INVALID_SOCKET && sock_errno() == EINTR); return ctl_error(save_errno, rbuf, rsize); } else { while (close(current_ns) == INVALID_SOCKET && sock_errno() == EINTR); } } #endif if (desc->s == INVALID_SOCKET) return ctl_error(save_errno, rbuf, rsize); if ((desc->event = sock_create_event(desc)) == INVALID_EVENT) { save_errno = sock_errno(); while (close(desc->s) == INVALID_SOCKET && sock_errno() == EINTR); desc->s = INVALID_SOCKET; return ctl_error(save_errno, rbuf, rsize); } SET_NONBLOCKING(desc->s); #ifdef __WIN32__ driver_select(desc->port, desc->event, ERL_DRV_READ, 1); #endif desc->state = INET_STATE_OPEN; desc->stype = type; desc->sfamily = domain; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } /* as inet_open but pass in an open socket (MUST BE OF RIGHT TYPE) */ static ErlDrvSSizeT inet_ctl_fdopen(inet_descriptor* desc, int domain, int type, SOCKET s, Uint32 bound, char** rbuf, ErlDrvSizeT rsize) { inet_address name; unsigned int sz; if (bound) { /* check that it is a socket and that the socket is bound */ sz = sizeof(name); sys_memzero((char *) &name, sz); if (IS_SOCKET_ERROR(sock_name(s, (struct sockaddr*) &name, &sz))) return ctl_error(sock_errno(), rbuf, rsize); if (name.sa.sa_family != domain) return ctl_error(EINVAL, rbuf, rsize); } desc->s = s; if ((desc->event = sock_create_event(desc)) == INVALID_EVENT) return ctl_error(sock_errno(), rbuf, rsize); SET_NONBLOCKING(desc->s); #ifdef __WIN32__ driver_select(desc->port, desc->event, ERL_DRV_READ, 1); #endif desc->state = INET_STATE_OPEN; if (type == SOCK_STREAM) { /* check if connected */ sz = sizeof(name); if (!IS_SOCKET_ERROR(sock_peer(s, (struct sockaddr*) &name, &sz))) { desc->state = INET_STATE_CONNECTED; } } desc->prebound = 1; /* used to prevent a real close since * the fd probably comes from an * external wrapper program, so it is * not certain that we can open it again */ desc->stype = type; desc->sfamily = domain; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } /* ** store interface info as: (bytes) ** [Len] Name(Len) Flags(1) addr(4) baddr(4) mask(4) bw(4) */ struct addr_if { char name[INET_IFNAMSIZ]; long flags; /* coded flags */ struct in_addr addr; /* interface address */ struct in_addr baddr; /* broadcast address */ struct in_addr mask; /* netmask */ }; #ifndef SIOCGIFNETMASK static struct in_addr net_mask(struct in_addr in) { register u_long i = sock_ntohl(in.s_addr); if (IN_CLASSA(i)) in.s_addr = sock_htonl(IN_CLASSA_NET); else if (IN_CLASSB(i)) in.s_addr = sock_htonl(IN_CLASSB_NET); else in.s_addr = sock_htonl(IN_CLASSC_NET); return in; } #endif #if defined(__WIN32__) && defined(SIO_GET_INTERFACE_LIST) /* format address in dot notation */ static char* fmt_addr(unsigned long x, char* ptr) { int i; for (i = 0; i < 4; i++) { int nb[3]; int y = (x >> 24) & 0xff; x <<= 8; nb[0] = y % 10; y /= 10; nb[1] = y % 10; y /= 10; nb[2] = y % 10; y /= 10; switch((nb[2] ? 3 : (nb[1] ? 2 : 1))) { case 3: *ptr++ = nb[2] + '0'; case 2: *ptr++ = nb[1] + '0'; case 1: *ptr++ = nb[0] + '0'; } *ptr++ = '.'; } *(ptr-1) = '\0'; return ptr; } static int parse_addr(char* ptr, int n, long* x) { long addr = 0; int dots = 0; int digs = 0; int v = 0; while(n--) { switch(*ptr) { case '0': case '1': case '2':case '3':case '4':case '5': case '6': case '7': case '8':case '9': v = v*10 + *ptr - '0'; if (++digs > 3) return -1; break; case '.': if ((dots>2) || (digs==0) || (digs > 3) || (v > 0xff)) return -1; dots++; digs = 0; addr = (addr << 8) | v; v = 0; break; default: return -1; } ptr++; } if ((dots!=3) || (digs==0) || (digs > 3) || (v > 0xff)) return -1; addr = (addr << 8) | v; *x = addr; return 0; } #endif #define buf_check(ptr, end, n) \ do { if ((end)-(ptr) < (n)) goto error; } while(0) static char* sockaddr_to_buf(struct sockaddr* addr, char* ptr, char* end) { if (addr->sa_family == AF_INET || addr->sa_family == 0) { struct in_addr *p = &(((struct sockaddr_in*) addr)->sin_addr); buf_check(ptr, end, 1 + sizeof(struct in_addr)); *ptr = INET_AF_INET; sys_memcpy(ptr+1, (char*)p, sizeof(struct in_addr)); return ptr + 1 + sizeof(struct in_addr); } #if defined(HAVE_IN6) && defined(AF_INET6) else if (addr->sa_family == AF_INET6) { struct in6_addr *p = &(((struct sockaddr_in6*) addr)->sin6_addr); buf_check(ptr, end, 1 + sizeof(struct in6_addr)); *ptr = INET_AF_INET6; sys_memcpy(ptr+1, (char*)p, sizeof(struct in6_addr)); return ptr + 1 + sizeof(struct in6_addr); } #endif #if defined(AF_LINK) else if (addr->sa_family == AF_LINK) { struct sockaddr_dl *sdl_p = (struct sockaddr_dl*) addr; buf_check(ptr, end, 2 + sdl_p->sdl_alen); put_int16(sdl_p->sdl_alen, ptr); ptr += 2; sys_memcpy(ptr, sdl_p->sdl_data + sdl_p->sdl_nlen, sdl_p->sdl_alen); return ptr + sdl_p->sdl_alen; } #endif #if defined(AF_PACKET) && defined(HAVE_NETPACKET_PACKET_H) else if(addr->sa_family == AF_PACKET) { struct sockaddr_ll *sll_p = (struct sockaddr_ll*) addr; buf_check(ptr, end, 2 + sll_p->sll_halen); put_int16(sll_p->sll_halen, ptr); ptr += 2; sys_memcpy(ptr, sll_p->sll_addr, sll_p->sll_halen); return ptr + sll_p->sll_halen; } #endif return ptr; error: return NULL; } /* sockaddr_bufsz_need * Returns the number of bytes needed to store the information * through sockaddr_to_buf */ static size_t sockaddr_bufsz_need(struct sockaddr* addr) { if (addr->sa_family == AF_INET || addr->sa_family == 0) { return 1 + sizeof(struct in_addr); } #if defined(HAVE_IN6) && defined(AF_INET6) else if (addr->sa_family == AF_INET6) { return 1 + sizeof(struct in6_addr); } #endif #if defined(AF_LINK) if (addr->sa_family == AF_LINK) { struct sockaddr_dl *sdl_p = (struct sockaddr_dl*) addr; return 2 + sdl_p->sdl_alen; } #endif #if defined(AF_PACKET) && defined(HAVE_NETPACKET_PACKET_H) else if(addr->sa_family == AF_PACKET) { struct sockaddr_ll *sll_p = (struct sockaddr_ll*) addr; return 2 + sll_p->sll_halen; } #endif return 0; } static char* buf_to_sockaddr(char* ptr, char* end, struct sockaddr* addr) { buf_check(ptr,end,1); switch (*ptr++) { case INET_AF_INET: { struct in_addr *p = &((struct sockaddr_in*)addr)->sin_addr; buf_check(ptr,end,sizeof(struct in_addr)); sys_memcpy((char*) p, ptr, sizeof(struct in_addr)); addr->sa_family = AF_INET; return ptr + sizeof(struct in_addr); } #if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: { struct in6_addr *p = &((struct sockaddr_in6*)addr)->sin6_addr; buf_check(ptr,end,sizeof(struct in6_addr)); sys_memcpy((char*) p, ptr, sizeof(struct in6_addr)); addr->sa_family = AF_INET6; return ptr + sizeof(struct in6_addr); } #endif } error: return NULL; } #if defined (IFF_POINTOPOINT) #define IFGET_FLAGS(cflags) IFGET_FLAGS_P2P(cflags, IFF_POINTOPOINT) #elif defined IFF_POINTTOPOINT #define IFGET_FLAGS(cflags) IFGET_FLAGS_P2P(cflags, IFF_POINTTOPOINT) #endif #define IFGET_FLAGS_P2P(cflags, iff_ptp) \ ((((cflags) & IFF_UP) ? INET_IFF_UP : 0) | \ (((cflags) & IFF_BROADCAST) ? INET_IFF_BROADCAST : 0) | \ (((cflags) & IFF_LOOPBACK) ? INET_IFF_LOOPBACK : 0) | \ (((cflags) & iff_ptp) ? INET_IFF_POINTTOPOINT : 0) | \ (((cflags) & IFF_UP) ? INET_IFF_RUNNING : 0) | /* emulate running ? */ \ (((cflags) & IFF_MULTICAST) ? INET_IFF_MULTICAST : 0)) #if defined(__WIN32__) && defined(SIO_GET_INTERFACE_LIST) static ErlDrvSSizeT inet_ctl_getiflist(inet_descriptor* desc, char** rbuf, ErlDrvSizeT rsize) { char ifbuf[BUFSIZ]; char sbuf[BUFSIZ]; char* sptr; INTERFACE_INFO* ifp; DWORD len; ErlDrvSizeT n; int err; ifp = (INTERFACE_INFO*) ifbuf; len = 0; err = WSAIoctl(desc->s, SIO_GET_INTERFACE_LIST, NULL, 0, (LPVOID) ifp, BUFSIZ, (LPDWORD) &len, NULL, NULL); if (err == SOCKET_ERROR) return ctl_error(sock_errno(), rbuf, rsize); n = (len + sizeof(INTERFACE_INFO) - 1) / sizeof(INTERFACE_INFO); sptr = sbuf; while(n--) { if (((struct sockaddr*)&ifp->iiAddress)->sa_family == desc->sfamily) { struct in_addr sina = ((struct sockaddr_in*)&ifp->iiAddress)->sin_addr; /* discard INADDR_ANY interface address */ if (sina.s_addr != INADDR_ANY) sptr = fmt_addr(sock_ntohl(sina.s_addr), sptr); } ifp++; } return ctl_reply(INET_REP_OK, sbuf, sptr - sbuf, rbuf, rsize); } /* input is an ip-address in string format i.e A.B.C.D ** scan the INTERFACE_LIST to get the options */ static ErlDrvSSizeT inet_ctl_ifget(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { char ifbuf[BUFSIZ]; int n; char sbuf[BUFSIZ]; char* sptr; char* s_end = sbuf + BUFSIZ; int namlen; int err; INTERFACE_INFO* ifp; long namaddr; if ((len == 0) || ((namlen = get_int8(buf)) > len)) goto error; if (parse_addr(buf+1, namlen, &namaddr) < 0) goto error; namaddr = sock_ntohl(namaddr); buf += (namlen+1); len -= (namlen+1); ifp = (INTERFACE_INFO*) ifbuf; err = WSAIoctl(desc->s, SIO_GET_INTERFACE_LIST, NULL, 0, (LPVOID) ifp, BUFSIZ, (LPDWORD) &n, NULL, NULL); if (err == SOCKET_ERROR) { return ctl_error(sock_errno(), rbuf, rsize); } n = (n + sizeof(INTERFACE_INFO) - 1) / sizeof(INTERFACE_INFO); /* find interface */ while(n) { if (((struct sockaddr_in*)&ifp->iiAddress)->sin_addr.s_addr == namaddr) break; ifp++; n--; } if (n == 0) goto error; sptr = sbuf; while (len--) { switch(*buf++) { case INET_IFOPT_ADDR: buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_ADDR; if ((sptr = sockaddr_to_buf((struct sockaddr *)&ifp->iiAddress, sptr, s_end)) == NULL) goto error; break; case INET_IFOPT_HWADDR: break; case INET_IFOPT_BROADADDR: #ifdef SIOCGIFBRDADDR buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_BROADADDR; if ((sptr=sockaddr_to_buf((struct sockaddr *) &ifp->iiBroadcastAddress,sptr,s_end)) == NULL) goto error; #endif break; case INET_IFOPT_DSTADDR: break; case INET_IFOPT_NETMASK: buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_NETMASK; if ((sptr = sockaddr_to_buf((struct sockaddr *) &ifp->iiNetmask,sptr,s_end)) == NULL) goto error; break; case INET_IFOPT_MTU: break; case INET_IFOPT_FLAGS: { int flags = ifp->iiFlags; /* just enumerate the interfaces (no names) */ buf_check(sptr, s_end, 5); *sptr++ = INET_IFOPT_FLAGS; put_int32(IFGET_FLAGS(flags), sptr); sptr += 4; break; } default: goto error; } } return ctl_reply(INET_REP_OK, sbuf, sptr - sbuf, rbuf, rsize); error: return ctl_error(EINVAL, rbuf, rsize); } /* not supported */ static ErlDrvSSizeT inet_ctl_ifset(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } #elif defined(SIOCGIFCONF) && defined(SIOCSIFFLAGS) /* cygwin has SIOCGIFCONF but not SIOCSIFFLAGS (Nov 2002) */ #define VOIDP(x) ((void*)(x)) #if defined(AF_LINK) && !defined(NO_SA_LEN) #define SIZEA(p) (((p).sa_len > sizeof(p)) ? (p).sa_len : sizeof(p)) #else #define SIZEA(p) (sizeof (p)) #endif static int get_ifconf(SOCKET s, struct ifconf *ifcp) { int ifc_len = 0; int buflen = 100 * sizeof(struct ifreq); char *buf = ALLOC(buflen); for (;;) { ifcp->ifc_len = buflen; ifcp->ifc_buf = buf; if (ioctl(s, SIOCGIFCONF, (char *)ifcp) < 0) { int res = sock_errno(); if (res != EINVAL || ifc_len) { FREE(buf); return -1; } } else { if (ifcp->ifc_len == ifc_len) break; /* buf large enough */ ifc_len = ifcp->ifc_len; } buflen += 10 * sizeof(struct ifreq); buf = (char *)REALLOC(buf, buflen); } return 0; } static void free_ifconf(struct ifconf *ifcp) { FREE(ifcp->ifc_buf); } static ErlDrvSSizeT inet_ctl_getiflist(inet_descriptor* desc, char** rbuf, ErlDrvSizeT rsize) { struct ifconf ifc; struct ifreq *ifrp; char *sbuf, *sp; ErlDrvSizeT i; /* Courtesy of Per Bergqvist and W. Richard Stevens */ if (get_ifconf(desc->s, &ifc) < 0) { return ctl_error(sock_errno(), rbuf, rsize); } sp = sbuf = ALLOC(ifc.ifc_len+1); *sp++ = INET_REP_OK; i = 0; for (;;) { ErlDrvSizeT n; ifrp = (struct ifreq *) VOIDP(ifc.ifc_buf + i); n = sizeof(ifrp->ifr_name) + SIZEA(ifrp->ifr_addr); if (n < sizeof(*ifrp)) n = sizeof(*ifrp); if (i+n > ifc.ifc_len) break; i += n; switch (ifrp->ifr_addr.sa_family) { #if defined(HAVE_IN6) && defined(AF_INET6) case AF_INET6: #endif case AF_INET: ASSERT(sp+IFNAMSIZ+1 < sbuf+ifc.ifc_len+1); strncpy(sp, ifrp->ifr_name, IFNAMSIZ); sp[IFNAMSIZ] = '\0'; sp += strlen(sp), ++sp; } if (i >= ifc.ifc_len) break; } free_ifconf(&ifc); *rbuf = sbuf; return sp - sbuf; } #ifdef HAVE_LIBDLPI_H #include <libdlpi.h> static int hwaddr_libdlpi_lookup(const char *ifnm, uchar_t *addr, size_t *alen) { dlpi_handle_t handle; dlpi_info_t linkinfo; int ret = -1; if (dlpi_open(ifnm, &handle, 0) != DLPI_SUCCESS) { return -1; } if (dlpi_get_physaddr(handle, DL_CURR_PHYS_ADDR, addr, alen) == DLPI_SUCCESS && dlpi_info(handle, &linkinfo, 0) == DLPI_SUCCESS) { ret = 0; } dlpi_close(handle); return ret; } #endif /* FIXME: temporary hack */ #ifndef IFHWADDRLEN #define IFHWADDRLEN 6 #endif static ErlDrvSSizeT inet_ctl_ifget(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { char sbuf[BUFSIZ]; char* sptr; char* s_end = sbuf + BUFSIZ; struct ifreq ifreq; int namlen; if ((len == 0) || ((namlen = get_int8(buf)) > len)) goto error; sys_memset(ifreq.ifr_name, '\0', IFNAMSIZ); sys_memcpy(ifreq.ifr_name, buf+1, (namlen >= IFNAMSIZ) ? IFNAMSIZ-1 : namlen); buf += (namlen+1); len -= (namlen+1); sptr = sbuf; while (len--) { switch(*buf++) { case INET_IFOPT_ADDR: if (ioctl(desc->s, SIOCGIFADDR, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_ADDR; if ((sptr = sockaddr_to_buf(&ifreq.ifr_addr, sptr, s_end)) == NULL) goto error; break; case INET_IFOPT_HWADDR: { #ifdef HAVE_LIBDLPI_H /* ** OpenSolaris have SIGCGIFHWADDR, but no ifr_hwaddr member.. ** The proper way to get the mac address would be to ** use libdlpi... */ uchar_t addr[DLPI_PHYSADDR_MAX]; size_t alen = sizeof(addr); if (hwaddr_libdlpi_lookup(ifreq.ifr_name, addr, &alen) == 0) { buf_check(sptr, s_end, 1+2+alen); *sptr++ = INET_IFOPT_HWADDR; put_int16(alen, sptr); sptr += 2; sys_memcpy(sptr, addr, alen); sptr += alen; } #elif defined(SIOCGIFHWADDR) && defined(HAVE_STRUCT_IFREQ_IFR_HWADDR) if (ioctl(desc->s, SIOCGIFHWADDR, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 1+2+IFHWADDRLEN); *sptr++ = INET_IFOPT_HWADDR; put_int16(IFHWADDRLEN, sptr); sptr += 2; /* raw memcpy (fix include autoconf later) */ sys_memcpy(sptr, (char*)(&ifreq.ifr_hwaddr.sa_data), IFHWADDRLEN); sptr += IFHWADDRLEN; #elif defined(SIOCGENADDR) && defined(HAVE_STRUCT_IFREQ_IFR_ENADDR) if (ioctl(desc->s, SIOCGENADDR, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 1+2+sizeof(ifreq.ifr_enaddr)); *sptr++ = INET_IFOPT_HWADDR; put_int16(sizeof(ifreq.ifr_enaddr), sptr); sptr += 2; /* raw memcpy (fix include autoconf later) */ sys_memcpy(sptr, (char*)(&ifreq.ifr_enaddr), sizeof(ifreq.ifr_enaddr)); sptr += sizeof(ifreq.ifr_enaddr); #elif defined(HAVE_GETIFADDRS) && defined(AF_LINK) struct ifaddrs *ifa, *ifp; struct sockaddr_dl *sdlp; int found = 0; if (getifaddrs(&ifa) == -1) goto error; for (ifp = ifa; ifp; ifp = ifp->ifa_next) { if ((ifp->ifa_addr->sa_family == AF_LINK) && (sys_strcmp(ifp->ifa_name, ifreq.ifr_name) == 0)) { found = 1; break; } } if (found == 0) { freeifaddrs(ifa); break; } sdlp = (struct sockaddr_dl *)ifp->ifa_addr; buf_check(sptr, s_end, 1+2+sdlp->sdl_alen); *sptr++ = INET_IFOPT_HWADDR; put_int16(sdlp->sdl_alen, sptr); sptr += 2; sys_memcpy(sptr, sdlp->sdl_data + sdlp->sdl_nlen, sdlp->sdl_alen); freeifaddrs(ifa); sptr += sdlp->sdl_alen; #endif break; } case INET_IFOPT_BROADADDR: #ifdef SIOCGIFBRDADDR if (ioctl(desc->s, SIOCGIFBRDADDR, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_BROADADDR; if ((sptr=sockaddr_to_buf(&ifreq.ifr_broadaddr,sptr,s_end)) == NULL) goto error; #endif break; case INET_IFOPT_DSTADDR: #ifdef SIOCGIFDSTADDR if (ioctl(desc->s, SIOCGIFDSTADDR, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_DSTADDR; if ((sptr = sockaddr_to_buf(&ifreq.ifr_dstaddr,sptr,s_end)) == NULL) goto error; #endif break; case INET_IFOPT_NETMASK: #if defined(SIOCGIFNETMASK) if (ioctl(desc->s, SIOCGIFNETMASK, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_NETMASK; #if defined(ifr_netmask) sptr = sockaddr_to_buf(&ifreq.ifr_netmask,sptr,s_end); #else /* SIOCGNETMASK exist but not macro ??? */ sptr = sockaddr_to_buf(&ifreq.ifr_addr,sptr,s_end); #endif if (sptr == NULL) goto error; #else if (ioctl(desc->s, SIOCGIFADDR, (char *)&ifreq) < 0) break; else { struct sockadd_in* ap; /* emulate netmask, * (wasted stuff since noone uses classes) */ buf_check(sptr, s_end, 1); *sptr++ = INET_IFOPT_NETMASK; ap = (struct sockaddr_in*) VOIDP(&ifreq.ifr_addr); ap->sin_addr = net_mask(ap->sin_addr); if ((sptr = sockaddr_to_buf(&ifreq.ifr_addr,sptr,s_end)) == NULL) goto error; } #endif break; case INET_IFOPT_MTU: { #if defined(SIOCGIFMTU) && defined(ifr_mtu) int n; if (ioctl(desc->s, SIOCGIFMTU, (char *)&ifreq) < 0) break; buf_check(sptr, s_end, 5); *sptr++ = INET_IFOPT_MTU; n = ifreq.ifr_mtu; put_int32(n, sptr); sptr += 4; #endif break; } case INET_IFOPT_FLAGS: { int flags; if (ioctl(desc->s, SIOCGIFFLAGS, (char*)&ifreq) < 0) flags = 0; else flags = ifreq.ifr_flags; buf_check(sptr, s_end, 5); *sptr++ = INET_IFOPT_FLAGS; put_int32(IFGET_FLAGS(flags), sptr); sptr += 4; break; } default: goto error; } } return ctl_reply(INET_REP_OK, sbuf, sptr - sbuf, rbuf, rsize); error: return ctl_error(EINVAL, rbuf, rsize); } static ErlDrvSSizeT inet_ctl_ifset(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { struct ifreq ifreq; int namlen; char* b_end = buf + len; if ((len == 0) || ((namlen = get_int8(buf)) > len)) goto error; sys_memset(ifreq.ifr_name, '\0', IFNAMSIZ); sys_memcpy(ifreq.ifr_name, buf+1, (namlen >= IFNAMSIZ) ? IFNAMSIZ-1 : namlen); buf += (namlen+1); len -= (namlen+1); while(buf < b_end) { switch(*buf++) { case INET_IFOPT_ADDR: if ((buf = buf_to_sockaddr(buf, b_end, &ifreq.ifr_addr)) == NULL) goto error; (void) ioctl(desc->s, SIOCSIFADDR, (char*)&ifreq); break; case INET_IFOPT_HWADDR: { unsigned int hwalen; buf_check(buf, b_end, 2); hwalen = get_int16(buf); buf += 2; buf_check(buf, b_end, hwalen); #ifdef SIOCSIFHWADDR /* raw memcpy (fix include autoconf later) */ sys_memset((char*)(&ifreq.ifr_hwaddr.sa_data), '\0', sizeof(ifreq.ifr_hwaddr.sa_data)); sys_memcpy((char*)(&ifreq.ifr_hwaddr.sa_data), buf, hwalen); (void) ioctl(desc->s, SIOCSIFHWADDR, (char *)&ifreq); #endif buf += hwalen; break; } case INET_IFOPT_BROADADDR: #ifdef SIOCSIFBRDADDR if ((buf = buf_to_sockaddr(buf, b_end, &ifreq.ifr_broadaddr)) == NULL) goto error; (void) ioctl(desc->s, SIOCSIFBRDADDR, (char *)&ifreq); #endif break; case INET_IFOPT_DSTADDR: #ifdef SIOCSIFDSTADDR if ((buf = buf_to_sockaddr(buf, b_end, &ifreq.ifr_dstaddr)) == NULL) goto error; (void) ioctl(desc->s, SIOCSIFDSTADDR, (char *)&ifreq); #endif break; case INET_IFOPT_NETMASK: #ifdef SIOCSIFNETMASK #if defined(ifr_netmask) buf = buf_to_sockaddr(buf,b_end, &ifreq.ifr_netmask); #else buf = buf_to_sockaddr(buf,b_end, &ifreq.ifr_addr); #endif if (buf == NULL) goto error; (void) ioctl(desc->s, SIOCSIFNETMASK, (char *)&ifreq); #endif break; case INET_IFOPT_MTU: buf_check(buf, b_end, 4); #if defined(SIOCSIFMTU) && defined(ifr_mtu) ifreq.ifr_mtu = get_int32(buf); (void) ioctl(desc->s, SIOCSIFMTU, (char *)&ifreq); #endif buf += 4; break; case INET_IFOPT_FLAGS: { int flags0; int flags; int eflags; buf_check(buf, b_end, 4); eflags = get_int32(buf); /* read current flags */ if (ioctl(desc->s, SIOCGIFFLAGS, (char*)&ifreq) < 0) flags0 = flags = 0; else flags0 = flags = ifreq.ifr_flags; /* update flags */ if (eflags & INET_IFF_UP) flags |= IFF_UP; if (eflags & INET_IFF_DOWN) flags &= ~IFF_UP; if (eflags & INET_IFF_BROADCAST) flags |= IFF_BROADCAST; if (eflags & INET_IFF_NBROADCAST) flags &= ~IFF_BROADCAST; if (eflags & INET_IFF_POINTTOPOINT) flags |= IFF_POINTOPOINT; if (eflags & INET_IFF_NPOINTTOPOINT) flags &= ~IFF_POINTOPOINT; if (flags != flags0) { ifreq.ifr_flags = flags; (void) ioctl(desc->s, SIOCSIFFLAGS, (char*)&ifreq); } buf += 4; break; } default: goto error; } } return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); error: return ctl_error(EINVAL, rbuf, rsize); } #else static ErlDrvSSizeT inet_ctl_getiflist(inet_descriptor* desc, char** rbuf, ErlDrvSizeT rsize) { return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } static ErlDrvSSizeT inet_ctl_ifget(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } static ErlDrvSSizeT inet_ctl_ifset(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } #endif #if defined(__WIN32__) || defined(HAVE_GETIFADDRS) /* Latin-1 to utf8 */ static int utf8_len(const char *c, int m) { int l; for (l = 0; m; c++, l++, m--) { if (*c == '\0') break; if ((*c & 0x7f) != *c) l++; } return l; } static void utf8_encode(const char *c, int m, char *p) { for (; m; c++, m--) { if (*c == '\0') break; if ((*c & 0x7f) != *c) { *p++ = (char) (0xC0 | (0x03 & (*c >> 6))); *p++ = (char) (0x80 | (0x3F & *c)); } else { *p++ = (char) *c; } } } #endif #if defined(__WIN32__) static void set_netmask_bytes(char *c, int len, int pref_len) { int i, m; for (i = 0, m = pref_len >> 3; i < m && i < len; i++) c[i] = '\xFF'; if (i < len) c[i++] = 0xFF << (8 - (pref_len & 7)); for (; i < len; i++) c[i] = '\0'; } int eq_masked_bytes(char *a, char *b, int pref_len) { int i, m; for (i = 0, m = pref_len >> 3; i < m; i++) { if (a[i] != b[i]) return 0; } m = pref_len & 7; if (m) { m = 0xFF & (0xFF << (8 - m)); if ((a[i] & m) != (b[i] & m)) return 0; } return !0; } static ErlDrvSSizeT inet_ctl_getifaddrs(inet_descriptor* desc_p, char **rbuf_pp, ErlDrvSizeT rsize) { int i; DWORD ret, n; IP_INTERFACE_INFO *info_p; MIB_IPADDRTABLE *ip_addrs_p; IP_ADAPTER_ADDRESSES *ip_adaddrs_p, *ia_p; char *buf_p; char *buf_alloc_p; ErlDrvSizeT buf_size = 512; # define BUF_ENSURE(Size) \ do { \ int NEED_, GOT_ = buf_p - buf_alloc_p; \ NEED_ = GOT_ + (Size); \ if (NEED_ > buf_size) { \ buf_size = NEED_ + 512; \ buf_alloc_p = REALLOC(buf_alloc_p, buf_size); \ buf_p = buf_alloc_p + GOT_; \ } \ } while(0) # define SOCKADDR_TO_BUF(opt, sa) \ do { \ if (sa) { \ char *P_; \ *buf_p++ = (opt); \ while (! (P_ = sockaddr_to_buf((sa), buf_p, \ buf_alloc_p+buf_size))) { \ int GOT_ = buf_p - buf_alloc_p; \ buf_size += 512; \ buf_alloc_p = REALLOC(buf_alloc_p, buf_size); \ buf_p = buf_alloc_p + GOT_; \ } \ if (P_ == buf_p) { \ buf_p--; \ } else { \ buf_p = P_; \ } \ } \ } while (0) { /* Try GetAdaptersAddresses, if it is available */ unsigned long ip_adaddrs_size = 16 * 1024; ULONG family = AF_UNSPEC; ULONG flags = GAA_FLAG_INCLUDE_PREFIX | GAA_FLAG_SKIP_ANYCAST | GAA_FLAG_SKIP_DNS_SERVER | GAA_FLAG_SKIP_FRIENDLY_NAME | GAA_FLAG_SKIP_MULTICAST; ULONG (WINAPI *fpGetAdaptersAddresses) (ULONG, ULONG, PVOID, PIP_ADAPTER_ADDRESSES, PULONG); HMODULE iphlpapi = GetModuleHandle("iphlpapi"); fpGetAdaptersAddresses = (void *) (iphlpapi ? GetProcAddress(iphlpapi, "GetAdaptersAddresses") : NULL); if (fpGetAdaptersAddresses) { ip_adaddrs_p = ALLOC(ip_adaddrs_size); for (i = 17; i; i--) { ret = fpGetAdaptersAddresses( family, flags, NULL, ip_adaddrs_p, &ip_adaddrs_size); ip_adaddrs_p = REALLOC(ip_adaddrs_p, ip_adaddrs_size); if (ret == NO_ERROR) break; if (ret == ERROR_BUFFER_OVERFLOW) continue; i = 0; } if (! i) { FREE(ip_adaddrs_p); ip_adaddrs_p = NULL; } } else ip_adaddrs_p = NULL; } { /* Load the IP_INTERFACE_INFO table (only IPv4 interfaces), * reliable source of interface names on XP */ unsigned long info_size = 4 * 1024; info_p = ALLOC(info_size); for (i = 17; i; i--) { ret = GetInterfaceInfo(info_p, &info_size); info_p = REALLOC(info_p, info_size); if (ret == NO_ERROR) break; if (ret == ERROR_INSUFFICIENT_BUFFER) continue; i = 0; } if (! i) { FREE(info_p); info_p = NULL; } } if (! ip_adaddrs_p) { /* If GetAdaptersAddresses gave nothing we fall back to * MIB_IPADDRTABLE (only IPv4 interfaces) */ unsigned long ip_addrs_size = 16 * sizeof(*ip_addrs_p); ip_addrs_p = ALLOC(ip_addrs_size); for (i = 17; i; i--) { ret = GetIpAddrTable(ip_addrs_p, &ip_addrs_size, FALSE); ip_addrs_p = REALLOC(ip_addrs_p, ip_addrs_size); if (ret == NO_ERROR) break; if (ret == ERROR_INSUFFICIENT_BUFFER) continue; i = 0; } if (! i) { if (info_p) FREE(info_p); FREE(ip_addrs_p); return ctl_reply(INET_REP_OK, NULL, 0, rbuf_pp, rsize); } } else ip_addrs_p = NULL; buf_p = buf_alloc_p = ALLOC(buf_size); *buf_p++ = INET_REP_OK; /* Iterate over MIB_IPADDRTABLE or IP_ADAPTER_ADDRESSES */ for (ia_p = NULL, ip_addrs_p ? ((void *)(i = 0)) : (ia_p = ip_adaddrs_p); ip_addrs_p ? (i < ip_addrs_p->dwNumEntries) : (ia_p != NULL); ip_addrs_p ? ((void *)(i++)) : (ia_p = ia_p->Next)) { MIB_IPADDRROW *ipaddrrow_p = NULL; DWORD flags = INET_IFF_MULTICAST; DWORD index = 0; WCHAR *wname_p = NULL; MIB_IFROW ifrow; if (ip_addrs_p) { ipaddrrow_p = ip_addrs_p->table + i; index = ipaddrrow_p->dwIndex; } else { index = ia_p->IfIndex; if (ia_p->Flags & IP_ADAPTER_NO_MULTICAST) { flags &= ~INET_IFF_MULTICAST; } } index: if (! index) goto done; sys_memzero(&ifrow, sizeof(ifrow)); ifrow.dwIndex = index; if (GetIfEntry(&ifrow) != NO_ERROR) break; /* Find the interface name - first try MIB_IFROW.wzname */ if (ifrow.wszName[0] != 0) { wname_p = ifrow.wszName; } else { /* Then try IP_ADAPTER_INDEX_MAP.Name (only IPv4 adapters) */ int j; for (j = 0; j < info_p->NumAdapters; j++) { if (info_p->Adapter[j].Index == (ULONG) ifrow.dwIndex) { if (info_p->Adapter[j].Name[0] != 0) { wname_p = info_p->Adapter[j].Name; } break; } } } if (wname_p) { int len; /* Convert interface name to UTF-8 */ len = WideCharToMultiByte( CP_UTF8, 0, wname_p, -1, NULL, 0, NULL, NULL); if (! len) break; BUF_ENSURE(len); WideCharToMultiByte( CP_UTF8, 0, wname_p, -1, buf_p, len, NULL, NULL); buf_p += len; } else { /* Found no name - * use "MIB_IFROW.dwIndex: MIB_IFROW.bDescr" as name instead */ int l; l = utf8_len(ifrow.bDescr, ifrow.dwDescrLen); BUF_ENSURE(9 + l+1); buf_p += erts_sprintf( buf_p, "%lu: ", (unsigned long) ifrow.dwIndex); utf8_encode(ifrow.bDescr, ifrow.dwDescrLen, buf_p); buf_p += l; *buf_p++ = '\0'; } /* Interface flags, often make up broadcast and multicast flags */ switch (ifrow.dwType) { case IF_TYPE_ETHERNET_CSMACD: flags |= INET_IFF_BROADCAST; break; case IF_TYPE_SOFTWARE_LOOPBACK: flags |= INET_IFF_LOOPBACK; flags &= ~INET_IFF_MULTICAST; break; default: flags &= ~INET_IFF_MULTICAST; break; } if (ifrow.dwAdminStatus) { flags |= INET_IFF_UP; switch (ifrow.dwOperStatus) { case IF_OPER_STATUS_CONNECTING: flags |= INET_IFF_POINTTOPOINT; break; case IF_OPER_STATUS_CONNECTED: flags |= INET_IFF_RUNNING | INET_IFF_POINTTOPOINT; break; case IF_OPER_STATUS_OPERATIONAL: flags |= INET_IFF_RUNNING; break; } } BUF_ENSURE(1 + 4); *buf_p++ = INET_IFOPT_FLAGS; put_int32(flags, buf_p); buf_p += 4; if (ipaddrrow_p) { /* Legacy implementation through GetIpAddrTable */ struct sockaddr_in sin; /* IP Address */ sys_memzero(&sin, sizeof(sin)); sin.sin_family = AF_INET; sin.sin_addr.s_addr = ipaddrrow_p->dwAddr; BUF_ENSURE(1); /* Netmask */ SOCKADDR_TO_BUF(INET_IFOPT_ADDR, (struct sockaddr *) &sin); sin.sin_addr.s_addr = ipaddrrow_p->dwMask; BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_NETMASK, (struct sockaddr *) &sin); if (flags & INET_IFF_BROADCAST) { /* Broadcast address - fake it*/ sin.sin_addr.s_addr = ipaddrrow_p->dwAddr; sin.sin_addr.s_addr |= ~ipaddrrow_p->dwMask; BUF_ENSURE(1); SOCKADDR_TO_BUF( INET_IFOPT_BROADADDR, (struct sockaddr *) &sin); } } else { IP_ADAPTER_UNICAST_ADDRESS *p; /* IP Address(es) */ for (p = ia_p->FirstUnicastAddress; p; p = p->Next) { IP_ADAPTER_PREFIX *q; ULONG shortest_length; struct sockaddr *shortest_p, *sa_p = p->Address.lpSockaddr; BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_ADDR, sa_p); shortest_p = NULL; shortest_length = 0; for (q = ia_p->FirstPrefix; q; q = q->Next) { struct sockaddr *sp_p = q->Address.lpSockaddr; if (sa_p->sa_family != sp_p->sa_family) continue; switch (sa_p->sa_family) { case AF_INET: { struct sockaddr_in sin; DWORD sa, sp, mask; sa = ntohl((DWORD) ((struct sockaddr_in *) sa_p)->sin_addr.s_addr); sp = ntohl((DWORD) ((struct sockaddr_in *) sp_p)->sin_addr.s_addr); mask = 0xFFFFFFFF << (32 - q->PrefixLength); if ((sa & mask) != (sp & mask)) continue; if ((! shortest_p) || q->PrefixLength < shortest_length) { shortest_p = sp_p; shortest_length = q->PrefixLength; } } break; case AF_INET6: { struct sockaddr_in6 sin6; if (!eq_masked_bytes((char *) &((struct sockaddr_in6 *) sa_p)->sin6_addr, (char *) &((struct sockaddr_in6 *) sp_p)->sin6_addr, q->PrefixLength)) { continue; } if ((! shortest_p) || q->PrefixLength < shortest_length) { shortest_p = sp_p; shortest_length = q->PrefixLength; } } break; } } if (! shortest_p) { /* Found no shortest prefix */ shortest_p = sa_p; switch (shortest_p->sa_family) { case AF_INET: { /* Fall back to old classfull network addresses */ DWORD addr = ntohl(((struct sockaddr_in *)shortest_p) ->sin_addr.s_addr); if (! (addr & 0x800000)) { /* Class A */ shortest_length = 8; } else if (! (addr & 0x400000)) { /* Class B */ shortest_length = 16; } else if (! (addr & 0x200000)) { /* Class C */ shortest_length = 24; } else { shortest_length = 32; } } break; case AF_INET6: { /* Just play it safe */ shortest_length = 128; } break; } } switch (shortest_p->sa_family) { case AF_INET: { struct sockaddr_in sin; DWORD mask = 0xFFFFFFFF << (32 - shortest_length); sys_memzero(&sin, sizeof(sin)); sin.sin_family = shortest_p->sa_family; sin.sin_addr.s_addr = htonl(mask); BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_NETMASK, (struct sockaddr *) &sin); if (flags & INET_IFF_BROADCAST) { DWORD sp = ntohl((DWORD) ((struct sockaddr_in *)shortest_p) -> sin_addr.s_addr); sin.sin_addr.s_addr = htonl(sp | ~mask); BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_BROADADDR, (struct sockaddr *) &sin); } } break; case AF_INET6: { struct sockaddr_in6 sin6; sys_memzero(&sin6, sizeof(sin6)); sin6.sin6_family = shortest_p->sa_family; set_netmask_bytes((char *) &sin6.sin6_addr, 16, shortest_length); BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_NETMASK, (struct sockaddr *) &sin6); } break; } } } if (ifrow.dwPhysAddrLen) { /* Hardware Address */ BUF_ENSURE(1 + 2 + ifrow.dwPhysAddrLen); *buf_p++ = INET_IFOPT_HWADDR; put_int16(ifrow.dwPhysAddrLen, buf_p); buf_p += 2; sys_memcpy(buf_p, ifrow.bPhysAddr, ifrow.dwPhysAddrLen); buf_p += ifrow.dwPhysAddrLen; } done: /* That is all for this interface */ BUF_ENSURE(1); *buf_p++ = '\0'; if (ia_p && ia_p->Ipv6IfIndex && ia_p->Ipv6IfIndex != index) { /* Oops, there was another interface for IPv6. Possible? XXX */ index = ia_p->Ipv6IfIndex; goto index; } } if (ip_adaddrs_p) FREE(ip_adaddrs_p); if (info_p) FREE(info_p); if (ip_addrs_p) FREE(ip_addrs_p); buf_size = buf_p - buf_alloc_p; buf_alloc_p = REALLOC(buf_alloc_p, buf_size); /* buf_p is now unreliable */ *rbuf_pp = buf_alloc_p; return buf_size; # undef BUF_ENSURE } #elif defined(HAVE_GETIFADDRS) #ifdef DEBUG #define GETIFADDRS_BUFSZ (1) #else #define GETIFADDRS_BUFSZ (512) #endif static ErlDrvSSizeT inet_ctl_getifaddrs(inet_descriptor* desc_p, char **rbuf_pp, ErlDrvSizeT rsize) { struct ifaddrs *ifa_p, *ifa_free_p; ErlDrvSizeT buf_size; char *buf_p; char *buf_alloc_p; buf_size = GETIFADDRS_BUFSZ; buf_alloc_p = ALLOC(GETIFADDRS_BUFSZ); buf_p = buf_alloc_p; # define BUF_ENSURE(Size) \ do { \ int NEED_, GOT_ = buf_p - buf_alloc_p; \ NEED_ = GOT_ + (Size); \ if (NEED_ > buf_size) { \ buf_size = NEED_ + GETIFADDRS_BUFSZ; \ buf_alloc_p = REALLOC(buf_alloc_p, buf_size); \ buf_p = buf_alloc_p + GOT_; \ } \ } while (0) # define SOCKADDR_TO_BUF(opt, sa) \ do { \ if (sa) { \ char *P_; \ *buf_p++ = (opt); \ while (! (P_ = sockaddr_to_buf((sa), buf_p, \ buf_alloc_p+buf_size))) { \ int GOT_ = buf_p - buf_alloc_p; \ buf_size += GETIFADDRS_BUFSZ; \ buf_alloc_p = REALLOC(buf_alloc_p, buf_size); \ buf_p = buf_alloc_p + GOT_; \ } \ if (P_ == buf_p) { \ buf_p--; \ } else { \ buf_p = P_; \ } \ } \ } while (0) if (getifaddrs(&ifa_p) < 0) { return ctl_error(sock_errno(), rbuf_pp, rsize); } ifa_free_p = ifa_p; *buf_p++ = INET_REP_OK; for (; ifa_p; ifa_p = ifa_p->ifa_next) { int len = utf8_len(ifa_p->ifa_name, -1); BUF_ENSURE(len+1 + 1+4 + 1); utf8_encode(ifa_p->ifa_name, -1, buf_p); buf_p += len; *buf_p++ = '\0'; *buf_p++ = INET_IFOPT_FLAGS; put_int32(IFGET_FLAGS(ifa_p->ifa_flags), buf_p); buf_p += 4; if (ifa_p->ifa_addr) { if (ifa_p->ifa_addr->sa_family == AF_INET #if defined(AF_INET6) || ifa_p->ifa_addr->sa_family == AF_INET6 #endif ) { SOCKADDR_TO_BUF(INET_IFOPT_ADDR, ifa_p->ifa_addr); if (ifa_p->ifa_netmask) { BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_NETMASK, ifa_p->ifa_netmask); } if (ifa_p->ifa_dstaddr && (ifa_p->ifa_flags & IFF_POINTOPOINT)) { BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_DSTADDR, ifa_p->ifa_dstaddr); } else if (ifa_p->ifa_broadaddr && (ifa_p->ifa_flags & IFF_BROADCAST)) { BUF_ENSURE(1); SOCKADDR_TO_BUF(INET_IFOPT_BROADADDR, ifa_p->ifa_broadaddr); } } #if defined(AF_LINK) || defined(AF_PACKET) else if ( #if defined(AF_LINK) ifa_p->ifa_addr->sa_family == AF_LINK #else 0 #endif #if defined(AF_PACKET) || ifa_p->ifa_addr->sa_family == AF_PACKET #endif ) { size_t need = sockaddr_bufsz_need(ifa_p->ifa_addr); if (need > 3) { BUF_ENSURE(1 + need); SOCKADDR_TO_BUF(INET_IFOPT_HWADDR, ifa_p->ifa_addr); } } #endif } BUF_ENSURE(1); *buf_p++ = '\0'; } buf_size = buf_p - buf_alloc_p; buf_alloc_p = REALLOC(buf_alloc_p, buf_size); /* buf_p is now unreliable */ freeifaddrs(ifa_free_p); *rbuf_pp = buf_alloc_p; return buf_size; # undef BUF_ENSURE } #undef GETIFADDRS_BUFSZ #else static ErlDrvSSizeT inet_ctl_getifaddrs(inet_descriptor* desc_p, char **rbuf_pp, ErlDrvSizeT rsize) { return ctl_error(ENOTSUP, rbuf_pp, rsize); } #endif /* Per H @ Tail-f: The original code here had problems that possibly only occur if you abuse it for non-INET sockets, but anyway: a) If the getsockopt for SO_PRIORITY or IP_TOS failed, the actual requested setsockopt was never even attempted. b) If {get,set}sockopt for one of IP_TOS and SO_PRIORITY failed, but ditto for the other worked and that was actually the requested option, failure was still reported to erlang. */ #if defined(IP_TOS) && defined(SOL_IP) && defined(SO_PRIORITY) static int setopt_prio_tos_trick (int fd, int proto, int type, char* arg_ptr, int arg_sz, int propagate) { /* The relations between SO_PRIORITY, TOS and other options is not what you (or at least I) would expect...: If TOS is set after priority, priority is zeroed. If any other option is set after tos, tos might be zeroed. Therefore, save tos and priority. If something else is set, restore both after setting, if tos is set, restore only prio and if prio is set restore none... All to keep the user feeling socket options are independent. /PaN */ int tmp_ival_prio; int tmp_ival_tos; int res; int res_prio; int res_tos; SOCKLEN_T tmp_arg_sz_prio = sizeof(tmp_ival_prio); SOCKLEN_T tmp_arg_sz_tos = sizeof(tmp_ival_tos); res_prio = sock_getopt(fd, SOL_SOCKET, SO_PRIORITY, (char *) &tmp_ival_prio, &tmp_arg_sz_prio); res_tos = sock_getopt(fd, SOL_IP, IP_TOS, (char *) &tmp_ival_tos, &tmp_arg_sz_tos); res = sock_setopt(fd, proto, type, arg_ptr, arg_sz); if (res == 0) { if (type != SO_PRIORITY) { if (type != IP_TOS && res_tos == 0) { res_tos = sock_setopt(fd, SOL_IP, IP_TOS, (char *) &tmp_ival_tos, tmp_arg_sz_tos); if (propagate) res = res_tos; } if (res == 0 && res_prio == 0) { res_prio = sock_setopt(fd, SOL_SOCKET, SO_PRIORITY, (char *) &tmp_ival_prio, tmp_arg_sz_prio); if (propagate) { /* Some kernels set a SO_PRIORITY by default that you are not permitted to reset, silently ignore this error condition */ if (res_prio != 0 && sock_errno() == EPERM) { res = 0; } else { res = res_prio; } } } } } return (res); } #endif /* set socket options: ** return -1 on error ** 0 if ok ** 1 if ok force deliver of queued data */ #ifdef HAVE_SCTP static int sctp_set_opts(inet_descriptor* desc, char* ptr, int len); #endif static int inet_set_opts(inet_descriptor* desc, char* ptr, int len) { int type; int proto; int opt; struct linger li_val; #ifdef HAVE_MULTICAST_SUPPORT struct ip_mreq mreq_val; #endif int ival; char* arg_ptr; int arg_sz; enum PacketParseType old_htype = desc->htype; int old_active = desc->active; int propagate; /* Set to 1 if failure to set this option should be propagated to erlang (not all errors can be propagated for BC reasons) */ int res; #ifdef HAVE_SCTP /* SCTP sockets are treated completely separately: */ if (IS_SCTP(desc)) return sctp_set_opts(desc, ptr, len); #endif /* XXX { int i; for(i=0;i<len;++i) fprintf(stderr,"0x%02X, ", (unsigned) ptr[i]); fprintf(stderr,"\r\n");} */ while(len >= 5) { opt = *ptr++; ival = get_int32(ptr); ptr += 4; len -= 5; arg_ptr = (char*) &ival; arg_sz = sizeof(ival); proto = SOL_SOCKET; propagate = 0; switch(opt) { case INET_LOPT_HEADER: DEBUGF(("inet_set_opts(%ld): s=%d, HEADER=%d\r\n", (long)desc->port, desc->s,ival)); desc->hsz = ival; continue; case INET_LOPT_MODE: /* List or Binary: */ DEBUGF(("inet_set_opts(%ld): s=%d, MODE=%d\r\n", (long)desc->port, desc->s, ival)); desc->mode = ival; continue; case INET_LOPT_DELIVER: DEBUGF(("inet_set_opts(%ld): s=%d, DELIVER=%d\r\n", (long)desc->port, desc->s, ival)); desc->deliver = ival; continue; case INET_LOPT_BUFFER: DEBUGF(("inet_set_opts(%ld): s=%d, BUFFER=%d\r\n", (long)desc->port, desc->s, ival)); if (ival < INET_MIN_BUFFER) ival = INET_MIN_BUFFER; desc->bufsz = ival; continue; case INET_LOPT_ACTIVE: DEBUGF(("inet_set_opts(%ld): s=%d, ACTIVE=%d\r\n", (long)desc->port, desc->s, ival)); desc->active = ival; if (desc->active == INET_MULTI) { long ac = desc->active_count; Sint16 nval = get_int16(ptr); ptr += 2; len -= 2; ac += nval; if (ac > INT16_MAX || ac < INT16_MIN) return -1; desc->active_count += nval; if (desc->active_count < 0) desc->active_count = 0; if (desc->active_count == 0) { desc->active = INET_PASSIVE; packet_passive_message(desc); } } else desc->active_count = 0; if ((desc->stype == SOCK_STREAM) && (desc->active != INET_PASSIVE) && (desc->state == INET_STATE_CLOSED)) { tcp_descriptor *tdesc = (tcp_descriptor *) desc; if (tdesc->tcp_add_flags & TCP_ADDF_DELAYED_ECONNRESET) { tdesc->tcp_add_flags &= ~TCP_ADDF_DELAYED_ECONNRESET; tcp_error_message(tdesc, ECONNRESET); } tcp_closed_message(tdesc); if (desc->exitf) { driver_exit(desc->port, 0); return 0; /* Give up on this socket, descriptor lost */ } else { desc_close_read(desc); } } continue; case INET_LOPT_PACKET: DEBUGF(("inet_set_opts(%ld): s=%d, PACKET=%d\r\n", (long)desc->port, desc->s, ival)); desc->htype = ival; continue; case INET_LOPT_PACKET_SIZE: DEBUGF(("inet_set_opts(%ld): s=%d, PACKET_SIZE=%d\r\n", (long)desc->port, desc->s, ival)); desc->psize = (unsigned int)ival; continue; case INET_LOPT_EXITONCLOSE: DEBUGF(("inet_set_opts(%ld): s=%d, EXITONCLOSE=%d\r\n", (long)desc->port, desc->s, ival)); desc->exitf = ival; continue; case INET_LOPT_TCP_HIWTRMRK: if (desc->stype == SOCK_STREAM) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; if (ival < 0) ival = 0; if (tdesc->low > ival) tdesc->low = ival; tdesc->high = ival; } continue; case INET_LOPT_TCP_LOWTRMRK: if (desc->stype == SOCK_STREAM) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; if (ival < 0) ival = 0; if (tdesc->high < ival) tdesc->high = ival; tdesc->low = ival; } continue; case INET_LOPT_MSGQ_HIWTRMRK: { ErlDrvSizeT high; if (ival < ERL_DRV_BUSY_MSGQ_LIM_MIN || ERL_DRV_BUSY_MSGQ_LIM_MAX < ival) return -1; high = (ErlDrvSizeT) ival; erl_drv_busy_msgq_limits(desc->port, NULL, &high); continue; } case INET_LOPT_MSGQ_LOWTRMRK: { ErlDrvSizeT low; if (ival < ERL_DRV_BUSY_MSGQ_LIM_MIN || ERL_DRV_BUSY_MSGQ_LIM_MAX < ival) return -1; low = (ErlDrvSizeT) ival; erl_drv_busy_msgq_limits(desc->port, &low, NULL); continue; } case INET_LOPT_TCP_SEND_TIMEOUT: if (desc->stype == SOCK_STREAM) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; tdesc->send_timeout = ival; } continue; case INET_LOPT_TCP_SEND_TIMEOUT_CLOSE: if (desc->stype == SOCK_STREAM) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; tdesc->send_timeout_close = ival; } continue; case INET_LOPT_TCP_DELAY_SEND: if (desc->stype == SOCK_STREAM) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; if (ival) tdesc->tcp_add_flags |= TCP_ADDF_DELAY_SEND; else tdesc->tcp_add_flags &= ~TCP_ADDF_DELAY_SEND; } continue; #ifdef HAVE_UDP case INET_LOPT_UDP_READ_PACKETS: if (desc->stype == SOCK_DGRAM) { udp_descriptor* udesc = (udp_descriptor*) desc; if (ival <= 0) return -1; udesc->read_packets = ival; } continue; #endif #ifdef HAVE_SETNS case INET_LOPT_NETNS: /* It is annoying that ival and len are both (signed) int */ if (ival < 0) return -1; if (len < ival) return -1; if (desc->netns != NULL) FREE(desc->netns); desc->netns = ALLOC(((unsigned int) ival) + 1); memcpy(desc->netns, ptr, ival); desc->netns[ival] = '\0'; ptr += ival; len -= ival; continue; #endif case INET_LOPT_TCP_SHOW_ECONNRESET: if (desc->sprotocol == IPPROTO_TCP) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; if (ival) tdesc->tcp_add_flags |= TCP_ADDF_SHOW_ECONNRESET; else tdesc->tcp_add_flags &= ~TCP_ADDF_SHOW_ECONNRESET; } continue; case INET_LOPT_LINE_DELIM: DEBUGF(("inet_set_opts(%ld): s=%d, LINE_DELIM=%d\r\n", (long)desc->port, desc->s, ival)); desc->delimiter = (char)ival; continue; case INET_OPT_REUSEADDR: #ifdef __WIN32__ continue; /* Bjorn says */ #else type = SO_REUSEADDR; DEBUGF(("inet_set_opts(%ld): s=%d, SO_REUSEADDR=%d\r\n", (long)desc->port, desc->s,ival)); break; #endif case INET_OPT_KEEPALIVE: type = SO_KEEPALIVE; DEBUGF(("inet_set_opts(%ld): s=%d, SO_KEEPALIVE=%d\r\n", (long)desc->port, desc->s, ival)); break; case INET_OPT_DONTROUTE: type = SO_DONTROUTE; DEBUGF(("inet_set_opts(%ld): s=%d, SO_DONTROUTE=%d\r\n", (long)desc->port, desc->s, ival)); break; case INET_OPT_BROADCAST: type = SO_BROADCAST; DEBUGF(("inet_set_opts(%ld): s=%d, SO_BROADCAST=%d\r\n", (long)desc->port, desc->s,ival)); break; case INET_OPT_OOBINLINE: type = SO_OOBINLINE; DEBUGF(("inet_set_opts(%ld): s=%d, SO_OOBINLINE=%d\r\n", (long)desc->port, desc->s, ival)); break; case INET_OPT_SNDBUF: type = SO_SNDBUF; DEBUGF(("inet_set_opts(%ld): s=%d, SO_SNDBUF=%d\r\n", (long)desc->port, desc->s, ival)); break; case INET_OPT_RCVBUF: type = SO_RCVBUF; DEBUGF(("inet_set_opts(%ld): s=%d, SO_RCVBUF=%d\r\n", (long)desc->port, desc->s, ival)); break; case INET_OPT_LINGER: type = SO_LINGER; if (len < 4) return -1; li_val.l_onoff = ival; li_val.l_linger = get_int32(ptr); ptr += 4; len -= 4; arg_ptr = (char*) &li_val; arg_sz = sizeof(li_val); DEBUGF(("inet_set_opts(%ld): s=%d, SO_LINGER=%d,%d", (long)desc->port, desc->s, li_val.l_onoff,li_val.l_linger)); if (desc->sprotocol == IPPROTO_TCP) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; if (li_val.l_onoff && li_val.l_linger == 0) tdesc->tcp_add_flags |= TCP_ADDF_LINGER_ZERO; else tdesc->tcp_add_flags &= ~TCP_ADDF_LINGER_ZERO; } break; case INET_OPT_PRIORITY: #ifdef SO_PRIORITY type = SO_PRIORITY; propagate = 1; /* We do want to know if this fails */ DEBUGF(("inet_set_opts(%ld): s=%d, SO_PRIORITY=%d\r\n", (long)desc->port, desc->s, ival)); break; #else continue; #endif case INET_OPT_TOS: #if defined(IP_TOS) && defined(SOL_IP) proto = SOL_IP; type = IP_TOS; propagate = 1; DEBUGF(("inet_set_opts(%ld): s=%d, IP_TOS=%d\r\n", (long)desc->port, desc->s, ival)); break; #else continue; #endif #if defined(IPV6_TCLASS) && defined(SOL_IPV6) case INET_OPT_TCLASS: proto = SOL_IPV6; type = IPV6_TCLASS; propagate = 1; DEBUGF(("inet_set_opts(%ld): s=%d, IPV6_TCLASS=%d\r\n", (long)desc->port, desc->s, ival)); break; #endif case TCP_OPT_NODELAY: proto = IPPROTO_TCP; type = TCP_NODELAY; DEBUGF(("inet_set_opts(%ld): s=%d, TCP_NODELAY=%d\r\n", (long)desc->port, desc->s, ival)); break; #ifdef HAVE_MULTICAST_SUPPORT case UDP_OPT_MULTICAST_TTL: proto = IPPROTO_IP; type = IP_MULTICAST_TTL; DEBUGF(("inet_set_opts(%ld): s=%d, IP_MULTICAST_TTL=%d\r\n", (long)desc->port,desc->s,ival)); break; case UDP_OPT_MULTICAST_LOOP: proto = IPPROTO_IP; type = IP_MULTICAST_LOOP; DEBUGF(("inet_set_opts(%ld): s=%d, IP_MULTICAST_LOOP=%d\r\n", (long)desc->port,desc->s,ival)); break; case UDP_OPT_MULTICAST_IF: proto = IPPROTO_IP; type = IP_MULTICAST_IF; DEBUGF(("inet_set_opts(%ld): s=%d, IP_MULTICAST_IF=%x\r\n", (long)desc->port, desc->s, ival)); ival = sock_htonl(ival); break; case UDP_OPT_ADD_MEMBERSHIP: proto = IPPROTO_IP; type = IP_ADD_MEMBERSHIP; DEBUGF(("inet_set_opts(%ld): s=%d, IP_ADD_MEMBERSHIP=%d\r\n", (long)desc->port, desc->s,ival)); goto L_set_mreq; case UDP_OPT_DROP_MEMBERSHIP: proto = IPPROTO_IP; type = IP_DROP_MEMBERSHIP; DEBUGF(("inet_set_opts(%ld): s=%d, IP_DROP_MEMBERSHIP=%x\r\n", (long)desc->port, desc->s, ival)); L_set_mreq: mreq_val.imr_multiaddr.s_addr = sock_htonl(ival); ival = get_int32(ptr); mreq_val.imr_interface.s_addr = sock_htonl(ival); ptr += 4; len -= 4; arg_ptr = (char*)&mreq_val; arg_sz = sizeof(mreq_val); break; #endif /* HAVE_MULTICAST_SUPPORT */ case INET_OPT_IPV6_V6ONLY: #if HAVE_DECL_IPV6_V6ONLY proto = IPPROTO_IPV6; type = IPV6_V6ONLY; propagate = 1; DEBUGF(("inet_set_opts(%ld): s=%d, IPV6_V6ONLY=%d\r\n", (long)desc->port, desc->s, ival)); break; #elif defined(__WIN32__) && defined(HAVE_IN6) && defined(AF_INET6) /* Fake a'la OpenBSD; set to 'true' is fine but 'false' invalid. */ if (ival != 0) continue; else return -1; break; #else continue; #endif case INET_OPT_RAW: if (len < 8) { return -1; } proto = ival; type = get_int32(ptr); ptr += 4; arg_sz = get_int32(ptr); ptr += 4; len -= 8; if (len < arg_sz) { return -1; } arg_ptr = ptr; ptr += arg_sz; len -= arg_sz; break; default: return -1; } #if defined(IP_TOS) && defined(SOL_IP) && defined(SO_PRIORITY) res = setopt_prio_tos_trick (desc->s, proto, type, arg_ptr, arg_sz, propagate); #else res = sock_setopt (desc->s, proto, type, arg_ptr, arg_sz); #endif if (propagate && res != 0) { return -1; } DEBUGF(("inet_set_opts(%ld): s=%d returned %d\r\n", (long)desc->port, desc->s, res)); if (type == SO_RCVBUF) { /* make sure we have desc->bufsz >= SO_RCVBUF */ if (ival > desc->bufsz) desc->bufsz = ival; } } if ( ((desc->stype == SOCK_STREAM) && IS_CONNECTED(desc)) || ((desc->stype == SOCK_DGRAM) && IS_OPEN(desc))) { if (desc->active != old_active) sock_select(desc, (FD_READ|FD_CLOSE), (desc->active>0)); /* XXX: UDP sockets could also trigger immediate read here NIY */ if ((desc->stype==SOCK_STREAM) && desc->active) { if (!old_active || (desc->htype != old_htype)) { /* passive => active change OR header type change in active mode */ /* Return > 1 if only active changed to INET_ONCE -> direct read if header type is unchanged. */ /* XXX fprintf(stderr,"desc->htype == %d, old_htype == %d, desc->active == %d, old_active == %d\r\n",(int)desc->htype, (int) old_htype, (int) desc->active, (int) old_active );*/ return 1+(desc->htype == old_htype && (desc->active == INET_ONCE || desc->active == INET_MULTI)); } return 0; } } return 0; } #ifdef HAVE_SCTP /* "sctp_get_initmsg": ** Used by both "send*" and "setsockopt". Gets the 4 fields of "sctp_initmsg" ** from the input buffer: */ #define SCTP_GET_INITMSG_LEN (4*2) static char* sctp_get_initmsg(struct sctp_initmsg* ini, char* curr) { ini->sinit_num_ostreams = get_int16 (curr); curr += 2; ini->sinit_max_instreams = get_int16 (curr); curr += 2; ini->sinit_max_attempts = get_int16 (curr); curr += 2; ini->sinit_max_init_timeo = get_int16 (curr); curr += 2; return curr; } /* "sctp_get_sendparams": ** Parses (from the command buffer) the 6 user-sprcified parms of ** "sctp_sndrcvinfo": ** stream(u16), flags(u16), ppid(u32), context(u32), ** timetoleave(u32), assoc_id ** Is used by both "send*" and "setsockopt": */ #define SCTP_GET_SENDPARAMS_LEN (2*2 + 3*4 + ASSOC_ID_LEN) static char* sctp_get_sendparams (struct sctp_sndrcvinfo* sri, char* curr) { int eflags; int cflags; sri->sinfo_stream = get_int16(curr); curr += 2; sri->sinfo_ssn = 0; /* The "flags" are already ORed at the Erlang side, here we reconstruct the real SCTP flags: */ eflags = get_int16(curr); curr += 2; cflags = 0; if (eflags & SCTP_FLAG_UNORDERED) cflags |= SCTP_UNORDERED; if (eflags & SCTP_FLAG_ADDR_OVER) cflags |= SCTP_ADDR_OVER; if (eflags & SCTP_FLAG_ABORT) cflags |= SCTP_ABORT; if (eflags & SCTP_FLAG_EOF) cflags |= SCTP_EOF; sri->sinfo_flags = cflags; sri->sinfo_ppid = sock_htonl(get_int32(curr)); curr += 4; sri->sinfo_context = get_int32(curr); curr += 4; sri->sinfo_timetolive = get_int32(curr); curr += 4; sri->sinfo_tsn = 0; sri->sinfo_cumtsn = 0; sri->sinfo_assoc_id = GET_ASSOC_ID (curr); curr += ASSOC_ID_LEN; return curr; } /* Set SCTP options: ** return -1 on error ** 0 if ok ** NB: unlike inet_set_opts(), we don't have an active mode here, so there is no ** mode change which could force data delivery on setting an option. ** Arg: "ptr": [(erlang_encoded_opt(u8), value(...)), ...]; thus, multiple opts ** can be set at a time. */ static int sctp_set_opts(inet_descriptor* desc, char* ptr, int len) { # define CHKLEN(Ptr, Len) \ do { \ if ((Ptr) + (Len) > ptr + len) return -1; \ } while (0) char * curr = ptr; int proto, type, res; /* The following union is used to hold any arg to "setsockopt": */ union opts_union { int ival; struct sctp_rtoinfo rtoi; struct sctp_assocparams ap; struct sctp_initmsg im; struct linger lin; struct sctp_setpeerprim prim; struct sctp_setadaptation ad; struct sctp_paddrparams pap; struct sctp_sndrcvinfo sri; struct sctp_event_subscribe es; # ifdef SCTP_DELAYED_ACK_TIME struct sctp_assoc_value av; /* Not in SOLARIS10 */ # endif } arg; char * arg_ptr = NULL; int arg_sz = 0; int old_active = desc->active; while (curr < ptr + len) { /* Get the Erlang-encoded option type -- always 1 byte: */ int eopt = *curr; curr++; /* Get the option value. XXX: The condition (curr < ptr + len) does not preclude us from reading from beyond the buffer end, if the Erlang part of the driver specifies its input wrongly! */ CHKLEN(curr, 4); /* All options need at least 4 bytes */ switch(eopt) { /* Local INET options: */ case INET_LOPT_BUFFER: desc->bufsz = get_int32(curr); curr += 4; if (desc->bufsz < INET_MIN_BUFFER) desc->bufsz = INET_MIN_BUFFER; res = 0; /* This does not affect the kernel buffer size */ continue; case INET_LOPT_MODE: desc->mode = get_int32(curr); curr += 4; res = 0; continue; case INET_LOPT_ACTIVE: desc->active = get_int32(curr); curr += 4; if (desc->active == INET_MULTI) { long ac = desc->active_count; Sint16 nval = get_int16(curr); curr += 2; ac += nval; if (ac > INT16_MAX || ac < INT16_MIN) return -1; desc->active_count += nval; if (desc->active_count < 0) desc->active_count = 0; if (desc->active_count == 0) { desc->active = INET_PASSIVE; packet_passive_message(desc); } } else desc->active_count = 0; res = 0; continue; #ifdef HAVE_SETNS case INET_LOPT_NETNS: { size_t ns_len; ns_len = get_int32(curr); curr += 4; CHKLEN(curr, ns_len); if (desc->netns != NULL) FREE(desc->netns); desc->netns = ALLOC(ns_len + 1); memcpy(desc->netns, curr, ns_len); desc->netns[ns_len] = '\0'; curr += ns_len; } continue; #endif /* SCTP options and applicable generic INET options: */ case SCTP_OPT_RTOINFO: { CHKLEN(curr, ASSOC_ID_LEN + 3*4); arg.rtoi.srto_assoc_id = GET_ASSOC_ID(curr); curr += ASSOC_ID_LEN; arg.rtoi.srto_initial = get_int32 (curr); curr += 4; arg.rtoi.srto_max = get_int32 (curr); curr += 4; arg.rtoi.srto_min = get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_RTOINFO; arg_ptr = (char*) (&arg.rtoi); arg_sz = sizeof ( arg.rtoi); break; } case SCTP_OPT_ASSOCINFO: { CHKLEN(curr, ASSOC_ID_LEN + 2*2 + 3*4); arg.ap.sasoc_assoc_id = GET_ASSOC_ID(curr); curr += ASSOC_ID_LEN; arg.ap.sasoc_asocmaxrxt = get_int16 (curr); curr += 2; arg.ap.sasoc_number_peer_destinations = get_int16 (curr); curr += 2; arg.ap.sasoc_peer_rwnd = get_int32 (curr); curr += 4; arg.ap.sasoc_local_rwnd = get_int32 (curr); curr += 4; arg.ap.sasoc_cookie_life = get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_ASSOCINFO; arg_ptr = (char*) (&arg.ap); arg_sz = sizeof ( arg.ap); break; } case SCTP_OPT_INITMSG: { CHKLEN(curr, SCTP_GET_INITMSG_LEN); curr = sctp_get_initmsg (&arg.im, curr); proto = IPPROTO_SCTP; type = SCTP_INITMSG; arg_ptr = (char*) (&arg.im); arg_sz = sizeof ( arg.im); break; } case INET_OPT_LINGER: { CHKLEN(curr, 2*4); arg.lin.l_onoff = get_int32 (curr); curr += 4; arg.lin.l_linger = get_int32 (curr); curr += 4; proto = SOL_SOCKET; type = SO_LINGER; arg_ptr = (char*) (&arg.lin); arg_sz = sizeof ( arg.lin); break; } case SCTP_OPT_NODELAY: { arg.ival= get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_NODELAY; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case INET_OPT_RCVBUF: { arg.ival= get_int32 (curr); curr += 4; proto = SOL_SOCKET; type = SO_RCVBUF; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); /* Adjust the size of the user-level recv buffer, so it's not smaller than the kernel one: */ if (desc->bufsz <= arg.ival) desc->bufsz = arg.ival; break; } case INET_OPT_SNDBUF: { arg.ival= get_int32 (curr); curr += 4; proto = SOL_SOCKET; type = SO_SNDBUF; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); /* Adjust the size of the user-level recv buffer, so it's not smaller than the kernel one: */ if (desc->bufsz <= arg.ival) desc->bufsz = arg.ival; break; } case INET_OPT_REUSEADDR: { arg.ival= get_int32 (curr); curr += 4; proto = SOL_SOCKET; type = SO_REUSEADDR; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case INET_OPT_DONTROUTE: { arg.ival= get_int32 (curr); curr += 4; proto = SOL_SOCKET; type = SO_DONTROUTE; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case INET_OPT_PRIORITY: # ifdef SO_PRIORITY { arg.ival= get_int32 (curr); curr += 4; proto = SOL_SOCKET; type = SO_PRIORITY; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } # else continue; /* Option not supported -- ignore it */ # endif case INET_OPT_TOS: # if defined(IP_TOS) && defined(SOL_IP) { arg.ival= get_int32 (curr); curr += 4; proto = SOL_IP; type = IP_TOS; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } # else continue; /* Option not supported -- ignore it */ # endif # if defined(IPV6_TCLASS) && defined(SOL_IPV6) case INET_OPT_TCLASS: { arg.ival= get_int32 (curr); curr += 4; proto = SOL_IPV6; type = IPV6_TCLASS; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } # endif case INET_OPT_IPV6_V6ONLY: # if HAVE_DECL_IPV6_V6ONLY { arg.ival= get_int32 (curr); curr += 4; proto = IPPROTO_IPV6; type = IPV6_V6ONLY; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } # elif defined(__WIN32__) && defined(HAVE_IN6) && defined(AF_INET6) # error Here is a fix for Win IPv6 SCTP missing # else continue; /* Option not supported -- ignore it */ # endif case SCTP_OPT_AUTOCLOSE: { arg.ival= get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_AUTOCLOSE; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case SCTP_OPT_DISABLE_FRAGMENTS: { arg.ival= get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_DISABLE_FRAGMENTS; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case SCTP_OPT_I_WANT_MAPPED_V4_ADDR: { arg.ival= get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_I_WANT_MAPPED_V4_ADDR; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case SCTP_OPT_MAXSEG: { arg.ival= get_int32 (curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_MAXSEG; arg_ptr = (char*) (&arg.ival); arg_sz = sizeof ( arg.ival); break; } case SCTP_OPT_PRIMARY_ADDR: case SCTP_OPT_SET_PEER_PRIMARY_ADDR: { ErlDrvSizeT alen; CHKLEN(curr, ASSOC_ID_LEN); /* XXX: These 2 opts have isomorphic value data structures, "sctp_setpeerprim" and "sctp_prim" (in Solaris 10, the latter is called "sctp_setprim"), so we grouped them together: */ arg.prim.sspp_assoc_id = GET_ASSOC_ID(curr); curr += ASSOC_ID_LEN; /* Fill in "arg.prim.sspp_addr": */ alen = ptr + len - curr; if (inet_set_faddress (desc->sfamily, (inet_address*) (&arg.prim.sspp_addr), &curr, &alen) != NULL) return -1; proto = IPPROTO_SCTP; if (eopt == SCTP_OPT_PRIMARY_ADDR) type = SCTP_PRIMARY_ADDR; else type = SCTP_SET_PEER_PRIMARY_ADDR; arg_ptr = (char*) (&arg.prim); arg_sz = sizeof ( arg.prim); break; } case SCTP_OPT_ADAPTATION_LAYER: { /* XXX: do we need to convert the Ind into network byte order??? */ arg.ad.ssb_adaptation_ind = sock_htonl (get_int32(curr)); curr += 4; proto = IPPROTO_SCTP; type = SCTP_ADAPTATION_LAYER; arg_ptr = (char*) (&arg.ad); arg_sz = sizeof ( arg.ad); break; } case SCTP_OPT_PEER_ADDR_PARAMS: { ErlDrvSizeT alen; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_FLAGS int eflags, cflags, hb_enable, hb_disable, pmtud_enable, pmtud_disable; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY int sackdelay_enable, sackdelay_disable; # endif # endif CHKLEN(curr, ASSOC_ID_LEN); arg.pap.spp_assoc_id = GET_ASSOC_ID(curr); curr += ASSOC_ID_LEN; /* Fill in "pap.spp_address": */ alen = ptr + len - curr; if (inet_set_faddress (desc->sfamily, (inet_address*) (&arg.pap.spp_address), &curr, &alen) != NULL) return -1; CHKLEN(curr, 4 + 2 + 3*4); arg.pap.spp_hbinterval = get_int32(curr); curr += 4; arg.pap.spp_pathmaxrxt = get_int16(curr); curr += 2; /* The following are missing in Solaris 10: */ # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_PATHMTU arg.pap.spp_pathmtu = get_int32(curr); # endif curr += 4; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY arg.pap.spp_sackdelay = get_int32(curr); # endif curr += 4; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_FLAGS /* Now re-construct the flags: */ eflags = get_int32(curr); cflags = 0; hb_enable = eflags & SCTP_FLAG_HB_ENABLE; hb_disable = eflags & SCTP_FLAG_HB_DISABLE; if (hb_enable && hb_disable) return -1; if (hb_enable) cflags |= SPP_HB_ENABLE; if (hb_disable) cflags |= SPP_HB_DISABLE; if (eflags & SCTP_FLAG_HB_DEMAND) cflags |= SPP_HB_DEMAND; pmtud_enable = eflags & SCTP_FLAG_PMTUD_ENABLE; pmtud_disable = eflags & SCTP_FLAG_PMTUD_DISABLE; if (pmtud_enable && pmtud_disable) return -1; if (pmtud_enable) cflags |= SPP_PMTUD_ENABLE; if (pmtud_disable) cflags |= SPP_PMTUD_DISABLE; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY /* The followings are missing in FreeBSD 7.1 */ sackdelay_enable =eflags& SCTP_FLAG_SACDELAY_ENABLE; sackdelay_disable=eflags& SCTP_FLAG_SACDELAY_DISABLE; if (sackdelay_enable && sackdelay_disable) return -1; if (sackdelay_enable) cflags |= SPP_SACKDELAY_ENABLE; if (sackdelay_disable) cflags |= SPP_SACKDELAY_DISABLE; # endif arg.pap.spp_flags = cflags; # endif curr += 4; proto = IPPROTO_SCTP; type = SCTP_PEER_ADDR_PARAMS; arg_ptr = (char*) (&arg.pap); arg_sz = sizeof ( arg.pap); break; } case SCTP_OPT_DEFAULT_SEND_PARAM: { CHKLEN(curr, SCTP_GET_SENDPARAMS_LEN); curr = sctp_get_sendparams (&arg.sri, curr); proto = IPPROTO_SCTP; type = SCTP_DEFAULT_SEND_PARAM; arg_ptr = (char*) (&arg.sri); arg_sz = sizeof ( arg.sri); VALGRIND_MAKE_MEM_DEFINED(arg_ptr, arg_sz); /*suppress "uninitialised bytes"*/ break; } case SCTP_OPT_EVENTS: { CHKLEN(curr, 9); /* We do not support "sctp_authentication_event" -- it is not implemented in Linux Kernel SCTP anyway. Just in case if the above structure has more fields than we support, zero it out -- the extraneous events will NOT be used: */ memset (&arg.es, 0, sizeof(arg.es)); /* The input "buf" must contain the full definition of all the supported event fields, 1 byte per each, as each event is either explicitly subscribed or cleared: */ arg.es.sctp_data_io_event = get_int8(curr); curr++; arg.es.sctp_association_event = get_int8(curr); curr++; arg.es.sctp_address_event = get_int8(curr); curr++; arg.es.sctp_send_failure_event = get_int8(curr); curr++; arg.es.sctp_peer_error_event = get_int8(curr); curr++; arg.es.sctp_shutdown_event = get_int8(curr); curr++; arg.es.sctp_partial_delivery_event = get_int8(curr); curr++; arg.es.sctp_adaptation_layer_event = get_int8(curr); curr++; /* sctp_authentication_event not implemented */ curr++; proto = IPPROTO_SCTP; type = SCTP_EVENTS; arg_ptr = (char*) (&arg.es); arg_sz = sizeof ( arg.es); break; } /* The following is not available on Solaris 10: */ # ifdef SCTP_DELAYED_ACK_TIME case SCTP_OPT_DELAYED_ACK_TIME: { CHKLEN(curr, ASSOC_ID_LEN + 4); arg.av.assoc_id = GET_ASSOC_ID(curr); curr += ASSOC_ID_LEN; arg.av.assoc_value = get_int32(curr); curr += 4; proto = IPPROTO_SCTP; type = SCTP_DELAYED_ACK_TIME; arg_ptr = (char*) (&arg.av); arg_sz = sizeof ( arg.av); break; } # endif default: /* XXX: No more supported SCTP options. In particular, authentica- tion options (SCTP_AUTH_CHUNK, SCTP_AUTH_KEY, SCTP_PEER_AUTH_ CHUNKS, SCTP_LOCAL_AUTH_CHUNKS, SCTP_AUTH_SETKEY_ACTIVE) are not yet implemented in the Linux kernel, hence not supported here. Also not supported are SCTP_HMAC_IDENT, as well as any "generic" options except "INET_LOPT_MODE". Raise an error: */ return -1; } #if defined(IP_TOS) && defined(SOL_IP) && defined(SO_PRIORITY) res = setopt_prio_tos_trick (desc->s, proto, type, arg_ptr, arg_sz, 1); #else res = sock_setopt (desc->s, proto, type, arg_ptr, arg_sz); #endif /* The return values of "sock_setopt" can only be 0 or -1: */ ASSERT(res == 0 || res == -1); if (res == -1) { /* Got an error, DO NOT continue with other options. However, on Solaris 10, we DO allow SO_SNDBUF and SO_RCVBUF to fail, assu- min that the default kernel versions are good enough: */ # ifdef SOLARIS10 if (type != SO_SNDBUF && type != SO_RCVBUF) # endif return res; } } /* If we got here, all "sock_setopt"s above were successful: */ if (IS_OPEN(desc) && desc->active != old_active) { sock_select(desc, (FD_READ|FD_CLOSE), (desc->active > 0)); } return 0; # undef CHKLEN } #endif /* HAVE_SCTP */ /* load all option values into the buf and reply ** return total length of reply filled into ptr ** ptr should point to a buffer with 9*len +1 to be safe!! */ static ErlDrvSSizeT inet_fill_opts(inet_descriptor* desc, char* buf, ErlDrvSizeT len, char** dest, ErlDrvSizeT destlen) { int type; int proto; int opt; struct linger li_val; int ival; char* arg_ptr; unsigned int arg_sz; char *ptr = NULL; ErlDrvSizeT dest_used = 0; ErlDrvSizeT dest_allocated = destlen; char *orig_dest = *dest; /* Ptr is a name parameter */ #define RETURN_ERROR() \ do { \ if (dest_allocated > destlen) { \ FREE(*dest); \ *dest = orig_dest; \ } \ return -1; \ } while(0) #define PLACE_FOR(Size,Ptr) \ do { \ ErlDrvSizeT need = dest_used + (Size); \ if (need > INET_MAX_OPT_BUFFER) { \ RETURN_ERROR(); \ } \ if (need > dest_allocated) { \ char *new_buffer; \ if (dest_allocated == destlen) { \ new_buffer = ALLOC((dest_allocated = need + 10)); \ memcpy(new_buffer,*dest,dest_used); \ } else { \ new_buffer = REALLOC(*dest, (dest_allocated = need + 10)); \ } \ *dest = new_buffer; \ } \ (Ptr) = (*dest) + dest_used; \ dest_used = need; \ } while (0) /* Ptr is a name parameter */ #define TRUNCATE_TO(Size,Ptr) \ do { \ ErlDrvSizeT new_need = ((Ptr) - (*dest)) + (Size); \ if (new_need > dest_used) { \ erts_exit(ERTS_ERROR_EXIT,"Internal error in inet_drv, " \ "miscalculated buffer size"); \ } \ dest_used = new_need; \ } while(0) PLACE_FOR(1,ptr); *ptr = INET_REP_OK; while(len--) { opt = *buf++; proto = SOL_SOCKET; ival = 0; /* Windows Vista needs this (only writes part of it) */ arg_sz = sizeof(ival); arg_ptr = (char*) &ival; PLACE_FOR(5,ptr); switch(opt) { case INET_LOPT_BUFFER: *ptr++ = opt; put_int32(desc->bufsz, ptr); continue; case INET_LOPT_HEADER: *ptr++ = opt; put_int32(desc->hsz, ptr); continue; case INET_LOPT_MODE: *ptr++ = opt; put_int32(desc->mode, ptr); continue; case INET_LOPT_DELIVER: *ptr++ = opt; put_int32(desc->deliver, ptr); continue; case INET_LOPT_ACTIVE: *ptr++ = opt; put_int32(desc->active, ptr); if (desc->active == INET_MULTI) { PLACE_FOR(2,ptr); put_int16(desc->active_count, ptr); ptr += 2; } continue; case INET_LOPT_PACKET: *ptr++ = opt; put_int32(desc->htype, ptr); continue; case INET_LOPT_PACKET_SIZE: *ptr++ = opt; put_int32(desc->psize, ptr); continue; case INET_LOPT_EXITONCLOSE: *ptr++ = opt; put_int32(desc->exitf, ptr); continue; case INET_LOPT_TCP_HIWTRMRK: if (desc->stype == SOCK_STREAM) { *ptr++ = opt; ival = ((tcp_descriptor*)desc)->high; put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; case INET_LOPT_TCP_LOWTRMRK: if (desc->stype == SOCK_STREAM) { *ptr++ = opt; ival = ((tcp_descriptor*)desc)->low; put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; case INET_LOPT_MSGQ_HIWTRMRK: { ErlDrvSizeT high = ERL_DRV_BUSY_MSGQ_READ_ONLY; *ptr++ = opt; erl_drv_busy_msgq_limits(desc->port, NULL, &high); ival = high > INT_MAX ? INT_MAX : (int) high; put_int32(ival, ptr); continue; } case INET_LOPT_MSGQ_LOWTRMRK: { ErlDrvSizeT low = ERL_DRV_BUSY_MSGQ_READ_ONLY; *ptr++ = opt; erl_drv_busy_msgq_limits(desc->port, &low, NULL); ival = low > INT_MAX ? INT_MAX : (int) low; put_int32(ival, ptr); continue; } case INET_LOPT_TCP_SEND_TIMEOUT: if (desc->stype == SOCK_STREAM) { *ptr++ = opt; ival = ((tcp_descriptor*)desc)->send_timeout; put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; case INET_LOPT_TCP_SEND_TIMEOUT_CLOSE: if (desc->stype == SOCK_STREAM) { *ptr++ = opt; ival = ((tcp_descriptor*)desc)->send_timeout_close; put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; case INET_LOPT_TCP_DELAY_SEND: if (desc->stype == SOCK_STREAM) { *ptr++ = opt; ival = !!(((tcp_descriptor*)desc)->tcp_add_flags & TCP_ADDF_DELAY_SEND); put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; #ifdef HAVE_UDP case INET_LOPT_UDP_READ_PACKETS: if (desc->stype == SOCK_DGRAM) { *ptr++ = opt; ival = ((udp_descriptor*)desc)->read_packets; put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; #endif #ifdef HAVE_SETNS case INET_LOPT_NETNS: if (desc->netns != NULL) { size_t netns_len; netns_len = strlen(desc->netns); *ptr++ = opt; put_int32(netns_len, ptr); PLACE_FOR(netns_len, ptr); memcpy(ptr, desc->netns, netns_len); ptr += netns_len; } else { TRUNCATE_TO(0,ptr); } continue; #endif case INET_LOPT_TCP_SHOW_ECONNRESET: if (desc->sprotocol == IPPROTO_TCP) { tcp_descriptor* tdesc = (tcp_descriptor*) desc; *ptr++ = opt; ival = !!(tdesc->tcp_add_flags & TCP_ADDF_SHOW_ECONNRESET); put_int32(ival, ptr); } else { TRUNCATE_TO(0,ptr); } continue; case INET_OPT_PRIORITY: #ifdef SO_PRIORITY type = SO_PRIORITY; break; #else *ptr++ = opt; put_int32(0, ptr); continue; #endif case INET_OPT_TOS: #if defined(IP_TOS) && defined(SOL_IP) proto = SOL_IP; type = IP_TOS; break; #else *ptr++ = opt; put_int32(0, ptr); continue; #endif case INET_OPT_TCLASS: #if defined(IPV6_TCLASS) && defined(SOL_IPV6) proto = SOL_IPV6; type = IPV6_TCLASS; break; #else TRUNCATE_TO(0,ptr); continue; #endif case INET_OPT_REUSEADDR: type = SO_REUSEADDR; break; case INET_OPT_KEEPALIVE: type = SO_KEEPALIVE; break; case INET_OPT_DONTROUTE: type = SO_DONTROUTE; break; case INET_OPT_BROADCAST: type = SO_BROADCAST; break; case INET_OPT_OOBINLINE: type = SO_OOBINLINE; break; case INET_OPT_SNDBUF: type = SO_SNDBUF; break; case INET_OPT_RCVBUF: type = SO_RCVBUF; break; case TCP_OPT_NODELAY: proto = IPPROTO_TCP; type = TCP_NODELAY; break; #ifdef HAVE_MULTICAST_SUPPORT case UDP_OPT_MULTICAST_TTL: proto = IPPROTO_IP; type = IP_MULTICAST_TTL; break; case UDP_OPT_MULTICAST_LOOP: proto = IPPROTO_IP; type = IP_MULTICAST_LOOP; break; case UDP_OPT_MULTICAST_IF: proto = IPPROTO_IP; type = IP_MULTICAST_IF; break; case INET_OPT_LINGER: arg_sz = sizeof(li_val); sys_memzero((void *) &li_val, sizeof(li_val)); arg_ptr = (char*) &li_val; type = SO_LINGER; break; #endif /* HAVE_MULTICAST_SUPPORT */ case INET_OPT_IPV6_V6ONLY: #if HAVE_DECL_IPV6_V6ONLY proto = IPPROTO_IPV6; type = IPV6_V6ONLY; break; #elif defined(__WIN32__) && defined(HAVE_IN6) && defined(AF_INET6) /* Fake reading 'true' */ *ptr++ = opt; put_int32(1, ptr); ptr += 4; continue; #else TRUNCATE_TO(0,ptr); continue; /* skip - no result */ #endif case INET_OPT_RAW: { int data_provided; /* Raw options are icky, handle directly... */ if (len < 13) { RETURN_ERROR(); } len -= 13; proto = get_int32(buf); buf += 4; type = get_int32(buf); buf += 4; data_provided = (int) *buf++; arg_sz = get_int32(buf); if (arg_sz > INET_MAX_OPT_BUFFER) { RETURN_ERROR(); } buf += 4; TRUNCATE_TO(0,ptr); PLACE_FOR(13 + arg_sz,ptr); arg_ptr = ptr + 13; if (data_provided) { if (len < arg_sz) { RETURN_ERROR(); } memcpy(arg_ptr,buf,arg_sz); buf += arg_sz; len -= arg_sz; } if (IS_SOCKET_ERROR(sock_getopt(desc->s,proto,type, arg_ptr,&arg_sz))) { TRUNCATE_TO(0,ptr); continue; } TRUNCATE_TO(arg_sz + 13,ptr); *ptr++ = opt; put_int32(proto,ptr); ptr += 4; put_int32(type,ptr); ptr += 4; put_int32(arg_sz,ptr); continue; } default: RETURN_ERROR(); } /* We have 5 bytes allocated to ptr */ if (IS_SOCKET_ERROR(sock_getopt(desc->s,proto,type,arg_ptr,&arg_sz))) { TRUNCATE_TO(0,ptr); continue; } *ptr++ = opt; if (arg_ptr == (char*)&ival) { put_int32(ival, ptr); } else { put_int32(((Uint32) li_val.l_onoff), ptr); PLACE_FOR(4,ptr); put_int32(((Uint32) li_val.l_linger), ptr); } } return (dest_used); #undef PLACE_FOR #undef TRUNCATE_TO #undef RETURN_ERROR } #ifdef HAVE_SCTP #define LOAD_PADDRINFO_CNT \ (2*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + LOAD_INET_GET_ADDRESS_CNT + \ 4*LOAD_INT_CNT + LOAD_TUPLE_CNT) static int load_paddrinfo (ErlDrvTermData * spec, int i, inet_descriptor* desc, struct sctp_paddrinfo* pai) { i = LOAD_ATOM (spec, i, am_sctp_paddrinfo); i = LOAD_ASSOC_ID (spec, i, pai->spinfo_assoc_id); i = load_inet_get_address(spec, i, desc, &pai->spinfo_address); switch(pai->spinfo_state) { case SCTP_ACTIVE: i = LOAD_ATOM (spec, i, am_active); break; case SCTP_INACTIVE: i = LOAD_ATOM (spec, i, am_inactive); break; # if HAVE_DECL_SCTP_UNCONFIRMED case SCTP_UNCONFIRMED: i = LOAD_ATOM (spec, i, am_unconfirmed); break; # endif default: i = LOAD_ATOM (spec, i, am_undefined); } i = LOAD_INT (spec, i, pai->spinfo_cwnd); i = LOAD_INT (spec, i, pai->spinfo_srtt); i = LOAD_INT (spec, i, pai->spinfo_rto ); i = LOAD_INT (spec, i, pai->spinfo_mtu ); /* Close up the record: */ i = LOAD_TUPLE (spec, i, 8); return i; } /* ** "sctp_fill_opts": Returns {ok, Results}, or an error: */ static ErlDrvSSizeT sctp_fill_opts(inet_descriptor* desc, char* buf, ErlDrvSizeT buflen, char** dest, ErlDrvSizeT destlen) { /* In contrast to the generic "inet_fill_opts", the output here is represented by tuples/records, which are formed in the "spec": */ ErlDrvTermData *spec; int i = 0; int length = 0; /* Number of result list entries */ int spec_allocated = PACKET_ERL_DRV_TERM_DATA_LEN; spec = ALLOC(sizeof(* spec) * spec_allocated); # define RETURN_ERROR(Spec, Errno) \ do { \ FREE(Spec); \ return (Errno); \ } while(0) /* Spec is a name parmeter */ # define PLACE_FOR(Spec, Index, N) \ do { \ int need; \ if ((Index) > spec_allocated) { \ erts_exit(ERTS_ERROR_EXIT,"Internal error in inet_drv, " \ "miscalculated buffer size"); \ } \ need = (Index) + (N); \ if (need > INET_MAX_OPT_BUFFER/sizeof(ErlDrvTermData)) {\ RETURN_ERROR((Spec), -ENOMEM); \ } \ if (need > spec_allocated) { \ (Spec) = REALLOC((Spec), \ sizeof(* (Spec)) \ * (spec_allocated = need + 20)); \ } \ } while (0) PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_PORT_CNT); i = LOAD_ATOM (spec, i, am_inet_reply); i = LOAD_PORT (spec, i, desc->dport); i = LOAD_ATOM (spec, i, am_ok); while (buflen > 0) { int eopt = *buf; /* "eopt" is 1-byte encoded */ buf ++; buflen --; switch(eopt) { /* Local options allowed for SCTP. For TCP and UDP, the values of these options are returned via "res" using integer encoding, but here, we encode them as proper terms the same way as we do it for all other SCTP options: */ case INET_LOPT_BUFFER: { PLACE_FOR(spec, i, LOAD_ATOM_CNT + LOAD_INT_CNT + LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_buffer); i = LOAD_INT (spec, i, desc->bufsz); i = LOAD_TUPLE(spec, i, 2); break; } case INET_LOPT_MODE: { PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_mode); switch (desc->mode) { case INET_MODE_LIST : { i = LOAD_ATOM (spec, i, am_list); break; } case INET_MODE_BINARY: { i = LOAD_ATOM (spec, i, am_binary); break; } default: ASSERT (0); } i = LOAD_TUPLE (spec, i, 2); break; } case INET_LOPT_ACTIVE: { if (desc->active == INET_MULTI) PLACE_FOR(spec, i, LOAD_ATOM_CNT + LOAD_INT_CNT + LOAD_TUPLE_CNT); else PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_active); switch (desc->active) { case INET_ACTIVE : { i = LOAD_ATOM (spec, i, am_true); break; } case INET_PASSIVE: { i = LOAD_ATOM (spec, i, am_false); break; } case INET_ONCE : { i = LOAD_ATOM (spec, i, am_once); break; } case INET_MULTI : { i = LOAD_INT(spec, i, desc->active_count); break; } default: ASSERT (0); } i = LOAD_TUPLE (spec, i, 2); break; } #ifdef HAVE_SETNS case INET_LOPT_NETNS: if (desc->netns != NULL) { PLACE_FOR (spec, i, LOAD_ATOM_CNT + LOAD_BUF2BINARY_CNT + LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_netns); i = LOAD_BUF2BINARY (spec, i, desc->netns, strlen(desc->netns)); i = LOAD_TUPLE (spec, i, 2); break; } else continue; /* Ignore */ #endif /* SCTP and generic INET options: */ case SCTP_OPT_RTOINFO: { struct sctp_rtoinfo rti; unsigned int sz = sizeof(rti); if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); rti.srto_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_RTOINFO, &rti, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + 3*LOAD_INT_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_rtoinfo); i = LOAD_ATOM (spec, i, am_sctp_rtoinfo); i = LOAD_ASSOC_ID (spec, i, rti.srto_assoc_id); i = LOAD_INT (spec, i, rti.srto_initial); i = LOAD_INT (spec, i, rti.srto_max); i = LOAD_INT (spec, i, rti.srto_min); i = LOAD_TUPLE (spec, i, 5); i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_ASSOCINFO: { struct sctp_assocparams ap; unsigned int sz = sizeof(ap); if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); ap.sasoc_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_ASSOCINFO, &ap, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + 5*LOAD_INT_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_associnfo); i = LOAD_ATOM (spec, i, am_sctp_assocparams); i = LOAD_ASSOC_ID (spec, i, ap.sasoc_assoc_id); i = LOAD_INT (spec, i, ap.sasoc_asocmaxrxt); i = LOAD_INT (spec, i, ap.sasoc_number_peer_destinations); i = LOAD_INT (spec, i, ap.sasoc_peer_rwnd); i = LOAD_INT (spec, i, ap.sasoc_local_rwnd); i = LOAD_INT (spec, i, ap.sasoc_cookie_life); i = LOAD_TUPLE (spec, i, 7); i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_INITMSG: { struct sctp_initmsg im; unsigned int sz = sizeof(im); if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_INITMSG, &im, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + 4*LOAD_INT_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_initmsg); i = LOAD_ATOM (spec, i, am_sctp_initmsg); i = LOAD_INT (spec, i, im.sinit_num_ostreams); i = LOAD_INT (spec, i, im.sinit_max_instreams); i = LOAD_INT (spec, i, im.sinit_max_attempts); i = LOAD_INT (spec, i, im.sinit_max_init_timeo); i = LOAD_TUPLE (spec, i, 5); i = LOAD_TUPLE (spec, i, 2); break; } /* The following option returns a tuple {bool, int}: */ case INET_OPT_LINGER: { struct linger lg; unsigned int sz = sizeof(lg); if (sock_getopt(desc->s, SOL_SOCKET, SO_LINGER, &lg, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, LOAD_ATOM_CNT + LOAD_BOOL_CNT + LOAD_INT_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_linger); i = LOAD_BOOL (spec, i, lg.l_onoff); i = LOAD_INT (spec, i, lg.l_linger); i = LOAD_TUPLE (spec, i, 2); i = LOAD_TUPLE (spec, i, 2); break; } /* The following options just return an integer value: */ case INET_OPT_RCVBUF : case INET_OPT_SNDBUF : case INET_OPT_REUSEADDR: case INET_OPT_DONTROUTE: case INET_OPT_PRIORITY : case INET_OPT_TOS : case INET_OPT_TCLASS : case INET_OPT_IPV6_V6ONLY: case SCTP_OPT_AUTOCLOSE: case SCTP_OPT_MAXSEG : /* The following options return true or false: */ case SCTP_OPT_NODELAY : case SCTP_OPT_DISABLE_FRAGMENTS: case SCTP_OPT_I_WANT_MAPPED_V4_ADDR: { int res = 0; unsigned int sz = sizeof(res); int proto = 0, type = 0, is_int = 0; ErlDrvTermData tag = am_sctp_error; switch(eopt) { case INET_OPT_RCVBUF : { proto = SOL_SOCKET; type = SO_RCVBUF; is_int = 1; tag = am_recbuf; break; } case INET_OPT_SNDBUF : { proto = SOL_SOCKET; type = SO_SNDBUF; is_int = 1; tag = am_sndbuf; break; } case INET_OPT_REUSEADDR: { proto = SOL_SOCKET; type = SO_REUSEADDR; is_int = 0; tag = am_reuseaddr; break; } case INET_OPT_DONTROUTE: { proto = SOL_SOCKET; type = SO_DONTROUTE; is_int = 0; tag = am_dontroute; break; } case INET_OPT_PRIORITY: { # if defined(SO_PRIORITY) proto = SOL_SOCKET; type = SO_PRIORITY; is_int = 1; tag = am_priority; break; # else /* Not supported -- ignore */ continue; # endif } case INET_OPT_TOS: { # if defined(IP_TOS) && defined(SOL_IP) proto = SOL_IP; type = IP_TOS; is_int = 1; tag = am_tos; break; # else /* Not supported -- ignore */ continue; # endif } case INET_OPT_TCLASS: { # if defined(IPV6_TCLASS) && defined(SOL_IPV6) proto = SOL_IPV6; type = IPV6_TCLASS; is_int = 1; tag = am_tclass; break; # else /* Not supported -- ignore */ continue; # endif } case INET_OPT_IPV6_V6ONLY: # if HAVE_DECL_IPV6_V6ONLY { proto = IPPROTO_IPV6; type = IPV6_V6ONLY; tag = am_ipv6_v6only; break; } # elif defined(__WIN32__) && defined(HAVE_IN6) && defined(AF_INET6) # error Here is a fix for Win IPv6 SCTP needed # else /* Not supported -- ignore */ continue; # endif case SCTP_OPT_AUTOCLOSE: { proto = IPPROTO_SCTP; type = SCTP_AUTOCLOSE; is_int = 1; tag = am_sctp_autoclose; break; } case SCTP_OPT_MAXSEG : { proto = IPPROTO_SCTP; type = SCTP_MAXSEG; is_int = 1; tag = am_sctp_maxseg; break; } case SCTP_OPT_NODELAY : { proto = IPPROTO_SCTP; type = SCTP_NODELAY; is_int = 0; tag = am_sctp_nodelay; break; } case SCTP_OPT_DISABLE_FRAGMENTS: { proto = IPPROTO_SCTP; type = SCTP_DISABLE_FRAGMENTS; is_int = 0; tag = am_sctp_disable_fragments; break; } case SCTP_OPT_I_WANT_MAPPED_V4_ADDR: { proto = IPPROTO_SCTP; type = SCTP_I_WANT_MAPPED_V4_ADDR; is_int = 0; tag = am_sctp_i_want_mapped_v4_addr; break; } default: ASSERT(0); } if (sock_getopt (desc->s, proto, type, &res, &sz) < 0) continue; /* Form the result: */ PLACE_FOR(spec, i, LOAD_ATOM_CNT + (is_int ? LOAD_INT_CNT : LOAD_BOOL_CNT) + LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, tag); if (is_int) i = LOAD_INT (spec, i, res); else i = LOAD_BOOL (spec, i, res); i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_PRIMARY_ADDR: case SCTP_OPT_SET_PEER_PRIMARY_ADDR: { /* These 2 options use completely isomorphic data structures: */ struct sctp_setpeerprim sp; unsigned int sz = sizeof(sp); if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); sp.sspp_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; if (sock_getopt(desc->s, IPPROTO_SCTP, (eopt == SCTP_OPT_PRIMARY_ADDR) ? SCTP_PRIMARY_ADDR : SCTP_SET_PEER_PRIMARY_ADDR, &sp, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + LOAD_INET_GET_ADDRESS_CNT + 2*LOAD_TUPLE_CNT); switch (eopt) { case SCTP_OPT_PRIMARY_ADDR: i = LOAD_ATOM(spec, i, am_sctp_primary_addr); i = LOAD_ATOM(spec, i, am_sctp_prim); break; case SCTP_OPT_SET_PEER_PRIMARY_ADDR: i = LOAD_ATOM(spec, i, am_sctp_set_peer_primary_addr); i = LOAD_ATOM(spec, i, am_sctp_setpeerprim); break; default: ASSERT(0); } i = LOAD_ASSOC_ID (spec, i, sp.sspp_assoc_id); i = load_inet_get_address(spec, i, desc, &sp.sspp_addr); i = LOAD_TUPLE (spec, i, 3); i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_ADAPTATION_LAYER: { struct sctp_setadaptation ad; unsigned int sz = sizeof (ad); if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_ADAPTATION_LAYER, &ad, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_INT_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_adaptation_layer); i = LOAD_ATOM (spec, i, am_sctp_setadaptation); i = LOAD_INT (spec, i, sock_ntohl(ad.ssb_adaptation_ind)); i = LOAD_TUPLE (spec, i, 2); i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_PEER_ADDR_PARAMS: { struct sctp_paddrparams ap; unsigned int sz = sizeof(ap); int n; char *before, *xerror; ErlDrvSizeT alen; if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); ap.spp_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; alen = buflen; before = buf; xerror = inet_set_faddress (desc->sfamily, (inet_address*) (&ap.spp_address), &buf, &alen); if (xerror != NULL) { #ifdef EAFNOSUPPORT if (xerror == str_eafnosupport) { RETURN_ERROR(spec, -EAFNOSUPPORT); } #else RETURN_ERROR(spec, -EINVAL); #endif } buflen -= buf - before; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_PEER_ADDR_PARAMS, &ap, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + LOAD_INET_GET_ADDRESS_CNT + 4*LOAD_INT_CNT); i = LOAD_ATOM (spec, i, am_sctp_peer_addr_params); i = LOAD_ATOM (spec, i, am_sctp_paddrparams); i = LOAD_ASSOC_ID (spec, i, ap.spp_assoc_id); i = load_inet_get_address(spec, i, desc, &ap.spp_address); i = LOAD_INT (spec, i, ap.spp_hbinterval); i = LOAD_INT (spec, i, ap.spp_pathmaxrxt); /* The following fields are not suported in SOLARIS10, ** so put 0s for "spp_pathmtu", "spp_sackdelay", ** and empty list for "spp_flags": */ # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_PATHMTU i = LOAD_INT (spec, i, ap.spp_pathmtu); # else i = LOAD_INT (spec, i, 0); # endif # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY i = LOAD_INT (spec, i, ap.spp_sackdelay); # else i = LOAD_INT (spec, i, 0); # endif n = 0; # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_FLAGS PLACE_FOR(spec, i, 7*LOAD_ATOM_CNT); /* Now Flags, as a list: */ if (ap.spp_flags & SPP_HB_ENABLE) { i = LOAD_ATOM (spec, i, am_hb_enable); n++; } if (ap.spp_flags & SPP_HB_DISABLE) { i = LOAD_ATOM (spec, i, am_hb_disable); n++; } if (ap.spp_flags & SPP_HB_DEMAND) { i = LOAD_ATOM (spec, i, am_hb_demand); n++; } if (ap.spp_flags & SPP_PMTUD_ENABLE) { i = LOAD_ATOM (spec, i, am_pmtud_enable); n++; } if (ap.spp_flags & SPP_PMTUD_DISABLE) { i = LOAD_ATOM (spec, i, am_pmtud_disable); n++; } # ifdef HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY /* SPP_SACKDELAY_* not in FreeBSD 7.1 */ if (ap.spp_flags & SPP_SACKDELAY_ENABLE) { i = LOAD_ATOM (spec, i, am_sackdelay_enable); n++; } if (ap.spp_flags & SPP_SACKDELAY_DISABLE) { i = LOAD_ATOM (spec, i, am_sackdelay_disable); n++; } # endif # endif PLACE_FOR(spec, i, LOAD_NIL_CNT + LOAD_LIST_CNT + 2*LOAD_TUPLE_CNT); /* Close up the Flags list: */ i = LOAD_NIL (spec, i); i = LOAD_LIST (spec, i, n+1); /* Close up the record: */ i = LOAD_TUPLE (spec, i, 8); /* Close up the result tuple: */ i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_DEFAULT_SEND_PARAM: { struct sctp_sndrcvinfo sri; unsigned int sz = sizeof(sri); if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); sri.sinfo_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_DEFAULT_SEND_PARAM, &sri, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, LOAD_ATOM_CNT + SCTP_PARSE_SNDRCVINFO_CNT + LOAD_TUPLE_CNT); i = LOAD_ATOM(spec, i, am_sctp_default_send_param); i = sctp_parse_sndrcvinfo(spec, i, &sri); i = LOAD_TUPLE(spec, i, 2); break; } case SCTP_OPT_EVENTS: { struct sctp_event_subscribe evs; unsigned int sz = sizeof(evs); if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_EVENTS, &evs, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + 9*LOAD_BOOL_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_events); i = LOAD_ATOM (spec, i, am_sctp_event_subscribe); i = LOAD_BOOL (spec, i, evs.sctp_data_io_event); i = LOAD_BOOL (spec, i, evs.sctp_association_event); i = LOAD_BOOL (spec, i, evs.sctp_address_event); i = LOAD_BOOL (spec, i, evs.sctp_send_failure_event); i = LOAD_BOOL (spec, i, evs.sctp_peer_error_event); i = LOAD_BOOL (spec, i, evs.sctp_shutdown_event); i = LOAD_BOOL (spec, i, evs.sctp_partial_delivery_event); i = LOAD_BOOL (spec, i, evs.sctp_adaptation_layer_event); i = LOAD_BOOL (spec, i, 0);/* NB: sctp_authentication_event * is not yet supported in Linux */ i = LOAD_TUPLE (spec, i, 10); i = LOAD_TUPLE (spec, i, 2); break; } /* The following option is not available in Solaris 10: */ # if HAVE_DECL_SCTP_DELAYED_ACK_TIME case SCTP_OPT_DELAYED_ACK_TIME: { struct sctp_assoc_value av; unsigned int sz = sizeof(av); if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); av.assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_DELAYED_ACK_TIME, &av, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 2*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + LOAD_INT_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_delayed_ack_time); i = LOAD_ATOM (spec, i, am_sctp_assoc_value); i = LOAD_ASSOC_ID (spec, i, av.assoc_id); i = LOAD_INT (spec, i, av.assoc_value); i = LOAD_TUPLE (spec, i, 3); i = LOAD_TUPLE (spec, i, 2); break; } # endif case SCTP_OPT_STATUS: { struct sctp_status st; unsigned int sz = sizeof(st); if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); st.sstat_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_STATUS, &st, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, 3*LOAD_ATOM_CNT + LOAD_ASSOC_ID_CNT + 6*LOAD_INT_CNT + LOAD_PADDRINFO_CNT + 2*LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_status); i = LOAD_ATOM (spec, i, am_sctp_status); i = LOAD_ASSOC_ID (spec, i, st.sstat_assoc_id); switch(st.sstat_state) { /* SCTP_EMPTY is not supported on SOLARIS10: */ # if HAVE_DECL_SCTP_EMPTY case SCTP_EMPTY: i = LOAD_ATOM (spec, i, am_empty); break; # endif case SCTP_CLOSED: i = LOAD_ATOM (spec, i, am_closed); break; # if HAVE_DECL_SCTP_BOUND case SCTP_BOUND: i = LOAD_ATOM (spec, i, am_bound); break; # endif # if HAVE_DECL_SCTP_LISTEN case SCTP_LISTEN: i = LOAD_ATOM (spec, i, am_listen); break; # endif case SCTP_COOKIE_WAIT: i = LOAD_ATOM (spec, i, am_cookie_wait); break; case SCTP_COOKIE_ECHOED: i = LOAD_ATOM (spec, i, am_cookie_echoed); break; case SCTP_ESTABLISHED: i = LOAD_ATOM (spec, i, am_established); break; case SCTP_SHUTDOWN_PENDING: i = LOAD_ATOM (spec, i, am_shutdown_pending); break; case SCTP_SHUTDOWN_SENT: i = LOAD_ATOM (spec, i, am_shutdown_sent); break; case SCTP_SHUTDOWN_RECEIVED: i = LOAD_ATOM (spec, i, am_shutdown_received); break; case SCTP_SHUTDOWN_ACK_SENT: i = LOAD_ATOM (spec, i, am_shutdown_ack_sent); break; default: i = LOAD_ATOM (spec, i, am_undefined); break; } i = LOAD_INT (spec, i, st.sstat_rwnd); i = LOAD_INT (spec, i, st.sstat_unackdata); i = LOAD_INT (spec, i, st.sstat_penddata); i = LOAD_INT (spec, i, st.sstat_instrms); i = LOAD_INT (spec, i, st.sstat_outstrms); i = LOAD_INT (spec, i, st.sstat_fragmentation_point); i = load_paddrinfo (spec, i, desc, &st.sstat_primary); /* Close up the record: */ i = LOAD_TUPLE (spec, i, 10); /* Close up the result tuple: */ i = LOAD_TUPLE (spec, i, 2); break; } case SCTP_OPT_GET_PEER_ADDR_INFO: { struct sctp_paddrinfo pai; unsigned int sz = sizeof(pai); char *before, *xerror; ErlDrvSizeT alen; if (buflen < ASSOC_ID_LEN) RETURN_ERROR(spec, -EINVAL); pai.spinfo_assoc_id = GET_ASSOC_ID(buf); buf += ASSOC_ID_LEN; buflen -= ASSOC_ID_LEN; alen = buflen; before = buf; xerror = inet_set_faddress (desc->sfamily, (inet_address*) (&pai.spinfo_address), &buf, &alen); if (xerror != NULL) { #ifdef EAFNOSUPPORT if (xerror == str_eafnosupport) { RETURN_ERROR(spec, -EAFNOSUPPORT); } #else RETURN_ERROR(spec, -EINVAL); #endif } buflen -= buf - before; if (sock_getopt(desc->s, IPPROTO_SCTP, SCTP_GET_PEER_ADDR_INFO, &pai, &sz) < 0) continue; /* Fill in the response: */ PLACE_FOR(spec, i, LOAD_ATOM_CNT + LOAD_PADDRINFO_CNT + LOAD_TUPLE_CNT); i = LOAD_ATOM (spec, i, am_sctp_get_peer_addr_info); i = load_paddrinfo (spec, i, desc, &pai); i = LOAD_TUPLE (spec, i, 2); break; } default: RETURN_ERROR(spec, -EINVAL); /* No more valid options */ } /* If we get here one result has been successfully loaded */ length ++; } if (buflen != 0) RETURN_ERROR(spec, -EINVAL); /* Optparam mismatch */ PLACE_FOR(spec, i, LOAD_NIL_CNT + LOAD_LIST_CNT + 2*LOAD_TUPLE_CNT); /* If we get here, we have "length" options: */ i = LOAD_NIL (spec, i); i = LOAD_LIST (spec, i, length+1); /* Close up the {ok, List} response: */ i = LOAD_TUPLE(spec, i, 2); /* Close up the {inet_reply, S, {ok, List}} response: */ i = LOAD_TUPLE(spec, i, 3); /* Now, convert "spec" into the returnable term: */ erl_drv_send_term(desc->dport, driver_caller(desc->port), spec, i); FREE(spec); (*dest)[0] = INET_REP; return 1; /* Response length */ # undef PLACE_FOR # undef RETURN_ERROR } #endif /* fill statistics reply, op codes from src and result in dest ** dst area must be a least 5*len + 1 bytes */ static ErlDrvSSizeT inet_fill_stat(inet_descriptor* desc, char* src, ErlDrvSizeT len, char* dst) { unsigned long val; int op; char* dst_start = dst; *dst++ = INET_REP_OK; /* put reply code */ while (len--) { op = *src++; *dst++ = op; /* copy op code */ switch(op) { case INET_STAT_RECV_CNT: val = desc->recv_cnt; break; case INET_STAT_RECV_MAX: val = (unsigned long) desc->recv_max; break; case INET_STAT_RECV_AVG: val = (unsigned long) desc->recv_avg; break; case INET_STAT_RECV_DVI: val = (unsigned long) fabs(desc->recv_dvi); break; case INET_STAT_SEND_CNT: val = desc->send_cnt; break; case INET_STAT_SEND_MAX: val = desc->send_max; break; case INET_STAT_SEND_AVG: val = (unsigned long) desc->send_avg; break; case INET_STAT_SEND_PND: val = (unsigned long) driver_sizeq(desc->port); break; case INET_STAT_RECV_OCT: #ifdef ARCH_64 put_int64(desc->recv_oct, dst); /* write it all */ #else put_int32(desc->recv_oct[1], dst); /* write high 32bit */ put_int32(desc->recv_oct[0], dst+4); /* write low 32bit */ #endif dst += 8; continue; case INET_STAT_SEND_OCT: #ifdef ARCH_64 put_int64(desc->send_oct, dst); /* write it all */ #else put_int32(desc->send_oct[1], dst); /* write high 32bit */ put_int32(desc->send_oct[0], dst+4); /* write low 32bit */ #endif dst += 8; continue; default: return -1; /* invalid argument */ } put_int32(val, dst); /* write 32bit value */ dst += 4; } return dst - dst_start; /* actual length */ } static void send_empty_out_q_msgs(inet_descriptor* desc) { ErlDrvTermData msg[6]; int msg_len = 0; if(NO_SUBSCRIBERS(&desc->empty_out_q_subs)) return; msg_len = LOAD_ATOM(msg, msg_len, am_empty_out_q); msg_len = LOAD_PORT(msg, msg_len, desc->dport); msg_len = LOAD_TUPLE(msg, msg_len, 2); ASSERT(msg_len == sizeof(msg)/sizeof(*msg)); send_to_subscribers(desc->dport, &desc->empty_out_q_subs, 1, msg, msg_len); } /* subscribe and fill subscription reply, op codes from src and ** result in dest dst area must be a least 5*len + 1 bytes */ static ErlDrvSSizeT inet_subscribe(inet_descriptor* desc, char* src, ErlDrvSizeT len, char* dst) { unsigned long val; int op; char* dst_start = dst; *dst++ = INET_REP_OK; /* put reply code */ while (len--) { op = *src++; *dst++ = op; /* copy op code */ switch(op) { case INET_SUBS_EMPTY_OUT_Q: val = driver_sizeq(desc->port); if(val > 0) if(!save_subscriber(&desc->empty_out_q_subs, driver_caller(desc->port))) return 0; break; default: return -1; /* invalid argument */ } put_int32(val, dst); /* write 32bit value */ dst += 4; } return dst - dst_start; /* actual length */ } /* Terminate socket */ static void inet_stop(inet_descriptor* desc) { erl_inet_close(desc); #ifdef HAVE_SETNS if (desc->netns != NULL) FREE(desc->netns); #endif FREE(desc); } static void inet_emergency_close(ErlDrvData data) { /* valid for any (UDP, TCP or SCTP) descriptor */ tcp_descriptor* tcp_desc = (tcp_descriptor*)data; inet_descriptor* desc = INETP(tcp_desc); DEBUGF(("inet_emergency_close(%ld) {s=%d\r\n", (long)desc->port, desc->s)); if (desc->s != INVALID_SOCKET) { sock_close(desc->s); } } static void set_default_msgq_limits(ErlDrvPort port) { ErlDrvSizeT q_high = INET_HIGH_MSGQ_WATERMARK; ErlDrvSizeT q_low = INET_LOW_MSGQ_WATERMARK; if (q_low < ERL_DRV_BUSY_MSGQ_LIM_MIN) q_low = ERL_DRV_BUSY_MSGQ_LIM_MIN; else if (q_low > ERL_DRV_BUSY_MSGQ_LIM_MAX) q_low = ERL_DRV_BUSY_MSGQ_LIM_MAX; if (q_high < ERL_DRV_BUSY_MSGQ_LIM_MIN) q_high = ERL_DRV_BUSY_MSGQ_LIM_MIN; else if (q_high > ERL_DRV_BUSY_MSGQ_LIM_MAX) q_high = ERL_DRV_BUSY_MSGQ_LIM_MAX; erl_drv_busy_msgq_limits(port, &q_low, &q_high); } /* Allocate descriptor */ static ErlDrvData inet_start(ErlDrvPort port, int size, int protocol) { inet_descriptor* desc; if ((desc = (inet_descriptor*) ALLOC(size)) == NULL) return NULL; desc->s = INVALID_SOCKET; desc->event = INVALID_EVENT; desc->event_mask = 0; #ifdef __WIN32__ desc->forced_events = 0; desc->send_would_block = 0; #endif desc->port = port; desc->dport = driver_mk_port(port); desc->state = INET_STATE_CLOSED; desc->prebound = 0; desc->bufsz = INET_DEF_BUFFER; desc->hsz = 0; /* list header size */ desc->htype = TCP_PB_RAW; /* default packet type */ desc->psize = 0; /* no size check */ desc->stype = -1; /* bad stype */ desc->sfamily = -1; desc->sprotocol = protocol; desc->mode = INET_MODE_LIST; /* list mode */ desc->exitf = 1; /* exit port when close on active socket */ desc->deliver = INET_DELIVER_TERM; /* standard term format */ desc->active = INET_PASSIVE; /* start passive */ desc->active_count = 0; desc->delimiter = '\n'; /* line delimiting char */ desc->oph = NULL; desc->opt = NULL; desc->peer_ptr = NULL; desc->name_ptr = NULL; #ifdef ARCH_64 desc->recv_oct = 0; #else desc->recv_oct[0] = desc->recv_oct[1] = 0; #endif desc->recv_cnt = 0; desc->recv_max = 0; desc->recv_avg = 0.0; desc->recv_dvi = 0.0; #ifdef ARCH_64 desc->send_oct = 0; #else desc->send_oct[0] = desc->send_oct[1] = 0; #endif desc->send_cnt = 0; desc->send_max = 0; desc->send_avg = 0.0; desc->empty_out_q_subs.subscriber = NO_PROCESS; desc->empty_out_q_subs.next = NULL; sys_memzero((char *)&desc->remote,sizeof(desc->remote)); desc->is_ignored = 0; #ifdef HAVE_SETNS desc->netns = NULL; #endif return (ErlDrvData)desc; } #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 #endif /* ** common TCP/UDP/SCTP control command */ static ErlDrvSSizeT inet_ctl(inet_descriptor* desc, int cmd, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { switch (cmd) { case INET_REQ_GETSTAT: { char* dst; ErlDrvSizeT i; int dstlen = 1; /* Reply code */ for (i = 0; i < len; i++) { switch(buf[i]) { case INET_STAT_SEND_OCT: dstlen += 9; break; case INET_STAT_RECV_OCT: dstlen += 9; break; default: dstlen += 5; break; } } DEBUGF(("inet_ctl(%ld): GETSTAT\r\n", (long) desc->port)); if (dstlen > INET_MAX_OPT_BUFFER) /* sanity check */ return 0; if (dstlen > rsize) { if ((dst = (char*) ALLOC(dstlen)) == NULL) return 0; *rbuf = dst; /* call will free this buffer */ } else dst = *rbuf; /* ok we fit in buffer given */ return inet_fill_stat(desc, buf, len, dst); } case INET_REQ_SUBSCRIBE: { char* dst; int dstlen = 1 /* Reply code */ + len*5; DEBUGF(("inet_ctl(%ld): INET_REQ_SUBSCRIBE\r\n", (long) desc->port)); if (dstlen > INET_MAX_OPT_BUFFER) /* sanity check */ return 0; if (dstlen > rsize) { if ((dst = (char*) ALLOC(dstlen)) == NULL) return 0; *rbuf = dst; /* call will free this buffer */ } else dst = *rbuf; /* ok we fit in buffer given */ return inet_subscribe(desc, buf, len, dst); } case INET_REQ_GETOPTS: { /* get options */ ErlDrvSSizeT replen; DEBUGF(("inet_ctl(%ld): GETOPTS\r\n", (long)desc->port)); #ifdef HAVE_SCTP if (IS_SCTP(desc)) { if ((replen = sctp_fill_opts(desc, buf, len, rbuf, rsize)) < 0) return ctl_error(-replen, rbuf, rsize); } else #endif if ((replen = inet_fill_opts(desc, buf, len, rbuf, rsize)) < 0) { return ctl_error(EINVAL, rbuf, rsize); } return replen; } case INET_REQ_GETIFLIST: { DEBUGF(("inet_ctl(%ld): GETIFLIST\r\n", (long)desc->port)); if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); return inet_ctl_getiflist(desc, rbuf, rsize); } case INET_REQ_GETIFADDRS: { DEBUGF(("inet_ctl(%ld): GETIFADDRS\r\n", (long)desc->port)); if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); return inet_ctl_getifaddrs(desc, rbuf, rsize); } case INET_REQ_IFGET: { DEBUGF(("inet_ctl(%ld): IFGET\r\n", (long)desc->port)); if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); return inet_ctl_ifget(desc, buf, len, rbuf, rsize); } case INET_REQ_IFSET: { DEBUGF(("inet_ctl(%ld): IFSET\r\n", (long)desc->port)); if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); return inet_ctl_ifset(desc, buf, len, rbuf, rsize); } case INET_REQ_SETOPTS: { /* set options */ DEBUGF(("inet_ctl(%ld): SETOPTS\r\n", (long)desc->port)); /* XXX fprintf(stderr,"inet_ctl(%ld): SETOPTS (len = %d)\r\n", (long)desc->port,(int) len); */ switch(inet_set_opts(desc, buf, len)) { case -1: return ctl_error(EINVAL, rbuf, rsize); case 0: return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); case 1: /* * Let's hope that the descriptor really is a tcp_descriptor here. */ /* fprintf(stderr,"Triggered tcp_deliver by setopt.\r\n"); */ tcp_deliver((tcp_descriptor *) desc, 0); return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); default: /* fprintf(stderr,"Triggered tcp_recv by setopt.\r\n"); */ /* * Same as above, but active changed to once w/o header type * change, so try a read instead of just deliver. */ tcp_recv((tcp_descriptor *) desc, 0); return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } } case INET_REQ_GETSTATUS: { char tbuf[4]; DEBUGF(("inet_ctl(%ld): GETSTATUS\r\n", (long)desc->port)); put_int32(desc->state, tbuf); return ctl_reply(INET_REP_OK, tbuf, 4, rbuf, rsize); } case INET_REQ_GETTYPE: { char tbuf[8]; DEBUGF(("inet_ctl(%ld): GETTYPE\r\n", (long)desc->port)); if (desc->sfamily == AF_INET) { put_int32(INET_AF_INET, &tbuf[0]); } #if defined(HAVE_IN6) && defined(AF_INET6) else if (desc->sfamily == AF_INET6) { put_int32(INET_AF_INET6, &tbuf[0]); } #endif #ifdef HAVE_SYS_UN_H else if (desc->sfamily == AF_UNIX) { put_int32(INET_AF_LOCAL, &tbuf[0]); } #endif else return ctl_error(EINVAL, rbuf, rsize); if (desc->stype == SOCK_STREAM) { put_int32(INET_TYPE_STREAM, &tbuf[4]); } else if (desc->stype == SOCK_DGRAM) { put_int32(INET_TYPE_DGRAM, &tbuf[4]); } #ifdef HAVE_SCTP else if (desc->stype == SOCK_SEQPACKET) { put_int32(INET_TYPE_SEQPACKET, &tbuf[4]); } #endif else return ctl_error(EINVAL, rbuf, rsize); return ctl_reply(INET_REP_OK, tbuf, 8, rbuf, rsize); } case INET_REQ_GETFD: { char tbuf[4]; DEBUGF(("inet_ctl(%ld): GETFD\r\n", (long)desc->port)); if (!IS_OPEN(desc)) return ctl_error(EINVAL, rbuf, rsize); put_int32((long)desc->s, tbuf); return ctl_reply(INET_REP_OK, tbuf, 4, rbuf, rsize); } case INET_REQ_GETHOSTNAME: { /* get host name */ char tbuf[MAXHOSTNAMELEN]; DEBUGF(("inet_ctl(%ld): GETHOSTNAME\r\n", (long)desc->port)); if (len != 0) return ctl_error(EINVAL, rbuf, rsize); if (IS_SOCKET_ERROR(sock_hostname(tbuf, MAXHOSTNAMELEN))) return ctl_error(sock_errno(), rbuf, rsize); return ctl_reply(INET_REP_OK, tbuf, strlen(tbuf), rbuf, rsize); } case INET_REQ_GETPADDRS: { DEBUGF(("inet_ctl(%ld): INET_GETPADDRS\r\n", (long)desc->port)); if (len != 4) return ctl_error(EINVAL, rbuf, rsize); if (! IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); #ifdef HAVE_SCTP if (IS_SCTP(desc) && p_sctp_getpaddrs) { struct sockaddr *sa; Uint32 assoc_id; int n; ErlDrvSizeT rlen; assoc_id = get_int32(buf); n = p_sctp_getpaddrs(desc->s, assoc_id, &sa); rlen = reply_inet_addrs(n, (inet_address *) sa, rbuf, rsize, 0); if (n > 0) p_sctp_freepaddrs(sa); return rlen; } #endif { /* Fallback to sock_peer */ inet_address addr; SOCKLEN_T sz; int i; sz = sizeof(addr); i = sock_peer(desc->s, (struct sockaddr *) &addr, &sz); return reply_inet_addrs(i >= 0 ? 1 : i, &addr, rbuf, rsize, sz); } } case INET_REQ_PEER: { /* get peername */ char tbuf[sizeof(inet_address)]; inet_address peer; inet_address* ptr; unsigned int sz; DEBUGF(("inet_ctl(%ld): PEER\r\n", (long)desc->port)); if (!(desc->state & INET_F_ACTIVE)) return ctl_error(ENOTCONN, rbuf, rsize); if ((ptr = desc->peer_ptr) != NULL) { sz = desc->peer_addr_len; } else { ptr = &peer; sz = sizeof(peer); if (IS_SOCKET_ERROR (sock_peer (desc->s, (struct sockaddr*)ptr, &sz))) return ctl_error(sock_errno(), rbuf, rsize); } if (inet_get_address(tbuf, ptr, &sz) < 0) return ctl_error(EINVAL, rbuf, rsize); return ctl_reply(INET_REP_OK, tbuf, sz, rbuf, rsize); } case INET_REQ_SETPEER: { /* set fake peername Port Address */ char *xerror; if (len == 0) { desc->peer_ptr = NULL; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } else if (len < 2) return ctl_error(EINVAL, rbuf, rsize); else if ((xerror = inet_set_faddress (desc->sfamily, &desc->peer_addr, &buf, &len)) != NULL) return ctl_xerror(xerror, rbuf, rsize); else { desc->peer_ptr = &desc->peer_addr; desc->peer_addr_len = (SOCKLEN_T) len; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } } case INET_REQ_GETLADDRS: { DEBUGF(("inet_ctl(%ld): INET_GETLADDRS\r\n", (long)desc->port)); if (len != 4) return ctl_error(EINVAL, rbuf, rsize); if (! IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); #ifdef HAVE_SCTP if (IS_SCTP(desc) && p_sctp_getladdrs) { struct sockaddr *sa; Uint32 assoc_id; int n; ErlDrvSizeT rlen; assoc_id = get_int32(buf); n = p_sctp_getladdrs(desc->s, assoc_id, &sa); rlen = reply_inet_addrs(n, (inet_address *) sa, rbuf, rsize, 0); if (n > 0) p_sctp_freeladdrs(sa); return rlen; } #endif { /* Fallback to sock_name */ inet_address addr; SOCKLEN_T sz; int i; sz = sizeof(addr); sys_memzero((char *) &addr, sz); i = sock_name(desc->s, (struct sockaddr *) &addr, &sz); return reply_inet_addrs(i >= 0 ? 1 : i, &addr, rbuf, rsize, sz); } } case INET_REQ_NAME: { /* get sockname */ char tbuf[sizeof(inet_address)]; inet_address name; inet_address* ptr; unsigned int sz; DEBUGF(("inet_ctl(%ld): NAME\r\n", (long)desc->port)); if ((ptr = desc->name_ptr) != NULL) { sz = desc->name_addr_len; } else { ptr = &name; sz = sizeof(name); sys_memzero((char *) &name, sz); if (IS_SOCKET_ERROR (sock_name(desc->s, (struct sockaddr*)ptr, &sz))) return ctl_error(sock_errno(), rbuf, rsize); } if (inet_get_address(tbuf, ptr, &sz) < 0) return ctl_error(EINVAL, rbuf, rsize); return ctl_reply(INET_REP_OK, tbuf, sz, rbuf, rsize); } case INET_REQ_SETNAME: { /* set fake sockname Port Address */ char *xerror; if (len == 0) { desc->name_ptr = NULL; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } else if (len < 2) return ctl_error(EINVAL, rbuf, rsize); else if ((xerror = inet_set_faddress (desc->sfamily, &desc->name_addr, &buf, &len)) != NULL) return ctl_xerror(xerror, rbuf, rsize); else { desc->name_ptr = &desc->name_addr; desc->name_addr_len = (SOCKLEN_T) len; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } } case INET_REQ_BIND: { /* bind socket */ char tbuf[2], *xerror; inet_address local; int port; DEBUGF(("inet_ctl(%ld): BIND\r\n", (long)desc->port)); if (len < 2) return ctl_error(EINVAL, rbuf, rsize); if (desc->state != INET_STATE_OPEN) return ctl_xerror(EXBADPORT, rbuf, rsize); if ((xerror = inet_set_faddress (desc->sfamily, &local, &buf, &len)) != NULL) return ctl_xerror(xerror, rbuf, rsize); if (IS_SOCKET_ERROR(sock_bind(desc->s,(struct sockaddr*) &local, len))) return ctl_error(sock_errno(), rbuf, rsize); desc->state = INET_STATE_OPEN; port = inet_address_port(&local); if (port == 0) { SOCKLEN_T adrlen = sizeof(local); sys_memzero((char *) &local, adrlen); sock_name(desc->s, &local.sa, &adrlen); port = inet_address_port(&local); } else if (port == -1) port = 0; put_int16(sock_ntohs((Uint16) port), tbuf); return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } case INET_REQ_IGNOREFD: { DEBUGF(("inet_ctl(%ld): IGNOREFD, IGNORED = %d\r\n", (long)desc->port,(int)*buf)); /* * FD can only be ignored for connected TCP connections for now, * possible to add UDP and SCTP support if needed. */ if (!IS_CONNECTED(desc)) return ctl_error(ENOTCONN, rbuf, rsize); if (desc->stype != SOCK_STREAM) return ctl_error(EINVAL, rbuf, rsize); if (*buf == 1 && !desc->is_ignored) { sock_select(desc, (FD_READ|FD_WRITE|FD_CLOSE|ERL_DRV_USE_NO_CALLBACK), 0); if (desc->active) desc->is_ignored = INET_IGNORE_READ; else desc->is_ignored = INET_IGNORE_PASSIVE; } else if (*buf == 0 && desc->is_ignored) { int flags = FD_CLOSE; if (desc->is_ignored & INET_IGNORE_READ) flags |= FD_READ; if (desc->is_ignored & INET_IGNORE_WRITE) flags |= FD_WRITE; desc->is_ignored = INET_IGNORE_NONE; if (flags != FD_CLOSE) sock_select(desc, flags, 1); } else return ctl_error(EINVAL, rbuf, rsize); return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } case INET_REQ_GETSERVBYNAME: { /* L1 Name-String L2 Proto-String */ char namebuf[256]; char protobuf[256]; char tbuf[2]; struct servent* srv; short port; int n; if (len < 2) return ctl_error(EINVAL, rbuf, rsize); n = get_int8(buf); buf++; len--; if (n >= len) /* the = sign makes the test inklude next length byte */ return ctl_error(EINVAL, rbuf, rsize); memcpy(namebuf, buf, n); namebuf[n] = '\0'; len -= n; buf += n; n = get_int8(buf); buf++; len--; if (n > len) return ctl_error(EINVAL, rbuf, rsize); memcpy(protobuf, buf, n); protobuf[n] = '\0'; if ((srv = sock_getservbyname(namebuf, protobuf)) == NULL) return ctl_error(EINVAL, rbuf, rsize); port = sock_ntohs(srv->s_port); put_int16(port, tbuf); return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } case INET_REQ_GETSERVBYPORT: { /* P1 P0 L1 Proto-String */ char protobuf[256]; unsigned short port; int n; struct servent* srv; if (len < 3) return ctl_error(EINVAL, rbuf, rsize); port = get_int16(buf); port = sock_htons(port); buf += 2; n = get_int8(buf); buf++; len -= 3; if (n > len) return ctl_error(EINVAL, rbuf, rsize); memcpy(protobuf, buf, n); protobuf[n] = '\0'; if ((srv = sock_getservbyport(port, protobuf)) == NULL) return ctl_error(EINVAL, rbuf, rsize); len = strlen(srv->s_name); return ctl_reply(INET_REP_OK, srv->s_name, len, rbuf, rsize); } default: return ctl_xerror(EXBADPORT, rbuf, rsize); } } /* update statistics on output packets */ static void inet_output_count(inet_descriptor* desc, ErlDrvSizeT len) { unsigned long n = desc->send_cnt + 1; #ifndef ARCH_64 Uint32 t = desc->send_oct[0] + len; int c = (t < desc->send_oct[0]); #endif double avg = desc->send_avg; #ifdef ARCH_64 desc->send_oct += len; #else /* 64 bit octet count in 32 bit words */ desc->send_oct[0] = t; desc->send_oct[1] += c; #endif if (n == 0) /* WRAP, use old avg as input to a new sequence */ n = 1; desc->send_avg += (len - avg) / n; if (len > desc->send_max) desc->send_max = len; desc->send_cnt = n; } /* update statistics on input packets */ static void inet_input_count(inet_descriptor* desc, ErlDrvSizeT len) { unsigned long n = desc->recv_cnt + 1; #ifndef ARCH_64 Uint32 t = (desc->recv_oct[0] + len); int c = (t < desc->recv_oct[0]); #endif double avg = desc->recv_avg; double dvi; #ifdef ARCH_64 desc->recv_oct += len; #else /* 64 bit octet count in 32 bit words */ desc->recv_oct[0] = t; desc->recv_oct[1] += c; #endif if (n == 0) /* WRAP */ n = 1; /* average packet length */ avg = avg + (len - avg) / n; desc->recv_avg = avg; if (len > desc->recv_max) desc->recv_max = len; /* average deviation from average packet length */ dvi = desc->recv_dvi; desc->recv_dvi = dvi + ((len - avg) - dvi) / n; desc->recv_cnt = n; } /*---------------------------------------------------------------------------- TCP -----------------------------------------------------------------------------*/ /* ** Set new size on buffer, used when packet size is determined ** and the buffer is to small. ** buffer must have a size of at least len bytes (counting from ptr_start!) */ static int tcp_expand_buffer(tcp_descriptor* desc, int len) { ErlDrvBinary* bin; int offs1; int offs2; int used = desc->i_ptr_start - desc->i_buf->orig_bytes; int ulen = used + len; if (desc->i_bufsz >= ulen) /* packet will fit */ return 0; else if (desc->i_buf->orig_size >= ulen) { /* buffer is large enough */ desc->i_bufsz = ulen; /* set "virtual" size */ return 0; } DEBUGF(("tcp_expand_buffer(%ld): s=%d, from %ld to %d\r\n", (long)desc->inet.port, desc->inet.s, desc->i_buf->orig_size, ulen)); offs1 = desc->i_ptr_start - desc->i_buf->orig_bytes; offs2 = desc->i_ptr - desc->i_ptr_start; if ((bin = driver_realloc_binary(desc->i_buf, ulen)) == NULL) return -1; desc->i_buf = bin; desc->i_ptr_start = bin->orig_bytes + offs1; desc->i_ptr = desc->i_ptr_start + offs2; desc->i_bufsz = ulen; return 0; } /* push data into i_buf */ static int tcp_push_buffer(tcp_descriptor* desc, char* buf, int len) { ErlDrvBinary* bin; if (desc->i_buf == NULL) { bin = alloc_buffer(len); sys_memcpy(bin->orig_bytes, buf, len); desc->i_buf = bin; desc->i_bufsz = len; desc->i_ptr_start = desc->i_buf->orig_bytes; desc->i_ptr = desc->i_ptr_start + len; } else { char* start = desc->i_buf->orig_bytes; int sz_before = desc->i_ptr_start - start; int sz_filled = desc->i_ptr - desc->i_ptr_start; if (len <= sz_before) { sys_memcpy(desc->i_ptr_start - len, buf, len); desc->i_ptr_start -= len; } else { bin = alloc_buffer(desc->i_bufsz+len); sys_memcpy(bin->orig_bytes, buf, len); sys_memcpy(bin->orig_bytes+len, desc->i_ptr_start, sz_filled); free_buffer(desc->i_buf); desc->i_bufsz += len; desc->i_buf = bin; desc->i_ptr_start = bin->orig_bytes; desc->i_ptr = desc->i_ptr_start + sz_filled + len; } } desc->i_remain = 0; return 0; } /* clear CURRENT input buffer */ static void tcp_clear_input(tcp_descriptor* desc) { if (desc->i_buf != NULL) free_buffer(desc->i_buf); desc->i_buf = NULL; desc->i_remain = 0; desc->i_ptr = NULL; desc->i_ptr_start = NULL; desc->i_bufsz = 0; } /* clear QUEUED output */ static void tcp_clear_output(tcp_descriptor* desc) { ErlDrvPort ix = desc->inet.port; ErlDrvSizeT qsz = driver_sizeq(ix); driver_deq(ix, qsz); send_empty_out_q_msgs(INETP(desc)); } /* Move data so that ptr_start point at buf->orig_bytes */ static void tcp_restart_input(tcp_descriptor* desc) { if (desc->i_ptr_start != desc->i_buf->orig_bytes) { int n = desc->i_ptr - desc->i_ptr_start; DEBUGF(("tcp_restart_input: move %d bytes\r\n", n)); sys_memmove(desc->i_buf->orig_bytes, desc->i_ptr_start, n); desc->i_ptr_start = desc->i_buf->orig_bytes; desc->i_ptr = desc->i_ptr_start + n; } } static int tcp_inet_init(void) { DEBUGF(("tcp_inet_init() {}\r\n")); return 0; } /* initialize the TCP descriptor */ static ErlDrvData prep_tcp_inet_start(ErlDrvPort port, char* args) { tcp_descriptor* desc; DEBUGF(("tcp_inet_start(%ld) {\r\n", (long)port)); desc = (tcp_descriptor*) inet_start(port, sizeof(tcp_descriptor), IPPROTO_TCP); if (desc == NULL) return ERL_DRV_ERROR_ERRNO; desc->high = INET_HIGH_WATERMARK; desc->low = INET_LOW_WATERMARK; desc->send_timeout = INET_INFINITY; desc->send_timeout_close = 0; desc->busy_on_send = 0; desc->i_buf = NULL; desc->i_ptr = NULL; desc->i_ptr_start = NULL; desc->i_remain = 0; desc->i_bufsz = 0; desc->tcp_add_flags = 0; desc->http_state = 0; desc->mtd = NULL; desc->multi_first = desc->multi_last = NULL; DEBUGF(("tcp_inet_start(%ld) }\r\n", (long)port)); return (ErlDrvData) desc; } static ErlDrvData tcp_inet_start(ErlDrvPort port, char* args) { ErlDrvData data = prep_tcp_inet_start(port, args); set_default_msgq_limits(port); return data; } /* Copy a descriptor, by creating a new port with same settings * as the descriptor desc. * return NULL on error (SYSTEM_LIMIT no ports avail) */ static tcp_descriptor* tcp_inet_copy(tcp_descriptor* desc,SOCKET s, ErlDrvTermData owner, int* err) { ErlDrvSizeT q_low, q_high; ErlDrvPort port = desc->inet.port; tcp_descriptor* copy_desc; copy_desc = (tcp_descriptor*) prep_tcp_inet_start(port, NULL); /* Setup event if needed */ if ((copy_desc->inet.s = s) != INVALID_SOCKET) { if ((copy_desc->inet.event = sock_create_event(INETP(copy_desc))) == INVALID_EVENT) { *err = sock_errno(); FREE(copy_desc); return NULL; } } /* Some flags must be inherited at this point */ copy_desc->inet.mode = desc->inet.mode; copy_desc->inet.exitf = desc->inet.exitf; copy_desc->inet.deliver = desc->inet.deliver; copy_desc->inet.htype = desc->inet.htype; copy_desc->inet.psize = desc->inet.psize; copy_desc->inet.stype = desc->inet.stype; copy_desc->inet.sfamily = desc->inet.sfamily; copy_desc->inet.hsz = desc->inet.hsz; copy_desc->inet.bufsz = desc->inet.bufsz; copy_desc->high = desc->high; copy_desc->low = desc->low; copy_desc->send_timeout = desc->send_timeout; copy_desc->send_timeout_close = desc->send_timeout_close; if (desc->tcp_add_flags & TCP_ADDF_SHOW_ECONNRESET) copy_desc->tcp_add_flags |= TCP_ADDF_SHOW_ECONNRESET; else copy_desc->tcp_add_flags &= ~TCP_ADDF_SHOW_ECONNRESET; /* The new port will be linked and connected to the original caller */ port = driver_create_port(port, owner, "tcp_inet", (ErlDrvData) copy_desc); if ((long)port == -1) { *err = INET_ERRNO_SYSTEM_LIMIT; FREE(copy_desc); return NULL; } /* Read busy msgq limits of parent */ q_low = q_high = ERL_DRV_BUSY_MSGQ_READ_ONLY; erl_drv_busy_msgq_limits(desc->inet.port, &q_low, &q_high); /* Write same busy msgq limits to child */ erl_drv_busy_msgq_limits(port, &q_low, &q_high); copy_desc->inet.port = port; copy_desc->inet.dport = driver_mk_port(port); *err = 0; return copy_desc; } /* ** Check Special cases: ** 1. we are a listener doing nb accept -> report error on accept ! ** 2. we are doing accept -> restore listener state */ static void tcp_close_check(tcp_descriptor* desc) { /* XXX:PaN - multiple clients to handle! */ if (desc->inet.state == INET_STATE_ACCEPTING) { inet_async_op *this_op = desc->inet.opt; sock_select(INETP(desc), FD_ACCEPT, 0); desc->inet.state = INET_STATE_LISTENING; if (this_op != NULL) { driver_demonitor_process(desc->inet.port, &(this_op->monitor)); } async_error_am(INETP(desc), am_closed); } else if (desc->inet.state == INET_STATE_MULTI_ACCEPTING) { int id,req; ErlDrvTermData caller; ErlDrvMonitor monitor; sock_select(INETP(desc), FD_ACCEPT, 0); desc->inet.state = INET_STATE_LISTENING; while (deq_multi_op(desc,&id,&req,&caller,NULL,&monitor) == 0) { driver_demonitor_process(desc->inet.port, &monitor); send_async_error(desc->inet.dport, id, caller, am_closed); } clean_multi_timers(&(desc->mtd), desc->inet.port); } else if (desc->inet.state == INET_STATE_CONNECTING) { async_error_am(INETP(desc), am_closed); } else if (desc->inet.state == INET_STATE_CONNECTED) { async_error_am_all(INETP(desc), am_closed); } } /* ** Cleanup & Free */ static void tcp_inet_stop(ErlDrvData e) { tcp_descriptor* desc = (tcp_descriptor*)e; DEBUGF(("tcp_inet_stop(%ld) {s=%d\r\n", (long)desc->inet.port, desc->inet.s)); tcp_close_check(desc); /* free input buffer & output buffer */ if (desc->i_buf != NULL) release_buffer(desc->i_buf); desc->i_buf = NULL; /* net_mess2 may call this function recursively when faulty messages arrive on dist ports*/ DEBUGF(("tcp_inet_stop(%ld) }\r\n", (long)desc->inet.port)); inet_stop(INETP(desc)); } /* TCP requests from Erlang */ static ErlDrvSSizeT tcp_inet_ctl(ErlDrvData e, unsigned int cmd, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { tcp_descriptor* desc = (tcp_descriptor*)e; switch(cmd) { case INET_REQ_OPEN: { /* open socket and return internal index */ int domain; DEBUGF(("tcp_inet_ctl(%ld): OPEN\r\n", (long)desc->inet.port)); if (len != 2) return ctl_error(EINVAL, rbuf, rsize); switch(buf[0]) { case INET_AF_INET: domain = AF_INET; break; #if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: domain = AF_INET6; break; #endif #ifdef HAVE_SYS_UN_H case INET_AF_LOCAL: domain = AF_UNIX; break; #endif default: return ctl_xerror(str_eafnosupport, rbuf, rsize); } if (buf[1] != INET_TYPE_STREAM) return ctl_error(EINVAL, rbuf, rsize); return inet_ctl_open(INETP(desc), domain, SOCK_STREAM, rbuf, rsize); break; } case INET_REQ_FDOPEN: { /* pass in an open (and optionally bound) socket */ int domain; int bound; DEBUGF(("tcp_inet_ctl(%ld): FDOPEN\r\n", (long)desc->inet.port)); if (len != 6 && len != 10) return ctl_error(EINVAL, rbuf, rsize); switch(buf[0]) { case INET_AF_INET: domain = AF_INET; break; #if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: domain = AF_INET6; break; #endif #ifdef HAVE_SYS_UN_H case INET_AF_LOCAL: domain = AF_UNIX; break; #endif default: return ctl_xerror(str_eafnosupport, rbuf, rsize); } if (buf[1] != INET_TYPE_STREAM) return ctl_error(EINVAL, rbuf, rsize); if (len == 6) bound = 1; else bound = get_int32(buf+2+4); return inet_ctl_fdopen(INETP(desc), domain, SOCK_STREAM, (SOCKET) get_int32(buf+2), bound, rbuf, rsize); break; } case INET_REQ_LISTEN: { /* argument backlog */ int backlog; DEBUGF(("tcp_inet_ctl(%ld): LISTEN\r\n", (long)desc->inet.port)); if (desc->inet.state == INET_STATE_CLOSED) return ctl_xerror(EXBADPORT, rbuf, rsize); if (!IS_OPEN(INETP(desc))) return ctl_xerror(EXBADPORT, rbuf, rsize); if (len != 2) return ctl_error(EINVAL, rbuf, rsize); backlog = get_int16(buf); if (IS_SOCKET_ERROR(sock_listen(desc->inet.s, backlog))) return ctl_error(sock_errno(), rbuf, rsize); desc->inet.state = INET_STATE_LISTENING; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } case INET_REQ_CONNECT: { /* do async connect */ int code; char tbuf[2], *xerror; unsigned timeout; DEBUGF(("tcp_inet_ctl(%ld): CONNECT\r\n", (long)desc->inet.port)); /* INPUT: Timeout(4), Port(2), Address(N) */ if (!IS_OPEN(INETP(desc))) return ctl_xerror(EXBADPORT, rbuf, rsize); if (IS_CONNECTED(INETP(desc))) return ctl_error(EISCONN, rbuf, rsize); if (IS_CONNECTING(INETP(desc))) return ctl_error(EINVAL, rbuf, rsize); if (len < 6) return ctl_error(EINVAL, rbuf, rsize); timeout = get_int32(buf); buf += 4; len -= 4; if ((xerror = inet_set_faddress (desc->inet.sfamily, &desc->inet.remote, &buf, &len)) != NULL) return ctl_xerror(xerror, rbuf, rsize); code = sock_connect(desc->inet.s, (struct sockaddr*) &desc->inet.remote, len); if (IS_SOCKET_ERROR(code) && ((sock_errno() == ERRNO_BLOCK) || /* Winsock2 */ (sock_errno() == EINPROGRESS))) { /* Unix & OSE!! */ sock_select(INETP(desc), FD_CONNECT, 1); desc->inet.state = INET_STATE_CONNECTING; if (timeout != INET_INFINITY) driver_set_timer(desc->inet.port, timeout); enq_async(INETP(desc), tbuf, INET_REQ_CONNECT); } else if (code == 0) { /* ok we are connected */ desc->inet.state = INET_STATE_CONNECTED; if (desc->inet.active) sock_select(INETP(desc), (FD_READ|FD_CLOSE), 1); enq_async(INETP(desc), tbuf, INET_REQ_CONNECT); async_ok(INETP(desc)); } else { return ctl_error(sock_errno(), rbuf, rsize); } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } case INET_REQ_ACCEPT: { /* do async accept */ char tbuf[2]; unsigned timeout; inet_address remote; unsigned int n; SOCKET s; DEBUGF(("tcp_inet_ctl(%ld): ACCEPT\r\n", (long)desc->inet.port)); /* INPUT: Timeout(4) */ if ((desc->inet.state != INET_STATE_LISTENING && desc->inet.state != INET_STATE_ACCEPTING && desc->inet.state != INET_STATE_MULTI_ACCEPTING) || len != 4) { return ctl_error(EINVAL, rbuf, rsize); } timeout = get_int32(buf); if (desc->inet.state == INET_STATE_ACCEPTING) { unsigned long time_left = 0; int oid = 0; ErlDrvTermData ocaller = ERL_DRV_NIL; int oreq = 0; unsigned otimeout = 0; ErlDrvTermData caller = driver_caller(desc->inet.port); MultiTimerData *mtd = NULL,*omtd = NULL; ErlDrvMonitor monitor, omonitor; if (driver_monitor_process(desc->inet.port, caller ,&monitor) != 0) { return ctl_xerror("noproc", rbuf, rsize); } deq_async_w_tmo(INETP(desc),&oid,&ocaller,&oreq,&otimeout,&omonitor); if (otimeout != INET_INFINITY) { driver_read_timer(desc->inet.port, &time_left); driver_cancel_timer(desc->inet.port); if (time_left <= 0) { time_left = 1; } omtd = add_multi_timer(&(desc->mtd), desc->inet.port, ocaller, time_left, &tcp_inet_multi_timeout); } enq_old_multi_op(desc, oid, oreq, ocaller, omtd, &omonitor); if (timeout != INET_INFINITY) { mtd = add_multi_timer(&(desc->mtd), desc->inet.port, caller, timeout, &tcp_inet_multi_timeout); } enq_multi_op(desc, tbuf, INET_REQ_ACCEPT, caller, mtd, &monitor); desc->inet.state = INET_STATE_MULTI_ACCEPTING; return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } else if (desc->inet.state == INET_STATE_MULTI_ACCEPTING) { ErlDrvTermData caller = driver_caller(desc->inet.port); MultiTimerData *mtd = NULL; ErlDrvMonitor monitor; if (driver_monitor_process(desc->inet.port, caller ,&monitor) != 0) { return ctl_xerror("noproc", rbuf, rsize); } if (timeout != INET_INFINITY) { mtd = add_multi_timer(&(desc->mtd), desc->inet.port, caller, timeout, &tcp_inet_multi_timeout); } enq_multi_op(desc, tbuf, INET_REQ_ACCEPT, caller, mtd, &monitor); return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } else { n = sizeof(desc->inet.remote); sys_memzero((char *) &remote, n); s = sock_accept(desc->inet.s, (struct sockaddr*) &remote, &n); if (s == INVALID_SOCKET) { if (sock_errno() == ERRNO_BLOCK) { ErlDrvMonitor monitor; if (driver_monitor_process(desc->inet.port, driver_caller(desc->inet.port), &monitor) != 0) { return ctl_xerror("noproc", rbuf, rsize); } enq_async_w_tmo(INETP(desc), tbuf, INET_REQ_ACCEPT, timeout, &monitor); desc->inet.state = INET_STATE_ACCEPTING; sock_select(INETP(desc),FD_ACCEPT,1); if (timeout != INET_INFINITY) { driver_set_timer(desc->inet.port, timeout); } } else { return ctl_error(sock_errno(), rbuf, rsize); } } else { ErlDrvTermData caller = driver_caller(desc->inet.port); tcp_descriptor* accept_desc; int err; if ((accept_desc = tcp_inet_copy(desc,s,caller,&err)) == NULL) { sock_close(s); return ctl_error(err, rbuf, rsize); } /* FIXME: may MUST lock access_port * 1 - Port is accessible via the erlang:ports() * 2 - Port is accessible via callers process_info(links) */ accept_desc->inet.remote = remote; SET_NONBLOCKING(accept_desc->inet.s); #ifdef __WIN32__ driver_select(accept_desc->inet.port, accept_desc->inet.event, ERL_DRV_READ, 1); #endif accept_desc->inet.state = INET_STATE_CONNECTED; enq_async(INETP(desc), tbuf, INET_REQ_ACCEPT); async_ok_port(INETP(desc), accept_desc->inet.dport); } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } } case INET_REQ_CLOSE: DEBUGF(("tcp_inet_ctl(%ld): CLOSE\r\n", (long)desc->inet.port)); tcp_close_check(desc); erl_inet_close(INETP(desc)); return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); case TCP_REQ_RECV: { unsigned timeout; char tbuf[2]; int n; DEBUGF(("tcp_inet_ctl(%ld): RECV (s=%d)\r\n", (long)desc->inet.port, desc->inet.s)); /* INPUT: Timeout(4), Length(4) */ if (!IS_CONNECTED(INETP(desc))) { if (desc->tcp_add_flags & TCP_ADDF_DELAYED_CLOSE_RECV) { desc->tcp_add_flags &= ~(TCP_ADDF_DELAYED_CLOSE_RECV| TCP_ADDF_DELAYED_CLOSE_SEND); if (desc->tcp_add_flags & TCP_ADDF_DELAYED_ECONNRESET) { desc->tcp_add_flags &= ~TCP_ADDF_DELAYED_ECONNRESET; return ctl_reply(INET_REP_ERROR, "econnreset", 10, rbuf, rsize); } else return ctl_reply(INET_REP_ERROR, "closed", 6, rbuf, rsize); } return ctl_error(ENOTCONN, rbuf, rsize); } if (desc->inet.active || (len != 8)) return ctl_error(EINVAL, rbuf, rsize); timeout = get_int32(buf); buf += 4; n = get_int32(buf); DEBUGF(("tcp_inet_ctl(%ld) timeout = %d, n = %d\r\n", (long)desc->inet.port,timeout,n)); if ((desc->inet.htype != TCP_PB_RAW) && (n != 0)) return ctl_error(EINVAL, rbuf, rsize); if (n > TCP_MAX_PACKET_SIZE) return ctl_error(ENOMEM, rbuf, rsize); if (enq_async(INETP(desc), tbuf, TCP_REQ_RECV) < 0) return ctl_error(EALREADY, rbuf, rsize); if (INETP(desc)->is_ignored || tcp_recv(desc, n) == 0) { if (timeout == 0) async_error_am(INETP(desc), am_timeout); else { if (timeout != INET_INFINITY) driver_set_timer(desc->inet.port, timeout); if (!INETP(desc)->is_ignored) sock_select(INETP(desc),(FD_READ|FD_CLOSE),1); else INETP(desc)->is_ignored |= INET_IGNORE_READ; } } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } case TCP_REQ_UNRECV: { DEBUGF(("tcp_inet_ctl(%ld): UNRECV\r\n", (long)desc->inet.port)); if (!IS_CONNECTED(INETP(desc))) return ctl_error(ENOTCONN, rbuf, rsize); tcp_push_buffer(desc, buf, len); if (desc->inet.active) tcp_deliver(desc, 0); return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } case TCP_REQ_SHUTDOWN: { int how; DEBUGF(("tcp_inet_ctl(%ld): FDOPEN\r\n", (long)desc->inet.port)); if (!IS_CONNECTED(INETP(desc))) { return ctl_error(ENOTCONN, rbuf, rsize); } if (len != 1) { return ctl_error(EINVAL, rbuf, rsize); } how = buf[0]; if (how != TCP_SHUT_RD && driver_sizeq(desc->inet.port) > 0) { if (how == TCP_SHUT_WR) { desc->tcp_add_flags |= TCP_ADDF_PENDING_SHUT_WR; } else if (how == TCP_SHUT_RDWR) { desc->tcp_add_flags |= TCP_ADDF_PENDING_SHUT_RDWR; } return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } if (IS_SOCKET_ERROR(sock_shutdown(INETP(desc)->s, how))) { if (how != TCP_SHUT_RD) desc->tcp_add_flags |= TCP_ADDF_SHUTDOWN_WR_DONE; return ctl_error(sock_errno(), rbuf, rsize); } else { return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } } default: DEBUGF(("tcp_inet_ctl(%ld): %u\r\n", (long)desc->inet.port, cmd)); return inet_ctl(INETP(desc), cmd, buf, len, rbuf, rsize); } } /* ** tcp_inet_timeout: ** called when timer expire: ** TCP socket may be: ** ** a) receiving -- deselect ** b) connecting -- close socket ** c) accepting -- reset listener ** */ static void tcp_inet_timeout(ErlDrvData e) { tcp_descriptor* desc = (tcp_descriptor*)e; int state = desc->inet.state; DEBUGF(("tcp_inet_timeout(%ld) {s=%d\r\n", (long)desc->inet.port, desc->inet.s)); if ((state & INET_F_MULTI_CLIENT)) { /* Multi-client always means multi-timers */ fire_multi_timers(&(desc->mtd), desc->inet.port, e); } else if ((state & INET_STATE_CONNECTED) == INET_STATE_CONNECTED) { if (desc->busy_on_send) { ASSERT(IS_BUSY(INETP(desc))); desc->inet.caller = desc->inet.busy_caller; desc->inet.state &= ~INET_F_BUSY; desc->busy_on_send = 0; set_busy_port(desc->inet.port, 0); inet_reply_error_am(INETP(desc), am_timeout); if (desc->send_timeout_close) { erl_inet_close(INETP(desc)); } } else { /* assume recv timeout */ ASSERT(!desc->inet.active); sock_select(INETP(desc),(FD_READ|FD_CLOSE),0); desc->i_remain = 0; async_error_am(INETP(desc), am_timeout); } } else if ((state & INET_STATE_CONNECTING) == INET_STATE_CONNECTING) { /* assume connect timeout */ /* close the socket since it's not usable (see man pages) */ erl_inet_close(INETP(desc)); async_error_am(INETP(desc), am_timeout); } else if ((state & INET_STATE_ACCEPTING) == INET_STATE_ACCEPTING) { inet_async_op *this_op = desc->inet.opt; /* timer is set on accept */ sock_select(INETP(desc), FD_ACCEPT, 0); if (this_op != NULL) { driver_demonitor_process(desc->inet.port, &(this_op->monitor)); } desc->inet.state = INET_STATE_LISTENING; async_error_am(INETP(desc), am_timeout); } DEBUGF(("tcp_inet_timeout(%ld) }\r\n", (long)desc->inet.port)); } static void tcp_inet_multi_timeout(ErlDrvData e, ErlDrvTermData caller) { tcp_descriptor* desc = (tcp_descriptor*)e; int id,req; ErlDrvMonitor monitor; if (remove_multi_op(desc, &id, &req, caller, NULL, &monitor) != 0) { return; } driver_demonitor_process(desc->inet.port, &monitor); if (desc->multi_first == NULL) { sock_select(INETP(desc),FD_ACCEPT,0); desc->inet.state = INET_STATE_LISTENING; /* restore state */ } send_async_error(desc->inet.dport, id, caller, am_timeout); } /* ** command: ** output on a socket only ! ** a reply code will be sent to connected (caller later) ** {inet_reply, S, Status} ** NOTE! normal sockets use the the tcp_inet_commandv ** but distribution still uses the tcp_inet_command!! */ static void tcp_inet_command(ErlDrvData e, char *buf, ErlDrvSizeT len) { tcp_descriptor* desc = (tcp_descriptor*)e; desc->inet.caller = driver_caller(desc->inet.port); DEBUGF(("tcp_inet_command(%ld) {s=%d\r\n", (long)desc->inet.port, desc->inet.s)); if (!IS_CONNECTED(INETP(desc))) inet_reply_error(INETP(desc), ENOTCONN); else if (tcp_send(desc, buf, len) == 0) inet_reply_ok(INETP(desc)); DEBUGF(("tcp_inet_command(%ld) }\r\n", (long)desc->inet.port)); } static void tcp_inet_commandv(ErlDrvData e, ErlIOVec* ev) { tcp_descriptor* desc = (tcp_descriptor*)e; desc->inet.caller = driver_caller(desc->inet.port); DEBUGF(("tcp_inet_commanv(%ld) {s=%d\r\n", (long)desc->inet.port, desc->inet.s)); if (!IS_CONNECTED(INETP(desc))) { if (desc->tcp_add_flags & TCP_ADDF_DELAYED_CLOSE_SEND) { desc->tcp_add_flags &= ~TCP_ADDF_DELAYED_CLOSE_SEND; if (desc->tcp_add_flags & TCP_ADDF_DELAYED_ECONNRESET) { /* Don't clear flag. Leave it enabled for the next receive * operation. */ inet_reply_error(INETP(desc), ECONNRESET); } else inet_reply_error_am(INETP(desc), am_closed); } else inet_reply_error(INETP(desc), ENOTCONN); } else if (desc->tcp_add_flags & TCP_ADDF_PENDING_SHUTDOWN) tcp_shutdown_error(desc, EPIPE); else if (tcp_sendv(desc, ev) == 0) inet_reply_ok(INETP(desc)); DEBUGF(("tcp_inet_commandv(%ld) }\r\n", (long)desc->inet.port)); } static void tcp_inet_flush(ErlDrvData e) { tcp_descriptor* desc = (tcp_descriptor*)e; if (!(desc->inet.event_mask & FD_WRITE)) { /* Discard send queue to avoid hanging port (OTP-7615) */ tcp_clear_output(desc); } if (desc->tcp_add_flags & TCP_ADDF_LINGER_ZERO) tcp_clear_output(desc); } static void tcp_inet_process_exit(ErlDrvData e, ErlDrvMonitor *monitorp) { tcp_descriptor* desc = (tcp_descriptor*)e; ErlDrvTermData who = driver_get_monitored_process(desc->inet.port,monitorp); int state = desc->inet.state; if ((state & INET_STATE_MULTI_ACCEPTING) == INET_STATE_MULTI_ACCEPTING) { int id,req; MultiTimerData *timeout; if (remove_multi_op(desc, &id, &req, who, &timeout, NULL) != 0) { return; } if (timeout != NULL) { remove_multi_timer(&(desc->mtd), desc->inet.port, timeout); } if (desc->multi_first == NULL) { sock_select(INETP(desc),FD_ACCEPT,0); desc->inet.state = INET_STATE_LISTENING; /* restore state */ } } else if ((state & INET_STATE_ACCEPTING) == INET_STATE_ACCEPTING) { int did,drid; ErlDrvTermData dcaller; deq_async(INETP(desc), &did, &dcaller, &drid); driver_cancel_timer(desc->inet.port); sock_select(INETP(desc),FD_ACCEPT,0); desc->inet.state = INET_STATE_LISTENING; /* restore state */ } } static void inet_stop_select(ErlDrvEvent event, void* _) { #ifdef __WIN32__ WSACloseEvent((HANDLE)event); #else sock_close((SOCKET)(long)event); #endif } /* The peer socket has closed, cleanup and send event */ static int tcp_recv_closed(tcp_descriptor* desc) { #ifdef DEBUG long port = (long) desc->inet.port; /* Used after driver_exit() */ #endif DEBUGF(("tcp_recv_closed(%ld): s=%d, in %s, line %d\r\n", port, desc->inet.s, __FILE__, __LINE__)); if (IS_BUSY(INETP(desc))) { /* A send is blocked */ desc->inet.caller = desc->inet.busy_caller; tcp_clear_output(desc); if (desc->busy_on_send) { driver_cancel_timer(desc->inet.port); desc->busy_on_send = 0; DEBUGF(("tcp_recv_closed(%ld): busy on send\r\n", port)); } desc->inet.state &= ~INET_F_BUSY; set_busy_port(desc->inet.port, 0); inet_reply_error_am(INETP(desc), am_closed); DEBUGF(("tcp_recv_closed(%ld): busy reply 'closed'\r\n", port)); } if (!desc->inet.active) { /* We must cancel any timer here ! */ driver_cancel_timer(desc->inet.port); /* passive mode do not terminate port ! */ tcp_clear_input(desc); if (desc->inet.exitf) { tcp_clear_output(desc); desc_close(INETP(desc)); } else { desc_close_read(INETP(desc)); } async_error_am_all(INETP(desc), am_closed); /* next time EXBADSEQ will be delivered */ DEBUGF(("tcp_recv_closed(%ld): passive reply all 'closed'\r\n", port)); } else { tcp_clear_input(desc); tcp_closed_message(desc); if (desc->inet.exitf) { driver_exit(desc->inet.port, 0); } else { desc_close_read(INETP(desc)); } DEBUGF(("tcp_recv_closed(%ld): active close\r\n", port)); } DEBUGF(("tcp_recv_closed(%ld): done\r\n", port)); return -1; } /* We have a read error determine the action */ static int tcp_recv_error(tcp_descriptor* desc, int err) { if (err != ERRNO_BLOCK) { if (IS_BUSY(INETP(desc))) { /* A send is blocked */ desc->inet.caller = desc->inet.busy_caller; tcp_clear_output(desc); if (desc->busy_on_send) { driver_cancel_timer(desc->inet.port); desc->busy_on_send = 0; } desc->inet.state &= ~INET_F_BUSY; set_busy_port(desc->inet.port, 0); inet_reply_error_am(INETP(desc), am_closed); } if (!desc->inet.active) { /* We must cancel any timer here ! */ driver_cancel_timer(desc->inet.port); tcp_clear_input(desc); if (desc->inet.exitf) { desc_close(INETP(desc)); } else { desc_close_read(INETP(desc)); } async_error_am_all(INETP(desc), error_atom(err)); } else { tcp_clear_input(desc); tcp_error_message(desc, err); /* first error */ tcp_closed_message(desc); /* then closed */ if (desc->inet.exitf) driver_exit(desc->inet.port, err); else desc_close_read(INETP(desc)); } return -1; } return 0; } /* ** Calculate number of bytes that remain to read before deliver ** Assume buf, ptr_start, ptr has been setup ** ** return > 0 if more to read ** = 0 if holding complete packet ** < 0 on error ** ** if return value == 0 then *len will hold the length of the first packet ** return value > 0 then if *len == 0 then value means upperbound ** *len > 0 then value means exact ** */ static int tcp_remain(tcp_descriptor* desc, int* len) { char* ptr = desc->i_ptr_start; int nfill = (desc->i_ptr - desc->i_buf->orig_bytes); /* filled */ int nsz = desc->i_bufsz - nfill; /* remain */ int n = desc->i_ptr - ptr; /* number of bytes read */ int tlen; tlen = packet_get_length(desc->inet.htype, ptr, n, desc->inet.psize, desc->i_bufsz, desc->inet.delimiter, &desc->http_state); DEBUGF(("tcp_remain(%ld): s=%d, n=%d, nfill=%d nsz=%d, tlen %d\r\n", (long)desc->inet.port, desc->inet.s, n, nfill, nsz, tlen)); if (tlen > 0) { if (tlen <= n) { /* got a packet */ *len = tlen; DEBUGF((" => nothing remain packet=%d\r\n", tlen)); return 0; } else { /* need known more */ if (tcp_expand_buffer(desc, tlen) < 0) return -1; *len = tlen - n; DEBUGF((" => remain=%d\r\n", *len)); return *len; } } else if (tlen == 0) { /* need unknown more */ *len = 0; if (nsz == 0) { if (nfill == n) { if (desc->inet.psize != 0 && desc->inet.psize > nfill) { if (tcp_expand_buffer(desc, desc->inet.psize) < 0) return -1; return desc->inet.psize; } else goto error; } DEBUGF((" => restart more=%d\r\n", nfill - n)); return nfill - n; } else { DEBUGF((" => more=%d \r\n", nsz)); return nsz; } } error: DEBUGF((" => packet error\r\n")); return -1; } /* ** Deliver all packets ready ** if len == 0 then check start with a check for ready packet */ static int tcp_deliver(tcp_descriptor* desc, int len) { int count = 0; int n; /* Poll for ready packet */ if (len == 0) { /* empty buffer or waiting for more input */ if ((desc->i_buf == NULL) || (desc->i_remain > 0)) return count; if ((n = tcp_remain(desc, &len)) != 0) { if (n < 0) /* packet error */ return n; if (len > 0) /* more data pending */ desc->i_remain = len; return count; } } while (len > 0) { int code; inet_input_count(INETP(desc), len); /* deliver binary? */ if (len*4 >= desc->i_buf->orig_size*3) { /* >=75% */ code = tcp_reply_binary_data(desc, desc->i_buf, (desc->i_ptr_start - desc->i_buf->orig_bytes), len); if (code < 0) return code; /* something after? */ if (desc->i_ptr_start + len == desc->i_ptr) { /* no */ tcp_clear_input(desc); } else { /* move trail to beginning of a new buffer */ ErlDrvBinary* bin = alloc_buffer(desc->i_bufsz); char* ptr_end = desc->i_ptr_start + len; int sz = desc->i_ptr - ptr_end; memcpy(bin->orig_bytes, ptr_end, sz); free_buffer(desc->i_buf); desc->i_buf = bin; desc->i_ptr_start = desc->i_buf->orig_bytes; desc->i_ptr = desc->i_ptr_start + sz; desc->i_remain = 0; } } else { code = tcp_reply_data(desc, desc->i_ptr_start, len); /* XXX The buffer gets thrown away on error (code < 0) */ /* Windows needs workaround for this in tcp_inet_event... */ if (code < 0) return code; desc->i_ptr_start += len; if (desc->i_ptr_start == desc->i_ptr) tcp_clear_input(desc); else desc->i_remain = 0; } count++; len = 0; if (!desc->inet.active) { if (!desc->busy_on_send) { driver_cancel_timer(desc->inet.port); } sock_select(INETP(desc),(FD_READ|FD_CLOSE),0); if (desc->i_buf != NULL) tcp_restart_input(desc); } else if (desc->i_buf != NULL) { if ((n = tcp_remain(desc, &len)) != 0) { if (n < 0) /* packet error */ return n; tcp_restart_input(desc); if (len > 0) desc->i_remain = len; len = 0; } } } return count; } static int tcp_recv(tcp_descriptor* desc, int request_len) { int n; int len; int nread; if (desc->i_buf == NULL) { /* allocte a read buffer */ int sz = (request_len > 0) ? request_len : desc->inet.bufsz; if ((desc->i_buf = alloc_buffer(sz)) == NULL) return -1; /* XXX: changing bufsz during recv SHOULD/MAY? affect * ongoing operation but is not now */ desc->i_bufsz = sz; /* use i_bufsz not i_buf->orig_size ! */ desc->i_ptr_start = desc->i_buf->orig_bytes; desc->i_ptr = desc->i_ptr_start; nread = sz; if (request_len > 0) desc->i_remain = request_len; else desc->i_remain = 0; } else if (request_len > 0) { /* we have a data in buffer and a request */ n = desc->i_ptr - desc->i_ptr_start; if (n >= request_len) return tcp_deliver(desc, request_len); else if (tcp_expand_buffer(desc, request_len) < 0) return tcp_recv_error(desc, ENOMEM); else desc->i_remain = nread = request_len - n; } else if (desc->i_remain == 0) { /* poll remain from buffer data */ if ((nread = tcp_remain(desc, &len)) < 0) return tcp_recv_error(desc, EMSGSIZE); else if (nread == 0) return tcp_deliver(desc, len); else if (len > 0) desc->i_remain = len; /* set remain */ } else /* remain already set use it */ nread = desc->i_remain; DEBUGF(("tcp_recv(%ld): s=%d about to read %d bytes...\r\n", (long)desc->inet.port, desc->inet.s, nread)); n = sock_recv(desc->inet.s, desc->i_ptr, nread, 0); if (IS_SOCKET_ERROR(n)) { int err = sock_errno(); if (err == ECONNRESET) { DEBUGF((" => detected close (connreset)\r\n")); if (desc->tcp_add_flags & TCP_ADDF_SHOW_ECONNRESET) return tcp_recv_error(desc, err); else return tcp_recv_closed(desc); } if (err == ERRNO_BLOCK) { DEBUGF((" => would block\r\n")); return 0; } else { DEBUGF((" => error: %d\r\n", err)); return tcp_recv_error(desc, err); } } else if (n == 0) { DEBUGF((" => detected close\r\n")); return tcp_recv_closed(desc); } DEBUGF((" => got %d bytes\r\n", n)); desc->i_ptr += n; if (desc->i_remain > 0) { desc->i_remain -= n; if (desc->i_remain == 0) return tcp_deliver(desc, desc->i_ptr - desc->i_ptr_start); } else { if ((nread = tcp_remain(desc, &len)) < 0) return tcp_recv_error(desc, EMSGSIZE); else if (nread == 0) return tcp_deliver(desc, len); else if (len > 0) desc->i_remain = len; /* set remain */ } return 0; } #ifdef __WIN32__ static int winsock_event_select(inet_descriptor *desc, int flags, int on) { int save_event_mask = desc->event_mask; desc->forced_events = 0; if (on) desc->event_mask |= flags; else desc->event_mask &= (~flags); DEBUGF(("port %d: winsock_event_select: " "flags=%02X, on=%d, event_mask=%02X\n", desc->port, flags, on, desc->event_mask)); /* The RIGHT WAY (TM) to do this is to make sure: A) The cancelling of all network events is done with NULL as the event parameter (bug in NT's winsock), B) The actual event handle is reset so that it is only raised if one of the requested network events is active, C) Avoid race conditions by making sure that the event cannot be set while we are preparing to set the correct network event mask. The simplest way to do it is to turn off all events, reset the event handle and then, if event_mask != 0, turn on the appropriate events again. */ if (WSAEventSelect(desc->s, NULL, 0) != 0) { DEBUGF(("port %d: winsock_event_select: " "WSAEventSelect returned error, code %d.\n", sock_errno())); desc->event_mask = save_event_mask; return -1; } if (!ResetEvent(desc->event)) { DEBUGF(("port %d: winsock_event_select: " "ResetEvent returned error, code %d.\n", GetLastError())); desc->event_mask = 0; return -1; } if (desc->event_mask != 0) { if (WSAEventSelect(desc->s, desc->event, desc->event_mask) != 0) { DEBUGF(("port %d: winsock_event_select: " "WSAEventSelect returned error, code %d.\n", sock_errno())); desc->event_mask = 0; return -1; } /* Now, WSAEventSelect() is trigged only when the queue goes from full to empty or from empty to full; therefore we need an extra test to see whether it is writeable, readable or closed... */ if ((desc->event_mask & FD_WRITE)) { int do_force = 1; if (desc->send_would_block) { TIMEVAL tmo = {0,0}; FD_SET fds; int ret; FD_ZERO(&fds); FD_SET(desc->s,&fds); do_force = (select(desc->s+1,0,&fds,0,&tmo) > 0); } if (do_force) { SetEvent(desc->event); desc->forced_events |= FD_WRITE; } } if ((desc->event_mask & (FD_READ|FD_CLOSE))) { int readable = 0; int closed = 0; TIMEVAL tmo = {0,0}; FD_SET fds; int ret; unsigned long arg; FD_ZERO(&fds); FD_SET(desc->s,&fds); ret = select(desc->s+1,&fds,0,0,&tmo); if (ret > 0) { ++readable; if (ioctlsocket(desc->s,FIONREAD,&arg) != 0) { ++closed; /* Which gives a FD_CLOSE event */ } else { closed = (arg == 0); } } if ((desc->event_mask & FD_READ) && readable && !closed) { SetEvent(desc->event); desc->forced_events |= FD_READ; } if ((desc->event_mask & FD_CLOSE) && closed) { SetEvent(desc->event); desc->forced_events |= FD_CLOSE; } } } return 0; } static void tcp_inet_event(ErlDrvData e, ErlDrvEvent event) { tcp_descriptor* desc = (tcp_descriptor*)e; WSANETWORKEVENTS netEv; int err; DEBUGF(("tcp_inet_event(%ld) {s=%d\r\n", (long)desc->inet.port, desc->inet.s)); if (WSAEnumNetworkEvents(desc->inet.s, desc->inet.event, &netEv) != 0) { DEBUGF((" => EnumNetworkEvents = %d\r\n", sock_errno() )); goto error; } DEBUGF((" => event=%02X, mask=%02X\r\n", netEv.lNetworkEvents, desc->inet.event_mask)); /* Add the forced events. */ netEv.lNetworkEvents |= desc->inet.forced_events; /* * Calling WSAEventSelect() with a mask of 0 doesn't always turn off * all events. To avoid acting on events we don't want, we mask * the events with mask for the events we really want. */ #ifdef DEBUG if ((netEv.lNetworkEvents & ~(desc->inet.event_mask)) != 0) { DEBUGF(("port %d: ... unexpected event: %d\r\n", desc->inet.port, netEv.lNetworkEvents & ~(desc->inet.event_mask))); } #endif netEv.lNetworkEvents &= desc->inet.event_mask; if (netEv.lNetworkEvents & FD_READ) { if (tcp_inet_input(desc, event) < 0) { goto error; } if (netEv.lNetworkEvents & FD_CLOSE) { /* * We must loop to read out the remaining packets (if any). */ for (;;) { DEBUGF(("Retrying read due to closed port\r\n")); /* XXX The buffer will be thrown away on error (empty que). Possible SMP FIXME. */ if (!desc->inet.active && (desc->inet.opt) == NULL) { goto error; } if (tcp_inet_input(desc, event) < 0) { goto error; } } } } if (netEv.lNetworkEvents & FD_WRITE) { desc->inet.send_would_block = 0; if (tcp_inet_output(desc, event) < 0) goto error; } if (netEv.lNetworkEvents & FD_CONNECT) { if ((err = netEv.iErrorCode[FD_CONNECT_BIT]) != 0) { async_error(INETP(desc), err); } else { tcp_inet_output(desc, event); } } else if (netEv.lNetworkEvents & FD_ACCEPT) { if ((err = netEv.iErrorCode[FD_ACCEPT_BIT]) != 0) async_error(INETP(desc), err); else tcp_inet_input(desc, event); } if (netEv.lNetworkEvents & FD_CLOSE) { /* error in err = netEv.iErrorCode[FD_CLOSE_BIT] */ DEBUGF(("Detected close in %s, line %d\r\n", __FILE__, __LINE__)); if (desc->tcp_add_flags & TCP_ADDF_SHOW_ECONNRESET) { err = netEv.iErrorCode[FD_CLOSE_BIT]; if (err == ECONNRESET) tcp_recv_error(desc, err); else if (err == ECONNABORTED && IS_CONNECTED(INETP(desc))) { /* translate this error to ECONNRESET */ tcp_recv_error(desc, ECONNRESET); } else tcp_recv_closed(desc); } else tcp_recv_closed(desc); } DEBUGF(("tcp_inet_event(%ld) }\r\n", (long)desc->inet.port)); return; error: DEBUGF(("tcp_inet_event(%ld) error}\r\n", (long)desc->inet.port)); return; } #endif /* __WIN32__ */ /* socket has input: ** 1. INET_STATE_ACCEPTING => non block accept ? ** 2. INET_STATE_CONNECTED => read input */ static int tcp_inet_input(tcp_descriptor* desc, HANDLE event) { int ret = 0; #ifdef DEBUG long port = (long) desc->inet.port; /* Used after driver_exit() */ #endif ASSERT(!INETP(desc)->is_ignored); DEBUGF(("tcp_inet_input(%ld) {s=%d\r\n", port, desc->inet.s)); /* XXX fprintf(stderr,"tcp_inet_input(%ld) {s=%d}\r\n",(long) desc->inet.port, desc->inet.s); */ if (desc->inet.state == INET_STATE_ACCEPTING) { SOCKET s; unsigned int len; inet_address remote; inet_async_op *this_op = desc->inet.opt; len = sizeof(desc->inet.remote); sys_memzero((char *) &remote, len); s = sock_accept(desc->inet.s, (struct sockaddr*) &remote, &len); if (s == INVALID_SOCKET && sock_errno() == ERRNO_BLOCK) { /* Just try again, no real error, just a ghost trigger from poll, keep the default return code and everything else as is */ goto done; } sock_select(INETP(desc),FD_ACCEPT,0); desc->inet.state = INET_STATE_LISTENING; /* restore state */ if (this_op != NULL) { driver_demonitor_process(desc->inet.port, &(this_op->monitor)); } driver_cancel_timer(desc->inet.port); /* posssibly cancel a timer */ if (s == INVALID_SOCKET) { ret = async_error(INETP(desc), sock_errno()); goto done; } else { ErlDrvTermData caller; tcp_descriptor* accept_desc; int err; if (desc->inet.opt == NULL) { /* No caller setup */ sock_close(s); ret = async_error(INETP(desc), EINVAL); goto done; } caller = desc->inet.opt->caller; if ((accept_desc = tcp_inet_copy(desc,s,caller,&err)) == NULL) { sock_close(s); ret = async_error(INETP(desc), err); goto done; } /* FIXME: may MUST lock port * 1 - Port is accessible via the erlang:ports() * 2 - Port is accessible via callers process_info(links) */ accept_desc->inet.remote = remote; SET_NONBLOCKING(accept_desc->inet.s); #ifdef __WIN32__ driver_select(accept_desc->inet.port, accept_desc->inet.event, ERL_DRV_READ, 1); #endif accept_desc->inet.state = INET_STATE_CONNECTED; ret = async_ok_port(INETP(desc), accept_desc->inet.dport); goto done; } } else if (desc->inet.state == INET_STATE_MULTI_ACCEPTING) { SOCKET s; unsigned int len; inet_address remote; int id,req; ErlDrvTermData caller; MultiTimerData *timeout; ErlDrvMonitor monitor; #ifdef HARDDEBUG int times = 0; #endif while (desc->inet.state == INET_STATE_MULTI_ACCEPTING) { len = sizeof(desc->inet.remote); sys_memzero((char *) &remote, len); s = sock_accept(desc->inet.s, (struct sockaddr*) &remote, &len); if (s == INVALID_SOCKET && sock_errno() == ERRNO_BLOCK) { /* Just try again, no real error, keep the last return code */ goto done; } #ifdef HARDDEBUG if (++times > 1) { erts_fprintf(stderr,"Accepts in one suite: %d :-)\r\n",times); } #endif if (deq_multi_op(desc,&id,&req,&caller,&timeout,&monitor) != 0) { ret = -1; goto done; } if (desc->multi_first == NULL) { sock_select(INETP(desc),FD_ACCEPT,0); desc->inet.state = INET_STATE_LISTENING; /* restore state */ } if (timeout != NULL) { remove_multi_timer(&(desc->mtd), desc->inet.port, timeout); } driver_demonitor_process(desc->inet.port, &monitor); if (s == INVALID_SOCKET) { /* Not ERRNO_BLOCK, that's handled right away */ ret = send_async_error(desc->inet.dport, id, caller, error_atom(sock_errno())); goto done; } else { tcp_descriptor* accept_desc; int err; if ((accept_desc = tcp_inet_copy(desc,s,caller,&err)) == NULL) { sock_close(s); ret = send_async_error(desc->inet.dport, id, caller, error_atom(err)); goto done; } accept_desc->inet.remote = remote; SET_NONBLOCKING(accept_desc->inet.s); #ifdef __WIN32__ driver_select(accept_desc->inet.port, accept_desc->inet.event, ERL_DRV_READ, 1); #endif accept_desc->inet.state = INET_STATE_CONNECTED; ret = send_async_ok_port(desc->inet.dport, id, caller, accept_desc->inet.dport); } } } else if (IS_CONNECTED(INETP(desc))) { ret = tcp_recv(desc, 0); goto done; } else { /* maybe a close op from connection attempt?? */ sock_select(INETP(desc),FD_ACCEPT,0); DEBUGF(("tcp_inet_input(%ld): s=%d bad state: %04x\r\n", port, desc->inet.s, desc->inet.state)); } done: DEBUGF(("tcp_inet_input(%ld) }\r\n", port)); return ret; } static int tcp_send_or_shutdown_error(tcp_descriptor* desc, int err) { int show_econnreset = (err == ECONNRESET && desc->tcp_add_flags & TCP_ADDF_SHOW_ECONNRESET); /* * If the port is busy, we must do some clean-up before proceeding. */ if (IS_BUSY(INETP(desc))) { desc->inet.caller = desc->inet.busy_caller; if (desc->busy_on_send) { driver_cancel_timer(desc->inet.port); desc->busy_on_send = 0; } desc->inet.state &= ~INET_F_BUSY; set_busy_port(desc->inet.port, 0); } /* * We used to handle "expected errors" differently from unexpected ones. * Now we handle all errors in the same way (unless the show_econnreset * socket option is enabled). We just have to distinguish between passive * and active sockets. */ DEBUGF(("driver_failure_eof(%ld) in %s, line %d\r\n", (long)desc->inet.port, __FILE__, __LINE__)); if (desc->inet.active) { if (show_econnreset) { tcp_error_message(desc, err); tcp_closed_message(desc); inet_reply_error(INETP(desc), err); } else { tcp_closed_message(desc); inet_reply_error_am(INETP(desc), am_closed); } if (desc->inet.exitf) driver_exit(desc->inet.port, 0); else desc_close(INETP(desc)); } else { tcp_clear_output(desc); tcp_clear_input(desc); tcp_close_check(desc); erl_inet_close(INETP(desc)); if (desc->inet.caller) { if (show_econnreset) inet_reply_error(INETP(desc), err); else inet_reply_error_am(INETP(desc), am_closed); } else { /* No blocking send op to reply to right now. * If next op is a send, make sure it returns {error,closed} * rather than {error,enotconn}. */ desc->tcp_add_flags |= TCP_ADDF_DELAYED_CLOSE_SEND; } /* * Make sure that the next receive operation gets an {error,closed} * result rather than {error,enotconn}. That means that the caller * can safely ignore errors in the send operations and handle them * in the receive operation. */ desc->tcp_add_flags |= TCP_ADDF_DELAYED_CLOSE_RECV; if (show_econnreset) { /* Return {error, econnreset} instead of {error, closed} * on send or receive operations. */ desc->tcp_add_flags |= TCP_ADDF_DELAYED_ECONNRESET; } } return -1; } static int tcp_send_error(tcp_descriptor* desc, int err) { /* EPIPE errors usually occur in one of three ways: * 1. We write to a socket when we've already shutdown() the write side. On * Windows the error returned for this is ESHUTDOWN rather than EPIPE. * 2. The TCP peer sends us an RST through no fault of our own (perhaps * by aborting the connection using SO_LINGER) and we then attempt * to write to the socket. On Linux and Windows we would actually * receive an ECONNRESET error for this, but on the BSDs, Darwin, * Illumos and presumably Solaris, it's an EPIPE. * 3. We cause the TCP peer to send us an RST by writing to a socket * after we receive a FIN from them. Our first write will be * successful, but if the they have closed the connection (rather * than just shutting down the write side of it) this will cause their * OS to send us an RST. Then, when we attempt to write to the socket * a second time, we will get an EPIPE error. On Windows we get an * ECONNABORTED. * * What we are going to do here is to treat all EPIPE messages that aren't * of type 1 as ECONNRESET errors. This will allow users who have the * show_econnreset socket option enabled to receive {error, econnreset} on * both send and recv operations to indicate that an RST has been received. */ #ifdef __WIN_32__ if (err == ECONNABORTED) err = ECONNRESET; #endif if (err == EPIPE && !(desc->tcp_add_flags & TCP_ADDF_SHUTDOWN_WR_DONE)) err = ECONNRESET; return tcp_send_or_shutdown_error(desc, err); } static int tcp_shutdown_error(tcp_descriptor* desc, int err) { return tcp_send_or_shutdown_error(desc, err); } /* ** Send non-blocking vector data */ static int tcp_sendv(tcp_descriptor* desc, ErlIOVec* ev) { ErlDrvSizeT sz; char buf[4]; ErlDrvSizeT h_len; ssize_t n; ErlDrvPort ix = desc->inet.port; ErlDrvSizeT len = ev->size; switch(desc->inet.htype) { case TCP_PB_1: put_int8(len, buf); h_len = 1; break; case TCP_PB_2: put_int16(len, buf); h_len = 2; break; case TCP_PB_4: put_int32(len, buf); h_len = 4; break; default: if (len == 0) return 0; h_len = 0; break; } inet_output_count(INETP(desc), len+h_len); if (h_len > 0) { ev->iov[0].iov_base = buf; ev->iov[0].iov_len = h_len; ev->size += h_len; } if ((sz = driver_sizeq(ix)) > 0) { driver_enqv(ix, ev, 0); if (sz+ev->size >= desc->high) { DEBUGF(("tcp_sendv(%ld): s=%d, sender forced busy\r\n", (long)desc->inet.port, desc->inet.s)); desc->inet.state |= INET_F_BUSY; /* mark for low-watermark */ desc->inet.busy_caller = desc->inet.caller; set_busy_port(desc->inet.port, 1); if (desc->send_timeout != INET_INFINITY) { desc->busy_on_send = 1; driver_set_timer(desc->inet.port, desc->send_timeout); } return 1; } } else { int vsize = (ev->vsize > MAX_VSIZE) ? MAX_VSIZE : ev->vsize; DEBUGF(("tcp_sendv(%ld): s=%d, about to send "LLU","LLU" bytes\r\n", (long)desc->inet.port, desc->inet.s, (llu_t)h_len, (llu_t)len)); if (INETP(desc)->is_ignored) { INETP(desc)->is_ignored |= INET_IGNORE_WRITE; n = 0; } else if (desc->tcp_add_flags & TCP_ADDF_DELAY_SEND) { n = 0; } else if (IS_SOCKET_ERROR(sock_sendv(desc->inet.s, ev->iov, vsize, &n, 0))) { if ((sock_errno() != ERRNO_BLOCK) && (sock_errno() != EINTR)) { int err = sock_errno(); DEBUGF(("tcp_sendv(%ld): s=%d, " "sock_sendv(size=2) errno = %d\r\n", (long)desc->inet.port, desc->inet.s, err)); return tcp_send_error(desc, err); } #ifdef __WIN32__ desc->inet.send_would_block = 1; #endif n = 0; } else if (n == ev->size) { ASSERT(NO_SUBSCRIBERS(&INETP(desc)->empty_out_q_subs)); return 0; } else { DEBUGF(("tcp_sendv(%ld): s=%d, only sent " LLU"/%d of "LLU"/%d bytes/items\r\n", (long)desc->inet.port, desc->inet.s, (llu_t)n, vsize, (llu_t)ev->size, ev->vsize)); } DEBUGF(("tcp_sendv(%ld): s=%d, Send failed, queuing\r\n", (long)desc->inet.port, desc->inet.s)); driver_enqv(ix, ev, n); if (!INETP(desc)->is_ignored) sock_select(INETP(desc),(FD_WRITE|FD_CLOSE), 1); } return 0; } /* ** Send non blocking data */ static int tcp_send(tcp_descriptor* desc, char* ptr, ErlDrvSizeT len) { int sz; char buf[4]; int h_len; int n; ErlDrvPort ix = desc->inet.port; SysIOVec iov[2]; switch(desc->inet.htype) { case TCP_PB_1: put_int8(len, buf); h_len = 1; break; case TCP_PB_2: put_int16(len, buf); h_len = 2; break; case TCP_PB_4: put_int32(len, buf); h_len = 4; break; default: if (len == 0) return 0; h_len = 0; break; } inet_output_count(INETP(desc), len+h_len); if ((sz = driver_sizeq(ix)) > 0) { if (h_len > 0) driver_enq(ix, buf, h_len); driver_enq(ix, ptr, len); if (sz+h_len+len >= desc->high) { DEBUGF(("tcp_send(%ld): s=%d, sender forced busy\r\n", (long)desc->inet.port, desc->inet.s)); desc->inet.state |= INET_F_BUSY; /* mark for low-watermark */ desc->inet.busy_caller = desc->inet.caller; set_busy_port(desc->inet.port, 1); if (desc->send_timeout != INET_INFINITY) { desc->busy_on_send = 1; driver_set_timer(desc->inet.port, desc->send_timeout); } return 1; } } else { iov[0].iov_base = buf; iov[0].iov_len = h_len; iov[1].iov_base = ptr; iov[1].iov_len = len; DEBUGF(("tcp_send(%ld): s=%d, about to send "LLU","LLU" bytes\r\n", (long)desc->inet.port, desc->inet.s, (llu_t)h_len, (llu_t)len)); if (INETP(desc)->is_ignored) { INETP(desc)->is_ignored |= INET_IGNORE_WRITE; n = 0; } else if (desc->tcp_add_flags & TCP_ADDF_DELAY_SEND) { sock_send(desc->inet.s, buf, 0, 0); n = 0; } else if (IS_SOCKET_ERROR(sock_sendv(desc->inet.s,iov,2,&n,0))) { if ((sock_errno() != ERRNO_BLOCK) && (sock_errno() != EINTR)) { int err = sock_errno(); DEBUGF(("tcp_send(%ld): s=%d,sock_sendv(size=2) errno = %d\r\n", (long)desc->inet.port, desc->inet.s, err)); return tcp_send_error(desc, err); } #ifdef __WIN32__ desc->inet.send_would_block = 1; #endif n = 0; } else if (n == len+h_len) { ASSERT(NO_SUBSCRIBERS(&INETP(desc)->empty_out_q_subs)); return 0; } DEBUGF(("tcp_send(%ld): s=%d, Send failed, queuing", (long)desc->inet.port, desc->inet.s)); if (n < h_len) { driver_enq(ix, buf+n, h_len-n); driver_enq(ix, ptr, len); } else { n -= h_len; driver_enq(ix, ptr+n, len-n); } if (!INETP(desc)->is_ignored) sock_select(INETP(desc),(FD_WRITE|FD_CLOSE), 1); } return 0; } /* shutdown on the socket: ** Assume caller has confirmed TCP_ADDF_PENDING_SHUTDOWN is set. */ static void tcp_shutdown_async(tcp_descriptor* desc) { int how; how = (desc->tcp_add_flags & TCP_ADDF_PENDING_SHUT_WR) ? TCP_SHUT_WR : TCP_SHUT_RDWR; if (IS_SOCKET_ERROR(sock_shutdown(INETP(desc)->s, how))) tcp_shutdown_error(desc, sock_errno()); else desc->tcp_add_flags |= TCP_ADDF_SHUTDOWN_WR_DONE; } static void tcp_inet_drv_output(ErlDrvData data, ErlDrvEvent event) { (void)tcp_inet_output((tcp_descriptor*)data, (HANDLE)event); } static void tcp_inet_drv_input(ErlDrvData data, ErlDrvEvent event) { (void)tcp_inet_input((tcp_descriptor*)data, (HANDLE)event); } /* socket ready for ouput: ** 1. INET_STATE_CONNECTING => non block connect ? ** 2. INET_STATE_CONNECTED => write output */ static int tcp_inet_output(tcp_descriptor* desc, HANDLE event) { int ret = 0; ErlDrvPort ix = desc->inet.port; ASSERT(!INETP(desc)->is_ignored); DEBUGF(("tcp_inet_output(%ld) {s=%d\r\n", (long)desc->inet.port, desc->inet.s)); if (desc->inet.state == INET_STATE_CONNECTING) { sock_select(INETP(desc),FD_CONNECT,0); driver_cancel_timer(ix); /* posssibly cancel a timer */ #ifndef __WIN32__ /* * XXX This is strange. This *should* work on Windows NT too, * but doesn't. An bug in Winsock 2.0 for Windows NT? * * See "Unix Netwok Programming", W.R.Stevens, p 412 for a * discussion about Unix portability and non blocking connect. */ #ifndef SO_ERROR { int sz = sizeof(desc->inet.remote); int code = sock_peer(desc->inet.s, (struct sockaddr*) &desc->inet.remote, &sz); if (IS_SOCKET_ERROR(code)) { desc->inet.state = INET_STATE_OPEN; /* restore state */ ret = async_error(INETP(desc), sock_errno()); goto done; } } #else { int error = 0; /* Has to be initiated, we check it */ unsigned int sz = sizeof(error); /* even if we get -1 */ int code = sock_getopt(desc->inet.s, SOL_SOCKET, SO_ERROR, (void *)&error, &sz); if ((code < 0) || error) { desc->inet.state = INET_STATE_OPEN; /* restore state */ ret = async_error(INETP(desc), error); goto done; } } #endif /* SO_ERROR */ #endif /* !__WIN32__ */ desc->inet.state = INET_STATE_CONNECTED; if (desc->inet.active) sock_select(INETP(desc),(FD_READ|FD_CLOSE),1); async_ok(INETP(desc)); } else if (IS_CONNECTED(INETP(desc))) { for (;;) { int vsize; ssize_t n; SysIOVec* iov; if ((iov = driver_peekq(ix, &vsize)) == NULL) { sock_select(INETP(desc), FD_WRITE, 0); send_empty_out_q_msgs(INETP(desc)); if (desc->tcp_add_flags & TCP_ADDF_PENDING_SHUTDOWN) tcp_shutdown_async(desc); goto done; } vsize = vsize > MAX_VSIZE ? MAX_VSIZE : vsize; DEBUGF(("tcp_inet_output(%ld): s=%d, About to send %d items\r\n", (long)desc->inet.port, desc->inet.s, vsize)); if (IS_SOCKET_ERROR(sock_sendv(desc->inet.s, iov, vsize, &n, 0))) { write_error: if ((sock_errno() != ERRNO_BLOCK) && (sock_errno() != EINTR)) { DEBUGF(("tcp_inet_output(%ld): sock_sendv(%d) errno = %d (errno %d)\r\n", (long)desc->inet.port, vsize, sock_errno(), errno)); ret = tcp_send_error(desc, sock_errno()); goto done; } #ifdef __WIN32__ desc->inet.send_would_block = 1; #endif goto done; } else if (n == 0) { /* Workaround for redhat/CentOS 6.3 returning 0 when sending packets with sizes > (max 32 bit signed int) */ size_t howmuch = 0x7FFFFFFF; /* max signed 32 bit */ int x; for(x = 0; x < vsize && iov[x].iov_len == 0; ++x) ; if (x < vsize) { if (howmuch > iov[x].iov_len) { howmuch = iov[x].iov_len; } n = sock_send(desc->inet.s, iov[x].iov_base,howmuch,0); if (IS_SOCKET_ERROR(n)) { goto write_error; } } } if (driver_deq(ix, n) <= desc->low) { if (IS_BUSY(INETP(desc))) { desc->inet.caller = desc->inet.busy_caller; desc->inet.state &= ~INET_F_BUSY; set_busy_port(desc->inet.port, 0); /* if we have a timer then cancel and send ok to client */ if (desc->busy_on_send) { driver_cancel_timer(desc->inet.port); desc->busy_on_send = 0; } inet_reply_ok(INETP(desc)); } } } } else { sock_select(INETP(desc),FD_CONNECT,0); DEBUGF(("tcp_inet_output(%ld): bad state: %04x\r\n", (long)desc->inet.port, desc->inet.state)); } done: DEBUGF(("tcp_inet_output(%ld) }\r\n", (long)desc->inet.port)); return ret; } /*----------------------------------------------------------------------------- UDP & SCTP (the latter in a 1<->M Mode) -----------------------------------------------------------------------------*/ #if defined(HAVE_SO_BSDCOMPAT) #if defined(__linux__) #include <sys/utsname.h> static int should_use_so_bsdcompat(void) { /* SMP: FIXME this is probably not SMP safe but may be ok anyway? */ static int init_done; static int so_bsdcompat_is_obsolete; if (!init_done) { struct utsname utsname; unsigned int version, patchlevel; init_done = 1; if (uname(&utsname) < 0) { fprintf(stderr, "uname: %s\r\n", strerror(sock_errno())); return 1; } /* Format is <version>.<patchlevel>.<sublevel><extraversion> where the first three are unsigned integers and the last is an arbitrary string. We only care about the first two. */ if (sscanf(utsname.release, "%u.%u", &version, &patchlevel) != 2) { fprintf(stderr, "uname: unexpected release '%s'\r\n", utsname.release); return 1; } /* SO_BSDCOMPAT is deprecated and triggers warnings in 2.5 kernels. It is a no-op in 2.4 but not in 2.2 kernels. */ if (version > 2 || (version == 2 && patchlevel >= 5)) so_bsdcompat_is_obsolete = 1; } return !so_bsdcompat_is_obsolete; } #else /* __linux__ */ #define should_use_so_bsdcompat() 1 #endif /* __linux__ */ #endif /* HAVE_SO_BSDCOMPAT */ #ifdef HAVE_SCTP /* Copy a descriptor, by creating a new port with same settings * as the descriptor desc. * return NULL on error (ENFILE no ports avail) */ static ErlDrvData packet_inet_start(ErlDrvPort port, char* args, int protocol); static udp_descriptor* sctp_inet_copy(udp_descriptor* desc, SOCKET s, int* err) { ErlDrvSizeT q_low, q_high; ErlDrvPort port = desc->inet.port; udp_descriptor* copy_desc; copy_desc = (udp_descriptor*) packet_inet_start(port, NULL, IPPROTO_SCTP); /* Setup event if needed */ if ((copy_desc->inet.s = s) != INVALID_SOCKET) { if ((copy_desc->inet.event = sock_create_event(INETP(copy_desc))) == INVALID_EVENT) { *err = sock_errno(); FREE(copy_desc); return NULL; } } /* Some flags must be inherited at this point */ copy_desc->inet.mode = desc->inet.mode; copy_desc->inet.exitf = desc->inet.exitf; copy_desc->inet.deliver = desc->inet.deliver; copy_desc->inet.htype = desc->inet.htype; copy_desc->inet.psize = desc->inet.psize; copy_desc->inet.stype = desc->inet.stype; copy_desc->inet.sfamily = desc->inet.sfamily; copy_desc->inet.hsz = desc->inet.hsz; copy_desc->inet.bufsz = desc->inet.bufsz; /* The new port will be linked and connected to the caller */ port = driver_create_port(port, desc->inet.caller, "sctp_inet", (ErlDrvData) copy_desc); if ((long)port == -1) { *err = ENFILE; FREE(copy_desc); return NULL; } /* Read busy msgq limits of parent */ q_low = q_high = ERL_DRV_BUSY_MSGQ_READ_ONLY; erl_drv_busy_msgq_limits(desc->inet.port, &q_low, &q_high); /* Write same busy msgq limits to child */ erl_drv_busy_msgq_limits(port, &q_low, &q_high); copy_desc->inet.port = port; copy_desc->inet.dport = driver_mk_port(port); *err = 0; return copy_desc; } #endif #ifdef HAVE_UDP static int packet_inet_init() { return 0; } static ErlDrvData packet_inet_start(ErlDrvPort port, char* args, int protocol) { /* "inet_start" returns "ErlDrvData", but in fact it is "inet_descriptor*", so we can preserve it as "ErlDrvData": */ ErlDrvData drvd = inet_start(port, sizeof(udp_descriptor), protocol); udp_descriptor* desc = (udp_descriptor*) drvd; if (desc == NULL) return ERL_DRV_ERROR_ERRNO; desc->read_packets = INET_PACKET_POLL; desc->i_bufsz = 0; desc->i_buf = NULL; desc->i_ptr = NULL; return drvd; } static ErlDrvData udp_inet_start(ErlDrvPort port, char *args) { ErlDrvData data = packet_inet_start(port, args, IPPROTO_UDP); set_default_msgq_limits(port); return data; } #endif #ifdef HAVE_SCTP static ErlDrvData sctp_inet_start(ErlDrvPort port, char *args) { ErlDrvData data = packet_inet_start(port, args, IPPROTO_SCTP); set_default_msgq_limits(port); return data; } #endif #ifdef HAVE_UDP static void packet_inet_stop(ErlDrvData e) { /* There should *never* be any "empty out q" subscribers on an UDP or SCTP socket! NB: as in "inet_start", we can always cast "ErlDRvData" into "udp_descriptor*" or "inet_descriptor*": */ udp_descriptor * udesc = (udp_descriptor*) e; inet_descriptor* descr = INETP(udesc); if (udesc->i_buf != NULL) { release_buffer(udesc->i_buf); udesc->i_buf = NULL; } ASSERT(NO_SUBSCRIBERS(&(descr->empty_out_q_subs))); inet_stop(descr); } static int packet_error(udp_descriptor* udesc, int err) { inet_descriptor * desc = INETP(udesc); if (!desc->active) async_error(desc, err); driver_failure_posix(desc->port, err); return -1; } /* ** Various functions accessible via "port_control" on the Erlang side: */ static ErlDrvSSizeT packet_inet_ctl(ErlDrvData e, unsigned int cmd, char* buf, ErlDrvSizeT len, char** rbuf, ErlDrvSizeT rsize) { ErlDrvSSizeT replen; udp_descriptor * udesc = (udp_descriptor *) e; inet_descriptor* desc = INETP(udesc); int type = SOCK_DGRAM; int af = AF_INET; switch(cmd) { case INET_REQ_OPEN: /* open socket and return internal index */ DEBUGF(("packet_inet_ctl(%ld): OPEN\r\n", (long)desc->port)); if (len != 2) { return ctl_error(EINVAL, rbuf, rsize); } switch (buf[0]) { case INET_AF_INET: af = AF_INET; break; #if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: af = AF_INET6; break; #endif #ifdef HAVE_SYS_UN_H case INET_AF_LOCAL: af = AF_UNIX; break; #endif default: return ctl_xerror(str_eafnosupport, rbuf, rsize); } switch (buf[1]) { case INET_TYPE_STREAM: type = SOCK_STREAM; break; case INET_TYPE_DGRAM: type = SOCK_DGRAM; break; #ifdef HAVE_SCTP case INET_TYPE_SEQPACKET: type = SOCK_SEQPACKET; break; #endif default: return ctl_error(EINVAL, rbuf, rsize); } replen = inet_ctl_open(desc, af, type, rbuf, rsize); if ((*rbuf)[0] != INET_REP_ERROR) { if (desc->active) sock_select(desc,FD_READ,1); #ifdef HAVE_SO_BSDCOMPAT /* * Make sure that sending UDP packets to a non existing port on an * existing machine doesn't close the socket. (Linux behaves this * way) */ if (should_use_so_bsdcompat()) { int one = 1; /* Ignore errors */ sock_setopt(desc->s, SOL_SOCKET, SO_BSDCOMPAT, &one, sizeof(one)); } #endif } return replen; case INET_REQ_FDOPEN: { /* pass in an open (and optionally bound) socket */ SOCKET s; int bound; DEBUGF(("packet inet_ctl(%ld): FDOPEN\r\n", (long)desc->port)); if (len != 6 && len != 10) { return ctl_error(EINVAL, rbuf, rsize); } switch (buf[0]) { case INET_AF_INET: af = AF_INET; break; #if defined(HAVE_IN6) && defined(AF_INET6) case INET_AF_INET6: af = AF_INET6; break; #endif #ifdef HAVE_SYS_UN_H case INET_AF_LOCAL: af = AF_UNIX; break; #endif default: return ctl_xerror(str_eafnosupport, rbuf, rsize); } switch (buf[1]) { case INET_TYPE_STREAM: type = SOCK_STREAM; break; case INET_TYPE_DGRAM: type = SOCK_DGRAM; break; #ifdef HAVE_SCTP case INET_TYPE_SEQPACKET: type = SOCK_SEQPACKET; break; #endif default: return ctl_error(EINVAL, rbuf, rsize); } s = (SOCKET)get_int32(buf+2); if (len == 6) bound = 1; else bound = get_int32(buf+2+4); replen = inet_ctl_fdopen(desc, af, type, s, bound, rbuf, rsize); if ((*rbuf)[0] != INET_REP_ERROR) { if (desc->active) sock_select(desc,FD_READ,1); #ifdef HAVE_SO_BSDCOMPAT /* * Make sure that sending UDP packets to a non existing port on an * existing machine doesn't close the socket. (Linux behaves this * way) */ if (should_use_so_bsdcompat()) { int one = 1; /* Ignore errors */ sock_setopt(desc->s, SOL_SOCKET, SO_BSDCOMPAT, &one, sizeof(one)); } #endif } return replen; } case INET_REQ_CLOSE: DEBUGF(("packet_inet_ctl(%ld): CLOSE\r\n", (long)desc->port)); erl_inet_close(desc); return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); case INET_REQ_CONNECT: { /* UDP and SCTP connect operations are completely different. UDP connect means only setting the default peer addr locally, so it is always synchronous. SCTP connect means actual establish- ing of an SCTP association with a remote peer, so it is async- ronous, and similar to TCP connect. However, unlike TCP, SCTP allows the socket to have multiple simultaneous associations: */ int code; char tbuf[2]; #ifdef HAVE_SCTP unsigned timeout; #endif DEBUGF(("packet_inet_ctl(%ld): CONNECT\r\n", (long)desc->port)); /* INPUT: [ Timeout(4), Port(2), Address(N) ] */ if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); #ifdef HAVE_SCTP if (IS_SCTP(desc)) { inet_address remote; char *xerror; if (IS_CONNECTING(desc)) return ctl_error(EINVAL, rbuf, rsize); if (len < 6) return ctl_error(EINVAL, rbuf, rsize); timeout = get_int32(buf); buf += 4; len -= 4; /* For SCTP, we do not set the peer's addr in desc->remote, as multiple peers are possible: */ if ((xerror = inet_set_faddress (desc->sfamily, &remote, &buf, &len)) != NULL) return ctl_xerror(xerror, rbuf, rsize); sock_select(desc, FD_CONNECT, 1); code = sock_connect(desc->s, &remote.sa, len); if (IS_SOCKET_ERROR(code) && (sock_errno() == EINPROGRESS)) { /* XXX: Unix only -- WinSock would have a different cond! */ desc->state = INET_STATE_CONNECTING; if (timeout != INET_INFINITY) driver_set_timer(desc->port, timeout); enq_async(desc, tbuf, INET_REQ_CONNECT); } else if (code == 0) { /* OK we are connected */ sock_select(desc, FD_CONNECT, 0); desc->state = INET_STATE_CONNECTED; enq_async(desc, tbuf, INET_REQ_CONNECT); async_ok(desc); } else { sock_select(desc, FD_CONNECT, 0); return ctl_error(sock_errno(), rbuf, rsize); } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } #endif /* UDP */ if (len == 0) { /* What does it mean??? NULL sockaddr??? */ sock_connect(desc->s, (struct sockaddr*) NULL, 0); desc->state &= ~INET_F_ACTIVE; enq_async(desc, tbuf, INET_REQ_CONNECT); async_ok (desc); } else if (len < 6) return ctl_error(EINVAL, rbuf, rsize); else { char *xerror; /* Ignore timeout */ buf += 4; len -= 4; if ((xerror = inet_set_faddress (desc->sfamily, &desc->remote, &buf, &len)) != NULL) return ctl_xerror(xerror, rbuf, rsize); code = sock_connect(desc->s, (struct sockaddr*) &desc->remote, len); if (IS_SOCKET_ERROR(code)) { sock_connect(desc->s, (struct sockaddr*) NULL, 0); desc->state &= ~INET_F_ACTIVE; return ctl_error(sock_errno(), rbuf, rsize); } else /* ok we are connected */ { enq_async(desc, tbuf, INET_REQ_CONNECT); desc->state |= INET_F_ACTIVE; async_ok (desc); } } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } #ifdef HAVE_SCTP case INET_REQ_LISTEN: { /* LISTEN is only for SCTP sockets, not UDP. This code is borrowed from the TCP section. Returns: {ok,[]} on success. */ int backlog; DEBUGF(("packet_inet_ctl(%ld): LISTEN\r\n", (long)desc->port)); if (!IS_SCTP(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); if (len != 2) return ctl_error(EINVAL, rbuf, rsize); backlog = get_int16(buf); if (IS_SOCKET_ERROR(sock_listen(desc->s, backlog))) return ctl_error(sock_errno(), rbuf, rsize); desc->state = INET_STATE_LISTENING; /* XXX: not used? */ return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } case SCTP_REQ_BINDX: { /* Multi-homing bind for SCTP: */ /* Add additional addresses by calling sctp_bindx with one address at a time, since this is what some OSes promise will work. Buff structure: Flags(1), ListItem,...: */ inet_address addr; char* curr; int add_flag, rflag; if (!IS_SCTP(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); curr = buf; add_flag = get_int8(curr); curr++; /* Make the real flags: */ rflag = add_flag ? SCTP_BINDX_ADD_ADDR : SCTP_BINDX_REM_ADDR; while (curr < buf+len) { char *xerror; /* List item format: see "inet_set_faddress": */ ErlDrvSizeT alen = buf + len - curr; xerror = inet_set_faddress (desc->sfamily, &addr, &curr, &alen); if (xerror != NULL) return ctl_xerror(xerror, rbuf, rsize); /* Invoke the call: */ if (p_sctp_bindx(desc->s, (struct sockaddr *)&addr, 1, rflag) < 0) return ctl_error(sock_errno(), rbuf, rsize); } desc->state = INET_STATE_OPEN; return ctl_reply(INET_REP_OK, NULL, 0, rbuf, rsize); } case SCTP_REQ_PEELOFF: { Uint32 assoc_id; udp_descriptor* new_udesc; int err; SOCKET new_socket; DEBUGF(("packet_inet_ctl(%ld): PEELOFF\r\n", (long)desc->port)); if (!IS_SCTP(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); if (! p_sctp_peeloff) return ctl_error(ENOTSUP, rbuf, rsize); if (len != 4) return ctl_error(EINVAL, rbuf, rsize); assoc_id = get_int32(buf); new_socket = p_sctp_peeloff(desc->s, assoc_id); if (IS_SOCKET_ERROR(new_socket)) { return ctl_error(sock_errno(), rbuf, rsize); } desc->caller = driver_caller(desc->port); if ((new_udesc = sctp_inet_copy(udesc, new_socket, &err)) == NULL) { sock_close(new_socket); desc->caller = 0; return ctl_error(err, rbuf, rsize); } new_udesc->inet.state = INET_STATE_CONNECTED; new_udesc->inet.stype = SOCK_STREAM; SET_NONBLOCKING(new_udesc->inet.s); inet_reply_ok_port(desc, new_udesc->inet.dport); (*rbuf)[0] = INET_REP; return 1; } #endif /* HAVE_SCTP */ case PACKET_REQ_RECV: { /* THIS IS A FRONT-END for "recv*" requests. It only enqueues the request and possibly returns the data immediately available. The actual data returning function is the back-end ("*input"): */ unsigned timeout; char tbuf[2]; DEBUGF(("packet_inet_ctl(%ld): RECV\r\n", (long)desc->port)); /* INPUT: Timeout(4), Length(4) */ if (!IS_OPEN(desc)) return ctl_xerror(EXBADPORT, rbuf, rsize); if (desc->active || (len != 8)) return ctl_error(EINVAL, rbuf, rsize); timeout = get_int32(buf); /* The 2nd arg, Length(4), is ignored for both UDP and SCTP protocols, since they are msg-oriented. */ if (enq_async(desc, tbuf, PACKET_REQ_RECV) < 0) return ctl_error(EALREADY, rbuf, rsize); if (packet_inet_input(udesc, desc->event) == 0) { if (timeout == 0) async_error_am(desc, am_timeout); else { if (timeout != INET_INFINITY) driver_set_timer(desc->port, timeout); } } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } default: /* Delegate the request to the INET layer. In particular, INET_REQ_BIND goes here. If the req is not recognised there either, an error is returned: */ return inet_ctl(desc, cmd, buf, len, rbuf, rsize); } } static void packet_inet_timeout(ErlDrvData e) { udp_descriptor * udesc = (udp_descriptor*) e; inet_descriptor * desc = INETP(udesc); if (!(desc->active)) sock_select(desc, FD_READ, 0); async_error_am (desc, am_timeout); } /* THIS IS A "send*" REQUEST; on the Erlang side: "port_command". ** input should be: Family Address buffer . ** For UDP, buffer (after Address) is just data to be sent. ** For SCTP, buffer contains a list representing 2 items: ** (1) 6 parms for sctp_sndrcvinfo, as in sctp_get_sendparams(); ** (2) 0+ real data bytes. ** There is no destination address -- SCTP send is performed over ** an existing association, using "sctp_sndrcvinfo" specified. */ static void packet_inet_command(ErlDrvData e, char* buf, ErlDrvSizeT len) { udp_descriptor * udesc= (udp_descriptor*) e; inet_descriptor* desc = INETP(udesc); char* ptr = buf; char* qtr; char* xerror; ErlDrvSizeT sz; int code; inet_address other; desc->caller = driver_caller(desc->port); if (!IS_OPEN(desc)) { inet_reply_error(desc, EINVAL); return; } #ifdef HAVE_SCTP if (IS_SCTP(desc)) { ErlDrvSizeT data_len; struct iovec iov[1]; /* For real data */ struct msghdr mhdr; /* Message wrapper */ struct sctp_sndrcvinfo *sri; /* The actual ancilary data */ union { /* For ancilary data */ struct cmsghdr hdr; char ancd[CMSG_SPACE(sizeof(*sri))]; } cmsg; if (len < SCTP_GET_SENDPARAMS_LEN) { inet_reply_error(desc, EINVAL); return; } /* The ancilary data */ sri = (struct sctp_sndrcvinfo *) (CMSG_DATA(&cmsg.hdr)); /* Get the "sndrcvinfo" from the buffer, advancing the "ptr": */ ptr = sctp_get_sendparams(sri, ptr); /* The ancilary data wrapper */ cmsg.hdr.cmsg_level = IPPROTO_SCTP; cmsg.hdr.cmsg_type = SCTP_SNDRCV; cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(*sri)); data_len = (buf + len) - ptr; /* The whole msg. * Solaris (XPG 4.2) requires iovlen >= 1 even for data_len == 0. */ mhdr.msg_name = NULL; /* Already connected */ mhdr.msg_namelen = 0; iov[0].iov_len = data_len; iov[0].iov_base = ptr; /* The real data */ mhdr.msg_iov = iov; mhdr.msg_iovlen = 1; mhdr.msg_control = cmsg.ancd; /* For ancilary data */ mhdr.msg_controllen = cmsg.hdr.cmsg_len; VALGRIND_MAKE_MEM_DEFINED(mhdr.msg_control, mhdr.msg_controllen); /*suppress "uninitialised bytes"*/ mhdr.msg_flags = 0; /* Not used with "sendmsg" */ inet_output_count(desc, data_len); /* Now do the actual sending. NB: "flags" in "sendmsg" itself are NOT used: */ code = sock_sendmsg(desc->s, &mhdr, 0); goto check_result_code; } #endif /* UDP socket. Even if it is connected, there is an address prefix here -- ignored for connected sockets: */ sz = len; qtr = ptr; xerror = inet_set_faddress(desc->sfamily, &other, &qtr, &sz); if (xerror != NULL) { inet_reply_error_am(desc, driver_mk_atom(xerror)); return; } len -= (qtr - ptr); ptr = qtr; /* Now "ptr" is the user data ptr, "len" is data length: */ inet_output_count(desc, len); if (desc->state & INET_F_ACTIVE) { /* connected (ignore address) */ code = sock_send(desc->s, ptr, len, 0); } else { code = sock_sendto(desc->s, ptr, len, 0, &other.sa, sz); } #ifdef HAVE_SCTP check_result_code: /* "code" analysis is the same for both SCTP and UDP cases above: */ #endif if (IS_SOCKET_ERROR(code)) { int err = sock_errno(); inet_reply_error(desc, err); } else inet_reply_ok(desc); } #endif #ifdef __WIN32__ static void packet_inet_event(ErlDrvData e, ErlDrvEvent event) { udp_descriptor * udesc = (udp_descriptor*)e; inet_descriptor* desc = INETP(udesc); WSANETWORKEVENTS netEv; if ((WSAEnumNetworkEvents)(desc->s, desc->event, &netEv) != 0) { DEBUGF(( "port %d: EnumNetwrokEvents = %d\r\n", desc->port, sock_errno() )); return; /* -1; */ } netEv.lNetworkEvents |= desc->forced_events; if (netEv.lNetworkEvents & FD_READ) { packet_inet_input(udesc, (HANDLE)event); } } #endif #ifdef HAVE_UDP static void packet_inet_drv_input(ErlDrvData e, ErlDrvEvent event) { (void) packet_inet_input((udp_descriptor*)e, (HANDLE)event); } /* ** THIS IS A BACK-END FOR "recv*" REQUEST, which actually receives the ** data requested, and delivers them to the caller: */ static int packet_inet_input(udp_descriptor* udesc, HANDLE event) { inet_descriptor* desc = INETP(udesc); int n; inet_address other; char abuf[sizeof(inet_address)]; /* buffer address; enough??? */ int packet_count = udesc->read_packets; int count = 0; /* number of packets delivered to owner */ #ifdef HAVE_SCTP struct msghdr mhdr; /* Top-level msg structure */ struct iovec iov[1]; /* Data or Notification Event */ char ancd[SCTP_ANC_BUFF_SIZE]; /* Ancillary Data */ int short_recv = 0; #endif while(packet_count--) { unsigned int len = sizeof(other); sys_memzero((char *) &other, sizeof(other)); /* udesc->i_buf is only kept between SCTP fragments */ if (udesc->i_buf == NULL) { udesc->i_bufsz = desc->bufsz + len; if ((udesc->i_buf = alloc_buffer(udesc->i_bufsz)) == NULL) return packet_error(udesc, ENOMEM); /* pointer to message start */ udesc->i_ptr = udesc->i_buf->orig_bytes + len; } else { ErlDrvBinary* tmp; int bufsz; bufsz = desc->bufsz + (udesc->i_ptr - udesc->i_buf->orig_bytes); if ((tmp = realloc_buffer(udesc->i_buf, bufsz)) == NULL) { release_buffer(udesc->i_buf); udesc->i_buf = NULL; return packet_error(udesc, ENOMEM); } else { udesc->i_ptr = tmp->orig_bytes + (udesc->i_ptr - udesc->i_buf->orig_bytes); udesc->i_buf = tmp; udesc->i_bufsz = bufsz; } } /* Note: On Windows NT, recvfrom() fails if the socket is connected. */ #ifdef HAVE_SCTP /* For SCTP we must use recvmsg() */ if (IS_SCTP(desc)) { iov->iov_base = udesc->i_ptr; /* Data will come here */ iov->iov_len = desc->bufsz; /* Remaining buffer space */ mhdr.msg_name = &other; /* Peer addr comes into "other" */ mhdr.msg_namelen = len; mhdr.msg_iov = iov; mhdr.msg_iovlen = 1; mhdr.msg_control = ancd; mhdr.msg_controllen = SCTP_ANC_BUFF_SIZE; mhdr.msg_flags = 0; /* To be filled by "recvmsg" */ /* Do the actual SCTP receive: */ n = sock_recvmsg(desc->s, &mhdr, 0); len = mhdr.msg_namelen; goto check_result; } #endif /* Use recv() instead on connected sockets. */ if ((desc->state & INET_F_ACTIVE)) { n = sock_recv(desc->s, udesc->i_ptr, desc->bufsz, 0); other = desc->remote; goto check_result; } n = sock_recvfrom(desc->s, udesc->i_ptr, desc->bufsz, 0, &other.sa, &len); check_result: /* Analyse the result: */ if (IS_SOCKET_ERROR(n)) { int err = sock_errno(); if (err != ERRNO_BLOCK) { /* real error */ release_buffer(udesc->i_buf); udesc->i_buf = NULL; if (!desc->active) { async_error(desc, err); driver_cancel_timer(desc->port); sock_select(desc,FD_READ,0); } else { /* This is for an active desc only: */ packet_error_message(udesc, err); } return count; } /* would block error - try again */ if (!desc->active #ifdef HAVE_SCTP || short_recv #endif ) { sock_select(desc,FD_READ,1); } return count; /* strange, not ready */ } #ifdef HAVE_SCTP if (IS_SCTP(desc) && (short_recv = !(mhdr.msg_flags & MSG_EOR))) { /* SCTP non-final message fragment */ inet_input_count(desc, n); udesc->i_ptr += n; continue; /* wait for more fragments */ } #endif { /* message received */ int code; void * extra = NULL; char * ptr; int nsz; inet_input_count(desc, n); udesc->i_ptr += n; inet_get_address(abuf, &other, &len); /* Copy formatted address to the buffer allocated; "len" is the actual length which must be <= than the original reserved. This means that the addr + data in the buffer are contiguous, but they may start not at the "orig_bytes", instead at "ptr": */ ASSERT (len <= sizeof(other)); ptr = udesc->i_buf->orig_bytes + sizeof(other) - len; sys_memcpy(ptr, abuf, len); nsz = udesc->i_ptr - ptr; /* Check if we need to reallocate binary */ if ((desc->mode == INET_MODE_BINARY) && (desc->hsz < (nsz - len)) && (nsz + BIN_REALLOC_MARGIN(desc->bufsz) < udesc->i_bufsz)) { ErlDrvBinary* tmp; int bufsz; bufsz = udesc->i_ptr - udesc->i_buf->orig_bytes; if ((tmp = realloc_buffer(udesc->i_buf, bufsz)) != NULL) { udesc->i_buf = tmp; udesc->i_bufsz = bufsz; udesc->i_ptr = NULL; /* not used from here */ } } #ifdef HAVE_SCTP if (IS_SCTP(desc)) extra = &mhdr; #endif /* Actual parsing and return of the data received, occur here: */ code = packet_reply_binary_data(desc, len, udesc->i_buf, (sizeof(other) - len), nsz, extra); free_buffer(udesc->i_buf); udesc->i_buf = NULL; if (code < 0) return count; count++; if (!desc->active) { driver_cancel_timer(desc->port); /* possibly cancel */ sock_select(desc,FD_READ,0); return count; /* passive mode (read one packet only) */ } } } /* while(packet_count--) { */ /* we ran out of tries (packet_count) either on an active socket * that got that many messages or an SCTP socket that got that * many message fragments but still not the final */ #ifdef HAVE_SCTP if (short_recv) { sock_select(desc, FD_READ, 1); } #endif return count; } static void packet_inet_drv_output(ErlDrvData e, ErlDrvEvent event) { (void) packet_inet_output((udp_descriptor*)e, (HANDLE)event); } /* UDP/SCTP socket ready for output: ** This is a Back-End for Non-Block SCTP Connect (INET_STATE_CONNECTING) */ static int packet_inet_output(udp_descriptor* udesc, HANDLE event) { inet_descriptor* desc = INETP(udesc); int ret = 0; ErlDrvPort ix = desc->port; DEBUGF(("packet_inet_output(%ld) {s=%d\r\n", (long)desc->port, desc->s)); if (desc->state == INET_STATE_CONNECTING) { sock_select(desc, FD_CONNECT, 0); driver_cancel_timer(ix); /* posssibly cancel a timer */ #ifndef __WIN32__ /* * XXX This is strange. This *should* work on Windows NT too, * but doesn't. An bug in Winsock 2.0 for Windows NT? * * See "Unix Netwok Programming", W.R.Stevens, p 412 for a * discussion about Unix portability and non blocking connect. */ #ifndef SO_ERROR { int sz = sizeof(desc->remote); int code = sock_peer(desc->s, (struct sockaddr*) &desc->remote, &sz); if (IS_SOCKET_ERROR(code)) { desc->state = INET_STATE_OPEN; /* restore state */ ret = async_error(desc, sock_errno()); goto done; } } #else { int error = 0; /* Has to be initiated, we check it */ unsigned int sz = sizeof(error); /* even if we get -1 */ int code = sock_getopt(desc->s, SOL_SOCKET, SO_ERROR, (void *)&error, &sz); if ((code < 0) || error) { desc->state = INET_STATE_OPEN; /* restore state */ ret = async_error(desc, error); goto done; } } #endif /* SO_ERROR */ #endif /* !__WIN32__ */ desc->state = INET_STATE_CONNECTED; async_ok(desc); } else { sock_select(desc,FD_CONNECT,0); DEBUGF(("packet_inet_output(%ld): bad state: %04x\r\n", (long)desc->port, desc->state)); } done: DEBUGF(("packet_inet_output(%ld) }\r\n", (long)desc->port)); return ret; } #endif /*---------------------------------------------------------------------------*/ #ifdef __WIN32__ /* * Although we no longer need to lookup all of winsock2 dynamically, * there are still some function(s) we need to look up. */ static void find_dynamic_functions(void) { char kernel_dll_name[] = "kernel32"; HMODULE module; module = GetModuleHandle(kernel_dll_name); fpSetHandleInformation = (module != NULL) ? (BOOL (WINAPI *)(HANDLE,DWORD,DWORD)) GetProcAddress(module,"SetHandleInformation") : NULL; } /* * We must make sure that the socket handles are not inherited * by port programs (if there are inherited, the sockets will not * get closed when the emulator terminates, and epmd and other Erlang * nodes will not notice that we have exited). * * XXX It is not clear whether this works/is necessary in Windows 95. * There could also be problems with Winsock implementations from other * suppliers than Microsoft. */ static SOCKET make_noninheritable_handle(SOCKET s) { if (s != INVALID_SOCKET) { if (fpSetHandleInformation != NULL) { (*fpSetHandleInformation)((HANDLE) s, HANDLE_FLAG_INHERIT, 0); } else { HANDLE non_inherited; HANDLE this_process = GetCurrentProcess(); if (DuplicateHandle(this_process, (HANDLE) s, this_process, &non_inherited, 0, FALSE, DUPLICATE_SAME_ACCESS)) { sock_close(s); s = (SOCKET) non_inherited; } } } return s; } #endif /* UDP for __WIN32__ */ /* * Multi-timers */ static void fire_multi_timers(MultiTimerData **first, ErlDrvPort port, ErlDrvData data) { ErlDrvTime next_timeout; if (!*first) { ASSERT(0); return; } #ifdef DEBUG { ErlDrvTime chk = erl_drv_monotonic_time(ERL_DRV_MSEC); ASSERT(chk >= (*first)->when); } #endif do { MultiTimerData *save = *first; *first = save->next; (*(save->timeout_function))(data,save->caller); FREE(save); if (*first == NULL) { return; } (*first)->prev = NULL; next_timeout = (*first)->when - erl_drv_monotonic_time(ERL_DRV_MSEC); } while (next_timeout <= 0); driver_set_timer(port, (unsigned long) next_timeout); } static void clean_multi_timers(MultiTimerData **first, ErlDrvPort port) { MultiTimerData *p; if (*first) { driver_cancel_timer(port); } while (*first) { p = *first; *first = p->next; FREE(p); } } static void remove_multi_timer(MultiTimerData **first, ErlDrvPort port, MultiTimerData *p) { if (p->prev != NULL) { p->prev->next = p->next; } else { driver_cancel_timer(port); *first = p->next; if (*first) { ErlDrvTime ntmo = (*first)->when - erl_drv_monotonic_time(ERL_DRV_MSEC); if (ntmo < 0) ntmo = 0; driver_set_timer(port, (unsigned long) ntmo); } } if (p->next != NULL) { p->next->prev = p->prev; } FREE(p); } static MultiTimerData *add_multi_timer(MultiTimerData **first, ErlDrvPort port, ErlDrvTermData caller, unsigned timeout, void (*timeout_fun)(ErlDrvData drv_data, ErlDrvTermData caller)) { MultiTimerData *mtd, *p, *s; mtd = ALLOC(sizeof(MultiTimerData)); mtd->when = erl_drv_monotonic_time(ERL_DRV_MSEC) + ((ErlDrvTime) timeout) + 1; mtd->timeout_function = timeout_fun; mtd->caller = caller; mtd->next = mtd->prev = NULL; for(p = *first,s = NULL; p != NULL; s = p, p = p->next) { if (p->when >= mtd->when) { break; } } if (!p) { if (!s) { *first = mtd; } else { s->next = mtd; mtd->prev = s; } } else { if (!s) { *first = mtd; } else { s->next = mtd; mtd->prev = s; } mtd->next = p; p->prev = mtd; } if (!s) { if (mtd->next) { driver_cancel_timer(port); } driver_set_timer(port,timeout); } return mtd; } /*----------------------------------------------------------------------------- Subscription -----------------------------------------------------------------------------*/ static int save_subscriber(subs, subs_pid) subs_list *subs; ErlDrvTermData subs_pid; { subs_list *tmp; if(NO_SUBSCRIBERS(subs)) { subs->subscriber = subs_pid; subs->next = NULL; } else { tmp = subs->next; subs->next = ALLOC(sizeof(subs_list)); if(subs->next == NULL) { subs->next = tmp; return 0; } subs->next->subscriber = subs_pid; subs->next->next = tmp; } return 1; } static void free_subscribers(subs) subs_list *subs; { subs_list *this; subs_list *next; this = subs->next; while(this) { next = this->next; FREE((void *) this); this = next; } subs->subscriber = NO_PROCESS; subs->next = NULL; } static void send_to_subscribers ( ErlDrvTermData port, subs_list *subs, int free_subs, ErlDrvTermData msg[], int msg_len ) { subs_list *this; subs_list *next; int first = 1; if(NO_SUBSCRIBERS(subs)) return; this = subs; while(this) { (void) erl_drv_send_term(port, this->subscriber, msg, msg_len); if(free_subs && !first) { next = this->next; FREE((void *) this); this = next; } else this = this->next; first = 0; } if(free_subs) { subs->subscriber = NO_PROCESS; subs->next = NULL; } } /* * A *very* limited socket interface. Used by the memory tracer * (erl_mtrace.c). */ #include "erl_sock.h" erts_sock_t erts_sock_open(void) { SOCKET s; if(!sock_init()) return ERTS_SOCK_INVALID_SOCKET; s = sock_open(AF_INET, SOCK_STREAM, 0); if (s == INVALID_SOCKET) return ERTS_SOCK_INVALID_SOCKET; return (erts_sock_t) s; } void erts_sock_close(erts_sock_t socket) { if (socket != ERTS_SOCK_INVALID_SOCKET) sock_close((SOCKET) socket); } int erts_sock_connect(erts_sock_t socket, byte *ip_addr, int len, Uint16 port) { SOCKET s = (SOCKET) socket; char buf[2 + 4], *p; ErlDrvSizeT blen = 6; inet_address addr; if (socket == ERTS_SOCK_INVALID_SOCKET || len != 4) return 0; put_int16(port, buf); memcpy((void *) (buf + 2), (void *) ip_addr, 4); p = buf; if (inet_set_address(AF_INET, &addr, &p, &blen) != NULL) return 0; if (IS_SOCKET_ERROR (sock_connect(s, (struct sockaddr *) &addr, blen))) return 0; return 1; } Sint erts_sock_send(erts_sock_t socket, const void *buf, Sint len) { Sint result = (Sint) sock_send((SOCKET) socket, buf, (size_t) len, 0); if (IS_SOCKET_ERROR(result)) return SOCKET_ERROR; return result; } int erts_sock_gethostname(char *buf, int bufsz) { if (IS_SOCKET_ERROR(sock_hostname(buf, bufsz))) return SOCKET_ERROR; return 0; } int erts_sock_errno() { return sock_errno(); }
153199.c
#include <stdio.h> #include <regex.h> #include <string.h> #include <cs50.h> bool is_number(string digits); string is_valid(string digits); bool validate_luhn_algorithm(string digits); bool is_mastercard(string digits); bool is_visa(string digits); bool is_amex(string digits); int main(void) { string digits = get_string("Number: "); while (is_number(digits) != 0) { digits = get_string("Number: "); } printf("%s\n", is_valid(digits)); } bool is_number(string digits) { regex_t regex; regcomp(&regex, "[^A-Za-z\\-]", 0); return regexec(&regex, digits, 0, NULL, 0); } string is_valid(string digits) { if (strlen(digits) < 13) { return "INVALID"; } bool valid = validate_luhn_algorithm(digits); if (!valid) { return "INVALID"; } if (is_visa(digits)) { return "VISA"; } if (is_amex(digits)) { return "AMEX"; } if (is_mastercard(digits)) { return "MASTERCARD"; } return "INVALID"; } bool validate_luhn_algorithm(string digits) { int sum = 0; for (int i = strlen(digits) - 2; i < strlen(digits); i = i - 2) { int digit = (digits[i] - 48) * 2; if (digit > 9) { sum += (int)(digit / 10); sum += digit % 10; } else { sum += (int)digit; } } for (int k = strlen(digits) - 1; k < strlen(digits); k = k - 2) { sum += digits[k] - 48; } if (sum % 10 == 0) { return true; } return false; } bool is_mastercard(string digits) { return digits[0] == '5' && (digits[1] == '1' || digits[1] == '2' || digits[1] == '3' || digits[1] == '4' || digits[1] == '5'); } bool is_amex(string digits) { return digits[0] == '3' && (digits[1] == '4' || digits[1] == '7'); } bool is_visa(string digits) { return digits[0] == '4'; }
846145.c
/* * Copyright (c) 2017 rxi * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <errno.h> #include <snowflake/logger.h> #include <snowflake/platform.h> #include <string.h> static struct { void *udata; log_LockFn lock; FILE *fp; int level; int quiet; const char *path; } L; static const char *level_names[] = { "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" }; #ifdef LOG_USE_COLOR static const char *level_colors[] = { "\x1b[94m", "\x1b[36m", "\x1b[32m", "\x1b[33m", "\x1b[31m", "\x1b[35m" }; #endif static void lock(void) { if (L.lock) { L.lock(L.udata, 1); } } static void unlock(void) { if (L.lock) { L.lock(L.udata, 0); } } void log_set_udata(void *udata) { L.udata = udata; } void log_set_lock(log_LockFn fn) { L.lock = fn; } void log_set_fp(FILE *fp) { L.fp = fp; } int log_get_level() { return L.level; } void log_set_level(int level) { L.level = level; } void log_set_quiet(int enable) { L.quiet = enable ? 1 : 0; } void log_log(int level, const char *file, int line, const char *ns, const char *fmt, ...) { va_list args; va_start(args, fmt); log_log_va_list(level, file, line, ns, fmt, args); va_end(args); } void log_log_va_list(int level, const char *file, int line, const char *ns, const char *fmt, va_list args) { if (level < L.level) { return; } char tsbuf[50]; /* timestamp buffer*/ sf_log_timestamp(tsbuf, sizeof(tsbuf)); char *basename = sf_filename_from_path(file); /* Acquire lock */ lock(); /* Log to stderr */ if (!L.quiet) { #ifdef LOG_USE_COLOR fprintf( stderr, SF_LOG_TIMESTAMP_FORMAT_COLOR, tsbuf, level_colors[level], level_names[level], ns, basename, line); #else fprintf( stderr, SF_LOG_TIMESTAMP_FORMAT, buf, level_names[level], namespace, basename, line); #endif // va_list can only be consumed once. Make a copy here in case both // console and file logging are turned on. va_list copy; va_copy(copy, args); log_masked_va_list(stderr, fmt, copy); va_end(copy); fprintf(stderr, "\n"); fflush(stderr); } /* Log to file */ /* Delay the log file creation to when there is log needs to write * to avoid empty log files. */ if (!(L.fp) && L.path) { L.fp = fopen(L.path, "w+"); if (!(L.fp)) { fprintf(stderr, "Error opening file from file path: %s\nError code: %s\n", L.path, strerror(errno)); L.path = NULL; } } if (L.fp) { fprintf( L.fp, SF_LOG_TIMESTAMP_FORMAT, tsbuf, level_names[level], ns, basename, line); log_masked_va_list(L.fp, fmt, args); fprintf(L.fp, "\n"); fflush(L.fp); } /* Release lock */ unlock(); } SF_LOG_LEVEL log_from_str_to_level(const char *level_in_str) { if (level_in_str == NULL) { return SF_LOG_FATAL; } int idx = 0, last = 0; for (idx = 0, last = (int) SF_LOG_FATAL; idx <= last; ++idx) { size_t len = strlen(level_names[idx]); if (sf_strncasecmp(level_names[idx], level_in_str, len) == 0) { return (SF_LOG_LEVEL) idx; } } return SF_LOG_FATAL; } void log_set_path(const char *path) { L.path = path; } void log_close() { /* Acquire lock */ lock(); if (L.fp) { fclose(L.fp); L.fp = NULL; } L.path = NULL; /* Release lock */ unlock(); }
861603.c
/* * Copyright (C) 2005-2013 Sourcefire, Inc. All Rights Reserved * * This file may contain proprietary rules that were created, tested and * certified by Sourcefire, Inc. (the "VRT Certified Rules") as well as * rules that were created by Sourcefire and other third parties and * distributed under the GNU General Public License (the "GPL Rules"). The * VRT Certified Rules contained in this file are the property of * Sourcefire, Inc. Copyright 2005 Sourcefire, Inc. All Rights Reserved. * The GPL Rules created by Sourcefire, Inc. are the property of * Sourcefire, Inc. Copyright 2002-2005 Sourcefire, Inc. All Rights * Reserved. All other GPL Rules are owned and copyrighted by their * respective owners (please see www.snort.org/contributors for a list of * owners and their respective copyrights). In order to determine what * rules are VRT Certified Rules or GPL Rules, please refer to the VRT * Certified Rules License Agreement. */ //#define DEBUG #ifdef DEBUG #define DEBUG_SO(code) code #else #define DEBUG_SO(code) #endif #include "sf_snort_plugin_api.h" #include "sf_snort_packet.h" #include "so-util.h" // tls handshake types #define HS_CLIENT_HELLO 1 // client hello #define HS_SERVER_HELLO 2 // server hello // tls record datatype typedef struct { uint16_t version; // tls record version uint8_t hs_type; // tls handshake type uint16_t hs_version; // tls handshake version uint8_t session_id_len; // tls session id length uint8_t session_id_msb; // tls session id msb } tls_record; // tls session datatype typedef struct { uint8_t id_len; // session id length uint8_t id_msb; // session id msb } tls_session_data; /* declare detection functions */ int rule41547eval(void *p); int rule41548eval(void *p); /* declare rule data structures */ /* flow:established, to_server; */ static FlowFlags rule41547flow0 = { FLOW_ESTABLISHED|FLOW_TO_SERVER }; static RuleOption rule41547option0 = { OPTION_TYPE_FLOWFLAGS, { &rule41547flow0 } }; /* ssl_state:client_hello; */ static PreprocessorOption rule41547ssl_state1 = { "ssl_state", "client_hello", 0, NULL, NULL, NULL }; static RuleOption rule41547option1 = { OPTION_TYPE_PREPROCESSOR, { &rule41547ssl_state1 } }; // content:"|16 03|", depth 2, fast_pattern; static ContentInfo rule41547content2 = { (uint8_t *) "|16 03|", /* pattern */ 2, /* depth */ 0, /* offset */ CONTENT_FAST_PATTERN|CONTENT_BUF_NORMALIZED, /* flags */ NULL, /* holder for boyer/moore PTR */ NULL, /* more holder info - byteform */ 0, /* byteform length */ 0 /* increment length*/ }; static RuleOption rule41547option2 = { OPTION_TYPE_CONTENT, { &rule41547content2 } }; /* references for sid 41547 */ /* reference: url "tools.ietf.org/html/rfc5077"; */ static RuleReference rule41547ref1 = { "url", /* type */ "tools.ietf.org/html/rfc5077" /* value */ }; static RuleReference *rule41547refs[] = { &rule41547ref1, NULL }; /* metadata for sid 41547 */ /* metadata:service ssl, policy balanced-ips alert, policy security-ips alert; */ static RuleMetaData rule41547service1 = { "service ssl" }; static RuleMetaData rule41547policy1 = { "policy balanced-ips alert" }; static RuleMetaData rule41547policy2 = { "policy security-ips alert" }; static RuleMetaData rule41547policy3 = { "policy max-detect-ips drop" }; static RuleMetaData *rule41547metadata[] = { &rule41547service1, &rule41547policy1, &rule41547policy2, &rule41547policy3, NULL }; RuleOption *rule41547options[] = { &rule41547option0, &rule41547option1, &rule41547option2, NULL }; Rule rule41547 = { /* rule header, akin to => tcp any any -> any any */ { IPPROTO_TCP, /* proto */ "$EXTERNAL_NET", /* SRCIP */ "any", /* SRCPORT */ 0, /* DIRECTION */ "$HOME_NET", /* DSTIP */ "443", /* DSTPORT */ }, /* metadata */ { 3, /* genid */ 41547, /* sigid */ 3, /* revision */ "protocol-command-decode", /* classification */ 0, /* hardcoded priority */ "SERVER-OTHER TLS client hello session resumption detected", /* message */ rule41547refs, /* ptr to references */ rule41547metadata /* ptr to metadata */ }, rule41547options, /* ptr to rule options */ &rule41547eval, /* uncomment to use custom detection function */ 0 /* am I initialized yet? */ }; /* flow:established, to_client; */ static FlowFlags rule41548flow0 = { FLOW_ESTABLISHED|FLOW_TO_CLIENT }; static RuleOption rule41548option0 = { OPTION_TYPE_FLOWFLAGS, { &rule41548flow0 } }; /* ssl_state:server_hello; */ static PreprocessorOption rule41548ssl_state1 = { "ssl_state", "server_hello", 0, NULL, NULL, NULL }; static RuleOption rule41548option1 = { OPTION_TYPE_PREPROCESSOR, { &rule41548ssl_state1 } }; // content:"|16 03|", depth 2, fast_pattern; static ContentInfo rule41548content2 = { (uint8_t *) "|16 03|", /* pattern */ 2, /* depth */ 0, /* offset */ CONTENT_FAST_PATTERN|CONTENT_BUF_NORMALIZED, /* flags */ NULL, /* holder for boyer/moore PTR */ NULL, /* more holder info - byteform */ 0, /* byteform length */ 0 /* increment length*/ }; static RuleOption rule41548option2 = { OPTION_TYPE_CONTENT, { &rule41548content2 } }; /* references for sid 41548 */ /* reference: cve "2016-9244"; */ static RuleReference rule41548ref1 = { "cve", /* type */ "2016-9244" /* value */ }; /* reference: url "support.f5.com/csp/article/K05121675"; */ static RuleReference rule41548ref2 = { "url", /* type */ "support.f5.com/csp/article/K05121675" /* value */ }; static RuleReference *rule41548refs[] = { &rule41548ref1, &rule41548ref2, NULL }; /* metadata for sid 41548 */ /* metadata:service ssl, policy balanced-ips drop, policy security-ips drop; */ static RuleMetaData rule41548service1 = { "service ssl" }; static RuleMetaData rule41548policy1 = { "policy balanced-ips drop" }; static RuleMetaData rule41548policy2 = { "policy security-ips drop" }; static RuleMetaData rule41548policy3 = { "policy max-detect-ips drop" }; static RuleMetaData *rule41548metadata[] = { &rule41548service1, &rule41548policy1, &rule41548policy2, &rule41548policy3, NULL }; RuleOption *rule41548options[] = { &rule41548option0, &rule41548option1, &rule41548option2, NULL }; Rule rule41548 = { /* rule header, akin to => tcp any any -> any any */ { IPPROTO_TCP, /* proto */ "$HOME_NET", /* SRCIP */ "443", /* SRCPORT */ 0, /* DIRECTION */ "$EXTERNAL_NET", /* DSTIP */ "any", /* DSTPORT */ }, /* metadata */ { 3, /* genid */ 41548, /* sigid */ 3, /* revision */ "attempted-recon", /* classification */ 0, /* hardcoded priority */ "SERVER-OTHER F5 BIG-IP TLS session ticket implementation uninitialized memory disclosure attempt", /* message */ rule41548refs, /* ptr to references */ rule41548metadata /* ptr to metadata */ }, rule41548options, /* ptr to rule options */ &rule41548eval, /* uncomment to use custom detection function */ 0 /* am I initialized yet? */ }; /* detection functions */ int rule41547eval(void *p) { const uint8_t *cursor_normal = 0, *end_of_buffer = 0; SFSnortPacket *sp = (SFSnortPacket *) p; tls_record record = {0}; tls_session_data* tls_session = NULL; if(sp == NULL) return RULE_NOMATCH; if(sp->payload == NULL) return RULE_NOMATCH; // flow:established, to_server; if(checkFlow(p, rule41547options[0]->option_u.flowFlags) <= 0) return RULE_NOMATCH; // ssl_state:client_hello; if(preprocOptionEval(p, rule41547options[1]->option_u.preprocOpt, &cursor_normal) <= 0) return RULE_NOMATCH; // content:"|16 03|", depth 2, fast_pattern; if(contentMatch(p, rule41547options[2]->option_u.content, &cursor_normal) <= 0) return RULE_NOMATCH; if(getBuffer(p, CONTENT_BUF_NORMALIZED, &cursor_normal, &end_of_buffer) <= 0) return RULE_NOMATCH; // TLS record: // type (1 byte) // version (2 bytes) // length (2 bytes) // Handshake Protocol record: // handshake type (1 byte) // length (3 bytes) // version (2 bytes) // random (32 bytes) // session id_len (1 byte) // session id_msb (1 byte) if(cursor_normal + 45 > end_of_buffer) return RULE_NOMATCH; record.session_id_len = *(cursor_normal+43); // if it is an initial session (id_len == 0) (true in most cases) // or vuln impossible (id_len >= 32), bail. if(record.session_id_len == 0 || record.session_id_len >= 32) return RULE_NOMATCH; // check tls and hs fields for validity record.version = read_big_16(cursor_normal+1); record.hs_type = *(cursor_normal+5); record.hs_version = read_big_16(cursor_normal+9); switch(record.version) { case 0x0300: // SSLv3 case 0x0301: // TLSv1.0 case 0x0302: // TLSv1.1 case 0x0303: // TLSv1.2 break; default: // unknown tls version, bail. return RULE_NOMATCH; } if(record.hs_type != HS_CLIENT_HELLO) return RULE_NOMATCH; switch(record.hs_version) { case 0x0300: // SSLv3 case 0x0301: // TLSv1.0 case 0x0302: // TLSv1.1 case 0x0303: // TLSv1.2 break; default: // unknown handshake version, bail. return RULE_NOMATCH; } // at this point we know we are in a session resumption client // hello packet with a session_id_len in the vulnerable range record.session_id_msb = *(cursor_normal+44); // retrieve the tls_session for this stream #ifndef BEFORE_2091300 getRuleData(sp, &(rule41547.info), (void*)(&tls_session), NULL); #else tls_session = (tls_session_data*)getRuleData(sp, rule41547.info.sigID); #endif // allocate and initalize the tls_session if it does not exist if(!tls_session) { tls_session = (tls_session_data*)allocRuleData(sizeof(tls_session_data)); if(tls_session == NULL) return RULE_NOMATCH; #ifndef BEFORE_2091300 if(storeRuleData(sp, &(rule41547.info), tls_session, NULL) < 0) #else if(storeRuleData(sp, tls_session, rule41547.info.sigID, &freeRuleData) < 0) #endif { freeRuleData(tls_session); return RULE_NOMATCH; } } // store session id_len and id_msb in tls_session data for future checks tls_session->id_len = record.session_id_len; tls_session->id_msb = record.session_id_msb; return RULE_NOMATCH; } int rule41548eval(void *p) { const uint8_t *cursor_normal = 0, *end_of_buffer = 0; SFSnortPacket *sp = (SFSnortPacket *) p; tls_record record = {0}; tls_session_data* tls_session = NULL; if(sp == NULL) return RULE_NOMATCH; if(sp->payload == NULL) return RULE_NOMATCH; // flow:established, to_client; if(checkFlow(p, rule41548options[0]->option_u.flowFlags) <= 0) return RULE_NOMATCH; // ssl_state:server_hello; if(preprocOptionEval(p, rule41548options[1]->option_u.preprocOpt, &cursor_normal) <= 0) return RULE_NOMATCH; // content:"|16 03|", depth 2, fast_pattern; if(contentMatch(p, rule41548options[2]->option_u.content, &cursor_normal) <= 0) return RULE_NOMATCH; if(getBuffer(p, CONTENT_BUF_NORMALIZED, &cursor_normal, &end_of_buffer) <= 0) return RULE_NOMATCH; // TLS record: // type (1 byte) // version (2 bytes) // length (2 bytes) // Handshake Protocol record: // handshake type (1 byte) // length (3 bytes) // version (2 bytes) // random (32 bytes) // session id_len (1 byte) // session id_msb (1 byte) if(cursor_normal + 45 > end_of_buffer) return RULE_NOMATCH; record.session_id_len = *(cursor_normal+43); // F5 BIG-IP always sets session_id_len to 32 if(record.session_id_len != 32) return RULE_NOMATCH; // retrieve the tls_session for this stream #ifndef BEFORE_2091300 getRuleData(sp, &(rule41547.info), (void*)(&tls_session), NULL); #else tls_session = (tls_session_data*)getRuleData(sp, rule41547.info.sigID); #endif // if no tls_session data, server is defining a new session, bail. if(!tls_session) { DEBUG_SO(fprintf(stderr,"no tls_session data, server defining new session, bailing.\n");) return RULE_NOMATCH; } // check tls and hs fields for validity record.version = read_big_16(cursor_normal+1); record.hs_type = *(cursor_normal+5); record.hs_version = read_big_16(cursor_normal+9); switch(record.version) { case 0x0300: // SSLv3 case 0x0301: // TLSv1.0 case 0x0302: // TLSv1.1 case 0x0303: // TLSv1.2 break; default: // unknown tls version, bail. return RULE_NOMATCH; } if(record.hs_type != HS_SERVER_HELLO) return RULE_NOMATCH; switch(record.hs_version) { case 0x0300: // SSLv3 case 0x0301: // TLSv1.0 case 0x0302: // TLSv1.1 case 0x0303: // TLSv1.2 break; default: // unknown handshake version, bail. return RULE_NOMATCH; } record.session_id_msb = *(cursor_normal+44); DEBUG_SO(fprintf(stderr,"tls_session->id_len = %d\n",tls_session->id_len);) DEBUG_SO(fprintf(stderr,"record.session_id_len = %d\n",record.session_id_len);) DEBUG_SO(fprintf(stderr,"tls_session->id_msb = %02X\n",tls_session->id_msb);) DEBUG_SO(fprintf(stderr,"record.session_id_msb = %02X\n\n",record.session_id_msb);) // server is resuming a previous session, check vuln condition. if(tls_session->id_len < record.session_id_len) if(tls_session->id_msb == record.session_id_msb) return RULE_MATCH; return RULE_NOMATCH; } /* Rule *rules[] = { &rule41547, &rule41548, NULL }; */
45383.c
#include "stdio.h" #include "stdlib.h" #include "stdint.h" #include "string.h" #include "stdarg.h" #include "ctype.h" #include "../kernel/libs/syscalls.h" char *_itoa(int, char *, int, int); char *_ltoa(long, char *, int, int); //char *_lltoa(long long, char *, int, int); int puts(const char *str) { int len = strlen(str); text_putstring(str); text_putchar('\n'); return ++len; } #define MOD_NONE 0 #define MOD_BYTE 1 #define MOD_SHORT 2 #define MOD_LONG 3 #define MOD_LONG_LONG 4 #define PAD_RIGHT 1 #define PAD_ZERO 2 int printf(const char *format, ...) { int width, pad, fp_width, mod, sign, count = 0; va_list args; va_start(args, format); for ( ; *format; format++ ) { if ( *format == '%' ) { ++format; width = pad = mod = sign = 0; fp_width = -1; if ( *format == '\0' ) break; if ( *format == '%' ) goto out; if ( *format == 'n' ) { *va_arg(args, int *) = count; continue; } if ( *format == '-' ) { format++; pad = PAD_RIGHT; if ( *format == '+' ) { format++; sign = 1; } } else if ( *format == '+' ) { format++; sign = 1; if ( *format == '-' ) { format++; pad = PAD_RIGHT; } } while ( *format == '0' ) { format++; pad |= PAD_ZERO; } if ( *format == '*' ) { format++; width = va_arg(args, int); width = width > 0 ? width : 0; } else { for ( ; *format >= '0' && *format <= '9'; format++ ) { width *= 10; width += *format - '0'; } } if ( *format == '.' ) { format++; if( *format == '*' ) { fp_width = va_arg(args, int); format++; } else if ( isdigit(*format) ) { fp_width = 0; for ( ; *format >= '0' && *format <= '9'; format++ ) { fp_width *= 10; fp_width += *format - '0'; } } } if ( *format == 'h' && *(format+1) == 'h' ) { int i = 0; switch ( tolower(*(format+2)) ) { case 'o': case 'd': case 'i': case 'x': case 'u': mod = MOD_BYTE; format += 2; break; default: while ( format[--i] != '%' ); for( ; i < 3 ; i++ ) text_putchar(format[i]); // text_putstring(format[i], (format + 3) - &format[i]); format += 3; continue; } } else if ( *format == 'h' ) { int i = 0; switch ( tolower(*(format+1)) ) { case 'o': case 'd': case 'i': case 'x': case 'u': mod = MOD_SHORT; format++; break; default: while ( format[--i] != '%' ); for( ; i < 2 ; i++ ) text_putchar(format[i]); // text_putstring(format[i], (format + 2) - &format[i]); format += 2; continue; } } /* else if ( strncmp(format, "ll", 2) == 0 ) { int i = 0; switch ( tolower(*(format+1)) ) { case 'd': case 'i': case 'x': case 'u': mod = MOD_LONG_LONG; format++; break; default: while ( format[--i] != '%' ); for( ; i < 3 ; i++ ) text_putchar(format[i]); // text_putstring(format[i], (format + 3) - &format[i]); format += 3; continue; } }*/ else if ( *format == 'l' ) { int i = 0; switch ( tolower(*(format+1)) ) { case 'o': case 'd': case 'i': case 'x': case 'u': case 'f': mod = MOD_LONG; format++; break; default: while ( format[--i] != '%' ); for( ; i < 3 ; i++ ) text_putchar(format[i]); // text_putstring(format[i], (format + 2) - &format[i]); format += 2; continue; } } //done if ( *format == 's' ) { char *s = va_arg(args, char *); int length = strlen(s); if ( width > 0 ) { count += width; if ( !(pad & PAD_RIGHT) ) { if ( length > width ) { for ( int i = 0; i < width; i++ ) text_putchar(s[i]); } else { for ( int i = width - length; i; i-- ) text_putchar(' '); text_putstring(s); } } else { for ( ; width--; ) { *s ? text_putchar(*s++) : text_putchar(' '); } } } else { text_putstring(s); count += length; } continue; } if ( *format == 'o' ) { char buf[23]; char padchar = pad & PAD_ZERO ? '0' : ' '; uint64_t n; int _len; switch(mod) { case MOD_BYTE: n = va_arg(args, unsigned char); break; case MOD_SHORT: n = va_arg(args, unsigned short); break; case MOD_NONE: n = va_arg(args, unsigned int); break; case MOD_LONG: n = va_arg(args, unsigned long); break; // case MOD_LONG_LONG: // n = va_arg(args, unsigned long long); } _len = strlen(ltoa(n, buf, 8)); width -= _len; count += _len + (width > 0 ? width : 0); if ( (width > 0) && !(pad & PAD_RIGHT) ) for ( ; width > 0; width-- ) text_putchar(padchar), count++; text_putstring(buf); if ( pad & PAD_RIGHT ) for ( ; width > 0; width-- ) text_putchar(' '); continue; } //done if ( *format == 'd' || *format == 'i' ) { char buf[21]; char padchar = pad & PAD_ZERO ? '0' : ' '; uint64_t n; int _len; switch(mod) { case MOD_BYTE: n = va_arg(args, unsigned char); break; case MOD_SHORT: n = va_arg(args, unsigned short); break; case MOD_NONE: n = va_arg(args, unsigned int); break; case MOD_LONG: n = va_arg(args, unsigned long); break; // case MOD_LONG_LONG: // n = va_arg(args, unsigned long long); } _len = strlen(ltoa(n, buf, 10)); width -= _len; int i = 0; if ( sign && buf[0] != '-' ) text_putchar('+'), width--, count++; else if ( buf[0] == '-' ) text_putchar(buf[i++]); count += _len + (width > 0 ? width : 0); if ( (width > 0) && !(pad & PAD_RIGHT) ) { for ( ; width > 0; width-- ) text_putchar(padchar), count++; // if ( sign && buf[0] != '-' && padchar == ' ') // text_putchar('+'); } text_putstring(&buf[i]); if ( pad & PAD_RIGHT ) for ( ; width > 0; width-- ) text_putchar(' '); continue; } //done if ( *format == 'x' ) { char buf[16]; char padchar = pad & PAD_ZERO ? '0' : ' '; uint64_t n; int _len; switch(mod) { case MOD_BYTE: n = (uint8_t)va_arg(args, unsigned char); break; case MOD_SHORT: n = (uint16_t)va_arg(args, unsigned short); break; case MOD_NONE: n = va_arg(args, unsigned int); break; case MOD_LONG: n = va_arg(args, unsigned long); break; // case MOD_LONG_LONG: // n = va_arg(args, unsigned long long); } _len = strlen(ltoa(n, buf, 16)); width -= _len; count += _len + (width > 0 ? width : 0); if ( (width > 0) && !(pad & PAD_RIGHT) ) for ( ; width > 0; width-- ) text_putchar(padchar), count++; text_putstring(buf); if ( pad & PAD_RIGHT ) for ( ; width > 0; width-- ) text_putchar(' '); continue; } //done if ( *format == 'X' ) { char buf[16]; char padchar = pad & PAD_ZERO ? '0' : ' '; uint64_t n; int _len; switch(mod) { case MOD_BYTE: n = va_arg(args, unsigned char); break; case MOD_SHORT: n = va_arg(args, unsigned short); break; case MOD_NONE: n = va_arg(args, unsigned int); break; case MOD_LONG: n = va_arg(args, unsigned long); break; // case MOD_LONG_LONG: // n = va_arg(args, unsigned long long); } _len = strlen(ltoa(n, buf, 16)); width -= _len; count += _len + (width > 0 ? width : 0); if ( (width > 0) && !(pad & PAD_RIGHT) ) for ( ; width > 0; width-- ) text_putchar(padchar); for ( int i = 0; buf[i] = toupper(buf[i]); i++ ); text_putstring(buf); if ( pad & PAD_RIGHT ) for ( ; width > 0; width-- ) text_putchar(' '); continue; } //done if ( *format == 'u' ) { char buf[21], padchar; uint64_t n; switch ( mod ) { case MOD_BYTE: n = va_arg(args, unsigned char); break; case MOD_SHORT: n = va_arg(args, short); break; case MOD_NONE: n = va_arg(args, unsigned int); break; case MOD_LONG: n = va_arg(args, unsigned long); break; // case MOD_LONG_LONG: // n = va_arg(args, unsigned long long); } int _len = strlen(_ltoa(n, buf, 10, 0)); count += _len; if ( width > 0 ) { width -= _len; count += width > 0 ? width : 0; padchar = pad & PAD_ZERO ? '0' : ' '; if ( !(pad & PAD_RIGHT) ) { for ( ; width > 0; width-- ) text_putchar(padchar); } } text_putstring(buf); if ( pad & PAD_RIGHT ) for ( ; width > 0; width-- ) text_putchar(' '); continue; } //done if ( *format == 'c' ) { /* char are converted to int when pushed on the stack */ text_putchar((char)va_arg(args, int)); count++; continue; } //in progress if ( tolower(*format) == 'f' ) { double n; int len; char padchar; if ( mod & MOD_LONG ) { n = va_arg(args, double); fp_width = fp_width > -1 ? fp_width : 16; } else { n = va_arg(args, float); fp_width = fp_width > -1 ? fp_width : 8; } if ( n < 1e+30 && n > -1e+29 ) len = 50; else if ( n < 1e+80 && n > -1e+79 ) len = 100; else if ( n < 1e+130 && n > -1e+129 ) len = 150; else if ( n < 1e+180 && n > -1e+179 ) len = 200; else if ( n < 1e+230 && n > -1e+229 ) len = 250; else len = 328; char buf[len]; int _len = strlen(dtoa(n, buf, fp_width)); width -= _len; count += _len; if ( sign && buf[0] != '-' ) text_putchar('+'), width--, count++; count += width; padchar = pad & PAD_ZERO ? '0' : ' '; if ( width > 0 ) { int i = 0; // put sign if negative if ( buf[0] == '-' ) text_putchar(buf[i++]); // pad left if ( !(pad & PAD_RIGHT) ) while ( width-- ) text_putchar(padchar); // print float text_putstring(&buf[i]); // pad right if ( pad & PAD_RIGHT ) while ( width-- ) text_putchar(' '); } else text_putstring(buf); } /* if ( tolower(*format) == 'g' ) { // } if ( tolower(*format) == 'a' ) { // }*/ } else { out: text_putchar(*format); count++; } } va_end(args); return count; }
642456.c
/*----------------------------------------------------------------------------*/ /* Hobbit alert acknowledgment CGI tool. */ /* */ /* This is a CGI script for handling acknowledgments of alerts. */ /* If called with no CGI query, it will present the acknowledgment form; */ /* if called with a proper CGI query string it will send an ack-message to */ /* the Hobbit daemon. */ /* */ /* Copyright (C) 2004-2005 Henrik Storner <[email protected]> */ /* */ /* This program is released under the GNU General Public License (GPL), */ /* version 2. See the file "COPYING" for details. */ /* */ /*----------------------------------------------------------------------------*/ static char rcsid[] = "$Id: bb-ack.c,v 1.22 2006-03-29 21:41:32 henrik Exp $"; #include <limits.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "libbbgen.h" #include "version.h" static char *action = ""; static int acknum = 0; static int validity = 0; static char *ackmsg = ""; static cgidata_t *cgidata = NULL; static void parse_query(void) { cgidata_t *cwalk; cwalk = cgidata; while (cwalk) { /* * cwalk->name points to the name of the setting. * cwalk->value points to the value (may be an empty string). */ if (strcasecmp(cwalk->name, "ACTION") == 0) { action = strdup(cwalk->value); } else if (strcasecmp(cwalk->name, "NUMBER") == 0) { acknum = atoi(cwalk->value); } else if (strcasecmp(cwalk->name, "DELAY") == 0) { validity = atoi(cwalk->value); } else if (strcasecmp(cwalk->name, "MESSAGE") == 0) { ackmsg = strdup(cwalk->value); } cwalk = cwalk->next; } } int main(int argc, char *argv[]) { int argi, bbresult; char *respmsgfmt = ""; char *envarea = NULL; for (argi = 1; (argi < argc); argi++) { if (argnmatch(argv[argi], "--env=")) { char *p = strchr(argv[argi], '='); loadenv(p+1, envarea); } else if (argnmatch(argv[argi], "--area=")) { char *p = strchr(argv[argi], '='); envarea = strdup(p+1); } else if (strcmp(argv[argi], "--debug") == 0) { debug = 1; } } redirect_cgilog("bb-ack"); cgidata = cgi_request(); if (cgidata == NULL) { /* Present the query form */ sethostenv("", "", "", colorname(COL_RED), NULL); showform(stdout, "acknowledge", "acknowledge_form", COL_RED, getcurrenttime(NULL), NULL); return 0; } parse_query(); if (strcasecmp(action, "ack") == 0) { char *bbmsg; char *acking_user = ""; if (getenv("REMOTE_USER")) { acking_user = (char *)malloc(50 + strlen(getenv("REMOTE_USER"))); sprintf(acking_user, "\nAcked by: %s", getenv("REMOTE_USER")); if (getenv("REMOTE_ADDR")) { char *p = acking_user + strlen(acking_user); sprintf(p, " (%s)", getenv("REMOTE_ADDR")); } } bbmsg = (char *)malloc(1024 + strlen(ackmsg) + strlen(acking_user)); sprintf(bbmsg, "hobbitdack %d %d %s %s", acknum, validity, ackmsg, acking_user); bbresult = sendmessage(bbmsg, NULL, NULL, NULL, 0, 30); if (bbresult != BB_OK) { respmsgfmt = "<center><h4>Could not contact %s servers</h4></center>\n"; } else { respmsgfmt = "<center><h4>Acknowledgment sent to %s servers</h4></center>\n"; } if (strlen(acking_user)) xfree(acking_user); xfree(bbmsg); } else if (strcasecmp(action, "page") == 0) { respmsgfmt = "<center><h4>This system does not support paging the operator</h4></center>\n"; } else { respmsgfmt = "<center><h4>Unknown action ignored</h4></center>\n"; } fprintf(stdout, "Content-type: text/html\n\n"); headfoot(stdout, "acknowledge", "", "header", COL_RED); fprintf(stdout, respmsgfmt, "Hobbit"); headfoot(stdout, "acknowledge", "", "footer", COL_RED); return 0; }
665310.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ #include <assert.h> #include <string.h> #include <errno.h> #include "nimble/nimble_opt.h" #include "host/ble_hs_adv.h" #include "host/ble_hs_hci.h" #include "ble_hs_priv.h" #if MYNEWT #include "bsp/bsp.h" #else #define bssnz_t #endif /** * GAP - Generic Access Profile. * * Design overview: * * GAP procedures are initiated by the application via function calls. Such * functions return when either of the following happens: * * (1) The procedure completes (success or failure). * (2) The procedure cannot proceed until a BLE peer responds. * * For (1), the result of the procedure if fully indicated by the function * return code. * For (2), the procedure result is indicated by an application-configured * callback. The callback is executed when the procedure completes. * * The GAP is always in one of two states: * 1. Free * 2. Preempted * * While GAP is in the free state, new procedures can be started at will. * While GAP is in the preempted state, no new procedures are allowed. The * host sets GAP to the preempted state when it needs to ensure no ongoing * procedures, a condition required for some HCI commands to succeed. The host * must take care to take GAP out of the preempted state as soon as possible. * * Notes on thread-safety: * 1. The ble_hs mutex must always be unlocked when an application callback is * executed. The purpose of this requirement is to allow callbacks to * initiate additional host procedures, which may require locking of the * mutex. * 2. Functions called directly by the application never call callbacks. * Generally, these functions lock the ble_hs mutex at the start, and only * unlock it at return. * 3. Functions which do call callbacks (receive handlers and timer * expirations) generally only lock the mutex long enough to modify * affected state and make copies of data needed for the callback. A copy * of various pieces of data is called a "snapshot" (struct * ble_gap_snapshot). The sole purpose of snapshots is to allow callbacks * to be executed after unlocking the mutex. */ /** GAP procedure op codes. */ #define BLE_GAP_OP_NULL 0 #define BLE_GAP_OP_M_DISC 1 #define BLE_GAP_OP_M_CONN 2 #define BLE_GAP_OP_S_ADV 1 #define BLE_GAP_OP_S_PERIODIC_ADV 2 #define BLE_GAP_OP_SYNC 1 /** * If an attempt to cancel an active procedure fails, the attempt is retried * at this rate (ms). */ #define BLE_GAP_CANCEL_RETRY_TIMEOUT_MS 100 /* ms */ #define BLE_GAP_UPDATE_TIMEOUT_MS 40000 /* ms */ #if MYNEWT_VAL(BLE_ROLE_CENTRAL) static const struct ble_gap_conn_params ble_gap_conn_params_dflt = { .scan_itvl = 0x0010, .scan_window = 0x0010, .itvl_min = BLE_GAP_INITIAL_CONN_ITVL_MIN, .itvl_max = BLE_GAP_INITIAL_CONN_ITVL_MAX, .latency = BLE_GAP_INITIAL_CONN_LATENCY, .supervision_timeout = BLE_GAP_INITIAL_SUPERVISION_TIMEOUT, .min_ce_len = BLE_GAP_INITIAL_CONN_MIN_CE_LEN, .max_ce_len = BLE_GAP_INITIAL_CONN_MAX_CE_LEN, }; #endif /** * The state of the in-progress master connection. If no master connection is * currently in progress, then the op field is set to BLE_GAP_OP_NULL. */ struct ble_gap_master_state { uint8_t op; uint8_t exp_set:1; ble_npl_time_t exp_os_ticks; ble_gap_event_fn *cb; void *cb_arg; /** * Indicates the type of master procedure that was preempted, or * BLE_GAP_OP_NULL if no procedure was preempted. */ uint8_t preempted_op; union { struct { uint8_t using_wl:1; uint8_t our_addr_type:2; uint8_t cancel:1; } conn; struct { uint8_t limited:1; } disc; }; }; static bssnz_t struct ble_gap_master_state ble_gap_master; #if MYNEWT_VAL(BLE_PERIODIC_ADV) /** * The state of the in-progress sync creation. If no sync creation connection is * currently in progress, then the op field is set to BLE_GAP_OP_NULL. */ struct ble_gap_sync_state { uint8_t op; struct ble_hs_periodic_sync *psync; ble_gap_event_fn *cb; void *cb_arg; }; static bssnz_t struct ble_gap_sync_state ble_gap_sync; #endif /** * The state of the in-progress slave connection. If no slave connection is * currently in progress, then the op field is set to BLE_GAP_OP_NULL. */ struct ble_gap_slave_state { uint8_t op; unsigned int our_addr_type:2; unsigned int preempted:1; /** Set to 1 if advertising was preempted. */ unsigned int connectable:1; #if MYNEWT_VAL(BLE_EXT_ADV) unsigned int configured:1; /** If instance is configured */ unsigned int scannable:1; unsigned int directed:1; unsigned int high_duty_directed:1; unsigned int legacy_pdu:1; unsigned int rnd_addr_set:1; #if MYNEWT_VAL(BLE_PERIODIC_ADV) unsigned int periodic_configured:1; uint8_t periodic_op; #endif uint8_t rnd_addr[6]; #else /* timer is used only with legacy advertising */ unsigned int exp_set:1; ble_npl_time_t exp_os_ticks; #endif ble_gap_event_fn *cb; void *cb_arg; }; static bssnz_t struct ble_gap_slave_state ble_gap_slave[BLE_ADV_INSTANCES]; struct ble_gap_update_entry { SLIST_ENTRY(ble_gap_update_entry) next; struct ble_gap_upd_params params; ble_npl_time_t exp_os_ticks; uint16_t conn_handle; }; SLIST_HEAD(ble_gap_update_entry_list, ble_gap_update_entry); struct ble_gap_snapshot { struct ble_gap_conn_desc *desc; ble_gap_event_fn *cb; void *cb_arg; }; static SLIST_HEAD(ble_gap_hook_list, ble_gap_event_listener) ble_gap_event_listener_list; static os_membuf_t ble_gap_update_entry_mem[ OS_MEMPOOL_SIZE(MYNEWT_VAL(BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE), sizeof (struct ble_gap_update_entry))]; static struct os_mempool ble_gap_update_entry_pool; static struct ble_gap_update_entry_list ble_gap_update_entries; static void ble_gap_update_entry_free(struct ble_gap_update_entry *entry); #if NIMBLE_BLE_CONNECT static struct ble_gap_update_entry * ble_gap_update_entry_find(uint16_t conn_handle, struct ble_gap_update_entry **out_prev); static void ble_gap_update_l2cap_cb(uint16_t conn_handle, int status, void *arg); #endif static struct ble_gap_update_entry * ble_gap_update_entry_remove(uint16_t conn_handle); #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static int ble_gap_adv_enable_tx(int enable); #endif #if NIMBLE_BLE_CONNECT static int ble_gap_conn_cancel_tx(void); #endif #if NIMBLE_BLE_SCAN && !MYNEWT_VAL(BLE_EXT_ADV) static int ble_gap_disc_enable_tx(int enable, int filter_duplicates); #endif STATS_SECT_DECL(ble_gap_stats) ble_gap_stats; STATS_NAME_START(ble_gap_stats) STATS_NAME(ble_gap_stats, wl_set) STATS_NAME(ble_gap_stats, wl_set_fail) STATS_NAME(ble_gap_stats, adv_stop) STATS_NAME(ble_gap_stats, adv_stop_fail) STATS_NAME(ble_gap_stats, adv_start) STATS_NAME(ble_gap_stats, adv_start_fail) STATS_NAME(ble_gap_stats, adv_set_data) STATS_NAME(ble_gap_stats, adv_set_data_fail) STATS_NAME(ble_gap_stats, adv_rsp_set_data) STATS_NAME(ble_gap_stats, adv_rsp_set_data_fail) STATS_NAME(ble_gap_stats, discover) STATS_NAME(ble_gap_stats, discover_fail) STATS_NAME(ble_gap_stats, initiate) STATS_NAME(ble_gap_stats, initiate_fail) STATS_NAME(ble_gap_stats, terminate) STATS_NAME(ble_gap_stats, terminate_fail) STATS_NAME(ble_gap_stats, cancel) STATS_NAME(ble_gap_stats, cancel_fail) STATS_NAME(ble_gap_stats, update) STATS_NAME(ble_gap_stats, update_fail) STATS_NAME(ble_gap_stats, connect_mst) STATS_NAME(ble_gap_stats, connect_slv) STATS_NAME(ble_gap_stats, disconnect) STATS_NAME(ble_gap_stats, rx_disconnect) STATS_NAME(ble_gap_stats, rx_update_complete) STATS_NAME(ble_gap_stats, rx_adv_report) STATS_NAME(ble_gap_stats, rx_conn_complete) STATS_NAME(ble_gap_stats, discover_cancel) STATS_NAME(ble_gap_stats, discover_cancel_fail) STATS_NAME(ble_gap_stats, security_initiate) STATS_NAME(ble_gap_stats, security_initiate_fail) STATS_NAME_END(ble_gap_stats) /***************************************************************************** * $debug * *****************************************************************************/ #if MYNEWT_VAL(BLE_HS_DEBUG) int ble_gap_dbg_update_active(uint16_t conn_handle) { const struct ble_gap_update_entry *entry; ble_hs_lock(); entry = ble_gap_update_entry_find(conn_handle, NULL); ble_hs_unlock(); return entry != NULL; } #endif /***************************************************************************** * $log * *****************************************************************************/ #if NIMBLE_BLE_SCAN && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_log_duration(int32_t duration_ms) { if (duration_ms == BLE_HS_FOREVER) { BLE_HS_LOG(INFO, "duration=forever"); } else { BLE_HS_LOG(INFO, "duration=%dms", duration_ms); } } #endif #if MYNEWT_VAL(BLE_ROLE_CENTRAL) && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_log_conn(uint8_t own_addr_type, const ble_addr_t *peer_addr, const struct ble_gap_conn_params *params) { if (peer_addr != NULL) { BLE_HS_LOG(INFO, "peer_addr_type=%d peer_addr=", peer_addr->type); BLE_HS_LOG_ADDR(INFO, peer_addr->val); } BLE_HS_LOG(INFO, " scan_itvl=%d scan_window=%d itvl_min=%d itvl_max=%d " "latency=%d supervision_timeout=%d min_ce_len=%d " "max_ce_len=%d own_addr_type=%d", params->scan_itvl, params->scan_window, params->itvl_min, params->itvl_max, params->latency, params->supervision_timeout, params->min_ce_len, params->max_ce_len, own_addr_type); } #endif #if NIMBLE_BLE_SCAN && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_log_disc(uint8_t own_addr_type, int32_t duration_ms, const struct ble_gap_disc_params *disc_params) { BLE_HS_LOG(INFO, "own_addr_type=%d filter_policy=%d passive=%d limited=%d " "filter_duplicates=%d ", own_addr_type, disc_params->filter_policy, disc_params->passive, disc_params->limited, disc_params->filter_duplicates); ble_gap_log_duration(duration_ms); } #endif #if NIMBLE_BLE_CONNECT static void ble_gap_log_update(uint16_t conn_handle, const struct ble_gap_upd_params *params) { BLE_HS_LOG(INFO, "connection parameter update; " "conn_handle=%d itvl_min=%d itvl_max=%d latency=%d " "supervision_timeout=%d min_ce_len=%d max_ce_len=%d", conn_handle, params->itvl_min, params->itvl_max, params->latency, params->supervision_timeout, params->min_ce_len, params->max_ce_len); } #endif #if MYNEWT_VAL(BLE_WHITELIST) static void ble_gap_log_wl(const ble_addr_t *addr, uint8_t white_list_count) { int i; BLE_HS_LOG(INFO, "count=%d ", white_list_count); for (i = 0; i < white_list_count; i++, addr++) { BLE_HS_LOG(INFO, "entry-%d={addr_type=%d addr=", i, addr->type); BLE_HS_LOG_ADDR(INFO, addr->val); BLE_HS_LOG(INFO, "} "); } } #endif #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_log_adv(uint8_t own_addr_type, const ble_addr_t *direct_addr, const struct ble_gap_adv_params *adv_params) { BLE_HS_LOG(INFO, "disc_mode=%d", adv_params->disc_mode); if (direct_addr) { BLE_HS_LOG(INFO, " direct_addr_type=%d direct_addr=", direct_addr->type); BLE_HS_LOG_ADDR(INFO, direct_addr->val); } BLE_HS_LOG(INFO, " adv_channel_map=%d own_addr_type=%d " "adv_filter_policy=%d adv_itvl_min=%d adv_itvl_max=%d", adv_params->channel_map, own_addr_type, adv_params->filter_policy, adv_params->itvl_min, adv_params->itvl_max); } #endif /***************************************************************************** * $snapshot * *****************************************************************************/ #if NIMBLE_BLE_CONNECT static void ble_gap_fill_conn_desc(struct ble_hs_conn *conn, struct ble_gap_conn_desc *desc) { struct ble_hs_conn_addrs addrs; ble_hs_conn_addrs(conn, &addrs); desc->our_id_addr = addrs.our_id_addr; desc->peer_id_addr = addrs.peer_id_addr; desc->our_ota_addr = addrs.our_ota_addr; desc->peer_ota_addr = addrs.peer_ota_addr; desc->conn_handle = conn->bhc_handle; desc->conn_itvl = conn->bhc_itvl; desc->conn_latency = conn->bhc_latency; desc->supervision_timeout = conn->bhc_supervision_timeout; desc->master_clock_accuracy = conn->bhc_master_clock_accuracy; desc->sec_state = conn->bhc_sec_state; if (conn->bhc_flags & BLE_HS_CONN_F_MASTER) { desc->role = BLE_GAP_ROLE_MASTER; } else { desc->role = BLE_GAP_ROLE_SLAVE; } } static void ble_gap_conn_to_snapshot(struct ble_hs_conn *conn, struct ble_gap_snapshot *snap) { ble_gap_fill_conn_desc(conn, snap->desc); snap->cb = conn->bhc_cb; snap->cb_arg = conn->bhc_cb_arg; } static int ble_gap_find_snapshot(uint16_t handle, struct ble_gap_snapshot *snap) { struct ble_hs_conn *conn; ble_hs_lock(); conn = ble_hs_conn_find(handle); if (conn != NULL) { ble_gap_conn_to_snapshot(conn, snap); } ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } else { return 0; } } #endif int ble_gap_conn_find(uint16_t handle, struct ble_gap_conn_desc *out_desc) { #if NIMBLE_BLE_CONNECT struct ble_hs_conn *conn; ble_hs_lock(); conn = ble_hs_conn_find(handle); if (conn != NULL && out_desc != NULL) { ble_gap_fill_conn_desc(conn, out_desc); } ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } else { return 0; } #else return BLE_HS_ENOTSUP; #endif } int ble_gap_conn_find_by_addr(const ble_addr_t *addr, struct ble_gap_conn_desc *out_desc) { #if NIMBLE_BLE_CONNECT struct ble_hs_conn *conn; ble_hs_lock(); conn = ble_hs_conn_find_by_addr(addr); if (conn != NULL && out_desc != NULL) { ble_gap_fill_conn_desc(conn, out_desc); } ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } return 0; #else return BLE_HS_ENOTSUP; #endif } #if NIMBLE_BLE_CONNECT static int ble_gap_extract_conn_cb(uint16_t conn_handle, ble_gap_event_fn **out_cb, void **out_cb_arg) { const struct ble_hs_conn *conn; BLE_HS_DBG_ASSERT(conn_handle <= BLE_HCI_LE_CONN_HANDLE_MAX); ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (conn != NULL) { *out_cb = conn->bhc_cb; *out_cb_arg = conn->bhc_cb_arg; } else { *out_cb = NULL; *out_cb_arg = NULL; } ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } else { return 0; } } #endif int ble_gap_set_priv_mode(const ble_addr_t *peer_addr, uint8_t priv_mode) { #if NIMBLE_BLE_CONNECT return ble_hs_pvcy_set_mode(peer_addr, priv_mode); #else return BLE_HS_ENOTSUP; #endif } int ble_gap_read_le_phy(uint16_t conn_handle, uint8_t *tx_phy, uint8_t *rx_phy) { #if NIMBLE_BLE_CONNECT struct ble_hci_le_rd_phy_cp cmd; struct ble_hci_le_rd_phy_rp rsp; struct ble_hs_conn *conn; int rc; ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } cmd.conn_handle = htole16(conn_handle); rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_RD_PHY), &cmd, sizeof(cmd), &rsp, sizeof(rsp)); if (rc != 0) { return rc; } /* sanity check for response */ if (le16toh(rsp.conn_handle) != conn_handle) { return BLE_HS_ECONTROLLER; } *tx_phy = rsp.tx_phy; *rx_phy = rsp.rx_phy; return 0; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_set_prefered_default_le_phy(uint8_t tx_phys_mask, uint8_t rx_phys_mask) { #if NIMBLE_BLE_CONNECT struct ble_hci_le_set_default_phy_cp cmd; if (tx_phys_mask > (BLE_HCI_LE_PHY_1M_PREF_MASK | BLE_HCI_LE_PHY_2M_PREF_MASK | BLE_HCI_LE_PHY_CODED_PREF_MASK)) { return BLE_ERR_INV_HCI_CMD_PARMS; } if (rx_phys_mask > (BLE_HCI_LE_PHY_1M_PREF_MASK | BLE_HCI_LE_PHY_2M_PREF_MASK | BLE_HCI_LE_PHY_CODED_PREF_MASK)) { return BLE_ERR_INV_HCI_CMD_PARMS; } memset(&cmd, 0, sizeof(cmd)); if (tx_phys_mask == 0) { cmd.all_phys |= BLE_HCI_LE_PHY_NO_TX_PREF_MASK; } else { cmd.tx_phys = tx_phys_mask; } if (rx_phys_mask == 0) { cmd.all_phys |= BLE_HCI_LE_PHY_NO_RX_PREF_MASK; } else { cmd.rx_phys = rx_phys_mask; } return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_DEFAULT_PHY), &cmd, sizeof(cmd), NULL, 0); #else return BLE_HS_ENOTSUP; #endif } int ble_gap_set_prefered_le_phy(uint16_t conn_handle, uint8_t tx_phys_mask, uint8_t rx_phys_mask, uint16_t phy_opts) { #if NIMBLE_BLE_CONNECT struct ble_hci_le_set_phy_cp cmd; struct ble_hs_conn *conn; ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } if (tx_phys_mask > (BLE_HCI_LE_PHY_1M_PREF_MASK | BLE_HCI_LE_PHY_2M_PREF_MASK | BLE_HCI_LE_PHY_CODED_PREF_MASK)) { return BLE_ERR_INV_HCI_CMD_PARMS; } if (rx_phys_mask > (BLE_HCI_LE_PHY_1M_PREF_MASK | BLE_HCI_LE_PHY_2M_PREF_MASK | BLE_HCI_LE_PHY_CODED_PREF_MASK)) { return BLE_ERR_INV_HCI_CMD_PARMS; } if (phy_opts > BLE_HCI_LE_PHY_CODED_S8_PREF) { return BLE_ERR_INV_HCI_CMD_PARMS; } memset(&cmd, 0, sizeof(cmd)); cmd.conn_handle = htole16(conn_handle); if (tx_phys_mask == 0) { cmd.all_phys |= BLE_HCI_LE_PHY_NO_TX_PREF_MASK; } else { cmd.tx_phys = tx_phys_mask; } if (rx_phys_mask == 0) { cmd.all_phys |= BLE_HCI_LE_PHY_NO_RX_PREF_MASK; } else { cmd.rx_phys = rx_phys_mask; } cmd.phy_options = htole16(phy_opts); return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_PHY), &cmd, sizeof(cmd), NULL, 0); #else return BLE_HS_ENOTSUP; #endif } /***************************************************************************** * $misc * *****************************************************************************/ static int ble_gap_event_listener_call(struct ble_gap_event *event); static int ble_gap_call_event_cb(struct ble_gap_event *event, ble_gap_event_fn *cb, void *cb_arg) { int rc; BLE_HS_DBG_ASSERT(!ble_hs_locked_by_cur_task()); if (cb != NULL) { rc = cb(event, cb_arg); } else { if (event->type == BLE_GAP_EVENT_CONN_UPDATE_REQ) { /* Just copy peer parameters back into the reply. */ *event->conn_update_req.self_params = *event->conn_update_req.peer_params; } rc = 0; } return rc; } #if NIMBLE_BLE_CONNECT static int ble_gap_call_conn_event_cb(struct ble_gap_event *event, uint16_t conn_handle) { ble_gap_event_fn *cb; void *cb_arg; int rc; rc = ble_gap_extract_conn_cb(conn_handle, &cb, &cb_arg); if (rc != 0) { return rc; } rc = ble_gap_call_event_cb(event, cb, cb_arg); if (rc != 0) { return rc; } return 0; } #endif static bool ble_gap_is_preempted(void) { #if NIMBLE_BLE_ADVERTISE int i; #endif BLE_HS_DBG_ASSERT(ble_hs_locked_by_cur_task()); #if MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER) if (ble_gap_master.preempted_op != BLE_GAP_OP_NULL) { return true; } #endif #if NIMBLE_BLE_ADVERTISE for (i = 0; i < BLE_ADV_INSTANCES; i++) { if (ble_gap_slave[i].preempted) { return true; } } #endif return false; } #if MYNEWT_VAL(BLE_ROLE_OBSERVER) || NIMBLE_BLE_CONNECT static void ble_gap_master_reset_state(void) { ble_gap_master.op = BLE_GAP_OP_NULL; ble_gap_master.exp_set = 0; ble_gap_master.conn.cancel = 0; ble_hs_timer_resched(); } #endif #if NIMBLE_BLE_ADVERTISE || NIMBLE_BLE_CONNECT static void ble_gap_slave_reset_state(uint8_t instance) { ble_gap_slave[instance].op = BLE_GAP_OP_NULL; #if !MYNEWT_VAL(BLE_EXT_ADV) ble_gap_slave[instance].exp_set = 0; ble_hs_timer_resched(); #endif } #endif #if MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_PERIPHERAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER) static bool ble_gap_has_client(struct ble_gap_master_state *out_state) { if (!out_state) { return 0; } return out_state->cb != NULL; } #endif #if MYNEWT_VAL(BLE_ROLE_OBSERVER) || NIMBLE_BLE_CONNECT static void ble_gap_master_extract_state(struct ble_gap_master_state *out_state, int reset_state) { ble_hs_lock(); *out_state = ble_gap_master; if (reset_state) { ble_gap_master_reset_state(); ble_gap_master.preempted_op = BLE_GAP_OP_NULL; } ble_hs_unlock(); } #endif #if NIMBLE_BLE_ADVERTISE || NIMBLE_BLE_CONNECT static void ble_gap_slave_extract_cb(uint8_t instance, ble_gap_event_fn **out_cb, void **out_cb_arg) { ble_hs_lock(); *out_cb = ble_gap_slave[instance].cb; *out_cb_arg = ble_gap_slave[instance].cb_arg; ble_gap_slave_reset_state(instance); ble_hs_unlock(); } static void ble_gap_adv_finished(uint8_t instance, int reason, uint16_t conn_handle, uint8_t num_events) { struct ble_gap_event event; ble_gap_event_fn *cb; void *cb_arg; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_ADV_COMPLETE; event.adv_complete.reason = reason; #if MYNEWT_VAL(BLE_EXT_ADV) event.adv_complete.instance = instance; event.adv_complete.conn_handle = conn_handle; event.adv_complete.num_ext_adv_events = num_events; #endif ble_gap_event_listener_call(&event); ble_gap_slave_extract_cb(instance, &cb, &cb_arg); if (cb != NULL) { cb(&event, cb_arg); } } #endif #if NIMBLE_BLE_CONNECT static int ble_gap_master_connect_failure(int status) { struct ble_gap_master_state state; struct ble_gap_event event; int rc; ble_gap_master_extract_state(&state, 1); if (ble_gap_has_client(&state)) { memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_CONNECT; event.connect.status = status; rc = state.cb(&event, state.cb_arg); } else { rc = 0; } return rc; } static void ble_gap_master_connect_cancelled(void) { struct ble_gap_master_state state; struct ble_gap_event event; ble_gap_master_extract_state(&state, 1); if (state.cb != NULL) { memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_CONNECT; event.connect.conn_handle = BLE_HS_CONN_HANDLE_NONE; if (state.conn.cancel) { /* Connect procedure successfully cancelled. */ event.connect.status = BLE_HS_EAPP; } else { /* Connect procedure timed out. */ event.connect.status = BLE_HS_ETIMEOUT; } state.cb(&event, state.cb_arg); } } #endif #if NIMBLE_BLE_SCAN static void ble_gap_disc_report(void *desc) { struct ble_gap_master_state state; struct ble_gap_event event; memset(&event, 0, sizeof event); #if MYNEWT_VAL(BLE_EXT_ADV) event.type = BLE_GAP_EVENT_EXT_DISC; event.ext_disc = *((struct ble_gap_ext_disc_desc *)desc); #else event.type = BLE_GAP_EVENT_DISC; event.disc = *((struct ble_gap_disc_desc *)desc); #endif ble_gap_master_extract_state(&state, 0); if (ble_gap_has_client(&state)) { state.cb(&event, state.cb_arg); } ble_gap_event_listener_call(&event); } static void ble_gap_disc_complete(void) { #if NIMBLE_BLE_CONNECT struct ble_gap_master_state state; #endif struct ble_gap_event event; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_DISC_COMPLETE; event.disc_complete.reason = 0; #if NIMBLE_BLE_CONNECT ble_gap_master_extract_state(&state, 1); if (ble_gap_has_client(&state)) { ble_gap_call_event_cb(&event, state.cb, state.cb_arg); } #endif ble_gap_event_listener_call(&event); } #endif #if NIMBLE_BLE_CONNECT static void ble_gap_update_notify(uint16_t conn_handle, int status) { struct ble_gap_event event; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_CONN_UPDATE; event.conn_update.conn_handle = conn_handle; event.conn_update.status = status; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); /* Terminate the connection on procedure timeout. */ if (status == BLE_HS_ETIMEOUT) { ble_gap_terminate(conn_handle, BLE_ERR_REM_USER_CONN_TERM); } } #endif static uint32_t ble_gap_master_ticks_until_exp(void) { ble_npl_stime_t ticks; if (ble_gap_master.op == BLE_GAP_OP_NULL || !ble_gap_master.exp_set) { /* Timer not set; infinity ticks until next event. */ return BLE_HS_FOREVER; } ticks = ble_gap_master.exp_os_ticks - ble_npl_time_get(); if (ticks > 0) { /* Timer not expired yet. */ return ticks; } /* Timer just expired. */ return 0; } #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static uint32_t ble_gap_slave_ticks_until_exp(void) { ble_npl_stime_t ticks; if (ble_gap_slave[0].op == BLE_GAP_OP_NULL || !ble_gap_slave[0].exp_set) { /* Timer not set; infinity ticks until next event. */ return BLE_HS_FOREVER; } ticks = ble_gap_slave[0].exp_os_ticks - ble_npl_time_get(); if (ticks > 0) { /* Timer not expired yet. */ return ticks; } /* Timer just expired. */ return 0; } #endif /** * Finds the update procedure that expires soonest. * * @param out_ticks_from_now On success, the ticks until the update * procedure's expiry time gets written here. * * @return The connection handle of the update procedure * that expires soonest, or * BLE_HS_CONN_HANDLE_NONE if there are no * active update procedures. */ static uint16_t ble_gap_update_next_exp(int32_t *out_ticks_from_now) { struct ble_gap_update_entry *entry; ble_npl_time_t now; uint16_t conn_handle; int32_t best_ticks; int32_t ticks; BLE_HS_DBG_ASSERT(ble_hs_locked_by_cur_task()); conn_handle = BLE_HS_CONN_HANDLE_NONE; best_ticks = BLE_HS_FOREVER; now = ble_npl_time_get(); SLIST_FOREACH(entry, &ble_gap_update_entries, next) { ticks = entry->exp_os_ticks - now; if (ticks <= 0) { ticks = 0; } if (ticks < best_ticks) { conn_handle = entry->conn_handle; best_ticks = ticks; } } if (out_ticks_from_now != NULL) { *out_ticks_from_now = best_ticks; } return conn_handle; } #if NIMBLE_BLE_SCAN static void ble_gap_master_set_timer(uint32_t ticks_from_now) { ble_gap_master.exp_os_ticks = ble_npl_time_get() + ticks_from_now; ble_gap_master.exp_set = 1; ble_hs_timer_resched(); } #endif #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_slave_set_timer(uint32_t ticks_from_now) { ble_gap_slave[0].exp_os_ticks = ble_npl_time_get() + ticks_from_now; ble_gap_slave[0].exp_set = 1; ble_hs_timer_resched(); } #endif #if (NIMBLE_BLE_CONNECT || NIMBLE_BLE_SCAN) /** * Called when an error is encountered while the master-connection-fsm is * active. */ static void ble_gap_master_failed(int status) { switch (ble_gap_master.op) { #if NIMBLE_BLE_CONNECT case BLE_GAP_OP_M_CONN: STATS_INC(ble_gap_stats, initiate_fail); ble_gap_master_connect_failure(status); break; #endif #if NIMBLE_BLE_SCAN case BLE_GAP_OP_M_DISC: STATS_INC(ble_gap_stats, initiate_fail); ble_gap_disc_complete(); ble_gap_master_reset_state(); break; #endif default: BLE_HS_DBG_ASSERT(0); break; } } #endif #if NIMBLE_BLE_CONNECT static void ble_gap_update_failed(uint16_t conn_handle, int status) { struct ble_gap_update_entry *entry; STATS_INC(ble_gap_stats, update_fail); ble_hs_lock(); entry = ble_gap_update_entry_remove(conn_handle); ble_hs_unlock(); ble_gap_update_entry_free(entry); ble_gap_update_notify(conn_handle, status); } #endif void ble_gap_conn_broken(uint16_t conn_handle, int reason) { #if NIMBLE_BLE_CONNECT struct ble_gap_update_entry *entry; struct ble_gap_snapshot snap; struct ble_gap_event event; int rc; memset(&event, 0, sizeof event); snap.desc = &event.disconnect.conn; rc = ble_gap_find_snapshot(conn_handle, &snap); if (rc != 0) { /* No longer connected. */ return; } /* If there was a connection update in progress, indicate to the * application that it did not complete. */ ble_hs_lock(); entry = ble_gap_update_entry_remove(conn_handle); ble_hs_unlock(); if (entry != NULL) { ble_gap_update_notify(conn_handle, reason); ble_gap_update_entry_free(entry); } /* Indicate the connection termination to each module. The order matters * here: gatts must come before gattc to ensure the application does not * get informed of spurious notify-tx events. */ ble_l2cap_sig_conn_broken(conn_handle, reason); ble_sm_connection_broken(conn_handle); ble_gatts_connection_broken(conn_handle); ble_gattc_connection_broken(conn_handle); ble_hs_flow_connection_broken(conn_handle);; ble_hs_atomic_conn_delete(conn_handle); event.type = BLE_GAP_EVENT_DISCONNECT; event.disconnect.reason = reason; ble_gap_event_listener_call(&event); ble_gap_call_event_cb(&event, snap.cb, snap.cb_arg); STATS_INC(ble_gap_stats, disconnect); #endif } #if NIMBLE_BLE_CONNECT static void ble_gap_update_to_l2cap(const struct ble_gap_upd_params *params, struct ble_l2cap_sig_update_params *l2cap_params) { l2cap_params->itvl_min = params->itvl_min; l2cap_params->itvl_max = params->itvl_max; l2cap_params->slave_latency = params->latency; l2cap_params->timeout_multiplier = params->supervision_timeout; } #endif void ble_gap_rx_disconn_complete(const struct ble_hci_ev_disconn_cmp *ev) { #if NIMBLE_BLE_CONNECT struct ble_gap_event event; uint16_t handle = le16toh(ev->conn_handle); STATS_INC(ble_gap_stats, rx_disconnect); if (ev->status == 0) { ble_gap_conn_broken(handle, BLE_HS_HCI_ERR(ev->reason)); } else { memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_TERM_FAILURE; event.term_failure.conn_handle = handle; event.term_failure.status = BLE_HS_HCI_ERR(ev->status); ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, handle); } #endif } void ble_gap_rx_update_complete(const struct ble_hci_ev_le_subev_conn_upd_complete *ev) { #if NIMBLE_BLE_CONNECT struct ble_gap_update_entry *entry; struct ble_l2cap_sig_update_params l2cap_params; struct ble_gap_event event; struct ble_hs_conn *conn; uint16_t conn_handle; int cb_status; int call_cb; int rc; STATS_INC(ble_gap_stats, rx_update_complete); memset(&event, 0, sizeof event); memset(&l2cap_params, 0, sizeof l2cap_params); ble_hs_lock(); conn_handle = le16toh(ev->conn_handle); conn = ble_hs_conn_find(conn_handle); if (conn != NULL) { switch (ev->status) { case 0: /* Connection successfully updated. */ conn->bhc_itvl = le16toh(ev->conn_itvl); conn->bhc_latency = le16toh(ev->conn_latency); conn->bhc_supervision_timeout = le16toh(ev->supervision_timeout); break; case BLE_ERR_UNSUPP_REM_FEATURE: /* Peer reports that it doesn't support the procedure. This should * only happen if our controller sent the 4.1 Connection Parameters * Request Procedure. If we are the slave, fail over to the L2CAP * update procedure. */ entry = ble_gap_update_entry_find(conn_handle, NULL); if (entry != NULL && !(conn->bhc_flags & BLE_HS_CONN_F_MASTER)) { ble_gap_update_to_l2cap(&entry->params, &l2cap_params); entry->exp_os_ticks = ble_npl_time_get() + ble_npl_time_ms_to_ticks32(BLE_GAP_UPDATE_TIMEOUT_MS); } break; default: break; } } /* We aren't failing over to L2CAP, the update procedure is complete. */ if (l2cap_params.itvl_min == 0) { entry = ble_gap_update_entry_remove(conn_handle); ble_gap_update_entry_free(entry); } ble_hs_unlock(); if (l2cap_params.itvl_min != 0) { rc = ble_l2cap_sig_update(conn_handle, &l2cap_params, ble_gap_update_l2cap_cb, NULL); if (rc == 0) { call_cb = 0; } else { call_cb = 1; cb_status = rc; } } else { call_cb = 1; cb_status = BLE_HS_HCI_ERR(ev->status); } if (call_cb) { ble_gap_update_notify(conn_handle, cb_status); } #endif } /** * Tells you if there is an active central GAP procedure (connect or discover). */ int ble_gap_master_in_progress(void) { #if MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER) return ble_gap_master.op != BLE_GAP_OP_NULL; #else return false; #endif } #if NIMBLE_BLE_ADVERTISE || NIMBLE_BLE_CONNECT static int ble_gap_adv_active_instance(uint8_t instance) { /* Assume read is atomic; mutex not necessary. */ return ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV; } #endif /** * Clears advertisement and discovery state. This function is necessary * when the controller loses its active state (e.g. on stack reset). */ void ble_gap_reset_state(int reason) { uint16_t conn_handle; while (1) { conn_handle = ble_hs_atomic_first_conn_handle(); if (conn_handle == BLE_HS_CONN_HANDLE_NONE) { break; } ble_gap_conn_broken(conn_handle, reason); } #if NIMBLE_BLE_ADVERTISE #if MYNEWT_VAL(BLE_EXT_ADV) uint8_t i; for (i = 0; i < BLE_ADV_INSTANCES; i++) { if (ble_gap_adv_active_instance(i)) { /* Indicate to application that advertising has stopped. */ ble_gap_adv_finished(i, reason, 0, 0); } } #else if (ble_gap_adv_active_instance(0)) { /* Indicate to application that advertising has stopped. */ ble_gap_adv_finished(0, reason, 0, 0); } #endif #endif #if (NIMBLE_BLE_SCAN || NIMBLE_BLE_CONNECT) ble_gap_master_failed(reason); #endif } #if NIMBLE_BLE_CONNECT static int ble_gap_accept_master_conn(void) { int rc; switch (ble_gap_master.op) { case BLE_GAP_OP_NULL: case BLE_GAP_OP_M_DISC: rc = BLE_HS_ENOENT; break; case BLE_GAP_OP_M_CONN: rc = 0; break; default: BLE_HS_DBG_ASSERT(0); rc = BLE_HS_ENOENT; break; } if (rc == 0) { STATS_INC(ble_gap_stats, connect_mst); } return rc; } static int ble_gap_accept_slave_conn(uint8_t instance) { int rc; if (instance >= BLE_ADV_INSTANCES) { rc = BLE_HS_ENOENT; } else if (!ble_gap_adv_active_instance(instance)) { rc = BLE_HS_ENOENT; } else { if (ble_gap_slave[instance].connectable) { rc = 0; } else { rc = BLE_HS_ENOENT; } } if (rc == 0) { STATS_INC(ble_gap_stats, connect_slv); } return rc; } #endif #if NIMBLE_BLE_SCAN static int ble_gap_rx_adv_report_sanity_check(const uint8_t *adv_data, uint8_t adv_data_len) { const struct ble_hs_adv_field *flags; int rc; STATS_INC(ble_gap_stats, rx_adv_report); if (ble_gap_master.op != BLE_GAP_OP_M_DISC) { return -1; } /* If a limited discovery procedure is active, discard non-limited * advertisements. */ if (ble_gap_master.disc.limited) { rc = ble_hs_adv_find_field(BLE_HS_ADV_TYPE_FLAGS, adv_data, adv_data_len, &flags); if ((rc == 0) && (flags->length == 2) && !(flags->value[0] & BLE_HS_ADV_F_DISC_LTD)) { return -1; } } return 0; } #endif void ble_gap_rx_adv_report(struct ble_gap_disc_desc *desc) { #if NIMBLE_BLE_SCAN if (ble_gap_rx_adv_report_sanity_check(desc->data, desc->length_data)) { return; } ble_gap_disc_report(desc); #endif } #if MYNEWT_VAL(BLE_EXT_ADV) #if NIMBLE_BLE_SCAN void ble_gap_rx_le_scan_timeout(void) { ble_gap_disc_complete(); } void ble_gap_rx_ext_adv_report(struct ble_gap_ext_disc_desc *desc) { if (ble_gap_rx_adv_report_sanity_check(desc->data, desc->length_data)) { return; } ble_gap_disc_report(desc); } #endif void ble_gap_rx_adv_set_terminated(const struct ble_hci_ev_le_subev_adv_set_terminated *ev) { uint16_t conn_handle; int reason; /* Currently spec allows only 0x3c and 0x43 when advertising was stopped * due to timeout or events limit, mp this for timeout error for now */ if (ev->status) { reason = BLE_HS_ETIMEOUT; conn_handle = 0; } else { reason = 0; conn_handle = le16toh(ev->conn_handle); } ble_gap_adv_finished(ev->adv_handle, reason, conn_handle, ev->num_events); } void ble_gap_rx_scan_req_rcvd(const struct ble_hci_ev_le_subev_scan_req_rcvd *ev) { struct ble_gap_event event; ble_gap_event_fn *cb; void *cb_arg; ble_gap_slave_extract_cb(ev->adv_handle, &cb, &cb_arg); if (cb != NULL) { memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_SCAN_REQ_RCVD; event.scan_req_rcvd.instance = ev->adv_handle; event.scan_req_rcvd.scan_addr.type = ev->peer_addr_type; memcpy(event.scan_req_rcvd.scan_addr.val, ev->peer_addr, BLE_DEV_ADDR_LEN); cb(&event, cb_arg); } } #endif /* Periodic adv events */ #if MYNEWT_VAL(BLE_PERIODIC_ADV) void ble_gap_rx_peroidic_adv_sync_estab(const struct ble_hci_ev_le_subev_periodic_adv_sync_estab *ev) { uint16_t sync_handle; struct ble_gap_event event; ble_gap_event_fn *cb; void *cb_arg; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PERIODIC_SYNC; event.periodic_sync.status = ev->status; ble_hs_lock(); BLE_HS_DBG_ASSERT(ble_gap_sync.psync); if (!ev->status) { sync_handle = le16toh(ev->sync_handle); ble_gap_sync.psync->sync_handle = sync_handle; ble_gap_sync.psync->adv_sid = ev->sid; memcpy(ble_gap_sync.psync->advertiser_addr.val, ev->peer_addr, 6); ble_gap_sync.psync->advertiser_addr.type = ev->peer_addr_type; ble_gap_sync.psync->cb = ble_gap_sync.cb; ble_gap_sync.psync->cb_arg = ble_gap_sync.cb_arg; event.periodic_sync.sync_handle = sync_handle; event.periodic_sync.sid = ev->sid; event.periodic_sync.adv_addr = ble_gap_sync.psync->advertiser_addr; event.periodic_sync.adv_phy = ev->phy; event.periodic_sync.per_adv_ival = ev->interval; event.periodic_sync.adv_clk_accuracy = ev->aca; ble_hs_periodic_sync_insert(ble_gap_sync.psync); } else { ble_hs_periodic_sync_free(ble_gap_sync.psync); } cb = ble_gap_sync.cb; cb_arg = ble_gap_sync.cb_arg; ble_gap_sync.op = BLE_GAP_OP_NULL; ble_gap_sync.cb_arg = NULL; ble_gap_sync.cb_arg = NULL; ble_gap_sync.psync = NULL; ble_hs_unlock(); ble_gap_event_listener_call(&event); if (cb) { cb(&event, cb_arg); } } void ble_gap_rx_periodic_adv_rpt(const struct ble_hci_ev_le_subev_periodic_adv_rpt *ev) { struct ble_hs_periodic_sync *psync; struct ble_gap_event event; ble_gap_event_fn *cb; void *cb_arg; ble_hs_lock(); psync = ble_hs_periodic_sync_find_by_handle(le16toh(ev->sync_handle)); if (psync) { cb = psync->cb; cb_arg = psync->cb_arg; } ble_hs_unlock(); if (!psync || !cb) { return; } memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PERIODIC_REPORT; event.periodic_report.sync_handle = psync->sync_handle; event.periodic_report.tx_power = ev->tx_power; event.periodic_report.rssi = ev->rssi; event.periodic_report.data_status = ev->data_status; event.periodic_report.data_length = ev->data_len; event.periodic_report.data = ev->data; /* TODO should we allow for listener too? this can be spammy and is more * like ACL data, not general event */ cb(&event, cb_arg); } void ble_gap_rx_periodic_adv_sync_lost(const struct ble_hci_ev_le_subev_periodic_adv_sync_lost *ev) { struct ble_hs_periodic_sync *psync; struct ble_gap_event event; ble_gap_event_fn *cb; void *cb_arg; ble_hs_lock(); /* The handle must be in the list */ psync = ble_hs_periodic_sync_find_by_handle(le16toh(ev->sync_handle)); BLE_HS_DBG_ASSERT(psync); cb = psync->cb; cb_arg = psync->cb_arg; /* Remove the handle from the list */ ble_hs_periodic_sync_remove(psync); ble_hs_unlock(); memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PERIODIC_SYNC_LOST; event.periodic_sync_lost.sync_handle = psync->sync_handle; event.periodic_sync_lost.reason = BLE_HS_ETIMEOUT; /* remove any sync_lost event from queue */ ble_npl_eventq_remove(ble_hs_evq_get(), &psync->lost_ev); /* Free the memory occupied by psync as it is no longer needed */ ble_hs_periodic_sync_free(psync); ble_gap_event_listener_call(&event); if (cb) { cb(&event, cb_arg); } } #endif #if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_TRANSFER) static int periodic_adv_transfer_disable(uint16_t conn_handle) { struct ble_hci_le_periodic_adv_sync_transfer_params_cp cmd; struct ble_hci_le_periodic_adv_sync_transfer_params_rp rsp; uint16_t opcode; int rc; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS); cmd.conn_handle = htole16(conn_handle); cmd.sync_cte_type = 0x00; cmd.mode = 0x00; cmd.skip = 0x0000; cmd.sync_timeout = 0x000a; rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), &rsp, sizeof(rsp)); if (!rc) { BLE_HS_DBG_ASSERT(le16toh(rsp.conn_handle) == conn_handle); } return rc; } void ble_gap_rx_periodic_adv_sync_transfer(const struct ble_hci_ev_le_subev_periodic_adv_sync_transfer *ev) { struct ble_hci_le_periodic_adv_term_sync_cp cmd_term; struct ble_gap_event event; struct ble_hs_conn *conn; ble_gap_event_fn *cb; uint16_t sync_handle; uint16_t conn_handle; uint16_t opcode; void *cb_arg; conn_handle = le16toh(ev->conn_handle); ble_hs_lock(); /* Unfortunately spec sucks here as it doesn't explicitly stop * transfer reception on first transfer... for now just disable it on * every transfer event we get. */ periodic_adv_transfer_disable(conn_handle); conn = ble_hs_conn_find(le16toh(ev->conn_handle)); if (!conn || !conn->psync) { /* terminate sync if we didn't expect it */ if (!ev->status) { opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC); cmd_term.sync_handle = ev->sync_handle; ble_hs_hci_cmd_tx(opcode, &cmd_term, sizeof(cmd_term), NULL, 0); } ble_hs_unlock(); return; } cb = conn->psync->cb; cb_arg = conn->psync->cb_arg; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PERIODIC_TRANSFER; event.periodic_transfer.status = ev->status; /* only sync handle is not valid on error */ if (ev->status) { sync_handle = 0; ble_hs_periodic_sync_free(conn->psync); } else { sync_handle = le16toh(ev->sync_handle); conn->psync->sync_handle = sync_handle; conn->psync->adv_sid = ev->sid; memcpy(conn->psync->advertiser_addr.val, ev->peer_addr, 6); conn->psync->advertiser_addr.type = ev->peer_addr_type; ble_hs_periodic_sync_insert(conn->psync); } conn->psync = NULL; event.periodic_transfer.sync_handle = sync_handle; event.periodic_transfer.conn_handle = conn_handle; event.periodic_transfer.service_data = le16toh(ev->service_data); event.periodic_transfer.sid = ev->sid; memcpy(event.periodic_transfer.adv_addr.val, ev->peer_addr, 6); event.periodic_transfer.adv_addr.type = ev->peer_addr_type; event.periodic_transfer.adv_phy = ev->phy; event.periodic_transfer.per_adv_itvl = le16toh(ev->interval); event.periodic_transfer.adv_clk_accuracy = ev->aca; ble_hs_unlock(); ble_gap_event_listener_call(&event); if (cb) { cb(&event, cb_arg); } } #endif #if NIMBLE_BLE_CONNECT static int ble_gap_rd_rem_sup_feat_tx(uint16_t handle) { struct ble_hci_le_rd_rem_feat_cp cmd; cmd.conn_handle = htole16(handle); return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_RD_REM_FEAT), &cmd, sizeof(cmd), NULL, 0); } #endif /** * Processes an incoming connection-complete HCI event. * instance parameter is valid only for slave connection. */ int ble_gap_rx_conn_complete(struct ble_gap_conn_complete *evt, uint8_t instance) { #if NIMBLE_BLE_CONNECT struct ble_gap_event event; struct ble_hs_conn *conn; int rc; STATS_INC(ble_gap_stats, rx_conn_complete); /* in that case *only* status field is valid so we determine role * based on error code */ if (evt->status != BLE_ERR_SUCCESS) { switch (evt->status) { case BLE_ERR_DIR_ADV_TMO: /* slave role (HD directed advertising) * * with ext advertising this is send from set terminated event */ #if !MYNEWT_VAL(BLE_EXT_ADV) if (ble_gap_adv_active()) { ble_gap_adv_finished(0, 0, 0, 0); } #endif break; case BLE_ERR_UNK_CONN_ID: /* master role */ if (ble_gap_master_in_progress()) { /* Connect procedure successfully cancelled. */ if (ble_gap_master.preempted_op == BLE_GAP_OP_M_CONN) { ble_gap_master_failed(BLE_HS_EPREEMPTED); } else { ble_gap_master_connect_cancelled(); } } break; default: /* this should never happen, unless controller is broken */ BLE_HS_LOG(INFO, "controller reported invalid error code in conn" "complete event: %u", evt->status); assert(0); break; } return 0; } /* Apply the event to the existing connection if it exists. */ if (ble_hs_atomic_conn_flags(evt->connection_handle, NULL) == 0) { /* XXX: Does this ever happen? */ return 0; } /* This event refers to a new connection. */ switch (evt->role) { case BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER: rc = ble_gap_accept_master_conn(); if (rc != 0) { return rc; } break; case BLE_HCI_LE_CONN_COMPLETE_ROLE_SLAVE: rc = ble_gap_accept_slave_conn(instance); if (rc != 0) { return rc; } break; default: BLE_HS_DBG_ASSERT(0); break; } /* We verified that there is a free connection when the procedure began. */ conn = ble_hs_conn_alloc(evt->connection_handle); BLE_HS_DBG_ASSERT(conn != NULL); conn->bhc_itvl = evt->conn_itvl; conn->bhc_latency = evt->conn_latency; conn->bhc_supervision_timeout = evt->supervision_timeout; conn->bhc_master_clock_accuracy = evt->master_clk_acc; if (evt->role == BLE_HCI_LE_CONN_COMPLETE_ROLE_MASTER) { conn->bhc_cb = ble_gap_master.cb; conn->bhc_cb_arg = ble_gap_master.cb_arg; conn->bhc_flags |= BLE_HS_CONN_F_MASTER; conn->bhc_our_addr_type = ble_gap_master.conn.our_addr_type; ble_gap_master_reset_state(); } else { conn->bhc_cb = ble_gap_slave[instance].cb; conn->bhc_cb_arg = ble_gap_slave[instance].cb_arg; conn->bhc_our_addr_type = ble_gap_slave[instance].our_addr_type; #if MYNEWT_VAL(BLE_EXT_ADV) memcpy(conn->bhc_our_rnd_addr, ble_gap_slave[instance].rnd_addr, 6); #endif ble_gap_slave_reset_state(instance); } conn->bhc_peer_addr.type = evt->peer_addr_type; memcpy(conn->bhc_peer_addr.val, evt->peer_addr, 6); conn->bhc_our_rpa_addr.type = BLE_ADDR_RANDOM; memcpy(conn->bhc_our_rpa_addr.val, evt->local_rpa, 6); /* If peer RPA is not set in the event and peer address * is RPA then store the peer RPA address so when the peer * address is resolved, the RPA is not forgotten. */ if (memcmp(BLE_ADDR_ANY->val, evt->peer_rpa, 6) == 0) { if (BLE_ADDR_IS_RPA(&conn->bhc_peer_addr)) { conn->bhc_peer_rpa_addr = conn->bhc_peer_addr; } } else { conn->bhc_peer_rpa_addr.type = BLE_ADDR_RANDOM; memcpy(conn->bhc_peer_rpa_addr.val, evt->peer_rpa, 6); } ble_hs_lock(); memset(&event, 0, sizeof event); ble_hs_conn_insert(conn); ble_hs_unlock(); event.type = BLE_GAP_EVENT_CONNECT; event.connect.conn_handle = evt->connection_handle; event.connect.status = 0; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, evt->connection_handle); ble_gap_rd_rem_sup_feat_tx(evt->connection_handle); return 0; #else return BLE_HS_ENOTSUP; #endif } void ble_gap_rx_rd_rem_sup_feat_complete(const struct ble_hci_ev_le_subev_rd_rem_used_feat *ev) { #if NIMBLE_BLE_CONNECT struct ble_hs_conn *conn; ble_hs_lock(); conn = ble_hs_conn_find(le16toh(ev->conn_handle)); if ((conn != NULL) && (ev->status == 0)) { conn->supported_feat = get_le32(ev->features); } ble_hs_unlock(); #endif } int ble_gap_rx_l2cap_update_req(uint16_t conn_handle, struct ble_gap_upd_params *params) { #if NIMBLE_BLE_CONNECT struct ble_gap_event event; int rc; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_L2CAP_UPDATE_REQ; event.conn_update_req.conn_handle = conn_handle; event.conn_update_req.peer_params = params; rc = ble_gap_call_conn_event_cb(&event, conn_handle); return rc; #else return BLE_HS_ENOTSUP; #endif } void ble_gap_rx_phy_update_complete(const struct ble_hci_ev_le_subev_phy_update_complete *ev) { #if NIMBLE_BLE_CONNECT struct ble_gap_event event; uint16_t conn_handle = le16toh(ev->conn_handle); memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PHY_UPDATE_COMPLETE; event.phy_updated.status = ev->status; event.phy_updated.conn_handle = conn_handle; event.phy_updated.tx_phy = ev->tx_phy; event.phy_updated.rx_phy = ev->rx_phy; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); #endif } static int32_t ble_gap_master_timer(void) { uint32_t ticks_until_exp; #if NIMBLE_BLE_SCAN || NIMBLE_BLE_CONNECT int rc; #endif ticks_until_exp = ble_gap_master_ticks_until_exp(); if (ticks_until_exp != 0) { /* Timer not expired yet. */ return ticks_until_exp; } /*** Timer expired; process event. */ switch (ble_gap_master.op) { #if NIMBLE_BLE_CONNECT case BLE_GAP_OP_M_CONN: rc = ble_gap_conn_cancel_tx(); if (rc != 0) { /* Failed to stop connecting; try again in 100 ms. */ return ble_npl_time_ms_to_ticks32(BLE_GAP_CANCEL_RETRY_TIMEOUT_MS); } else { /* Stop the timer now that the cancel command has been acked. */ ble_gap_master.exp_set = 0; /* Timeout gets reported when we receive a connection complete * event indicating the connect procedure has been cancelled. */ /* XXX: Set a timer to reset the controller if a connection * complete event isn't received within a reasonable interval. */ } break; #endif case BLE_GAP_OP_M_DISC: #if NIMBLE_BLE_SCAN && !MYNEWT_VAL(BLE_EXT_ADV) /* When a discovery procedure times out, it is not a failure. */ rc = ble_gap_disc_enable_tx(0, 0); if (rc != 0) { /* Failed to stop discovery; try again in 100 ms. */ return ble_npl_time_ms_to_ticks32(BLE_GAP_CANCEL_RETRY_TIMEOUT_MS); } ble_gap_disc_complete(); #else assert(0); #endif break; default: BLE_HS_DBG_ASSERT(0); break; } return BLE_HS_FOREVER; } #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static int32_t ble_gap_slave_timer(void) { uint32_t ticks_until_exp; int rc; ticks_until_exp = ble_gap_slave_ticks_until_exp(); if (ticks_until_exp != 0) { /* Timer not expired yet. */ return ticks_until_exp; } /*** Timer expired; process event. */ /* Stop advertising. */ rc = ble_gap_adv_enable_tx(0); if (rc != 0) { /* Failed to stop advertising; try again in 100 ms. */ return 100; } /* Clear the timer and cancel the current procedure. */ ble_gap_slave_reset_state(0); /* Indicate to application that advertising has stopped. */ ble_gap_adv_finished(0, BLE_HS_ETIMEOUT, 0, 0); return BLE_HS_FOREVER; } #endif static int32_t ble_gap_update_timer(void) { struct ble_gap_update_entry *entry; int32_t ticks_until_exp; uint16_t conn_handle; do { ble_hs_lock(); conn_handle = ble_gap_update_next_exp(&ticks_until_exp); if (ticks_until_exp == 0) { entry = ble_gap_update_entry_remove(conn_handle); } else { entry = NULL; } ble_hs_unlock(); if (entry != NULL) { ble_gap_update_entry_free(entry); } } while (entry != NULL); return ticks_until_exp; } int ble_gap_set_event_cb(uint16_t conn_handle, ble_gap_event_fn *cb, void *cb_arg) { #if NIMBLE_BLE_CONNECT struct ble_hs_conn *conn; ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (conn != NULL) { conn->bhc_cb = cb; conn->bhc_cb_arg = cb_arg; } ble_hs_unlock(); if (conn == NULL) { return BLE_HS_ENOTCONN; } return 0; #else return BLE_HS_ENOTCONN; #endif } /** * Handles timed-out GAP procedures. * * @return The number of ticks until this function should * be called again. */ int32_t ble_gap_timer(void) { int32_t update_ticks; int32_t master_ticks; int32_t min_ticks; master_ticks = ble_gap_master_timer(); update_ticks = ble_gap_update_timer(); min_ticks = min(master_ticks, update_ticks); #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) min_ticks = min(min_ticks, ble_gap_slave_timer()); #endif return min_ticks; } /***************************************************************************** * $white list * *****************************************************************************/ #if MYNEWT_VAL(BLE_WHITELIST) static int ble_gap_wl_busy(void) { /* Check if an auto or selective connection establishment procedure is in * progress. */ return ble_gap_master.op == BLE_GAP_OP_M_CONN && ble_gap_master.conn.using_wl; } static int ble_gap_wl_tx_add(const ble_addr_t *addr) { struct ble_hci_le_add_whte_list_cp cmd; if (addr->type > BLE_ADDR_RANDOM) { return BLE_HS_EINVAL; } memcpy(cmd.addr, addr->val, BLE_DEV_ADDR_LEN); cmd.addr_type = addr->type; return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_ADD_WHITE_LIST), &cmd, sizeof(cmd), NULL, 0); } static int ble_gap_wl_tx_clear(void) { return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_CLEAR_WHITE_LIST), NULL, 0, NULL, 0 ); } #endif int ble_gap_wl_set(const ble_addr_t *addrs, uint8_t white_list_count) { #if MYNEWT_VAL(BLE_WHITELIST) int rc; int i; STATS_INC(ble_gap_stats, wl_set); ble_hs_lock(); if (white_list_count == 0) { rc = BLE_HS_EINVAL; goto done; } for (i = 0; i < white_list_count; i++) { if (addrs[i].type != BLE_ADDR_PUBLIC && addrs[i].type != BLE_ADDR_RANDOM) { rc = BLE_HS_EINVAL; goto done; } } if (ble_gap_wl_busy()) { rc = BLE_HS_EBUSY; goto done; } BLE_HS_LOG(INFO, "GAP procedure initiated: set whitelist; "); ble_gap_log_wl(addrs, white_list_count); BLE_HS_LOG(INFO, "\n"); rc = ble_gap_wl_tx_clear(); if (rc != 0) { goto done; } for (i = 0; i < white_list_count; i++) { rc = ble_gap_wl_tx_add(addrs + i); if (rc != 0) { goto done; } } rc = 0; done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, wl_set_fail); } return rc; #else return BLE_HS_ENOTSUP; #endif } /***************************************************************************** * $stop advertise * *****************************************************************************/ #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static int ble_gap_adv_enable_tx(int enable) { struct ble_hci_le_set_adv_enable_cp cmd; cmd.enable = !!enable; return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_ADV_ENABLE), &cmd, sizeof(cmd), NULL, 0); } static int ble_gap_adv_stop_no_lock(void) { bool active; int rc; BLE_HS_DBG_ASSERT(ble_hs_locked_by_cur_task()); STATS_INC(ble_gap_stats, adv_stop); active = ble_gap_adv_active(); BLE_HS_LOG(INFO, "GAP procedure initiated: stop advertising.\n"); rc = ble_gap_adv_enable_tx(0); if (rc != 0) { goto done; } ble_gap_slave_reset_state(0); if (!active) { rc = BLE_HS_EALREADY; } else { rc = 0; } done: if (rc != 0) { STATS_INC(ble_gap_stats, adv_stop_fail); } return rc; } #endif int ble_gap_adv_stop(void) { #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) int rc; ble_hs_lock(); rc = ble_gap_adv_stop_no_lock(); ble_hs_unlock(); return rc; #else return BLE_HS_ENOTSUP; #endif } /***************************************************************************** * $advertise * *****************************************************************************/ #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) static int ble_gap_adv_type(const struct ble_gap_adv_params *adv_params) { switch (adv_params->conn_mode) { case BLE_GAP_CONN_MODE_NON: if (adv_params->disc_mode == BLE_GAP_DISC_MODE_NON) { return BLE_HCI_ADV_TYPE_ADV_NONCONN_IND; } else { return BLE_HCI_ADV_TYPE_ADV_SCAN_IND; } case BLE_GAP_CONN_MODE_UND: return BLE_HCI_ADV_TYPE_ADV_IND; case BLE_GAP_CONN_MODE_DIR: if (adv_params->high_duty_cycle) { return BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD; } else { return BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_LD; } default: BLE_HS_DBG_ASSERT(0); return BLE_HCI_ADV_TYPE_ADV_IND; } } static void ble_gap_adv_dflt_itvls(uint8_t conn_mode, uint16_t *out_itvl_min, uint16_t *out_itvl_max) { switch (conn_mode) { case BLE_GAP_CONN_MODE_NON: *out_itvl_min = BLE_GAP_ADV_FAST_INTERVAL2_MIN; *out_itvl_max = BLE_GAP_ADV_FAST_INTERVAL2_MAX; break; case BLE_GAP_CONN_MODE_UND: *out_itvl_min = BLE_GAP_ADV_FAST_INTERVAL1_MIN; *out_itvl_max = BLE_GAP_ADV_FAST_INTERVAL1_MAX; break; case BLE_GAP_CONN_MODE_DIR: *out_itvl_min = BLE_GAP_ADV_FAST_INTERVAL1_MIN; *out_itvl_max = BLE_GAP_ADV_FAST_INTERVAL1_MAX; break; default: BLE_HS_DBG_ASSERT(0); *out_itvl_min = BLE_GAP_ADV_FAST_INTERVAL1_MIN; *out_itvl_max = BLE_GAP_ADV_FAST_INTERVAL1_MAX; break; } } static int ble_gap_adv_params_tx(uint8_t own_addr_type, const ble_addr_t *peer_addr, const struct ble_gap_adv_params *adv_params) { const ble_addr_t *peer_any = BLE_ADDR_ANY; struct ble_hci_le_set_adv_params_cp cmd; uint16_t opcode; uint16_t min; uint16_t max; /* Fill optional fields if application did not specify them. */ if ((adv_params->itvl_min == 0) && (adv_params->itvl_max == 0)) { ble_gap_adv_dflt_itvls(adv_params->conn_mode, &min, &max); cmd.min_interval = htole16(min); cmd.max_interval = htole16(max); } else { cmd.min_interval = htole16(adv_params->itvl_min); cmd.max_interval = htole16(adv_params->itvl_max); } cmd.type = ble_gap_adv_type(adv_params); cmd.own_addr_type = own_addr_type; if (peer_addr == NULL) { peer_addr = peer_any; } cmd.peer_addr_type = peer_addr->type; memcpy(&cmd.peer_addr, peer_addr->val, sizeof(cmd.peer_addr)); if (adv_params->channel_map == 0) { cmd.chan_map = BLE_GAP_ADV_DFLT_CHANNEL_MAP; } else { cmd.chan_map = adv_params->channel_map; } /* Zero is the default value for filter policy and high duty cycle */ cmd.filter_policy = adv_params->filter_policy; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_ADV_PARAMS); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } static int ble_gap_adv_validate(uint8_t own_addr_type, const ble_addr_t *peer_addr, const struct ble_gap_adv_params *adv_params) { if (adv_params == NULL) { return BLE_HS_EINVAL; } if (own_addr_type > BLE_HCI_ADV_OWN_ADDR_MAX) { return BLE_HS_EINVAL; } if (adv_params->disc_mode >= BLE_GAP_DISC_MODE_MAX) { return BLE_HS_EINVAL; } if (ble_gap_slave[0].op != BLE_GAP_OP_NULL) { return BLE_HS_EALREADY; } switch (adv_params->conn_mode) { case BLE_GAP_CONN_MODE_NON: /* High duty cycle only allowed for directed advertising. */ if (adv_params->high_duty_cycle) { return BLE_HS_EINVAL; } break; case BLE_GAP_CONN_MODE_UND: /* High duty cycle only allowed for directed advertising. */ if (adv_params->high_duty_cycle) { return BLE_HS_EINVAL; } /* Don't allow connectable advertising if we won't be able to allocate * a new connection. */ if (!ble_hs_conn_can_alloc()) { return BLE_HS_ENOMEM; } break; case BLE_GAP_CONN_MODE_DIR: if (peer_addr == NULL) { return BLE_HS_EINVAL; } if (peer_addr->type != BLE_ADDR_PUBLIC && peer_addr->type != BLE_ADDR_RANDOM && peer_addr->type != BLE_ADDR_PUBLIC_ID && peer_addr->type != BLE_ADDR_RANDOM_ID) { return BLE_HS_EINVAL; } /* Don't allow connectable advertising if we won't be able to allocate * a new connection. */ if (!ble_hs_conn_can_alloc()) { return BLE_HS_ENOMEM; } break; default: return BLE_HS_EINVAL; } return 0; } #endif int ble_gap_adv_start(uint8_t own_addr_type, const ble_addr_t *direct_addr, int32_t duration_ms, const struct ble_gap_adv_params *adv_params, ble_gap_event_fn *cb, void *cb_arg) { #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) uint32_t duration_ticks; int rc; STATS_INC(ble_gap_stats, adv_start); ble_hs_lock(); rc = ble_gap_adv_validate(own_addr_type, direct_addr, adv_params); if (rc != 0) { goto done; } if (duration_ms != BLE_HS_FOREVER) { rc = ble_npl_time_ms_to_ticks(duration_ms, &duration_ticks); if (rc != 0) { /* Duration too great. */ rc = BLE_HS_EINVAL; goto done; } } if (!ble_hs_is_enabled()) { rc = BLE_HS_EDISABLED; goto done; } if (ble_gap_is_preempted()) { rc = BLE_HS_EPREEMPTED; goto done; } rc = ble_hs_id_use_addr(own_addr_type); if (rc != 0) { goto done; } BLE_HS_LOG(INFO, "GAP procedure initiated: advertise; "); ble_gap_log_adv(own_addr_type, direct_addr, adv_params); BLE_HS_LOG(INFO, "\n"); ble_gap_slave[0].cb = cb; ble_gap_slave[0].cb_arg = cb_arg; ble_gap_slave[0].our_addr_type = own_addr_type; if (adv_params->conn_mode != BLE_GAP_CONN_MODE_NON) { ble_gap_slave[0].connectable = 1; } else { ble_gap_slave[0].connectable = 0; } rc = ble_gap_adv_params_tx(own_addr_type, direct_addr, adv_params); if (rc != 0) { goto done; } ble_gap_slave[0].op = BLE_GAP_OP_S_ADV; rc = ble_gap_adv_enable_tx(1); if (rc != 0) { ble_gap_slave_reset_state(0); goto done; } if (duration_ms != BLE_HS_FOREVER) { ble_gap_slave_set_timer(duration_ticks); } rc = 0; done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, adv_start_fail); } return rc; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_adv_set_data(const uint8_t *data, int data_len) { #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) struct ble_hci_le_set_adv_data_cp cmd; uint16_t opcode; STATS_INC(ble_gap_stats, adv_set_data); /* Check for valid parameters */ if (((data == NULL) && (data_len != 0)) || (data_len > BLE_HCI_MAX_ADV_DATA_LEN)) { return BLE_ERR_INV_HCI_CMD_PARMS; } memcpy(cmd.adv_data, data, data_len); cmd.adv_data_len = data_len; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_ADV_DATA); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); #else return BLE_HS_ENOTSUP; #endif } int ble_gap_adv_rsp_set_data(const uint8_t *data, int data_len) { #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) struct ble_hci_le_set_scan_rsp_data_cp cmd; uint16_t opcode; /* Check for valid parameters */ if (((data == NULL) && (data_len != 0)) || (data_len > BLE_HCI_MAX_SCAN_RSP_DATA_LEN)) { return BLE_HS_EINVAL; } memcpy(cmd.scan_rsp, data, data_len); cmd.scan_rsp_len = data_len; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_SCAN_RSP_DATA); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); #else return BLE_HS_ENOTSUP; #endif } int ble_gap_adv_set_fields(const struct ble_hs_adv_fields *adv_fields) { #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) uint8_t buf[BLE_HS_ADV_MAX_SZ]; uint8_t buf_sz; int rc; rc = ble_hs_adv_set_fields(adv_fields, buf, &buf_sz, sizeof buf); if (rc != 0) { return rc; } rc = ble_gap_adv_set_data(buf, buf_sz); if (rc != 0) { return rc; } return 0; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_adv_rsp_set_fields(const struct ble_hs_adv_fields *rsp_fields) { #if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV) uint8_t buf[BLE_HS_ADV_MAX_SZ]; uint8_t buf_sz; int rc; rc = ble_hs_adv_set_fields(rsp_fields, buf, &buf_sz, sizeof buf); if (rc != 0) { return rc; } rc = ble_gap_adv_rsp_set_data(buf, buf_sz); if (rc != 0) { return rc; } return 0; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_adv_active(void) { #if NIMBLE_BLE_ADVERTISE return ble_gap_adv_active_instance(0); #else return 0; #endif } #if MYNEWT_VAL(BLE_EXT_ADV) static int ble_gap_ext_adv_params_tx(uint8_t instance, const struct ble_gap_ext_adv_params *params, int8_t *selected_tx_power) { struct ble_hci_le_set_ext_adv_params_cp cmd; struct ble_hci_le_set_ext_adv_params_rp rsp; int rc; memset(&cmd, 0, sizeof(cmd)); cmd.adv_handle = instance; if (params->connectable) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_CONNECTABLE; } if (params->scannable) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_SCANNABLE; } if (params->directed) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_DIRECTED; cmd.peer_addr_type = params->peer.type; memcpy(cmd.peer_addr, params->peer.val, BLE_DEV_ADDR_LEN); } if (params->high_duty_directed) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_HD_DIRECTED; } if (params->legacy_pdu) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_LEGACY; } if (params->anonymous) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_ANON_ADV; } if (params->include_tx_power) { cmd.props |= BLE_HCI_LE_SET_EXT_ADV_PROP_INC_TX_PWR; } /* Fill optional fields if application did not specify them. */ if (params->itvl_min == 0 && params->itvl_max == 0) { /* TODO for now limited to legacy values*/ put_le24(cmd.pri_itvl_min, BLE_GAP_ADV_FAST_INTERVAL1_MIN); put_le24(cmd.pri_itvl_max, BLE_GAP_ADV_FAST_INTERVAL2_MAX); } else { put_le24(cmd.pri_itvl_min, params->itvl_min); put_le24(cmd.pri_itvl_max, params->itvl_max); } if (params->channel_map == 0) { cmd.pri_chan_map = BLE_GAP_ADV_DFLT_CHANNEL_MAP; } else { cmd.pri_chan_map = params->channel_map; } /* Zero is the default value for filter policy and high duty cycle */ cmd.filter_policy = params->filter_policy; cmd.tx_power = params->tx_power; if (params->legacy_pdu) { cmd.pri_phy = BLE_HCI_LE_PHY_1M; cmd.sec_phy = BLE_HCI_LE_PHY_1M; } else { cmd.pri_phy = params->primary_phy; cmd.sec_phy = params->secondary_phy; } cmd.own_addr_type = params->own_addr_type; cmd.sec_max_skip = 0; cmd.sid = params->sid; cmd.scan_req_notif = params->scan_req_notif; rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_EXT_ADV_PARAM), &cmd, sizeof(cmd), &rsp, sizeof(rsp)); if (rc != 0) { return rc; } if (selected_tx_power) { *selected_tx_power = rsp.tx_power; } return 0; } static int ble_gap_ext_adv_params_validate(const struct ble_gap_ext_adv_params *params) { if (!params) { return BLE_HS_EINVAL; } if (params->own_addr_type > BLE_HCI_ADV_OWN_ADDR_MAX) { return BLE_HS_EINVAL; } /* Don't allow connectable advertising if we won't be able to allocate * a new connection. */ if (params->connectable && !ble_hs_conn_can_alloc()) { return BLE_HS_ENOMEM; } if (params->legacy_pdu) { /* not allowed for legacy PDUs */ if (params->anonymous || params->include_tx_power) { return BLE_HS_EINVAL; } } if (params->directed) { if (params->scannable && params->connectable) { return BLE_HS_EINVAL; } } if (!params->legacy_pdu) { /* not allowed for extended advertising PDUs */ if (params->connectable && params->scannable) { return BLE_HS_EINVAL; } /* HD directed advertising allowed only for legacy PDUs */ if (params->high_duty_directed) { return BLE_HS_EINVAL; } } return 0; } int ble_gap_ext_adv_configure(uint8_t instance, const struct ble_gap_ext_adv_params *params, int8_t *selected_tx_power, ble_gap_event_fn *cb, void *cb_arg) { int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } rc = ble_gap_ext_adv_params_validate(params); if (rc) { return rc; } ble_hs_lock(); if (ble_gap_adv_active_instance(instance)) { ble_hs_unlock(); return BLE_HS_EBUSY; } rc = ble_gap_ext_adv_params_tx(instance, params, selected_tx_power); if (rc) { ble_hs_unlock(); return rc; } ble_gap_slave[instance].configured = 1; ble_gap_slave[instance].cb = cb; ble_gap_slave[instance].cb_arg = cb_arg; ble_gap_slave[instance].our_addr_type = params->own_addr_type; ble_gap_slave[instance].connectable = params->connectable; ble_gap_slave[instance].scannable = params->scannable; ble_gap_slave[instance].directed = params->directed; ble_gap_slave[instance].high_duty_directed = params->high_duty_directed; ble_gap_slave[instance].legacy_pdu = params->legacy_pdu; ble_hs_unlock(); return 0; } static int ble_gap_ext_adv_set_addr_no_lock(uint8_t instance, const uint8_t *addr) { struct ble_hci_le_set_adv_set_rnd_addr_cp cmd; int rc; cmd.adv_handle = instance; memcpy(cmd.addr, addr, BLE_DEV_ADDR_LEN); rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_ADV_SET_RND_ADDR), &cmd, sizeof(cmd), NULL, 0); if (rc != 0) { return rc; } ble_gap_slave[instance].rnd_addr_set = 1; memcpy(ble_gap_slave[instance].rnd_addr, addr, 6); return 0; } int ble_gap_ext_adv_set_addr(uint8_t instance, const ble_addr_t *addr) { int rc; if (instance >= BLE_ADV_INSTANCES || addr->type != BLE_ADDR_RANDOM) { return BLE_HS_EINVAL; } ble_hs_lock(); rc = ble_gap_ext_adv_set_addr_no_lock(instance, addr->val); ble_hs_unlock(); return rc; } int ble_gap_ext_adv_start(uint8_t instance, int duration, int max_events) { struct ble_hci_le_set_ext_adv_enable_cp *cmd; uint8_t buf[sizeof(*cmd) + sizeof(cmd->sets[0])]; const uint8_t *rnd_addr; uint16_t opcode; int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } ble_hs_lock(); if (!ble_gap_slave[instance].configured) { ble_hs_unlock(); return BLE_HS_EINVAL; } if (ble_gap_slave[instance].op != BLE_GAP_OP_NULL) { ble_hs_unlock(); return BLE_HS_EALREADY; } /* HD directed duration shall not be 0 or larger than >1.28s */ if (ble_gap_slave[instance].high_duty_directed && ((duration == 0) || (duration > 128)) ) { ble_hs_unlock(); return BLE_HS_EINVAL; } /* verify own address type if random address for instance wasn't explicitly * set */ switch (ble_gap_slave[instance].our_addr_type) { case BLE_OWN_ADDR_RANDOM: case BLE_OWN_ADDR_RPA_RANDOM_DEFAULT: if (ble_gap_slave[instance].rnd_addr_set) { break; } /* fall through */ case BLE_OWN_ADDR_PUBLIC: case BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT: default: rc = ble_hs_id_use_addr(ble_gap_slave[instance].our_addr_type); if (rc) { ble_hs_unlock(); return BLE_HS_EINVAL; } break; } /* fallback to ID static random address if using random address and instance * wasn't configured with own address */ if (!ble_gap_slave[instance].rnd_addr_set) { switch (ble_gap_slave[instance].our_addr_type) { case BLE_OWN_ADDR_RANDOM: case BLE_OWN_ADDR_RPA_RANDOM_DEFAULT: rc = ble_hs_id_addr(BLE_ADDR_RANDOM, &rnd_addr, NULL); if (rc != 0) { ble_hs_unlock(); return rc; } rc = ble_gap_ext_adv_set_addr_no_lock(instance, rnd_addr); if (rc != 0) { ble_hs_unlock(); return rc; } break; default: break; } } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE); cmd = (void *) buf; cmd->enable = 0x01; cmd->num_sets = 1; cmd->sets[0].adv_handle = instance; cmd->sets[0].duration = htole16(duration); cmd->sets[0].max_events = max_events; rc = ble_hs_hci_cmd_tx(opcode, cmd, sizeof(buf), NULL, 0); if (rc != 0) { ble_hs_unlock(); return rc; } ble_gap_slave[instance].op = BLE_GAP_OP_S_ADV; ble_hs_unlock(); return 0; } static int ble_gap_ext_adv_stop_no_lock(uint8_t instance) { struct ble_hci_le_set_ext_adv_enable_cp *cmd; uint8_t buf[sizeof(*cmd) + sizeof(cmd->sets[0])]; uint16_t opcode; bool active; int rc; if (!ble_gap_slave[instance].configured) { return BLE_HS_EINVAL; } active = ble_gap_adv_active_instance(instance); cmd = (void *) buf; cmd->enable = 0x00; cmd->num_sets = 1; cmd->sets[0].adv_handle = instance; cmd->sets[0].duration = 0x0000; cmd->sets[0].max_events = 0x00; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_EXT_ADV_ENABLE); rc = ble_hs_hci_cmd_tx(opcode, cmd, sizeof(buf), NULL, 0); if (rc != 0) { return rc; } ble_gap_slave[instance].op = BLE_GAP_OP_NULL; if (!active) { return BLE_HS_EALREADY; } else { return 0; } } int ble_gap_ext_adv_stop(uint8_t instance) { int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } ble_hs_lock(); rc = ble_gap_ext_adv_stop_no_lock(instance); ble_hs_unlock(); return rc; } static int ble_gap_ext_adv_set_data_validate(uint8_t instance, struct os_mbuf *data) { uint16_t len = OS_MBUF_PKTLEN(data); if (!ble_gap_slave[instance].configured) { return BLE_HS_EINVAL; } /* not allowed with directed advertising for legacy*/ if (ble_gap_slave[instance].legacy_pdu && ble_gap_slave[instance].directed) { return BLE_HS_EINVAL; } /* always allowed with legacy PDU but limited to legacy length */ if (ble_gap_slave[instance].legacy_pdu) { if (len > BLE_HS_ADV_MAX_SZ) { return BLE_HS_EINVAL; } return 0; } /* if already advertising, data must fit in single HCI command * as per BT 5.0 Vol 2, Part E, 7.8.54. Don't bother Controller with such * a request. */ if (ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV) { if (len > min(MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE), 251)) { return BLE_HS_EINVAL; } } /* not allowed with scannable advertising */ if (ble_gap_slave[instance].scannable) { return BLE_HS_EINVAL; } return 0; } static int ble_gap_ext_adv_set(uint8_t instance, uint16_t opcode, struct os_mbuf **data) { /* in that case we always fit all data in single HCI command */ #if MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE) <= BLE_HCI_MAX_EXT_ADV_DATA_LEN static uint8_t buf[sizeof(struct ble_hci_le_set_ext_adv_data_cp) + \ MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE)]; struct ble_hci_le_set_ext_adv_data_cp *cmd = (void *)buf; uint16_t len = OS_MBUF_PKTLEN(*data); opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, opcode); cmd->adv_handle = instance; cmd->operation = BLE_HCI_LE_SET_DATA_OPER_COMPLETE; cmd->fragment_pref = 0; cmd->adv_data_len = len; os_mbuf_copydata(*data, 0, len, cmd->adv_data); os_mbuf_adj(*data, len); *data = os_mbuf_trim_front(*data); return ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); #else static uint8_t buf[sizeof(struct ble_hci_le_set_ext_adv_data_cp) + \ BLE_HCI_MAX_EXT_ADV_DATA_LEN]; struct ble_hci_le_set_ext_adv_data_cp *cmd = (void *)buf; uint16_t len = OS_MBUF_PKTLEN(*data); uint8_t op; int rc; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, opcode); cmd->adv_handle = instance; /* complete data */ if (len <= BLE_HCI_MAX_EXT_ADV_DATA_LEN) { cmd->operation = BLE_HCI_LE_SET_DATA_OPER_COMPLETE; cmd->fragment_pref = 0; cmd->adv_data_len = len; os_mbuf_copydata(*data, 0, len, cmd->adv_data); os_mbuf_adj(*data, len); *data = os_mbuf_trim_front(*data); return ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); } /* first fragment */ op = BLE_HCI_LE_SET_DATA_OPER_FIRST; do { cmd->operation = op; cmd->fragment_pref = 0; cmd->adv_data_len = BLE_HCI_MAX_EXT_ADV_DATA_LEN; os_mbuf_copydata(*data, 0, BLE_HCI_MAX_EXT_ADV_DATA_LEN, cmd->adv_data); os_mbuf_adj(*data, BLE_HCI_MAX_EXT_ADV_DATA_LEN); *data = os_mbuf_trim_front(*data); rc = ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); if (rc) { return rc; } len -= BLE_HCI_MAX_EXT_ADV_DATA_LEN; op = BLE_HCI_LE_SET_DATA_OPER_INT; } while (len > BLE_HCI_MAX_EXT_ADV_DATA_LEN); /* last fragment */ cmd->operation = BLE_HCI_LE_SET_DATA_OPER_LAST; cmd->fragment_pref = 0; cmd->adv_data_len = len; os_mbuf_copydata(*data, 0, len, cmd->adv_data); os_mbuf_adj(*data, len); *data = os_mbuf_trim_front(*data); return ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); #endif } int ble_gap_ext_adv_set_data(uint8_t instance, struct os_mbuf *data) { int rc; if (instance >= BLE_ADV_INSTANCES) { rc = BLE_HS_EINVAL; goto done; } ble_hs_lock(); rc = ble_gap_ext_adv_set_data_validate(instance, data); if (rc != 0) { ble_hs_unlock(); goto done; } rc = ble_gap_ext_adv_set(instance, BLE_HCI_OCF_LE_SET_EXT_ADV_DATA, &data); ble_hs_unlock(); done: os_mbuf_free_chain(data); return rc; } static int ble_gap_ext_adv_rsp_set_validate(uint8_t instance, struct os_mbuf *data) { uint16_t len = OS_MBUF_PKTLEN(data); if (!ble_gap_slave[instance].configured) { return BLE_HS_EINVAL; } /* not allowed with directed advertising */ if (ble_gap_slave[instance].directed && ble_gap_slave[instance].connectable) { return BLE_HS_EINVAL; } /* only allowed with scannable advertising */ if (!ble_gap_slave[instance].scannable) { return BLE_HS_EINVAL; } /* with legacy PDU limited to legacy length */ if (ble_gap_slave[instance].legacy_pdu) { if (len > BLE_HS_ADV_MAX_SZ) { return BLE_HS_EINVAL; } return 0; } /* if already advertising, data must fit in single HCI command * as per BT 5.0 Vol 2, Part E, 7.8.55. Don't bother Controller with such * a request. */ if (ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV) { if (len > min(MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE), 251)) { return BLE_HS_EINVAL; } } return 0; } int ble_gap_ext_adv_rsp_set_data(uint8_t instance, struct os_mbuf *data) { int rc; if (instance >= BLE_ADV_INSTANCES) { rc = BLE_HS_EINVAL; goto done; } ble_hs_lock(); rc = ble_gap_ext_adv_rsp_set_validate(instance, data); if (rc != 0) { ble_hs_unlock(); goto done; } rc = ble_gap_ext_adv_set(instance, BLE_HCI_OCF_LE_SET_EXT_SCAN_RSP_DATA, &data); ble_hs_unlock(); done: os_mbuf_free_chain(data); return rc; } int ble_gap_ext_adv_remove(uint8_t instance) { struct ble_hci_le_remove_adv_set_cp cmd; uint16_t opcode; int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } ble_hs_lock(); if (!ble_gap_slave[instance].configured) { ble_hs_unlock(); return BLE_HS_EALREADY; } if (ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV) { ble_hs_unlock(); return BLE_HS_EBUSY; } cmd.adv_handle = instance; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_REMOVE_ADV_SET); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); if (rc != 0) { ble_hs_unlock(); return rc; } memset(&ble_gap_slave[instance], 0, sizeof(struct ble_gap_slave_state)); ble_hs_unlock(); return 0; } int ble_gap_ext_adv_clear(void) { int rc; uint8_t instance; uint16_t opcode; ble_hs_lock(); for (instance = 0; instance < BLE_ADV_INSTANCES; instance++) { /* If there is an active instance or periodic adv instance, * Don't send the command * */ if ((ble_gap_slave[instance].op == BLE_GAP_OP_S_ADV)) { ble_hs_unlock(); return BLE_HS_EBUSY; } #if MYNEWT_VAL(BLE_PERIODIC_ADV) if (ble_gap_slave[instance].periodic_op == BLE_GAP_OP_S_PERIODIC_ADV) { ble_hs_unlock(); return BLE_HS_EBUSY; } #endif } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_CLEAR_ADV_SETS); rc = ble_hs_hci_cmd_tx(opcode, NULL, 0, NULL, 0); if (rc != 0) { ble_hs_unlock(); return rc; } memset(ble_gap_slave, 0, sizeof(ble_gap_slave)); ble_hs_unlock(); return 0; } #if MYNEWT_VAL(BLE_PERIODIC_ADV) static int ble_gap_periodic_adv_params_tx(uint8_t instance, const struct ble_gap_periodic_adv_params *params) { struct ble_hci_le_set_periodic_adv_params_cp cmd; uint16_t opcode; cmd.adv_handle = instance; /* Fill optional fields if application did not specify them. */ if (params->itvl_min == 0 && params->itvl_max == 0) { /* TODO defines for those */ cmd.min_itvl = htole16(30 / 1.25); //30 ms cmd.max_itvl = htole16(60 / 1.25); //150 ms } else { cmd.min_itvl = htole16( params->itvl_min); cmd.max_itvl = htole16(params->itvl_max); } if (params->include_tx_power) { cmd.props = BLE_HCI_LE_SET_PERIODIC_ADV_PROP_INC_TX_PWR; } else { cmd.props = 0; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_PERIODIC_ADV_PARAMS); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } static int ble_gap_periodic_adv_params_validate( const struct ble_gap_periodic_adv_params *params) { if (!params) { return BLE_HS_EINVAL; } if (params->itvl_min && params->itvl_min < 6) { return BLE_HS_EINVAL; } if (params->itvl_max && params->itvl_max < 6) { return BLE_HS_EINVAL; } return 0; } int ble_gap_periodic_adv_configure(uint8_t instance, const struct ble_gap_periodic_adv_params *params) { int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } rc = ble_gap_periodic_adv_params_validate(params); if (rc) { return rc; } ble_hs_lock(); /* The corresponding extended advertising instance should be configured */ if (!ble_gap_slave[instance].configured) { ble_hs_unlock(); return ENOMEM; } /* Periodic advertising shall not be configured while it is already * running. * Bluetooth Core Specification, Section 7.8.61 */ if (ble_gap_slave[instance].periodic_op == BLE_GAP_OP_S_PERIODIC_ADV) { ble_hs_unlock(); return BLE_HS_EINVAL; } rc = ble_gap_periodic_adv_params_tx(instance, params); if (rc) { ble_hs_unlock(); return rc; } ble_gap_slave[instance].periodic_configured = 1; ble_hs_unlock(); return 0; } int ble_gap_periodic_adv_start(uint8_t instance) { struct ble_hci_le_set_periodic_adv_enable_cp cmd; uint16_t opcode; int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } ble_hs_lock(); /* Periodic advertising cannot start unless it is configured before */ if (!ble_gap_slave[instance].periodic_configured) { ble_hs_unlock(); return BLE_HS_EINVAL; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE); cmd.enable = 0x01; cmd.adv_handle = instance; rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); if (rc != 0) { ble_hs_unlock(); return rc; } ble_gap_slave[instance].periodic_op = BLE_GAP_OP_S_PERIODIC_ADV; ble_hs_unlock(); return 0; } static int ble_gap_periodic_adv_set(uint8_t instance, struct os_mbuf **data) { /* In that case we always fit all data in single HCI command */ #if MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE) <= BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN static uint8_t buf[sizeof(struct ble_hci_le_set_periodic_adv_data_cp) + MYNEWT_VAL(BLE_EXT_ADV_MAX_SIZE)]; struct ble_hci_le_set_periodic_adv_data_cp *cmd = (void *) buf; uint16_t len = OS_MBUF_PKTLEN(*data); uint16_t opcode; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA); cmd->adv_handle = instance; cmd->operation = BLE_HCI_LE_SET_DATA_OPER_COMPLETE; cmd->adv_data_len = len; os_mbuf_copydata(*data, 0, len, cmd->adv_data); os_mbuf_adj(*data, len); *data = os_mbuf_trim_front(*data); return ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); #else static uint8_t buf[sizeof(struct ble_hci_le_set_periodic_adv_data_cp) + BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN]; struct ble_hci_le_set_periodic_adv_data_cp *cmd = (void *) buf; uint16_t len = OS_MBUF_PKTLEN(*data); uint16_t opcode; uint8_t op; int rc; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_PERIODIC_ADV_DATA); cmd->adv_handle = instance; /* Complete data */ if (len <= BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN) { cmd->operation = BLE_HCI_LE_SET_DATA_OPER_COMPLETE; cmd->adv_data_len = len; os_mbuf_copydata(*data, 0, len, cmd->adv_data); os_mbuf_adj(*data, len); *data = os_mbuf_trim_front(*data); return ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); } /* If the periodic advertising is already enabled, the periodic advertising * the op code shall be nothing but 0x03 * Bluetooth Core Specification, section 7.8.62 */ if (ble_gap_slave[instance].periodic_op == BLE_GAP_OP_S_PERIODIC_ADV) { return BLE_HS_EINVAL; } /* First fragment */ op = BLE_HCI_LE_SET_DATA_OPER_FIRST; do{ cmd->operation = op; cmd->adv_data_len = BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN; os_mbuf_copydata(*data, 0, BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN, cmd->adv_data); os_mbuf_adj(*data, BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN); *data = os_mbuf_trim_front(*data); rc = ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); if (rc) { return rc; } len -= BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN; op = BLE_HCI_LE_SET_DATA_OPER_INT; } while (len > BLE_HCI_MAX_PERIODIC_ADV_DATA_LEN); /* Last fragment */ cmd->operation = BLE_HCI_LE_SET_DATA_OPER_LAST; cmd->adv_data_len = len; os_mbuf_copydata(*data, 0, len, cmd->adv_data); os_mbuf_adj(*data, len); *data = os_mbuf_trim_front(*data); return ble_hs_hci_cmd_tx(opcode, cmd, sizeof(*cmd) + cmd->adv_data_len, NULL, 0); #endif } static int ble_gap_periodic_adv_set_data_validate(uint8_t instance, struct os_mbuf *data) { /* The corresponding extended advertising instance should be configured */ if (!ble_gap_slave[instance].configured) { return BLE_HS_EINVAL; } if (ble_gap_slave[instance].legacy_pdu) { return BLE_HS_EINVAL; } /* One more check states that if the periodic advertising is already * enabled, the operation shall be 0x03 (Complete). * This check is handled during sending the data to the controller, as the * length checks are already checked there, so this saves duplicate code */ return 0; } int ble_gap_periodic_adv_set_data(uint8_t instance, struct os_mbuf *data) { int rc; if (instance >= BLE_ADV_INSTANCES) { rc = BLE_HS_EINVAL; goto done; } ble_hs_lock(); rc = ble_gap_periodic_adv_set_data_validate(instance, data); if (rc != 0) { ble_hs_unlock(); goto done; } rc = ble_gap_periodic_adv_set(instance, &data); ble_hs_unlock(); done: os_mbuf_free_chain(data); return rc; } static int ble_gap_periodic_adv_stop_no_lock(uint8_t instance) { struct ble_hci_le_set_periodic_adv_enable_cp cmd; uint16_t opcode; int rc; cmd.enable = 0x00; cmd.adv_handle = instance; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_PERIODIC_ADV_ENABLE); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); if (rc != 0) { return rc; } ble_gap_slave[instance].periodic_op = BLE_GAP_OP_NULL; return 0; } int ble_gap_periodic_adv_stop(uint8_t instance) { int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } ble_hs_lock(); rc = ble_gap_periodic_adv_stop_no_lock(instance); ble_hs_unlock(); return rc; } static void ble_gap_npl_sync_lost(struct ble_npl_event *ev) { struct ble_hs_periodic_sync *psync; struct ble_gap_event event; ble_gap_event_fn *cb; void *cb_arg; /* this psync is no longer on list so no lock needed */ psync = ble_npl_event_get_arg(ev); cb = psync->cb; cb_arg = psync->cb_arg; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PERIODIC_SYNC_LOST; event.periodic_sync_lost.sync_handle = psync->sync_handle; event.periodic_sync_lost.reason = BLE_HS_EDONE; /* Free the memory occupied by psync as it is no longer needed */ ble_hs_periodic_sync_free(psync); ble_gap_event_listener_call(&event); if (cb) { cb(&event, cb_arg); } } int ble_gap_periodic_adv_sync_create(const ble_addr_t *addr, uint8_t adv_sid, const struct ble_gap_periodic_sync_params *params, ble_gap_event_fn *cb, void *cb_arg) { struct ble_hci_le_periodic_adv_create_sync_cp cmd; struct ble_hs_periodic_sync *psync; uint16_t opcode; int rc; if (addr && (addr->type > BLE_ADDR_RANDOM)) { return BLE_HS_EINVAL; } if (adv_sid > 0x0f) { return BLE_HS_EINVAL; } if ((params->skip > 0x1f3) || (params->sync_timeout > 0x4000) || (params->sync_timeout < 0x0A)) { return BLE_HS_EINVAL; } ble_hs_lock(); /* No sync can be created if another sync is still pending */ if (ble_gap_sync.op == BLE_GAP_OP_SYNC) { ble_hs_unlock(); return BLE_HS_EBUSY; } /* cannot create another sync if already synchronized */ if (ble_hs_periodic_sync_find(addr, adv_sid)) { ble_hs_unlock(); return BLE_HS_EALREADY; } /* preallocate sync element */ psync = ble_hs_periodic_sync_alloc(); if (!psync) { ble_hs_unlock(); return BLE_HS_ENOMEM; } ble_npl_event_init(&psync->lost_ev, ble_gap_npl_sync_lost, psync); if (addr) { cmd.options = 0x00; cmd.peer_addr_type = addr->type; memcpy(cmd.peer_addr, addr->val, BLE_DEV_ADDR_LEN); } else { cmd.options = 0x01; cmd.peer_addr_type = BLE_ADDR_ANY->type; memcpy(cmd.peer_addr, BLE_ADDR_ANY->val, BLE_DEV_ADDR_LEN); } cmd.sid = adv_sid; cmd.skip = params->skip; cmd.sync_timeout = htole16(params->sync_timeout); cmd.sync_cte_type = 0x00; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); if (!rc) { /* This shall be reset upon receiving sync_established event, * or if the sync is cancelled before receiving that event. */ ble_gap_sync.op = BLE_GAP_OP_SYNC; ble_gap_sync.cb = cb; ble_gap_sync.cb_arg = cb_arg; ble_gap_sync.psync = psync; } else { ble_hs_periodic_sync_free(psync); } ble_hs_unlock(); return rc; } int ble_gap_periodic_adv_sync_create_cancel(void) { uint16_t opcode; int rc = 0; ble_hs_lock(); if (ble_gap_sync.op != BLE_GAP_OP_SYNC) { ble_hs_unlock(); return BLE_HS_EBUSY; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_CREATE_SYNC_CANCEL); rc = ble_hs_hci_cmd_tx(opcode, NULL, 0, NULL, 0); ble_hs_unlock(); return rc; } int ble_gap_periodic_adv_sync_terminate(uint16_t sync_handle) { struct ble_hci_le_periodic_adv_term_sync_cp cmd; struct ble_hs_periodic_sync *psync; uint16_t opcode; int rc; ble_hs_lock(); if (ble_gap_sync.op == BLE_GAP_OP_SYNC) { ble_hs_unlock(); return BLE_HS_EBUSY; } /* The handle must be in the list. If it doesn't exist, it means * that the sync may have been lost at the same moment in which * the app wants to terminate that sync handle */ psync = ble_hs_periodic_sync_find_by_handle(sync_handle); if (!psync) { /* Sync already terminated.*/ ble_hs_unlock(); return BLE_HS_ENOTCONN; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_TERM_SYNC); cmd.sync_handle = htole16(sync_handle); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); if (rc == 0) { /* Remove the handle from the list */ ble_hs_periodic_sync_remove(psync); /* send sync_lost event, this is to mimic connection behavior and thus * simplify application error handling */ ble_npl_eventq_put(ble_hs_evq_get(), &psync->lost_ev); } ble_hs_unlock(); return rc; } #if MYNEWT_VAL(BLE_PERIODIC_ADV_SYNC_TRANSFER) int ble_gap_periodic_adv_sync_reporting(uint16_t sync_handle, bool enable) { struct ble_hci_le_periodic_adv_receive_enable_cp cmd; struct ble_hs_periodic_sync *psync; uint16_t opcode; int rc; ble_hs_lock(); if (ble_gap_sync.op == BLE_GAP_OP_SYNC) { ble_hs_unlock(); return BLE_HS_EBUSY; } psync = ble_hs_periodic_sync_find_by_handle(sync_handle); if (!psync) { ble_hs_unlock(); return BLE_HS_ENOTCONN; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_RECEIVE_ENABLE); cmd.sync_handle = htole16(sync_handle); cmd.enable = enable ? 0x01 : 0x00; rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); ble_hs_unlock(); return rc; } int ble_gap_periodic_adv_sync_transfer(uint16_t sync_handle, uint16_t conn_handle, uint16_t service_data) { struct ble_hci_le_periodic_adv_sync_transfer_cp cmd; struct ble_hci_le_periodic_adv_sync_transfer_rp rsp; struct ble_hs_periodic_sync *psync; struct ble_hs_conn *conn; uint16_t opcode; int rc; ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (!conn) { ble_hs_unlock(); return BLE_HS_ENOTCONN; } psync = ble_hs_periodic_sync_find_by_handle(sync_handle); if (!psync) { ble_hs_unlock(); return BLE_HS_ENOTCONN; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER); cmd.conn_handle = htole16(conn_handle); cmd.sync_handle = htole16(sync_handle); cmd.service_data = htole16(service_data); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), &rsp, sizeof(rsp)); if (!rc) { BLE_HS_DBG_ASSERT(le16toh(rsp.conn_handle) == conn_handle); } ble_hs_unlock(); return rc; } int ble_gap_periodic_adv_sync_set_info(uint8_t instance, uint16_t conn_handle, uint16_t service_data) { struct ble_hci_le_periodic_adv_set_info_transfer_cp cmd; struct ble_hci_le_periodic_adv_set_info_transfer_rp rsp; struct ble_hs_conn *conn; uint16_t opcode; int rc; if (instance >= BLE_ADV_INSTANCES) { return BLE_HS_EINVAL; } ble_hs_lock(); if (ble_gap_slave[instance].periodic_op != BLE_GAP_OP_S_PERIODIC_ADV) { /* periodic adv not enabled */ ble_hs_unlock(); return BLE_HS_EINVAL; } conn = ble_hs_conn_find(conn_handle); if (!conn) { ble_hs_unlock(); return BLE_HS_ENOTCONN; } opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_SET_INFO_TRANSFER); cmd.conn_handle = htole16(conn_handle); cmd.adv_handle = instance; cmd.service_data = htole16(service_data); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), &rsp, sizeof(rsp)); if (!rc) { BLE_HS_DBG_ASSERT(le16toh(rsp.conn_handle) == conn_handle); } ble_hs_unlock(); return rc; } static int periodic_adv_transfer_enable(uint16_t conn_handle, const struct ble_gap_periodic_sync_params *params) { struct ble_hci_le_periodic_adv_sync_transfer_params_cp cmd; struct ble_hci_le_periodic_adv_sync_transfer_params_rp rsp; uint16_t opcode; int rc; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_PERIODIC_ADV_SYNC_TRANSFER_PARAMS); cmd.conn_handle = htole16(conn_handle); cmd.sync_cte_type = 0x00; cmd.mode = params->reports_disabled ? 0x01 : 0x02; cmd.skip = htole16(params->skip); cmd.sync_timeout = htole16(params->sync_timeout); rc = ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), &rsp, sizeof(rsp)); if (!rc) { BLE_HS_DBG_ASSERT(le16toh(rsp.conn_handle) == conn_handle); } return rc; } int ble_gap_periodic_adv_sync_receive(uint16_t conn_handle, const struct ble_gap_periodic_sync_params *params, ble_gap_event_fn *cb, void *cb_arg) { struct ble_hs_conn *conn; int rc; ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (!conn) { ble_hs_unlock(); return BLE_HS_ENOTCONN; } if (params) { if (conn->psync) { ble_hs_unlock(); return BLE_HS_EALREADY; } conn->psync = ble_hs_periodic_sync_alloc(); if (!conn->psync) { ble_hs_unlock(); return BLE_HS_ENOMEM; } rc = periodic_adv_transfer_enable(conn_handle, params); if (rc) { ble_hs_periodic_sync_free(conn->psync); conn->psync = NULL; } else { conn->psync->cb = cb; conn->psync->cb_arg = cb_arg; ble_npl_event_init(&conn->psync->lost_ev, ble_gap_npl_sync_lost, conn->psync); } } else { if (!conn->psync) { ble_hs_unlock(); return BLE_HS_EALREADY; } rc = periodic_adv_transfer_disable(conn_handle); if (!rc) { ble_hs_periodic_sync_free(conn->psync); conn->psync = NULL; } } ble_hs_unlock(); return rc; } #endif int ble_gap_add_dev_to_periodic_adv_list(const ble_addr_t *peer_addr, uint8_t adv_sid) { struct ble_hci_le_add_dev_to_periodic_adv_list_cp cmd; uint16_t opcode; if ((peer_addr->type > BLE_ADDR_RANDOM) || (adv_sid > 0x0f)) { return BLE_ERR_INV_HCI_CMD_PARMS; } cmd.peer_addr_type = peer_addr->type; memcpy(cmd.peer_addr, peer_addr->val, BLE_DEV_ADDR_LEN); cmd.sid = adv_sid; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_ADD_DEV_TO_PERIODIC_ADV_LIST); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } int ble_gap_rem_dev_from_periodic_adv_list(const ble_addr_t *peer_addr, uint8_t adv_sid) { struct ble_hci_le_rem_dev_from_periodic_adv_list_cp cmd; uint16_t opcode; if ((peer_addr->type > BLE_ADDR_RANDOM) || (adv_sid > 0x0f)) { return BLE_ERR_INV_HCI_CMD_PARMS; } cmd.peer_addr_type = peer_addr->type; memcpy(cmd.peer_addr, peer_addr->val, BLE_DEV_ADDR_LEN); cmd.sid = adv_sid; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_REM_DEV_FROM_PERIODIC_ADV_LIST); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } int ble_gap_clear_periodic_adv_list(void) { uint16_t opcode; int rc = 0; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_CLEAR_PERIODIC_ADV_LIST); rc = ble_hs_hci_cmd_tx(opcode, NULL, 0, NULL, 0); return rc; } int ble_gap_read_periodic_adv_list_size(uint8_t *per_adv_list_size) { struct ble_hci_le_rd_periodic_adv_list_size_rp rsp; uint16_t opcode; int rc = 0; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_RD_PERIODIC_ADV_LIST_SIZE); rc = ble_hs_hci_cmd_tx(opcode, NULL, 0, &rsp, sizeof(rsp)); if (rc != 0) { return rc; } *per_adv_list_size = rsp.list_size; return 0; } #endif /***************************************************************************** * $discovery procedures * *****************************************************************************/ #if MYNEWT_VAL(BLE_EXT_ADV) && NIMBLE_BLE_SCAN static int ble_gap_ext_disc_tx_params(uint8_t own_addr_type, uint8_t filter_policy, const struct ble_hs_hci_ext_scan_param *uncoded_params, const struct ble_hs_hci_ext_scan_param *coded_params) { struct ble_hci_le_set_ext_scan_params_cp *cmd; struct scan_params *params; uint8_t buf[sizeof(*cmd) + 2 * sizeof(*params)]; uint8_t len = sizeof(*cmd); /* Check own addr type */ if (own_addr_type > BLE_HCI_ADV_OWN_ADDR_MAX) { return BLE_ERR_INV_HCI_CMD_PARMS; } /* Check scanner filter policy */ if (filter_policy > BLE_HCI_SCAN_FILT_MAX) { return BLE_ERR_INV_HCI_CMD_PARMS; } cmd = (void *) buf; params = cmd->scans; cmd->filter_policy = filter_policy; cmd->own_addr_type = own_addr_type; cmd->phys = 0; if (uncoded_params) { cmd->phys |= BLE_HCI_LE_PHY_1M_PREF_MASK; params->type = uncoded_params->scan_type; params->itvl = htole16(uncoded_params->scan_itvl); params->window = htole16(uncoded_params->scan_window); len += sizeof(*params); params++; } if (coded_params) { cmd->phys |= BLE_HCI_LE_PHY_CODED_PREF_MASK; params->type = coded_params->scan_type; params->itvl = htole16(coded_params->scan_itvl); params->window = htole16(coded_params->scan_window); len += sizeof(*params); params++; } if (!cmd->phys) { return BLE_ERR_INV_HCI_CMD_PARMS; } return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_EXT_SCAN_PARAM), cmd, len, NULL, 0); } static int ble_gap_ext_disc_enable_tx(uint8_t enable, uint8_t filter_duplicates, uint16_t duration, uint16_t period) { struct ble_hci_le_set_ext_scan_enable_cp cmd; cmd.enable = enable; cmd.filter_dup = filter_duplicates; cmd.duration = htole16(duration); cmd.period = htole16(period); return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_EXT_SCAN_ENABLE), &cmd, sizeof(cmd), NULL, 0); } #endif #endif #if NIMBLE_BLE_SCAN #if !MYNEWT_VAL(BLE_EXT_ADV) static int ble_gap_disc_enable_tx(int enable, int filter_duplicates) { struct ble_hci_le_set_scan_enable_cp cmd; uint16_t opcode; cmd.enable = !!enable; cmd.filter_duplicates = !!filter_duplicates; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_SCAN_ENABLE); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } static int ble_gap_disc_tx_params(uint8_t own_addr_type, const struct ble_gap_disc_params *disc_params) { struct ble_hci_le_set_scan_params_cp cmd; uint16_t opcode; if (disc_params->passive) { cmd.scan_type = BLE_HCI_SCAN_TYPE_PASSIVE; } else { cmd.scan_type = BLE_HCI_SCAN_TYPE_ACTIVE; } cmd.scan_itvl = htole16(disc_params->itvl); cmd.scan_window = htole16(disc_params->window); cmd.own_addr_type = own_addr_type; cmd.filter_policy = disc_params->filter_policy; opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_SET_SCAN_PARAMS); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } #endif static int ble_gap_disc_disable_tx(void) { #if MYNEWT_VAL(BLE_EXT_ADV) return ble_gap_ext_disc_enable_tx(0, 0, 0, 0); #else return ble_gap_disc_enable_tx(0, 0); #endif } static int ble_gap_disc_cancel_no_lock(void) { int rc; STATS_INC(ble_gap_stats, discover_cancel); if (!ble_gap_disc_active()) { rc = BLE_HS_EALREADY; goto done; } rc = ble_gap_disc_disable_tx(); if (rc != 0) { goto done; } ble_gap_master_reset_state(); done: if (rc != 0) { STATS_INC(ble_gap_stats, discover_cancel_fail); } return rc; } #endif int ble_gap_disc_cancel(void) { #if NIMBLE_BLE_SCAN int rc; ble_hs_lock(); rc = ble_gap_disc_cancel_no_lock(); ble_hs_unlock(); return rc; #else return BLE_HS_ENOTSUP; #endif } #if NIMBLE_BLE_SCAN static int ble_gap_disc_ext_validate(uint8_t own_addr_type) { if (own_addr_type > BLE_HCI_ADV_OWN_ADDR_MAX) { return BLE_HS_EINVAL; } if (ble_gap_conn_active()) { return BLE_HS_EBUSY; } if (ble_gap_disc_active()) { return BLE_HS_EALREADY; } if (!ble_hs_is_enabled()) { return BLE_HS_EDISABLED; } if (ble_gap_is_preempted()) { return BLE_HS_EPREEMPTED; } return 0; } #endif #if MYNEWT_VAL(BLE_EXT_ADV) && NIMBLE_BLE_SCAN static void ble_gap_ext_disc_fill_dflts(uint8_t limited, struct ble_hs_hci_ext_scan_param *disc_params) { if (disc_params->scan_itvl == 0) { if (limited) { disc_params->scan_itvl = BLE_GAP_LIM_DISC_SCAN_INT; } else { disc_params->scan_itvl = BLE_GAP_SCAN_FAST_INTERVAL_MIN; } } if (disc_params->scan_window == 0) { if (limited) { disc_params->scan_window = BLE_GAP_LIM_DISC_SCAN_WINDOW; } else { disc_params->scan_window = BLE_GAP_SCAN_FAST_WINDOW; } } } static void ble_gap_ext_scan_params_to_hci(const struct ble_gap_ext_disc_params *params, struct ble_hs_hci_ext_scan_param *hci_params) { memset(hci_params, 0, sizeof(*hci_params)); if (params->passive) { hci_params->scan_type = BLE_HCI_SCAN_TYPE_PASSIVE; } else { hci_params->scan_type = BLE_HCI_SCAN_TYPE_ACTIVE; } hci_params->scan_itvl = params->itvl; hci_params->scan_window = params->window; } #endif int ble_gap_ext_disc(uint8_t own_addr_type, uint16_t duration, uint16_t period, uint8_t filter_duplicates, uint8_t filter_policy, uint8_t limited, const struct ble_gap_ext_disc_params *uncoded_params, const struct ble_gap_ext_disc_params *coded_params, ble_gap_event_fn *cb, void *cb_arg) { #if NIMBLE_BLE_SCAN && MYNEWT_VAL(BLE_EXT_ADV) struct ble_hs_hci_ext_scan_param ucp; struct ble_hs_hci_ext_scan_param cp; int rc; STATS_INC(ble_gap_stats, discover); ble_hs_lock(); rc = ble_gap_disc_ext_validate(own_addr_type); if (rc != 0) { goto done; } /* Make a copy of the parameter structure and fill unspecified values with * defaults. */ if (uncoded_params) { ble_gap_ext_scan_params_to_hci(uncoded_params, &ucp); ble_gap_ext_disc_fill_dflts(limited, &ucp); /* XXX: We should do it only once */ if (!uncoded_params->passive) { rc = ble_hs_id_use_addr(own_addr_type); if (rc != 0) { goto done; } } } if (coded_params) { ble_gap_ext_scan_params_to_hci(coded_params, &cp); ble_gap_ext_disc_fill_dflts(limited, &cp); /* XXX: We should do it only once */ if (!coded_params->passive) { rc = ble_hs_id_use_addr(own_addr_type); if (rc != 0) { goto done; } } } ble_gap_master.disc.limited = limited; ble_gap_master.cb = cb; ble_gap_master.cb_arg = cb_arg; rc = ble_gap_ext_disc_tx_params(own_addr_type, filter_policy, uncoded_params ? &ucp : NULL, coded_params ? &cp : NULL); if (rc != 0) { goto done; } ble_gap_master.op = BLE_GAP_OP_M_DISC; rc = ble_gap_ext_disc_enable_tx(1, filter_duplicates, duration, period); if (rc != 0) { ble_gap_master_reset_state(); goto done; } rc = 0; done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, discover_fail); } return rc; #else return BLE_HS_ENOTSUP; #endif } #if NIMBLE_BLE_SCAN && !MYNEWT_VAL(BLE_EXT_ADV) static void ble_gap_disc_fill_dflts(struct ble_gap_disc_params *disc_params) { if (disc_params->itvl == 0) { if (disc_params->limited) { disc_params->itvl = BLE_GAP_LIM_DISC_SCAN_INT; } else { disc_params->itvl = BLE_GAP_SCAN_FAST_INTERVAL_MIN; } } if (disc_params->window == 0) { if (disc_params->limited) { disc_params->window = BLE_GAP_LIM_DISC_SCAN_WINDOW; } else { disc_params->window = BLE_GAP_SCAN_FAST_WINDOW; } } } static int ble_gap_disc_validate(uint8_t own_addr_type, const struct ble_gap_disc_params *disc_params) { if (disc_params == NULL) { return BLE_HS_EINVAL; } /* Check interval and window */ if ((disc_params->itvl < BLE_HCI_SCAN_ITVL_MIN) || (disc_params->itvl > BLE_HCI_SCAN_ITVL_MAX) || (disc_params->window < BLE_HCI_SCAN_WINDOW_MIN) || (disc_params->window > BLE_HCI_SCAN_WINDOW_MAX) || (disc_params->itvl < disc_params->window)) { return BLE_HS_EINVAL; } /* Check scanner filter policy */ if (disc_params->filter_policy > BLE_HCI_SCAN_FILT_MAX) { return BLE_HS_EINVAL; } return ble_gap_disc_ext_validate(own_addr_type); } #endif int ble_gap_disc(uint8_t own_addr_type, int32_t duration_ms, const struct ble_gap_disc_params *disc_params, ble_gap_event_fn *cb, void *cb_arg) { #if NIMBLE_BLE_SCAN #if MYNEWT_VAL(BLE_EXT_ADV) struct ble_gap_ext_disc_params p = {0}; p.itvl = disc_params->itvl; p.passive = disc_params->passive; p.window = disc_params->window; if (duration_ms == BLE_HS_FOREVER) { duration_ms = 0; } else if (duration_ms == 0) { duration_ms = BLE_GAP_DISC_DUR_DFLT; } return ble_gap_ext_disc(own_addr_type, duration_ms/10, 0, disc_params->filter_duplicates, disc_params->filter_policy, disc_params->limited, &p, NULL, cb, cb_arg); #else struct ble_gap_disc_params params; uint32_t duration_ticks = 0; int rc; STATS_INC(ble_gap_stats, discover); ble_hs_lock(); /* Make a copy of the parameter strcuture and fill unspecified values with * defaults. */ params = *disc_params; ble_gap_disc_fill_dflts(&params); rc = ble_gap_disc_validate(own_addr_type, &params); if (rc != 0) { goto done; } if (duration_ms == 0) { duration_ms = BLE_GAP_DISC_DUR_DFLT; } if (duration_ms != BLE_HS_FOREVER) { rc = ble_npl_time_ms_to_ticks(duration_ms, &duration_ticks); if (rc != 0) { /* Duration too great. */ rc = BLE_HS_EINVAL; goto done; } } if (!params.passive) { rc = ble_hs_id_use_addr(own_addr_type); if (rc != 0) { goto done; } } ble_gap_master.disc.limited = params.limited; ble_gap_master.cb = cb; ble_gap_master.cb_arg = cb_arg; BLE_HS_LOG(INFO, "GAP procedure initiated: discovery; "); ble_gap_log_disc(own_addr_type, duration_ms, &params); BLE_HS_LOG(INFO, "\n"); rc = ble_gap_disc_tx_params(own_addr_type, &params); if (rc != 0) { goto done; } ble_gap_master.op = BLE_GAP_OP_M_DISC; rc = ble_gap_disc_enable_tx(1, params.filter_duplicates); if (rc != 0) { ble_gap_master_reset_state(); goto done; } if (duration_ms != BLE_HS_FOREVER) { ble_gap_master_set_timer(duration_ticks); } rc = 0; done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, discover_fail); } return rc; #endif #else return BLE_HS_ENOTSUP; #endif } int ble_gap_disc_active(void) { #if MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER) /* Assume read is atomic; mutex not necessary. */ return ble_gap_master.op == BLE_GAP_OP_M_DISC; #else return 0; #endif } #if MYNEWT_VAL(BLE_ROLE_CENTRAL) && !MYNEWT_VAL(BLE_EXT_ADV) /***************************************************************************** * $connection establishment procedures * *****************************************************************************/ static int ble_gap_conn_create_tx(uint8_t own_addr_type, const ble_addr_t *peer_addr, const struct ble_gap_conn_params *params) { struct ble_hci_le_create_conn_cp cmd; uint16_t opcode; cmd.scan_itvl = htole16(params->scan_itvl); cmd.scan_window = htole16(params->scan_window); if (peer_addr == NULL) { /* Application wants to connect to any device in the white list. The * peer address type and peer address fields are ignored by the * controller; fill them with dummy values. */ cmd.filter_policy = BLE_HCI_CONN_FILT_USE_WL; cmd.peer_addr_type = 0; memset(cmd.peer_addr, 0, sizeof(cmd.peer_addr)); } else { cmd.filter_policy = BLE_HCI_CONN_FILT_NO_WL; cmd.peer_addr_type = peer_addr->type; memcpy(cmd.peer_addr, peer_addr->val, sizeof(cmd.peer_addr)); } cmd.own_addr_type = own_addr_type; cmd.min_conn_itvl = htole16(params->itvl_min); cmd.max_conn_itvl = htole16(params->itvl_max); cmd.conn_latency = htole16(params->latency); cmd.tmo = htole16(params->supervision_timeout); cmd.min_ce = htole16(params->min_ce_len); cmd.max_ce = htole16(params->max_ce_len); opcode = BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_CREATE_CONN); return ble_hs_hci_cmd_tx(opcode, &cmd, sizeof(cmd), NULL, 0); } #endif #if MYNEWT_VAL(BLE_EXT_ADV) #if MYNEWT_VAL(BLE_ROLE_CENTRAL) static int ble_gap_check_conn_params(uint8_t phy, const struct ble_gap_conn_params *params) { if (phy != BLE_HCI_LE_PHY_2M) { /* Check scan interval and window */ if ((params->scan_itvl < BLE_HCI_SCAN_ITVL_MIN) || (params->scan_itvl > BLE_HCI_SCAN_ITVL_MAX) || (params->scan_window < BLE_HCI_SCAN_WINDOW_MIN) || (params->scan_window > BLE_HCI_SCAN_WINDOW_MAX) || (params->scan_itvl < params->scan_window)) { return BLE_ERR_INV_HCI_CMD_PARMS; } } /* Check connection interval min */ if ((params->itvl_min < BLE_HCI_CONN_ITVL_MIN) || (params->itvl_min > BLE_HCI_CONN_ITVL_MAX)) { return BLE_ERR_INV_HCI_CMD_PARMS; } /* Check connection interval max */ if ((params->itvl_max < BLE_HCI_CONN_ITVL_MIN) || (params->itvl_max > BLE_HCI_CONN_ITVL_MAX) || (params->itvl_max < params->itvl_min)) { return BLE_ERR_INV_HCI_CMD_PARMS; } /* Check connection latency */ if ((params->latency < BLE_HCI_CONN_LATENCY_MIN) || (params->latency > BLE_HCI_CONN_LATENCY_MAX)) { return BLE_ERR_INV_HCI_CMD_PARMS; } /* Check supervision timeout */ if ((params->supervision_timeout < BLE_HCI_CONN_SPVN_TIMEOUT_MIN) || (params->supervision_timeout > BLE_HCI_CONN_SPVN_TIMEOUT_MAX)) { return BLE_ERR_INV_HCI_CMD_PARMS; } /* Check connection event length */ if (params->min_ce_len > params->max_ce_len) { return BLE_ERR_INV_HCI_CMD_PARMS; } return 0; } static int ble_gap_ext_conn_create_tx( uint8_t own_addr_type, const ble_addr_t *peer_addr, uint8_t phy_mask, const struct ble_gap_conn_params *phy_1m_conn_params, const struct ble_gap_conn_params *phy_2m_conn_params, const struct ble_gap_conn_params *phy_coded_conn_params) { struct ble_hci_le_ext_create_conn_cp *cmd; struct conn_params *params; uint8_t buf[sizeof(*cmd) + 3 * sizeof(*params)]; uint8_t len = sizeof(*cmd); int rc; /* Check own addr type */ if (own_addr_type > BLE_HCI_ADV_OWN_ADDR_MAX) { return BLE_ERR_INV_HCI_CMD_PARMS; } if (phy_mask > (BLE_HCI_LE_PHY_1M_PREF_MASK | BLE_HCI_LE_PHY_2M_PREF_MASK | BLE_HCI_LE_PHY_CODED_PREF_MASK)) { return BLE_ERR_INV_HCI_CMD_PARMS; } cmd = (void *) buf; params = cmd->conn_params; if (peer_addr == NULL) { /* Application wants to connect to any device in the white list. The * peer address type and peer address fields are ignored by the * controller; fill them with dummy values. */ cmd->filter_policy = BLE_HCI_CONN_FILT_USE_WL; cmd->peer_addr_type = 0; memset(cmd->peer_addr, 0, sizeof(cmd->peer_addr)); } else { /* Check peer addr type */ if (peer_addr->type > BLE_HCI_CONN_PEER_ADDR_MAX) { return BLE_ERR_INV_HCI_CMD_PARMS; } cmd->filter_policy = BLE_HCI_CONN_FILT_NO_WL; cmd->peer_addr_type = peer_addr->type; memcpy(cmd->peer_addr, peer_addr->val, sizeof(cmd->peer_addr)); } cmd->own_addr_type = own_addr_type; cmd->init_phy_mask = phy_mask; if (phy_mask & BLE_GAP_LE_PHY_1M_MASK) { rc = ble_gap_check_conn_params(BLE_HCI_LE_PHY_1M, phy_1m_conn_params); if (rc) { return rc; } params->scan_itvl = htole16(phy_1m_conn_params->scan_itvl); params->scan_window = htole16(phy_1m_conn_params->scan_window); params->conn_min_itvl = htole16(phy_1m_conn_params->itvl_min); params->conn_max_itvl = htole16(phy_1m_conn_params->itvl_max); params->conn_latency = htole16(phy_1m_conn_params->latency); params->supervision_timeout = htole16(phy_1m_conn_params->supervision_timeout); params->min_ce = htole16(phy_1m_conn_params->min_ce_len); params->max_ce = htole16(phy_1m_conn_params->max_ce_len); params++; len += sizeof(*params); } if (phy_mask & BLE_GAP_LE_PHY_2M_MASK) { rc = ble_gap_check_conn_params(BLE_HCI_LE_PHY_2M, phy_2m_conn_params); if (rc) { return rc; } params->scan_itvl = htole16(phy_2m_conn_params->scan_itvl); params->scan_window = htole16(phy_2m_conn_params->scan_window); params->conn_min_itvl = htole16(phy_2m_conn_params->itvl_min); params->conn_max_itvl = htole16(phy_2m_conn_params->itvl_max); params->conn_latency = htole16(phy_2m_conn_params->latency); params->supervision_timeout = htole16(phy_2m_conn_params->supervision_timeout); params->min_ce = htole16(phy_2m_conn_params->min_ce_len); params->max_ce = htole16(phy_2m_conn_params->max_ce_len); params++; len += sizeof(*params); } if (phy_mask & BLE_GAP_LE_PHY_CODED_MASK) { rc = ble_gap_check_conn_params(BLE_HCI_LE_PHY_CODED, phy_coded_conn_params); if (rc) { return rc; } params->scan_itvl = htole16(phy_coded_conn_params->scan_itvl); params->scan_window = htole16(phy_coded_conn_params->scan_window); params->conn_min_itvl = htole16(phy_coded_conn_params->itvl_min); params->conn_max_itvl = htole16(phy_coded_conn_params->itvl_max); params->conn_latency = htole16(phy_coded_conn_params->latency); params->supervision_timeout = htole16(phy_coded_conn_params->supervision_timeout); params->min_ce = htole16(phy_coded_conn_params->min_ce_len); params->max_ce = htole16(phy_coded_conn_params->max_ce_len); params++; len += sizeof(*params); } return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_EXT_CREATE_CONN), cmd, len, NULL, 0); } #endif /** * Initiates a connect procedure. * * @param own_addr_type The type of address the stack should use for * itself during connection establishment. * o BLE_OWN_ADDR_PUBLIC * o BLE_OWN_ADDR_RANDOM * o BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT * o BLE_OWN_ADDR_RPA_RANDOM_DEFAULT * @param peer_addr The address of the peer to connect to. * If this parameter is NULL, the white list * is used. * @param duration_ms The duration of the discovery procedure. * On expiration, the procedure ends and a * BLE_GAP_EVENT_DISC_COMPLETE event is * reported. Units are milliseconds. * @param phy_mask Define on which PHYs connection attempt should * be done * @param phy_1m_conn_params Additional arguments specifying the * particulars of the connect procedure. When * BLE_GAP_LE_PHY_1M_MASK is set in phy_mask * this parameter can be specify to null for * default values. * @param phy_2m_conn_params Additional arguments specifying the * particulars of the connect procedure. When * BLE_GAP_LE_PHY_2M_MASK is set in phy_mask * this parameter can be specify to null for * default values. * @param phy_coded_conn_params Additional arguments specifying the * particulars of the connect procedure. When * BLE_GAP_LE_PHY_CODED_MASK is set in * phy_mask this parameter can be specify to * null for default values. * @param cb The callback to associate with this connect * procedure. When the connect procedure * completes, the result is reported through * this callback. If the connect procedure * succeeds, the connection inherits this * callback as its event-reporting mechanism. * @param cb_arg The optional argument to pass to the callback * function. * * @return 0 on success; * BLE_HS_EALREADY if a connection attempt is * already in progress; * BLE_HS_EBUSY if initiating a connection is not * possible because scanning is in progress; * BLE_HS_EDONE if the specified peer is already * connected; * Other nonzero on error. */ int ble_gap_ext_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr, int32_t duration_ms, uint8_t phy_mask, const struct ble_gap_conn_params *phy_1m_conn_params, const struct ble_gap_conn_params *phy_2m_conn_params, const struct ble_gap_conn_params *phy_coded_conn_params, ble_gap_event_fn *cb, void *cb_arg) { #if MYNEWT_VAL(BLE_ROLE_CENTRAL) ble_npl_time_t duration_ticks; int rc; STATS_INC(ble_gap_stats, initiate); ble_hs_lock(); if (ble_gap_conn_active()) { rc = BLE_HS_EALREADY; goto done; } if (ble_gap_disc_active()) { rc = BLE_HS_EBUSY; goto done; } if (!ble_hs_is_enabled()) { return BLE_HS_EDISABLED; } if (ble_gap_is_preempted()) { rc = BLE_HS_EPREEMPTED; goto done; } if (!ble_hs_conn_can_alloc()) { rc = BLE_HS_ENOMEM; goto done; } if (peer_addr && peer_addr->type != BLE_ADDR_PUBLIC && peer_addr->type != BLE_ADDR_RANDOM && peer_addr->type != BLE_ADDR_PUBLIC_ID && peer_addr->type != BLE_ADDR_RANDOM_ID) { rc = BLE_HS_EINVAL; goto done; } if ((phy_mask & BLE_GAP_LE_PHY_1M_MASK) && phy_1m_conn_params == NULL) { phy_1m_conn_params = &ble_gap_conn_params_dflt; } if ((phy_mask & BLE_GAP_LE_PHY_2M_MASK) && phy_2m_conn_params == NULL) { phy_2m_conn_params = &ble_gap_conn_params_dflt; } if ((phy_mask & BLE_GAP_LE_PHY_CODED_MASK) && phy_coded_conn_params == NULL) { phy_coded_conn_params = &ble_gap_conn_params_dflt; } if (duration_ms == 0) { duration_ms = BLE_GAP_CONN_DUR_DFLT; } if (duration_ms != BLE_HS_FOREVER) { rc = ble_npl_time_ms_to_ticks(duration_ms, &duration_ticks); if (rc != 0) { /* Duration too great. */ rc = BLE_HS_EINVAL; goto done; } } /* Verify peer not already connected. */ if (ble_hs_conn_find_by_addr(peer_addr) != NULL) { rc = BLE_HS_EDONE; goto done; } /* XXX: Verify conn_params. */ rc = ble_hs_id_use_addr(own_addr_type); if (rc != 0) { goto done; } ble_gap_master.cb = cb; ble_gap_master.cb_arg = cb_arg; ble_gap_master.conn.using_wl = peer_addr == NULL; ble_gap_master.conn.our_addr_type = own_addr_type; ble_gap_master.op = BLE_GAP_OP_M_CONN; rc = ble_gap_ext_conn_create_tx(own_addr_type, peer_addr, phy_mask, phy_1m_conn_params, phy_2m_conn_params, phy_coded_conn_params); if (rc != 0) { ble_gap_master_reset_state(); goto done; } if (duration_ms != BLE_HS_FOREVER) { ble_gap_master_set_timer(duration_ticks); } rc = 0; done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, initiate_fail); } return rc; #else return BLE_HS_ENOTSUP; #endif } #endif int ble_gap_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr, int32_t duration_ms, const struct ble_gap_conn_params *conn_params, ble_gap_event_fn *cb, void *cb_arg) { #if MYNEWT_VAL(BLE_ROLE_CENTRAL) #if MYNEWT_VAL(BLE_EXT_ADV) return ble_gap_ext_connect(own_addr_type, peer_addr, duration_ms, BLE_GAP_LE_PHY_1M_MASK, conn_params, NULL, NULL, cb, cb_arg); #else uint32_t duration_ticks; int rc; STATS_INC(ble_gap_stats, initiate); ble_hs_lock(); if (ble_gap_conn_active()) { rc = BLE_HS_EALREADY; goto done; } if (ble_gap_disc_active()) { rc = BLE_HS_EBUSY; goto done; } if (!ble_hs_is_enabled()) { rc = BLE_HS_EDISABLED; goto done; } if (ble_gap_is_preempted()) { rc = BLE_HS_EPREEMPTED; goto done; } if (!ble_hs_conn_can_alloc()) { rc = BLE_HS_ENOMEM; goto done; } if (peer_addr && peer_addr->type != BLE_ADDR_PUBLIC && peer_addr->type != BLE_ADDR_RANDOM && peer_addr->type != BLE_ADDR_PUBLIC_ID && peer_addr->type != BLE_ADDR_RANDOM_ID) { rc = BLE_HS_EINVAL; goto done; } if (conn_params == NULL) { conn_params = &ble_gap_conn_params_dflt; } if (duration_ms == 0) { duration_ms = BLE_GAP_CONN_DUR_DFLT; } if (duration_ms != BLE_HS_FOREVER) { rc = ble_npl_time_ms_to_ticks(duration_ms, &duration_ticks); if (rc != 0) { /* Duration too great. */ rc = BLE_HS_EINVAL; goto done; } } /* Verify peer not already connected. */ if (ble_hs_conn_find_by_addr(peer_addr) != NULL) { rc = BLE_HS_EDONE; goto done; } /* XXX: Verify conn_params. */ rc = ble_hs_id_use_addr(own_addr_type); if (rc != 0) { goto done; } BLE_HS_LOG(INFO, "GAP procedure initiated: connect; "); ble_gap_log_conn(own_addr_type, peer_addr, conn_params); BLE_HS_LOG(INFO, "\n"); ble_gap_master.cb = cb; ble_gap_master.cb_arg = cb_arg; ble_gap_master.conn.using_wl = peer_addr == NULL; ble_gap_master.conn.our_addr_type = own_addr_type; ble_gap_master.op = BLE_GAP_OP_M_CONN; rc = ble_gap_conn_create_tx(own_addr_type, peer_addr, conn_params); if (rc != 0) { ble_gap_master_reset_state(); goto done; } if (duration_ms != BLE_HS_FOREVER) { ble_gap_master_set_timer(duration_ticks); } rc = 0; done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, initiate_fail); } return rc; #endif #else return BLE_HS_ENOTSUP; #endif } int ble_gap_conn_active(void) { #if MYNEWT_VAL(BLE_ROLE_CENTRAL) || MYNEWT_VAL(BLE_ROLE_OBSERVER) /* Assume read is atomic; mutex not necessary. */ return ble_gap_master.op == BLE_GAP_OP_M_CONN; #else return 0; #endif } /***************************************************************************** * $terminate connection procedure * *****************************************************************************/ int ble_gap_terminate_with_conn(struct ble_hs_conn *conn, uint8_t hci_reason) { #if NIMBLE_BLE_CONNECT struct ble_hci_lc_disconnect_cp cmd; int rc; BLE_HS_DBG_ASSERT(ble_hs_locked_by_cur_task()); if (conn->bhc_flags & BLE_HS_CONN_F_TERMINATING) { return BLE_HS_EALREADY; } BLE_HS_LOG(INFO, "GAP procedure initiated: terminate connection; " "conn_handle=%d hci_reason=%d\n", conn->bhc_handle, hci_reason); cmd.conn_handle = htole16(conn->bhc_handle); cmd.reason = hci_reason; rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LINK_CTRL, BLE_HCI_OCF_DISCONNECT_CMD), &cmd, sizeof(cmd), NULL, 0); if (rc != 0) { return rc; } conn->bhc_flags |= BLE_HS_CONN_F_TERMINATING; return 0; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_terminate(uint16_t conn_handle, uint8_t hci_reason) { #if NIMBLE_BLE_CONNECT struct ble_hs_conn *conn; int rc; STATS_INC(ble_gap_stats, terminate); ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (conn == NULL) { rc = BLE_HS_ENOTCONN; goto done; } rc = ble_gap_terminate_with_conn(conn, hci_reason); done: ble_hs_unlock(); if (rc != 0) { STATS_INC(ble_gap_stats, terminate_fail); } return rc; #else return BLE_HS_ENOTSUP; #endif } /***************************************************************************** * $cancel * *****************************************************************************/ #if NIMBLE_BLE_CONNECT static int ble_gap_conn_cancel_tx(void) { int rc; rc = ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_CREATE_CONN_CANCEL), NULL, 0, NULL, 0); if (rc != 0) { return rc; } return 0; } static int ble_gap_conn_cancel_no_lock(void) { int rc; STATS_INC(ble_gap_stats, cancel); if (!ble_gap_conn_active()) { rc = BLE_HS_EALREADY; goto done; } BLE_HS_LOG(INFO, "GAP procedure initiated: cancel connection\n"); rc = ble_gap_conn_cancel_tx(); if (rc != 0) { goto done; } ble_gap_master.conn.cancel = 1; rc = 0; done: if (rc != 0) { STATS_INC(ble_gap_stats, cancel_fail); } return rc; } #endif int ble_gap_conn_cancel(void) { #if MYNEWT_VAL(BLE_ROLE_CENTRAL) int rc; ble_hs_lock(); rc = ble_gap_conn_cancel_no_lock(); ble_hs_unlock(); return rc; #else return BLE_HS_ENOTSUP; #endif } /***************************************************************************** * $update connection parameters * *****************************************************************************/ #if NIMBLE_BLE_CONNECT static struct ble_gap_update_entry * ble_gap_update_entry_alloc(void) { struct ble_gap_update_entry *entry; entry = os_memblock_get(&ble_gap_update_entry_pool); if (entry != NULL) { memset(entry, 0, sizeof *entry); } return entry; } #endif static void ble_gap_update_entry_free(struct ble_gap_update_entry *entry) { int rc; if (entry != NULL) { #if MYNEWT_VAL(BLE_HS_DEBUG) memset(entry, 0xff, sizeof *entry); #endif rc = os_memblock_put(&ble_gap_update_entry_pool, entry); BLE_HS_DBG_ASSERT_EVAL(rc == 0); } } static struct ble_gap_update_entry * ble_gap_update_entry_find(uint16_t conn_handle, struct ble_gap_update_entry **out_prev) { struct ble_gap_update_entry *entry; struct ble_gap_update_entry *prev; BLE_HS_DBG_ASSERT(ble_hs_locked_by_cur_task()); prev = NULL; SLIST_FOREACH(entry, &ble_gap_update_entries, next) { if (entry->conn_handle == conn_handle) { break; } prev = entry; } if (out_prev != NULL) { *out_prev = prev; } return entry; } static struct ble_gap_update_entry * ble_gap_update_entry_remove(uint16_t conn_handle) { struct ble_gap_update_entry *entry; struct ble_gap_update_entry *prev; entry = ble_gap_update_entry_find(conn_handle, &prev); if (entry != NULL) { if (prev == NULL) { SLIST_REMOVE_HEAD(&ble_gap_update_entries, next); } else { SLIST_NEXT(prev, next) = SLIST_NEXT(entry, next); } ble_hs_timer_resched(); } return entry; } #if NIMBLE_BLE_CONNECT static void ble_gap_update_l2cap_cb(uint16_t conn_handle, int status, void *arg) { struct ble_gap_update_entry *entry; /* Report failures and rejections. Success gets reported when the * controller sends the connection update complete event. */ ble_hs_lock(); entry = ble_gap_update_entry_remove(conn_handle); ble_hs_unlock(); if (entry != NULL) { ble_gap_update_entry_free(entry); if (status != 0) { ble_gap_update_notify(conn_handle, status); } /* On success let's wait for the controller to notify about update */ } } static int ble_gap_tx_param_pos_reply(uint16_t conn_handle, struct ble_gap_upd_params *params) { struct ble_hci_le_rem_conn_param_rr_cp cmd; cmd.conn_handle = htole16(conn_handle); cmd.conn_itvl_min = htole16(params->itvl_min); cmd.conn_itvl_max = htole16(params->itvl_max); cmd.conn_latency = htole16(params->latency); cmd.supervision_timeout = htole16(params->supervision_timeout); cmd.min_ce = htole16(params->min_ce_len); cmd.max_ce = htole16(params->max_ce_len); return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_REM_CONN_PARAM_RR), &cmd, sizeof(cmd), NULL, 0); } static int ble_gap_tx_param_neg_reply(uint16_t conn_handle, uint8_t reject_reason) { struct ble_hci_le_rem_conn_params_nrr_cp cmd; cmd.conn_handle = htole16(conn_handle); cmd.reason = reject_reason; return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_REM_CONN_PARAM_NRR), &cmd, sizeof(cmd), NULL, 0); } #endif void ble_gap_rx_param_req(const struct ble_hci_ev_le_subev_rem_conn_param_req *ev) { #if NIMBLE_BLE_CONNECT struct ble_gap_upd_params peer_params; struct ble_gap_upd_params self_params; struct ble_gap_event event; uint16_t conn_handle; int rc; memset(&event, 0, sizeof event); peer_params.itvl_min = le16toh(ev->min_interval); peer_params.itvl_max = le16toh(ev->max_interval); peer_params.latency = le16toh(ev->latency); peer_params.supervision_timeout = le16toh(ev->timeout); peer_params.min_ce_len = 0; peer_params.max_ce_len = 0; /* Copy the peer params into the self params to make it easy on the * application. The application callback will change only the fields which * it finds unsuitable. */ self_params = peer_params; conn_handle = le16toh(ev->conn_handle); memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_CONN_UPDATE_REQ; event.conn_update_req.conn_handle = conn_handle; event.conn_update_req.self_params = &self_params; event.conn_update_req.peer_params = &peer_params; rc = ble_gap_call_conn_event_cb(&event, conn_handle); if (rc == 0) { rc = ble_gap_tx_param_pos_reply(conn_handle, &self_params); if (rc != 0) { ble_gap_update_failed(conn_handle, rc); } } else { ble_gap_tx_param_neg_reply(conn_handle, rc); } #endif } #if NIMBLE_BLE_CONNECT static int ble_gap_update_tx(uint16_t conn_handle, const struct ble_gap_upd_params *params) { struct ble_hci_le_conn_update_cp cmd; cmd.conn_handle = htole16(conn_handle); cmd.conn_itvl_min = htole16(params->itvl_min); cmd.conn_itvl_max = htole16(params->itvl_max); cmd.conn_latency = htole16(params->latency); cmd.supervision_timeout = htole16(params->supervision_timeout); cmd.min_ce_len = htole16(params->min_ce_len); cmd.max_ce_len = htole16(params->max_ce_len); return ble_hs_hci_cmd_tx(BLE_HCI_OP(BLE_HCI_OGF_LE, BLE_HCI_OCF_LE_CONN_UPDATE), &cmd, sizeof(cmd), NULL, 0); } static bool ble_gap_validate_conn_params(const struct ble_gap_upd_params *params) { /* Requirements from Bluetooth spec. v4.2 [Vol 2, Part E], 7.8.18 */ if (params->itvl_min > params->itvl_max) { return false; } if (params->itvl_min < 0x0006 || params->itvl_max > 0x0C80) { return false; } if (params->latency > 0x01F3) { return false; } /* According to specification mentioned above we should make sure that: * supervision_timeout_ms > (1 + latency) * 2 * max_interval_ms * => * supervision_timeout * 10 ms > (1 + latency) * 2 * itvl_max * 1.25ms */ if (params->supervision_timeout <= (((1 + params->latency) * params->itvl_max) / 4)) { return false; } return true; } #endif int ble_gap_update_params(uint16_t conn_handle, const struct ble_gap_upd_params *params) { #if NIMBLE_BLE_CONNECT struct ble_l2cap_sig_update_params l2cap_params; struct ble_gap_update_entry *entry; struct ble_gap_update_entry *dup; struct ble_hs_conn *conn; int l2cap_update; int rc; l2cap_update = 0; /* Validate parameters with a spec */ if (!ble_gap_validate_conn_params(params)) { return BLE_HS_EINVAL; } STATS_INC(ble_gap_stats, update); memset(&l2cap_params, 0, sizeof l2cap_params); entry = NULL; ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (conn == NULL) { rc = BLE_HS_ENOTCONN; goto done; } /* Don't allow two concurrent updates to the same connection. */ dup = ble_gap_update_entry_find(conn_handle, NULL); if (dup != NULL) { rc = BLE_HS_EALREADY; goto done; } entry = ble_gap_update_entry_alloc(); if (entry == NULL) { rc = BLE_HS_ENOMEM; goto done; } entry->conn_handle = conn_handle; entry->params = *params; entry->exp_os_ticks = ble_npl_time_get() + ble_npl_time_ms_to_ticks32(BLE_GAP_UPDATE_TIMEOUT_MS); BLE_HS_LOG(INFO, "GAP procedure initiated: "); ble_gap_log_update(conn_handle, params); BLE_HS_LOG(INFO, "\n"); /* * If LL update procedure is not supported on this connection and we are * the slave, fail over to the L2CAP update procedure. */ if ((conn->supported_feat & BLE_HS_HCI_LE_FEAT_CONN_PARAM_REQUEST) == 0 && !(conn->bhc_flags & BLE_HS_CONN_F_MASTER)) { l2cap_update = 1; rc = 0; } else { rc = ble_gap_update_tx(conn_handle, params); } done: ble_hs_unlock(); if (!l2cap_update) { ble_hs_timer_resched(); } else { ble_gap_update_to_l2cap(params, &l2cap_params); rc = ble_l2cap_sig_update(conn_handle, &l2cap_params, ble_gap_update_l2cap_cb, NULL); } ble_hs_lock(); if (rc == 0) { SLIST_INSERT_HEAD(&ble_gap_update_entries, entry, next); } else { ble_gap_update_entry_free(entry); STATS_INC(ble_gap_stats, update_fail); } ble_hs_unlock(); return rc; #else return BLE_HS_ENOTSUP; #endif } /***************************************************************************** * $security * *****************************************************************************/ int ble_gap_security_initiate(uint16_t conn_handle) { #if NIMBLE_BLE_SM struct ble_store_value_sec value_sec; struct ble_store_key_sec key_sec; struct ble_hs_conn_addrs addrs; ble_hs_conn_flags_t conn_flags; struct ble_hs_conn *conn; int rc; STATS_INC(ble_gap_stats, security_initiate); ble_hs_lock(); conn = ble_hs_conn_find(conn_handle); if (conn != NULL) { conn_flags = conn->bhc_flags; ble_hs_conn_addrs(conn, &addrs); memset(&key_sec, 0, sizeof key_sec); key_sec.peer_addr = addrs.peer_id_addr; } ble_hs_unlock(); if (conn == NULL) { rc = BLE_HS_ENOTCONN; goto done; } if (conn_flags & BLE_HS_CONN_F_MASTER) { /* Search the security database for an LTK for this peer. If one * is found, perform the encryption procedure rather than the pairing * procedure. */ rc = ble_store_read_peer_sec(&key_sec, &value_sec); if (rc == 0 && value_sec.ltk_present) { rc = ble_sm_enc_initiate(conn_handle, value_sec.key_size, value_sec.ltk, value_sec.ediv, value_sec.rand_num, value_sec.authenticated); if (rc != 0) { goto done; } } else { rc = ble_sm_pair_initiate(conn_handle); if (rc != 0) { goto done; } } } else { rc = ble_sm_slave_initiate(conn_handle); if (rc != 0) { goto done; } } rc = 0; done: if (rc != 0) { STATS_INC(ble_gap_stats, security_initiate_fail); } return rc; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_pair_initiate(uint16_t conn_handle) { int rc; rc = ble_sm_pair_initiate(conn_handle); return rc; } int ble_gap_encryption_initiate(uint16_t conn_handle, uint8_t key_size, const uint8_t *ltk, uint16_t ediv, uint64_t rand_val, int auth) { #if NIMBLE_BLE_SM ble_hs_conn_flags_t conn_flags; int rc; rc = ble_hs_atomic_conn_flags(conn_handle, &conn_flags); if (rc != 0) { return rc; } if (!(conn_flags & BLE_HS_CONN_F_MASTER)) { return BLE_HS_EROLE; } rc = ble_sm_enc_initiate(conn_handle, key_size, ltk, ediv, rand_val, auth); return rc; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_unpair(const ble_addr_t *peer_addr) { #if NIMBLE_BLE_SM struct ble_hs_conn *conn; if (ble_addr_cmp(peer_addr, BLE_ADDR_ANY) == 0) { return BLE_HS_EINVAL; } ble_hs_lock(); conn = ble_hs_conn_find_by_addr(peer_addr); if (conn != NULL) { ble_gap_terminate_with_conn(conn, BLE_ERR_REM_USER_CONN_TERM); } ble_hs_unlock(); ble_hs_pvcy_remove_entry(peer_addr->type, peer_addr->val); return ble_store_util_delete_peer(peer_addr); #else return BLE_HS_ENOTSUP; #endif } int ble_gap_unpair_oldest_peer(void) { #if NIMBLE_BLE_SM ble_addr_t oldest_peer_id_addr; int num_peers; int rc; rc = ble_store_util_bonded_peers( &oldest_peer_id_addr, &num_peers, 1); if (rc != 0) { return rc; } if (num_peers == 0) { return BLE_HS_ENOENT; } rc = ble_gap_unpair(&oldest_peer_id_addr); if (rc != 0) { return rc; } return 0; #else return BLE_HS_ENOTSUP; #endif } int ble_gap_unpair_oldest_except(const ble_addr_t *peer_addr) { #if NIMBLE_BLE_SM ble_addr_t peer_id_addrs[MYNEWT_VAL(BLE_STORE_MAX_BONDS)]; int num_peers; int rc, i; rc = ble_store_util_bonded_peers( &peer_id_addrs[0], &num_peers, MYNEWT_VAL(BLE_STORE_MAX_BONDS)); if (rc != 0) { return rc; } if (num_peers == 0) { return BLE_HS_ENOENT; } for (i = 0; i < num_peers; i++) { if (ble_addr_cmp(peer_addr, &peer_id_addrs[i]) != 0) { break; } } if (i >= num_peers) { return BLE_HS_ENOMEM; } return ble_gap_unpair(&peer_id_addrs[i]); #else return BLE_HS_ENOTSUP; #endif } void ble_gap_passkey_event(uint16_t conn_handle, struct ble_gap_passkey_params *passkey_params) { #if NIMBLE_BLE_SM && NIMBLE_BLE_CONNECT struct ble_gap_event event; BLE_HS_LOG(DEBUG, "send passkey action request %d\n", passkey_params->action); memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PASSKEY_ACTION; event.passkey.conn_handle = conn_handle; event.passkey.params = *passkey_params; ble_gap_call_conn_event_cb(&event, conn_handle); #endif } void ble_gap_enc_event(uint16_t conn_handle, int status, int security_restored, int bonded) { #if NIMBLE_BLE_SM && NIMBLE_BLE_CONNECT struct ble_gap_event event; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_ENC_CHANGE; event.enc_change.conn_handle = conn_handle; event.enc_change.status = status; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); if (status != 0) { return; } /* If encryption succeded and encryption has been restored for bonded device, * notify gatt server so it has chance to send notification/indication if needed. */ if (security_restored) { ble_gatts_bonding_restored(conn_handle); return; } /* If this is fresh pairing and bonding has been established, * notify gatt server about that so previous subscriptions (before bonding) * can be stored. */ if (bonded) { ble_gatts_bonding_established(conn_handle); } #endif } void ble_gap_identity_event(uint16_t conn_handle) { #if NIMBLE_BLE_SM && NIMBLE_BLE_CONNECT struct ble_gap_event event; BLE_HS_LOG(DEBUG, "send identity changed"); memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_IDENTITY_RESOLVED; event.identity_resolved.conn_handle = conn_handle; ble_gap_call_conn_event_cb(&event, conn_handle); #endif } int ble_gap_repeat_pairing_event(const struct ble_gap_repeat_pairing *rp) { #if NIMBLE_BLE_SM && NIMBLE_BLE_CONNECT struct ble_gap_event event; int rc; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_REPEAT_PAIRING; event.repeat_pairing = *rp; rc = ble_gap_call_conn_event_cb(&event, rp->conn_handle); return rc; #else return 0; #endif } /***************************************************************************** * $rssi * *****************************************************************************/ int ble_gap_conn_rssi(uint16_t conn_handle, int8_t *out_rssi) { int rc; rc = ble_hs_hci_util_read_rssi(conn_handle, out_rssi); return rc; } /***************************************************************************** * $notify * *****************************************************************************/ void ble_gap_notify_rx_event(uint16_t conn_handle, uint16_t attr_handle, struct os_mbuf *om, int is_indication) { #if (MYNEWT_VAL(BLE_GATT_NOTIFY) || MYNEWT_VAL(BLE_GATT_INDICATE)) && NIMBLE_BLE_CONNECT struct ble_gap_event event; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_NOTIFY_RX; event.notify_rx.conn_handle = conn_handle; event.notify_rx.attr_handle = attr_handle; event.notify_rx.om = om; event.notify_rx.indication = is_indication; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); os_mbuf_free_chain(event.notify_rx.om); #endif } void ble_gap_notify_tx_event(int status, uint16_t conn_handle, uint16_t attr_handle, int is_indication) { #if (MYNEWT_VAL(BLE_GATT_NOTIFY) || MYNEWT_VAL(BLE_GATT_INDICATE)) && NIMBLE_BLE_CONNECT struct ble_gap_event event; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_NOTIFY_TX; event.notify_tx.conn_handle = conn_handle; event.notify_tx.status = status; event.notify_tx.attr_handle = attr_handle; event.notify_tx.indication = is_indication; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); #endif } /***************************************************************************** * $subscribe * *****************************************************************************/ void ble_gap_subscribe_event(uint16_t conn_handle, uint16_t attr_handle, uint8_t reason, uint8_t prev_notify, uint8_t cur_notify, uint8_t prev_indicate, uint8_t cur_indicate) { #if NIMBLE_BLE_CONNECT struct ble_gap_event event; BLE_HS_DBG_ASSERT(prev_notify != cur_notify || prev_indicate != cur_indicate); BLE_HS_DBG_ASSERT(reason == BLE_GAP_SUBSCRIBE_REASON_WRITE || reason == BLE_GAP_SUBSCRIBE_REASON_TERM || reason == BLE_GAP_SUBSCRIBE_REASON_RESTORE); memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_SUBSCRIBE; event.subscribe.conn_handle = conn_handle; event.subscribe.attr_handle = attr_handle; event.subscribe.reason = reason; event.subscribe.prev_notify = !!prev_notify; event.subscribe.cur_notify = !!cur_notify; event.subscribe.prev_indicate = !!prev_indicate; event.subscribe.cur_indicate = !!cur_indicate; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); #endif } /***************************************************************************** * $mtu * *****************************************************************************/ void ble_gap_mtu_event(uint16_t conn_handle, uint16_t cid, uint16_t mtu) { #if NIMBLE_BLE_CONNECT struct ble_gap_event event; memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_MTU; event.mtu.conn_handle = conn_handle; event.mtu.channel_id = cid; event.mtu.value = mtu; ble_gap_event_listener_call(&event); ble_gap_call_conn_event_cb(&event, conn_handle); #endif } /***************************************************************************** * $preempt * *****************************************************************************/ void ble_gap_preempt_no_lock(void) { int rc; int i; (void)rc; (void)i; #if NIMBLE_BLE_ADVERTISE #if MYNEWT_VAL(BLE_EXT_ADV) for (i = 0; i < BLE_ADV_INSTANCES; i++) { rc = ble_gap_ext_adv_stop_no_lock(i); if (rc == 0) { ble_gap_slave[i].preempted = 1; } } #else rc = ble_gap_adv_stop_no_lock(); if (rc == 0) { ble_gap_slave[0].preempted = 1; } #endif #endif #if NIMBLE_BLE_CONNECT rc = ble_gap_conn_cancel_no_lock(); if (rc == 0) { ble_gap_master.preempted_op = BLE_GAP_OP_M_CONN; } #endif #if NIMBLE_BLE_SCAN rc = ble_gap_disc_cancel_no_lock(); if (rc == 0) { ble_gap_master.preempted_op = BLE_GAP_OP_M_DISC; } #endif } /** * @brief Preempts the GAP if it is not already preempted. * * Aborts all active GAP procedures and prevents new ones from being started. * This function is used to ensure an idle GAP so that the controller's * resolving list can be modified. When done accessing the resolving list, the * caller must call `ble_gap_preempt_done()` to permit new GAP procedures. * * On preemption, all aborted GAP procedures are reported with a status or * reason code of BLE_HS_EPREEMPTED. An attempt to initiate a new GAP * procedure during preemption fails with a return code of BLE_HS_EPREEMPTED. */ void ble_gap_preempt(void) { ble_hs_lock(); if (!ble_gap_is_preempted()) { ble_gap_preempt_no_lock(); } ble_hs_unlock(); } /** * Takes GAP out of the preempted state, allowing new GAP procedures to be * initiated. This function should only be called after a call to * `ble_gap_preempt()`. */ static struct ble_npl_mutex preempt_done_mutex; void ble_gap_preempt_done(void) { struct ble_gap_event event; ble_gap_event_fn *master_cb; void *master_arg; int disc_preempted; int i; static struct { ble_gap_event_fn *cb; void *arg; } slaves[BLE_ADV_INSTANCES]; disc_preempted = 0; /* Protects slaves from accessing by multiple threads */ ble_npl_mutex_pend(&preempt_done_mutex, 0xFFFFFFFF); memset(slaves, 0, sizeof(slaves)); ble_hs_lock(); for (i = 0; i < BLE_ADV_INSTANCES; i++) { if (ble_gap_slave[i].preempted) { ble_gap_slave[i].preempted = 0; slaves[i].cb = ble_gap_slave[i].cb; slaves[i].arg = ble_gap_slave[i].cb_arg; } } if (ble_gap_master.preempted_op == BLE_GAP_OP_M_DISC) { ble_gap_master.preempted_op = BLE_GAP_OP_NULL; disc_preempted = 1; master_cb = ble_gap_master.cb; master_arg = ble_gap_master.cb_arg; } ble_hs_unlock(); event.type = BLE_GAP_EVENT_ADV_COMPLETE; event.adv_complete.reason = BLE_HS_EPREEMPTED; for (i = 0; i < BLE_ADV_INSTANCES; i++) { if (slaves[i].cb) { #if MYNEWT_VAL(BLE_EXT_ADV) event.adv_complete.instance = i; event.adv_complete.conn_handle = i; #endif ble_gap_call_event_cb(&event, slaves[i].cb, slaves[i].arg); } } ble_npl_mutex_release(&preempt_done_mutex); if (disc_preempted) { event.type = BLE_GAP_EVENT_DISC_COMPLETE; event.disc_complete.reason = BLE_HS_EPREEMPTED; ble_gap_call_event_cb(&event, master_cb, master_arg); } } int ble_gap_event_listener_register(struct ble_gap_event_listener *listener, ble_gap_event_fn *fn, void *arg) { struct ble_gap_event_listener *evl = NULL; int rc; SLIST_FOREACH(evl, &ble_gap_event_listener_list, link) { if (evl == listener) { break; } } if (!evl) { if (fn) { memset(listener, 0, sizeof(*listener)); listener->fn = fn; listener->arg = arg; SLIST_INSERT_HEAD(&ble_gap_event_listener_list, listener, link); rc = 0; } else { rc = BLE_HS_EINVAL; } } else { rc = BLE_HS_EALREADY; } return rc; } int ble_gap_event_listener_unregister(struct ble_gap_event_listener *listener) { struct ble_gap_event_listener *evl = NULL; int rc; /* * We check if element exists on the list only for sanity to let caller * know whether it registered its listener before. */ SLIST_FOREACH(evl, &ble_gap_event_listener_list, link) { if (evl == listener) { break; } } if (!evl) { rc = BLE_HS_ENOENT; } else { SLIST_REMOVE(&ble_gap_event_listener_list, listener, ble_gap_event_listener, link); rc = 0; } return rc; } static int ble_gap_event_listener_call(struct ble_gap_event *event) { struct ble_gap_event_listener *evl = NULL; SLIST_FOREACH(evl, &ble_gap_event_listener_list, link) { evl->fn(event, evl->arg); } return 0; } /***************************************************************************** * $init * *****************************************************************************/ int ble_gap_init(void) { int rc; memset(&ble_gap_master, 0, sizeof(ble_gap_master)); memset(ble_gap_slave, 0, sizeof(ble_gap_slave)); #if MYNEWT_VAL(BLE_PERIODIC_ADV) memset(&ble_gap_sync, 0, sizeof(ble_gap_sync)); #endif ble_npl_mutex_init(&preempt_done_mutex); SLIST_INIT(&ble_gap_update_entries); SLIST_INIT(&ble_gap_event_listener_list); rc = os_mempool_init(&ble_gap_update_entry_pool, MYNEWT_VAL(BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE), sizeof (struct ble_gap_update_entry), ble_gap_update_entry_mem, "ble_gap_update"); switch (rc) { case 0: break; case OS_ENOMEM: rc = BLE_HS_ENOMEM; goto err; default: rc = BLE_HS_EOS; goto err; } rc = stats_init_and_reg( STATS_HDR(ble_gap_stats), STATS_SIZE_INIT_PARMS(ble_gap_stats, STATS_SIZE_32), STATS_NAME_INIT_PARMS(ble_gap_stats), "ble_gap"); if (rc != 0) { goto err; } return 0; err: return rc; }
425142.c
/* Copyright 2021 peraneko * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "rev1.h"
402604.c
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) // Copyright (c) 2020 Wenbo Zhang // // Based on readahead(8) from from BPF-Perf-Tools-Book by Brendan Gregg. // 8-Jun-2020 Wenbo Zhang Created this. #include <argp.h> #include <signal.h> #include <stdio.h> #include <unistd.h> #include <bpf/libbpf.h> #include <bpf/bpf.h> #include "readahead.h" #include "readahead.skel.h" #include "trace_helpers.h" static struct env { int duration; bool verbose; } env = { .duration = -1 }; static volatile bool exiting; const char *argp_program_version = "readahead 0.1"; const char *argp_program_bug_address = "<[email protected]>"; const char argp_program_doc[] = "Show fs automatic read-ahead usage.\n" "\n" "USAGE: readahead [--help] [-d DURATION]\n" "\n" "EXAMPLES:\n" " readahead # summarize on-CPU time as a histogram" " readahead -d 10 # trace for 10 seconds only\n"; static const struct argp_option opts[] = { { "duration", 'd', "DURATION", 0, "Duration to trace"}, { "verbose", 'v', NULL, 0, "Verbose debug output" }, {}, }; static error_t parse_arg(int key, char *arg, struct argp_state *state) { switch (key) { case 'v': env.verbose = true; break; case 'd': errno = 0; env.duration = strtol(arg, NULL, 10); if (errno || env.duration <= 0) { fprintf(stderr, "Invalid duration: %s\n", arg); argp_usage(state); } break; default: return ARGP_ERR_UNKNOWN; } return 0; } int libbpf_print_fn(enum libbpf_print_level level, const char *format, va_list args) { if (level == LIBBPF_DEBUG && !env.verbose) return 0; return vfprintf(stderr, format, args); } static void sig_handler(int sig) { exiting = true; } int main(int argc, char **argv) { static const struct argp argp = { .options = opts, .parser = parse_arg, .doc = argp_program_doc, }; struct readahead_bpf *obj; struct hist *histp; int err; err = argp_parse(&argp, argc, argv, 0, NULL, NULL); if (err) return err; libbpf_set_print(libbpf_print_fn); err = bump_memlock_rlimit(); if (err) { fprintf(stderr, "failed to increase rlimit: %d\n", err); return 1; } obj = readahead_bpf__open_and_load(); if (!obj) { fprintf(stderr, "failed to open and/or load BPF ojbect\n"); return 1; } err = readahead_bpf__attach(obj); if (err) { fprintf(stderr, "failed to attach BPF programs\n"); goto cleanup; } signal(SIGINT, sig_handler); printf("Tracing fs read-ahead ... Hit Ctrl-C to end.\n"); sleep(env.duration); printf("\n"); histp = &obj->bss->hist; printf("Readahead unused/total pages: %d/%d\n", histp->unused, histp->total); print_log2_hist(histp->slots, MAX_SLOTS, "msecs"); cleanup: readahead_bpf__destroy(obj); return err != 0; }
583975.c
#include <stdlib.h> #include "../readstat.h" #include "test_types.h" #include "test_error.h" #include "test_buffer.h" #include "test_buffer_io.h" #include "test_readstat.h" #include "test_read.h" #include "test_dta.h" #include "test_sas.h" #include "test_sav.h" char *file_extension(long format) { if (format == RT_FORMAT_DTA_104) return "dta104"; if (format == RT_FORMAT_DTA_105) return "dta105"; if (format == RT_FORMAT_DTA_108) return "dta108"; if (format == RT_FORMAT_DTA_110) return "dta110"; if (format == RT_FORMAT_DTA_111) return "dta111"; if (format == RT_FORMAT_DTA_114) return "dta114"; if (format == RT_FORMAT_DTA_117) return "dta117"; if (format == RT_FORMAT_DTA_118) return "dta118"; if (format == RT_FORMAT_DTA_119) return "dta119"; if (format == RT_FORMAT_SAV_COMP_NONE) return "sav"; if (format == RT_FORMAT_SAV_COMP_ROWS) return "savrow"; if (format == RT_FORMAT_SAV_COMP_ZLIB) return "zsav"; if (format == RT_FORMAT_POR) return "por"; if (format == RT_FORMAT_SAS7BCAT) return "sas7bcat"; if (format == RT_FORMAT_SAS7BDAT_32BIT_COMP_NONE) return "sas7bdat32"; if (format == RT_FORMAT_SAS7BDAT_32BIT_COMP_ROWS) return "sas7bdat32row"; if (format == RT_FORMAT_SAS7BDAT_64BIT_COMP_NONE) return "sas7bdat64"; if (format == RT_FORMAT_SAS7BDAT_64BIT_COMP_ROWS) return "sas7bdat64row"; if (format == RT_FORMAT_XPORT_5) return "xpt5"; if (format == RT_FORMAT_XPORT_8) return "xpt8"; return "data"; } static rt_buffer_ctx_t *buffer_ctx_init(rt_buffer_t *buffer) { rt_buffer_ctx_t *buffer_ctx = calloc(1, sizeof(rt_buffer_ctx_t)); buffer_ctx->buffer = buffer; return buffer_ctx; } static void buffer_ctx_reset(rt_buffer_ctx_t *buffer_ctx) { buffer_reset(buffer_ctx->buffer); buffer_ctx->pos = 0; } rt_parse_ctx_t *parse_ctx_init(rt_buffer_t *buffer, rt_test_file_t *file) { rt_parse_ctx_t *parse_ctx = calloc(1, sizeof(rt_parse_ctx_t)); parse_ctx->buffer_ctx = buffer_ctx_init(buffer); parse_ctx->file = file; return parse_ctx; } void parse_ctx_reset(rt_parse_ctx_t *parse_ctx, long file_format) { parse_ctx->file_format = file_format; parse_ctx->file_extension = file_extension(file_format); if ((file_format & RT_FORMAT_DTA_118_AND_NEWER)) { parse_ctx->max_file_label_len = 321; } else if ((file_format & RT_FORMAT_DTA_105_AND_OLDER)) { parse_ctx->max_file_label_len = 32; } else if ((file_format & RT_FORMAT_DTA)) { parse_ctx->max_file_label_len = 81; } else if ((file_format & RT_FORMAT_SAV)) { parse_ctx->max_file_label_len = 64; } else if ((file_format & RT_FORMAT_SAS7BDAT)) { parse_ctx->max_file_label_len = 64; } else { parse_ctx->max_file_label_len = 20; } if ((file_format & RT_FORMAT_XPORT_5)) { parse_ctx->max_table_name_len = 8; } else if ((file_format & RT_FORMAT_XPORT_8)) { parse_ctx->max_table_name_len = 32; } parse_ctx->var_index = -1; parse_ctx->obs_index = -1; parse_ctx->notes_count = 0; parse_ctx->variables_count = 0; parse_ctx->value_labels_count = 0; buffer_ctx_reset(parse_ctx->buffer_ctx); } void parse_ctx_free(rt_parse_ctx_t *parse_ctx) { if (parse_ctx->buffer_ctx) { free(parse_ctx->buffer_ctx); } free(parse_ctx); } static int handle_metadata(readstat_metadata_t *metadata, void *ctx) { rt_parse_ctx_t *rt_ctx = (rt_parse_ctx_t *)ctx; rt_ctx->var_index = -1; rt_ctx->obs_index = -1; int var_count = readstat_get_var_count(metadata); int obs_count = readstat_get_row_count(metadata); const char *file_label = readstat_get_file_label(metadata); const char *table_name = readstat_get_table_name(metadata); time_t timestamp = readstat_get_creation_time(metadata); long format_version = readstat_get_file_format_version(metadata); push_error_if_doubles_differ(rt_ctx, rt_ctx->file->columns_count, var_count, "Number of variables"); if (obs_count != -1) { push_error_if_doubles_differ(rt_ctx, rt_ctx->file->rows, obs_count, "Number of observations"); } push_error_if_strings_differ_n(rt_ctx, rt_ctx->file->label, file_label, rt_ctx->max_file_label_len, "File labels"); if (table_name == NULL || strcmp(table_name, "DATASET") != 0) { push_error_if_strings_differ_n(rt_ctx, rt_ctx->file->table_name, table_name, rt_ctx->max_table_name_len, "Table names"); } if (rt_ctx->file->timestamp.tm_year) { struct tm timestamp_s = rt_ctx->file->timestamp; timestamp_s.tm_isdst = -1; push_error_if_doubles_differ(rt_ctx, mktime(&timestamp_s), timestamp, "File timestamps"); } if (rt_ctx->file_format_version) { push_error_if_doubles_differ(rt_ctx, rt_ctx->file_format_version, format_version, "Format versions"); } return READSTAT_HANDLER_OK; } static int handle_note(int index, const char *note, void *ctx) { rt_parse_ctx_t *rt_ctx = (rt_parse_ctx_t *)ctx; push_error_if_strings_differ(rt_ctx, rt_ctx->file->notes[rt_ctx->notes_count++], note, "Note"); return READSTAT_HANDLER_OK; } static int handle_fweight(readstat_variable_t *variable, void *ctx) { rt_parse_ctx_t *rt_ctx = (rt_parse_ctx_t *)ctx; int var_index = readstat_variable_get_index(variable); rt_column_t *column = &rt_ctx->file->columns[var_index]; push_error_if_strings_differ(rt_ctx, rt_ctx->file->fweight, column->name, "Frequency weight"); return READSTAT_HANDLER_OK; } static int handle_variable(int index, readstat_variable_t *variable, const char *val_labels, void *ctx) { rt_parse_ctx_t *rt_ctx = (rt_parse_ctx_t *)ctx; rt_column_t *column = &rt_ctx->file->columns[index]; rt_ctx->var_index = index; push_error_if_strings_differ(rt_ctx, column->label_set, val_labels, "Column label sets"); push_error_if_strings_differ(rt_ctx, column->name, readstat_variable_get_name(variable), "Column names"); push_error_if_strings_differ(rt_ctx, column->label, readstat_variable_get_label(variable), "Column labels"); if (column->format[0]) push_error_if_strings_differ(rt_ctx, column->format, readstat_variable_get_format(variable), "Column formats"); push_error_if_doubles_differ(rt_ctx, column->missing_ranges_count, readstat_variable_get_missing_ranges_count(variable), "Missing values count"); long i; for (i=0; i<column->missing_ranges_count; i++) { push_error_if_values_differ(rt_ctx, column->missing_ranges[i].lo, readstat_variable_get_missing_range_lo(variable, i), "Missing range definition (lo value)"); push_error_if_values_differ(rt_ctx, column->missing_ranges[i].hi, readstat_variable_get_missing_range_hi(variable, i), "Missing range definition (hi value)"); } rt_ctx->variables_count++; return READSTAT_HANDLER_OK; } static int handle_value_label(const char *val_labels, readstat_value_t value, const char *label, void *ctx) { rt_parse_ctx_t *rt_ctx = (rt_parse_ctx_t *)ctx; long i, j; for (i=0; i<rt_ctx->file->label_sets_count; i++) { rt_label_set_t *label_set = &rt_ctx->file->label_sets[i]; if (strcmp(val_labels, label_set->name) == 0) { for (j=0; j<label_set->value_labels_count; j++) { if (values_equal(value, label_set->value_labels[j].value)) { push_error_if_strings_differ(rt_ctx, label_set->value_labels[j].label, label, "Value label"); break; } } if (j == label_set->value_labels_count) { push_error_if_strings_differ(rt_ctx, NULL, label, "Value label (no match)"); } break; } } if (i == rt_ctx->file->label_sets_count) { push_error_if_strings_differ(rt_ctx, NULL, val_labels, "Label set"); } rt_ctx->value_labels_count++; return READSTAT_HANDLER_OK; } static int handle_value(int obs_index, readstat_variable_t *variable, readstat_value_t value, void *ctx) { rt_parse_ctx_t *rt_ctx = (rt_parse_ctx_t *)ctx; rt_ctx->obs_index = obs_index; rt_ctx->var_index = readstat_variable_get_index(variable); rt_column_t *column = &rt_ctx->file->columns[rt_ctx->var_index]; if (column->type == READSTAT_TYPE_STRING_REF) { push_error_if_strings_differ(rt_ctx, rt_ctx->file->string_refs[readstat_int32_value(column->values[obs_index])], readstat_string_value(value), "String ref values"); } else { push_error_if_values_differ(rt_ctx, column->values[obs_index], value, "Data values"); } return READSTAT_HANDLER_OK; } static void handle_error(const char *error_message, void *ctx) { printf("%s\n", error_message); } readstat_error_t read_file(rt_parse_ctx_t *parse_ctx, long format) { readstat_error_t error = READSTAT_OK; readstat_parser_t *parser = readstat_parser_init(); readstat_set_open_handler(parser, rt_open_handler); readstat_set_close_handler(parser, rt_close_handler); readstat_set_seek_handler(parser, rt_seek_handler); readstat_set_read_handler(parser, rt_read_handler); readstat_set_update_handler(parser, rt_update_handler); readstat_set_io_ctx(parser, parse_ctx->buffer_ctx); readstat_set_metadata_handler(parser, &handle_metadata); readstat_set_note_handler(parser, &handle_note); readstat_set_variable_handler(parser, &handle_variable); readstat_set_fweight_handler(parser, &handle_fweight); readstat_set_value_handler(parser, &handle_value); readstat_set_value_label_handler(parser, &handle_value_label); readstat_set_error_handler(parser, &handle_error); if ((format & RT_FORMAT_DTA)) { parse_ctx->file_format_version = dta_file_format_version(format); error = readstat_parse_dta(parser, NULL, parse_ctx); } else if ((format & RT_FORMAT_SAV)) { parse_ctx->file_format_version = sav_file_format_version(format); error = readstat_parse_sav(parser, NULL, parse_ctx); } else if (format == RT_FORMAT_POR) { parse_ctx->file_format_version = 0; error = readstat_parse_por(parser, NULL, parse_ctx); } else if ((format & RT_FORMAT_SAS7BDAT)) { parse_ctx->file_format_version = sas_file_format_version(format); error = readstat_parse_sas7bdat(parser, NULL, parse_ctx); } else if ((format & RT_FORMAT_SAS7BCAT)) { error = readstat_parse_sas7bcat(parser, NULL, parse_ctx); } else if ((format & RT_FORMAT_XPORT)) { parse_ctx->file_format_version = sas_file_format_version(format); error = readstat_parse_xport(parser, NULL, parse_ctx); } if (error != READSTAT_OK) goto cleanup; push_error_if_doubles_differ(parse_ctx, parse_ctx->file->notes_count, parse_ctx->notes_count, "Note count"); push_error_if_doubles_differ(parse_ctx, parse_ctx->file->columns_count, parse_ctx->variables_count, "Column count"); push_error_if_doubles_differ(parse_ctx, parse_ctx->file->rows, parse_ctx->obs_index + 1, "Row count"); long value_labels_count = 0; long i; for (i=0; i<parse_ctx->file->label_sets_count; i++) { value_labels_count += parse_ctx->file->label_sets[i].value_labels_count; } push_error_if_doubles_differ(parse_ctx, value_labels_count, parse_ctx->value_labels_count, "Value labels count"); cleanup: readstat_parser_free(parser); return error; }
858381.c
#include <git2.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #ifdef _WIN32 # include <io.h> # include <Windows.h> # define open _open # define read _read # define close _close #define ssize_t unsigned int #else # include <unistd.h> #endif #include "common.h" /* * This could be run in the main loop whilst the application waits for * the indexing to finish in a worker thread */ static int index_cb(const git_transfer_progress *stats, void *data) { (void)data; printf("\rProcessing %d of %d", stats->indexed_objects, stats->total_objects); return 0; } int index_pack(git_repository *repo, int argc, char **argv) { git_indexer *idx; git_transfer_progress stats = {0, 0}; int error; char hash[GIT_OID_HEXSZ + 1] = {0}; int fd; ssize_t read_bytes; char buf[512]; (void)repo; if (argc < 2) { fprintf(stderr, "usage: %s index-pack <packfile>\n", argv[-1]); return EXIT_FAILURE; } if (git_indexer_new(&idx, ".", 0, NULL, NULL) < 0) { puts("bad idx"); return -1; } if ((fd = open(argv[1], 0)) < 0) { perror("open"); return -1; } do { read_bytes = read(fd, buf, sizeof(buf)); if (read_bytes < 0) break; if ((error = git_indexer_append(idx, buf, read_bytes, &stats)) < 0) goto cleanup; index_cb(&stats, NULL); } while (read_bytes > 0); if (read_bytes < 0) { error = -1; perror("failed reading"); goto cleanup; } if ((error = git_indexer_commit(idx, &stats)) < 0) goto cleanup; printf("\rIndexing %d of %d\n", stats.indexed_objects, stats.total_objects); git_oid_fmt(hash, git_indexer_hash(idx)); puts(hash); cleanup: close(fd); git_indexer_free(idx); return error; }
685656.c
/* strw$ routines for longint, ulongint */ #include "fb.h" /*:::::*/ FBCALL FB_WCHAR *fb_LongintToWstr ( long long num ) { FB_WCHAR *dst; /* alloc temp string */ dst = fb_wstr_AllocTemp( sizeof( long long ) * 3 ); if( dst != NULL ) { /* convert */ FB_WSTR_FROM_INT64( dst, num ); } return dst; } /*:::::*/ FBCALL FB_WCHAR *fb_ULongintToWstr ( unsigned long long num ) { FB_WCHAR *dst; /* alloc temp string */ dst = fb_wstr_AllocTemp( sizeof( long long ) * 3 ); if( dst != NULL ) { /* convert */ FB_WSTR_FROM_UINT64( dst, num ); } return dst; }
664098.c
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Copyright IBM Corp. 2007 * * Authors: Hollis Blanchard <[email protected]> */ #include <linux/jiffies.h> #include <linux/hrtimer.h> #include <linux/types.h> #include <linux/string.h> #include <linux/kvm_host.h> #include <asm/reg.h> #include <asm/time.h> #include <asm/byteorder.h> #include <asm/kvm_ppc.h> #include <asm/disassemble.h> #include "timing.h" #include "trace.h" #define OP_TRAP 3 #define OP_TRAP_64 2 #define OP_31_XOP_LWZX 23 #define OP_31_XOP_LBZX 87 #define OP_31_XOP_STWX 151 #define OP_31_XOP_STBX 215 #define OP_31_XOP_LBZUX 119 #define OP_31_XOP_STBUX 247 #define OP_31_XOP_LHZX 279 #define OP_31_XOP_LHZUX 311 #define OP_31_XOP_MFSPR 339 #define OP_31_XOP_LHAX 343 #define OP_31_XOP_STHX 407 #define OP_31_XOP_STHUX 439 #define OP_31_XOP_MTSPR 467 #define OP_31_XOP_DCBI 470 #define OP_31_XOP_LWBRX 534 #define OP_31_XOP_TLBSYNC 566 #define OP_31_XOP_STWBRX 662 #define OP_31_XOP_LHBRX 790 #define OP_31_XOP_STHBRX 918 #define OP_LWZ 32 #define OP_LWZU 33 #define OP_LBZ 34 #define OP_LBZU 35 #define OP_STW 36 #define OP_STWU 37 #define OP_STB 38 #define OP_STBU 39 #define OP_LHZ 40 #define OP_LHZU 41 #define OP_LHA 42 #define OP_LHAU 43 #define OP_STH 44 #define OP_STHU 45 #ifdef CONFIG_PPC_BOOK3S static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) { return 1; } #else static int kvmppc_dec_enabled(struct kvm_vcpu *vcpu) { return vcpu->arch.tcr & TCR_DIE; } #endif void kvmppc_emulate_dec(struct kvm_vcpu *vcpu) { unsigned long dec_nsec; pr_debug("mtDEC: %x\n", vcpu->arch.dec); #ifdef CONFIG_PPC_BOOK3S /* mtdec lowers the interrupt line when positive. */ kvmppc_core_dequeue_dec(vcpu); /* POWER4+ triggers a dec interrupt if the value is < 0 */ if (vcpu->arch.dec & 0x80000000) { hrtimer_try_to_cancel(&vcpu->arch.dec_timer); kvmppc_core_queue_dec(vcpu); return; } #endif if (kvmppc_dec_enabled(vcpu)) { /* The decrementer ticks at the same rate as the timebase, so * that's how we convert the guest DEC value to the number of * host ticks. */ hrtimer_try_to_cancel(&vcpu->arch.dec_timer); dec_nsec = vcpu->arch.dec; dec_nsec *= 1000; dec_nsec /= tb_ticks_per_usec; hrtimer_start(&vcpu->arch.dec_timer, ktime_set(0, dec_nsec), HRTIMER_MODE_REL); vcpu->arch.dec_jiffies = get_tb(); } else { hrtimer_try_to_cancel(&vcpu->arch.dec_timer); } } /* XXX to do: * lhax * lhaux * lswx * lswi * stswx * stswi * lha * lhau * lmw * stmw * * XXX is_bigendian should depend on MMU mapping or MSR[LE] */ /* XXX Should probably auto-generate instruction decoding for a particular core * from opcode tables in the future. */ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) { u32 inst = kvmppc_get_last_inst(vcpu); u32 ea; int ra; int rb; int rs; int rt; int sprn; enum emulation_result emulated = EMULATE_DONE; int advance = 1; /* this default type might be overwritten by subcategories */ kvmppc_set_exit_type(vcpu, EMULATED_INST_EXITS); pr_debug(KERN_INFO "Emulating opcode %d / %d\n", get_op(inst), get_xop(inst)); switch (get_op(inst)) { case OP_TRAP: #ifdef CONFIG_PPC_BOOK3S case OP_TRAP_64: kvmppc_core_queue_program(vcpu, SRR1_PROGTRAP); #else kvmppc_core_queue_program(vcpu, vcpu->arch.esr | ESR_PTR); #endif advance = 0; break; case 31: switch (get_xop(inst)) { case OP_31_XOP_LWZX: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 4, 1); break; case OP_31_XOP_LBZX: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1); break; case OP_31_XOP_LBZUX: rt = get_rt(inst); ra = get_ra(inst); rb = get_rb(inst); ea = kvmppc_get_gpr(vcpu, rb); if (ra) ea += kvmppc_get_gpr(vcpu, ra); emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1); kvmppc_set_gpr(vcpu, ra, ea); break; case OP_31_XOP_STWX: rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 4, 1); break; case OP_31_XOP_STBX: rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 1, 1); break; case OP_31_XOP_STBUX: rs = get_rs(inst); ra = get_ra(inst); rb = get_rb(inst); ea = kvmppc_get_gpr(vcpu, rb); if (ra) ea += kvmppc_get_gpr(vcpu, ra); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 1, 1); kvmppc_set_gpr(vcpu, rs, ea); break; case OP_31_XOP_LHAX: rt = get_rt(inst); emulated = kvmppc_handle_loads(run, vcpu, rt, 2, 1); break; case OP_31_XOP_LHZX: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 2, 1); break; case OP_31_XOP_LHZUX: rt = get_rt(inst); ra = get_ra(inst); rb = get_rb(inst); ea = kvmppc_get_gpr(vcpu, rb); if (ra) ea += kvmppc_get_gpr(vcpu, ra); emulated = kvmppc_handle_load(run, vcpu, rt, 2, 1); kvmppc_set_gpr(vcpu, ra, ea); break; case OP_31_XOP_MFSPR: sprn = get_sprn(inst); rt = get_rt(inst); switch (sprn) { case SPRN_SRR0: kvmppc_set_gpr(vcpu, rt, vcpu->arch.srr0); break; case SPRN_SRR1: kvmppc_set_gpr(vcpu, rt, vcpu->arch.srr1); break; case SPRN_PVR: kvmppc_set_gpr(vcpu, rt, vcpu->arch.pvr); break; case SPRN_PIR: kvmppc_set_gpr(vcpu, rt, vcpu->vcpu_id); break; case SPRN_MSSSR0: kvmppc_set_gpr(vcpu, rt, 0); break; /* Note: mftb and TBRL/TBWL are user-accessible, so * the guest can always access the real TB anyways. * In fact, we probably will never see these traps. */ case SPRN_TBWL: kvmppc_set_gpr(vcpu, rt, get_tb() >> 32); break; case SPRN_TBWU: kvmppc_set_gpr(vcpu, rt, get_tb()); break; case SPRN_SPRG0: kvmppc_set_gpr(vcpu, rt, vcpu->arch.sprg0); break; case SPRN_SPRG1: kvmppc_set_gpr(vcpu, rt, vcpu->arch.sprg1); break; case SPRN_SPRG2: kvmppc_set_gpr(vcpu, rt, vcpu->arch.sprg2); break; case SPRN_SPRG3: kvmppc_set_gpr(vcpu, rt, vcpu->arch.sprg3); break; /* Note: SPRG4-7 are user-readable, so we don't get * a trap. */ case SPRN_DEC: { u64 jd = get_tb() - vcpu->arch.dec_jiffies; kvmppc_set_gpr(vcpu, rt, vcpu->arch.dec - jd); pr_debug(KERN_INFO "mfDEC: %x - %llx = %lx\n", vcpu->arch.dec, jd, kvmppc_get_gpr(vcpu, rt)); break; } default: emulated = kvmppc_core_emulate_mfspr(vcpu, sprn, rt); if (emulated == EMULATE_FAIL) { printk("mfspr: unknown spr %x\n", sprn); kvmppc_set_gpr(vcpu, rt, 0); } break; } break; case OP_31_XOP_STHX: rs = get_rs(inst); ra = get_ra(inst); rb = get_rb(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 2, 1); break; case OP_31_XOP_STHUX: rs = get_rs(inst); ra = get_ra(inst); rb = get_rb(inst); ea = kvmppc_get_gpr(vcpu, rb); if (ra) ea += kvmppc_get_gpr(vcpu, ra); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 2, 1); kvmppc_set_gpr(vcpu, ra, ea); break; case OP_31_XOP_MTSPR: sprn = get_sprn(inst); rs = get_rs(inst); switch (sprn) { case SPRN_SRR0: vcpu->arch.srr0 = kvmppc_get_gpr(vcpu, rs); break; case SPRN_SRR1: vcpu->arch.srr1 = kvmppc_get_gpr(vcpu, rs); break; /* XXX We need to context-switch the timebase for * watchdog and FIT. */ case SPRN_TBWL: break; case SPRN_TBWU: break; case SPRN_MSSSR0: break; case SPRN_DEC: vcpu->arch.dec = kvmppc_get_gpr(vcpu, rs); kvmppc_emulate_dec(vcpu); break; case SPRN_SPRG0: vcpu->arch.sprg0 = kvmppc_get_gpr(vcpu, rs); break; case SPRN_SPRG1: vcpu->arch.sprg1 = kvmppc_get_gpr(vcpu, rs); break; case SPRN_SPRG2: vcpu->arch.sprg2 = kvmppc_get_gpr(vcpu, rs); break; case SPRN_SPRG3: vcpu->arch.sprg3 = kvmppc_get_gpr(vcpu, rs); break; default: emulated = kvmppc_core_emulate_mtspr(vcpu, sprn, rs); if (emulated == EMULATE_FAIL) printk("mtspr: unknown spr %x\n", sprn); break; } break; case OP_31_XOP_DCBI: /* Do nothing. The guest is performing dcbi because * hardware DMA is not snooped by the dcache, but * emulated DMA either goes through the dcache as * normal writes, or the host kernel has handled dcache * coherence. */ break; case OP_31_XOP_LWBRX: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 4, 0); break; case OP_31_XOP_TLBSYNC: break; case OP_31_XOP_STWBRX: rs = get_rs(inst); ra = get_ra(inst); rb = get_rb(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 4, 0); break; case OP_31_XOP_LHBRX: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 2, 0); break; case OP_31_XOP_STHBRX: rs = get_rs(inst); ra = get_ra(inst); rb = get_rb(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 2, 0); break; default: /* Attempt core-specific emulation below. */ emulated = EMULATE_FAIL; } break; case OP_LWZ: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 4, 1); break; case OP_LWZU: ra = get_ra(inst); rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 4, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; case OP_LBZ: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1); break; case OP_LBZU: ra = get_ra(inst); rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; case OP_STW: rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 4, 1); break; case OP_STWU: ra = get_ra(inst); rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 4, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; case OP_STB: rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 1, 1); break; case OP_STBU: ra = get_ra(inst); rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 1, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; case OP_LHZ: rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 2, 1); break; case OP_LHZU: ra = get_ra(inst); rt = get_rt(inst); emulated = kvmppc_handle_load(run, vcpu, rt, 2, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; case OP_LHA: rt = get_rt(inst); emulated = kvmppc_handle_loads(run, vcpu, rt, 2, 1); break; case OP_LHAU: ra = get_ra(inst); rt = get_rt(inst); emulated = kvmppc_handle_loads(run, vcpu, rt, 2, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; case OP_STH: rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 2, 1); break; case OP_STHU: ra = get_ra(inst); rs = get_rs(inst); emulated = kvmppc_handle_store(run, vcpu, kvmppc_get_gpr(vcpu, rs), 2, 1); kvmppc_set_gpr(vcpu, ra, vcpu->arch.paddr_accessed); break; default: emulated = EMULATE_FAIL; } if (emulated == EMULATE_FAIL) { emulated = kvmppc_core_emulate_op(run, vcpu, inst, &advance); if (emulated == EMULATE_AGAIN) { advance = 0; } else if (emulated == EMULATE_FAIL) { advance = 0; printk(KERN_ERR "Couldn't emulate instruction 0x%08x " "(op %d xop %d)\n", inst, get_op(inst), get_xop(inst)); kvmppc_core_queue_program(vcpu, 0); } } trace_kvm_ppc_instr(inst, kvmppc_get_pc(vcpu), emulated); /* Advance past emulated instruction. */ if (advance) kvmppc_set_pc(vcpu, kvmppc_get_pc(vcpu) + 4); return emulated; }
2495.c
/* elvprsv.c */ /* Author: * Steve Kirkendall * 14407 SW Teal Blvd. #C * Beaverton, OR 97005 * [email protected] */ /* This file contains the portable sources for the "elvprsv" program. * "Elvprsv" is run by Elvis when Elvis is about to die. It is also * run when the computer boots up. It is not intended to be run directly * by the user, ever. * * Basically, this program does the following four things: * - It extracts the text from the temporary file, and places the text in * a file in the /usr/preserve directory. * - It adds a line to the /usr/preserve/Index file, describing the file * that it just preserved. * - It removes the temporary file. * - It sends mail to the owner of the file, saying that the file was * preserved, and how it can be recovered. * * The /usr/preserve/Index file is a log file that contains one line for each * file that has ever been preserved. Each line of this file describes one * preserved file. The first word on the line is the name of the file that * contains the preserved text. The second word is the full pathname of the * file that was being edited; for anonymous buffers, this is the directory * name plus "/foo". * * If elvprsv's first argument (after the command name) starts with a hyphen, * then the characters after the hyphen are used as a description of when * the editor went away. This is optional. * * The remaining arguments are all the names of temporary files that are * to be preserved. For example, on a UNIX system, the /etc/rc file might * invoke it this way: * * elvprsv "-the system went down" /tmp/elv_*.* * * This file contains only the portable parts of the preserve program. * It must #include a system-specific file. The system-specific file is * expected to define the following functions: * * char *ownername(char *filename) - returns name of person who owns file * * void mail(char *user, char *name, char *when) * - tell user that file was preserved */ #include <stdio.h> #include "config.h" #include "vi.h" #if AMIGA BLK tmpblk; #error AMIGA here DEBUG # include "amiwild.c" # include "amiprsv.c" #endif #if OSK # undef sprintf #endif #if ANY_UNIX || OSK # include "prsvunix.c" #endif #if MSDOS || TOS # include "prsvdos.c" # define WILDCARD_NO_MAIN # include "wildcard.c" #endif BLK buf; BLK hdr; BLK name; int rewrite_now; /* boolean: should we send text directly to orig file? */ /* This function preserves a single file, and announces its success/failure * via an e-mail message. */ void preserve(tname, when) char *tname; /* name of a temp file to be preserved */ char *when; /* description of when the editor died */ { int infd; /* fd used for reading from the temp file */ FILE *outfp; /* fp used for writing to the recovery file */ FILE *index; /* fp used for appending to index file */ char outname[100]; /* the name of the recovery file */ char *user; /* name of the owner of the temp file */ #if AMIGA char *prsvdir; #endif int i; /* open the temp file */ infd = open(tname, O_RDONLY|O_BINARY); if (infd < 0) { /* if we can't open the file, then we should assume that * the filename contains wildcard characters that weren't * expanded... and also assume that they weren't expanded * because there are no files that need to be preserved. * THEREFORE... we should silently ignore it. * (Or loudly ignore it if the user was using -R) */ if (rewrite_now) { perror(tname); } return; } /* read the header and name from the file */ if (read(infd, hdr.c, BLKSIZE) != BLKSIZE || read(infd, name.c, BLKSIZE) != BLKSIZE) { /* something wrong with the file - sorry */ fprintf(stderr, "%s: trucated header blocks\n", tname); close(infd); return; } /* If the filename block contains an empty string, then Elvis was * only keeping the temp file around because it contained some text * that was needed for a named cut buffer. The user doesn't care * about that kind of temp file, so we should silently delete it. */ if (name.c[0] == '\0' && name.c[1] == '\177') { close(infd); unlink(tname); return; } if (rewrite_now) { /* we don't need to open the index file */ index = (FILE *)0; /* make sure we can read every block! */ for (i = 1; i < MAXBLKS && hdr.n[i]; i++) { lseek(infd, (long)hdr.n[i] * (long)BLKSIZE, 0); if (read(infd, buf.c, BLKSIZE) != BLKSIZE) { /* messed up header */ fprintf(stderr, "%s: unrecoverable -- header trashed\n", name.c); close(infd); return; } } /* open the user's file for writing */ outfp = fopen(name.c, "w"); if (!outfp) { perror(name.c); close(infd); return; } } else { /* open/create the index file */ index = fopen(PRSVINDEX, "a"); if (!index) { perror(PRSVINDEX); exit(1); } /* create the recovery file in the PRESVDIR directory */ #if AMIGA prsvdir = &PRSVDIR[strlen(PRSVDIR) - 1]; if (*prsvdir == '/' || *prsvdir == ':') { sprintf(outname, "%sp%ld", PRSVDIR, ftell(index)); } else #endif sprintf(outname, "%s%cp%ld", PRSVDIR, SLASH, ftell(index)); outfp = fopen(outname, "w"); if (!outfp) { perror(outname); close(infd); fclose(index); return; } } /* write the text of the file out to the recovery file */ for (i = 1; i < MAXBLKS && hdr.n[i]; i++) { lseek(infd, (long)hdr.n[i] * (long)BLKSIZE, 0); if (read(infd, buf.c, BLKSIZE) != BLKSIZE) { /* messed up header */ fprintf(stderr, "%s: unrecoverable -- header trashed\n", name.c); fclose(outfp); close(infd); if (index) { fclose(index); } unlink(outname); return; } fputs(buf.c, outfp); } /* add a line to the index file */ if (index) { fprintf(index, "%s %s\n", outname, name.c); } /* close everything */ close(infd); fclose(outfp); if (index) { fclose(index); } /* Are we doing this due to something more frightening than just * a ":preserve" command? */ if (*when) { /* send a mail message */ mail(ownername(tname), name.c, when); /* remove the temp file -- the editor has died already */ unlink(tname); } } main(argc, argv) int argc; char **argv; { int i; char *when = "the editor went away"; #if MSDOS || TOS /* expand any wildcards in the command line */ argv = wildexpand(&argc, argv); #endif /* do we have a "when" argument? */ i = 1; if (argc >= i + 1 && !strcmp(argv[i], "-R")) { rewrite_now = 1; when = ""; i++; #if ANY_UNIX setuid(geteuid()); #endif } #if OSK else { setuid(0); } #endif if (argc >= i + 1 && argv[i][0] == '-') { when = argv[i] + 1; i++; } /* preserve everything we're supposed to */ while (i < argc) { preserve(argv[i], when); i++; } }
859009.c
//// _git source mask md5:0e138b76ceec0b1e05c87763802f6501 //// //////// ///////////////////////// //////// ////////////////////////////////////// /////// ////////////// ///////////////// /////// /////////// ///////////////// /////// /////////// ///////////////// ////// //// //////////////// // // //// / / //////////////// /////// //// / / //////////////// ////// ////////// /// / ////////// //// // ////////// ///////// / ////////// ///// / / // //// / / //////////////// //////// ////////////////// // /////////// // ///////////// // ////////////// /// //// / ///////////// // ////// // // // ///////////// //////////// // //// / / ///////////////// // //// / / //////////////// //////// // //// / / //////////////// /////// //// / / //////////////// ////// //////////////////// /////////////// // //// // // //// // ///// / // / / // //// // //// / / ////////////// /// // //// / / //////////////// //////// // //// / / //////////////// /////// //// / / //////////////// ////// //////////////////// /////////////// //// // //// // ///////////////////////////// ////////// //////////////////// // /// //////// ///// //// /////// // /////////////////// //////////////// // ///// // ///////////// ///////// /////////////////////////////////////////// / / ////////////// / / / ///////////// ///////// ///////////////////////////////////////////// / / ////////////// / / / ///////////// ///////// /////////////// / ///////////// /////////////// / ///////////// ////////////////////////////////// ////////////// /////////////////////////// //////////////////////// //////////////////////// // //
704927.c
/* $NetBSD: ibcs2_socksys.c,v 1.9 2001/11/13 02:08:27 lukem Exp $ */ /* * Copyright (c) 1994, 1995 Scott Bartram * Copyright (c) 1994 Arne H Juul * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> __KERNEL_RCSID(0, "$NetBSD: ibcs2_socksys.c,v 1.9 2001/11/13 02:08:27 lukem Exp $"); #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> #include <sys/file.h> #include <sys/filedesc.h> #include <sys/ioctl.h> #include <sys/termios.h> #include <sys/tty.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/mount.h> #include <net/if.h> #include <sys/syscallargs.h> #include <compat/ibcs2/ibcs2_socksys.h> #include <compat/ibcs2/ibcs2_util.h> /* * iBCS2 socksys calls. */ struct ibcs2_socksys_args { int fd; int magic; caddr_t argsp; }; int ibcs2_socksys(p, v, retval) struct proc *p; void *v; register_t *retval; { struct ibcs2_socksys_args *uap = v; int error; int realargs[7]; /* 1 for command, 6 for recvfrom */ /* * SOCKET should only be legal on /dev/socksys. * GETIPDOMAINNAME should only be legal on /dev/socksys ? * The others are (and should be) only legal on sockets. */ error = copyin(uap->argsp, (caddr_t)realargs, sizeof(realargs)); if (error) return error; DPRINTF(("ibcs2_socksys: %08x %08x %08x %08x %08x %08x %08x\n", realargs[0], realargs[1], realargs[2], realargs[3], realargs[4], realargs[5], realargs[6])); switch (realargs[0]) { case SOCKSYS_ACCEPT: return sys_accept(p, realargs + 1, retval); case SOCKSYS_BIND: return sys_bind(p, realargs + 1, retval); case SOCKSYS_CONNECT: return sys_connect(p, realargs + 1, retval); case SOCKSYS_GETPEERNAME: return sys_getpeername(p, realargs + 1, retval); case SOCKSYS_GETSOCKNAME: return sys_getsockname(p, realargs + 1, retval); case SOCKSYS_GETSOCKOPT: return sys_getsockopt(p, realargs + 1, retval); case SOCKSYS_LISTEN: return sys_listen(p, realargs + 1, retval); case SOCKSYS_RECV: realargs[5] = realargs[6] = 0; /* FALLTHROUGH */ case SOCKSYS_RECVFROM: return sys_recvfrom(p, realargs + 1, retval); case SOCKSYS_SEND: realargs[5] = realargs[6] = 0; /* FALLTHROUGH */ case SOCKSYS_SENDTO: return sys_sendto(p, realargs + 1, retval); case SOCKSYS_SETSOCKOPT: return sys_setsockopt(p, realargs + 1, retval); case SOCKSYS_SHUTDOWN: return sys_shutdown(p, realargs + 1, retval); case SOCKSYS_SOCKET: return sys_socket(p, realargs + 1, retval); case SOCKSYS_SELECT: return sys_select(p, realargs + 1, retval); case SOCKSYS_GETIPDOMAIN: return compat_09_sys_getdomainname(p, realargs + 1, retval); case SOCKSYS_SETIPDOMAIN: return compat_09_sys_setdomainname(p, realargs + 1, retval); case SOCKSYS_ADJTIME: return sys_adjtime(p, realargs + 1, retval); case SOCKSYS_SETREUID: return sys_setreuid(p, realargs + 1, retval); case SOCKSYS_SETREGID: return sys_setregid(p, realargs + 1, retval); case SOCKSYS_GETTIME: return sys_gettimeofday(p, realargs + 1, retval); case SOCKSYS_SETTIME: return sys_settimeofday(p, realargs + 1, retval); case SOCKSYS_GETITIMER: return sys_getitimer(p, realargs + 1, retval); case SOCKSYS_SETITIMER: return sys_setitimer(p, realargs + 1, retval); default: printf("socksys unknown %08x %08x %08x %08x %08x %08x %08x\n", realargs[0], realargs[1], realargs[2], realargs[3], realargs[4], realargs[5], realargs[6]); return EINVAL; } /* NOTREACHED */ }
749970.c
#include "contiki.h" #include "net/netstack.h" #include "net/nullnet/nullnet.h" #include <string.h> #include <stdio.h> /* For printf() */ #include "random.h" #include "dev/radio.h" #include "net/packetbuf.h" /* Log configuration */ #include "sys/log.h" #define LOG_MODULE "App" #define LOG_LEVEL LOG_LEVEL_INFO #define f_BEACON 0x00 #define f_POLL 0x01 #define f_DATA 0x02 #define f_ENERGEST 0x03 #define NODEID 5 #define T_MDB (10 * CLOCK_SECOND) #define T_SLOT (1.5 * CLOCK_SECOND) #define T_GUARD (0.5 * CLOCK_SECOND) #define T_BEACON (360 * CLOCK_SECOND) static struct mydatas { uint8_t NodeID; int16_t temperature; int16_t hum; float co ; float no2 ; float o3 ; uint32_t noise ; uint16_t pm10; } mydata; static bool txflag = 0; void datasender( uint8_t id ) { uint8_t megabuf[9]; mydata.co = 1.23; mydata.no2 = 2.34; mydata.o3 = 3.45; mydata.noise = 4560; mydata.pm10 = 45; mydata.hum = 560; mydata.temperature = 670; nullnet_buf = (uint8_t *)&megabuf; nullnet_len = sizeof(megabuf); switch(id) { case 1: case 3: printf("Node %d, multigas\n", id); megabuf[0] = id; memcpy(&megabuf[1], &mydata.co, sizeof(mydata.co)); memcpy(&megabuf[5], &mydata.no2, sizeof(mydata.no2)); printf("Sending %d %d %d %d %d %d %d %d %d\n", megabuf[0], megabuf[1], megabuf[2], megabuf[3], megabuf[4], megabuf[5], megabuf[6], megabuf[7], megabuf[8]); //make sure it's correct data nullnet_buf = (uint8_t *)&megabuf; nullnet_len = sizeof(megabuf); NETSTACK_NETWORK.output(NULL); break; case 2: case 4: printf("Node %d\n, dht22", id); megabuf[0] = id; memcpy(&megabuf[1], &mydata.temperature, sizeof(mydata.temperature)); memcpy(&megabuf[3], &mydata.hum, sizeof(mydata.hum)); memcpy(&megabuf[5], &mydata.noise, sizeof(mydata.noise)); nullnet_buf = (uint8_t *)&megabuf; nullnet_len = sizeof(megabuf); NETSTACK_NETWORK.output(NULL); break; case 5: case 6: printf("Node %d\n, Ozone\n", id); union { float float_variable; uint8_t temp_array[4]; } u; u.float_variable = mydata.o3; megabuf[5] = u.temp_array[0]; megabuf[6] = u.temp_array[1]; megabuf[7] = u.temp_array[2]; megabuf[8] = u.temp_array[3]; megabuf[0] = id; memcpy(&megabuf[1], &mydata.temperature, sizeof(mydata.temperature)); memcpy(&megabuf[3], &mydata.hum, sizeof(mydata.hum)); nullnet_buf = (uint8_t *)&megabuf; nullnet_len = sizeof(megabuf); NETSTACK_NETWORK.output(NULL); break; case 7: case 8: printf("Node %d, PM10\n", id); megabuf[0] = id; memcpy(&megabuf[1], &mydata.pm10, sizeof(mydata.pm10)); nullnet_buf = (uint8_t *)&megabuf; nullnet_len = sizeof(megabuf); NETSTACK_NETWORK.output(NULL); break; default: printf("?"); break; } } /* Configuration */ #define SEND_INTERVAL (8 * CLOCK_SECOND) static linkaddr_t coordinator_addr ; /*---------------------------------------------------------------------------*/ PROCESS(nullnet_example_process, "NullNet broadcast example"); PROCESS(parser_process, "Parsing process"); AUTOSTART_PROCESSES(&nullnet_example_process, &parser_process); /*---------------------------------------------------------------------------*/ void input_callback(const void *data, uint16_t len, const linkaddr_t *src, const linkaddr_t *dest) { printf("Callback received rx: %d\n", *(uint8_t *)data); coordinator_addr = *src; //do we use this for anything????? process_poll(&parser_process); } /*---------------------------------------------------------------------------*/ PROCESS_THREAD(nullnet_example_process, ev, data) { static struct etimer periodic_timer; //static unsigned count = 0; //static radio_value_t txpower; PROCESS_BEGIN(); nullnet_set_input_callback(input_callback); while(1) { etimer_set(&periodic_timer, CLOCK_SECOND); PROCESS_YIELD(); } PROCESS_END(); } PROCESS_THREAD(parser_process, ev, data) { static clock_time_t time_until_poll; static struct etimer radiotimer; static struct etimer next_beacon_etimer; static struct etimer btimer; static uint8_t* buf; PROCESS_BEGIN(); //nullnet_set_input_callback(input_callback); printf("my node id %d\n", NODEID); while(1) { PROCESS_WAIT_EVENT_UNTIL(ev == PROCESS_EVENT_POLL); //?????????????????????? ZONE buf = packetbuf_dataptr(); //uint8_t* sensor_reading = (uint8_t*)buf; printf("PROCESS:\tReceived msg from "); LOG_INFO_LLADDR(&coordinator_addr); LOG_INFO_(" address \n"); static uint8_t frame; static uint8_t B_f; //static uint8_t B_timer; static uint8_t B_n; frame = buf[0]; //uint8_t* data = buf + 1; B_f = (frame & 0b11000000) >> 6; //B_timer = frame & 0x3f; B_n = (frame & 0b00110000) >> 4; printf("B_n %d B_f %d \n", B_f, B_n); //printf("frame: %d\t", B_f); // printf("Beacon_timer: %d\n", B_timer); //TODO: do something with the timer, synchronize with the coordinator (r = 0.1s, 0.5s, 1s...? ) if(B_f== f_BEACON){ printf("BEACON frame! n: %d, bitmask: %d \n", B_n, buf[1]); if(B_n==0){ etimer_set(&btimer, CLOCK_SECOND); } else if(B_n==1){ etimer_set(&btimer, CLOCK_SECOND*0.5); } uint8_t bitmask = buf[1]; static uint8_t i_buf = 0; int i; if(txflag==0){ //only print once printf("beacon is asking for "); for (i = 0; i < 8; i++) { if (bitmask & (1 << i)) { printf("%d \t", (i+1)); if((i+1) == NODEID) { i_buf = i; txflag = 1; } } } } if(B_n != 2) { PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&btimer)); } //PROCESS_WAIT_UNTIL( B_n == 2 || timer_expired(&btimer)); clock_time_t bufvar = 357*CLOCK_SECOND; printf("setting timer for %lu ticks, %lu seconds (+3) until beacon\n", bufvar, (bufvar/CLOCK_SECOND)); etimer_set(&next_beacon_etimer, (357*CLOCK_SECOND)); //use rtimer maybe? if(txflag) { printf("I'm transmitting in the %dth slot\n", (i_buf+1)); time_until_poll = T_MDB + ((NODEID-1) * (T_SLOT + T_GUARD)) - T_GUARD; printf("radio off, time until radio on: %lu ticks, %lu seconds\n", time_until_poll ,time_until_poll/CLOCK_SECOND); //NETSTACK_RADIO.off(); NETSTACK_RADIO.off(); RTIMER_BUSYWAIT(5); etimer_set( &radiotimer, time_until_poll); PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&radiotimer)); NETSTACK_RADIO.on(); //NETSTACK_MAC.on(); //test this //NETSTACK_RADIO.on(); printf("radio back on\n"); txflag = 0; } else{ printf("Radio off until the next beacon\n"); NETSTACK_RADIO.off(); RTIMER_BUSYWAIT(5); etimer_set( &radiotimer, T_BEACON - 2*CLOCK_SECOND); PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&radiotimer)); NETSTACK_RADIO.on(); printf("radio back on, beacon in ~2s\n"); } } if( B_f == f_POLL) { printf("POLL frame!\n"); printf("received poll for %d, I am node %d\n", buf[1], NODEID); if(buf[1] == NODEID) { //printf("I'm transmitting in the %dth slot\n", buf[1]); datasender(buf[1]); NETSTACK_RADIO.off(); RTIMER_BUSYWAIT(5); PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&next_beacon_etimer)); NETSTACK_RADIO.on(); printf("radio back on, beacon in ~2s \n"); } else { printf("Error: I'm awake in the %d slot and I am %d \n", buf[1], NODEID); } //Here, depending on our nodeid we will send the requested data to the coord } else if (B_f == f_DATA){ printf("Data frame\n"); //STAs do nothing here } else if (B_f ==f_ENERGEST){ printf("Energest frame\n"); //instead of sending data, send energest metrics } else{ printf("Unknown frame\n"); printf("B_f %02x , B_n %02x, buf[0,1,2]: %02x %02x %02x\n", B_f, B_n, buf[0], buf[1], buf[2] ); } } PROCESS_END(); }
17298.c
/* * FreeRTOS Kernel V10.1.0 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * http://www.FreeRTOS.org * http://aws.amazon.com/freertos * * 1 tab == 4 spaces! */ /* * Creates all the demo application tasks, then starts the scheduler. The WEB * documentation provides more details of the demo application tasks. * * This demo is configured to execute on the ES449 prototyping board from * SoftBaugh. The ES449 has a built in LCD display and a single built in user * LED. Therefore, in place of flashing an LED, the 'flash' and 'check' tasks * toggle '*' characters on the LCD. The left most '*' represents LED 0, the * next LED 1, etc. * * Main. c also creates a task called 'Check'. This only executes every three * seconds but has the highest priority so is guaranteed to get processor time. * Its main function is to check that all the other tasks are still operational. * Each task that does not flash an LED maintains a unique count that is * incremented each time the task successfully completes its function. Should * any error occur within such a task the count is permanently halted. The * 'check' task inspects the count of each task to ensure it has changed since * the last time the check task executed. If all the count variables have * changed all the tasks are still executing error free, and the check task * toggles an LED with a three second period. Should any task contain an error * at any time the LED toggle rate will increase to 500ms. * * Please read the documentation for the MSP430 port available on * http://www.FreeRTOS.org. */ /* Standard includes. */ #include <stdlib.h> #include <signal.h> /* Scheduler includes. */ #include "FreeRTOS.h" #include "task.h" /* Demo application includes. */ #include "partest.h" #include "flash.h" #include "integer.h" #include "comtest2.h" #include "PollQ.h" /* Constants required for hardware setup. */ #define mainALL_BITS_OUTPUT ( ( unsigned char ) 0xff ) #define mainMAX_FREQUENCY ( ( unsigned char ) 121 ) /* Constants that define the LED's used by the various tasks. [in this case the '*' characters on the LCD represent LED's] */ #define mainCHECK_LED ( 4 ) #define mainCOM_TEST_LED ( 10 ) /* Demo task priorities. */ #define mainCHECK_TASK_PRIORITY ( tskIDLE_PRIORITY + 3 ) #define mainCOM_TEST_PRIORITY ( tskIDLE_PRIORITY + 2 ) #define mainQUEUE_POLL_PRIORITY ( tskIDLE_PRIORITY + 2 ) #define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 ) /* Baud rate used by the COM test tasks. */ #define mainCOM_TEST_BAUD_RATE ( ( unsigned long ) 19200 ) /* The frequency at which the 'Check' tasks executes. See the comments at the top of the page. When the system is operating error free the 'Check' task toggles an LED every three seconds. If an error is discovered in any task the rate is increased to 500 milliseconds. [in this case the '*' characters on the LCD represent LED's]*/ #define mainNO_ERROR_CHECK_DELAY ( ( TickType_t ) 3000 / portTICK_PERIOD_MS ) #define mainERROR_CHECK_DELAY ( ( TickType_t ) 500 / portTICK_PERIOD_MS ) /* * The function that implements the Check task. See the comments at the head * of the page for implementation details. */ static void vErrorChecks( void *pvParameters ); /* * Called by the Check task. Returns pdPASS if all the other tasks are found * to be operating without error - otherwise returns pdFAIL. */ static short prvCheckOtherTasksAreStillRunning( void ); /* * Perform the hardware setup required by the ES449 in order to run the demo * application. */ static void prvSetupHardware( void ); /* Used to detect the idle hook function stalling. */ static volatile unsigned long ulIdleLoops = 0UL; /*-----------------------------------------------------------*/ /* * Start the demo application tasks - then start the real time scheduler. */ int main( void ) { /* Setup the hardware ready for the demo. */ prvSetupHardware(); vParTestInitialise(); /* Start the standard demo application tasks. */ vStartLEDFlashTasks( mainLED_TASK_PRIORITY ); vStartIntegerMathTasks( tskIDLE_PRIORITY ); vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED - 1 ); vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY ); /* Start the 'Check' task which is defined in this file. */ xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL ); /* Start the scheduler. */ vTaskStartScheduler(); /* As the scheduler has been started the demo applications tasks will be executing and we should never get here! */ return 0; } /*-----------------------------------------------------------*/ static void vErrorChecks( void *pvParameters ) { static volatile unsigned long ulDummyVariable = 3UL; TickType_t xDelayPeriod = mainNO_ERROR_CHECK_DELAY; /* Cycle for ever, delaying then checking all the other tasks are still operating without error. */ for( ;; ) { /* Wait until it is time to check again. The time we wait here depends on whether an error has been detected or not. When an error is detected the time is shortened resulting in a faster LED flash rate. */ vTaskDelay( xDelayPeriod ); /* Perform a bit of 32bit maths to ensure the registers used by the integer tasks get some exercise outside of the integer tasks themselves. The result here is not important we are just deliberately changing registers used by other tasks to ensure that their context switch is operating as required. - see the demo application documentation for more info. */ ulDummyVariable *= 3UL; /* See if the other tasks are all ok. */ if( prvCheckOtherTasksAreStillRunning() != pdPASS ) { /* An error occurred in one of the tasks so shorten the delay period - which has the effect of increasing the frequency of the LED toggle. */ xDelayPeriod = mainERROR_CHECK_DELAY; } /* Flash! */ vParTestToggleLED( mainCHECK_LED ); } } /*-----------------------------------------------------------*/ static short prvCheckOtherTasksAreStillRunning( void ) { static short sNoErrorFound = pdTRUE; static unsigned long ulLastIdleLoops = 0UL; /* The demo tasks maintain a count that increments every cycle of the task provided that the task has never encountered an error. This function checks the counts maintained by the tasks to ensure they are still being incremented. A count remaining at the same value between calls therefore indicates that an error has been detected. Only tasks that do not flash an LED are checked. */ if( xAreIntegerMathsTaskStillRunning() != pdTRUE ) { sNoErrorFound = pdFALSE; } if( xAreComTestTasksStillRunning() != pdTRUE ) { sNoErrorFound = pdFALSE; } if( xArePollingQueuesStillRunning() != pdTRUE ) { sNoErrorFound = pdFALSE; } if( ulLastIdleLoops == ulIdleLoops ) { sNoErrorFound = pdFALSE; } ulLastIdleLoops = ulIdleLoops; return sNoErrorFound; } /*-----------------------------------------------------------*/ static void prvSetupHardware( void ) { /* Stop the watchdog. */ WDTCTL = WDTPW + WDTHOLD; /* Setup DCO+ for ( xtal * D * (N + 1) ) operation. */ FLL_CTL0 |= DCOPLUS + XCAP18PF; /* X2 DCO frequency, 8MHz nominal DCO */ SCFI0 |= FN_4; /* (121+1) x 32768 x 2 = 7.99 Mhz */ SCFQCTL = mainMAX_FREQUENCY; /* Setup the IO as per the SoftBaugh demo for the same target hardware. */ P1SEL = 0x32; P2SEL = 0x00; P3SEL = 0x00; P4SEL = 0xFC; P5SEL = 0xFF; } /*-----------------------------------------------------------*/ void vApplicationIdleHook( void ); void vApplicationIdleHook( void ) { /* Simple put the CPU into lowpower mode. */ _BIS_SR( LPM3_bits ); ulIdleLoops++; } /*-----------------------------------------------------------*/
581426.c
#include "types.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "defs.h" #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { char *s, *last; int i, off; uint argc, sz, sp, ustack[3+MAXARG+1]; struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; struct proc *curproc = myproc(); begin_op(); if((ip = namei(path)) == 0){ end_op(); cprintf("exec: fail\n"); return -1; } ilock(ip); pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf)) goto bad; if(elf.magic != ELF_MAGIC) goto bad; if((pgdir = setupkvm()) == 0) goto bad; // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; if(ph.type != ELF_PROG_LOAD) continue; if(ph.memsz < ph.filesz) goto bad; if(ph.vaddr + ph.memsz < ph.vaddr) goto bad; if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; if(ph.vaddr % PGSIZE != 0) goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; } iunlockput(ip); end_op(); ip = 0; // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { if(argc >= MAXARG) goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; ustack[3+argc] = sp; } ustack[3+argc] = 0; ustack[0] = 0xffffffff; // fake return PC ustack[1] = argc; ustack[2] = sp - (argc+1)*4; // argv pointer sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; // Save program name for debugging. for(last=s=path; *s; s++) if(*s == '/') last = s+1; safestrcpy(curproc->name, last, sizeof(curproc->name)); // Commit to the user image. oldpgdir = curproc->pgdir; curproc->pgdir = pgdir; curproc->sz = sz; curproc->tf->eip = elf.entry; // main curproc->tf->esp = sp; // curproc->priority = 10; switchuvm(curproc); freevm(oldpgdir); return 0; bad: if(pgdir) freevm(pgdir); if(ip){ iunlockput(ip); end_op(); } return -1; }
833718.c
//copyright at ICT #include "decisiontree.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> AttributeMap* map; //attribute is range from 1 to attributenum. colcume 0 is the classLab char ***rawData = NULL; uint32_t **trainingData = NULL; uint32_t **testData = NULL; uint32_t **confusionMatrix = NULL; TreeNode* innerNodeList[MAXLEVELNUM] = { NULL }; TreeNode* curInnerNode[MAXLEVELNUM] = { NULL }; TreeNode* leafList = NULL; TreeNode* curLeaf = NULL; int classNum; int attributeNum; int numberOfTrainingRecord; int numberOfTestingRecord; int isPrintResult; char* trainingSetFile = NULL; char* testingSetFile = NULL; uint32_t totalLevel; uint32_t differValue = 60; void VisitTree(FILE*,TreeNode*); void TestLeafList() { printf("test leaf list: \n"); TreeNode* tempList = leafList; while (tempList!=NULL) { int i; printf("level: %d\n", tempList->selfLevel); for (i = 0; i <= tempList->selfLevel; ++i) { printf("%d; ", tempList->pathAttributeName[i]); } printf("\n"); tempList = tempList->nextLeaf; } } void TestInnerNodeList() { printf("test inner node list\n"); TreeNode *tempList; int i, k; for (k = 0; k <= totalLevel; ++k){ tempList = innerNodeList[k]; printf("level: %d and index %d\n", tempList->selfLevel, k); while (tempList != NULL) { for (i = 0; i <= tempList->selfLevel; ++i) { printf("%d; ", tempList->pathAttributeName[i]); } tempList = tempList->nextInnerNode; } printf("\n\n"); } } void TestRead() { printf("%s, %s,classnum = %d, attributenum = %d, train = %d, test = %d", trainingSetFile, testingSetFile, classNum, attributeNum, numberOfTrainingRecord, numberOfTestingRecord); if (isPrintResult == 1) { printf(" print\n"); } else { printf(" no print\n"); } } void TestTrainData() { printf("TestTrainingData"); int i, j; for ( i = 1; i <= numberOfTrainingRecord; ++i) { for (j = 0; j <= attributeNum; ++j) { printf("%d ", trainingData[i][j]); } printf("\n"); } printf("\n\n"); } void TestTestingData() { printf("TestTestingData"); int i,j; for (i = 1; i <= numberOfTestingRecord; ++i) { for (j = 0; j<= attributeNum; ++j) { printf("%d ", testData[i][j]); } printf("\n"); } printf("\n\n"); } void TestMap() { printf("test map\n"); int j, i; for (j = 0; j <= attributeNum; ++j) { printf("attri: %s: has %d attrs\n", map[j].attributeName, map[j].attributeNum); if (map[j].isConsecutive == 0) { for (i = 0; i < map[j].attributeNum; ++i) { printf("%s; ", map[j].attributes[i]); } } else { for (i = 0; i < map[j].attributeNum; ++i) { printf("%d; ", map[j].attributeValue[i]); } } printf("\n"); } printf("\n"); } void TestRawData(int flag) { printf("testRawdata"); int num; if (flag == 1) { num = numberOfTrainingRecord; } else { num = numberOfTestingRecord; } int i, j; for (i = 1; i <= num; ++i) { for (j = 0; j <= attributeNum; ++j) { printf("%s ",rawData[i][j] ); } printf("\n"); } printf("\n\n"); } void TestVisitTree(FILE* fp,TreeNode* root) { fprintf(fp,"tree View:\n"); VisitTree(fp,root); } double GetErrors(float N,float e) { double CF=0.25; double Coeff=0.47955625; if ( e < 1E-6 ) { return N * (1 - exp(log(CF) / N)); } else if ( e < 0.9999 ) { double Val0 = N * (1 - exp(log(CF) / N)); return Val0 + e * (GetErrors(N, 1.0) - Val0); } else if ( e + 0.5 >= N ) { return 0.67 * (N-e)+e ; } else { double Pr = (e + 0.5 + Coeff/2 + sqrt(Coeff * ((e + 0.5) * (1 - (e + 0.5)/N) + Coeff/4)) ) / (N + Coeff); return (N * Pr ); } } int cmp ( const void *a , const void *b ) { return *(int*)a-*(int*)b; } // Calculates log2 of number. double YuLog2(double n) { // log(n)/log(2) is log2. return log( n ) / log( 2 ); } int ConvertString2Number(char* str) { int retNum = 0; int i; for (i = 0; str[i] != '\0'; ++i) { if (str[i] == '.') { if (str[i+1] > '5') { retNum += 1; } break; } retNum *= 10; retNum += (str[i] - '0'); } return retNum; } int IsNumber(char* str) { int ret = 1; int i = 0; for (i = 0; str[i] != '\0'; ++i) { if (str[i] == '.') { continue; } if (str[i] < '0' || str[i] > '9') { return 0; } } return ret; } void Read(int argc, char* argv[]) { int k; for (k = 1; k < argc; ++k) { if (strcmp(argv[k],"-r") == 0) { ++k; trainingSetFile = argv[k]; } else if (!strcmp(argv[k], "-t")) { ++k; testingSetFile = argv[k]; } else if (!strcmp(argv[k], "-d")) { ++k; attributeNum = ConvertString2Number(argv[k]); } else if (!strcmp(argv[k], "-c")) { ++k; classNum = ConvertString2Number(argv[k]); } else if (!strcmp(argv[k], "-s")) { ++k; numberOfTrainingRecord = ConvertString2Number(argv[k]); } else if (!strcmp(argv[k], "-m")) { ++k; numberOfTestingRecord = ConvertString2Number(argv[k]); } else if (!strcmp(argv[k], "-p")) { ++k; isPrintResult = ConvertString2Number(argv[k]); } else{ printf("input error, please check you input\n"); } } } void ConvertNum2Str(int num, char str[10]) { char temp[10]; int i = 0; while (num > 0) { temp[i] = (num%10)+'0'; num = num / 10; ++i; } int k = 0; --i; for (; i >= 0; ) { str[k++] = temp[i--]; } str[k] = '\0'; } void InitMapName() { int j; char str[10]; strcpy(map[0].attributeName, "classLab"); for (j = 1; j <= attributeNum; j++) { strcpy(map[j].attributeName, "attribute"); ConvertNum2Str(j, str); strcat(map[j].attributeName, str); } } void MallocMemory() { int i, j; //malloc raw data int numberOfRecords = numberOfTrainingRecord > numberOfTestingRecord ? numberOfTrainingRecord : numberOfTestingRecord; rawData = (char ***)malloc(sizeof(char**) * (numberOfRecords+1)); if (!rawData) { fprintf(stderr, "malloc memory failed, abort\n"); abort(); } for (i = 0; i <= numberOfRecords; i++) { rawData[i] = (char **)malloc(sizeof(char *) * (attributeNum+1)); if (!rawData[i]) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } for (j = 0; j <= attributeNum; j++) { rawData[i][j] = (char *)malloc(MAXLEN); if (!rawData[i][j]) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } } } //malloc training data trainingData = (uint32_t **)malloc(sizeof(uint32_t *) * (numberOfTrainingRecord+1)); if (!trainingData) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } for (i = 0; i <= numberOfTrainingRecord; i++) { trainingData[i] = (uint32_t *)malloc(sizeof(uint32_t) *(attributeNum+1)); if (!trainingData[i]) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } } /* malloc test_data */ testData = (uint32_t **)malloc(sizeof(uint32_t *) * (numberOfTestingRecord+1)); if (!testData) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } for (i = 0; i <= numberOfTestingRecord; i++) { testData[i] = (uint32_t *)malloc(sizeof(uint32_t) * (attributeNum+1)); if (!testData[i]) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } } // malloc map, map[0] is the classLab, ant map[1 - attribute] is the attribute. map = (AttributeMap *)malloc(sizeof(AttributeMap) * (attributeNum+1)); if (!map) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } InitMapName(); } //map.attributes range from 0 to num - 1 int MapAttribute2Num(int i, char *str) { if (i > attributeNum) { return -1; } int count = 0; for (; count < map[i].attributeNum; count++) { if (strncmp(map[i].attributes[count], str, MAXLEN - 1) == 0) { return count; } } return -1; } void ConstructMap() { struct str_list { char str[MAXLEN]; struct str_list *next; } *list, *tail, *ptr; list = tail = ptr = NULL; int totalnum; int i = 0, j = 0, k = 0, num = 0; totalnum = numberOfTrainingRecord; /* analyse input data(raw data) */ for (j = 0; j <= attributeNum; j++) {//0 is the classLab for (i = 1; i <= totalnum; i++) { ptr = list; while (ptr) { if (strncmp(ptr->str, rawData[i][j], MAXLEN-1) == 0) { break; } ptr = ptr->next; } if (!ptr) { ptr = (struct str_list *)malloc(sizeof(struct str_list)); if (!ptr) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } strncpy(ptr->str, rawData[i][j], MAXLEN - 1); ptr->next = NULL; if (list) { tail->next = ptr; tail = tail->next; } else { list = tail = ptr; } num++; } } if (num == 0) { fprintf(stderr, "impossible.\n"); exit(-1); } /* assign the list to attribute_map */ map[j].attributeNum = num; map[j].isConsecutive = 0; map[j].attributes = (char **)malloc(sizeof(char *) * num); if (!map[j].attributes) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } ptr = list; k = 0; while (k < num && ptr) { map[j].attributes[k] = (char *)malloc(MAXLEN); if (!map[j].attributes[k]) { fprintf(stderr, "malloc memory failed, abort.\n"); abort(); } strncpy(map[j].attributes[k], ptr->str, MAXLEN - 1); k++; ptr = ptr->next; } if (j > 0) { if (map[j].attributeNum > 20 && IsNumber(map[j].attributes[0]) == 1) //Consecutive { map[j].isConsecutive = 1; int a; map[j].attributeValue = (int*) malloc(sizeof(int)*num); for (a = 0; a < num; ++a) { map[j].attributeValue[a] = ConvertString2Number(map[j].attributes[a]); } //TestMap(); qsort(map[j].attributeValue, map[j].attributeNum, sizeof(map[j].attributeValue[0]),cmp); //TestMap(); } } /* free the list */ while ((ptr = list)) { list = list->next; free(ptr); } list = tail = ptr = NULL; num = 0; } } int ConvertRawData2Map(int flag) { int i, j; /* assign the training data and test data */ for (j = 0; j <= attributeNum; j++) { i = 1; if (flag == 1) { while (i <= numberOfTrainingRecord) { if (map[j].isConsecutive == 1) { trainingData[i][j] = ConvertString2Number(rawData[i][j]); } else { trainingData[i][j] = MapAttribute2Num(j, rawData[i][j]); } i++; } } else if(flag == 2) { while (i<= numberOfTestingRecord) { if (map[j].isConsecutive == 1) { testData[i][j] = ConvertString2Number(rawData[i][j]); } else { testData[i][j] = MapAttribute2Num(j, rawData[i][j]); } i++; } } } return 0; } void OnReadData(char* filename, int flag/*training or testing*/) { FILE *fp = fopen(filename, "r+"); if (!fp) { fprintf(stderr, "can't open file '%s', exit.\n", filename); exit(-1); } int i, j; int n = 1024; char buffer[1024]; char *begin = NULL, *end = NULL; int totalnum; if (flag == 1) { totalnum = numberOfTrainingRecord; } else { totalnum = numberOfTestingRecord; } /* read all the data */ i = 1; while (i <= totalnum) { char *ptr = fgets(buffer, n, fp); if (!ptr) { fprintf(stderr, "please add the attribute name!!!.\n"); exit(-1); } begin = buffer; end = NULL; for (j =0; j < 1; ++j) { end = strchr(begin, (int)('\t')); if (end) { begin = end+1; } else { fprintf(stderr, "line tab wasn't found"); exit(-1); } } //attribute is range from 1 to attributenum. colcume 0 is the classLab for (j = 0; j <= attributeNum-1; j++) { end = strchr(begin, (int)('\t')); if (!end) { fprintf(stderr, "line 404 tab wasn't found.\n"); exit(-1); } memset(rawData[i][j], 0, MAXLEN); strncpy(rawData[i][j], begin, end - begin); begin = end + 1; } end = strchr(begin, (int)('\r')); if (!end) { end = strchr(begin, (int)('\n')); } memset(rawData[i][j], 0, MAXLEN); if (end) { strncpy(rawData[i][j], begin, end - begin); } else { strcpy(rawData[i][j], begin); } i++; } if (flag == 1) { ConstructMap(); } ConvertRawData2Map(flag); } void ReadData() { OnReadData(trainingSetFile,1); OnReadData(testingSetFile, 2); } void Init() { uint32_t i, j; uint32_t choice = 0; for (i = 0; i <= MAXLEVELNUM-1; ++i) { innerNodeList[i] = (TreeNode*)malloc(sizeof(TreeNode)); memset(innerNodeList[i], 0, sizeof(TreeNode)); curInnerNode[i] = innerNodeList[i]; } leafList= (TreeNode*)malloc(sizeof(TreeNode)); memset(leafList, 0, sizeof(TreeNode)); curLeaf = leafList; confusionMatrix = (uint32_t **)malloc(classNum*sizeof(uint32_t)); memset(confusionMatrix, 0, classNum*sizeof(uint32_t)); for(i = 0;i<=classNum-1;i++){ confusionMatrix[i] = (uint32_t*)malloc(classNum*sizeof(uint32_t)); memset(confusionMatrix[i],0,classNum*sizeof(uint32_t)); } // MallocMemory(); ReadData(); } uint32_t MatchAttribute(const uint32_t levelNo,uint32_t *test, uint32_t* pathAttributeNameMap,uint32_t* pathAttributeValueMap, uint32_t* pathFlag) { if(levelNo == 0) return 1; uint32_t i = 0; for(i = 0; i <= levelNo - 1; i++) { if ( map[pathAttributeNameMap[i] ].isConsecutive == 0) { if(test[pathAttributeNameMap[i]]!=pathAttributeValueMap[i]) return 0; } else { if (pathFlag[i] == 0)//<= { if(test[pathAttributeNameMap[i]] > pathAttributeValueMap[i]) { return 0; } } else if (pathFlag[i] == 1) { if(test[pathAttributeNameMap[i]] <= pathAttributeValueMap[i]) { return 0; } } } } return 1; } uint32_t FindMaxClassLab(int len, uint32_t arr[]) { uint32_t i = 0, max = 0; for (i = 1; i < len; i++) { if (arr[max] < arr[i]) max = i; } return max; } void InsertIntoLeafList(TreeNode* leafNode) { curLeaf->nextLeaf = leafNode; leafNode->preLeaf = curLeaf; curLeaf = leafNode; leafNode->nextLeaf = NULL; } void deleteFromLeafList(TreeNode* leafNode) { TreeNode* tempLeaf=leafList->nextLeaf; while (tempLeaf!=NULL && (tempLeaf!=leafNode)) tempLeaf=tempLeaf->nextLeaf; if (tempLeaf==NULL) { printf("Didnot Find such leaf\n"); return; } else if (tempLeaf==curLeaf) { curLeaf=tempLeaf->preLeaf; curLeaf->nextLeaf=NULL; } else { tempLeaf->preLeaf->nextLeaf=tempLeaf->nextLeaf; tempLeaf->nextLeaf->preLeaf=tempLeaf->preLeaf; } } void InsertIntoInnerList(uint32_t levelNo,TreeNode* innerNode) { curInnerNode[levelNo]->nextInnerNode = innerNode; curInnerNode[levelNo] = innerNode; if(levelNo > totalLevel) totalLevel = levelNo; } uint32_t FindMaxValue(uint32_t len, double arr[]) { uint32_t i = 1, max = 1; for (i = 2; i <= len; i++) { if (arr[max] < arr[i]) max = i; } return max; } uint32_t SelectAttributeByRule(uint32_t levelNo, uint32_t* pathAttributeNameMap, uint32_t* pathAttributeValueMap, uint32_t* pathFlag, uint32_t subpartitionnum,uint32_t slipAttribute[attributeNum + 1],double* infogainradio,uint32_t* majorclass, int* _splitvalue) { uint32_t attributestate[classNum]; uint32_t attributeclass[differValue][classNum]; int i, j; for (i = 0; i < classNum; ++i) { attributestate[i] = 0; } double infogain[attributeNum + 1]; for (i = 1; i <= attributeNum; ++i) { infogain[i] = 0; } infogain[0] = -100; for (i = 1; i < differValue; ++i ) { for (j = 0; j < classNum; ++j) { attributeclass[i][j] = 0; } } uint32_t * tempdata; double infoGain0 = 0; for(i = 1; i<=numberOfTrainingRecord; i++) { tempdata = trainingData[i]; if(MatchAttribute(levelNo,tempdata,pathAttributeNameMap,pathAttributeValueMap, pathFlag)!=0) attributestate[tempdata[0]]++; } //calcute the InfoGain for (i = 0; i < classNum; ++i) { if (attributestate[i] != 0) { infoGain0 += ((double)attributestate[i]/subpartitionnum)*((YuLog2((double)attributestate[i]/subpartitionnum))*(-1)); } } double infoSum, partSum, logSum, spitSum; int k, g, h; for (i = 1; i <= attributeNum; ++i) { infoSum = 0; if (slipAttribute[i] == 1) { infogain[i] = -100; continue; } else if (map[i].isConsecutive == 0) //discrete { for (k = 0; k <= differValue; ++k) { for (j = 0; j < classNum; ++j) { attributeclass[k][j] = 0; } } for (k = 1; k <= numberOfTrainingRecord; ++k) { tempdata = trainingData[k]; if(MatchAttribute(levelNo,tempdata,pathAttributeNameMap,pathAttributeValueMap, pathFlag)!=0) { attributeclass[tempdata[i]][tempdata[0]]++; } } spitSum = 0; for (j = 0; j < map[i].attributeNum; ++j) { partSum = 0; for (g = 0; g < classNum; ++g) { partSum += attributeclass[j][g]; } logSum = 0; for (g = 0; g < classNum; ++g) { if (attributeclass[j][g] != 0) { logSum += ((double)attributeclass[j][g]/partSum)*(YuLog2((double)attributeclass[j][g]/partSum)*(-1)); } } if (partSum != 0) { spitSum += ((double)partSum/subpartitionnum)*(YuLog2((double)partSum/subpartitionnum)* (-1.0)); } infoSum += ((double)partSum/subpartitionnum)*logSum; } if (spitSum != 0) { infogain[i] = (infoGain0 - infoSum) / spitSum; } } else {//consecutive, split to two subset(<= , and >) for (j = 1; j < map[i].attributeNum-1; ++j) { for (k = 0; k < 2; ++k) { for (h = 0; h < classNum; ++h) { attributeclass[k][h] = 0; } } for (k = 1; k <= numberOfTrainingRecord; ++k) { tempdata = trainingData[k]; if (MatchAttribute(levelNo, tempdata, pathAttributeNameMap, pathAttributeValueMap, pathFlag) != 0){ if (tempdata[i] <= map[i].attributeValue[j]) { attributeclass[0][tempdata[0]]++; //<= } else { attributeclass[1][tempdata[0]] ++;//> } } } spitSum = 0; for (k = 0; k < 2; ++k) { partSum = 0; for (h = 0; h < classNum; ++h) { partSum += attributeclass[k][h]; } logSum = 0; for (h = 0; h < classNum; ++h) { if (attributeclass[k][h] != 0) { logSum += ((double)attributeclass[k][h]/partSum)*(YuLog2((double)attributeclass[k][h]/partSum)*(-1)); } } if (partSum != 0) { spitSum += ((double)partSum/subpartitionnum)*(YuLog2((double)partSum/subpartitionnum) * (-1.0)); } infoSum += ((double)partSum/subpartitionnum)*logSum; } if (j == 1) { if (spitSum != 0) { infogain[i] = (infoGain0 - infoSum) / spitSum; } *_splitvalue = map[i].attributeValue[j]; } else { double tempgain = 0; if (spitSum != 0) { tempgain = (infoGain0 - infoSum) / spitSum; } if (tempgain > infogain[i]) { infogain[i] = tempgain; *_splitvalue = map[i].attributeValue[j]; } } } } } uint32_t returnattributeno = FindMaxValue(attributeNum, infogain); *majorclass = FindMaxClassLab(classNum, attributestate); *infogainradio = infogain[returnattributeno]; return returnattributeno; } TreeNode* GenerateDecisionTree(uint32_t levelNo, uint32_t pathAttributeNameMap[MAXLEVELNUM+1], uint32_t pathAttributeValueMap[MAXLEVELNUM+1], uint32_t pathFlag[MAXLEVELNUM+1], uint32_t slipAttrValue, uint32_t flag) { int i, j; uint32_t slipattribute[attributeNum + 1]; for (i = 1; i <= attributeNum; ++i) { slipattribute[i] = 0; } slipattribute[0] = 1;//classLab uint32_t attributestate[differValue]; for (i = 0; i <= differValue-1; ++i) { attributestate[i] = 0; } uint32_t attributeclassstate[differValue][classNum+1]; for (i = 0; i < differValue; ++i) { for (j = 0; j <= classNum; ++j) { attributeclassstate[i][j] = 0; } } if (levelNo != 0)//not the root { for (i = 0; i < levelNo; ++i) { slipattribute[pathAttributeNameMap[i]] = 1;//remove those which has sliped attribute. } } TreeNode* currentNode = (TreeNode*)malloc(sizeof(TreeNode)); memset(currentNode,0,sizeof(TreeNode)); if(levelNo > 1){ for(i = 0;i<=levelNo-2;i++){ currentNode->pathAttributeName[i] = pathAttributeNameMap[i]; currentNode->pathAttributeValue[i] = pathAttributeValueMap[i]; currentNode->pathFlag[i] = pathFlag[i]; } currentNode->pathAttributeName[levelNo-1] = pathAttributeNameMap[levelNo-1]; currentNode->pathAttributeValue[levelNo-1] = slipAttrValue; currentNode->pathFlag[levelNo - 1] = flag; } else if(levelNo == 1){ currentNode->pathAttributeName[levelNo - 1] = pathAttributeNameMap[levelNo-1]; currentNode->pathAttributeValue[levelNo - 1] = slipAttrValue; currentNode->pathFlag[levelNo - 1] = flag; } uint32_t subPartitionNum = 0; // the count of records fellow this path. uint32_t * tempData = NULL; for (j = 1; j <= numberOfTrainingRecord; ++j) { tempData = trainingData[j]; if (MatchAttribute(levelNo, tempData, currentNode->pathAttributeName, currentNode->pathAttributeValue, currentNode->pathFlag) != 0) { attributestate[tempData[0]]++;//classLab subPartitionNum++; } } uint32_t currentClass; uint32_t testPure = 0; for (i = 0; i < classNum; ++i) { if (attributestate[i] != 0) { testPure++; currentClass = i; } } for (i = 1; i <= attributeNum; ++i) { if (slipattribute[i] != 1) break; } //hit the max level or donot has any attribute not sliped yet if (levelNo >= 200 || i > attributeNum) { currentNode->classify = FindMaxClassLab(classNum,attributestate); currentNode->isLeaf = 1; currentNode->selfLevel = levelNo; currentNode->childNode = NULL; currentNode->siblingNode = NULL; InsertIntoLeafList(currentNode); return currentNode; } //just one classLab if (testPure == 1) { currentNode->classify = currentClass; currentNode->isLeaf = 1; currentNode->selfLevel = levelNo; currentNode->childNode = NULL; currentNode->siblingNode = NULL; InsertIntoLeafList(currentNode); return currentNode; } uint32_t majorClass = 0; uint32_t slipAttributeNo = 0; double infogain = 0; int slipvalueforconsecutive; slipAttributeNo = SelectAttributeByRule(levelNo, currentNode->pathAttributeName, currentNode->pathAttributeValue, currentNode->pathFlag, subPartitionNum, slipattribute, &infogain, &majorClass, &slipvalueforconsecutive);//this function have to change the value of majorclass and infogain if (slipAttributeNo == 0) { printf("ERROR"); } currentNode->classify = 0; currentNode->isLeaf = 0; currentNode->selfLevel = levelNo; currentNode->pathAttributeName[levelNo] = slipAttributeNo; currentNode->infoGainRatio = infogain; currentNode->majorClass = majorClass; currentNode->childNode = NULL; currentNode->siblingNode = NULL; InsertIntoInnerList(levelNo,currentNode); TreeNode* tempNode = currentNode; slipattribute[slipAttributeNo] = 1; if (map[slipAttributeNo].isConsecutive == 1)//consecutive { for(i = 1; i <= numberOfTrainingRecord; i++) { tempData = trainingData[i]; if(MatchAttribute(levelNo,tempData,currentNode->pathAttributeName,currentNode->pathAttributeValue, currentNode->pathFlag)!=0) { if (tempData[slipAttributeNo] <= slipvalueforconsecutive) { attributeclassstate[0][tempData[0]]++; //<= } else { attributeclassstate[1][tempData[0]] ++;//> } } } uint32_t ispureclass = 0; for (j = 0; j < classNum; ++j) { if (attributeclassstate[0][j] != 0)//the first value of slipattribute, because the are index start from 0 to attri.num-1 { ispureclass++; } } TreeNode* newNode; int k; if(ispureclass == 0) { newNode = (TreeNode*)malloc(sizeof(TreeNode)); memset(newNode,0,sizeof(TreeNode)); if(levelNo == 0){ newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } else{ for(k = 0;k <= levelNo-1;k++){ newNode->pathAttributeName[k] = currentNode->pathAttributeName[k]; newNode->pathAttributeValue[k] = currentNode->pathAttributeValue[k]; newNode->pathFlag[k] = currentNode->pathFlag[k]; } newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } newNode->pathAttributeValue[levelNo] = slipvalueforconsecutive; newNode->pathFlag[levelNo] = 0; newNode->isLeaf = 1; newNode->selfLevel = levelNo+1; newNode->childNode = NULL; newNode->siblingNode = NULL; newNode->classify = FindMaxClassLab(classNum,attributestate); InsertIntoLeafList(newNode); } else{ newNode = GenerateDecisionTree(levelNo+1,currentNode->pathAttributeName,currentNode->pathAttributeValue, currentNode->pathFlag, slipvalueforconsecutive, 0); } currentNode->childNode = newNode; tempNode = newNode; for(i = 1; i<=1;i++) { ispureclass = 0; for(j = 0; j<=classNum-1; j++){ if(attributeclassstate[i][j]!=0) ispureclass++; } if(ispureclass == 0){ newNode = (TreeNode*)malloc(sizeof(TreeNode)); memset(newNode,0,sizeof(TreeNode)); if(levelNo == 0){ newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } else{ for(k = 0;k <= levelNo-1;k++){ newNode->pathAttributeName[k] = currentNode->pathAttributeName[k]; newNode->pathAttributeValue[k] = currentNode->pathAttributeValue[k]; newNode->pathFlag[k] = currentNode->pathFlag[k]; } newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } newNode->pathAttributeValue[levelNo]=slipvalueforconsecutive; newNode->pathFlag[levelNo] = 1;//> newNode->isLeaf = 1; newNode->selfLevel = levelNo+1; newNode->childNode = NULL; newNode->siblingNode = NULL; newNode->classify = FindMaxClassLab(classNum,attributestate); InsertIntoLeafList(newNode); } else{ newNode = GenerateDecisionTree(levelNo+1,currentNode->pathAttributeName,currentNode->pathAttributeValue,currentNode->pathFlag, slipvalueforconsecutive, 1); } tempNode->siblingNode = newNode; tempNode = newNode; } } else//discrete { for(i = 1; i <= numberOfTrainingRecord; i++) { tempData = trainingData[i]; if(MatchAttribute(levelNo,tempData,currentNode->pathAttributeName,currentNode->pathAttributeValue, currentNode->pathFlag)!=0) { attributeclassstate[tempData[slipAttributeNo]][tempData[0]]++; } } uint32_t ispureclass = 0; for (j = 0; j < classNum; ++j) { if (attributeclassstate[0][j] != 0)//the first value of slipattribute, because the are index start from 0 to attri.num-1 { ispureclass++; } } TreeNode* newNode; int k; if(ispureclass == 0) { newNode = (TreeNode*)malloc(sizeof(TreeNode)); memset(newNode,0,sizeof(TreeNode)); if(levelNo == 0){ newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } else{ for(k = 0;k <= levelNo-1;k++){ newNode->pathAttributeName[k] = currentNode->pathAttributeName[k]; newNode->pathAttributeValue[k] = currentNode->pathAttributeValue[k]; } newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } newNode->pathAttributeValue[levelNo]=0; newNode->isLeaf = 1; newNode->selfLevel = levelNo+1; newNode->childNode = NULL; newNode->siblingNode = NULL; newNode->classify = FindMaxClassLab(classNum,attributestate); InsertIntoLeafList(newNode); } else{ newNode = GenerateDecisionTree(levelNo+1,currentNode->pathAttributeName,currentNode->pathAttributeValue,currentNode->pathFlag, 0, 2); } currentNode->childNode = newNode; tempNode = newNode; for(i = 1; i<=map[slipAttributeNo].attributeNum-1;i++) { ispureclass = 0; for(j = 0; j<=classNum-1; j++){ if(attributeclassstate[i][j]!=0) ispureclass++; } if(ispureclass == 0){ newNode = (TreeNode*)malloc(sizeof(TreeNode)); memset(newNode,0,sizeof(TreeNode)); if(levelNo == 0){ newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } else{ for(k = 0;k <= levelNo-1;k++){ newNode->pathAttributeName[k] = currentNode->pathAttributeName[k]; newNode->pathAttributeValue[k] = currentNode->pathAttributeValue[k]; } newNode->pathAttributeName[levelNo] = currentNode->pathAttributeName[levelNo]; } newNode->pathAttributeValue[levelNo]=i; newNode->isLeaf = 1; newNode->selfLevel = levelNo+1; newNode->childNode = NULL; newNode->siblingNode = NULL; newNode->classify = FindMaxClassLab(classNum,attributestate); InsertIntoLeafList(newNode); } else{ newNode = GenerateDecisionTree(levelNo+1,currentNode->pathAttributeName,currentNode->pathAttributeValue,currentNode->pathFlag, i, 3); } tempNode->siblingNode = newNode; tempNode = newNode; } } return currentNode; } void VisitTree(FILE* fp,TreeNode* currentNode) { int i; int level=currentNode->selfLevel; for (i=0;i<=level-1;i++) fprintf(fp," "); fprintf(fp,"level %d: ", currentNode->selfLevel); if (level > 0) { fprintf(fp,"%s",map[currentNode->pathAttributeName[level-1]].attributeName); if (map[currentNode->pathAttributeName[level-1]].isConsecutive) { if (currentNode->pathFlag[level-1]==0) fprintf(fp,"<="); else fprintf(fp,">"); } else fprintf(fp,"="); if (map[currentNode->pathAttributeName[0]].isConsecutive == 0)//discrete { fprintf(fp,"%s", map[currentNode->pathAttributeName[level - 1]].attributes[currentNode->pathAttributeValue[level-1]]); } else {// fprintf(fp,"%d", currentNode->pathAttributeValue[level-1]); } } if (currentNode->isLeaf==1) { fprintf(fp,"----> %s",map[0].attributes[currentNode->classify]); } fprintf(fp,"\n"); if (currentNode->childNode != NULL) { VisitTree(fp,currentNode->childNode); TreeNode* tempNode=currentNode->childNode; while (tempNode->siblingNode != NULL) { VisitTree(fp,tempNode->siblingNode); tempNode=tempNode->siblingNode; } } } void OutputRule(FILE* fp,TreeNode* outputleaflist) { fprintf(fp,"\nthis rule number is:\n"); TreeNode* tempNode = NULL; tempNode = outputleaflist->nextLeaf; int ruleNum = 1; int i; while (tempNode != NULL) { if (tempNode->selfLevel==0) { fprintf(fp,"the classLab is always %d\n",tempNode->majorClass); return; } if (map[tempNode->pathAttributeName[0]].isConsecutive == 0)//discrete { fprintf(fp,"If %s = %s",map[tempNode->pathAttributeName[0]].attributeName, map[tempNode->pathAttributeName[0]].attributes[tempNode->pathAttributeValue[0]]); } else {// if (tempNode->pathFlag[0] == 0) //<= { fprintf(fp,"If %s <= %d",map[tempNode->pathAttributeName[0]].attributeName, tempNode->pathAttributeValue[0]); } else { //> fprintf(fp,"If %s > %d",map[tempNode->pathAttributeName[0]].attributeName, tempNode->pathAttributeValue[0]); } } if (tempNode->selfLevel >= 1) { for(i = 1;i<=tempNode->selfLevel-1;i++){ fprintf(fp," and "); if (map[tempNode->pathAttributeName[i]].isConsecutive == 0)//discrete { fprintf(fp,"%s = %s",map[tempNode->pathAttributeName[i]].attributeName, map[tempNode->pathAttributeName[i]].attributes[tempNode->pathAttributeValue[i]]); } else {// if (tempNode->pathFlag[i] == 0) //<= { fprintf(fp,"%s <= %d",map[tempNode->pathAttributeName[i]].attributeName, tempNode->pathAttributeValue[i]); } else { //> fprintf(fp,"%s > %d",map[tempNode->pathAttributeName[i]].attributeName, tempNode->pathAttributeValue[i]); } } } } fprintf(fp," then %s = %s\n",map[0].attributeName, map[0].attributes[tempNode->classify]); tempNode = tempNode->nextLeaf; ++ruleNum; } } void RunDataOnDecisionTree(FILE* fp, TreeNode* root, uint32_t* testdata, uint32_t** confusionMatrix) { uint32_t ismatched = 0; TreeNode* tempNode = NULL; tempNode = root->childNode; int i,j,result; while (tempNode != NULL) { if (MatchAttribute(tempNode->selfLevel, testdata, tempNode->pathAttributeName, tempNode->pathAttributeValue, tempNode->pathFlag) != 0) { if (tempNode->isLeaf == 1) { result = tempNode->classify; result = result % (classNum); confusionMatrix[testdata[0]%classNum][result] ++; ismatched = 1; if (isPrintResult == 1) { fprintf(fp, "%s .", map[0].attributes[result]); } break; } else { ismatched = 1; RunDataOnDecisionTree(fp, tempNode, testdata, confusionMatrix); break; } } tempNode = tempNode->siblingNode; } if (ismatched == 0) { result = root->majorClass; result = result%classNum; if (isPrintResult == 1) { fprintf(fp, "%s .", map[0].attributes[result]); } confusionMatrix[testdata[0]%classNum][result]++; } } void RunTestData(FILE* fp, TreeNode* root) { int i; for (i = 1; i <= numberOfTestingRecord; ++i) { if (isPrintResult == 1) { fprintf(fp, "test data%d's predict result is: ", i); } RunDataOnDecisionTree(fp, root, testData[i], confusionMatrix); if (isPrintResult) { fprintf(fp, "\n"); } } } void OutputConfusionMatrix(FILE* fp) { fprintf(fp,"\nconfusion matrix:\n"); int i, j; for (i = 0; i < classNum; ++i) { for (j = 0; j < classNum; ++j) { fprintf(fp,"%d ", confusionMatrix[i][j]); } fprintf(fp,"\n"); } fprintf(fp,"\n\n"); } void OutputAccuracyRating(FILE* fp) { fprintf(fp,"\naccuracy rating:\n"); int i, j; int rightsum = 0; int totalsum = 0; for (i = 0; i < classNum; ++i) { for (j = 0; j < classNum; ++j) { if (i == j) { rightsum += confusionMatrix[i][j]; } totalsum += confusionMatrix[i][j]; } } double ans = 1.0*rightsum/totalsum; fprintf(fp,"%lf\n", ans); fprintf(fp,"\n\n"); } void DeleteTree(TreeNode* T) { TreeNode* deleteNode=T->childNode; TreeNode* del_temp; while(deleteNode!=NULL){ del_temp = deleteNode; deleteNode = del_temp->siblingNode; del_temp->siblingNode = NULL; DeleteTree(del_temp); if (del_temp->isLeaf==1) deleteFromLeafList(del_temp); free(del_temp); } } double EstimateErrors(TreeNode* T) { uint32_t subPartitionNum = 0; // the count of records fellow this path. uint32_t * tempData = NULL; TreeNode* currentNode=T; uint32_t attributestate[differValue]; uint32_t levelNo=T->selfLevel; int i,j; for (i = 0; i <= differValue-1; ++i) { attributestate[i] = 0; } for (j = 1; j <= numberOfTrainingRecord; ++j) { tempData = trainingData[j]; if (MatchAttribute(levelNo, tempData, currentNode->pathAttributeName, currentNode->pathAttributeValue, currentNode->pathFlag) != 0) { attributestate[tempData[0]]++;//classLab subPartitionNum++; } } int majorclass = FindMaxClassLab(classNum, attributestate); int classNo=subPartitionNum; int major_ClassNo=attributestate[majorclass]; int Error_ClassNo=classNo-major_ClassNo; double tree_errors=GetErrors(classNo,Error_ClassNo); if (!T->isLeaf){ double branch_errors=EstimateErrors(T->childNode); if (T->childNode==NULL) printf("dfasdfasd"); TreeNode* tempNode=T->childNode->siblingNode; while (tempNode!=NULL) { branch_errors+=EstimateErrors(tempNode); tempNode=tempNode->siblingNode; } if (tree_errors<=branch_errors) { DeleteTree(T); T->childNode=NULL; T->isLeaf=1; T->classify=majorclass; InsertIntoLeafList(T); } else tree_errors=branch_errors; } return tree_errors; } void PostPrune(FILE* fp,TreeNode *T) { fprintf(fp,"\nPostPrunning Decision Tree!\n\n"); EstimateErrors(T); } int main(int argc, char* argv[]) { TreeNode* root = NULL; uint32_t initPathAttributeName[MAXLEVELNUM + 1]={0}; uint32_t initPathAttributeValue[MAXLEVELNUM + 1]={0}; uint32_t initPathFlag[MAXLEVELNUM + 1] = {0}; Read(argc, argv); Init(); clock_t start, end; start = clock(); root = GenerateDecisionTree(0, initPathAttributeName, initPathAttributeValue, initPathFlag, 0, 0); FILE *fp=fopen("output.txt","w"); if (!fp) { printf("Open File Error!\n"); exit(-1); } PostPrune(fp,root); TestVisitTree(fp,root); OutputRule(fp,leafList); if (isPrintResult == 1) { fprintf(fp, "Predict Result is:\n"); } RunTestData(fp, root); end = clock(); OutputConfusionMatrix(fp); OutputAccuracyRating(fp); //printf elapsed time fprintf( fp,"Elapsed time: \n %lf seconds\n\n", (double)(end-start)/CLOCKS_PER_SEC); fclose(fp); return 0; }
488453.c
#include "targetver.h" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include <stdlib.h> #include <malloc.h> #include <memory.h> #include <WinSock2.h> #include <Windows.h> #include <tchar.h> #include <assert.h> #include <iphlpapi.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <ws2tcpip.h> #include "picoquic.h" #include "h3zero.h" #include "democlient.h" #include "quicwind.h" #include "autoqlog.h" #ifndef SOCKET_TYPE #define SOCKET_TYPE SOCKET #endif #ifndef socklen_t #define socklen_t int #endif #include "picoquic.h" #include "picoquic_internal.h" #include "picosocks.h" #include "picoquic_utils.h" #include "h3zero.c" #include "democlient.h" static const char* ticket_store_filename = "demo_ticket_store.bin"; static const char* token_store_filename = "demo_token_store.bin"; static int quicwind_is_closing = 0; static quicwind_work_item_t * work_item_first = NULL; HANDLE work_item_mutex = NULL; HANDLE net_wake_up = NULL; /* Callback function * TODO: remove the "queue of docs" logic, replace with UI requests. * TODO: remove fprintf(), replace by message queue. * TODO: support multiple parallel connections. * TODO: add state evaluation */ typedef struct st_quicwind_stream_desc_t { uint64_t stream_id; uint64_t previous_stream_id; char const* doc_name; char const* f_name; int is_binary; } quicwind_stream_desc_t; #define PICOQUIC_DEMO_STREAM_LIST_MAX 16 typedef struct st_quicwind_stream_ctx_t quicwind_stream_ctx_t; typedef struct st_quicwind_stream_ctx_t { quicwind_stream_ctx_t* next_stream; h3zero_data_stream_state_t stream_state; size_t received_length; uint64_t stream_id; FILE* F; /* NULL if stream is closed. */ } quicwind_stream_ctx_t; typedef struct st_quicwind_callback_ctx_t { quicwind_stream_ctx_t* first_stream; uint64_t last_interaction_time; uint32_t nb_client_streams; int nb_open_streams; picoquic_alpn_enum alpn; int progress_observed; } quicwind_callback_ctx_t; static quicwind_stream_ctx_t* quicwind_find_stream( quicwind_callback_ctx_t* ctx, uint64_t stream_id) { quicwind_stream_ctx_t * stream_ctx = ctx->first_stream; while (stream_ctx != NULL && stream_ctx->stream_id != stream_id) { stream_ctx = stream_ctx->next_stream; } return stream_ctx; } static void quicwind_delete_stream_context(quicwind_callback_ctx_t* ctx, quicwind_stream_ctx_t * stream_ctx) { int removed_from_context = 0; #if 0 h3zero_delete_data_stream_state(&stream_ctx->stream_state); #endif stream_ctx->F = picoquic_file_close(stream_ctx->F); if (stream_ctx == ctx->first_stream) { ctx->first_stream = stream_ctx->next_stream; removed_from_context = 1; } else { quicwind_stream_ctx_t * previous = ctx->first_stream; while (previous != NULL) { if (previous->next_stream == stream_ctx) { previous->next_stream = stream_ctx->next_stream; removed_from_context = 1; break; } else { previous = previous->next_stream; } } } if (removed_from_context) { ctx->nb_open_streams--; } free(stream_ctx); } static void quicwind_delete_context(picoquic_cnx_t * cnx, quicwind_callback_ctx_t* ctx) { quicwind_stream_ctx_t * stream_ctx; picoquic_set_callback(cnx, NULL, NULL); while ((stream_ctx = ctx->first_stream) != NULL) { quicwind_delete_stream_context(ctx, stream_ctx); } free(ctx); } int quicwind_callback(picoquic_cnx_t* cnx, uint64_t stream_id, uint8_t* bytes, size_t length, picoquic_call_back_event_t fin_or_event, void* callback_ctx, void* v_stream_ctx) { int ret = 0; uint64_t fin_stream_id = PICOQUIC_DEMO_STREAM_ID_INITIAL; quicwind_callback_ctx_t* ctx = (quicwind_callback_ctx_t*)callback_ctx; quicwind_stream_ctx_t* stream_ctx; if (ctx == NULL) { return -1; } ctx->last_interaction_time = picoquic_get_quic_time(cnx->quic); ctx->progress_observed = 1; switch (fin_or_event) { case picoquic_callback_stream_data: case picoquic_callback_stream_fin: /* Data arrival on stream #x, maybe with fin mark */ /* TODO: parse the frames. */ /* TODO: check settings frame */ stream_ctx = quicwind_find_stream(ctx, stream_id); if (stream_ctx != NULL && stream_ctx->F != NULL) { if (length > 0) { switch (ctx->alpn) { case picoquic_alpn_http_3: { uint16_t error_found = 0; size_t available_data = 0; uint8_t * bytes_max = bytes + length; while (bytes < bytes_max) { bytes = h3zero_parse_data_stream(bytes, bytes_max, &stream_ctx->stream_state, &available_data, &error_found); if (bytes == NULL) { AppendText(_T("Error parsing H3 stream, closing the connection.\r\n")); ret = picoquic_close(cnx, error_found); break; } else if (available_data > 0) { ret = (fwrite(bytes, 1, available_data, stream_ctx->F) > 0) ? 0 : -1; stream_ctx->received_length += available_data; bytes += available_data; } } break; } case picoquic_alpn_http_0_9: default: ret = (fwrite(bytes, 1, length, stream_ctx->F) > 0) ? 0 : -1; stream_ctx->received_length += length; break; } } if (fin_or_event == picoquic_callback_stream_fin) { quicwind_delete_stream_context(ctx, stream_ctx); AppendText(_T("Stream ended\r\n")); } } break; case picoquic_callback_stream_reset: /* Server reset stream #x */ case picoquic_callback_stop_sending: /* Server asks client to reset stream #x */ AppendText(_T("Received a stream reset.\n")); /* TODO: special case for uni streams. */ stream_ctx = quicwind_find_stream(ctx, stream_id); quicwind_delete_stream_context(ctx, stream_ctx); picoquic_reset_stream(cnx, stream_id, 0); /* TODO: higher level notify? */ break; case picoquic_callback_stateless_reset: AppendText(_T("Received a stateless reset.\n")); quicwind_delete_context(cnx, ctx); break; case picoquic_callback_close: /* Received connection close */ AppendText(_T("Received a request to delete the connection.\n")); quicwind_delete_context(cnx, ctx); break; case picoquic_callback_application_close: /* Received application close */ AppendText(_T("Received a request to close the application.\n")); quicwind_delete_context(cnx, ctx); break; case picoquic_callback_version_negotiation: /* Received version negotiation */ AppendText(_T("Received a version negotiation request.\n")); break; case picoquic_callback_stream_gap: /* Gap indication, when unreliable streams are supported */ AppendText(_T("Received a gap indication.\r\n")); stream_ctx = quicwind_find_stream(ctx, stream_id); if (stream_ctx != NULL && stream_ctx->F != NULL) { stream_ctx->F = picoquic_file_close(stream_ctx->F); ctx->nb_open_streams--; fin_stream_id = stream_id; } /* TODO: Define what error. Stop sending? */ picoquic_reset_stream(cnx, stream_id, H3ZERO_INTERNAL_ERROR); break; case picoquic_callback_prepare_to_send: /* Used for active streams -- never used on client */ break; case picoquic_callback_almost_ready: AppendText(_T("Connection Almost Ready.\n")); break; case picoquic_callback_ready: AppendText(_T("Connection Ready.\n")); break; default: /* unexpected */ AppendText(_T("Callback unexpected.\n")); break; } /* that's it */ return ret; } /* Create the client context */ picoquic_quic_t* quicwind_create_context(const char * alpn, int mtu_max, const char * root_crt, uint8_t client_cnx_id_length) { /* Start: start the QUIC process with cert and key files */ int ret = 0; picoquic_quic_t* qclient = NULL; picoquic_demo_callback_ctx_t callback_ctx; SOCKET_TYPE fd = INVALID_SOCKET; int server_addr_length = 0; size_t send_length = 0; uint64_t key_update_done = 0; uint64_t current_time = 0; int client_ready_loop = 0; int client_receive_loop = 0; int established = 0; int is_name = 0; int migration_started = 0; int address_updated = 0; int64_t delay_max = 10000000; int64_t delta_t = 0; /* Create QUIC context */ current_time = picoquic_current_time(); callback_ctx.last_interaction_time = current_time; if (ret == 0) { qclient = picoquic_create(8, NULL, NULL, root_crt, alpn, NULL, NULL, NULL, NULL, NULL, current_time, NULL, ticket_store_filename, NULL, 0); picoquic_set_default_congestion_algorithm(qclient, picoquic_cubic_algorithm); /* DEBUG code: capture a log */ picoquic_set_qlog(qclient, "."); if (picoquic_load_tokens(&qclient->p_first_token, current_time, token_store_filename) != 0) { AppendText(_T("Could not load tokens.\r\n")); } if (qclient == NULL) { ret = -1; } else { qclient->mtu_max = mtu_max; (void)picoquic_set_default_connection_id_length(qclient, client_cnx_id_length); if (root_crt == NULL) { /* Standard verifier would crash */ AppendText(_T("No root crt list specified, certificate will not be verified.\r\n")); picoquic_set_null_verifier(qclient); } } } return qclient; } /* Wake up the network */ void quicwind_wake_up_network() { if (net_wake_up != NULL) { SetEvent(net_wake_up); } } /* Start download of a document */ int quicwind_start_download(picoquic_cnx_t * cnx, quicwind_callback_ctx_t * ctx, char const * doc_name) { int ret = 0; quicwind_stream_ctx_t* s_ctx; s_ctx = (quicwind_stream_ctx_t*)malloc(sizeof(quicwind_stream_ctx_t)); if (s_ctx == NULL) { ret = -1; } else { char file_name[256]; char name_buffer[256]; char request[256]; uint8_t * path; size_t path_len; size_t request_length = 0; int name_index = 0; int doc_index = 0; memset(s_ctx, 0, sizeof(quicwind_stream_ctx_t)); /* Set stream ID */ s_ctx->stream_id = ((uint64_t)ctx->nb_client_streams)*4u; /* make sure that the doc name is properly formated */ path = (uint8_t *)doc_name; path_len = strlen(doc_name); if (doc_name[0] != '/' && strlen(doc_name) + 1 <= sizeof(name_buffer)) { name_buffer[0] = '/'; if (path_len > 0) { memcpy(&name_buffer[1], doc_name, path_len); } path = name_buffer; path_len++; name_buffer[path_len] = 0; } /* Derive file name from doc name */ if (doc_name[0] == '/') { doc_index++; } while (doc_name[doc_index] != 0 && name_index < 255) { int c = doc_name[doc_index++]; if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '.')) { c = '_'; } file_name[name_index++] = c; } if (name_index == 0) { file_name[name_index++] = '_'; } file_name[name_index] = 0; if (fopen_s(&s_ctx->F, file_name, "wb") != 0) { ret = -1; free(s_ctx); } else { /* Open file to receive stream */ /* Add stream to context */ s_ctx->next_stream = ctx->first_stream; ctx->first_stream = s_ctx; ctx->nb_client_streams++; ctx->nb_open_streams++; /* Format the protocol specific request */ switch (ctx->alpn) { case picoquic_alpn_http_3: ret = h3zero_client_create_stream_request( request, sizeof(request), path, path_len, 0, cnx->sni, &request_length); break; case picoquic_alpn_http_0_9: default: ret = h09_demo_client_prepare_stream_open_command( request, sizeof(request), path, path_len, 0, cnx->sni, &request_length); break; } /* Send the request and report */ if (ret == 0) { ret = picoquic_add_to_stream(cnx, s_ctx->stream_id, request, request_length, 1); } if (ret < 0) { AppendText(_T("Something really bad happened - closing the connection\r\n")); /* Something really bad happened */ ret = picoquic_close(cnx, 0xFFFF); } } } return ret; } /* Start a new connection. * Create a connection in the client context, * set addresses, etc. Add a first stream if needed. */ int quicwind_start_connection(picoquic_quic_t * qclient, char const * name, char const *port_number, char const * doc_name, char const * alpn, char const *sni) { int ret = 0; int port = 443; struct sockaddr_storage server_address; int is_name = 0; picoquic_cnx_t * cnx_client = NULL; if (qclient == NULL) { ret = -1; } else if (port_number != NULL) { port = atoi(port_number); if (port <= 0) { ret = -1; } } if (ret == 0) { ret = picoquic_get_server_address(name, port, &server_address, &is_name); if (sni == NULL && is_name != 0) { sni = name; } } /* Create the client connection */ if (ret == 0) { /* Create a client connection */ cnx_client = picoquic_create_cnx(qclient, picoquic_null_connection_id, picoquic_null_connection_id, (struct sockaddr*)&server_address, picoquic_get_quic_time(qclient), 0xFF000012, sni, alpn, 1); if (cnx_client == NULL) { ret = -1; } else { /* create callback context! */ quicwind_callback_ctx_t * ctx = (quicwind_callback_ctx_t *)malloc(sizeof(quicwind_callback_ctx_t)); if (ctx == NULL) { ret = -1; } else { memset(ctx, 0, sizeof(quicwind_callback_ctx_t)); ctx->alpn = picoquic_parse_alpn(alpn); picoquic_set_callback(cnx_client, quicwind_callback, ctx); ret = picoquic_start_client_cnx(cnx_client); if (ret == 0) { switch (ctx->alpn) { case picoquic_alpn_http_3: ret = h3zero_client_init(cnx_client); break; default: break; } } if (ret == 0 && doc_name != 0) { /* TODO: Start the download scenario */ ret = quicwind_start_download(cnx_client, ctx, doc_name); } } } } return ret; } /* Get a connection list, at it to the menu item */ int quicwind_get_cnx_list(picoquic_quic_t * qclient, HWND hDlg, int list_box_id) { // Add items to list. HWND hwndList = GetDlgItem(hDlg, list_box_id); picoquic_cnx_t * cnx = picoquic_get_first_cnx(qclient); int nb_cnx = 0; int pos; while (cnx != NULL) { int cid = 0; for (int x = 0; x < cnx->initial_cnxid.id_len && x < 4; x++) { cid <<= 8; cid |= cnx->initial_cnxid.id[x]; } pos = (int)SendMessageA(hwndList, LB_ADDSTRING, 0,(LPARAM)cnx->sni); SendMessageA(hwndList, LB_SETITEMDATA, pos, (LPARAM)cid); nb_cnx++; cnx = cnx->next_in_table; } if (nb_cnx > 0){ /* Set selection to the first item */ SendMessageA(hwndList, LB_SETCURSEL, 0, 0); /* Set input focus to the list box. */ SetFocus(hwndList); } return nb_cnx; } picoquic_cnx_t * quicwind_find_cid(picoquic_quic_t * qclient, int sel_cid) { picoquic_cnx_t * cnx = picoquic_get_first_cnx(qclient); while (cnx != NULL) { int cid = 0; for (int x = 0; x < cnx->initial_cnxid.id_len && x < 4; x++) { cid <<= 8; cid |= cnx->initial_cnxid.id[x]; } if (cid == sel_cid) { break; } cnx = cnx->next_in_table; } return cnx; } /* Ask to load a file, for the selected connection */ int quicwind_load_file(picoquic_quic_t * qclient, int sel_cid, char const * doc_name) { int ret = 0; picoquic_cnx_t * cnx = quicwind_find_cid(qclient, sel_cid); if (cnx == NULL) { ret = -1; } else { /* Retrieve the app context from the connection */ void * v_ctx = picoquic_get_callback_context(cnx); if (v_ctx == NULL) { ret = -1; } else { /* Request to load the file */ ret = quicwind_start_download(cnx, (quicwind_callback_ctx_t *)v_ctx, doc_name); } } return ret; } /* Ask to close a connection */ int quicwind_disconnect(picoquic_quic_t * qclient, int sel_cid) { int ret = 0; picoquic_cnx_t * cnx = quicwind_find_cid(qclient, sel_cid); if (cnx == NULL) { ret = -1; } else { ret = picoquic_close(cnx, 0); } return ret; } /* Close the process */ void quicwind_orderly_exit(picoquic_quic_t * qclient, HANDLE qclient_thread, DWORD dw_qclient_thread_id) { /* Need to orderly stop the client thread. */ if (qclient_thread != NULL) { /* Set the global close thread flag */ quicwind_is_closing = 1; quicwind_wake_up_network(); /* Wait until background thread has terminated, or 3 seconds. */ if (WaitForMultipleObjects(1, &qclient_thread, TRUE, 3000) == WAIT_TIMEOUT) { TerminateThread(qclient_thread, 0); } /* Close the thread handle */ CloseHandle(qclient_thread); } if (qclient != NULL) { picoquic_free(qclient); } } /* Add a message to the work queue */ int quicwind_add_work_item(quicwind_work_item_enum item_type, int sel_cid, char const * name, char const *port_number, char const * doc_name, char const * alpn, char const *sni) { int ret = 0; DWORD w_ret = 0; quicwind_work_item_t * w = NULL; if (work_item_mutex == NULL) { AppendText(_T("Background thread is not ready.\r\n")); ret = -1; } else { w = (quicwind_work_item_t *)malloc(sizeof(quicwind_work_item_t)); if (w == NULL) { AppendText(_T("Out of memory.\r\n")); ret = -1; } else { w->next = NULL; w->item_type = item_type; w->sel_cid = sel_cid; w->name[0] = 0; w->port[0] = 0; w->doc[0] = 0; w->alpn[0] = 0; w->sni[0] = 0; if (ret == 0 && name != NULL) { ret = memcpy_s(w->name, sizeof(w->name), name, sizeof(w->name)); } if (ret == 0 && port_number != NULL) { ret = memcpy_s(w->port, sizeof(w->port), port_number, sizeof(w->port)); } if (ret == 0 && doc_name != NULL) { ret = memcpy_s(w->doc, sizeof(w->doc), doc_name, sizeof(w->doc)); } if (ret == 0 && alpn != NULL) { ret = memcpy_s(w->alpn, sizeof(w->alpn), alpn, sizeof(w->alpn)); } if (ret == 0 && sni != NULL) { ret = memcpy_s(w->sni, sizeof(w->sni), sni, sizeof(w->sni)); } if (ret != 0) { AppendText(_T("Cannot copy the work item.\r\n")); } else { w_ret = WaitForSingleObject(work_item_mutex, 1000); switch (w_ret) { case WAIT_OBJECT_0: { quicwind_work_item_t * next = work_item_first; quicwind_work_item_t * last = NULL; while (next) { last = next; next = next->next; } if (last) { last->next = w; } else { work_item_first = w; } if (!ReleaseMutex(work_item_mutex)) { AppendText(_T("Cannot release the work item mutex.\r\n")); } quicwind_wake_up_network(); break; } default: AppendText(_T("Cannot obtain the work item mutex.\r\n")); ret = -1; break; } } if (ret != 0) { free(w); } } } return ret; } /* Consume the first work item in the queue */ int quicwind_execute_work_item(picoquic_quic_t * qclient) { int ret = 0; DWORD w_ret; quicwind_work_item_t * w = NULL; if (work_item_mutex == NULL) { AppendText(_T("Background thread is not ready.\r\n")); ret = -1; } else { w_ret = WaitForSingleObject(work_item_mutex, 1000); switch (w_ret) { case WAIT_OBJECT_0: { if (work_item_first != NULL) { w = work_item_first; work_item_first = w->next; } if (!ReleaseMutex(work_item_mutex)) { AppendText(_T("Thread cannot release the work item mutex.\r\n")); } break; } default: AppendText(_T("Cannot obtain the work item mutex.\r\n")); ret = -1; break; } } if (w != NULL) { switch (w->item_type) { case quicwind_work_item_connection: if (quicwind_start_connection(qclient, (w->name[0] != 0) ? w->name : NULL, (w->port[0] != 0) ? w->port : NULL, (w->doc[0] != 0 > 0) ? w->doc : NULL, (w->alpn[0] != 0) ? w->alpn : NULL, (w->sni[0] != 0) ? w->sni : NULL) != 0) { AppendText(_T("Could not create the connection.\r\n")); } else { AppendText(_T("Created a connection\r\n")); } break; case quicwind_work_item_load_file: if (quicwind_load_file(qclient, w->sel_cid, w->doc) != 0) { AppendText(_T("Something happened, could not request the document.\r\n")); } break; case quicwind_work_item_disconnect: if (quicwind_disconnect(qclient, w->sel_cid) != 0) { AppendText(_T("Something happened, could not close the connection.\r\n")); } break; default: AppendText(_T("Thread found unknown item type.\r\n")); break; } free(w); } return ret; } void quicwind_clear_work_items() { DWORD w_ret; quicwind_work_item_t * w = NULL; if (work_item_mutex != NULL) { w_ret = WaitForSingleObject(work_item_mutex, 1000); switch (w_ret) { case WAIT_OBJECT_0: { while (work_item_first != NULL) { w = work_item_first; work_item_first = w->next; free(w); } CloseHandle(work_item_mutex); work_item_mutex = NULL; break; } default: AppendText(_T("Cannot obtain the work item mutex.\r\n")); break; } } } /* Start the protocol thread upon launching the application. * The background thread creates sockets, creates a client context, * and then loops onto connections until it is time to break. * At that point, it will exit the wait loop and close everything. */ DWORD WINAPI quicwind_background_thread(LPVOID lpParam) { int ret = 0; int bytes_recv; int server_addr_length = 0; uint8_t send_buffer[1536]; size_t send_length = 0; picoquic_recvmsg_async_ctx_t * sock_ctx[2]; const int socket_family[2] = { AF_INET6, AF_INET }; uint64_t current_time = 0; picoquic_stateless_packet_t* sp; int client_receive_loop = 0; uint64_t loop_time = 0; int address_updated = 0; int64_t delay_max = 100000; int64_t delta_t = 0; size_t client_sc_nb = 0; picoquic_demo_stream_desc_t * client_sc = NULL; picoquic_quic_t* qclient = (picoquic_quic_t*)lpParam; HANDLE events[3]; work_item_mutex = CreateMutex(NULL, FALSE, NULL); for (int i = 0; i < 2; i++) { sock_ctx[i] = picoquic_create_async_socket(socket_family[i], 0, 0); if (sock_ctx[i] == NULL) { AppendText(_T("Cannot create socket\r\n")); ret = -1; events[i] = 0; } else { events[i] = sock_ctx[i]->overlap.hEvent; } } events[2] = NULL; if (ret == 0) { net_wake_up = CreateEvent(NULL, TRUE, FALSE, NULL); if (net_wake_up == NULL) { AppendText(_T("Cannot create wake-up event\r\n")); ret = -1; } else { events[2] = net_wake_up; } } /* Wait for packets */ while (ret == 0 && !quicwind_is_closing) { DWORD delta_t_ms = (DWORD)((delta_t + 999) / 1000); DWORD ret_event = WSAWaitForMultipleEvents(3, events, FALSE, delta_t_ms, 0); current_time = picoquic_get_quic_time(qclient); bytes_recv = 0; if (ret_event >= WSA_WAIT_EVENT_0) { int i_sock = ret_event - WSA_WAIT_EVENT_0; if (i_sock < 2) { /* Received data on socket i */ ret = picoquic_recvmsg_async_finish(sock_ctx[i_sock]); ResetEvent(sock_ctx[i_sock]->overlap.hEvent); bytes_recv = sock_ctx[i_sock]->bytes_recv; if (ret != 0) { AppendText(_T("Cannot finish async recv\r\n")); } else { if (sock_ctx[i_sock]->bytes_recv > 0) { AppendText(_T("Packet received\r\n")); /* Submit the packet to the client */ ret = picoquic_incoming_packet(qclient, sock_ctx[i_sock]->recv_buffer, sock_ctx[i_sock]->recv_buffer_size , (struct sockaddr*) & sock_ctx[i_sock]->addr_from, (struct sockaddr*) & sock_ctx[i_sock]->addr_dest, sock_ctx[i_sock]->dest_if, sock_ctx[i_sock]->received_ecn, current_time); client_receive_loop++; } delta_t = 0; if (ret == 0) { /* Restart waiting for packets on the socket */ ret = picoquic_recvmsg_async_start(sock_ctx[i_sock]); if (ret == -1) { AppendText(_T("Cannot re-start async recv\r\n")); } } else { AppendText(_T("Packet processing error\r\n")); } } } else { if (i_sock == 2) { ResetEvent(net_wake_up); while (ret == 0 && work_item_first != NULL) { ret = quicwind_execute_work_item(qclient); } } delta_t = delay_max; } } if (ret == 0 && (bytes_recv == 0 || client_receive_loop > 64)) { /* In normal circumstances, the code waits until all packets in the receive * queue have been processed before sending new packets. However, if the server * is sending lots and lots of data this can lead to the client not getting * the occasion to send acknowledgements. The server will start retransmissions, * and may eventually drop the connection for lack of acks. So we limit * the number of packets that can be received before sending responses. */ picoquic_cnx_t * cnx_next = NULL; client_receive_loop = 0; send_length = PICOQUIC_MAX_PACKET_SIZE; while ((sp = picoquic_dequeue_stateless_packet(qclient)) != NULL) { SOCKET s = (sp->addr_to.ss_family == AF_INET) ? sock_ctx[1]->fd : sock_ctx[0]->fd; (void)picoquic_send_through_socket(s, (struct sockaddr*)&sp->addr_to, (struct sockaddr*)&sp->addr_local, sp->if_index_local, (const char*)sp->bytes, (int)sp->length, NULL); /* TODO: log stateless packet */ fflush(stdout); picoquic_delete_stateless_packet(sp); } while (ret == 0 && !quicwind_is_closing && (cnx_next = picoquic_get_earliest_cnx_to_wake(qclient, current_time)) != NULL) { int peer_addr_len = 0; struct sockaddr_storage peer_addr; int local_addr_len = 0; struct sockaddr_storage local_addr; int if_index = -1; ret = picoquic_prepare_packet(cnx_next, current_time, send_buffer, sizeof(send_buffer), &send_length, &peer_addr, &local_addr, &if_index); if (ret == PICOQUIC_ERROR_DISCONNECTED) { ret = 0; picoquic_delete_cnx(cnx_next); fflush(stdout); break; } else if (ret == 0) { if (send_length > 0) { int i_sock = (peer_addr.ss_family == AF_INET) ? 1 : 0; SOCKET s = sock_ctx[i_sock]->fd; (void)picoquic_send_through_socket(s, (struct sockaddr *)&peer_addr, (struct sockaddr *)&local_addr, if_index, (const char*)send_buffer, (int)send_length, NULL); AppendText(_T("Packet sent\r\n")); if (!sock_ctx[i_sock]->is_started) { sock_ctx[i_sock]->is_started = 1; ret = picoquic_recvmsg_async_start(sock_ctx[i_sock]); if (ret == -1) { AppendText(_T("Cannot start async recv\r\n")); } } } } else { break; } } delta_t = picoquic_get_next_wake_delay(qclient, current_time, delay_max); } } quicwind_clear_work_items(); for (int i = 0; i < 2; i++) { if (sock_ctx[i] != NULL) { picoquic_delete_async_socket(sock_ctx[i]); sock_ctx[i] = NULL; } } if (net_wake_up != NULL) { CloseHandle(net_wake_up); net_wake_up = NULL; } if (!quicwind_is_closing) { AppendText(_T("Error: Network thread exit.\r\n")); } return ret; }
387358.c
/*Created by: Prashantkr -- "GHAT ALLOCATION SYSTEM"(27 - 01 - 2021) The code is written in c language and runs Ghat Allocation System. As this code is the very first attempt, it might have loopholes and if you know how to improve it, you can take it forward!*/ #include <stdio.h> int main(){ int gseat[4] = {10,40,20,30}; int seat, ghat;//seat for taking seats wanted and ghat for choosing ghat number. printf("Select an option from the following ghats:\n1)Ghat1\n2)Ghat2\n3)Ghat3\n4)Ghat4\n"); scanf("%d", &ghat); printf("Seat available in Ghat%d is:\t %d\n", ghat, gseat[ghat-1]); //gseat[ghat-1] because input wil be 1 more than the list indexing as indexing starts from 0! //Now, while loop will run untill the list gseat has elements which is greater than 0. while(gseat[ghat] > 0){ printf("\nEnter seats wanted:\t \n"); scanf("%d", &seat); //now, checking if seat entered is lesser than the seat available and seat entered is greater than or equal to 0. If conditions met, the seat entered is subt from list. if(seat < gseat[ghat-1] && seat >= 0){ gseat[ghat - 1] = gseat[ghat - 1] - seat; printf("Seat alloted\n"); printf("Remaining seats:\t%d\n", gseat[ghat - 1]); } //Now, it checks if seat entered and seat available is 1! If so, seat is alloted! else if(seat == 1 && gseat[ghat - 1] == 1){ gseat[ghat - 1] -= 1; printf("Alloted!\n"); printf("No remaining seats avialble in Ghat%d!\nRemaining seats: %d", ghat, gseat[ghat - 1]); } //if seat entered is greater than the available seats, the user is asked to choose from another ghat whose seat is within the requirement. else if(seat > gseat[ghat - 1]){ printf("Choose from another ghats.\n"); //for loop prints the seats available in the respective ghat. for (int i = 0; i<4 ; i++){ if(gseat[i] > 1){ printf("Ghat%d has seats: %d\n", i+1, gseat[i]); } } printf("Enter Ghat number from above option with appropriate seats:\t\n"); scanf("%d", &ghat); printf("Enter seats required in the selected ghat: \n"); scanf("%d", &seat); gseat[ghat - 1] -= seat; printf("Seat Alloted!\n"); printf("Remaining seats available in Ghat%d: %d\n",ghat, gseat[ghat - 1]); } else{ printf("Enter valid command.\n"); } } //this for loop is of no use as per my considerations // for(int j = 0; j < 4; j++){ // if(ghat[j] == 0){ // printf("Ghat%d has seats: %d\n", j+1, ghat[j]); // } // printf("No Seats avilable now!"); // break; // } return 0; }
101082.c
#include "SDL_gpu.h" #include "SDL_platform.h" #include <string.h> #ifndef _MSC_VER #include <strings.h> #else #define __func__ __FUNCTION__ #endif #define GPU_MAX_ACTIVE_RENDERERS 20 #define GPU_MAX_REGISTERED_RENDERERS 10 void gpu_init_renderer_register(void); void gpu_free_renderer_register(void); typedef struct GPU_RendererRegistration { GPU_RendererID id; GPU_Renderer* (*createFn)(GPU_RendererID request); void (*freeFn)(GPU_Renderer*); } GPU_RendererRegistration; static Uint8 _gpu_renderer_register_is_initialized = 0; static GPU_Renderer* _gpu_renderer_map[GPU_MAX_ACTIVE_RENDERERS]; static GPU_RendererRegistration _gpu_renderer_register[GPU_MAX_REGISTERED_RENDERERS]; static int _gpu_renderer_order_size = 0; static GPU_RendererID _gpu_renderer_order[GPU_RENDERER_ORDER_MAX]; GPU_RendererEnum GPU_ReserveNextRendererEnum(void) { static GPU_RendererEnum last_enum = GPU_RENDERER_CUSTOM_0; return last_enum++; } int GPU_GetNumActiveRenderers(void) { int count; int i; gpu_init_renderer_register(); count = 0; for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { if(_gpu_renderer_map[i] != NULL) count++; } return count; } void GPU_GetActiveRendererList(GPU_RendererID* renderers_array) { int count; int i; gpu_init_renderer_register(); count = 0; for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { if(_gpu_renderer_map[i] != NULL) { renderers_array[count] = _gpu_renderer_map[i]->id; count++; } } } int GPU_GetNumRegisteredRenderers(void) { int count; int i; gpu_init_renderer_register(); count = 0; for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { if(_gpu_renderer_register[i].id.renderer != GPU_RENDERER_UNKNOWN) count++; } return count; } void GPU_GetRegisteredRendererList(GPU_RendererID* renderers_array) { int count; int i; gpu_init_renderer_register(); count = 0; for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { if(_gpu_renderer_register[i].id.renderer != GPU_RENDERER_UNKNOWN) { renderers_array[count] = _gpu_renderer_register[i].id; count++; } } } GPU_RendererID GPU_GetRendererID(GPU_RendererEnum renderer) { int i; gpu_init_renderer_register(); for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { if(_gpu_renderer_register[i].id.renderer == renderer) return _gpu_renderer_register[i].id; } return GPU_MakeRendererID("Unknown", GPU_RENDERER_UNKNOWN, 0, 0); } GPU_Renderer* GPU_CreateRenderer_OpenGL_1_BASE(GPU_RendererID request); void GPU_FreeRenderer_OpenGL_1_BASE(GPU_Renderer* renderer); GPU_Renderer* GPU_CreateRenderer_OpenGL_1(GPU_RendererID request); void GPU_FreeRenderer_OpenGL_1(GPU_Renderer* renderer); GPU_Renderer* GPU_CreateRenderer_OpenGL_2(GPU_RendererID request); void GPU_FreeRenderer_OpenGL_2(GPU_Renderer* renderer); GPU_Renderer* GPU_CreateRenderer_OpenGL_3(GPU_RendererID request); void GPU_FreeRenderer_OpenGL_3(GPU_Renderer* renderer); GPU_Renderer* GPU_CreateRenderer_GLES_1(GPU_RendererID request); void GPU_FreeRenderer_GLES_1(GPU_Renderer* renderer); GPU_Renderer* GPU_CreateRenderer_GLES_2(GPU_RendererID request); void GPU_FreeRenderer_GLES_2(GPU_Renderer* renderer); void GPU_RegisterRenderer(GPU_RendererID id, GPU_Renderer* (*create_renderer)(GPU_RendererID request), void (*free_renderer)(GPU_Renderer* renderer)) { int i = GPU_GetNumRegisteredRenderers(); if(i >= GPU_MAX_REGISTERED_RENDERERS) return; if(id.renderer == GPU_RENDERER_UNKNOWN) { GPU_PushErrorCode(__func__, GPU_ERROR_USER_ERROR, "Invalid renderer ID"); return; } if(create_renderer == NULL) { GPU_PushErrorCode(__func__, GPU_ERROR_USER_ERROR, "NULL renderer create callback"); return; } if(free_renderer == NULL) { GPU_PushErrorCode(__func__, GPU_ERROR_USER_ERROR, "NULL renderer free callback"); return; } _gpu_renderer_register[i].id = id; _gpu_renderer_register[i].createFn = create_renderer; _gpu_renderer_register[i].freeFn = free_renderer; } void gpu_register_built_in_renderers(void) { #ifndef SDL_GPU_DISABLE_OPENGL #ifndef SDL_GPU_DISABLE_OPENGL_1_BASE GPU_RegisterRenderer(GPU_MakeRendererID("OpenGL 1 BASE", GPU_RENDERER_OPENGL_1_BASE, 1, 1), &GPU_CreateRenderer_OpenGL_1_BASE, &GPU_FreeRenderer_OpenGL_1_BASE); #endif #ifndef SDL_GPU_DISABLE_OPENGL_1 GPU_RegisterRenderer(GPU_MakeRendererID("OpenGL 1", GPU_RENDERER_OPENGL_1, 1, 1), &GPU_CreateRenderer_OpenGL_1, &GPU_FreeRenderer_OpenGL_1); #endif #ifndef SDL_GPU_DISABLE_OPENGL_2 GPU_RegisterRenderer(GPU_MakeRendererID("OpenGL 2", GPU_RENDERER_OPENGL_2, 2, 0), &GPU_CreateRenderer_OpenGL_2, &GPU_FreeRenderer_OpenGL_2); #endif #ifndef SDL_GPU_DISABLE_OPENGL_3 #ifdef __MACOSX__ // Depending on OS X version, it might only support core GL 3.3 or 3.2 GPU_RegisterRenderer(GPU_MakeRendererID("OpenGL 3", GPU_RENDERER_OPENGL_3, 3, 2), &GPU_CreateRenderer_OpenGL_3, &GPU_FreeRenderer_OpenGL_3); #else GPU_RegisterRenderer(GPU_MakeRendererID("OpenGL 3", GPU_RENDERER_OPENGL_3, 3, 0), &GPU_CreateRenderer_OpenGL_3, &GPU_FreeRenderer_OpenGL_3); #endif #endif #endif #ifndef SDL_GPU_DISABLE_GLES #ifndef SDL_GPU_DISABLE_GLES_1 GPU_RegisterRenderer(GPU_MakeRendererID("OpenGLES 1", GPU_RENDERER_GLES_1, 1, 1), &GPU_CreateRenderer_GLES_1, &GPU_FreeRenderer_GLES_1); #endif #ifndef SDL_GPU_DISABLE_GLES_2 GPU_RegisterRenderer(GPU_MakeRendererID("OpenGLES 2", GPU_RENDERER_GLES_2, 2, 0), &GPU_CreateRenderer_GLES_2, &GPU_FreeRenderer_GLES_2); #endif #endif } void gpu_init_renderer_register(void) { int i; if(_gpu_renderer_register_is_initialized) return; for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { _gpu_renderer_register[i].id.name = "Unknown"; _gpu_renderer_register[i].id.renderer = GPU_RENDERER_UNKNOWN; _gpu_renderer_register[i].createFn = NULL; _gpu_renderer_register[i].freeFn = NULL; } for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { _gpu_renderer_map[i] = NULL; } GPU_GetDefaultRendererOrder(&_gpu_renderer_order_size, _gpu_renderer_order); _gpu_renderer_register_is_initialized = 1; gpu_register_built_in_renderers(); } void gpu_free_renderer_register(void) { int i; for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { _gpu_renderer_register[i].id.name = "Unknown"; _gpu_renderer_register[i].id.renderer = GPU_RENDERER_UNKNOWN; _gpu_renderer_register[i].createFn = NULL; _gpu_renderer_register[i].freeFn = NULL; } for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { _gpu_renderer_map[i] = NULL; } _gpu_renderer_register_is_initialized = 0; _gpu_renderer_order_size = 0; } void GPU_GetRendererOrder(int* order_size, GPU_RendererID* order) { if(order_size != NULL) *order_size = _gpu_renderer_order_size; if(order != NULL && _gpu_renderer_order_size > 0) memcpy(order, _gpu_renderer_order, _gpu_renderer_order_size*sizeof(GPU_RendererID)); } void GPU_SetRendererOrder(int order_size, GPU_RendererID* order) { if(order == NULL) { // Restore the default order int count = 0; GPU_RendererID default_order[GPU_RENDERER_ORDER_MAX]; GPU_GetDefaultRendererOrder(&count, default_order); GPU_SetRendererOrder(count, default_order); // Call us again with the default order return; } if(order_size <= 0) return; if(order_size > GPU_RENDERER_ORDER_MAX) { GPU_PushErrorCode(__func__, GPU_ERROR_USER_ERROR, "Given order_size (%d) is greater than GPU_RENDERER_ORDER_MAX (%d)", order_size, GPU_RENDERER_ORDER_MAX); order_size = GPU_RENDERER_ORDER_MAX; } memcpy(_gpu_renderer_order, order, order_size*sizeof(GPU_RendererID)); _gpu_renderer_order_size = order_size; } void GPU_GetDefaultRendererOrder(int* order_size, GPU_RendererID* order) { int count = 0; GPU_RendererID default_order[GPU_RENDERER_ORDER_MAX]; #if defined(__ANDROID__) || defined(__IPHONEOS__) default_order[count++] = GPU_MakeRendererID("OpenGLES 2", GPU_RENDERER_GLES_2, 2, 0); default_order[count++] = GPU_MakeRendererID("OpenGLES 1", GPU_RENDERER_GLES_1, 1, 1); #else #ifdef __MACOSX__ // My understanding of OS X OpenGL support: // OS X 10.9: GL 2.1, 3.3, 4.1 // OS X 10.7: GL 2.1, 3.2 // OS X 10.6: GL 1.4, 2.1 default_order[count++] = GPU_MakeRendererID("OpenGL 3", GPU_RENDERER_OPENGL_3, 3, 2); #else default_order[count++] = GPU_MakeRendererID("OpenGL 3", GPU_RENDERER_OPENGL_3, 3, 0); #endif default_order[count++] = GPU_MakeRendererID("OpenGL 2", GPU_RENDERER_OPENGL_2, 2, 0); default_order[count++] = GPU_MakeRendererID("OpenGL 1", GPU_RENDERER_OPENGL_1, 1, 1); #endif if(order_size != NULL) *order_size = count; if(order != NULL && count > 0) memcpy(order, default_order, count*sizeof(GPU_RendererID)); } GPU_Renderer* GPU_CreateRenderer(GPU_RendererID id) { GPU_Renderer* result = NULL; int i; for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { if(_gpu_renderer_register[i].id.renderer == GPU_RENDERER_UNKNOWN) continue; if(id.renderer == _gpu_renderer_register[i].id.renderer) { if(_gpu_renderer_register[i].createFn != NULL) { // Use the registered name id.name = _gpu_renderer_register[i].id.name; result = _gpu_renderer_register[i].createFn(id); } break; } } if(result == NULL) { GPU_PushErrorCode(__func__, GPU_ERROR_DATA_ERROR, "Renderer was not found in the renderer registry."); } return result; } // Get a renderer from the map. GPU_Renderer* GPU_GetRenderer(GPU_RendererID id) { int i; gpu_init_renderer_register(); // Invalid enum? if(id.renderer == GPU_RENDERER_UNKNOWN) return NULL; for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { if(_gpu_renderer_map[i] == NULL) continue; if(id.renderer == _gpu_renderer_map[i]->id.renderer) return _gpu_renderer_map[i]; } return NULL; } // Create a new renderer based on a registered id and store it in the map. GPU_Renderer* gpu_create_and_add_renderer(GPU_RendererID id) { int i; for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { if(_gpu_renderer_map[i] == NULL) { // Create GPU_Renderer* renderer = GPU_CreateRenderer(id); if(renderer == NULL) { GPU_PushErrorCode(__func__, GPU_ERROR_BACKEND_ERROR, "Failed to create new renderer."); return NULL; } // Add _gpu_renderer_map[i] = renderer; // Return return renderer; } } GPU_PushErrorCode(__func__, GPU_ERROR_BACKEND_ERROR, "Couldn't create a new renderer. Too many active renderers for GPU_MAX_ACTIVE_RENDERERS (%d).", GPU_MAX_ACTIVE_RENDERERS); return NULL; } // Free renderer memory according to how the registry instructs void gpu_free_renderer_memory(GPU_Renderer* renderer) { int i; if(renderer == NULL) return; for(i = 0; i < GPU_MAX_REGISTERED_RENDERERS; i++) { if(_gpu_renderer_register[i].id.renderer == GPU_RENDERER_UNKNOWN) continue; if(renderer->id.renderer == _gpu_renderer_register[i].id.renderer) { _gpu_renderer_register[i].freeFn(renderer); return; } } } // Remove a renderer from the active map and free it. void GPU_FreeRenderer(GPU_Renderer* renderer) { int i; GPU_Renderer* current_renderer; if(renderer == NULL) return; current_renderer = GPU_GetCurrentRenderer(); if(current_renderer == renderer) GPU_SetCurrentRenderer(GPU_MakeRendererID("Unknown", GPU_RENDERER_UNKNOWN, 0, 0)); for(i = 0; i < GPU_MAX_ACTIVE_RENDERERS; i++) { if(renderer == _gpu_renderer_map[i]) { gpu_free_renderer_memory(renderer); _gpu_renderer_map[i] = NULL; return; } } }
640905.c
#include <stdio.h> #define MAXLINE 1000 void reverse(char string[], int stringlength); int _getline(char line[], int limit); int main() { int length; char line[MAXLINE]; while ((length = _getline(line, MAXLINE)) > 0) { printf("Input was:\n%s\n", line); reverse(line, length); printf("Reverse of the input:\n%s\n", line); } return 0; } int _getline(char line[], int limit) { int character, counter; counter = 0; while (counter < limit - 1 && (character = getchar()) != EOF && character != '\n') { line[counter] = character; ++counter; } if (character == '\n') { line[counter] = character; ++counter; } line[counter] = '\0'; return counter; } void reverse(char string[], int stringlength) { int left, right; left = 0; right = stringlength - 1; while (left < right) { int temp; temp = string[left]; string[left] = string[right]; string[right] = temp; ++left; --right; } }
366596.c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml Template File: sources-sink-52a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data pointer to the bad buffer * GoodSource: Set data pointer to the good buffer * Sink: memmove * BadSink : Copy int array to data using memmove * Flow Variant: 52 Data flow: data passed as an argument from one function to another to another in three different source files * * */ #include "std_testcase.h" #ifndef OMITBAD /* bad function declaration */ void CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52b_bad_sink(int * data); void CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52_bad() { int * data; int * data_badbuf = (int *)ALLOCA(50*sizeof(int)); int * data_goodbuf = (int *)ALLOCA(100*sizeof(int)); /* FLAW: Set a pointer to a "small" buffer. This buffer will be used in the sinks as a destination * buffer in various memory copying functions using a "large" source buffer. */ data = data_badbuf; CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52b_bad_sink(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* good function declaration */ void CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52b_goodG2B_sink(int * data); /* goodG2B uses the GoodSource with the BadSink */ static void goodG2B() { int * data; int * data_badbuf = (int *)ALLOCA(50*sizeof(int)); int * data_goodbuf = (int *)ALLOCA(100*sizeof(int)); /* FIX: Set a pointer to a "large" buffer, thus avoiding buffer overflows in the sinks. */ data = data_goodbuf; CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52b_goodG2B_sink(data); } void CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52_good() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE121_Stack_Based_Buffer_Overflow__dest_int_alloca_memmove_52_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
168948.c
/******************************************************************* * * CAUTION: This file is automatically generated by HSI. * Version: * DO NOT EDIT. * * Copyright (C) 2010-2021 Xilinx, Inc. All Rights Reserved.* *Permission is hereby granted, free of charge, to any person obtaining a copy *of this software and associated documentation files (the Software), to deal *in the Software without restriction, including without limitation the rights *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *copies of the Software, and to permit persons to whom the Software is *furnished to do so, subject to the following conditions: * *The above copyright notice and this permission notice shall be included in *all copies or substantial portions of the Software. * * Use of the Software is limited solely to applications: *(a) running on a Xilinx device, or *(b) that interact with a Xilinx device through a bus or interconnect. * *THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *XILINX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, *WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT *OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *Except as contained in this notice, the name of the Xilinx shall not be used *in advertising or otherwise to promote the sale, use or other dealings in *this Software without prior written authorization from Xilinx. * * * Description: Driver configuration * *******************************************************************/ #include "xparameters.h" #include "xgpiops.h" /* * The configuration table for devices */ XGpioPs_Config XGpioPs_ConfigTable[XPAR_XGPIOPS_NUM_INSTANCES] = { { XPAR_PSU_GPIO_0_DEVICE_ID, XPAR_PSU_GPIO_0_BASEADDR } };
832490.c
/** @file Transmit the IP4 packet. Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Ip4Impl.h" UINT16 mIp4Id; /** Prepend an IP4 head to the Packet. It will copy the options and build the IP4 header fields. Used for IP4 fragmentation. @param Packet The packet to prepend IP4 header to @param Head The caller supplied header. The caller should set the following header fields: Tos, TotalLen, Id, Fragment, Ttl, Protocol, Src and Dst. All the fields are in host byte order. This function will fill in the Ver, HeadLen, and checksum. @param Option The original IP4 option to copy from @param OptLen The length of the IP4 option @retval EFI_BAD_BUFFER_SIZE There is no enough room in the head space of Packet. @retval EFI_SUCCESS The IP4 header is successfully added to the packet. **/ EFI_STATUS Ip4PrependHead ( IN OUT NET_BUF *Packet, IN IP4_HEAD *Head, IN UINT8 *Option, IN UINT32 OptLen ) { UINT32 HeadLen; UINT32 Len; IP4_HEAD *PacketHead; BOOLEAN FirstFragment; // // Prepend the options: first get the option length, then copy it over. // HeadLen = 0; FirstFragment = IP4_FIRST_FRAGMENT (Head->Fragment); Ip4CopyOption (Option, OptLen, FirstFragment, NULL, &Len); HeadLen = IP4_MIN_HEADLEN + Len; ASSERT (((Len % 4) == 0) && (HeadLen <= IP4_MAX_HEADLEN)); PacketHead = (IP4_HEAD *) NetbufAllocSpace (Packet, HeadLen, NET_BUF_HEAD); if (PacketHead == NULL) { return EFI_BAD_BUFFER_SIZE; } Ip4CopyOption (Option, OptLen, FirstFragment, (UINT8 *) (PacketHead + 1), &Len); // // Set the head up, convert the host byte order to network byte order // PacketHead->Ver = 4; PacketHead->HeadLen = (UINT8) (HeadLen >> 2); PacketHead->Tos = Head->Tos; PacketHead->TotalLen = HTONS ((UINT16) Packet->TotalSize); PacketHead->Id = HTONS (Head->Id); PacketHead->Fragment = HTONS (Head->Fragment); PacketHead->Checksum = 0; PacketHead->Ttl = Head->Ttl; PacketHead->Protocol = Head->Protocol; PacketHead->Src = HTONL (Head->Src); PacketHead->Dst = HTONL (Head->Dst); PacketHead->Checksum = (UINT16) (~NetblockChecksum ((UINT8 *) PacketHead, HeadLen)); Packet->Ip.Ip4 = PacketHead; return EFI_SUCCESS; } /** Select an interface to send the packet generated in the IP4 driver itself, that is, not by the requests of IP4 child's consumer. Such packets include the ICMP echo replies, and other ICMP error packets. @param[in] IpSb The IP4 service that wants to send the packets. @param[in] Dst The destination of the packet @param[in] Src The source of the packet @return NULL if no proper interface is found, otherwise the interface that can be used to send the system packet from. **/ IP4_INTERFACE * Ip4SelectInterface ( IN IP4_SERVICE *IpSb, IN IP4_ADDR Dst, IN IP4_ADDR Src ) { IP4_INTERFACE *IpIf; IP4_INTERFACE *Selected; LIST_ENTRY *Entry; // // Select the interface the Dst is on if one of the connected // network. Some IP instance may be configured with 0.0.0.0/0, // don't select that interface now. // IpIf = Ip4FindNet (IpSb, Dst); if ((IpIf != NULL) && (IpIf->Ip != IP4_ALLZERO_ADDRESS)) { return IpIf; } // // If source is one of the interface address, select it. // IpIf = Ip4FindInterface (IpSb, Src); if ((IpIf != NULL) && (IpIf->Ip != IP4_ALLZERO_ADDRESS)) { return IpIf; } // // Select a configured interface as the fall back. Always prefer // an interface with non-zero address. // Selected = NULL; NET_LIST_FOR_EACH (Entry, &IpSb->Interfaces) { IpIf = NET_LIST_USER_STRUCT (Entry, IP4_INTERFACE, Link); if (IpIf->Configured && ((Selected == NULL) || (Selected->Ip == 0))) { Selected = IpIf; } } return Selected; } /** The default callback function for system generated packet. It will free the packet. @param Ip4Instance The IP4 child that issued the transmission. It most like is NULL. @param Packet The packet that transmitted. @param IoStatus The result of the transmission, succeeded or failed. @param LinkFlag Not used when transmission. check IP4_FRAME_CALLBACK for reference. @param Context The context provided by us **/ VOID Ip4SysPacketSent ( IP4_PROTOCOL *Ip4Instance, NET_BUF *Packet, EFI_STATUS IoStatus, UINT32 LinkFlag, VOID *Context ) { NetbufFree (Packet); } /** Transmit an IP4 packet. The packet comes either from the IP4 child's consumer (IpInstance != NULL) or the IP4 driver itself (IpInstance == NULL). It will route the packet, fragment it, then transmit all the fragments through some interface. @param[in] IpSb The IP4 service instance to transmit the packet @param[in] IpInstance The IP4 child that issues the transmission. It is NULL if the packet is from the system. @param[in] Packet The user data to send, excluding the IP header. @param[in] Head The caller supplied header. The caller should set the following header fields: Tos, TotalLen, Id, tl, Fragment, Protocol, Src and Dst. All the fields are in host byte order. This function will fill in the Ver, HeadLen, Fragment, and checksum. The Fragment only need to include the DF flag. Ip4Output will compute the MF and offset for you. @param[in] Option The original option to append to the IP headers @param[in] OptLen The length of the option @param[in] GateWay The next hop address to transmit packet to. 255.255.255.255 means broadcast. @param[in] Callback The callback function to issue when transmission completed. @param[in] Context The opaque context for the callback @retval EFI_NO_MAPPING There is no interface to the destination. @retval EFI_NOT_FOUND There is no route to the destination @retval EFI_SUCCESS The packet is successfully transmitted. @retval EFI_BAD_BUFFER_SIZE The length of the IPv4 header + option length + total data length is greater than MTU (or greater than the maximum packet size if Token.Packet.TxData. OverrideData.DoNotFragment is TRUE.) @retval Others Failed to transmit the packet. **/ EFI_STATUS Ip4Output ( IN IP4_SERVICE *IpSb, IN IP4_PROTOCOL *IpInstance OPTIONAL, IN NET_BUF *Packet, IN IP4_HEAD *Head, IN UINT8 *Option, IN UINT32 OptLen, IN IP4_ADDR GateWay, IN IP4_FRAME_CALLBACK Callback, IN VOID *Context ) { IP4_INTERFACE *IpIf; IP4_ROUTE_CACHE_ENTRY *CacheEntry; IP4_ADDR Dest; EFI_STATUS Status; NET_BUF *Fragment; UINT32 Index; UINT32 HeadLen; UINT32 PacketLen; UINT32 Offset; UINT32 Mtu; UINT32 Num; BOOLEAN RawData; // // Select an interface/source for system packet, application // should select them itself. // if (IpInstance == NULL) { IpIf = Ip4SelectInterface (IpSb, Head->Dst, Head->Src); } else { IpIf = IpInstance->Interface; } if (IpIf == NULL) { return EFI_NO_MAPPING; } if ((Head->Src == IP4_ALLZERO_ADDRESS) && (IpInstance == NULL)) { Head->Src = IpIf->Ip; } // // Before IPsec process, prepared the IP head. // If Ip4Output is transmitting RawData, don't update IPv4 header. // HeadLen = sizeof (IP4_HEAD) + ((OptLen + 3) & (~0x03)); if ((IpInstance != NULL) && IpInstance->ConfigData.RawData) { RawData = TRUE; } else { Head->HeadLen = (UINT8) (HeadLen >> 2); Head->Id = mIp4Id++; Head->Ver = 4; RawData = FALSE; } // // Call IPsec process. // Status = Ip4IpSecProcessPacket ( IpSb, &Head, &Packet, &Option, &OptLen, EfiIPsecOutBound, Context ); if (EFI_ERROR(Status)) { return Status; } Dest = Head->Dst; if (IP4_IS_BROADCAST (Ip4GetNetCast (Dest, IpIf)) || (Dest == IP4_ALLONE_ADDRESS)) { // // Set the gateway to local broadcast if the Dest is // the broadcast address for the connected network or // it is local broadcast. // GateWay = IP4_ALLONE_ADDRESS; } else if (IP4_IS_MULTICAST (Dest)) { // // Set the gateway to the destination if it is an multicast // address. The IP4_INTERFACE won't consult ARP to send local // broadcast and multicast. // GateWay = Head->Dst; } else if (GateWay == IP4_ALLZERO_ADDRESS) { // // Route the packet unless overridden, that is, GateWay isn't zero. // if (IpInstance == NULL) { CacheEntry = Ip4Route (IpSb->DefaultRouteTable, Head->Dst, Head->Src, IpIf->SubnetMask, TRUE); } else { CacheEntry = Ip4Route (IpInstance->RouteTable, Head->Dst, Head->Src, IpIf->SubnetMask, FALSE); // // If failed to route the packet by using the instance's route table, // try to use the default route table. // if (CacheEntry == NULL) { CacheEntry = Ip4Route (IpSb->DefaultRouteTable, Head->Dst, Head->Src, IpIf->SubnetMask, TRUE); } } if (CacheEntry == NULL) { return EFI_NOT_FOUND; } GateWay = CacheEntry->NextHop; Ip4FreeRouteCacheEntry (CacheEntry); } // // OK, selected the source and route, fragment the packet then send // them. Tag each fragment other than the first one as spawn from it. // Mtu = IpSb->MaxPacketSize + sizeof (IP4_HEAD); if (Packet->TotalSize + HeadLen > Mtu) { // // Fragmentation is disabled for RawData mode. // if (RawData) { return EFI_BAD_BUFFER_SIZE; } // // Packet is fragmented from the tail to the head, that is, the // first frame sent is the last fragment of the packet. The first // fragment is NOT sent in this loop. First compute how many // fragments there are. // Mtu = (Mtu - HeadLen) & (~0x07); Num = (Packet->TotalSize + Mtu - 1) / Mtu; // // Initialize the packet length and Offset. Other than the last // fragment, the packet length equals to MTU. The offset is always // aligned to MTU. // PacketLen = Packet->TotalSize - (Num - 1) * Mtu; Offset = Mtu * (Num - 1); for (Index = 0; Index < Num - 1; Index++, Offset -= Mtu) { Fragment = NetbufGetFragment (Packet, Offset, PacketLen, IP4_MAX_HEADLEN); if (Fragment == NULL) { Status = EFI_OUT_OF_RESOURCES; goto ON_ERROR; } // // Update the header's fragment. The caller fills the IP4 header // fields that are required by Ip4PrependHead except the fragment. // Head->Fragment = IP4_HEAD_FRAGMENT_FIELD (FALSE, (Index != 0), Offset); Ip4PrependHead (Fragment, Head, Option, OptLen); // // Transmit the fragments, pass the Packet address as the context. // So, we can find all the fragments spawned from the Packet by // compare the NetBuf and Context to the Packet. // Status = Ip4SendFrame ( IpIf, IpInstance, Fragment, GateWay, Ip4SysPacketSent, Packet, IpSb ); if (EFI_ERROR (Status)) { goto ON_ERROR; } PacketLen = Mtu; } // // Trim the already sent data, then adjust the head's fragment field. // NetbufTrim (Packet, Packet->TotalSize - Mtu, FALSE); Head->Fragment = IP4_HEAD_FRAGMENT_FIELD (FALSE, TRUE, 0); } // // Send the first fragment, it is either the original packet, or the // first fragment of a fragmented packet. It seems that there is a subtle // bug here: what if the caller free the packet in Callback and IpIf (or // MNP child used by that interface) still holds the fragments and try // to access the data? The caller can free the packet if it recycles the // consumer's (such as UDP) data in the Callback. But this can't happen. // The detailed sequence is: // 1. for the packets generated by IP4 driver itself: // The Callback is Ip4SysPacketSent, which is the same as the // fragments' callback. Ip4SysPacketSent simply calls NetbufFree // to release its reference to the packet. So, no problem for // system packets. // // 2. for the upper layer's packets (use UDP as an example): // UDP requests the IP layer to transmit some data which is // wrapped in an asynchronous token, the token is wrapped // in IP4_TXTOKEN_WRAP by IP4. IP4 also wrap the user's data // in a net buffer, which is Packet we get here. IP4_TXTOKEN_WRAP // is bound with the Packet. It will only be freed when all // the references to Packet have been released. Upon then, the // Packet's OnFree callback will release the IP4_TXTOKEN_WRAP, // and signal the user's recycle event. So, also no problem for // upper layer's packets. // Ip4PrependHead (Packet, Head, Option, OptLen); Status = Ip4SendFrame (IpIf, IpInstance, Packet, GateWay, Callback, Context, IpSb); if (EFI_ERROR (Status)) { goto ON_ERROR; } return EFI_SUCCESS; ON_ERROR: Ip4CancelPacket (IpIf, Packet, Status); return Status; } /** The filter function to find a packet and all its fragments. The packet's fragments have their Context set to the packet. @param[in] Frame The frames hold by the low level interface @param[in] Context Context to the function, which is the packet. @retval TRUE This is the packet to cancel or its fragments. @retval FALSE This is unrelated packet. **/ BOOLEAN Ip4CancelPacketFragments ( IN IP4_LINK_TX_TOKEN *Frame, IN VOID *Context ) { if ((Frame->Packet == (NET_BUF *) Context) || (Frame->Context == Context)) { return TRUE; } return FALSE; } /** Cancel the Packet and all its fragments. @param IpIf The interface from which the Packet is sent @param Packet The Packet to cancel @param IoStatus The status returns to the sender. **/ VOID Ip4CancelPacket ( IN IP4_INTERFACE *IpIf, IN NET_BUF *Packet, IN EFI_STATUS IoStatus ) { Ip4CancelFrames (IpIf, IoStatus, Ip4CancelPacketFragments, Packet); }
706474.c
/* Bluetooth Mesh */ /* * Copyright (c) 2017 Intel Corporation * Additional Copyright (c) 2018 Espressif Systems (Shanghai) PTE LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <errno.h> #include <string.h> #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_PROV) #include "crypto.h" #include "adv.h" #include "mesh.h" #include "access.h" #include "foundation.h" #include "mesh_common.h" #include "mesh_proxy.h" #include "proxy_server.h" #include "prov.h" #if CONFIG_BLE_MESH_NODE /* 3 transmissions, 20ms interval */ #define PROV_XMIT BLE_MESH_TRANSMIT(2, 20) #define AUTH_METHOD_NO_OOB 0x00 #define AUTH_METHOD_STATIC 0x01 #define AUTH_METHOD_OUTPUT 0x02 #define AUTH_METHOD_INPUT 0x03 #define OUTPUT_OOB_BLINK 0x00 #define OUTPUT_OOB_BEEP 0x01 #define OUTPUT_OOB_VIBRATE 0x02 #define OUTPUT_OOB_NUMBER 0x03 #define OUTPUT_OOB_STRING 0x04 #define INPUT_OOB_PUSH 0x00 #define INPUT_OOB_TWIST 0x01 #define INPUT_OOB_NUMBER 0x02 #define INPUT_OOB_STRING 0x03 #define PUB_KEY_NO_OOB 0x00 #define PUB_KEY_OOB 0x01 #define PROV_ERR_NONE 0x00 #define PROV_ERR_NVAL_PDU 0x01 #define PROV_ERR_NVAL_FMT 0x02 #define PROV_ERR_UNEXP_PDU 0x03 #define PROV_ERR_CFM_FAILED 0x04 #define PROV_ERR_RESOURCES 0x05 #define PROV_ERR_DECRYPT 0x06 #define PROV_ERR_UNEXP_ERR 0x07 #define PROV_ERR_ADDR 0x08 #define PROV_INVITE 0x00 #define PROV_CAPABILITIES 0x01 #define PROV_START 0x02 #define PROV_PUB_KEY 0x03 #define PROV_INPUT_COMPLETE 0x04 #define PROV_CONFIRM 0x05 #define PROV_RANDOM 0x06 #define PROV_DATA 0x07 #define PROV_COMPLETE 0x08 #define PROV_FAILED 0x09 #define PROV_ALG_P256 0x00 #define GPCF(gpc) (gpc & 0x03) #define GPC_START(last_seg) (((last_seg) << 2) | 0x00) #define GPC_ACK 0x01 #define GPC_CONT(seg_id) (((seg_id) << 2) | 0x02) #define GPC_CTL(op) (((op) << 2) | 0x03) #define START_PAYLOAD_MAX 20 #define CONT_PAYLOAD_MAX 23 #define START_LAST_SEG(gpc) (gpc >> 2) #define CONT_SEG_INDEX(gpc) (gpc >> 2) #define BEARER_CTL(gpc) (gpc >> 2) #define LINK_OPEN 0x00 #define LINK_ACK 0x01 #define LINK_CLOSE 0x02 #define CLOSE_REASON_SUCCESS 0x00 #define CLOSE_REASON_TIMEOUT 0x01 #define CLOSE_REASON_FAILED 0x02 #define XACT_SEG_DATA(_seg) (&link.rx.buf->data[20 + ((_seg - 1) * 23)]) #define XACT_SEG_RECV(_seg) (link.rx.seg &= ~(1 << (_seg))) #define XACT_NVAL 0xff enum { REMOTE_PUB_KEY, /* Remote key has been received */ OOB_PUB_KEY, /* OOB public key is available */ LINK_ACTIVE, /* Link has been opened */ HAVE_DHKEY, /* DHKey has been calculated */ SEND_CONFIRM, /* Waiting to send Confirm value */ WAIT_NUMBER, /* Waiting for number input from user */ WAIT_STRING, /* Waiting for string input from user */ LINK_INVALID, /* Error occurred during provisioning */ NUM_FLAGS, }; struct prov_link { BLE_MESH_ATOMIC_DEFINE(flags, NUM_FLAGS); #if defined(CONFIG_BLE_MESH_PB_GATT) struct bt_mesh_conn *conn; /* GATT connection */ #endif u8_t dhkey[32]; /* Calculated DHKey */ u8_t expect; /* Next expected PDU */ bool oob_pk_flag; /* Flag indicates whether using OOB public key */ u8_t oob_method; u8_t oob_action; u8_t oob_size; u8_t conf[16]; /* Remote Confirmation */ u8_t rand[16]; /* Local Random */ u8_t auth[16]; /* Authentication Value */ u8_t conf_salt[16]; /* ConfirmationSalt */ u8_t conf_key[16]; /* ConfirmationKey */ u8_t conf_inputs[145]; /* ConfirmationInputs */ u8_t prov_salt[16]; /* Provisioning Salt */ #if defined(CONFIG_BLE_MESH_PB_ADV) u32_t id; /* Link ID */ u8_t tx_pdu_type; /* The previously transmitted Provisioning PDU type */ struct { u8_t id; /* Transaction ID */ u8_t prev_id; /* Previous Transaction ID */ u8_t seg; /* Bit-field of unreceived segments */ u8_t last_seg; /* Last segment (to check length) */ u8_t fcs; /* Expected FCS value */ struct net_buf_simple *buf; } rx; struct { /* Start timestamp of the transaction */ s64_t start; /* Transaction id*/ u8_t id; /* Pending outgoing buffer(s) */ struct net_buf *buf[3]; /* Retransmit timer */ struct k_delayed_work retransmit; } tx; #endif struct k_delayed_work prot_timer; }; struct prov_rx { u32_t link_id; u8_t xact_id; u8_t gpc; }; #define BUF_TIMEOUT K_MSEC(400) #if defined(CONFIG_BLE_MESH_FAST_PROV) #define RETRANSMIT_TIMEOUT K_MSEC(360) #define TRANSACTION_TIMEOUT K_SECONDS(3) #define PROTOCOL_TIMEOUT K_SECONDS(6) #else #define RETRANSMIT_TIMEOUT K_MSEC(500) #define TRANSACTION_TIMEOUT K_SECONDS(30) #define PROTOCOL_TIMEOUT K_SECONDS(60) #endif /* CONFIG_BLE_MESH_FAST_PROV */ #if defined(CONFIG_BLE_MESH_PB_GATT) #define PROV_BUF_HEADROOM 5 #else #define PROV_BUF_HEADROOM 0 NET_BUF_SIMPLE_DEFINE_STATIC(rx_buf, 65); #endif #define PROV_BUF(name, len) \ NET_BUF_SIMPLE_DEFINE(name, PROV_BUF_HEADROOM + len) static struct prov_link link; static const struct bt_mesh_prov *prov; #if defined(CONFIG_BLE_MESH_PB_ADV) static bt_mesh_mutex_t pb_buf_lock; static inline void bt_mesh_pb_buf_mutex_new(void) { if (!pb_buf_lock.mutex) { bt_mesh_mutex_create(&pb_buf_lock); } } #if CONFIG_BLE_MESH_DEINIT static inline void bt_mesh_pb_buf_mutex_free(void) { bt_mesh_mutex_free(&pb_buf_lock); } #endif /* CONFIG_BLE_MESH_DEINIT */ static inline void bt_mesh_pb_buf_lock(void) { bt_mesh_mutex_lock(&pb_buf_lock); } static inline void bt_mesh_pb_buf_unlock(void) { bt_mesh_mutex_unlock(&pb_buf_lock); } #endif /* CONFIG_BLE_MESH_PB_ADV */ static void reset_state(void) { k_delayed_work_cancel(&link.prot_timer); /* Disable Attention Timer if it was set */ if (link.conf_inputs[0]) { bt_mesh_attention(NULL, 0); } #if defined(CONFIG_BLE_MESH_PB_GATT) if (link.conn) { bt_mesh_conn_unref(link.conn); } #endif #if defined(CONFIG_BLE_MESH_PB_ADV) /* Clear everything except the retransmit and protocol timer * delayed work objects. */ (void)memset(&link, 0, offsetof(struct prov_link, tx.retransmit)); link.rx.prev_id = XACT_NVAL; #if defined(CONFIG_BLE_MESH_PB_GATT) link.rx.buf = bt_mesh_proxy_server_get_buf(); #else net_buf_simple_reset(&rx_buf); link.rx.buf = &rx_buf; #endif /* PB_GATT */ #else /* !PB_ADV */ /* Clear everything except the protocol timer (k_delayed_work) */ (void)memset(&link, 0, offsetof(struct prov_link, prot_timer)); #endif /* PB_ADV */ } #if defined(CONFIG_BLE_MESH_PB_ADV) static void buf_sent(int err, void *user_data) { if (!link.tx.buf[0]) { return; } k_delayed_work_submit(&link.tx.retransmit, RETRANSMIT_TIMEOUT); } static struct bt_mesh_send_cb buf_sent_cb = { .end = buf_sent, }; static void free_segments(void) { int i; bt_mesh_pb_buf_lock(); for (i = 0; i < ARRAY_SIZE(link.tx.buf); i++) { struct net_buf *buf = link.tx.buf[i]; if (!buf) { break; } link.tx.buf[i] = NULL; bt_mesh_adv_buf_ref_debug(__func__, buf, 3U, BLE_MESH_BUF_REF_SMALL); /* Mark as canceled */ BLE_MESH_ADV(buf)->busy = 0U; net_buf_unref(buf); } bt_mesh_pb_buf_unlock(); } static void prov_clear_tx(void) { BT_DBG("%s", __func__); k_delayed_work_cancel(&link.tx.retransmit); free_segments(); } static void reset_adv_link(void) { prov_clear_tx(); if (prov->link_close) { prov->link_close(BLE_MESH_PROV_ADV); } #if defined(CONFIG_BLE_MESH_USE_DUPLICATE_SCAN) /* Remove the link id from exceptional list */ bt_mesh_update_exceptional_list(BLE_MESH_EXCEP_LIST_REMOVE, BLE_MESH_EXCEP_INFO_MESH_LINK_ID, &link.id); #endif reset_state(); } static struct net_buf *adv_buf_create(void) { struct net_buf *buf = NULL; buf = bt_mesh_adv_create(BLE_MESH_ADV_PROV, PROV_XMIT, BUF_TIMEOUT); if (!buf) { BT_ERR("Out of provisioning buffers"); return NULL; } return buf; } static u8_t pending_ack = XACT_NVAL; static void ack_complete(u16_t duration, int err, void *user_data) { BT_DBG("xact %u complete", (u8_t)pending_ack); pending_ack = XACT_NVAL; } static void gen_prov_ack_send(u8_t xact_id) { static const struct bt_mesh_send_cb cb = { .start = ack_complete, }; const struct bt_mesh_send_cb *complete = NULL; struct net_buf *buf = NULL; BT_DBG("xact_id %u", xact_id); if (pending_ack == xact_id) { BT_DBG("Not sending duplicate ack"); return; } buf = adv_buf_create(); if (!buf) { return; } if (pending_ack == XACT_NVAL) { pending_ack = xact_id; complete = &cb; } else { complete = NULL; } net_buf_add_be32(buf, link.id); net_buf_add_u8(buf, xact_id); net_buf_add_u8(buf, GPC_ACK); bt_mesh_adv_send(buf, complete, NULL); net_buf_unref(buf); } static void send_reliable(void) { int i; link.tx.start = k_uptime_get(); for (i = 0; i < ARRAY_SIZE(link.tx.buf); i++) { struct net_buf *buf = link.tx.buf[i]; if (!buf) { break; } if (i + 1 < ARRAY_SIZE(link.tx.buf) && link.tx.buf[i + 1]) { bt_mesh_adv_send(buf, NULL, NULL); } else { bt_mesh_adv_send(buf, &buf_sent_cb, NULL); } } } static int bearer_ctl_send(u8_t op, void *data, u8_t data_len) { struct net_buf *buf = NULL; BT_DBG("op 0x%02x data_len %u", op, data_len); prov_clear_tx(); buf = adv_buf_create(); if (!buf) { return -ENOBUFS; } net_buf_add_be32(buf, link.id); /* Transaction ID, always 0 for Bearer messages */ net_buf_add_u8(buf, 0x00); net_buf_add_u8(buf, GPC_CTL(op)); net_buf_add_mem(buf, data, data_len); link.tx.buf[0] = buf; send_reliable(); return 0; } static u8_t last_seg(u8_t len) { if (len <= START_PAYLOAD_MAX) { return 0; } len -= START_PAYLOAD_MAX; return 1 + (len / CONT_PAYLOAD_MAX); } static inline u8_t next_transaction_id(void) { if (link.tx.id != 0U && link.tx.id != 0xFF) { return ++link.tx.id; } link.tx.id = 0x80; return link.tx.id; } static int prov_send_adv(struct net_buf_simple *msg) { struct net_buf *start = NULL, *buf = NULL; u8_t seg_len = 0U, seg_id = 0U; u8_t xact_id = 0U; s32_t timeout = PROTOCOL_TIMEOUT; BT_DBG("len %u: %s", msg->len, bt_hex(msg->data, msg->len)); prov_clear_tx(); start = adv_buf_create(); if (!start) { return -ENOBUFS; } xact_id = next_transaction_id(); net_buf_add_be32(start, link.id); net_buf_add_u8(start, xact_id); net_buf_add_u8(start, GPC_START(last_seg(msg->len))); net_buf_add_be16(start, msg->len); net_buf_add_u8(start, bt_mesh_fcs_calc(msg->data, msg->len)); link.tx.buf[0] = start; /* Changed by Espressif, get message type */ link.tx_pdu_type = msg->data[0]; seg_len = MIN(msg->len, START_PAYLOAD_MAX); BT_DBG("seg 0 len %u: %s", seg_len, bt_hex(msg->data, seg_len)); net_buf_add_mem(start, msg->data, seg_len); net_buf_simple_pull(msg, seg_len); buf = start; for (seg_id = 1U; msg->len > 0; seg_id++) { if (seg_id >= ARRAY_SIZE(link.tx.buf)) { BT_ERR("Too big message (seg_id %d)", seg_id); free_segments(); return -E2BIG; } buf = adv_buf_create(); if (!buf) { free_segments(); return -ENOBUFS; } link.tx.buf[seg_id] = buf; seg_len = MIN(msg->len, CONT_PAYLOAD_MAX); BT_DBG("seg_id %u len %u: %s", seg_id, seg_len, bt_hex(msg->data, seg_len)); net_buf_add_be32(buf, link.id); net_buf_add_u8(buf, xact_id); net_buf_add_u8(buf, GPC_CONT(seg_id)); net_buf_add_mem(buf, msg->data, seg_len); net_buf_simple_pull(msg, seg_len); } send_reliable(); /* Changed by Espressif, add provisioning timeout timer operations. * When sending a provisioning PDU successfully, restart the 60s timer. */ #if defined(CONFIG_BLE_MESH_FAST_PROV) if (link.tx_pdu_type >= PROV_COMPLETE) { timeout = K_SECONDS(60); } #endif k_delayed_work_submit(&link.prot_timer, timeout); return 0; } #endif /* CONFIG_BLE_MESH_PB_ADV */ #if defined(CONFIG_BLE_MESH_PB_GATT) static int prov_send_gatt(struct net_buf_simple *msg) { int err = 0; if (!link.conn) { return -ENOTCONN; } /* Changed by Espressif, add provisioning timeout timer operations. * When sending a provisioning PDU successfully, restart the 60s timer. */ err = bt_mesh_proxy_server_send(link.conn, BLE_MESH_PROXY_PROV, msg); if (err) { BT_ERR("Failed to send provisioning PDU"); return err; } k_delayed_work_submit(&link.prot_timer, PROTOCOL_TIMEOUT); return 0; } #endif /* CONFIG_BLE_MESH_PB_GATT */ static inline int prov_send(struct net_buf_simple *buf) { #if defined(CONFIG_BLE_MESH_PB_GATT) if (link.conn) { return prov_send_gatt(buf); } #endif #if defined(CONFIG_BLE_MESH_PB_ADV) return prov_send_adv(buf); #else return 0; #endif } static void prov_buf_init(struct net_buf_simple *buf, u8_t type) { net_buf_simple_reserve(buf, PROV_BUF_HEADROOM); net_buf_simple_add_u8(buf, type); } static void prov_send_fail_msg(u8_t err) { PROV_BUF(buf, 2); prov_buf_init(&buf, PROV_FAILED); net_buf_simple_add_u8(&buf, err); if (prov_send(&buf)) { BT_ERR("Failed to send Provisioning Failed message"); } bt_mesh_atomic_set_bit(link.flags, LINK_INVALID); } static void prov_invite(const u8_t *data) { PROV_BUF(buf, 12); BT_DBG("Attention Duration: %u seconds", data[0]); if (data[0]) { bt_mesh_attention(NULL, data[0]); } link.conf_inputs[0] = data[0]; prov_buf_init(&buf, PROV_CAPABILITIES); /* Number of Elements supported */ net_buf_simple_add_u8(&buf, bt_mesh_elem_count()); /* Supported algorithms - FIPS P-256 Eliptic Curve */ net_buf_simple_add_be16(&buf, BIT(PROV_ALG_P256)); /* Public Key Type */ net_buf_simple_add_u8(&buf, prov->oob_pub_key); /* Static OOB Type */ net_buf_simple_add_u8(&buf, prov->static_val ? BIT(0) : 0x00); /* Output OOB Size */ net_buf_simple_add_u8(&buf, prov->output_size); /* Output OOB Action */ net_buf_simple_add_be16(&buf, prov->output_actions); /* Input OOB Size */ net_buf_simple_add_u8(&buf, prov->input_size); /* Input OOB Action */ net_buf_simple_add_be16(&buf, prov->input_actions); memcpy(&link.conf_inputs[1], &buf.data[1], 11); if (prov_send(&buf)) { BT_ERR("Failed to send capabilities"); return; } link.expect = PROV_START; } static void prov_capabilities(const u8_t *data) { u16_t algorithms = 0U, output_action = 0U, input_action = 0U; BT_DBG("Elements: %u", data[0]); algorithms = sys_get_be16(&data[1]); BT_DBG("Algorithms: %u", algorithms); BT_DBG("Public Key Type: 0x%02x", data[3]); BT_DBG("Static OOB Type: 0x%02x", data[4]); BT_DBG("Output OOB Size: %u", data[5]); output_action = sys_get_be16(&data[6]); BT_DBG("Output OOB Action: 0x%04x", output_action); BT_DBG("Input OOB Size: %u", data[8]); input_action = sys_get_be16(&data[9]); BT_DBG("Input OOB Action: 0x%04x", input_action); ((void) algorithms); ((void) output_action); ((void) input_action); } static bt_mesh_output_action_t output_action(u8_t action) { switch (action) { case OUTPUT_OOB_BLINK: return BLE_MESH_BLINK; case OUTPUT_OOB_BEEP: return BLE_MESH_BEEP; case OUTPUT_OOB_VIBRATE: return BLE_MESH_VIBRATE; case OUTPUT_OOB_NUMBER: return BLE_MESH_DISPLAY_NUMBER; case OUTPUT_OOB_STRING: return BLE_MESH_DISPLAY_STRING; default: return BLE_MESH_NO_OUTPUT; } } static bt_mesh_input_action_t input_action(u8_t action) { switch (action) { case INPUT_OOB_PUSH: return BLE_MESH_PUSH; case INPUT_OOB_TWIST: return BLE_MESH_TWIST; case INPUT_OOB_NUMBER: return BLE_MESH_ENTER_NUMBER; case INPUT_OOB_STRING: return BLE_MESH_ENTER_STRING; default: return BLE_MESH_NO_INPUT; } } static int prov_auth(u8_t method, u8_t action, u8_t size) { bt_mesh_output_action_t output = 0U; bt_mesh_input_action_t input = 0U; switch (method) { case AUTH_METHOD_NO_OOB: if (action || size) { return -EINVAL; } (void)memset(link.auth, 0, sizeof(link.auth)); return 0; case AUTH_METHOD_STATIC: if (action || size) { return -EINVAL; } memcpy(link.auth + 16 - prov->static_val_len, prov->static_val, prov->static_val_len); (void)memset(link.auth, 0, sizeof(link.auth) - prov->static_val_len); return 0; case AUTH_METHOD_OUTPUT: output = output_action(action); if (!output) { return -EINVAL; } if (!(prov->output_actions & output)) { return -EINVAL; } if (size > prov->output_size) { return -EINVAL; } if (output == BLE_MESH_DISPLAY_STRING) { unsigned char str[9] = {'\0'}; u8_t i = 0U; bt_mesh_rand(str, size); /* Normalize to '0' .. '9' & 'A' .. 'Z' */ for (i = 0U; i < size; i++) { str[i] %= 36; if (str[i] < 10) { str[i] += '0'; } else { str[i] += 'A' - 10; } } str[size] = '\0'; memcpy(link.auth, str, size); (void)memset(link.auth + size, 0, sizeof(link.auth) - size); return prov->output_string((char *)str); } else { u32_t div[8] = { 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000 }; u32_t num = 0U; bt_mesh_rand(&num, sizeof(num)); if (output == BLE_MESH_BLINK || output == BLE_MESH_BEEP || output == BLE_MESH_VIBRATE) { /** NOTE: According to the Bluetooth Mesh Profile Specification * Section 5.4.2.4, blink, beep and vibrate should be a random * integer between 0 and 10^size. */ num = (num % (div[size - 1] - 1)) + 1; } else { num %= div[size - 1]; } sys_put_be32(num, &link.auth[12]); (void)memset(link.auth, 0, 12); return prov->output_number(output, num); } case AUTH_METHOD_INPUT: input = input_action(action); if (!input) { return -EINVAL; } if (!(prov->input_actions & input)) { return -EINVAL; } if (size > prov->input_size) { return -EINVAL; } if (input == BLE_MESH_ENTER_STRING) { bt_mesh_atomic_set_bit(link.flags, WAIT_STRING); } else { bt_mesh_atomic_set_bit(link.flags, WAIT_NUMBER); } return prov->input(input, size); default: return -EINVAL; } } static void prov_start(const u8_t *data) { BT_INFO("Algorithm: 0x%02x", data[0]); BT_INFO("Public Key: 0x%02x", data[1]); BT_INFO("Auth Method: 0x%02x", data[2]); BT_INFO("Auth Action: 0x%02x", data[3]); BT_INFO("Auth Size: 0x%02x", data[4]); if (data[0] != PROV_ALG_P256) { BT_ERR("Unknown algorithm 0x%02x", data[0]); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } if (data[1] != prov->oob_pub_key) { BT_ERR("Invalid public key type: 0x%02x", data[1]); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } memcpy(&link.conf_inputs[12], data, 5); link.expect = PROV_PUB_KEY; /* If Provisioning Start PDU indicates that provisioner chooses * OOB public key, then callback to the application layer to let * users input public & private key pair. */ link.oob_pk_flag = data[1] ? true : false; if (link.oob_pk_flag) { prov->oob_pub_key_cb(); } if (prov_auth(data[2], data[3], data[4]) < 0) { BT_ERR("Invalid authentication method: 0x%02x; " "action: 0x%02x; size: 0x%02x", data[2], data[3], data[4]); prov_send_fail_msg(PROV_ERR_NVAL_FMT); } } static void send_confirm(void) { PROV_BUF(cfm, 17); BT_DBG("ConfInputs[0] %s", bt_hex(link.conf_inputs, 64)); BT_DBG("ConfInputs[64] %s", bt_hex(&link.conf_inputs[64], 64)); BT_DBG("ConfInputs[128] %s", bt_hex(&link.conf_inputs[128], 17)); if (bt_mesh_prov_conf_salt(link.conf_inputs, link.conf_salt)) { BT_ERR("Unable to generate confirmation salt"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("ConfirmationSalt: %s", bt_hex(link.conf_salt, 16)); if (bt_mesh_prov_conf_key(link.dhkey, link.conf_salt, link.conf_key)) { BT_ERR("Unable to generate confirmation key"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("ConfirmationKey: %s", bt_hex(link.conf_key, 16)); if (bt_mesh_rand(link.rand, 16)) { BT_ERR("Unable to generate random number"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("LocalRandom: %s", bt_hex(link.rand, 16)); prov_buf_init(&cfm, PROV_CONFIRM); if (bt_mesh_prov_conf(link.conf_key, link.rand, link.auth, net_buf_simple_add(&cfm, 16))) { BT_ERR("Unable to generate confirmation value"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } if (prov_send(&cfm)) { BT_ERR("Unable to send Provisioning Confirm"); return; } link.expect = PROV_RANDOM; } static void send_input_complete(void) { PROV_BUF(buf, 1); prov_buf_init(&buf, PROV_INPUT_COMPLETE); if (prov_send(&buf)) { BT_ERR("Failed to send Provisioning Input Complete"); } } int bt_mesh_input_number(u32_t num) { BT_INFO("%u", num); if (!bt_mesh_atomic_test_and_clear_bit(link.flags, WAIT_NUMBER)) { return -EINVAL; } sys_put_be32(num, &link.auth[12]); send_input_complete(); if (!bt_mesh_atomic_test_bit(link.flags, HAVE_DHKEY)) { return 0; } if (bt_mesh_atomic_test_and_clear_bit(link.flags, SEND_CONFIRM)) { send_confirm(); } return 0; } int bt_mesh_input_string(const char *str) { BT_INFO("%s", str); if (!bt_mesh_atomic_test_and_clear_bit(link.flags, WAIT_STRING)) { return -EINVAL; } (void)memcpy(link.auth, str, prov->input_size); send_input_complete(); if (!bt_mesh_atomic_test_bit(link.flags, HAVE_DHKEY)) { return 0; } if (bt_mesh_atomic_test_and_clear_bit(link.flags, SEND_CONFIRM)) { send_confirm(); } return 0; } static void prov_dh_key_cb(const u8_t key[32], const u8_t idx) { BT_DBG("%p", key); if (!key) { BT_ERR("DHKey generation failed"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } sys_memcpy_swap(link.dhkey, key, 32); BT_DBG("DHkey: %s", bt_hex(link.dhkey, 32)); bt_mesh_atomic_set_bit(link.flags, HAVE_DHKEY); if (bt_mesh_atomic_test_bit(link.flags, WAIT_NUMBER) || bt_mesh_atomic_test_bit(link.flags, WAIT_STRING)) { return; } if (bt_mesh_atomic_test_and_clear_bit(link.flags, SEND_CONFIRM)) { send_confirm(); } } static void send_pub_key(void) { PROV_BUF(buf, 65); const u8_t *key = NULL; /* Copy remote key in little-endian for bt_mesh_dh_key_gen(). * X and Y halves are swapped independently. Use response * buffer as a temporary storage location. The validating of * the remote public key is finished when it is received. */ sys_memcpy_swap(buf.data, &link.conf_inputs[17], 32); sys_memcpy_swap(&buf.data[32], &link.conf_inputs[49], 32); if (bt_mesh_dh_key_gen(buf.data, prov_dh_key_cb, 0)) { BT_ERR("Unable to generate DHKey"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } key = bt_mesh_pub_key_get(); if (!key) { BT_ERR("No public key available"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("Local Public Key: %s", bt_hex(key, 64)); prov_buf_init(&buf, PROV_PUB_KEY); /* Swap X and Y halves independently to big-endian */ sys_memcpy_swap(net_buf_simple_add(&buf, 32), key, 32); sys_memcpy_swap(net_buf_simple_add(&buf, 32), &key[32], 32); memcpy(&link.conf_inputs[81], &buf.data[1], 64); if (prov_send(&buf)) { BT_ERR("Failed to send Public Key"); return; } link.expect = PROV_CONFIRM; } static int bt_mesh_calc_dh_key(void) { NET_BUF_SIMPLE_DEFINE(buf, 64); /* Copy remote key in little-endian for bt_mesh_dh_key_gen(). * X and Y halves are swapped independently. */ net_buf_simple_reset(&buf); sys_memcpy_swap(buf.data, &link.conf_inputs[17], 32); sys_memcpy_swap(&buf.data[32], &link.conf_inputs[49], 32); if (bt_mesh_dh_key_gen(buf.data, prov_dh_key_cb, 0)) { BT_ERR("Unable to generate DHKey"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return -EIO; } return 0; } int bt_mesh_set_oob_pub_key(const u8_t pub_key_x[32], const u8_t pub_key_y[32], const u8_t pri_key[32]) { if (!pub_key_x || !pub_key_y || !pri_key) { BT_ERR("%s, Invalid parameter", __func__); return -EINVAL; } /* Copy OOB public key in big-endian to Provisioning ConfirmationInputs, * X and Y halves are swapped independently. * And set input private key to mesh_bearer_adapt.c */ sys_memcpy_swap(&link.conf_inputs[81], pub_key_x, 32); sys_memcpy_swap(&link.conf_inputs[81] + 32, pub_key_y, 32); bt_mesh_set_private_key(pri_key); bt_mesh_atomic_set_bit(link.flags, OOB_PUB_KEY); /* If remote public key is not got, just return */ if (!bt_mesh_atomic_test_bit(link.flags, REMOTE_PUB_KEY)) { return 0; } return bt_mesh_calc_dh_key(); } static void prov_pub_key(const u8_t *data) { BT_DBG("Remote Public Key: %s", bt_hex(data, 64)); /* BLE Mesh BQB test case MESH/NODE/PROV/UPD/BI-13-C needs to * check the public key using the following rules: * (1) X > 0, Y > 0 * (2) X > 0, Y = 0 * (3) X = 0, Y = 0 */ if (!bt_mesh_check_public_key(data)) { BT_ERR("Invalid public key"); prov_send_fail_msg(PROV_ERR_UNEXP_PDU); return; } memcpy(&link.conf_inputs[17], data, 64); bt_mesh_atomic_set_bit(link.flags, REMOTE_PUB_KEY); if (!bt_mesh_pub_key_get()) { /* Clear retransmit timer */ #if defined(CONFIG_BLE_MESH_PB_ADV) prov_clear_tx(); #endif BT_WARN("Waiting for a local public key"); return; } if (!link.oob_pk_flag) { send_pub_key(); } else { link.expect = PROV_CONFIRM; } } static void prov_input_complete(const u8_t *data) { BT_DBG("%s", __func__); } static void prov_confirm(const u8_t *data) { BT_DBG("Remote Confirm: %s", bt_hex(data, 16)); memcpy(link.conf, data, 16); if (!bt_mesh_atomic_test_bit(link.flags, HAVE_DHKEY)) { #if defined(CONFIG_BLE_MESH_PB_ADV) prov_clear_tx(); #endif bt_mesh_atomic_set_bit(link.flags, SEND_CONFIRM); /* If using OOB public key and it has already got, calculates dhkey */ if (link.oob_pk_flag && bt_mesh_atomic_test_bit(link.flags, OOB_PUB_KEY)) { bt_mesh_calc_dh_key(); } } else { send_confirm(); } } static void prov_random(const u8_t *data) { PROV_BUF(rnd, 17); u8_t conf_verify[16] = {0}; BT_DBG("Remote Random: %s", bt_hex(data, 16)); if (bt_mesh_prov_conf(link.conf_key, data, link.auth, conf_verify)) { BT_ERR("Unable to calculate confirmation verification"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } if (memcmp(conf_verify, link.conf, 16)) { BT_ERR("Invalid confirmation value"); BT_DBG("Received: %s", bt_hex(link.conf, 16)); BT_DBG("Calculated: %s", bt_hex(conf_verify, 16)); prov_send_fail_msg(PROV_ERR_CFM_FAILED); return; } prov_buf_init(&rnd, PROV_RANDOM); net_buf_simple_add_mem(&rnd, link.rand, 16); if (prov_send(&rnd)) { BT_ERR("Failed to send Provisioning Random"); return; } if (bt_mesh_prov_salt(link.conf_salt, data, link.rand, link.prov_salt)) { BT_ERR("Failed to generate provisioning salt"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("ProvisioningSalt: %s", bt_hex(link.prov_salt, 16)); link.expect = PROV_DATA; } static inline bool is_pb_gatt(void) { #if defined(CONFIG_BLE_MESH_PB_GATT) return !!link.conn; #else return false; #endif } static void prov_data(const u8_t *data) { PROV_BUF(msg, 1); u8_t session_key[16] = {0}; u8_t nonce[13] = {0}; u8_t dev_key[16] = {0}; u8_t pdu[25] = {0}; u8_t flags = 0U; u32_t iv_index = 0U; u16_t addr = 0U; u16_t net_idx = 0U; int err = 0; bool identity_enable = false; BT_DBG("%s", __func__); err = bt_mesh_session_key(link.dhkey, link.prov_salt, session_key); if (err) { BT_ERR("Unable to generate session key"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("SessionKey: %s", bt_hex(session_key, 16)); err = bt_mesh_prov_nonce(link.dhkey, link.prov_salt, nonce); if (err) { BT_ERR("Unable to generate session nonce"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("Nonce: %s", bt_hex(nonce, 13)); err = bt_mesh_prov_decrypt(session_key, nonce, data, pdu); if (err) { BT_ERR("Unable to decrypt provisioning data"); prov_send_fail_msg(PROV_ERR_DECRYPT); return; } err = bt_mesh_dev_key(link.dhkey, link.prov_salt, dev_key); if (err) { BT_ERR("Unable to generate device key"); prov_send_fail_msg(PROV_ERR_UNEXP_ERR); return; } BT_DBG("DevKey: %s", bt_hex(dev_key, 16)); net_idx = sys_get_be16(&pdu[16]); flags = pdu[18]; iv_index = sys_get_be32(&pdu[19]); addr = sys_get_be16(&pdu[23]); BT_DBG("net_idx %u iv_index 0x%08x, addr 0x%04x", net_idx, iv_index, addr); prov_buf_init(&msg, PROV_COMPLETE); if (prov_send(&msg)) { BT_ERR("Failed to send Provisioning Complete"); return; } /* Ignore any further PDUs on this link */ link.expect = 0U; /* Store info, since bt_mesh_provision() will end up clearing it */ if (IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_SERVER)) { identity_enable = is_pb_gatt(); } else { identity_enable = false; } err = bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key); if (err) { BT_ERR("Failed to provision (err %d)", err); return; } /* After PB-GATT provisioning we should start advertising * using Node Identity. */ if (IS_ENABLED(CONFIG_BLE_MESH_GATT_PROXY_SERVER) && identity_enable) { bt_mesh_proxy_identity_enable(); } } static void prov_complete(const u8_t *data) { BT_DBG("%s", __func__); } static void prov_failed(const u8_t *data) { BT_WARN("Error: 0x%02x", data[0]); } static const struct { void (*func)(const u8_t *data); u16_t len; } prov_handlers[] = { { prov_invite, 1 }, { prov_capabilities, 11 }, { prov_start, 5, }, { prov_pub_key, 64 }, { prov_input_complete, 0 }, { prov_confirm, 16 }, { prov_random, 16 }, { prov_data, 33 }, { prov_complete, 0 }, { prov_failed, 1 }, }; #if defined(CONFIG_BLE_MESH_PB_ADV) static void prov_retransmit(struct k_work *work) { s64_t timeout = TRANSACTION_TIMEOUT; int i; BT_DBG("%s", __func__); if (!bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE)) { BT_WARN("Link not active"); return; } #if defined(CONFIG_BLE_MESH_FAST_PROV) /* When Provisioning Failed PDU is sent, 3s may be used here. */ if (link.tx_pdu_type >= PROV_COMPLETE) { timeout = K_SECONDS(30); } #endif if (k_uptime_get() - link.tx.start > timeout) { BT_WARN("Node timeout, giving up transaction"); reset_adv_link(); return; } bt_mesh_pb_buf_lock(); for (i = 0; i < ARRAY_SIZE(link.tx.buf); i++) { struct net_buf *buf = link.tx.buf[i]; if (!buf) { break; } if (BLE_MESH_ADV(buf)->busy) { continue; } BT_DBG("%u bytes: %s", buf->len, bt_hex(buf->data, buf->len)); if (i + 1 < ARRAY_SIZE(link.tx.buf) && link.tx.buf[i + 1]) { bt_mesh_adv_send(buf, NULL, NULL); } else { bt_mesh_adv_send(buf, &buf_sent_cb, NULL); } } bt_mesh_pb_buf_unlock(); } static void link_open(struct prov_rx *rx, struct net_buf_simple *buf) { BT_DBG("len %u", buf->len); if (buf->len < 16) { BT_ERR("Too short bearer open message (len %u)", buf->len); return; } if (bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE)) { /* Send another link ack if the provisioner missed the last */ if (link.id == rx->link_id && link.expect == PROV_INVITE) { BT_DBG("Resending link ack"); bearer_ctl_send(LINK_ACK, NULL, 0); } else { BT_INFO("Ignoring bearer open: link already active"); } return; } if (memcmp(buf->data, prov->uuid, 16)) { BT_DBG("Bearer open message not for us"); return; } if (prov->link_open) { prov->link_open(BLE_MESH_PROV_ADV); } link.id = rx->link_id; bt_mesh_atomic_set_bit(link.flags, LINK_ACTIVE); net_buf_simple_reset(link.rx.buf); #if defined(CONFIG_BLE_MESH_USE_DUPLICATE_SCAN) /* Add the link id into exceptional list */ bt_mesh_update_exceptional_list(BLE_MESH_EXCEP_LIST_ADD, BLE_MESH_EXCEP_INFO_MESH_LINK_ID, &link.id); #endif bearer_ctl_send(LINK_ACK, NULL, 0); link.expect = PROV_INVITE; } static void link_ack(struct prov_rx *rx, struct net_buf_simple *buf) { BT_DBG("len %u", buf->len); } static void link_close(struct prov_rx *rx, struct net_buf_simple *buf) { BT_DBG("len %u", buf->len); reset_adv_link(); } static void gen_prov_ctl(struct prov_rx *rx, struct net_buf_simple *buf) { BT_DBG("op 0x%02x len %u", BEARER_CTL(rx->gpc), buf->len); switch (BEARER_CTL(rx->gpc)) { case LINK_OPEN: link_open(rx, buf); break; case LINK_ACK: if (!bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE)) { return; } link_ack(rx, buf); break; case LINK_CLOSE: if (!bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE)) { return; } link_close(rx, buf); break; default: BT_ERR("Unknown bearer opcode: 0x%02x", BEARER_CTL(rx->gpc)); return; } } static void prov_msg_recv(void) { u8_t type = link.rx.buf->data[0]; BT_DBG("type 0x%02x len %u", type, link.rx.buf->len); if (!bt_mesh_fcs_check(link.rx.buf, link.rx.fcs)) { BT_ERR("Incorrect FCS"); return; } gen_prov_ack_send(link.rx.id); link.rx.prev_id = link.rx.id; link.rx.id = 0U; if (bt_mesh_atomic_test_bit(link.flags, LINK_INVALID)) { BT_WARN("Unexpected msg 0x%02x on invalidated link", type); prov_send_fail_msg(PROV_ERR_UNEXP_PDU); return; } if (type != PROV_FAILED && type != link.expect) { BT_WARN("Unexpected msg 0x%02x != 0x%02x", type, link.expect); prov_send_fail_msg(PROV_ERR_UNEXP_PDU); return; } if (type >= ARRAY_SIZE(prov_handlers)) { BT_ERR("Unknown provisioning PDU type 0x%02x", type); prov_send_fail_msg(PROV_ERR_NVAL_PDU); return; } if (1 + prov_handlers[type].len != link.rx.buf->len) { BT_ERR("Invalid length %u for type 0x%02x", link.rx.buf->len, type); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } /* Changed by Espressif, add provisioning timeout timer operations. * When received a provisioning PDU, restart the 60s timer. */ k_delayed_work_submit(&link.prot_timer, PROTOCOL_TIMEOUT); prov_handlers[type].func(&link.rx.buf->data[1]); } static void gen_prov_cont(struct prov_rx *rx, struct net_buf_simple *buf) { u8_t seg = CONT_SEG_INDEX(rx->gpc); BT_DBG("len %u, seg_index %u", buf->len, seg); if (!link.rx.seg && link.rx.prev_id == rx->xact_id) { BT_INFO("Resending ack"); gen_prov_ack_send(rx->xact_id); return; } if (rx->xact_id != link.rx.id) { BT_WARN("Data for unknown transaction (%u != %u)", rx->xact_id, link.rx.id); return; } if (seg > link.rx.last_seg) { BT_ERR("Invalid segment index %u", seg); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } else if (seg == link.rx.last_seg) { u8_t expect_len = 0U; expect_len = (link.rx.buf->len - 20U - ((link.rx.last_seg - 1) * 23U)); if (expect_len != buf->len) { BT_ERR("Incorrect last seg len: %u != %u", expect_len, buf->len); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } } if (!(link.rx.seg & BIT(seg))) { BT_INFO("Ignoring already received segment"); return; } memcpy(XACT_SEG_DATA(seg), buf->data, buf->len); XACT_SEG_RECV(seg); if (!link.rx.seg) { prov_msg_recv(); } } static void gen_prov_ack(struct prov_rx *rx, struct net_buf_simple *buf) { BT_DBG("len %u", buf->len); if (!link.tx.buf[0]) { return; } if (rx->xact_id == link.tx.id) { prov_clear_tx(); } } static void gen_prov_start(struct prov_rx *rx, struct net_buf_simple *buf) { if (link.rx.seg) { BT_INFO("Got Start while there are unreceived segments"); return; } if (link.rx.prev_id == rx->xact_id) { BT_INFO("Resending ack"); gen_prov_ack_send(rx->xact_id); return; } link.rx.buf->len = net_buf_simple_pull_be16(buf); link.rx.id = rx->xact_id; link.rx.fcs = net_buf_simple_pull_u8(buf); BT_DBG("len %u last_seg %u total_len %u fcs 0x%02x", buf->len, START_LAST_SEG(rx->gpc), link.rx.buf->len, link.rx.fcs); if (link.rx.buf->len < 1) { BT_ERR("Ignoring zero-length provisioning PDU"); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } if (link.rx.buf->len > link.rx.buf->size) { BT_ERR("Too large provisioning PDU (%u bytes)", link.rx.buf->len); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } if (START_LAST_SEG(rx->gpc) > 0 && link.rx.buf->len <= 20U) { BT_ERR("Too small total length for multi-segment PDU"); prov_send_fail_msg(PROV_ERR_NVAL_FMT); return; } link.rx.seg = (1 << (START_LAST_SEG(rx->gpc) + 1)) - 1; link.rx.last_seg = START_LAST_SEG(rx->gpc); memcpy(link.rx.buf->data, buf->data, buf->len); XACT_SEG_RECV(0); if (!link.rx.seg) { prov_msg_recv(); } } static const struct { void (*func)(struct prov_rx *rx, struct net_buf_simple *buf); bool require_link; u8_t min_len; } gen_prov[] = { { gen_prov_start, true, 3 }, { gen_prov_ack, true, 0 }, { gen_prov_cont, true, 0 }, { gen_prov_ctl, false, 0 }, }; static void gen_prov_recv(struct prov_rx *rx, struct net_buf_simple *buf) { if (buf->len < gen_prov[GPCF(rx->gpc)].min_len) { BT_ERR("Too short GPC message type %u", GPCF(rx->gpc)); return; } if (!bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE) && gen_prov[GPCF(rx->gpc)].require_link) { BT_DBG("Ignoring message that requires active link"); return; } gen_prov[GPCF(rx->gpc)].func(rx, buf); } void bt_mesh_pb_adv_recv(struct net_buf_simple *buf) { struct prov_rx rx = {0}; if (!bt_prov_active() && bt_mesh_is_provisioned()) { BT_DBG("Ignoring provisioning PDU - already provisioned"); return; } if (buf->len < 6) { BT_WARN("Too short provisioning packet (len %u)", buf->len); return; } rx.link_id = net_buf_simple_pull_be32(buf); rx.xact_id = net_buf_simple_pull_u8(buf); rx.gpc = net_buf_simple_pull_u8(buf); BT_DBG("link_id 0x%08x xact_id %u", rx.link_id, rx.xact_id); if (bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE) && link.id != rx.link_id) { BT_DBG("Ignoring mesh beacon for unknown link"); return; } gen_prov_recv(&rx, buf); } #endif /* CONFIG_BLE_MESH_PB_ADV */ #if defined(CONFIG_BLE_MESH_PB_GATT) int bt_mesh_pb_gatt_recv(struct bt_mesh_conn *conn, struct net_buf_simple *buf) { u8_t type = 0U; BT_DBG("%u bytes: %s", buf->len, bt_hex(buf->data, buf->len)); if (link.conn != conn) { BT_WARN("Data for unexpected connection"); return -ENOTCONN; } if (buf->len < 1) { BT_WARN("Too short provisioning packet (len %u)", buf->len); return -EINVAL; } type = net_buf_simple_pull_u8(buf); if (type != PROV_FAILED && type != link.expect) { BT_WARN("Unexpected msg 0x%02x != 0x%02x", type, link.expect); prov_send_fail_msg(PROV_ERR_UNEXP_PDU); return -EINVAL; } if (type >= ARRAY_SIZE(prov_handlers)) { BT_ERR("Unknown provisioning PDU type 0x%02x", type); return -EINVAL; } if (prov_handlers[type].len != buf->len) { BT_ERR("Invalid length %u for type 0x%02x", buf->len, type); return -EINVAL; } /* Changed by Espressif, add provisioning timeout timer operations. * When received a provisioning PDU, restart the 60s timer. */ k_delayed_work_submit(&link.prot_timer, PROTOCOL_TIMEOUT); prov_handlers[type].func(buf->data); return 0; } int bt_mesh_pb_gatt_open(struct bt_mesh_conn *conn) { BT_DBG("conn %p", conn); if (bt_mesh_atomic_test_and_set_bit(link.flags, LINK_ACTIVE)) { return -EBUSY; } link.conn = bt_mesh_conn_ref(conn); link.expect = PROV_INVITE; if (prov->link_open) { prov->link_open(BLE_MESH_PROV_GATT); } return 0; } int bt_mesh_pb_gatt_close(struct bt_mesh_conn *conn) { BT_DBG("conn %p", conn); if (link.conn != conn) { BT_ERR("Not connected"); return -ENOTCONN; } if (prov->link_close) { prov->link_close(BLE_MESH_PROV_GATT); } reset_state(); return 0; } #endif /* CONFIG_BLE_MESH_PB_GATT */ const struct bt_mesh_prov *bt_mesh_prov_get(void) { return prov; } bool bt_prov_active(void) { return bt_mesh_atomic_test_bit(link.flags, LINK_ACTIVE); } static void protocol_timeout(struct k_work *work) { BT_WARN("Protocol timeout"); #if defined(CONFIG_BLE_MESH_PB_GATT) if (link.conn) { bt_mesh_pb_gatt_close(link.conn); return; } #endif #if defined(CONFIG_BLE_MESH_PB_ADV) u8_t reason = CLOSE_REASON_TIMEOUT; link.rx.seg = 0U; bearer_ctl_send(LINK_CLOSE, &reason, sizeof(reason)); reset_state(); #endif } int bt_mesh_prov_init(const struct bt_mesh_prov *prov_info) { const u8_t *key = NULL; if (!prov_info) { BT_ERR("No provisioning context provided"); return -EINVAL; } if (prov_info->static_val_len > BLE_MESH_PROV_STATIC_OOB_MAX_LEN || prov_info->output_size > BLE_MESH_PROV_OUTPUT_OOB_MAX_LEN || prov_info->input_size > BLE_MESH_PROV_INPUT_OOB_MAX_LEN) { BT_ERR("Invalid authentication oob length"); return -EINVAL; } __ASSERT(prov_info->uuid, "Device UUID not initialized"); /* Changed by Espressif. Use micro-ecc to generate public key now. */ key = bt_mesh_pub_key_get(); if (!key) { BT_ERR("Failed to generate public key"); return -EIO; } k_delayed_work_init(&link.prot_timer, protocol_timeout); prov = prov_info; #if defined(CONFIG_BLE_MESH_PB_ADV) k_delayed_work_init(&link.tx.retransmit, prov_retransmit); #endif reset_state(); #if defined(CONFIG_BLE_MESH_PB_ADV) bt_mesh_pb_buf_mutex_new(); #endif return 0; } #if CONFIG_BLE_MESH_DEINIT int bt_mesh_prov_deinit(void) { if (prov == NULL) { BT_ERR("No provisioning context provided"); return -EINVAL; } k_delayed_work_free(&link.prot_timer); #if defined(CONFIG_BLE_MESH_PB_ADV) prov_clear_tx(); k_delayed_work_free(&link.tx.retransmit); #if defined(CONFIG_BLE_MESH_USE_DUPLICATE_SCAN) /* Remove the link id from exceptional list */ bt_mesh_update_exceptional_list(BLE_MESH_EXCEP_LIST_REMOVE, BLE_MESH_EXCEP_INFO_MESH_LINK_ID, &link.id); #endif /* CONFIG_BLE_MESH_USE_DUPLICATE_SCAN */ #endif /* CONFIG_BLE_MESH_PB_ADV */ (void)memset(&link, 0, sizeof(link)); #if defined(CONFIG_BLE_MESH_PB_ADV) bt_mesh_pb_buf_mutex_free(); #endif prov = NULL; return 0; } #endif /* CONFIG_BLE_MESH_DEINIT */ void bt_mesh_prov_complete(u16_t net_idx, const u8_t net_key[16], u16_t addr, u8_t flags, u32_t iv_index) { if (prov->complete) { prov->complete(net_idx, net_key, addr, flags, iv_index); } } void bt_mesh_prov_reset(void) { if (prov->reset) { prov->reset(); } } #endif /* CONFIG_BLE_MESH_NODE */
721332.c
#include <stdio.h> #include <string.h> #include <unistd.h> #include <time.h> #include <stdarg.h> //va_start va_end //#include <math.h> #define FG_WHITE "\x1B[0;m" /* white */ #define FG_RED "\033[0;31m" /* 0 -> normal ; 31 -> red */ #define FG_RED_BOLD "\033[1;31m" /* 1 -> bold ; 31 -> red */ #define FG_GREEN "\033[0;32m" /* 4 -> underline ; 32 -> green */ #define FG_GREEN_BOLD "\033[1;32m" #define FG_YELLOW "\033[0;33m" /* 0 -> normal ; 33 -> yellow */ #define FG_YELLOW_BOLD "\033[1;33m" #define FG_BLUE "\033[0;34m" /* 9 -> strike ; 34 -> blue */ #define FG_BLUE_BOLD "\033[1;34m" #define FG_CYAN "\033[0;36m" /* 0 -> normal ; 36 -> cyan */ #define FG_CYAN_BOLD "\033[0;36m" #define FG_DEFAULT "\033[39m" #define BG_RED "\033[41m" #define BG_GREEN "\033[42m" #define BG_BLUE "\033[44m" #define BG_DEFAULT "\033[49m" #define RESET_COLOR "\033[0m" /* to flush the previous property */ #define LOG_INFO (1<<0) //1 #define LOG_WARN (1<<1) //2 #define LOG_ERROR (1<<2) //4 #define LOG_DEBUG (1<<3) //8 #define LOG_ALL ((2<<16)-1) #define INFO(f...) do { LOG_WRITER(LOG_INFO, __FILE__, __FUNCTION__, __LINE__, f); } while (0) #define WARN(f...) do { LOG_WRITER(LOG_WARN, __FILE__, __FUNCTION__, __LINE__, f); } while (0) #define ERROR(f...) do { LOG_WRITER(LOG_ERROR, __FILE__, __FUNCTION__, __LINE__, f); } while (0) #define DEBUG(f...) do { LOG_WRITER(LOG_DEBUG, __FILE__, __FUNCTION__, __LINE__, f); } while (0) #define DBG(l,f...) do { LOG_WRITER(l, __FILE__, __FUNCTION__, __LINE__, f); } while (0) #define LOG_MAX_MSG_LEN 4098 static void *_20131025_log_device = NULL; static int _20131025_log_level = 1; extern void LOG_INIT(const char *device); const char* LOG_SET_COLOR(int level, int is_end); extern void LOG_DESTORY(); extern void LOG_LEVEL(); static void LOG_ADD(int level, const char *file, const char * func, int line, const char *msg); static void LOG_WRITER(int level, const char *file, const char * func, int line, const char *fmt, ...); void LOG_INIT(const char *device) { _20131025_log_device = !device ? stdout : fopen((const char *)device, "a+"); } const char* LOG_SET_COLOR(int level, int is_end) { if (_20131025_log_device == stdout) { if (is_end) { return RESET_COLOR; } else { switch (level) { case LOG_INFO : return FG_DEFAULT; break; case LOG_WARN : return FG_YELLOW; break; case LOG_ERROR : return FG_RED; break; case LOG_DEBUG : return FG_CYAN; break; default : return FG_BLUE_BOLD; break; } } } return ""; } void LOG_DESTORY() { if (_20131025_log_device != stdout) fclose(_20131025_log_device); } void LOG_LEVEL(int level) { _20131025_log_level = level; } static void LOG_ADD(int level, const char *file, const char * func, int line, const char *msg) { const char *c = "IWEDX"; const char *datetime_format = "%Y-%m-%d %H:%M:%S"; time_t meow = time( NULL ); char buf[64]; int cl = 0; if ((level & ~_20131025_log_level) != 0 ) return; //cl = floor(log(level)/log(2)) + 1; switch (level) { case LOG_INFO : cl = 0; break; case LOG_WARN : cl = 1; break; case LOG_ERROR : cl = 2; break; case LOG_DEBUG : cl = 3; break; default : cl = 4; break; } strftime( buf, sizeof(buf), datetime_format, localtime(&meow) ); fprintf(_20131025_log_device, "%s%s[%d][%s(%s):%d] %c, %s%s\n",LOG_SET_COLOR(level, 0) , buf, (int)getpid(), file, func, line, c[cl], msg ,LOG_SET_COLOR(level, 1)); } static void LOG_WRITER(int level, const char *file, const char * func, int line, const char *fmt, ...) { va_list ap; char msg[LOG_MAX_MSG_LEN]; va_start(ap, fmt); vsnprintf(msg, sizeof(msg), fmt, ap); LOG_ADD(level, file, func, line, msg); va_end(ap); } int main(int argc, char *argv[]) { int j; LOG_INIT(NULL); //LOG_INIT("a.log"); LOG_LEVEL(1<<5); for ( j = 0; j < 2; j++ ) { INFO("INFO: %d", j); ERROR("ERROR: %d", j); DEBUG("DEBUG: %s", "dddd"); WARN("WARN: %d", j); DBG(32, "DBG: %d", j); } LOG_DESTORY(); //sleep(1); // you can ps now return 0; }
16110.c
#include <stdio.h> /* count digits, white space, others. */ int main(void) { int c, i, nwhite, nother; int ndigit[10]; nwhite = nother = 0; for (i = 0; i < 10; ++i) ndigit[i] = 0; while ((c = getchar()) != EOF) if (c >= '0' && c <= '9') ++ndigit[c-'0']; else if (c == ' ' || c == '\n' || '\t') ++nwhite; else ++nother; printf("digits ="); for (i = 0; i < 10; ++i) printf(" %d", ndigit[i]); printf(", white space = %d, other = %d\n", nwhite, nother); return 0; }
561160.c
#include <linux/platform_device.h> #include <linux/version.h> #include <linux/pm.h> #ifdef CONFIG_PM_RUNTIME #include <linux/pm_runtime.h> #endif #include <asm/io.h> #include <linux/mali/mali_utgard.h> #include "mali_kernel_common.h" #include <linux/dma-mapping.h> #include <mach/mt_irq.h> #include "arm_core_scaling.h" #include "platform_pmm.h" #include "mali_pm.h" #include "mali_osk.h" #include "mt_reg_base.h" static void mali_platform_device_release(struct device *device); static int mali_pm_suspend(struct device *device); static int mali_pm_resume(struct device *device); static struct mali_gpu_device_data mali_gpu_data = { // System memory .shared_mem_size = 1024 * 1024 * 1024, /* 1GB */ // Framebuffer physical address, only for validation usage .fb_start = 0x80000000, .fb_size = 0x80000000, // DVFS .utilization_interval = 200, /* ms */ .utilization_callback = mali_pmm_utilization_handler, /*<utilization function>,*/ }; static struct resource mali_gpu_resources[] = { MALI_GPU_RESOURCES_MALI450_MP4( IO_VIRT_TO_PHYS(MALI_BASE), MT_MFG_IRQ0_ID, MT_MFG_IRQ1_ID, MT_MFG_IRQ2_ID, MT_MFG_IRQ3_ID, MT_MFG_IRQ4_ID, MT_MFG_IRQ5_ID, MT_MFG_IRQ6_ID, MT_MFG_IRQ7_ID, MT_MFG_IRQ8_ID, MT_MFG_IRQ9_ID, MT_MFG_IRQ10_ID ) }; static struct resource mali_gpu_resources_MP3[] = { MALI_GPU_RESOURCES_MALI450_MP3( IO_VIRT_TO_PHYS(MALI_BASE), MT_MFG_IRQ0_ID, MT_MFG_IRQ1_ID, MT_MFG_IRQ2_ID, MT_MFG_IRQ3_ID, MT_MFG_IRQ4_ID, MT_MFG_IRQ5_ID, MT_MFG_IRQ6_ID, MT_MFG_IRQ7_ID, MT_MFG_IRQ10_ID ) }; static struct resource mali_gpu_resources_MP2[] = { MALI_GPU_RESOURCES_MALI450_MP2( IO_VIRT_TO_PHYS(MALI_BASE), MT_MFG_IRQ0_ID, MT_MFG_IRQ1_ID, MT_MFG_IRQ2_ID, MT_MFG_IRQ3_ID, MT_MFG_IRQ4_ID, MT_MFG_IRQ5_ID, MT_MFG_IRQ10_ID ) }; static struct dev_pm_ops mali_gpu_device_type_pm_ops = { .suspend = mali_pm_suspend, .resume = mali_pm_resume, .freeze = mali_pm_suspend, .thaw = mali_pm_resume, .restore = mali_pm_resume, #ifdef CONFIG_PM_RUNTIME .runtime_suspend = mali_runtime_suspend, .runtime_resume = mali_runtime_resume, .runtime_idle = mali_runtime_idle, #endif }; static struct device_type mali_gpu_device_device_type = { .pm = &mali_gpu_device_type_pm_ops, }; static struct platform_device mali_gpu_device = { .name = MALI_GPU_NAME_UTGARD, .id = 0, .num_resources = ARRAY_SIZE(mali_gpu_resources), .resource = (struct resource *)&mali_gpu_resources, .dev.platform_data = &mali_gpu_data, .dev.release = mali_platform_device_release, .dev.coherent_dma_mask = DMA_BIT_MASK(32), /// Ideally .dev.pm_domain should be used instead, as this is the new framework designed /// to control the power of devices. .dev.type = &mali_gpu_device_device_type /// We should probably use the pm_domain instead of type on newer kernels }; extern u32 get_devinfo_with_index(u32 index); static u32 get_devinfo() { /*TODO: replace this with get_devinfo_with_index*/ return *(volatile u32 *)0xf0206174; } static u32 get_gpuinfo() { /*TODO: replace this with get_devinfo_with_index*/ return *(volatile u32 *)0xf0206040; } #define MALI_REASSIGN_RESOURCE(device, X) \ do {\ device->resource = (struct resource *)&(X);\ device->num_resources = ARRAY_SIZE((X));\ }while(0) static void update_dev_info(struct platform_device * device ) { u32 info = get_devinfo(); MALI_DEBUG_PRINT(1, ("devinfo %#x\n", info)); /*if(0x0 == (info & (0x1 << 31))) { t or b*/ /*T*/ u32 gpuinfo = get_gpuinfo(); MALI_DEBUG_PRINT(1, ("gpuinfo %#x\n", gpuinfo)); u32 pp = (gpuinfo & 0x60000) >> 17; if(pp == 0x1) { MALI_DEBUG_PRINT(1, ("Found devinfo of MP3 %s\n", __FUNCTION__)); MALI_REASSIGN_RESOURCE(device, mali_gpu_resources_MP3); } else if(pp == 0x2 || pp == 0x3) { MALI_DEBUG_PRINT(1, ("Found devinfo of MP2 %s, %d\n", __FUNCTION__, pp)); MALI_REASSIGN_RESOURCE(device, mali_gpu_resources_MP2); } else { #ifdef MTK_NR_MALI_PP #if (MTK_NR_MALI_PP == 3) MALI_DEBUG_PRINT(1, ("Mali MP3 %s (MTK_NR_MALI_PP)\n", __FUNCTION__)); MALI_REASSIGN_RESOURCE(device, mali_gpu_resources_MP3); #elif (MTK_NR_MALI_PP == 2) MALI_DEBUG_PRINT(1, ("Mali MP2 %s (MTK_NR_MALI_PP)\n", __FUNCTION__)); MALI_REASSIGN_RESOURCE(device, mali_gpu_resources_MP2); #else MALI_DEBUG_PRINT(1, ("Default MP4 %s, ignore cfg: %d\n", __FUNCTION__, MTK_NR_MALI_PP)); #endif #else MALI_DEBUG_PRINT(1, ("Default MP4 %s\n", __FUNCTION__)); #endif } } extern unsigned int get_max_DRAM_size (void); int mali_platform_device_register(void) { int err = -1; int num_pp_cores = 4; //TODO: Need specify if we are using diff config MALI_DEBUG_PRINT(1, ("%s\n", __FUNCTION__)); mali_gpu_data.shared_mem_size = get_max_DRAM_size(); update_dev_info(&mali_gpu_device); err = platform_device_register(&mali_gpu_device); if (0 == err) { mali_pmm_init(); #ifdef CONFIG_PM_RUNTIME #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) pm_runtime_set_autosuspend_delay(&(mali_gpu_device.dev), 1000); pm_runtime_use_autosuspend(&(mali_gpu_device.dev)); #endif pm_runtime_enable(&(mali_gpu_device.dev)); #endif #if defined(__MALI_CORE_SCALING_ENABLE__) mali_core_scaling_init(num_pp_cores); #endif return 0; } MALI_DEBUG_PRINT(1, ("%s err=%d\n",__FUNCTION__, err)); platform_device_unregister(&mali_gpu_device); return err; } void mali_platform_device_unregister(void) { MALI_DEBUG_PRINT(1, ("%s\n", __FUNCTION__)); #if defined(__MALI_CORE_SCALING_ENABLE__) mali_core_scaling_term(); #endif mali_pmm_deinit(); platform_device_unregister(&mali_gpu_device); } static void mali_platform_device_release(struct device *device) { MALI_DEBUG_PRINT(1, ("%s\n", __FUNCTION__)); } static int mali_pm_suspend(struct device *device) { int ret = 0; MALI_DEBUG_PRINT(1, ("Mali PM:%s\n", __FUNCTION__)); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->suspend) { /* Need to notify Mali driver about this event */ ret = device->driver->pm->suspend(device); } _mali_osk_pm_delete_callback_timer(); mali_platform_power_mode_change(MALI_POWER_MODE_DEEP_SLEEP); return ret; } static int mali_pm_resume(struct device *device) { int ret = 0; MALI_DEBUG_PRINT(1, ("Mali PM: %s\n", __FUNCTION__)); mali_platform_power_mode_change(MALI_POWER_MODE_ON); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->resume) { /* Need to notify Mali driver about this event */ ret = device->driver->pm->resume(device); } return ret; } #if 0//because not used static int mali_pm_freeze(struct device *device) { int ret = 0; MALI_DEBUG_PRINT(1, ("Mali PM: %s\n", __FUNCTION__)); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->freeze) { /* Need to notify Mali driver about this event */ ret = device->driver->pm->freeze(device); } return ret; } static int mali_pm_thaw(struct device *device) { int ret = 0; MALI_DEBUG_PRINT(1, ("Mali PM: %s\n", __FUNCTION__)); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->thaw) { /* Need to notify Mali driver about this event */ ret = device->driver->pm->thaw(device); } return ret; } #endif #ifdef CONFIG_PM_RUNTIME static int mali_runtime_suspend(struct device *device) { int ret = 0; MALI_DEBUG_PRINT(4, ("mali_runtime_suspend() called\n")); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->runtime_suspend) { /* Need to notify Mali driver about this event */ ret = device->driver->pm->runtime_suspend(device); } mali_platform_power_mode_change(MALI_POWER_MODE_LIGHT_SLEEP); return ret; } static int mali_runtime_resume(struct device *device) { int ret = 0; MALI_DEBUG_PRINT(4, ("mali_runtime_resume() called\n")); mali_platform_power_mode_change(MALI_POWER_MODE_ON); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->runtime_resume) { /* Need to notify Mali driver about this event */ ret = device->driver->pm->runtime_resume(device); } return ret; } static int mali_runtime_idle(struct device *device) { MALI_DEBUG_PRINT(4, ("mali_runtime_idle() called\n")); if (NULL != device->driver && NULL != device->driver->pm && NULL != device->driver->pm->runtime_idle) { /* Need to notify Mali driver about this event */ int ret = device->driver->pm->runtime_idle(device); if (0 != ret) { return ret; } } pm_runtime_suspend(device); return 0; } #endif /// CONFIG_PM_RUNTIME
546626.c
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation // // File: search.c // //-------------------------------------------------------------------------- #include "newdevp.h" #include <infstr.h> typedef struct _DirectoryNameList { struct _DirectoryNameList *Next; UNICODE_STRING DirectoryName; WCHAR NameBuffer[1]; } DIRNAMES, *PDIRNAMES; WCHAR StarDotStar[]=L"*.*"; BOOL IsSearchCanceled( PNEWDEVWIZ NewDevWiz ) { DWORD Result; // // If the caller doesn't pass us a cancel event then that just means they can't // cancel the search. // if (!NewDevWiz->CancelEvent) { return FALSE; } Result = WaitForSingleObject(NewDevWiz->CancelEvent, 0); // // If Result is WAIT_OBJECT_0 then someone set the event. This means that // we should cancel the driver search. // if (Result == WAIT_OBJECT_0) { return TRUE; } return FALSE; } void GetDriverSearchPolicy( PULONG SearchPolicy ) { HKEY hKey; DWORD CurrentPolicy; ULONG cbData; // // Assume that all search locations are valid. // *SearchPolicy = 0; if (RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Policies\\Microsoft\\Windows\\DriverSearching"), 0, KEY_READ, &hKey ) == ERROR_SUCCESS) { // // Check if we can search the CD // CurrentPolicy = 0; cbData = sizeof(CurrentPolicy); if ((RegQueryValueEx(hKey, TEXT("DontSearchCD"), NULL, NULL, (LPBYTE)&CurrentPolicy, &cbData ) == ERROR_SUCCESS) && (CurrentPolicy)) { *SearchPolicy |= SEARCH_CDROM; } // // Check if we can search the Floppies // CurrentPolicy = 0; cbData = sizeof(CurrentPolicy); if ((RegQueryValueEx(hKey, TEXT("DontSearchFloppies"), NULL, NULL, (LPBYTE)&CurrentPolicy, &cbData ) == ERROR_SUCCESS) && (CurrentPolicy)) { *SearchPolicy |= SEARCH_FLOPPY; } CurrentPolicy = 0; cbData = sizeof(CurrentPolicy); if ((RegQueryValueEx(hKey, TEXT("DontSearchWindowsUpdate"), NULL, NULL, (LPBYTE)&CurrentPolicy, &cbData ) == ERROR_SUCCESS) && (CurrentPolicy)) { *SearchPolicy |= SEARCH_INET; *SearchPolicy |= SEARCH_INET_IF_CONNECTED; } RegCloseKey(hKey); } } DWORD GetWUDriverRank( PNEWDEVWIZ NewDevWiz, LPTSTR HardwareId ) { DWORD Rank = 0xFFFF; TCHAR TempBuffer[REGSTR_VAL_MAX_HCID_LEN]; ULONG TempBufferLen; LPTSTR TempBufferPos; int RankCounter; // // First of all we will start off with a Rank of 0xFFFF which is the worst possible. // // We will assume that WU will only return an INF Hardware Id match to us. This means // that if we match against one of the device's HardwareIds then Rank will be between // 0x0000 and 0x0999. Otherwise if we match against one of the device's Compatible Ids // then the Rank will be between 0x2000 and 0x2999. // ZeroMemory(TempBuffer, sizeof(TempBuffer)); TempBufferLen = sizeof(TempBuffer); if (CM_Get_DevInst_Registry_Property(NewDevWiz->DeviceInfoData.DevInst, CM_DRP_HARDWAREID, NULL, TempBuffer, &TempBufferLen, 0 ) == CR_SUCCESS) { if (TempBufferLen > 2 * sizeof(TCHAR)) { RankCounter = 0x0000; for (TempBufferPos = TempBuffer; *TempBufferPos; TempBufferPos += (lstrlen(TempBufferPos) + 1), RankCounter++) { if (!lstrcmpi(TempBufferPos, HardwareId)) { // // Matched against a Hardware Id // Rank = RankCounter; break; } } } } if (Rank == 0xFFFF) { // // We didn't match against a HardwareId so let's go through the Compatible Ids // ZeroMemory(TempBuffer, sizeof(TempBuffer)); TempBufferLen = sizeof(TempBuffer); if (CM_Get_DevInst_Registry_Property(NewDevWiz->DeviceInfoData.DevInst, CM_DRP_COMPATIBLEIDS, NULL, TempBuffer, &TempBufferLen, 0 ) == CR_SUCCESS) { if (TempBufferLen > 2 * sizeof(TCHAR)) { RankCounter = 0x2000; for (TempBufferPos = TempBuffer; *TempBufferPos; TempBufferPos += (lstrlen(TempBufferPos) + 1), RankCounter++) { if (!lstrcmpi(TempBufferPos, HardwareId)) { // // Matcheds against a compatible Id // Rank = RankCounter; break; } } } } } return Rank; } BOOL IsWUDriverBetter( PNEWDEVWIZ NewDevWiz, LPTSTR HardwareId, LPTSTR DriverVer ) { BOOL bWUDriverIsBetter = FALSE; DWORD WURank; SP_DRVINFO_DATA DriverInfoData; SP_DRVINSTALL_PARAMS DriverInstallParams; FILETIME WUFileTime; // // WU must at least give us a Hardware Id to compare against. // if (!HardwareId) { return FALSE; } // // If we can't get the selected driver then return TRUE. This will // usually happen if we did not find a local driver. // DriverInfoData.cbSize = sizeof(DriverInfoData); if (!SetupDiGetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData )) { return TRUE; } // // Get the Driver Install Params so we can get the Rank of the selected (best) // driver. // DriverInstallParams.cbSize = sizeof(DriverInstallParams); if (!SetupDiGetDriverInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData, &DriverInstallParams )) { return TRUE; } // // Get the Rank of the HardwareId that WU returned to us. // WURank = GetWUDriverRank(NewDevWiz, HardwareId); if (WURank < DriverInstallParams.Rank) { bWUDriverIsBetter = TRUE; } else if (WURank == DriverInstallParams.Rank) { // // Need to compare the DriverDates. // if (pSetupGetDriverDate(DriverVer, &WUFileTime )) { // // If CompareFileTime returns 1 then the best driver date is larger. If // it returns 0 or -1 then the dates are the same or the WUFileTime is // better, which means we should download this driver. // if (CompareFileTime(&DriverInfoData.DriverDate, &WUFileTime) != 1) { bWUDriverIsBetter = TRUE; } } } // // default is that the Best driver found is better than the WUDriver. // return bWUDriverIsBetter; } BOOL SearchWindowsUpdateCache( PNEWDEVWIZ NewDevWiz ) { ULONG DontSearchPolicy = 0; FIND_MATCHING_DRIVER_PROC pfnFindMatchingDriver; DOWNLOADINFO DownloadInfo; WUDRIVERINFO WUDriverInfo; TCHAR DeviceInstanceId[MAX_DEVICE_ID_LEN]; BOOL FoundBetterDriver = FALSE; // // Verify that this user is allowed to search Windows Update before we continue. // GetDriverSearchPolicy(&DontSearchPolicy); if (DontSearchPolicy & SEARCH_INET) { // // This user is NOT allowed to search Windows Update! // return FALSE; } // // Check if the search has been canceled. // if (IsSearchCanceled(NewDevWiz)) { goto clean0; } // // Load the Cdm DLL and open a context handle if needed. If we can't then // bail out. // if (!OpenCdmContextIfNeeded(&NewDevWiz->hCdmInstance, &NewDevWiz->hCdmContext )) { goto clean0; } // // Check if the search has been canceled. // if (IsSearchCanceled(NewDevWiz)) { goto clean0; } pfnFindMatchingDriver = (FIND_MATCHING_DRIVER_PROC)GetProcAddress(NewDevWiz->hCdmInstance, "FindMatchingDriver" ); if (!pfnFindMatchingDriver) { goto clean0; } // // First select the best driver in the list of drivers we have built so far // SetupDiCallClassInstaller(DIF_SELECTBESTCOMPATDRV, NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData ); // // Fill in the DOWNLOADINFO structure to pass to CDM.DLL // ZeroMemory(&DownloadInfo, sizeof(DownloadInfo)); DownloadInfo.dwDownloadInfoSize = sizeof(DOWNLOADINFO); DownloadInfo.lpFile = NULL; DeviceInstanceId[0] = TEXT('\0'); CM_Get_Device_ID(NewDevWiz->DeviceInfoData.DevInst, DeviceInstanceId, SIZECHARS(DeviceInstanceId), 0 ); DownloadInfo.lpDeviceInstanceID = (LPCTSTR)DeviceInstanceId; GetVersionEx((OSVERSIONINFO*)&DownloadInfo.OSVersionInfo); // // Set dwArchitecture to PROCESSOR_ARCHITECTURE_UNKNOWN, this // causes Windows Update to get the architecture of the machine // itself. // DownloadInfo.dwArchitecture = PROCESSOR_ARCHITECTURE_UNKNOWN; DownloadInfo.dwFlags = 0; DownloadInfo.dwClientID = 0; DownloadInfo.localid = 0; // // Fill in the WUDRIVERINFO structure to pass to CDM.DLL // ZeroMemory(&WUDriverInfo, sizeof(WUDriverInfo)); WUDriverInfo.dwStructSize = sizeof(WUDRIVERINFO); // // Check if the search has been canceled. // if (IsSearchCanceled(NewDevWiz)) { goto clean0; } if (pfnFindMatchingDriver(NewDevWiz->hCdmContext, &DownloadInfo, &WUDriverInfo )) { // // Check to see if the WU Driver is better than the best selected // driver. // FoundBetterDriver = IsWUDriverBetter(NewDevWiz, WUDriverInfo.wszHardwareID, WUDriverInfo.wszDriverVer ); } clean0: ; return FoundBetterDriver; } void DoDriverSearchInSpecifiedLocations( HWND hWnd, PNEWDEVWIZ NewDevWiz, ULONG SearchOptions, DWORD DriverType ) /*++ --*/ { SP_DEVINSTALL_PARAMS DeviceInstallParams; // // Set the Device Install Params to set the parent window handle. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.hwndParent = hWnd; DeviceInstallParams.FlagsEx |= DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } // // Search any single INFs (this only comes in through the // UpdateDriverForPlugAndPlayDevices API. // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_SINGLEINF)) { SP_DRVINFO_DATA DrvInfoData; if (SetDriverPath(NewDevWiz, NewDevWiz->SingleInfPath)) { // // OR in the DI_ENUMSINGLEINF flag so that we only look at this specific INF // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.Flags |= DI_ENUMSINGLEINF; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } // // Build up the list in this specific INF file // SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverType ); // // Clear the DI_ENUMSINGLEINF flag in case we build from the default // INF path next. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.Flags &= ~DI_ENUMSINGLEINF; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } // // At this point we should have a list of drivers in the INF that the caller // of the UpdateDriverForPlugAndPlayDevices specified. If the list is empty // then the INF they passed us cannot be used on the Hardware Id that they // passed in. In this case we will SetLastError to ERROR_DI_BAD_PATH. // ZeroMemory(&DrvInfoData, sizeof(DrvInfoData)); DrvInfoData.cbSize = sizeof(SP_DRVINFO_DATA); if (!SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverType, 0, &DrvInfoData )) { // // We wern't able to find any drivers in the specified INF that match // the specified hardware ID. // NewDevWiz->LastError = ERROR_DI_BAD_PATH; } } } // // Get the currently installed driver for this device only // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_CURRENTDRIVER)) { if (SetDriverPath(NewDevWiz, NULL)) { // // Set the DI_FLAGSEX_INSTALLEDDRIVER flag to let setupapi know that we // just want the installed driver added to the list. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx |= DI_FLAGSEX_INSTALLEDDRIVER; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverType ); // // Clear the DI_FLAGSEX_INSTALLEDDRIVER flag now that we have added // the installed driver to the list. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx &= ~DI_FLAGSEX_INSTALLEDDRIVER; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } } } // // Search the default INF path // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_DEFAULT)) { if (SetDriverPath(NewDevWiz, NULL)) { SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverType ); } } // // Search any extra paths that the user specified in the wizard // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_DIRECTORY)) { if (SetDriverPath(NewDevWiz, NewDevWiz->BrowsePath)) { SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverType ); } } // // Search any Windows Update paths. // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_WINDOWSUPDATE)) { BOOL bOldInetDriversAllowed = TRUE; if (SetDriverPath(NewDevWiz, NewDevWiz->BrowsePath)) { // // We need to OR in the DI_FLAGSEX_INET_DRIVER flag so that setupapi will // mark in the INFs PNF that it is from the Internet. This is important // because we don't want to ever use an Internet INF again since we don't // have the drivers locally. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { // // When searching using Windows Update we must allow old Internet drivers. We need // to do this since it is posible to backup old Internet drivers and then reinstall // them. // bOldInetDriversAllowed = (DeviceInstallParams.FlagsEx & DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS) ? FALSE : TRUE; DeviceInstallParams.FlagsEx |= DI_FLAGSEX_INET_DRIVER; DeviceInstallParams.FlagsEx &= ~DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverType ); if (!bOldInetDriversAllowed) { // // Old Internet drivers were not allowed so we need to reset the DI_FLAGSEX_EXLCUED_OLD_INET_DRIVERS // FlagsEx // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx |= DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } } } } // // Search all floppy drives // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_FLOPPY) ) { UINT DriveNumber=0; while (!IsSearchCanceled(NewDevWiz) && ((DriveNumber = GetNextDriveByType(DRIVE_REMOVABLE, ++DriveNumber)) != 0)) { SearchDriveForDrivers(NewDevWiz, DRIVE_REMOVABLE, DriveNumber); } } // // Search all CD-ROM drives // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_CDROM)) { UINT DriveNumber=0; while (!IsSearchCanceled(NewDevWiz) && ((DriveNumber = GetNextDriveByType(DRIVE_CDROM, ++DriveNumber)) != 0)) { SearchDriveForDrivers(NewDevWiz, DRIVE_CDROM, DriveNumber); } } // // Search the Internet using CDM.DLL, only if the machine is currently connected // to the Internet and CDM.DLL says it has the best driver. // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_INET_IF_CONNECTED)) { // // If the machine is connected to the Internet and the WU cache says it has // a better driver then set the SEARCH_INET flag to get the driver from CDM.DLL // if (IsInternetAvailable(&NewDevWiz->hCdmInstance) && IsConnectedToInternet() && SearchWindowsUpdateCache(NewDevWiz)) { SearchOptions |= SEARCH_INET; } } // // Search the Internet using CDM.DLL // if (!IsSearchCanceled(NewDevWiz) && (SearchOptions & SEARCH_INET)) { PostMessage(NewDevWiz->hWnd, WUM_STARTINTERNETDOWNLOAD, TRUE, GetLastError()); if (SetDriverPath(NewDevWiz, NULL)) { DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx |= DI_FLAGSEX_DRIVERLIST_FROM_URL; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER ); DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx &= ~DI_FLAGSEX_DRIVERLIST_FROM_URL; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } // // NOTE: JasonC 1/20/2002 // This PostMessage stops the Internet download animation. // In the future if this function is changed so that another SEARCH_Xxx // operation is done after SEARCH_INET, then the WUM_ENDINTERNETDOWNLOAD // message should not only stop the Inetnet download animation, but it // should also start up the searching animation again. // PostMessage(NewDevWiz->hWnd, WUM_ENDINTERNETDOWNLOAD, TRUE, GetLastError()); } } } void DoDriverSearch( HWND hWnd, PNEWDEVWIZ NewDevWiz, ULONG SearchOptions, DWORD DriverType, BOOL bAppendToExistingDriverList ) { ULONG DontSearchPolicy; SP_DRVINFO_DATA DriverInfoData; SP_DEVINSTALL_PARAMS DeviceInstallParams; // // The first thing that we do in this code is to Reset the CancelEvent in case it was set // previously. // if (NewDevWiz->CancelEvent) { ResetEvent(NewDevWiz->CancelEvent); } // // Make sure that we filter out the locations that this user is not allowed to search. // DontSearchPolicy = 0; GetDriverSearchPolicy(&DontSearchPolicy); SearchOptions &= ~DontSearchPolicy; // // If the user does not want to append to the existing list then delete the // current driver list. // if (!bAppendToExistingDriverList) { SetupDiDestroyDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER ); SetupDiDestroyDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_CLASSDRIVER ); } // // Clear out the selected driver // SetupDiSetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, NULL ); // // Set the DI_FLAGSEX_APPENDDRIVERLIST since we will be building a big // list. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx |= DI_FLAGSEX_APPENDDRIVERLIST; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } // // Build up the list of drivers based on the SearchOptions // DoDriverSearchInSpecifiedLocations(hWnd, NewDevWiz, SearchOptions, DriverType); // //Pick the best driver from the list we just created // SetupDiCallClassInstaller(DIF_SELECTBESTCOMPATDRV, NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData ); if (!IsSearchCanceled(NewDevWiz)) { // // Update the NewDevWiz->ClassGuidSelected with the class of the selected driver. // if (!IsEqualGUID(&NewDevWiz->DeviceInfoData.ClassGuid, &GUID_NULL)) { NewDevWiz->ClassGuidSelected = &NewDevWiz->DeviceInfoData.ClassGuid; } // // Note whether we found multiple drivers or not. // DriverInfoData.cbSize = sizeof(SP_DRVINFO_DATA); if (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, 1, &DriverInfoData )) { NewDevWiz->MultipleDriversFound = TRUE; } else { NewDevWiz->MultipleDriversFound = FALSE; } } // // Clear the DI_FLAGSEX_APPENDDRIVERLIST flag from the Device Install Params. // DeviceInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { DeviceInstallParams.FlagsEx &= ~DI_FLAGSEX_APPENDDRIVERLIST; SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams ); } } void CancelDriverSearch( PNEWDEVWIZ NewDevWiz ) { // // First verify that there is a driver search going on by checking that the // NewDevWiz->DriverSearchThread is not NULL // if (NewDevWiz->DriverSearchThread) { if (NewDevWiz->CancelEvent) { // // Set the Cancel Event to that the DoDriverSearch() API knows to stop searching. // SetEvent(NewDevWiz->CancelEvent); } // // Tell cdm.dll to stop it's current operation // CdmCancelCDMOperation(NewDevWiz->hCdmInstance); // // Tell setupapi.dll to stop it's current driver info search // SetupDiCancelDriverInfoSearch(NewDevWiz->hDeviceInfo); // // We should always have a window handle if the user was able to cancel. // if (NewDevWiz->hWnd) { MSG Msg; DWORD WaitReturn; // // And finaly, wait for the NewDevWiz->DriverSearchThread to terminate // while ((WaitReturn = MsgWaitForMultipleObjects(1, &NewDevWiz->DriverSearchThread, FALSE, INFINITE, QS_ALLINPUT )) == WAIT_OBJECT_0 + 1) { while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) { if (!IsDialogMessage(NewDevWiz->hWnd, &Msg)) { TranslateMessage(&Msg); DispatchMessage(&Msg); } } } } } } BOOL SetDriverPath( PNEWDEVWIZ NewDevWiz, PCTSTR DriverPath ) { BOOL bRet = TRUE; SP_DEVINSTALL_PARAMS DeviceInstallParams; DeviceInstallParams.cbSize = sizeof(DeviceInstallParams); if (!SetupDiGetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { bRet = FALSE; goto clean0; } if (FAILED(StringCchCopy(DeviceInstallParams.DriverPath, SIZECHARS(DeviceInstallParams.DriverPath), DriverPath ? DriverPath : L""))) { bRet = FALSE; goto clean0; } if (!SetupDiSetDeviceInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DeviceInstallParams )) { bRet = FALSE; goto clean0; } clean0: return bRet; } void SearchDirectoryForDrivers( PNEWDEVWIZ NewDevWiz, PCTSTR Directory ) { HANDLE FindHandle; PDIRNAMES DirNamesHead = NULL; PDIRNAMES DirNames, Next; USHORT Len; WIN32_FIND_DATAW FindData; WCHAR DirectoryName[MAX_PATH]; if (IsSearchCanceled(NewDevWiz)) { return; } // // See if there are is anything (files, subdirs) in this dir. // if (FAILED(StringCchCopy(DirectoryName, SIZECHARS(DirectoryName), Directory)) || !pSetupConcatenatePaths(DirectoryName, StarDotStar, SIZECHARS(DirectoryName), NULL)) { return; } FindHandle = FindFirstFileW(DirectoryName, &FindData); if (FindHandle == INVALID_HANDLE_VALUE) { return; } // // There might be inf files so invoke setup to look. // if (SetDriverPath(NewDevWiz, Directory)) { SetupDiBuildDriverInfoList(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER ); } // // find all of the subdirs, and save them in a temporary buffer, // so that we can close the find handle *before* going recursive. // do { if (IsSearchCanceled(NewDevWiz)) { break; } if ((FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && wcscmp(FindData.cFileName, L".") && wcscmp(FindData.cFileName, L"..")) { Len = (USHORT)lstrlen(FindData.cFileName) * sizeof(WCHAR); DirNames = malloc(sizeof(DIRNAMES) + Len); if (!DirNames) { return; } DirNames->DirectoryName.Length = Len; DirNames->DirectoryName.MaximumLength = Len + sizeof(WCHAR); DirNames->DirectoryName.Buffer = DirNames->NameBuffer; memcpy(DirNames->NameBuffer, FindData.cFileName, Len + sizeof(WCHAR)); DirNames->Next = DirNamesHead; DirNamesHead = DirNames; } } while (FindNextFileW(FindHandle, &FindData)); FindClose(FindHandle); if (!DirNamesHead) { return; } Next = DirNamesHead; while (Next) { DirNames = Next; if (SUCCEEDED(StringCchCopy(DirectoryName, SIZECHARS(DirectoryName), Directory)) && pSetupConcatenatePaths(DirectoryName, DirNames->DirectoryName.Buffer, SIZECHARS(DirectoryName), NULL)) { Next= DirNames->Next; free(DirNames); SearchDirectoryForDrivers(NewDevWiz, DirectoryName); } } } void SearchDriveForDrivers( PNEWDEVWIZ NewDevWiz, UINT DriveType, UINT DriveNumber ) /*++ Routine Description: This routine will return whether or not the specified media should be searched for drivers, and it will return the path where the search should start. First the specified driver will be checked for an autorun.inf file. If there is an autorun.inf with a [DeviceInstall] section that contains a DriverPath= value then we will start the search at the path specified by DriverPath=. If the [DeviceInstall] section does not contain any DriverPath= values then the entire drive will be skipped. This is a good way for CD's that do not contain drivers to be excluded from the driver search. If there is no [DeviceInstall] section of the autorun.inf, or there is no autorun.inf then the following rules apply. - DRIVE_REMOVABLE - search the entire drive if the drive root is A: or B:, otherwise don't search this media. - DRIVE_CDROM - search the entire media if the size is less than 1Gig. This means if the media is a CD then we will search the entire CD, but if it is another larger media source, like a DVD then we will not. We need to search the entire CD for backwards compatibility even through it takes quite a while. Arguments: NewDevWiz - NEWDEVWIZ structure. DriveType - specifies the type of drive this is, usually DRIVE_REMOVABLE or DRIVE_CDROM. DriveNumber - number specifiy the drive to search: 0 for A:, 1 for B:, etc. Return Value: --*/ { TCHAR szAutoRunFile[MAX_PATH]; TCHAR szSectionName[MAX_PATH]; TCHAR szDriverPath[MAX_PATH]; TCHAR szSearchPath[MAX_PATH]; TCHAR DriveRoot[]=TEXT("a:"); HINF hInf = INVALID_HANDLE_VALUE; INFCONTEXT Context; UINT ErrorLine; UINT PrevMode; DriveRoot[0] = ((TCHAR)DriveNumber - 1 + DriveRoot[0]); PrevMode = SetErrorMode(0); SetErrorMode(PrevMode | SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS); try { szSectionName[0] = TEXT('\0'); // // First check the media for a autorun.inf that contains a [DeviceInstall] // section with a DriverPath= value. // if (SUCCEEDED(StringCchCopy(szAutoRunFile, SIZECHARS(szAutoRunFile), DriveRoot)) && pSetupConcatenatePaths(szAutoRunFile, TEXT("autorun.inf"), MAX_PATH, NULL)) { hInf = SetupOpenInfFile(szAutoRunFile, NULL, INF_STYLE_OLDNT, &ErrorLine); if (hInf != INVALID_HANDLE_VALUE) { if (SUCCEEDED(StringCchCopy(szSectionName, SIZECHARS(szSectionName), TEXT("DeviceInstall")))) { // // First try the decorated section. // if (!GetProcessorExtension(szDriverPath, SIZECHARS(szDriverPath)) || (FAILED(StringCchCat(szSectionName, SIZECHARS(szSectionName), TEXT(".")))) || (FAILED(StringCchCat(szSectionName, SIZECHARS(szSectionName), szDriverPath))) || (SetupGetLineCount(hInf, szSectionName) == -1)) { // // Decorated section does not exist so try the undecorated section. // StringCchCopy(szSectionName, SIZECHARS(szSectionName), TEXT("DeviceInstall")); if (SetupGetLineCount(hInf, szSectionName) == -1) { // // There is no [DeviceInstall] section in this autorun.inf // szSectionName[0] = TEXT('\0'); } } } } } // // If szSectionName is not 0 then we have a [DeviceInstall] section. Enumerate // this section looking for all of the DriverPath= lines. // if (szSectionName[0] != TEXT('\0')) { if (SetupFindFirstLine(hInf, szSectionName, TEXT("DriverPath"), &Context)) { do { // // Process the DriverPath= line. // if (SetupGetStringField(&Context, 1, szDriverPath, SIZECHARS(szDriverPath), NULL)) { // // Search this location recursively. // if (SUCCEEDED(StringCchCopy(szSearchPath, SIZECHARS(szSearchPath), DriveRoot)) && pSetupConcatenatePaths(szSearchPath, szDriverPath, SIZECHARS(szSearchPath), NULL)) { SearchDirectoryForDrivers(NewDevWiz, (PCTSTR)szSearchPath); } } } while (SetupFindNextMatchLine(&Context, TEXT("DriverPath"), &Context)); } // // If we had a valid [DeviceInstall] section then we are done. // goto clean0; } // // At this point there either was no autorun.inf, or it didn't contain a // [DeviceInstall] section or the [DeviceInstall] section didn't contain // a DriverPath, so just do the default behavior. // if (DriveType == DRIVE_REMOVABLE) { // // We only search A: and B: removable drives by default. // if ((_wcsicmp(DriveRoot, TEXT("a:")) == 0) || (_wcsicmp(DriveRoot, TEXT("b:")) == 0)) { // // This is probably a floppy disk since it is A: or B: so search // the drive. // SearchDirectoryForDrivers(NewDevWiz, (PCTSTR)DriveRoot); } } if (DriveType == DRIVE_CDROM) { // // For DRIVE_CDROM drives we will check the media size and if it is // less than 1Gig then we will assume it is a CD media and search it // recursively, otherwise we won't search the drive by default. // ULARGE_INTEGER FreeBytesAvailable; ULARGE_INTEGER TotalNumberOfBytes; if (GetDiskFreeSpaceEx(DriveRoot, &FreeBytesAvailable, &TotalNumberOfBytes, NULL) && (FreeBytesAvailable.HighPart == 0) && (FreeBytesAvailable.LowPart <= 0x40000000)) { // // There is less than 1Gig of stuff on this disk so it is probably // a CD, so search the entire thing. // SearchDirectoryForDrivers(NewDevWiz, (PCTSTR)DriveRoot); } } } except(NdwUnhandledExceptionFilter(GetExceptionInformation())) { ; } clean0: SetErrorMode(PrevMode); if (hInf != INVALID_HANDLE_VALUE) { SetupCloseInfFile(hInf); } } BOOL IsSelectedDriver( PNEWDEVWIZ NewDevWiz, PSP_DRVINFO_DATA DriverInfoData ) /*++ --*/ { SP_DRVINFO_DATA SelectedDriverInfoData; SelectedDriverInfoData.cbSize = sizeof(SelectedDriverInfoData); if (!SetupDiGetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &SelectedDriverInfoData )) { // // If we can't get the selected driver then just return FALSE // return FALSE; } // // Just compare the Reserved fields. Setupapi sets these to it's actuall // memory pointers so if the two reserved fields are the same, then the // drivers are the same. // return (DriverInfoData->Reserved == SelectedDriverInfoData.Reserved); } BOOL IsInstalledDriver( PNEWDEVWIZ NewDevWiz, PSP_DRVINFO_DATA DriverInfoData OPTIONAL ) /*++ Determines if the currently selected driver is the currently installed driver. By comparing DriverInfoData and DriverInfoDetailData. --*/ { BOOL bReturn; HKEY hDevRegKey; DWORD cbData; PWCHAR pwch; SP_DRVINFO_DATA SelectedDriverInfoData; PSP_DRVINFO_DATA BestDriverInfoData; SP_DRVINFO_DETAIL_DATA DriverInfoDetailData; TCHAR Buffer[MAX_PATH*2]; // // Use the PSP_DRVINFO_DATA that was passed in. If one wasn't passed in the get the // selected driver. // if (DriverInfoData) { BestDriverInfoData = DriverInfoData; } else { SelectedDriverInfoData.cbSize = sizeof(SP_DRVINFO_DATA); if (SetupDiGetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &SelectedDriverInfoData )) { BestDriverInfoData = &SelectedDriverInfoData; } else { // // If there is no currently selected driver then it can't be the installed one // return FALSE; } } bReturn = FALSE; // // Open a reg key to the driver specific location // hDevRegKey = SetupDiOpenDevRegKey(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DICS_FLAG_GLOBAL, 0, DIREG_DRV, KEY_READ ); if (hDevRegKey == INVALID_HANDLE_VALUE) { goto SIIDExit; } // // Compare Description, Manufacturer, and Provider Name. // These are the three unique "keys" within a single inf file. // Fetch the drvinfo, drvdetailinfo for the selected device. // // // If the Device Description isn't the same, its a different driver. // if (!SetupDiGetDeviceRegistryProperty(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDRP_DEVICEDESC, NULL, // regdatatype (LPVOID)Buffer, sizeof(Buffer), NULL )) { *Buffer = TEXT('\0'); } if (_wcsicmp(BestDriverInfoData->Description, Buffer)) { goto SIIDExit; } // // If the Manufacturer Name isn't the same, its different // if (!SetupDiGetDeviceRegistryProperty(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDRP_MFG, NULL, // regdatatype (LPVOID)Buffer, sizeof(Buffer), NULL )) { *Buffer = TEXT('\0'); } if (_wcsicmp(BestDriverInfoData->MfgName, Buffer)) { goto SIIDExit; } // // If the Provider Name isn't the same, its different // cbData = sizeof(Buffer); if (RegQueryValueEx(hDevRegKey, REGSTR_VAL_PROVIDER_NAME, NULL, NULL, (LPVOID)Buffer, &cbData ) != ERROR_SUCCESS) { *Buffer = TEXT('\0'); } if (_wcsicmp(BestDriverInfoData->ProviderName, Buffer)) { goto SIIDExit; } // // Check the InfName, InfSection and DriverDesc // NOTE: the installed infName will not contain the path to the default windows // inf directory. If the same inf name has been found for the selected driver // from another location besides the default inf search path, then it will // contain a path, and is treated as a *different* driver. // DriverInfoDetailData.cbSize = sizeof(DriverInfoDetailData); if (!SetupDiGetDriverInfoDetail(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, BestDriverInfoData, &DriverInfoDetailData, sizeof(DriverInfoDetailData), NULL ) && GetLastError() != ERROR_INSUFFICIENT_BUFFER) { goto SIIDExit; } if (GetWindowsDirectory(Buffer, SIZECHARS(Buffer)) && pSetupConcatenatePaths(Buffer, TEXT("INF\\"), SIZECHARS(Buffer), NULL)) { pwch = Buffer + lstrlen(Buffer); cbData = SIZECHARS(Buffer) - lstrlen(Buffer); if (RegQueryValueEx(hDevRegKey, REGSTR_VAL_INFPATH, NULL, NULL, (PVOID)pwch, &cbData ) != ERROR_SUCCESS ) { *Buffer = TEXT('\0'); } if (_wcsicmp( DriverInfoDetailData.InfFileName, Buffer)) { goto SIIDExit; } } else { goto SIIDExit; } cbData = sizeof(Buffer); if (RegQueryValueEx(hDevRegKey, REGSTR_VAL_INFSECTION, NULL, NULL, (LPVOID)Buffer, &cbData ) != ERROR_SUCCESS ) { *Buffer = TEXT('\0'); } if (_wcsicmp(DriverInfoDetailData.SectionName, Buffer)) { goto SIIDExit; } bReturn = TRUE; SIIDExit: if (hDevRegKey != INVALID_HANDLE_VALUE) { RegCloseKey(hDevRegKey); } return bReturn; } BOOL IsDriverNodeInteractiveInstall( PNEWDEVWIZ NewDevWiz, PSP_DRVINFO_DATA DriverInfoData ) /*++ This function checks to see if the given PSP_DRVINFO_DATA is listed as a InteractiveInstall in the [ControlFlags] section of the INF. Return Value: TRUE if the driver node is InteractiveInstall, FALSE otherwise. --*/ { BOOL b; DWORD Err; DWORD DriverInfoDetailDataSize; HINF hInf; INFCONTEXT InfContext; TCHAR szBuffer[MAX_PATH]; DWORD i; LPTSTR p; PSP_DRVINFO_DETAIL_DATA pDriverInfoDetailData; // // Get the SP_DRVINFO_DETAIL_DATA so we can get the list of hardware and // compatible Ids for this device. // b = SetupDiGetDriverInfoDetail(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverInfoData, NULL, 0, &DriverInfoDetailDataSize ); Err = GetLastError(); // // The above call to get the driver info detail data should never succeed because the // buffer will always be too small (we're just interested in sizeing the buffer // at this point). // if (b || (Err != ERROR_INSUFFICIENT_BUFFER)) { // // For some reason the SetupDiGetDriverInfoDetail API failed...so return FALSE. // return FALSE; } // // Now that we know how big of a buffer we need to hold the driver info details, // allocate the buffer and retrieve the information. // pDriverInfoDetailData = malloc(DriverInfoDetailDataSize); if (!pDriverInfoDetailData) { return FALSE; } pDriverInfoDetailData->cbSize = sizeof(SP_DRVINFO_DETAIL_DATA); if (!SetupDiGetDriverInfoDetail(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, DriverInfoData, pDriverInfoDetailData, DriverInfoDetailDataSize, NULL)) { free(pDriverInfoDetailData); return FALSE; } // // At this point we have all of the hardware and compatible IDs for this driver node. // Now we need to open up the INF and see if any of them are referenced in an // "InteractiveInstall" control flag entry. // hInf = SetupOpenInfFile(pDriverInfoDetailData->InfFileName, NULL, INF_STYLE_WIN4, NULL ); if (hInf == INVALID_HANDLE_VALUE) { // // For some reason we couldn't open the INF! // free(pDriverInfoDetailData); return FALSE; } b = FALSE; // // Look at each InteractiveInstall line in the INF's [ControlFlags] section... // if (SetupFindFirstLine(hInf, INFSTR_CONTROLFLAGS_SECTION, INFSTR_KEY_INTERACTIVEINSTALL, &InfContext)) { do { // // and within each line, examine each value... // for (i = 1; SetupGetStringField(&InfContext, i, szBuffer, SIZECHARS(szBuffer), NULL); i++) { // // Check to see if this ID matches up with one of the driver node's hardware // or compatible IDs. // for (p = pDriverInfoDetailData->HardwareID; *p; p+= (lstrlen(p) + 1)) { if (!lstrcmpi(p, szBuffer)) { // // We found a match, this device is marked with // InteractiveInstall. // b = TRUE; } } } } while (SetupFindNextMatchLine(&InfContext, INFSTR_KEY_INTERACTIVEINSTALL, &InfContext)); } SetupCloseInfFile(hInf); free(pDriverInfoDetailData); return b; } BOOL IsDriverAutoInstallable( PNEWDEVWIZ NewDevWiz, PSP_DRVINFO_DATA BestDriverInfoData ) /*++ A driver (the selected driver) is considered auto installable if the following are TRUE: - It is not a printer - This must be a NDWTYPE_FOUNDNEW or NDWTYPE_UPDATE InstallType. - There is no "InteractiveInstall" key in the [ControlFlags] section for any of the Hardware or Compatible IDs of this device. - There are no other drivers in the list that have the same or better Ranks or Dates then the selected driver. - If this is an Update Driver case the selected driver must not be the current driver The reason for this function is that in the Found New Hardware case we want to automatically install the best driver we find. We can't do that in the case where we have multiple drivers that have the same Rank as the best driver found. The problem is that there are certain cases where a user MUST choose the driver in these cases and so we can't automatically make the decision for them. If this API does return FALSE that just means that the user will have to hit Next on one extra wizard page. Return Value: TRUE if this device/driver is auto installable. FALSE if this device/driver is NOT auto installable. This means that we will stop on the install page and the user will have to hit Next to proceede. --*/ { DWORD BestRank; DWORD DriverIndex; DWORD BestRankCount = 0; FILETIME BestDriverDate; DWORDLONG BestDriverVersion; TCHAR BestProviderName[LINE_LEN]; SP_DRVINFO_DATA DriverInfoData; SP_DRVINSTALL_PARAMS DriverInstallParams; // // We only do Auto Installs if this is a NDWTYPE_FOUNDNEW or NDWTYPE_UPDATE install // if ((NewDevWiz->InstallType != NDWTYPE_FOUNDNEW) && (NewDevWiz->InstallType != NDWTYPE_UPDATE)) { return FALSE; } // // We need to special case printers as usuall. // if (IsEqualGUID(&NewDevWiz->DeviceInfoData.ClassGuid, &GUID_DEVCLASS_PRINTER)) { // // This is a printer, so if there is more than one printer driver node // in the list, this isn't auto-installable. // DriverInfoData.cbSize = sizeof(DriverInfoData); if (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, 1, &DriverInfoData )) { return FALSE; } } // // Check if the best driver is listed in the INF as InteractiveInstall. If // it is, and there is more than one driver in the list, then this driver // is not auto-installable. // if (IsDriverNodeInteractiveInstall(NewDevWiz, BestDriverInfoData)) { // // The best driver is marked as InteractiveInstall. If there is more // than one driver in the list then this driver is NOT auto-installable. // DriverInfoData.cbSize = sizeof(DriverInfoData); if (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, 1, &DriverInfoData )) { return FALSE; } } // // First get the Rank of the selected driver. // DriverInstallParams.cbSize = sizeof(DriverInstallParams); if (!SetupDiGetDriverInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, BestDriverInfoData, &DriverInstallParams )) { // // If we can't get the Rank of the best driver then just return FALSE // return FALSE; } // // Remember the Rank and DriverDate of the selected (best) driver. // BestRank = DriverInstallParams.Rank; memcpy(&BestDriverDate, &BestDriverInfoData->DriverDate, sizeof(BestDriverDate)); BestDriverVersion = BestDriverInfoData->DriverVersion; StringCchCopy(BestProviderName, SIZECHARS(BestProviderName), BestDriverInfoData->ProviderName); DriverInfoData.cbSize = sizeof(DriverInfoData); DriverIndex = 0; while (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, DriverIndex++, &DriverInfoData )) { DriverInstallParams.cbSize = sizeof(DriverInstallParams); if (SetupDiGetDriverInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData, &DriverInstallParams )) { // // Don't bother doing the comparison if this driver is marked as a BAD driver // if (!(DriverInstallParams.Flags & DNF_BAD_DRIVER) && !(DriverInstallParams.Flags & DNF_OLD_INET_DRIVER)) { // // Check if the current driver node is identical enough to the // best driver that setupapi picked, so that we need the user // to manually pick the one to install. This should be very // rare that the user would ever need to make this choice. // if (DriverInstallParams.Rank < BestRank) { // // We found another driver node in the list that has a // better (smaller) rank then the best driver. // BestRankCount++; } else if ((DriverInstallParams.Rank == BestRank) && (CompareFileTime(&DriverInfoData.DriverDate, &BestDriverDate) == 1)) { // // We found another driver node in the list that has the // same rank as the best driver and it has a newer driver // date. // BestRankCount++; } else if ((DriverInstallParams.Rank == BestRank) && (CompareFileTime(&DriverInfoData.DriverDate, &BestDriverDate) == 0)) { // // We found another driver node in the list that has the // same rank as the best driver and the driver dates are // the same. // Check the provider names and if they are the same, then // check which driver has the larger version, otherwise // the driver version is meaningless so the user will have // to make the choice. // if (lstrcmpi(BestProviderName, DriverInfoData.ProviderName) == 0) { // // Since the provider names are the same if the current // driver node has a better, or the same, version as the // best driver then the user will have to manually pick // which driver they want. // if (DriverInfoData.DriverVersion >= BestDriverVersion) { BestRankCount++; } } else { // // The provider names are different, which means the // driver version information is meaningless, so the // user will have to pick which driver they want. // BestRankCount++; } } } } } // // If BestRankCount is 2 or more than that means we have multiple drivers with the same or better // Rank as the best driver. // if (BestRankCount >= 2) { return FALSE; } // // If we are in a NDWTYPE_UPDATE install then we need to make sure that the selected driver is not // the current driver. // if ((NewDevWiz->InstallType == NDWTYPE_UPDATE) && IsInstalledDriver(NewDevWiz, BestDriverInfoData)) { return FALSE; } // // If we have come this far then that means // - we're not dealing with a printer // - this is either a NDWTYPE_FOUNDNEW or NDWTYPE_UPDATE install // - this is not an "InteractiveInstall" // - no other driver has the same or better rank then the selected driver. // - if this is a NDWTYPE_UPDATE then the selected driver is not the current driver. // return TRUE; } DWORD WINAPI DriverSearchThreadProc( LPVOID lpVoid ) /*++ Description: In the Wizard, we must do the driver search in a separate thread so that the user has the option to cancel out. --*/ { PNEWDEVWIZ NewDevWiz = (PNEWDEVWIZ)lpVoid; // // Do the driver search. // DoDriverSearch(NewDevWiz->hWnd, NewDevWiz, NewDevWiz->SearchOptions, SPDIT_COMPATDRIVER, FALSE ); // // Post a message to the window to let it know that we are finished with the search // PostMessage(NewDevWiz->hWnd, WUM_SEARCHDRIVERS, TRUE, GetLastError()); return GetLastError(); } INT_PTR CALLBACK DriverSearchingDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { PNEWDEVWIZ NewDevWiz; TCHAR PropSheetHeaderTitle[MAX_PATH]; HICON hicon; UNREFERENCED_PARAMETER(wParam); if (message == WM_INITDIALOG) { LPPROPSHEETPAGE lppsp = (LPPROPSHEETPAGE)lParam; NewDevWiz = (PNEWDEVWIZ)lppsp->lParam; SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)NewDevWiz); return TRUE; } NewDevWiz = (PNEWDEVWIZ)GetWindowLongPtr(hDlg, DWLP_USER); switch(message) { case WM_NOTIFY: switch (((NMHDR FAR *)lParam)->code) { case PSN_SETACTIVE: { SetDriverDescription(hDlg, IDC_DRVUPD_DRVDESC, NewDevWiz); hicon = NULL; if (NewDevWiz->ClassGuidSelected && SetupDiLoadClassIcon(NewDevWiz->ClassGuidSelected, &hicon, NULL)) { hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_SETICON, (WPARAM)hicon, 0L); } else { SetupDiLoadClassIcon(&GUID_DEVCLASS_UNKNOWN, &hicon, NULL); hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_SETICON, (WPARAM)hicon, 0L); } if (hicon) { DestroyIcon(hicon); } NewDevWiz->PrevPage = IDD_NEWDEVWIZ_SEARCHING; NewDevWiz->ExitSearch = FALSE; // // if coming from IDD_NEWDEVWIZ_INTRO or IDD_NEWDEVWIZ_ADVANCEDSEARCH // page then begin driver search // if ((NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_INTRO) || (NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_ADVANCEDSEARCH) || (NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_WUPROMPT)) { DWORD ThreadId; if (LoadString(hNewDev, IDS_NEWDEVWIZ_SEARCHING, PropSheetHeaderTitle, SIZECHARS(PropSheetHeaderTitle))) { PropSheet_SetHeaderTitle(GetParent(hDlg), PropSheet_IdToIndex(GetParent(hDlg), IDD_NEWDEVWIZ_SEARCHING), PropSheetHeaderTitle ); } PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK); ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH), SW_SHOW); ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_TEXT_INTERNETDOWNLOAD), SW_HIDE); Animate_Open(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH), MAKEINTRESOURCE(IDA_SEARCHING)); Animate_Play(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH), 0, -1, -1); NewDevWiz->CurrCursor = NewDevWiz->IdcAppStarting; SetCursor(NewDevWiz->CurrCursor); NewDevWiz->hWnd = hDlg; // // Start up a separate thread to do the driver search on. // When the driver searching is complete the DriverSearchThreadProc // will post us a WUM_SEARCHDRIVERS message. // NewDevWiz->DriverSearchThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)DriverSearchThreadProc, (LPVOID)NewDevWiz, 0, &ThreadId ); } } break; case PSN_WIZNEXT: NewDevWiz->EnterInto = IDD_NEWDEVWIZ_INSTALLDEV; if (NewDevWiz->DoAutoInstall) { // // This is the case where we found a better driver (or a driver in the // Found New Hardware case) and so we will just do an AutoInstall. // SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_INSTALLDEV); } else if (NewDevWiz->CurrentDriverIsSelected) { // // This is the case where the current driver is the best driver. // SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_USECURRENT_FINISH); } else if (NewDevWiz->NoDriversFound) { // // This is the case where we could not find any drivers for this device. // // // If we could not find any drivers for this device then we have two choices, // we either take the user to the Windows Update prompting wizard page, // or take them directly to the no driver found finish page. We will only // take them to the Windows Update prompting page if the AlreadySearchedInet // BOOL is FALSE and the machine is NOT currently connected to the Internet. // if (!IsInternetAvailable(&NewDevWiz->hCdmInstance) || NewDevWiz->AlreadySearchedWU || IsConnectedToInternet()) { SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_NODRIVER_FINISH); } else { SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_WUPROMPT); } } else { // // If we aren't doing an AutoInstall and this is NOT the current driver or // NO driver case, then we need to jump to the page that lists out the drivers. // SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_LISTDRIVERS); } break; case PSN_WIZBACK: if (NewDevWiz->ExitSearch) { SetDlgMsgResult(hDlg, message, -1); break; } NewDevWiz->CurrentDriverIsSelected = FALSE; NewDevWiz->ExitSearch = TRUE; NewDevWiz->CurrCursor = NewDevWiz->IdcWait; SetCursor(NewDevWiz->CurrCursor); CancelDriverSearch(NewDevWiz); NewDevWiz->CurrCursor = NULL; EnableWindow(GetDlgItem(GetParent(hDlg), IDCANCEL), TRUE); SetDlgMsgResult(hDlg, message, NewDevWiz->EnterFrom); Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH)); Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD)); break; case PSN_QUERYCANCEL: if (NewDevWiz->ExitSearch) { SetDlgMsgResult(hDlg, message, TRUE); break; } NewDevWiz->ExitSearch = TRUE; NewDevWiz->CurrCursor = NewDevWiz->IdcWait; SetCursor(NewDevWiz->CurrCursor); CancelDriverSearch(NewDevWiz); NewDevWiz->CurrCursor = NULL; SetDlgMsgResult(hDlg, message, FALSE); break; case PSN_RESET: Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH)); Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD)); break; default: return FALSE; } break; case WM_DESTROY: CancelDriverSearch(NewDevWiz); hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_GETICON, 0, 0L); if (hicon) { DestroyIcon(hicon); } break; case WUM_STARTINTERNETDOWNLOAD: // // Stop the searching animation, and hide it's window, and // start up the Internet download animation. // ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD), SW_SHOW); ShowWindow(GetDlgItem(hDlg, IDC_TEXT_INTERNETDOWNLOAD), SW_SHOW); ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH), SW_HIDE); Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH)); Animate_Open(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD), MAKEINTRESOURCE(IDA_INTERNETDOWNLOAD)); Animate_Play(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD), 0, -1, -1); break; case WUM_ENDINTERNETDOWNLOAD: // // Stop the Internet download animation, and hide it's window // // NOTE: This message doesn't start the searching animation again, // since downloading drivers from the Internet is the last search // action. If that ever changes, then this message should also // start up the searching animation again. // ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_TEXT_INTERNETDOWNLOAD), SW_HIDE); Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD)); break; case WUM_SEARCHDRIVERS: { SP_DRVINFO_DATA DriverInfoData; Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH)); ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_SEARCH), SW_HIDE); Animate_Stop(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD)); ShowWindow(GetDlgItem(hDlg, IDC_ANIMATE_INTERNETDOWNLOAD), SW_HIDE); NewDevWiz->CurrCursor = NULL; SetCursor(NewDevWiz->IdcArrow); if (NewDevWiz->ExitSearch) { break; } DriverInfoData.cbSize = sizeof(SP_DRVINFO_DATA); if (SetupDiGetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData )) { ULONG Status = 0, Problem = 0; // // We basically have three cases when we find a driver for the device. // 1) The driver is autoinstallable. This means we jump directly to the install page. // 2) The driver is the current driver. This means we don't reinstall the driver. // 3) We have muliple drivers or the drivers aren't autoinstallable. This means we // show a list of the drivers to the user and make them pick. // NewDevWiz->NoDriversFound = FALSE; // // If this driver is Auto Installable then we will skip stoping at the Install // confirmation page. // NewDevWiz->DoAutoInstall = IsDriverAutoInstallable(NewDevWiz, &DriverInfoData); // // If the selected driver is the currently installed driver and the // device does NOT have a problem OR we are doing an Update then // jump to the currently installed driver finish page. // if ((((CM_Get_DevNode_Status(&Status, &Problem, NewDevWiz->DeviceInfoData.DevInst, 0) == CR_SUCCESS) && !(Status & DN_HAS_PROBLEM)) || (NewDevWiz->InstallType == NDWTYPE_UPDATE)) && (IsInstalledDriver(NewDevWiz, &DriverInfoData))) { NewDevWiz->CurrentDriverIsSelected = TRUE; } } else { // // This is the case where we could not get a selected driver because we didn't // find any drivers in the driver search. // NewDevWiz->NoDriversFound = TRUE; } // // Auto Jump to the next page. // PropSheet_PressButton(GetParent(hDlg), PSBTN_NEXT); break; } case WM_SETCURSOR: if (NewDevWiz->CurrCursor) { SetCursor(NewDevWiz->CurrCursor); break; } // fall thru to return(FALSE); default: return FALSE; } // end of switch on message return TRUE; } INT_PTR CALLBACK WUPromptDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { static int BackupPage; static DWORD dwWizCase = 0; HICON hicon; PNEWDEVWIZ NewDevWiz = (PNEWDEVWIZ)GetWindowLongPtr(hDlg, DWLP_USER); UNREFERENCED_PARAMETER(wParam); switch (message) { case WM_INITDIALOG: { LPPROPSHEETPAGE lppsp = (LPPROPSHEETPAGE)lParam; NewDevWiz = (PNEWDEVWIZ)lppsp->lParam; SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)NewDevWiz); // // Set the Initial radio button state to connect to the Internet. // CheckRadioButton(hDlg, IDC_WU_SEARCHINET, IDC_WU_NOSEARCH, IDC_WU_SEARCHINET ); } break; case WM_DESTROY: hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_GETICON, 0, 0); if (hicon) { DestroyIcon(hicon); } break; case WM_NOTIFY: switch (((NMHDR FAR *)lParam)->code) { case PSN_SETACTIVE: // // This page is always entered from the driver searching page, which // is a transient page and so it doesn't set the EnterFrom value. // Therefore we will remember the page that entered the driver // searching page, which will be the intro or the advanced search // page. // if ((NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_INTRO) || (NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_ADVANCEDSEARCH)) { BackupPage = NewDevWiz->EnterFrom; } NewDevWiz->PrevPage = IDD_NEWDEVWIZ_WUPROMPT; PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK | PSWIZB_NEXT); hicon = NULL; if (NewDevWiz->ClassGuidSelected && SetupDiLoadClassIcon(NewDevWiz->ClassGuidSelected, &hicon, NULL)) { hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_SETICON, (WPARAM)hicon, 0L); } else { SetupDiLoadClassIcon(&GUID_DEVCLASS_UNKNOWN, &hicon, NULL); hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_SETICON, (WPARAM)hicon, 0L); } if (hicon) { DestroyIcon(hicon); } SetDriverDescription(hDlg, IDC_DRVUPD_DRVDESC, NewDevWiz); break; case PSN_RESET: break; case PSN_WIZNEXT: NewDevWiz->AlreadySearchedWU = TRUE; NewDevWiz->EnterFrom = IDD_NEWDEVWIZ_WUPROMPT; // // Set the SEARCH_INET search option and go to the searching // wizard page. // if (IsDlgButtonChecked(hDlg, IDC_WU_SEARCHINET)) { NewDevWiz->SearchOptions = SEARCH_INET; SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_SEARCHING); } else { SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_NODRIVER_FINISH); } break; case PSN_WIZBACK: NewDevWiz->AlreadySearchedWU = FALSE; SetDlgMsgResult(hDlg, message, BackupPage); break; } break; default: return(FALSE); } return(TRUE); } void FillDriversList( HWND hwndList, PNEWDEVWIZ NewDevWiz, int SignedIconIndex, int CertIconIndex, int UnsignedIconIndex ) { int IndexDriver; int SelectedDriver; int lvIndex; LV_ITEM lviItem; BOOL FoundInstalledDriver; BOOL FoundSelectedDriver; SP_DRVINFO_DATA DriverInfoData; SP_DRVINFO_DETAIL_DATA DriverInfoDetailData; SP_DRVINSTALL_PARAMS DriverInstallParams; SendMessage(hwndList, WM_SETREDRAW, FALSE, 0L); ListView_DeleteAllItems(hwndList); ListView_SetExtendedListViewStyle(hwndList, LVS_EX_LABELTIP | LVS_EX_FULLROWSELECT); IndexDriver = 0; SelectedDriver = 0; DriverInfoData.cbSize = sizeof(SP_DRVINFO_DATA); DriverInfoDetailData.cbSize = sizeof(DriverInfoDetailData); FoundInstalledDriver = FALSE; FoundSelectedDriver = FALSE; while (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, IndexDriver, &DriverInfoData )) { // // Get the DriverInstallParams so we can see if we got this driver from the Internet // DriverInstallParams.cbSize = sizeof(SP_DRVINSTALL_PARAMS); if (SetupDiGetDriverInstallParams(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData, &DriverInstallParams)) { // // Don't show old Internet drivers because we don't have the files locally // anymore to install these! Also don't show BAD drivers. // if ((DriverInstallParams.Flags & DNF_OLD_INET_DRIVER) || (DriverInstallParams.Flags & DNF_BAD_DRIVER)) { IndexDriver++; continue; } lviItem.mask = LVIF_TEXT | LVIF_PARAM | LVIF_IMAGE; lviItem.iItem = IndexDriver; lviItem.iSubItem = 0; lviItem.pszText = DriverInfoData.Description; lviItem.lParam = 0; if (DriverInstallParams.Flags & DNF_AUTHENTICODE_SIGNED) { lviItem.iImage = CertIconIndex; } else if (DriverInstallParams.Flags & DNF_INF_IS_SIGNED) { lviItem.iImage = SignedIconIndex; } else { lviItem.iImage = UnsignedIconIndex; } // // If this is the currently installed driver then set the DRIVER_LIST_CURRENT_DRIVER // flag in the lParam. // if (!FoundInstalledDriver && (NewDevWiz->InstallType == NDWTYPE_UPDATE) && IsInstalledDriver(NewDevWiz, &DriverInfoData)) { lviItem.lParam |= DRIVER_LIST_CURRENT_DRIVER; } // // If this is the selected driver then set the DRIVER_LIST_SELECTED_DRIVER // flag in the lParam // if (!FoundSelectedDriver && IsSelectedDriver(NewDevWiz, &DriverInfoData)) { lviItem.lParam |= DRIVER_LIST_SELECTED_DRIVER; SelectedDriver = IndexDriver; } if (DriverInstallParams.Flags & DNF_INF_IS_SIGNED) { lviItem.lParam |= DRIVER_LIST_SIGNED_DRIVER; } if (DriverInstallParams.Flags & DNF_AUTHENTICODE_SIGNED) { lviItem.lParam |= DRIVER_LIST_AUTHENTICODE_DRIVER; } lvIndex = ListView_InsertItem(hwndList, &lviItem); if (DriverInfoData.DriverVersion != 0) { ULARGE_INTEGER Version; TCHAR VersionString[LINE_LEN]; Version.QuadPart = DriverInfoData.DriverVersion; StringCchPrintf(VersionString, SIZECHARS(VersionString), TEXT("%0d.%0d.%0d.%0d"), HIWORD(Version.HighPart), LOWORD(Version.HighPart), HIWORD(Version.LowPart), LOWORD(Version.LowPart)); ListView_SetItemText(hwndList, lvIndex, 1, VersionString); } else { ListView_SetItemText(hwndList, lvIndex, 1, szUnknown); } ListView_SetItemText(hwndList, lvIndex, 2, DriverInfoData.MfgName); if (DriverInstallParams.Flags & DNF_INET_DRIVER) { // // Driver is from the Internet // TCHAR WindowsUpdate[MAX_PATH]; if (!LoadString(hNewDev, IDS_DEFAULT_INTERNET_HOST, WindowsUpdate, SIZECHARS(WindowsUpdate))) { StringCchCopy(WindowsUpdate, SIZECHARS(WindowsUpdate), TEXT("")); } ListView_SetItemText(hwndList, lvIndex, 3, WindowsUpdate); } else { // // Driver is not from the Internet // if (SetupDiGetDriverInfoDetail(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData, &DriverInfoDetailData, sizeof(DriverInfoDetailData), NULL ) || GetLastError() == ERROR_INSUFFICIENT_BUFFER) { ListView_SetItemText(hwndList, lvIndex, 3, DriverInfoDetailData.InfFileName); } else { ListView_SetItemText(hwndList, lvIndex, 3, TEXT("")); } } } IndexDriver++; } // // Select the SelectedDriver item in the list and scroll it into view // since this is the best driver in the list. // ListView_SetItemState(hwndList, SelectedDriver, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED ); ListView_EnsureVisible(hwndList, SelectedDriver, FALSE); ListView_SetColumnWidth(hwndList, 0, LVSCW_AUTOSIZE_USEHEADER); ListView_SetColumnWidth(hwndList, 1, LVSCW_AUTOSIZE_USEHEADER); ListView_SetColumnWidth(hwndList, 2, LVSCW_AUTOSIZE_USEHEADER); ListView_SetColumnWidth(hwndList, 3, LVSCW_AUTOSIZE_USEHEADER); SendMessage(hwndList, WM_SETREDRAW, TRUE, 0L); } BOOL SelectDriverFromList( HWND hwndList, PNEWDEVWIZ NewDevWiz ) { int lvSelected; SP_DRVINFO_DATA DriverInfoData; LVITEM lvi; DriverInfoData.cbSize = sizeof(SP_DRVINFO_DATA); lvSelected = ListView_GetNextItem(hwndList, -1, LVNI_SELECTED ); if (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, lvSelected, &DriverInfoData )) { SetupDiSetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData ); } // // if there is no selected driver call DIF_SELECTBESTCOMPATDRV. // if (!SetupDiGetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, &DriverInfoData )) { if (SetupDiEnumDriverInfo(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, SPDIT_COMPATDRIVER, 0, &DriverInfoData )) { // // Pick the best driver from the list we just created // SetupDiCallClassInstaller(DIF_SELECTBESTCOMPATDRV, NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData ); } else { SetupDiSetSelectedDriver(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData, NULL ); } } // // Return TRUE if the selected driver in the list is the current driver, otherwise return FALSE // ZeroMemory(&lvi, sizeof(lvi)); lvi.iItem = lvSelected; lvi.mask = LVIF_PARAM; if (ListView_GetItem(hwndList, &lvi) && (lvi.lParam & DRIVER_LIST_CURRENT_DRIVER)) { return(TRUE); } return(FALSE); } INT_PTR CALLBACK ListDriversDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { PNEWDEVWIZ NewDevWiz = (PNEWDEVWIZ)GetWindowLongPtr(hDlg, DWLP_USER); static int BackupPage; static HIMAGELIST himl = NULL; static int SignedIconIndex, CertIconIndex, UnsignedIconIndex; OSVERSIONINFOEX osVersionInfoEx; HICON hicon; UNREFERENCED_PARAMETER(wParam); switch (message) { case WM_INITDIALOG: { HWND hwndList; LV_COLUMN lvcCol; LPPROPSHEETPAGE lppsp = (LPPROPSHEETPAGE)lParam; TCHAR Buffer[64]; HFONT hfont; LOGFONT LogFont; NewDevWiz = (PNEWDEVWIZ)lppsp->lParam; SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)NewDevWiz); // // Create the normal and bold fonts // hfont = (HFONT)SendMessage(GetDlgItem(hDlg, IDC_SIGNED_TEXT), WM_GETFONT, 0, 0); GetObject(hfont, sizeof(LogFont), &LogFont); NewDevWiz->hfontTextNormal = CreateFontIndirect(&LogFont); hfont = (HFONT)SendMessage(GetDlgItem(hDlg, IDC_SIGNED_TEXT), WM_GETFONT, 0, 0); GetObject(hfont, sizeof(LogFont), &LogFont); LogFont.lfWeight = FW_BOLD; NewDevWiz->hfontTextBold = CreateFontIndirect(&LogFont); hwndList = GetDlgItem(hDlg, IDC_LISTDRIVERS_LISTVIEW); // // Create the image list that contains the signed and not signed icons. // himl = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_MASK | ((GetWindowLong(GetParent(hDlg), GWL_EXSTYLE) & WS_EX_LAYOUTRTL) ? ILC_MIRROR : 0), 1, 1); // // Associate the image list with the list view. // if (himl) { HICON hIcon; ImageList_SetBkColor(himl, GetSysColor(COLOR_WINDOW)); // // Add the signed and unsigned icons to the imagelist. // if ((hIcon = LoadIcon(hNewDev, MAKEINTRESOURCE(IDI_BLANK))) != NULL) { UnsignedIconIndex = ImageList_AddIcon(himl, hIcon); } if ((hIcon = LoadIcon(hNewDev, MAKEINTRESOURCE(IDI_SIGNED))) != NULL) { SignedIconIndex = ImageList_AddIcon(himl, hIcon); } if ((hIcon = LoadIcon(hNewDev, MAKEINTRESOURCE(IDI_CERT))) != NULL) { CertIconIndex = ImageList_AddIcon(himl, hIcon); } ListView_SetImageList(hwndList, himl, LVSIL_SMALL ); } // // Insert columns for listview. // 0 == device name // 1 == version // 2 == manufacturer // 3 == INF location // lvcCol.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM; lvcCol.fmt = LVCFMT_LEFT; lvcCol.pszText = Buffer; lvcCol.iSubItem = 0; LoadString(hNewDev, IDS_DRIVERDESC, Buffer, SIZECHARS(Buffer)); ListView_InsertColumn(hwndList, 0, &lvcCol); lvcCol.iSubItem = 1; LoadString(hNewDev, IDS_DRIVERVERSION, Buffer, SIZECHARS(Buffer)); ListView_InsertColumn(hwndList, 1, &lvcCol); lvcCol.iSubItem = 2; LoadString(hNewDev, IDS_DRIVERMFG, Buffer, SIZECHARS(Buffer)); ListView_InsertColumn(hwndList, 2, &lvcCol); lvcCol.iSubItem = 3; LoadString(hNewDev, IDS_DRIVERINF, Buffer, SIZECHARS(Buffer)); ListView_InsertColumn(hwndList, 3, &lvcCol); SendMessage(hwndList, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT ); } break; case WM_DESTROY: if (NewDevWiz->hfontTextNormal ) { DeleteObject(NewDevWiz->hfontTextNormal); NewDevWiz->hfontTextBigBold = NULL; } if (NewDevWiz->hfontTextBold ) { DeleteObject(NewDevWiz->hfontTextBold); NewDevWiz->hfontTextBold = NULL; } if (himl) { ImageList_Destroy(himl); } hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_GETICON, 0, 0L); if (hicon) { DestroyIcon(hicon); } break; case WM_NOTIFY: switch (((NMHDR FAR *)lParam)->code) { case PSN_SETACTIVE: { // // We are always entered from the driver searching page, but it // is a transient page so it doesn't set the EnterFrom value, which // means the EnterFrom is still from the page that entered the // searching page. If this happens to be either the Intro, // Advanced Search, or the WU Prompt page then we need to remember // that so we can jump back to that page if the user hits the Back // button. // if ((NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_INTRO) || (NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_ADVANCEDSEARCH) || (NewDevWiz->EnterFrom == IDD_NEWDEVWIZ_WUPROMPT)) { BackupPage = NewDevWiz->EnterFrom; } NewDevWiz->PrevPage = IDD_NEWDEVWIZ_LISTDRIVERS; SetDriverDescription(hDlg, IDC_DRVUPD_DRVDESC, NewDevWiz); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_ICON), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_TEXT), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_LINK), SW_HIDE); hicon = NULL; if (NewDevWiz->ClassGuidSelected && SetupDiLoadClassIcon(NewDevWiz->ClassGuidSelected, &hicon, NULL)) { hicon = (HICON)SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_SETICON, (WPARAM)hicon, 0L); } else { SetupDiLoadClassIcon(&GUID_DEVCLASS_UNKNOWN, &hicon, NULL); SendDlgItemMessage(hDlg, IDC_CLASSICON, STM_SETICON, (WPARAM)hicon, 0L); } if (hicon) { DestroyIcon(hicon); } // // Fill the list view // FillDriversList(GetDlgItem(hDlg, IDC_LISTDRIVERS_LISTVIEW), NewDevWiz, SignedIconIndex, CertIconIndex, UnsignedIconIndex); } break; case PSN_RESET: break; case PSN_WIZBACK: SetDlgMsgResult(hDlg, message, BackupPage); break; case PSN_WIZNEXT: NewDevWiz->EnterFrom = IDD_NEWDEVWIZ_LISTDRIVERS; if (SelectDriverFromList(GetDlgItem(hDlg, IDC_LISTDRIVERS_LISTVIEW), NewDevWiz)) { NewDevWiz->EnterInto = IDD_NEWDEVWIZ_USECURRENT_FINISH; SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_USECURRENT_FINISH); } else { NewDevWiz->EnterInto = IDD_NEWDEVWIZ_INSTALLDEV; SetDlgMsgResult(hDlg, message, IDD_NEWDEVWIZ_INSTALLDEV); } break; case LVN_ITEMCHANGED: { LPNM_LISTVIEW lpnmlv = (LPNM_LISTVIEW)lParam; int StringId = 0; int DigitalSignatureSignedId = 0; int IconSignedId = 0; hicon = NULL; if ((lpnmlv->uChanged & LVIF_STATE)) { if (lpnmlv->uNewState & LVIS_SELECTED) { // // lParam & DRIVER_LIST_CURRENT_DRIVER means this is the currently installed driver. // lParam & DRIVER_LIST_SELECTED_DRIVER means this is the selected/best driver. // if (lpnmlv->lParam & DRIVER_LIST_CURRENT_DRIVER) { StringId = IDS_DRIVER_CURR; } if (lpnmlv->lParam & DRIVER_LIST_AUTHENTICODE_DRIVER) { DigitalSignatureSignedId = IDS_DRIVER_AUTHENTICODE_SIGNED; IconSignedId = IDI_CERT; } else if (lpnmlv->lParam & DRIVER_LIST_SIGNED_DRIVER) { DigitalSignatureSignedId = IDS_DRIVER_IS_SIGNED; IconSignedId = IDI_SIGNED; } else { DigitalSignatureSignedId = IDS_DRIVER_NOT_SIGNED; IconSignedId = IDI_WARN; } hicon = LoadImage(hNewDev, MAKEINTRESOURCE(IconSignedId), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0 ); if (NewDevWiz->hfontTextNormal && NewDevWiz->hfontTextBold) { SetWindowFont(GetDlgItem(hDlg, IDC_SIGNED_TEXT), (lpnmlv->lParam & DRIVER_LIST_SIGNED_DRIVER) ? NewDevWiz->hfontTextNormal : NewDevWiz->hfontTextBold, TRUE ); } ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_ICON), SW_SHOW); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_TEXT), SW_SHOW); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_LINK), SW_SHOW); PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK | PSWIZB_NEXT); } else { ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_ICON), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_TEXT), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_SIGNED_LINK), SW_HIDE); PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK); } if (!StringId) { SetDlgItemText(hDlg, IDC_NDW_TEXT, TEXT("")); } else { SetDlgText(hDlg, IDC_NDW_TEXT, StringId, StringId); } if (!DigitalSignatureSignedId) { SetDlgItemText(hDlg, IDC_SIGNED_TEXT, TEXT("")); } else { SetDlgText(hDlg, IDC_SIGNED_TEXT, DigitalSignatureSignedId, DigitalSignatureSignedId); } if (hicon) { hicon = (HICON)SendDlgItemMessage(hDlg, IDC_SIGNED_ICON, STM_SETICON, (WPARAM)hicon, 0L ); } if (hicon) { DestroyIcon(hicon); } } } break; case NM_RETURN: case NM_CLICK: if((((LPNMHDR)lParam)->idFrom) == IDC_SIGNED_LINK) { // // We need to know if this is a server machine or a workstation // machine since there are different help topic structures for // the different products. // ZeroMemory(&osVersionInfoEx, sizeof(osVersionInfoEx)); osVersionInfoEx.dwOSVersionInfoSize = sizeof(osVersionInfoEx); if (!GetVersionEx((LPOSVERSIONINFO)&osVersionInfoEx)) { // // If GetVersionEx fails then assume this is a workstation // machine. // osVersionInfoEx.wProductType = VER_NT_WORKSTATION; } ShellExecute(hDlg, TEXT("open"), TEXT("HELPCTR.EXE"), (osVersionInfoEx.wProductType == VER_NT_WORKSTATION) ? TEXT("HELPCTR.EXE -url hcp://services/subsite?node=TopLevelBucket_4/Hardware&topic=MS-ITS%3A%25HELP_LOCATION%25%5Csysdm.chm%3A%3A/logo_testing.htm") : TEXT("HELPCTR.EXE -url hcp://services/subsite?node=Hardware&topic=MS-ITS%3A%25HELP_LOCATION%25%5Csysdm.chm%3A%3A/logo_testing.htm"), NULL, SW_SHOWNORMAL ); } break; } break; default: return(FALSE); } return(TRUE); } INT_PTR CALLBACK UseCurrentDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { PNEWDEVWIZ NewDevWiz = (PNEWDEVWIZ)GetWindowLongPtr(hDlg, DWLP_USER); UNREFERENCED_PARAMETER(wParam); UNREFERENCED_PARAMETER(wParam); switch (message) { case WM_INITDIALOG: { LPPROPSHEETPAGE lppsp = (LPPROPSHEETPAGE)lParam; NewDevWiz = (PNEWDEVWIZ)lppsp->lParam; SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)NewDevWiz); if (NewDevWiz->hfontTextBigBold) { SetWindowFont(GetDlgItem(hDlg, IDC_FINISH_MSG1), NewDevWiz->hfontTextBigBold, TRUE); } } break; case WM_DESTROY: break; case WM_NOTIFY: switch (((NMHDR FAR *)lParam)->code) { case PSN_SETACTIVE: NewDevWiz->PrevPage = IDD_NEWDEVWIZ_USECURRENT_FINISH; PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK | PSWIZB_FINISH); break; case PSN_RESET: break; case PSN_WIZBACK: NewDevWiz->CurrentDriverIsSelected = FALSE; SetDlgMsgResult(hDlg, message, NewDevWiz->EnterFrom); break; } break; default: return(FALSE); } return(TRUE); } INT_PTR InitNoDriversDlgProc( HWND hDlg, PNEWDEVWIZ NewDevWiz ) { if (NewDevWiz->hfontTextBigBold) { SetWindowFont(GetDlgItem(hDlg, IDC_FINISH_MSG1), NewDevWiz->hfontTextBigBold, TRUE); } if (NDWTYPE_UPDATE == NewDevWiz->InstallType) { ShowWindow(GetDlgItem(hDlg, IDC_FINISH_MSG3), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_HELPCENTER_ICON), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_HELPCENTER_TEXT), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_FINISH_PROMPT), SW_HIDE); } else { CheckDlgButton(hDlg, IDC_FINISH_PROMPT, BST_CHECKED); // // If this user has the policy set to not send the Hardware Id to Windows // Update then don't put in the text about launching help center. // if (GetLogPnPIdPolicy() == FALSE) { ShowWindow(GetDlgItem(hDlg, IDC_FINISH_MSG3), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_HELPCENTER_ICON), SW_HIDE); ShowWindow(GetDlgItem(hDlg, IDC_HELPCENTER_TEXT), SW_HIDE); } } return TRUE; } INT_PTR CALLBACK NoDriverDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) { PNEWDEVWIZ NewDevWiz = (PNEWDEVWIZ)GetWindowLongPtr(hDlg, DWLP_USER); HICON hicon; switch (message) { case WM_INITDIALOG: { LPPROPSHEETPAGE lppsp = (LPPROPSHEETPAGE)lParam; NewDevWiz = (PNEWDEVWIZ)lppsp->lParam; SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)NewDevWiz); InitNoDriversDlgProc(hDlg, NewDevWiz); } break; case WM_DESTROY: break; case WM_NOTIFY: switch (((NMHDR FAR *)lParam)->code) { case PSN_SETACTIVE: NewDevWiz->PrevPage = IDD_NEWDEVWIZ_USECURRENT_FINISH; // // Set the Help Center icon next to the text // hicon = LoadImage(hNewDev, MAKEINTRESOURCE(IDI_HELPCENTER), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0 ); if (hicon) { hicon = (HICON)SendDlgItemMessage(hDlg, IDC_HELPCENTER_ICON, STM_SETICON, (WPARAM)hicon, 0L); } if (hicon) { DestroyIcon(hicon); } // // Set the Info icon next to the text // hicon = LoadImage(hNewDev, MAKEINTRESOURCE(IDI_INFO), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0 ); if (hicon) { hicon = (HICON)SendDlgItemMessage(hDlg, IDC_INFO_ICON, STM_SETICON, (WPARAM)hicon, 0L); } if (hicon) { DestroyIcon(hicon); } if (NewDevWiz->InstallType == NDWTYPE_FOUNDNEW) { SetTimer(hDlg, INSTALL_COMPLETE_CHECK_TIMERID, INSTALL_COMPLETE_CHECK_TIMEOUT, NULL); } PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK | PSWIZB_FINISH); break; case PSN_RESET: KillTimer(hDlg, INSTALL_COMPLETE_CHECK_TIMERID); break; case PSN_WIZFINISH: KillTimer(hDlg, INSTALL_COMPLETE_CHECK_TIMERID); if (IsDlgButtonChecked(hDlg, IDC_FINISH_PROMPT)) { InstallNullDriver(NewDevWiz, (NewDevWiz->Capabilities & CM_DEVCAP_RAWDEVICEOK) ? FALSE : TRUE ); } else { NewDevWiz->LastError = ERROR_CANCELLED; } // // Set the BOOL that tells us to log that we could not find a // driver for this device. // if ((NewDevWiz->InstallType == NDWTYPE_FOUNDNEW) && GetLogPnPIdPolicy()) { NewDevWiz->LogDriverNotFound = TRUE; } break; case PSN_WIZBACK: NewDevWiz->CurrentDriverIsSelected = FALSE; SetDlgMsgResult(hDlg, message, NewDevWiz->EnterFrom); KillTimer(hDlg, INSTALL_COMPLETE_CHECK_TIMERID); break; } break; case WM_TIMER: if (INSTALL_COMPLETE_CHECK_TIMERID == wParam) { if (IsInstallComplete(NewDevWiz->hDeviceInfo, &NewDevWiz->DeviceInfoData)) { PropSheet_PressButton(GetParent(hDlg), PSBTN_CANCEL); } } break; default: return(FALSE); } return(TRUE); }
31656.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License (as published by the Free * Software Foundation) version 2.1 dated February 1999. * * $Revision$ ***********************************************************************EHEADER*/ /****************************************************************************** * * Matvec functions for hypre_CSRMatrix class. * *****************************************************************************/ #include "_hypre_parcsr_mv.h" #include <assert.h> /*#ifdef HYPRE_USING_GPU extern "C" { void PackOnDevice(HYPRE_Complex *send_data,HYPRE_Complex *x_local_data, HYPRE_Int *send_map, HYPRE_Int begin,HYPRE_Int end,cudaStream_t s); } #endif */ /*-------------------------------------------------------------------------- * hypre_ParCSRMatrixMatvec *--------------------------------------------------------------------------*/ // y = alpha*A*x + beta*b HYPRE_Int hypre_ParCSRMatrixMatvecOutOfPlace( HYPRE_Complex alpha, hypre_ParCSRMatrix *A, hypre_ParVector *x, HYPRE_Complex beta, hypre_ParVector *b, hypre_ParVector *y ) { hypre_ParCSRCommHandle **comm_handle; hypre_ParCSRCommPkg *comm_pkg = hypre_ParCSRMatrixCommPkg(A); hypre_CSRMatrix *diag = hypre_ParCSRMatrixDiag(A); hypre_CSRMatrix *offd = hypre_ParCSRMatrixOffd(A); hypre_Vector *x_local = hypre_ParVectorLocalVector(x); hypre_Vector *b_local = hypre_ParVectorLocalVector(b); hypre_Vector *y_local = hypre_ParVectorLocalVector(y); HYPRE_BigInt num_rows = hypre_ParCSRMatrixGlobalNumRows(A); HYPRE_BigInt num_cols = hypre_ParCSRMatrixGlobalNumCols(A); hypre_Vector *x_tmp; HYPRE_BigInt x_size = hypre_ParVectorGlobalSize(x); HYPRE_BigInt b_size = hypre_ParVectorGlobalSize(b); HYPRE_BigInt y_size = hypre_ParVectorGlobalSize(y); HYPRE_Int num_vectors = hypre_VectorNumVectors(x_local); HYPRE_Int num_cols_offd = hypre_CSRMatrixNumCols(offd); HYPRE_Int ierr = 0; HYPRE_Int num_sends, i, j, jv, index, start; HYPRE_Int vecstride = hypre_VectorVectorStride( x_local ); HYPRE_Int idxstride = hypre_VectorIndexStride( x_local ); HYPRE_Complex *x_tmp_data, **x_buf_data; HYPRE_Complex *x_local_data = hypre_VectorData(x_local); /*--------------------------------------------------------------------- * Check for size compatibility. ParMatvec returns ierr = 11 if * length of X doesn't equal the number of columns of A, * ierr = 12 if the length of Y doesn't equal the number of rows * of A, and ierr = 13 if both are true. * * Because temporary vectors are often used in ParMatvec, none of * these conditions terminates processing, and the ierr flag * is informational only. *--------------------------------------------------------------------*/ PUSH_RANGE_PAYLOAD("PAR_CSR_MATVEC",5,x_size); hypre_assert( idxstride>0 ); if (num_cols != x_size) ierr = 11; if (num_rows != y_size || num_rows != b_size) ierr = 12; if (num_cols != x_size && (num_rows != y_size || num_rows != b_size)) ierr = 13; hypre_assert( hypre_VectorNumVectors(b_local)==num_vectors ); hypre_assert( hypre_VectorNumVectors(y_local)==num_vectors ); if ( num_vectors==1 ) x_tmp = hypre_SeqVectorCreate( num_cols_offd ); else { hypre_assert( num_vectors>1 ); x_tmp = hypre_SeqMultiVectorCreate( num_cols_offd, num_vectors ); } /*--------------------------------------------------------------------- * If there exists no CommPkg for A, a CommPkg is generated using * equally load balanced partitionings *--------------------------------------------------------------------*/ if (!comm_pkg) { hypre_MatvecCommPkgCreate(A); comm_pkg = hypre_ParCSRMatrixCommPkg(A); } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] -= hypre_MPI_Wtime(); #endif PUSH_RANGE("MPI_PACK",3); HYPRE_Int use_persistent_comm = 0; #ifdef HYPRE_USING_PERSISTENT_COMM use_persistent_comm = num_vectors == 1; // JSP TODO: we can use persistent communication for multi-vectors, // but then we need different communication handles for different // num_vectors. hypre_ParCSRPersistentCommHandle *persistent_comm_handle; #endif if ( use_persistent_comm ) { #ifdef HYPRE_USING_PERSISTENT_COMM PUSH_RANGE("PERCOMM1",0); persistent_comm_handle = hypre_ParCSRCommPkgGetPersistentCommHandle(1, comm_pkg); HYPRE_Int num_recvs = hypre_ParCSRCommPkgNumRecvs(comm_pkg); hypre_assert(num_cols_offd == hypre_ParCSRCommPkgRecvVecStart(comm_pkg, num_recvs)); hypre_VectorData(x_tmp) = (HYPRE_Complex *)persistent_comm_handle->recv_data; hypre_SeqVectorSetDataOwner(x_tmp, 0); POP_RANGE; #endif } else { comm_handle = hypre_CTAlloc(hypre_ParCSRCommHandle*, num_vectors, HYPRE_MEMORY_HOST); } hypre_SeqVectorInitialize(x_tmp); x_tmp_data = hypre_VectorData(x_tmp); num_sends = hypre_ParCSRCommPkgNumSends(comm_pkg); if (!use_persistent_comm) { x_buf_data = hypre_CTAlloc( HYPRE_Complex*, num_vectors , HYPRE_MEMORY_HOST); for ( jv=0; jv<num_vectors; ++jv ) x_buf_data[jv] = hypre_CTAlloc(HYPRE_Complex, hypre_ParCSRCommPkgSendMapStart (comm_pkg, num_sends), HYPRE_MEMORY_SHARED); } if ( num_vectors==1 ) { HYPRE_Int begin = hypre_ParCSRCommPkgSendMapStart(comm_pkg, 0); HYPRE_Int end = hypre_ParCSRCommPkgSendMapStart(comm_pkg, num_sends); #if defined(HYPRE_USING_GPU) && defined(HYPRE_USING_UNIFIED_MEMORY) PUSH_RANGE("PERCOMM2DEVICE",4); #ifdef HYPRE_USING_PERSISTENT_COMM PackOnDevice((HYPRE_Complex*)persistent_comm_handle->send_data,x_local_data,hypre_ParCSRCommPkgSendMapElmts(comm_pkg),begin,end,HYPRE_STREAM(4)); //PrintPointerAttributes(persistent_comm_handle->send_data); #else #if defined(DEBUG_PACK_ON_DEVICE) hypre_CheckErrorDevice(cudaPeekAtLastError()); hypre_CheckErrorDevice(cudaDeviceSynchronize()); ASSERT_MANAGED(x_buf_data[0]); ASSERT_MANAGED(x_local_data); ASSERT_MANAGED(hypre_ParCSRCommPkgSendMapElmts(comm_pkg)); #endif /* printf("%d %d %d\n", PointerAttributes(x_buf_data[0]), PointerAttributes(x_local_data), PointerAttributes(hypre_ParCSRCommPkgSendMapElmts(comm_pkg))); */ PackOnDevice((HYPRE_Complex*)x_buf_data[0],x_local_data,hypre_ParCSRCommPkgSendMapElmts(comm_pkg),begin,end,HYPRE_STREAM(4)); #if defined(DEBUG_PACK_ON_DEVICE) hypre_CheckErrorDevice(cudaPeekAtLastError()); hypre_CheckErrorDevice(cudaDeviceSynchronize()); #endif #endif POP_RANGE; SetAsyncMode(1); hypre_CheckErrorDevice(cudaPeekAtLastError()); hypre_CheckErrorDevice(cudaDeviceSynchronize()); hypre_CSRMatrixMatvecOutOfPlace( alpha, diag, x_local, beta, b_local, y_local, 0); //hypre_SeqVectorUpdateHost(y_local); //hypre_SeqVectorUpdateHost(x_local); //hypre_SeqVectorUpdateHost(b_local); SetAsyncMode(0); #else #ifdef HYPRE_USING_MAPPED_OPENMP_OFFLOAD PUSH_RANGE("MPI_PACK_OMP",4); SyncVectorToHost(x_local); #endif #if defined(HYPRE_USING_OPENMP_OFFLOAD_NOT_USED) HYPRE_Int num_threads=64; HYPRE_Int num_teams = (end-begin+(end-begin)%num_threads)/num_threads; HYPRE_Int *local_send_map_elmts = comm_pkg->send_map_elmts; printf("USING OFFLOADED PACKING OF BUFER\n"); #pragma omp target teams distribute parallel for private(i) num_teams(num_teams) thread_limit(num_threads) is_device_ptr(x_local_data,x_buf_data,comm_pkg,local_send_map_elmts) #elif defined(HYPRE_USING_OPENMP) #pragma omp parallel for HYPRE_SMP_SCHEDULE #endif for (i = begin; i < end; i++) { #ifdef HYPRE_USING_PERSISTENT_COMM ((HYPRE_Complex *)persistent_comm_handle->send_data)[i - begin] #else x_buf_data[0][i - begin] #endif = x_local_data[hypre_ParCSRCommPkgSendMapElmt(comm_pkg,i)]; } POP_RANGE; // "MPI_PACK_OMP" #endif } else for ( jv=0; jv<num_vectors; ++jv ) { index = 0; for (i = 0; i < num_sends; i++) { start = hypre_ParCSRCommPkgSendMapStart(comm_pkg, i); for (j = start; j < hypre_ParCSRCommPkgSendMapStart(comm_pkg, i+1); j++) x_buf_data[jv][index++] = x_local_data[ jv*vecstride + idxstride*hypre_ParCSRCommPkgSendMapElmt(comm_pkg,j) ]; } } hypre_assert( idxstride==1 ); /* ... The assert is because the following loop only works for 'column' storage of a multivector. This needs to be fixed to work more generally, at least for 'row' storage. This in turn, means either change CommPkg so num_sends is no.zones*no.vectors (not no.zones) or, less dangerously, put a stride in the logic of CommHandleCreate (stride either from a new arg or a new variable inside CommPkg). Or put the num_vector iteration inside CommHandleCreate (perhaps a new multivector variant of it). */ #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] += hypre_MPI_Wtime(); hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] -= hypre_MPI_Wtime(); #endif POP_RANGE; PUSH_RANGE("MPI_HALO_EXC_SEND",4); if (use_persistent_comm) { #ifdef HYPRE_USING_PERSISTENT_COMM hypre_ParCSRPersistentCommHandleStart(persistent_comm_handle); #endif } else { for ( jv=0; jv<num_vectors; ++jv ) { comm_handle[jv] = hypre_ParCSRCommHandleCreate ( 1, comm_pkg, x_buf_data[jv], &(x_tmp_data[jv*num_cols_offd]) ); } } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] += hypre_MPI_Wtime(); #endif POP_RANGE; #if !defined(HYPRE_USING_GPU) || !defined(HYPRE_USING_UNIFIED_MEMORY) hypre_CSRMatrixMatvecOutOfPlace( alpha, diag, x_local, beta, b_local, y_local, 0); #endif #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] -= hypre_MPI_Wtime(); #endif PUSH_RANGE("MPI_HALO_EXC_RECV",6); if (use_persistent_comm) { #ifdef HYPRE_USING_PERSISTENT_COMM hypre_ParCSRPersistentCommHandleWait(persistent_comm_handle); #endif } else { for ( jv=0; jv<num_vectors; ++jv ) { hypre_ParCSRCommHandleDestroy(comm_handle[jv]); comm_handle[jv] = NULL; } hypre_TFree(comm_handle, HYPRE_MEMORY_HOST); } POP_RANGE; #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] += hypre_MPI_Wtime(); #endif //hypre_SeqVectorUpdateDevice(x_tmp); #ifdef HYPRE_USING_MAPPED_OPENMP_OFFLOAD UpdateHRC(x_tmp); #endif if (num_cols_offd) hypre_CSRMatrixMatvec( alpha, offd, x_tmp, 1.0, y_local); //if (num_cols_offd) hypre_SeqVectorUpdateHost(y_local); //hypre_SeqVectorUpdateHost(x_tmp); #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] -= hypre_MPI_Wtime(); #endif PUSH_RANGE("MPI_UNPACK",5); hypre_SeqVectorDestroy(x_tmp); x_tmp = NULL; if (!use_persistent_comm) { for ( jv=0; jv<num_vectors; ++jv ) hypre_TFree(x_buf_data[jv], HYPRE_MEMORY_SHARED); hypre_TFree(x_buf_data, HYPRE_MEMORY_HOST); } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] += hypre_MPI_Wtime(); #endif POP_RANGE; #if defined(HYPRE_USING_GPU) && defined(HYPRE_USING_UNIFIED_MEMORY) hypre_CheckErrorDevice(cudaStreamSynchronize(HYPRE_STREAM(4))); #endif POP_RANGE; // PAR_CSR return ierr; } HYPRE_Int hypre_ParCSRMatrixMatvec( HYPRE_Complex alpha, hypre_ParCSRMatrix *A, hypre_ParVector *x, HYPRE_Complex beta, hypre_ParVector *y ) { return hypre_ParCSRMatrixMatvecOutOfPlace(alpha, A, x, beta, y, y); } #ifdef HYPRE_USING_MAPPED_OPENMP_OFFLOAD HYPRE_Int hypre_ParCSRMatrixMatvec3( HYPRE_Complex alpha, hypre_ParCSRMatrix *A, hypre_ParVector *x, HYPRE_Complex beta, hypre_ParVector *y ) { HYPRE_Int rval=hypre_ParCSRMatrixMatvecOutOfPlace(alpha, A, x, beta, y, y); hypre_SeqVectorUpdateHost(y->local_vector); } HYPRE_Int hypre_ParCSRMatrixMatvecOutOfPlace3( HYPRE_Complex alpha, hypre_ParCSRMatrix *A, hypre_ParVector *x, HYPRE_Complex beta, hypre_ParVector *b, hypre_ParVector *y ) { hypre_ParCSRMatrixMatvecOutOfPlace(alpha,A,x,beta,b,y); hypre_SeqVectorUpdateHost(y->local_vector); } #endif /*-------------------------------------------------------------------------- * hypre_ParCSRMatrixMatvecT * * Performs y <- alpha * A^T * x + beta * y * *--------------------------------------------------------------------------*/ HYPRE_Int hypre_ParCSRMatrixMatvecT( HYPRE_Complex alpha, hypre_ParCSRMatrix *A, hypre_ParVector *x, HYPRE_Complex beta, hypre_ParVector *y ) { hypre_ParCSRCommHandle **comm_handle; hypre_ParCSRCommPkg *comm_pkg = hypre_ParCSRMatrixCommPkg(A); hypre_CSRMatrix *diag = hypre_ParCSRMatrixDiag(A); hypre_CSRMatrix *offd = hypre_ParCSRMatrixOffd(A); hypre_Vector *x_local = hypre_ParVectorLocalVector(x); hypre_Vector *y_local = hypre_ParVectorLocalVector(y); hypre_Vector *y_tmp; HYPRE_Int vecstride = hypre_VectorVectorStride( y_local ); HYPRE_Int idxstride = hypre_VectorIndexStride( y_local ); HYPRE_Complex *y_tmp_data, **y_buf_data; HYPRE_Complex *y_local_data = hypre_VectorData(y_local); HYPRE_BigInt num_rows = hypre_ParCSRMatrixGlobalNumRows(A); HYPRE_BigInt num_cols = hypre_ParCSRMatrixGlobalNumCols(A); HYPRE_Int num_cols_offd = hypre_CSRMatrixNumCols(offd); HYPRE_BigInt x_size = hypre_ParVectorGlobalSize(x); HYPRE_BigInt y_size = hypre_ParVectorGlobalSize(y); HYPRE_Int num_vectors = hypre_VectorNumVectors(y_local); HYPRE_Int i, j, jv, index, start, num_sends; HYPRE_Int ierr = 0; if (y==NULL) { printf("NULLY %p\b", (void*) y); return 1; } /*--------------------------------------------------------------------- * Check for size compatibility. MatvecT returns ierr = 1 if * length of X doesn't equal the number of rows of A, * ierr = 2 if the length of Y doesn't equal the number of * columns of A, and ierr = 3 if both are true. * * Because temporary vectors are often used in MatvecT, none of * these conditions terminates processing, and the ierr flag * is informational only. *--------------------------------------------------------------------*/ if (num_rows != x_size) ierr = 1; if (num_cols != y_size) ierr = 2; if (num_rows != x_size && num_cols != y_size) ierr = 3; /*----------------------------------------------------------------------- *-----------------------------------------------------------------------*/ if ( num_vectors==1 ) { y_tmp = hypre_SeqVectorCreate(num_cols_offd); } else { y_tmp = hypre_SeqMultiVectorCreate(num_cols_offd,num_vectors); } /*--------------------------------------------------------------------- * If there exists no CommPkg for A, a CommPkg is generated using * equally load balanced partitionings *--------------------------------------------------------------------*/ if (!comm_pkg) { hypre_MatvecCommPkgCreate(A); comm_pkg = hypre_ParCSRMatrixCommPkg(A); } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] -= hypre_MPI_Wtime(); #endif HYPRE_Int use_persistent_comm = 0; #ifdef HYPRE_USING_PERSISTENT_COMM use_persistent_comm = num_vectors == 1; // JSP TODO: we can use persistent communication for multi-vectors, // but then we need different communication handles for different // num_vectors. hypre_ParCSRPersistentCommHandle *persistent_comm_handle; #endif if (use_persistent_comm) { #ifdef HYPRE_USING_PERSISTENT_COMM // JSP TODO: we should be also able to use persistent communication for multiple vectors persistent_comm_handle = hypre_ParCSRCommPkgGetPersistentCommHandle(2, comm_pkg); HYPRE_Int num_recvs = hypre_ParCSRCommPkgNumRecvs(comm_pkg); hypre_assert(num_cols_offd == hypre_ParCSRCommPkgRecvVecStart(comm_pkg, num_recvs)); hypre_VectorData(y_tmp) = (HYPRE_Complex *)persistent_comm_handle->send_data; hypre_SeqVectorSetDataOwner(y_tmp, 0); #endif } else { comm_handle = hypre_CTAlloc(hypre_ParCSRCommHandle*, num_vectors, HYPRE_MEMORY_HOST); } hypre_SeqVectorInitialize(y_tmp); num_sends = hypre_ParCSRCommPkgNumSends(comm_pkg); if (!use_persistent_comm) { y_buf_data = hypre_CTAlloc( HYPRE_Complex*, num_vectors , HYPRE_MEMORY_HOST); for ( jv=0; jv<num_vectors; ++jv ) y_buf_data[jv] = hypre_CTAlloc(HYPRE_Complex, hypre_ParCSRCommPkgSendMapStart (comm_pkg, num_sends), HYPRE_MEMORY_HOST); } y_tmp_data = hypre_VectorData(y_tmp); y_local_data = hypre_VectorData(y_local); hypre_assert( idxstride==1 ); /* only 'column' storage of multivectors * implemented so far */ #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] += hypre_MPI_Wtime(); #endif if (num_cols_offd) { if (A->offdT) { // offdT is optional. Used only if it's present. hypre_CSRMatrixMatvec(alpha, A->offdT, x_local, 0.0, y_tmp); #ifdef HYPRE_USING_MAPPED_OPENMP_OFFLOAD SyncVectorToHost(y_tmp); #endif } else { hypre_CSRMatrixMatvecT(alpha, offd, x_local, 0.0, y_tmp); } } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] -= hypre_MPI_Wtime(); #endif if (use_persistent_comm) { #ifdef HYPRE_USING_PERSISTENT_COMM hypre_ParCSRPersistentCommHandleStart(persistent_comm_handle); #endif } else { for ( jv=0; jv<num_vectors; ++jv ) { /* this is where we assume multivectors are 'column' storage */ comm_handle[jv] = hypre_ParCSRCommHandleCreate ( 2, comm_pkg, &(y_tmp_data[jv*num_cols_offd]), y_buf_data[jv] ); } } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] += hypre_MPI_Wtime(); #endif if (A->diagT) { // diagT is optional. Used only if it's present. hypre_CSRMatrixMatvec(alpha, A->diagT, x_local, beta, y_local); #ifdef HYPRE_USING_MAPPED_OPENMP_OFFLOAD SyncVectorToHost(y_local); #endif } else { hypre_CSRMatrixMatvecT(alpha, diag, x_local, beta, y_local); } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] -= hypre_MPI_Wtime(); #endif if (use_persistent_comm) { #ifdef HYPRE_USING_PERSISTENT_COMM hypre_ParCSRPersistentCommHandleWait(persistent_comm_handle); #endif } else { for ( jv=0; jv<num_vectors; ++jv ) { hypre_ParCSRCommHandleDestroy(comm_handle[jv]); comm_handle[jv] = NULL; } hypre_TFree(comm_handle, HYPRE_MEMORY_HOST); } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_HALO_EXCHANGE] += hypre_MPI_Wtime(); hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] -= hypre_MPI_Wtime(); #endif if ( num_vectors==1 ) { index = 0; for (i = 0; i < num_sends; i++) { start = hypre_ParCSRCommPkgSendMapStart(comm_pkg, i); for (j = start; j < hypre_ParCSRCommPkgSendMapStart(comm_pkg, i+1); j++) y_local_data[hypre_ParCSRCommPkgSendMapElmt(comm_pkg,j)] #ifdef HYPRE_USING_PERSISTENT_COMM += ((HYPRE_Complex *)persistent_comm_handle->recv_data)[index++]; #else += y_buf_data[0][index++]; #endif } } else for ( jv=0; jv<num_vectors; ++jv ) { index = 0; for (i = 0; i < num_sends; i++) { start = hypre_ParCSRCommPkgSendMapStart(comm_pkg, i); for (j = start; j < hypre_ParCSRCommPkgSendMapStart(comm_pkg, i+1); j++) y_local_data[ jv*vecstride + idxstride*hypre_ParCSRCommPkgSendMapElmt(comm_pkg,j) ] += y_buf_data[jv][index++]; } } #ifdef HYPRE_USING_MAPPED_OPENMP_OFFLOAD UpdateHRC(y_local); #endif hypre_SeqVectorDestroy(y_tmp); y_tmp = NULL; if (!use_persistent_comm) { for ( jv=0; jv<num_vectors; ++jv ) hypre_TFree(y_buf_data[jv], HYPRE_MEMORY_HOST); hypre_TFree(y_buf_data, HYPRE_MEMORY_HOST); } #ifdef HYPRE_PROFILE hypre_profile_times[HYPRE_TIMER_ID_PACK_UNPACK] += hypre_MPI_Wtime(); #endif return ierr; } /*-------------------------------------------------------------------------- * hypre_ParCSRMatrixMatvec_FF *--------------------------------------------------------------------------*/ HYPRE_Int hypre_ParCSRMatrixMatvec_FF( HYPRE_Complex alpha, hypre_ParCSRMatrix *A, hypre_ParVector *x, HYPRE_Complex beta, hypre_ParVector *y, HYPRE_Int *CF_marker, HYPRE_Int fpt ) { MPI_Comm comm = hypre_ParCSRMatrixComm(A); hypre_ParCSRCommHandle *comm_handle; hypre_ParCSRCommPkg *comm_pkg = hypre_ParCSRMatrixCommPkg(A); hypre_CSRMatrix *diag = hypre_ParCSRMatrixDiag(A); hypre_CSRMatrix *offd = hypre_ParCSRMatrixOffd(A); hypre_Vector *x_local = hypre_ParVectorLocalVector(x); hypre_Vector *y_local = hypre_ParVectorLocalVector(y); HYPRE_BigInt num_rows = hypre_ParCSRMatrixGlobalNumRows(A); HYPRE_BigInt num_cols = hypre_ParCSRMatrixGlobalNumCols(A); hypre_Vector *x_tmp; HYPRE_BigInt x_size = hypre_ParVectorGlobalSize(x); HYPRE_BigInt y_size = hypre_ParVectorGlobalSize(y); HYPRE_Int num_cols_offd = hypre_CSRMatrixNumCols(offd); HYPRE_Int ierr = 0; HYPRE_Int num_sends, i, j, index, start, num_procs; HYPRE_Int *int_buf_data = NULL; HYPRE_Int *CF_marker_offd = NULL; HYPRE_Complex *x_tmp_data = NULL; HYPRE_Complex *x_buf_data = NULL; HYPRE_Complex *x_local_data = hypre_VectorData(x_local); /*--------------------------------------------------------------------- * Check for size compatibility. ParMatvec returns ierr = 11 if * length of X doesn't equal the number of columns of A, * ierr = 12 if the length of Y doesn't equal the number of rows * of A, and ierr = 13 if both are true. * * Because temporary vectors are often used in ParMatvec, none of * these conditions terminates processing, and the ierr flag * is informational only. *--------------------------------------------------------------------*/ hypre_MPI_Comm_size(comm,&num_procs); if (num_cols != x_size) ierr = 11; if (num_rows != y_size) ierr = 12; if (num_cols != x_size && num_rows != y_size) ierr = 13; if (num_procs > 1) { if (num_cols_offd) { x_tmp = hypre_SeqVectorCreate( num_cols_offd ); hypre_SeqVectorInitialize(x_tmp); x_tmp_data = hypre_VectorData(x_tmp); } /*--------------------------------------------------------------------- * If there exists no CommPkg for A, a CommPkg is generated using * equally load balanced partitionings *--------------------------------------------------------------------*/ if (!comm_pkg) { hypre_MatvecCommPkgCreate(A); comm_pkg = hypre_ParCSRMatrixCommPkg(A); } num_sends = hypre_ParCSRCommPkgNumSends(comm_pkg); if (num_sends) x_buf_data = hypre_CTAlloc(HYPRE_Complex, hypre_ParCSRCommPkgSendMapStart (comm_pkg, num_sends), HYPRE_MEMORY_HOST); index = 0; for (i = 0; i < num_sends; i++) { start = hypre_ParCSRCommPkgSendMapStart(comm_pkg, i); for (j = start; j < hypre_ParCSRCommPkgSendMapStart(comm_pkg, i+1); j++) x_buf_data[index++] = x_local_data[hypre_ParCSRCommPkgSendMapElmt(comm_pkg,j)]; } comm_handle = hypre_ParCSRCommHandleCreate ( 1, comm_pkg, x_buf_data, x_tmp_data ); } hypre_CSRMatrixMatvec_FF( alpha, diag, x_local, beta, y_local, CF_marker, CF_marker, fpt); if (num_procs > 1) { hypre_ParCSRCommHandleDestroy(comm_handle); comm_handle = NULL; if (num_sends) int_buf_data = hypre_CTAlloc(HYPRE_Int, hypre_ParCSRCommPkgSendMapStart (comm_pkg, num_sends), HYPRE_MEMORY_HOST); if (num_cols_offd) CF_marker_offd = hypre_CTAlloc(HYPRE_Int, num_cols_offd, HYPRE_MEMORY_HOST); index = 0; for (i = 0; i < num_sends; i++) { start = hypre_ParCSRCommPkgSendMapStart(comm_pkg, i); for (j = start; j < hypre_ParCSRCommPkgSendMapStart(comm_pkg, i+1); j++) int_buf_data[index++] = CF_marker[hypre_ParCSRCommPkgSendMapElmt(comm_pkg,j)]; } comm_handle = hypre_ParCSRCommHandleCreate(11,comm_pkg,int_buf_data,CF_marker_offd ); hypre_ParCSRCommHandleDestroy(comm_handle); comm_handle = NULL; if (num_cols_offd) hypre_CSRMatrixMatvec_FF( alpha, offd, x_tmp, 1.0, y_local, CF_marker, CF_marker_offd, fpt); hypre_SeqVectorDestroy(x_tmp); x_tmp = NULL; hypre_TFree(x_buf_data, HYPRE_MEMORY_HOST); hypre_TFree(int_buf_data, HYPRE_MEMORY_HOST); hypre_TFree(CF_marker_offd, HYPRE_MEMORY_HOST); } return ierr; }
468115.c
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! // -------------------// PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN // AUTO-GENERATED WITH THE FOLLOWING COMMAND: util/topgen.py -t // hw/top_earlgrey/data/top_earlgrey.hjson -o hw/top_earlgrey #include "alert_handler_regs.h" // Generated. // #include "aon_timer_regs.h" // Generated. // #include "flash_ctrl_regs.h" // Generated. // #include "pwrmgr_regs.h" // Generated. #include "sw/device/lib/base/freestanding/limits.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/dif/dif_rv_plic.h" // #include "sw/device/lib/dif/dif_adc_ctrl.h" #include "sw/device/lib/dif/dif_alert_handler.h" // #include "sw/device/lib/dif/dif_aon_timer.h" // #include "sw/device/lib/dif/dif_csrng.h" // #include "sw/device/lib/dif/dif_edn.h" // #include "sw/device/lib/dif/dif_entropy_src.h" // #include "sw/device/lib/dif/dif_flash_ctrl.h" #include "sw/device/lib/dif/dif_gpio.h" #include "sw/device/lib/dif/dif_hmac.h" #include "sw/device/lib/dif/dif_i2c.h" // #include "sw/device/lib/dif/dif_keymgr.h" // #include "sw/device/lib/dif/dif_kmac.h" // #include "sw/device/lib/dif/dif_otbn.h" // #include "sw/device/lib/dif/dif_otp_ctrl.h" // #include "sw/device/lib/dif/dif_pattgen.h" // #include "sw/device/lib/dif/dif_pwrmgr.h" // #include "sw/device/lib/dif/dif_rv_timer.h" // #include "sw/device/lib/dif/dif_spi_device.h" // #include "sw/device/lib/dif/dif_spi_host.h" // #include "sw/device/lib/dif/dif_sysrst_ctrl.h" #include "sw/device/lib/dif/dif_uart.h" // #include "sw/device/lib/dif/dif_usbdev.h" #include "sw/device/lib/handler.h" #include "sw/device/lib/irq.h" #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/testing/check.h" #include "sw/device/lib/testing/rv_plic_testutils.h" #include "sw/device/lib/testing/test_framework/test_main.h" #include "sw/device/lib/testing/test_framework/test_status.h" #include "sw/device/tests/plic_all_irqs_test_helper.h" #include "hw/top_earlgrey/sw/autogen/top_earlgrey.h" // static dif_adc_ctrl_t adc_ctrl_aon; static dif_alert_handler_t alert_handler; // static dif_aon_timer_t aon_timer_aon; // static dif_csrng_t csrng; // static dif_edn_t edn0; // static dif_edn_t edn1; // static dif_entropy_src_t entropy_src; // static dif_flash_ctrl_t flash_ctrl; static dif_gpio_t gpio; static dif_hmac_t hmac; static dif_i2c_t i2c0; static dif_i2c_t i2c1; static dif_i2c_t i2c2; // static dif_keymgr_t keymgr; // static dif_kmac_t kmac; // static dif_otbn_t otbn; // static dif_otp_ctrl_t otp_ctrl; // static dif_pattgen_t pattgen; // static dif_pwrmgr_t pwrmgr_aon; // static dif_rv_timer_t rv_timer; // static dif_spi_device_t spi_device; // static dif_spi_host_t spi_host0; // static dif_spi_host_t spi_host1; // static dif_sysrst_ctrl_t sysrst_ctrl_aon; static dif_uart_t uart0; static dif_uart_t uart1; static dif_uart_t uart2; static dif_uart_t uart3; // static dif_usbdev_t usbdev; static dif_rv_plic_t plic; static const top_earlgrey_plic_target_t kHart = kTopEarlgreyPlicTargetIbex0; /** * Flag indicating which peripheral is under test. * * Declared volatile because it is referenced in the main program flow as well * as the ISR. */ static volatile top_earlgrey_plic_peripheral_t peripheral_expected; /** * Flags indicating the IRQ expected to have triggered and serviced within the * peripheral. * * Declared volatile because it is referenced in the main program flow as well * as the ISR. */ // static volatile dif_adc_ctrl_irq_t adc_ctrl_irq_expected; // static volatile dif_adc_ctrl_irq_t adc_ctrl_irq_serviced; static volatile dif_alert_handler_irq_t alert_handler_irq_expected; static volatile dif_alert_handler_irq_t alert_handler_irq_serviced; // static volatile dif_aon_timer_irq_t aon_timer_irq_expected; // static volatile dif_aon_timer_irq_t aon_timer_irq_serviced; // static volatile dif_csrng_irq_t csrng_irq_expected; // static volatile dif_csrng_irq_t csrng_irq_serviced; // static volatile dif_edn_irq_t edn_irq_expected; // static volatile dif_edn_irq_t edn_irq_serviced; // static volatile dif_entropy_src_irq_t entropy_src_irq_expected; // static volatile dif_entropy_src_irq_t entropy_src_irq_serviced; // static volatile dif_flash_ctrl_irq_t flash_ctrl_irq_expected; // static volatile dif_flash_ctrl_irq_t flash_ctrl_irq_serviced; static volatile dif_gpio_irq_t gpio_irq_expected; static volatile dif_gpio_irq_t gpio_irq_serviced; static volatile dif_hmac_irq_t hmac_irq_expected; static volatile dif_hmac_irq_t hmac_irq_serviced; static volatile dif_i2c_irq_t i2c_irq_expected; static volatile dif_i2c_irq_t i2c_irq_serviced; // static volatile dif_keymgr_irq_t keymgr_irq_expected; // static volatile dif_keymgr_irq_t keymgr_irq_serviced; // static volatile dif_kmac_irq_t kmac_irq_expected; // static volatile dif_kmac_irq_t kmac_irq_serviced; // static volatile dif_otbn_irq_t otbn_irq_expected; // static volatile dif_otbn_irq_t otbn_irq_serviced; // static volatile dif_otp_ctrl_irq_t otp_ctrl_irq_expected; // static volatile dif_otp_ctrl_irq_t otp_ctrl_irq_serviced; // static volatile dif_pattgen_irq_t pattgen_irq_expected; // static volatile dif_pattgen_irq_t pattgen_irq_serviced; // static volatile dif_pwrmgr_irq_t pwrmgr_irq_expected; // static volatile dif_pwrmgr_irq_t pwrmgr_irq_serviced; // static volatile dif_rv_timer_irq_t rv_timer_irq_expected; // static volatile dif_rv_timer_irq_t rv_timer_irq_serviced; // static volatile dif_spi_device_irq_t spi_device_irq_expected; // static volatile dif_spi_device_irq_t spi_device_irq_serviced; // static volatile dif_spi_host_irq_t spi_host_irq_expected; // static volatile dif_spi_host_irq_t spi_host_irq_serviced; // static volatile dif_sysrst_ctrl_irq_t sysrst_ctrl_irq_expected; // static volatile dif_sysrst_ctrl_irq_t sysrst_ctrl_irq_serviced; static volatile dif_uart_irq_t uart_irq_expected; static volatile dif_uart_irq_t uart_irq_serviced; // static volatile dif_usbdev_irq_t usbdev_irq_expected; // static volatile dif_usbdev_irq_t usbdev_irq_serviced; /** * Provides external IRQ handling for this test. * * This function overrides the default external IRQ handler in * `sw/device/lib/handler.h`. */ void handler_irq_external(void) { // Find which interrupt fired at PLIC by claiming it. dif_rv_plic_irq_id_t plic_irq_id; CHECK(dif_rv_plic_irq_claim(&plic, kHart, &plic_irq_id) == kDifRvPlicOk); // Check if it is the right peripheral. top_earlgrey_plic_peripheral_t peripheral = (top_earlgrey_plic_peripheral_t) top_earlgrey_plic_interrupt_for_peripheral[plic_irq_id]; CHECK(peripheral == peripheral_expected, "Interrupt from incorrect peripheral: exp = %d, obs = %d", peripheral_expected, peripheral); switch (peripheral) { // case kTopEarlgreyPlicPeripheralAdcCtrlAon: // PERIPHERAL_ISR(adc_ctrl, adc_ctrl_aon, // kTopEarlgreyPlicIrqIdAdcCtrlAonDebugCable); break; case kTopEarlgreyPlicPeripheralAlertHandler: PERIPHERAL_ISR(alert_handler, alert_handler, kTopEarlgreyPlicIrqIdAlertHandlerClassa); break; // case kTopEarlgreyPlicPeripheralAonTimerAon: // PERIPHERAL_ISR(aon_timer, aon_timer_aon, // kTopEarlgreyPlicIrqIdAonTimerAonWkupTimerExpired); break; // case kTopEarlgreyPlicPeripheralCsrng: // PERIPHERAL_ISR(csrng, csrng, kTopEarlgreyPlicIrqIdCsrngCsCmdReqDone); // break; // case kTopEarlgreyPlicPeripheralEdn0: // PERIPHERAL_ISR(edn, edn0, kTopEarlgreyPlicIrqIdEdn0EdnCmdReqDone); // break; // case kTopEarlgreyPlicPeripheralEdn1: // PERIPHERAL_ISR(edn, edn1, kTopEarlgreyPlicIrqIdEdn1EdnCmdReqDone); // break; // case kTopEarlgreyPlicPeripheralEntropySrc: // PERIPHERAL_ISR(entropy_src, entropy_src, // kTopEarlgreyPlicIrqIdEntropySrcEsEntropyValid); break; // case kTopEarlgreyPlicPeripheralFlashCtrl: // PERIPHERAL_ISR(flash_ctrl, flash_ctrl, // kTopEarlgreyPlicIrqIdFlashCtrlProgEmpty); break; case kTopEarlgreyPlicPeripheralGpio: PERIPHERAL_ISR(gpio, gpio, kTopEarlgreyPlicIrqIdGpioGpio0); break; case kTopEarlgreyPlicPeripheralHmac: PERIPHERAL_ISR(hmac, hmac, kTopEarlgreyPlicIrqIdHmacHmacDone); break; case kTopEarlgreyPlicPeripheralI2c0: PERIPHERAL_ISR(i2c, i2c0, kTopEarlgreyPlicIrqIdI2c0FmtWatermark); break; case kTopEarlgreyPlicPeripheralI2c1: PERIPHERAL_ISR(i2c, i2c1, kTopEarlgreyPlicIrqIdI2c1FmtWatermark); break; case kTopEarlgreyPlicPeripheralI2c2: PERIPHERAL_ISR(i2c, i2c2, kTopEarlgreyPlicIrqIdI2c2FmtWatermark); break; // case kTopEarlgreyPlicPeripheralKeymgr: // PERIPHERAL_ISR(keymgr, keymgr, kTopEarlgreyPlicIrqIdKeymgrOpDone); // break; // case kTopEarlgreyPlicPeripheralKmac: // PERIPHERAL_ISR(kmac, kmac, kTopEarlgreyPlicIrqIdKmacKmacDone); // break; // case kTopEarlgreyPlicPeripheralOtbn: // PERIPHERAL_ISR(otbn, otbn, kTopEarlgreyPlicIrqIdOtbnDone); // break; // case kTopEarlgreyPlicPeripheralOtpCtrl: // PERIPHERAL_ISR(otp_ctrl, otp_ctrl, // kTopEarlgreyPlicIrqIdOtpCtrlOtpOperationDone); break; // case kTopEarlgreyPlicPeripheralPattgen: // PERIPHERAL_ISR(pattgen, pattgen, kTopEarlgreyPlicIrqIdPattgenDoneCh0); // break; // case kTopEarlgreyPlicPeripheralPwrmgrAon: // PERIPHERAL_ISR(pwrmgr, pwrmgr_aon, // kTopEarlgreyPlicIrqIdPwrmgrAonWakeup); break; // case kTopEarlgreyPlicPeripheralRvTimer: // PERIPHERAL_ISR(rv_timer, rv_timer, // kTopEarlgreyPlicIrqIdRvTimerTimerExpired0_0); break; // case kTopEarlgreyPlicPeripheralSpiDevice: // PERIPHERAL_ISR(spi_device, spi_device, // kTopEarlgreyPlicIrqIdSpiDeviceRxf); break; // case kTopEarlgreyPlicPeripheralSpiHost0: // PERIPHERAL_ISR(spi_host, spi_host0, // kTopEarlgreyPlicIrqIdSpiHost0Error); break; // case kTopEarlgreyPlicPeripheralSpiHost1: // PERIPHERAL_ISR(spi_host, spi_host1, // kTopEarlgreyPlicIrqIdSpiHost1Error); break; // case kTopEarlgreyPlicPeripheralSysrstCtrlAon: // PERIPHERAL_ISR(sysrst_ctrl, sysrst_ctrl_aon, // kTopEarlgreyPlicIrqIdSysrstCtrlAonSysrstCtrl); break; case kTopEarlgreyPlicPeripheralUart0: PERIPHERAL_ISR(uart, uart0, kTopEarlgreyPlicIrqIdUart0TxWatermark); break; case kTopEarlgreyPlicPeripheralUart1: PERIPHERAL_ISR(uart, uart1, kTopEarlgreyPlicIrqIdUart1TxWatermark); break; case kTopEarlgreyPlicPeripheralUart2: PERIPHERAL_ISR(uart, uart2, kTopEarlgreyPlicIrqIdUart2TxWatermark); break; case kTopEarlgreyPlicPeripheralUart3: PERIPHERAL_ISR(uart, uart3, kTopEarlgreyPlicIrqIdUart3TxWatermark); break; // case kTopEarlgreyPlicPeripheralUsbdev: // PERIPHERAL_ISR(usbdev, usbdev, kTopEarlgreyPlicIrqIdUsbdevPktReceived); // break; default: LOG_FATAL("ISR is not implemented!"); test_status_set(kTestStatusFailed); } // Complete the IRQ at PLIC. CHECK(dif_rv_plic_irq_complete(&plic, kHart, plic_irq_id) == kDifRvPlicOk); } /** * Initializes the handles to all peripherals. */ static void peripherals_init(void) { dif_alert_handler_params_t alert_handler_params = { .alert_count = ALERT_HANDLER_PARAM_N_ALERTS, .escalation_signal_count = ALERT_HANDLER_PARAM_N_ESC_SEV}; // PERIPHERAL_INIT(adc_ctrl, adc_ctrl_aon, // TOP_EARLGREY_ADC_CTRL_AON_BASE_ADDR); PERIPHERAL_INIT_WITH_PARAMS(alert_handler, alert_handler_params, alert_handler, TOP_EARLGREY_ALERT_HANDLER_BASE_ADDR); // PERIPHERAL_INIT_WITH_PARAMS(aon_timer, aon_timer_params, aon_timer_aon, // TOP_EARLGREY_AON_TIMER_AON_BASE_ADDR); PERIPHERAL_INIT(csrng, csrng, // TOP_EARLGREY_CSRNG_BASE_ADDR); PERIPHERAL_INIT(edn, edn0, // TOP_EARLGREY_EDN0_BASE_ADDR); PERIPHERAL_INIT(edn, edn1, // TOP_EARLGREY_EDN1_BASE_ADDR); PERIPHERAL_INIT(entropy_src, entropy_src, // TOP_EARLGREY_ENTROPY_SRC_BASE_ADDR); // PERIPHERAL_INIT_WITH_PARAMS(flash_ctrl, flash_ctrl_params, flash_ctrl, // TOP_EARLGREY_FLASH_CTRL_CORE_BASE_ADDR); PERIPHERAL_INIT(gpio, gpio, TOP_EARLGREY_GPIO_BASE_ADDR); PERIPHERAL_INIT(hmac, hmac, TOP_EARLGREY_HMAC_BASE_ADDR); PERIPHERAL_INIT(i2c, i2c0, TOP_EARLGREY_I2C0_BASE_ADDR); PERIPHERAL_INIT(i2c, i2c1, TOP_EARLGREY_I2C1_BASE_ADDR); PERIPHERAL_INIT(i2c, i2c2, TOP_EARLGREY_I2C2_BASE_ADDR); // PERIPHERAL_INIT(keymgr, keymgr, TOP_EARLGREY_KEYMGR_BASE_ADDR); // PERIPHERAL_INIT(kmac, kmac, TOP_EARLGREY_KMAC_BASE_ADDR); // PERIPHERAL_INIT(otbn, otbn, TOP_EARLGREY_OTBN_BASE_ADDR); // PERIPHERAL_INIT(otp_ctrl, otp_ctrl, TOP_EARLGREY_OTP_CTRL_CORE_BASE_ADDR); // PERIPHERAL_INIT(pattgen, pattgen, TOP_EARLGREY_PATTGEN_BASE_ADDR); // PERIPHERAL_INIT_WITH_PARAMS(pwrmgr, pwrmgr_params, pwrmgr_aon, // TOP_EARLGREY_PWRMGR_AON_BASE_ADDR); PERIPHERAL_INIT(rv_timer, rv_timer, // TOP_EARLGREY_RV_TIMER_BASE_ADDR); PERIPHERAL_INIT(spi_device, spi_device, // TOP_EARLGREY_SPI_DEVICE_BASE_ADDR); PERIPHERAL_INIT(spi_host, spi_host0, // TOP_EARLGREY_SPI_HOST0_BASE_ADDR); PERIPHERAL_INIT(spi_host, spi_host1, // TOP_EARLGREY_SPI_HOST1_BASE_ADDR); PERIPHERAL_INIT(sysrst_ctrl, // sysrst_ctrl_aon, TOP_EARLGREY_SYSRST_CTRL_AON_BASE_ADDR); PERIPHERAL_INIT(uart, uart0, TOP_EARLGREY_UART0_BASE_ADDR); PERIPHERAL_INIT(uart, uart1, TOP_EARLGREY_UART1_BASE_ADDR); PERIPHERAL_INIT(uart, uart2, TOP_EARLGREY_UART2_BASE_ADDR); PERIPHERAL_INIT(uart, uart3, TOP_EARLGREY_UART3_BASE_ADDR); // PERIPHERAL_INIT(usbdev, usbdev, TOP_EARLGREY_USBDEV_BASE_ADDR); mmio_region_t base_addr = mmio_region_from_addr(TOP_EARLGREY_RV_PLIC_BASE_ADDR); CHECK(dif_rv_plic_init((dif_rv_plic_params_t){.base_addr = base_addr}, &plic) == kDifRvPlicOk); } /** * Enables all IRQs in all peripherals. */ static void peripheral_irqs_enable(void) { // PERIPHERAL_IRQS_ENABLE(adc_ctrl, adc_ctrl_aon); PERIPHERAL_IRQS_ENABLE(alert_handler, alert_handler); // PERIPHERAL_IRQS_ENABLE(aon_timer, aon_timer_aon); // PERIPHERAL_IRQS_ENABLE(csrng, csrng); // PERIPHERAL_IRQS_ENABLE(edn, edn0); // PERIPHERAL_IRQS_ENABLE(edn, edn1); // PERIPHERAL_IRQS_ENABLE(entropy_src, entropy_src); // PERIPHERAL_IRQS_ENABLE(flash_ctrl, flash_ctrl); PERIPHERAL_IRQS_ENABLE(gpio, gpio); PERIPHERAL_IRQS_ENABLE(hmac, hmac); PERIPHERAL_IRQS_ENABLE(i2c, i2c0); PERIPHERAL_IRQS_ENABLE(i2c, i2c1); PERIPHERAL_IRQS_ENABLE(i2c, i2c2); // PERIPHERAL_IRQS_ENABLE(keymgr, keymgr); // PERIPHERAL_IRQS_ENABLE(kmac, kmac); // PERIPHERAL_IRQS_ENABLE(otbn, otbn); // PERIPHERAL_IRQS_ENABLE(otp_ctrl, otp_ctrl); // PERIPHERAL_IRQS_ENABLE(pattgen, pattgen); // PERIPHERAL_IRQS_ENABLE(pwrmgr, pwrmgr_aon); // PERIPHERAL_IRQS_ENABLE(rv_timer, rv_timer); // PERIPHERAL_IRQS_ENABLE(spi_device, spi_device); // PERIPHERAL_IRQS_ENABLE(spi_host, spi_host0); // PERIPHERAL_IRQS_ENABLE(spi_host, spi_host1); // PERIPHERAL_IRQS_ENABLE(sysrst_ctrl, sysrst_ctrl_aon); PERIPHERAL_IRQS_ENABLE(uart, uart0); PERIPHERAL_IRQS_ENABLE(uart, uart1); PERIPHERAL_IRQS_ENABLE(uart, uart2); PERIPHERAL_IRQS_ENABLE(uart, uart3); // PERIPHERAL_IRQS_ENABLE(usbdev, usbdev); } /** * Triggers all IRQs in all peripherals one by one. * * Walks through all instances of all peripherals and triggers an interrupt one * by one. Instead of invoking WFI, it waits for a couple of cycles with nops, * and then checks if the right interrupt was handled. The ISR which the CPU * jumps into checks if the correct interrupt from the right instance triggered. */ static void peripheral_irqs_trigger(void) { // PERIPHERAL_IRQS_TRIGGER(adc_ctrl, adc_ctrl_aon, // kTopEarlgreyPlicPeripheralAdcCtrlAon, // kDifAdcCtrlIrqDebugCable, // kDifAdcCtrlIrqDebugCable); PERIPHERAL_IRQS_TRIGGER(alert_handler, alert_handler, kTopEarlgreyPlicPeripheralAlertHandler, kDifAlertHandlerIrqClassa, kDifAlertHandlerIrqClassd); // PERIPHERAL_IRQS_TRIGGER(aon_timer, aon_timer_aon, // kTopEarlgreyPlicPeripheralAonTimerAon, // kDifAonTimerIrqWkupTimerExpired, // kDifAonTimerIrqWdogTimerBark); // PERIPHERAL_IRQS_TRIGGER(csrng, csrng, kTopEarlgreyPlicPeripheralCsrng, // kDifCsrngIrqCsCmdReqDone, kDifCsrngIrqCsFatalErr); // PERIPHERAL_IRQS_TRIGGER(edn, edn0, kTopEarlgreyPlicPeripheralEdn0, // kDifEdnIrqEdnCmdReqDone, kDifEdnIrqEdnFatalErr); // PERIPHERAL_IRQS_TRIGGER(edn, edn1, kTopEarlgreyPlicPeripheralEdn1, // kDifEdnIrqEdnCmdReqDone, kDifEdnIrqEdnFatalErr); // PERIPHERAL_IRQS_TRIGGER(entropy_src, entropy_src, // kTopEarlgreyPlicPeripheralEntropySrc, // kDifEntropySrcIrqEsEntropyValid, // kDifEntropySrcIrqEsFatalErr); // PERIPHERAL_IRQS_TRIGGER(flash_ctrl, flash_ctrl, // kTopEarlgreyPlicPeripheralFlashCtrl, // kDifFlashCtrlIrqProgEmpty, // kDifFlashCtrlIrqCorrErr); PERIPHERAL_IRQS_TRIGGER(gpio, gpio, kTopEarlgreyPlicPeripheralGpio, kDifGpioIrqGpio0, kDifGpioIrqGpio31); PERIPHERAL_IRQS_TRIGGER(hmac, hmac, kTopEarlgreyPlicPeripheralHmac, kDifHmacIrqHmacDone, kDifHmacIrqHmacErr); PERIPHERAL_IRQS_TRIGGER(i2c, i2c0, kTopEarlgreyPlicPeripheralI2c0, kDifI2cIrqFmtWatermark, kDifI2cIrqHostTimeout); PERIPHERAL_IRQS_TRIGGER(i2c, i2c1, kTopEarlgreyPlicPeripheralI2c1, kDifI2cIrqFmtWatermark, kDifI2cIrqHostTimeout); PERIPHERAL_IRQS_TRIGGER(i2c, i2c2, kTopEarlgreyPlicPeripheralI2c2, kDifI2cIrqFmtWatermark, kDifI2cIrqHostTimeout); // PERIPHERAL_IRQS_TRIGGER(keymgr, keymgr, kTopEarlgreyPlicPeripheralKeymgr, // kDifKeymgrIrqOpDone, kDifKeymgrIrqOpDone); // PERIPHERAL_IRQS_TRIGGER(kmac, kmac, kTopEarlgreyPlicPeripheralKmac, // kDifKmacIrqKmacDone, kDifKmacIrqKmacErr); // PERIPHERAL_IRQS_TRIGGER(otbn, otbn, kTopEarlgreyPlicPeripheralOtbn, // kDifOtbnIrqDone, kDifOtbnIrqDone); // PERIPHERAL_IRQS_TRIGGER(otp_ctrl, otp_ctrl, // kTopEarlgreyPlicPeripheralOtpCtrl, // kDifOtpCtrlIrqOtpOperationDone, // kDifOtpCtrlIrqOtpError); // PERIPHERAL_IRQS_TRIGGER(pattgen, pattgen, // kTopEarlgreyPlicPeripheralPattgen, // kDifPattgenIrqDoneCh0, kDifPattgenIrqDoneCh1); // PERIPHERAL_IRQS_TRIGGER(pwrmgr, pwrmgr_aon, // kTopEarlgreyPlicPeripheralPwrmgrAon, // kDifPwrmgrIrqWakeup, kDifPwrmgrIrqWakeup); // PERIPHERAL_IRQS_TRIGGER(rv_timer, rv_timer, // kTopEarlgreyPlicPeripheralRvTimer, // kDifRvTimerIrqTimerExpired0_0, // kDifRvTimerIrqTimerExpired0_0); // PERIPHERAL_IRQS_TRIGGER(spi_device, spi_device, // kTopEarlgreyPlicPeripheralSpiDevice, // kDifSpiDeviceIrqRxf, // kDifSpiDeviceIrqTpmCmdaddrNotempty); // PERIPHERAL_IRQS_TRIGGER(spi_host, spi_host0, // kTopEarlgreyPlicPeripheralSpiHost0, // kDifSpiHostIrqError, kDifSpiHostIrqSpiEvent); // PERIPHERAL_IRQS_TRIGGER(spi_host, spi_host1, // kTopEarlgreyPlicPeripheralSpiHost1, // kDifSpiHostIrqError, kDifSpiHostIrqSpiEvent); // PERIPHERAL_IRQS_TRIGGER(sysrst_ctrl, sysrst_ctrl_aon, // kTopEarlgreyPlicPeripheralSysrstCtrlAon, // kDifSysrstCtrlIrqSysrstCtrl, // kDifSysrstCtrlIrqSysrstCtrl); PERIPHERAL_IRQS_TRIGGER(uart, uart0, kTopEarlgreyPlicPeripheralUart0, kDifUartIrqTxWatermark, kDifUartIrqRxParityErr); PERIPHERAL_IRQS_TRIGGER(uart, uart1, kTopEarlgreyPlicPeripheralUart1, kDifUartIrqTxWatermark, kDifUartIrqRxParityErr); PERIPHERAL_IRQS_TRIGGER(uart, uart2, kTopEarlgreyPlicPeripheralUart2, kDifUartIrqTxWatermark, kDifUartIrqRxParityErr); PERIPHERAL_IRQS_TRIGGER(uart, uart3, kTopEarlgreyPlicPeripheralUart3, kDifUartIrqTxWatermark, kDifUartIrqRxParityErr); // PERIPHERAL_IRQS_TRIGGER(usbdev, usbdev, kTopEarlgreyPlicPeripheralUsbdev, // kDifUsbdevIrqPktReceived, kDifUsbdevIrqLinkOutErr); } const test_config_t kTestConfig; bool test_main(void) { irq_global_ctrl(true); irq_external_ctrl(true); peripherals_init(); rv_plic_testutils_irq_range_enable( &plic, kHart, kTopEarlgreyPlicIrqIdNone + 1, kTopEarlgreyPlicIrqIdLast); peripheral_irqs_enable(); peripheral_irqs_trigger(); return true; }
340158.c
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ */ /* \ \ Copyright (c) 2003-2009 Xilinx, Inc. */ /* / / All Right Reserved. */ /* /---/ /\ */ /* \ \ / \ */ /* \___\/\___\ */ /***********************************************************************/ /* This file is designed for use with ISim build 0xfbc00daa */ #define XSI_HIDE_SYMBOL_SPEC true #include "xsi.h" #include <memory.h> #ifdef __GNUC__ #include <stdlib.h> #else #include <malloc.h> #define alloca _alloca #endif static const char *ng0 = "/home/lab661/Documents/xmorav39/Digital-electronics-1/Labs/05-counter_binary/binary_test.vhd"; static void work_a_2357615861_2372691052_p_0(char *t0) { char *t1; char *t2; char *t3; char *t4; char *t5; char *t6; int64 t7; int64 t8; LAB0: t1 = (t0 + 2784U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(76, ng0); t2 = (t0 + 3416); t3 = (t2 + 56U); t4 = *((char **)t3); t5 = (t4 + 56U); t6 = *((char **)t5); *((unsigned char *)t6) = (unsigned char)2; xsi_driver_first_trans_fast(t2); xsi_set_current_line(77, ng0); t2 = (t0 + 1808U); t3 = *((char **)t2); t7 = *((int64 *)t3); t8 = (t7 / 2); t2 = (t0 + 2592); xsi_process_wait(t2, t8); LAB6: *((char **)t1) = &&LAB7; LAB1: return; LAB4: xsi_set_current_line(78, ng0); t2 = (t0 + 3416); t3 = (t2 + 56U); t4 = *((char **)t3); t5 = (t4 + 56U); t6 = *((char **)t5); *((unsigned char *)t6) = (unsigned char)3; xsi_driver_first_trans_fast(t2); xsi_set_current_line(79, ng0); t2 = (t0 + 1808U); t3 = *((char **)t2); t7 = *((int64 *)t3); t8 = (t7 / 2); t2 = (t0 + 2592); xsi_process_wait(t2, t8); LAB10: *((char **)t1) = &&LAB11; goto LAB1; LAB5: goto LAB4; LAB7: goto LAB5; LAB8: goto LAB2; LAB9: goto LAB8; LAB11: goto LAB9; } static void work_a_2357615861_2372691052_p_1(char *t0) { char *t1; char *t2; int64 t3; char *t4; int64 t5; char *t6; char *t7; char *t8; int t9; int t10; char *t11; char *t12; int t13; LAB0: t1 = (t0 + 3032U); t2 = *((char **)t1); if (t2 == 0) goto LAB2; LAB3: goto *t2; LAB2: xsi_set_current_line(87, ng0); t3 = (100 * 1000LL); t2 = (t0 + 2840); xsi_process_wait(t2, t3); LAB6: *((char **)t1) = &&LAB7; LAB1: return; LAB4: xsi_set_current_line(89, ng0); t2 = (t0 + 1808U); t4 = *((char **)t2); t3 = *((int64 *)t4); t5 = (t3 * 10); t2 = (t0 + 2840); xsi_process_wait(t2, t5); LAB10: *((char **)t1) = &&LAB11; goto LAB1; LAB5: goto LAB4; LAB7: goto LAB5; LAB8: xsi_set_current_line(91, ng0); t2 = (t0 + 3480); t4 = (t2 + 56U); t6 = *((char **)t4); t7 = (t6 + 56U); t8 = *((char **)t7); *((unsigned char *)t8) = (unsigned char)3; xsi_driver_first_trans_fast(t2); xsi_set_current_line(92, ng0); t2 = (t0 + 5952); *((int *)t2) = 0; t4 = (t0 + 5956); *((int *)t4) = 50; t9 = 0; t10 = 50; LAB12: if (t9 <= t10) goto LAB13; LAB15: xsi_set_current_line(99, ng0); LAB27: *((char **)t1) = &&LAB28; goto LAB1; LAB9: goto LAB8; LAB11: goto LAB9; LAB13: xsi_set_current_line(93, ng0); t6 = (t0 + 3544); t7 = (t6 + 56U); t8 = *((char **)t7); t11 = (t8 + 56U); t12 = *((char **)t11); *((unsigned char *)t12) = (unsigned char)3; xsi_driver_first_trans_fast(t6); xsi_set_current_line(94, ng0); t2 = (t0 + 1808U); t4 = *((char **)t2); t3 = *((int64 *)t4); t5 = (t3 * 1); t2 = (t0 + 2840); xsi_process_wait(t2, t5); LAB18: *((char **)t1) = &&LAB19; goto LAB1; LAB14: t2 = (t0 + 5952); t9 = *((int *)t2); t4 = (t0 + 5956); t10 = *((int *)t4); if (t9 == t10) goto LAB15; LAB24: t13 = (t9 + 1); t9 = t13; t6 = (t0 + 5952); *((int *)t6) = t9; goto LAB12; LAB16: xsi_set_current_line(95, ng0); t2 = (t0 + 3544); t4 = (t2 + 56U); t6 = *((char **)t4); t7 = (t6 + 56U); t8 = *((char **)t7); *((unsigned char *)t8) = (unsigned char)2; xsi_driver_first_trans_fast(t2); xsi_set_current_line(96, ng0); t2 = (t0 + 1808U); t4 = *((char **)t2); t3 = *((int64 *)t4); t5 = (t3 * 3); t2 = (t0 + 2840); xsi_process_wait(t2, t5); LAB22: *((char **)t1) = &&LAB23; goto LAB1; LAB17: goto LAB16; LAB19: goto LAB17; LAB20: goto LAB14; LAB21: goto LAB20; LAB23: goto LAB21; LAB25: goto LAB2; LAB26: goto LAB25; LAB28: goto LAB26; } extern void work_a_2357615861_2372691052_init() { static char *pe[] = {(void *)work_a_2357615861_2372691052_p_0,(void *)work_a_2357615861_2372691052_p_1}; xsi_register_didat("work_a_2357615861_2372691052", "isim/binary_cnt_test_isim_beh.exe.sim/work/a_2357615861_2372691052.didat"); xsi_register_executes(pe); }
628347.c
/* * Remote VUB300 SDIO/SDmem Host Controller Driver * * Copyright (C) 2010 Elan Digital Systems Limited * * based on USB Skeleton driver - 2.2 * * Copyright (C) 2001-2004 Greg Kroah-Hartman ([email protected]) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, version 2 * * VUB300: is a USB 2.0 client device with a single SDIO/SDmem/MMC slot * Any SDIO/SDmem/MMC device plugged into the VUB300 will appear, * by virtue of this driver, to have been plugged into a local * SDIO host controller, similar to, say, a PCI Ricoh controller * This is because this kernel device driver is both a USB 2.0 * client device driver AND an MMC host controller driver. Thus * if there is an existing driver for the inserted SDIO/SDmem/MMC * device then that driver will be used by the kernel to manage * the device in exactly the same fashion as if it had been * directly plugged into, say, a local pci bus Ricoh controller * * RANT: this driver was written using a display 128x48 - converting it * to a line width of 80 makes it very difficult to support. In * particular functions have been broken down into sub functions * and the original meaningful names have been shortened into * cryptic ones. * The problem is that executing a fragment of code subject to * two conditions means an indentation of 24, thus leaving only * 56 characters for a C statement. And that is quite ridiculous! * * Data types: data passed to/from the VUB300 is fixed to a number of * bits and driver data fields reflect that limit by using * u8, u16, u32 */ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/kref.h> #include <linux/uaccess.h> #include <linux/usb.h> #include <linux/mutex.h> #include <linux/mmc/host.h> #include <linux/mmc/card.h> #include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_ids.h> #include <linux/workqueue.h> #include <linux/ctype.h> #include <linux/firmware.h> #include <linux/scatterlist.h> struct host_controller_info { u8 info_size; u16 firmware_version; u8 number_of_ports; } __packed; #define FIRMWARE_BLOCK_BOUNDARY 1024 struct sd_command_header { u8 header_size; u8 header_type; u8 port_number; u8 command_type; /* Bit7 - Rd/Wr */ u8 command_index; u8 transfer_size[4]; /* ReadSize + ReadSize */ u8 response_type; u8 arguments[4]; u8 block_count[2]; u8 block_size[2]; u8 block_boundary[2]; u8 reserved[44]; /* to pad out to 64 bytes */ } __packed; struct sd_irqpoll_header { u8 header_size; u8 header_type; u8 port_number; u8 command_type; /* Bit7 - Rd/Wr */ u8 padding[16]; /* don't ask why !! */ u8 poll_timeout_msb; u8 poll_timeout_lsb; u8 reserved[42]; /* to pad out to 64 bytes */ } __packed; struct sd_common_header { u8 header_size; u8 header_type; u8 port_number; } __packed; struct sd_response_header { u8 header_size; u8 header_type; u8 port_number; u8 command_type; u8 command_index; u8 command_response[0]; } __packed; struct sd_status_header { u8 header_size; u8 header_type; u8 port_number; u16 port_flags; u32 sdio_clock; u16 host_header_size; u16 func_header_size; u16 ctrl_header_size; } __packed; struct sd_error_header { u8 header_size; u8 header_type; u8 port_number; u8 error_code; } __packed; struct sd_interrupt_header { u8 header_size; u8 header_type; u8 port_number; } __packed; struct offload_registers_access { u8 command_byte[4]; u8 Respond_Byte[4]; } __packed; #define INTERRUPT_REGISTER_ACCESSES 15 struct sd_offloaded_interrupt { u8 header_size; u8 header_type; u8 port_number; struct offload_registers_access reg[INTERRUPT_REGISTER_ACCESSES]; } __packed; struct sd_register_header { u8 header_size; u8 header_type; u8 port_number; u8 command_type; u8 command_index; u8 command_response[6]; } __packed; #define PIGGYBACK_REGISTER_ACCESSES 14 struct sd_offloaded_piggyback { struct sd_register_header sdio; struct offload_registers_access reg[PIGGYBACK_REGISTER_ACCESSES]; } __packed; union sd_response { struct sd_common_header common; struct sd_status_header status; struct sd_error_header error; struct sd_interrupt_header interrupt; struct sd_response_header response; struct sd_offloaded_interrupt irq; struct sd_offloaded_piggyback pig; } __packed; union sd_command { struct sd_command_header head; struct sd_irqpoll_header poll; } __packed; enum SD_RESPONSE_TYPE { SDRT_UNSPECIFIED = 0, SDRT_NONE, SDRT_1, SDRT_1B, SDRT_2, SDRT_3, SDRT_4, SDRT_5, SDRT_5B, SDRT_6, SDRT_7, }; #define RESPONSE_INTERRUPT 0x01 #define RESPONSE_ERROR 0x02 #define RESPONSE_STATUS 0x03 #define RESPONSE_IRQ_DISABLED 0x05 #define RESPONSE_IRQ_ENABLED 0x06 #define RESPONSE_PIGGYBACKED 0x07 #define RESPONSE_NO_INTERRUPT 0x08 #define RESPONSE_PIG_DISABLED 0x09 #define RESPONSE_PIG_ENABLED 0x0A #define SD_ERROR_1BIT_TIMEOUT 0x01 #define SD_ERROR_4BIT_TIMEOUT 0x02 #define SD_ERROR_1BIT_CRC_WRONG 0x03 #define SD_ERROR_4BIT_CRC_WRONG 0x04 #define SD_ERROR_1BIT_CRC_ERROR 0x05 #define SD_ERROR_4BIT_CRC_ERROR 0x06 #define SD_ERROR_NO_CMD_ENDBIT 0x07 #define SD_ERROR_NO_1BIT_DATEND 0x08 #define SD_ERROR_NO_4BIT_DATEND 0x09 #define SD_ERROR_1BIT_UNEXPECTED_TIMEOUT 0x0A #define SD_ERROR_4BIT_UNEXPECTED_TIMEOUT 0x0B #define SD_ERROR_ILLEGAL_COMMAND 0x0C #define SD_ERROR_NO_DEVICE 0x0D #define SD_ERROR_TRANSFER_LENGTH 0x0E #define SD_ERROR_1BIT_DATA_TIMEOUT 0x0F #define SD_ERROR_4BIT_DATA_TIMEOUT 0x10 #define SD_ERROR_ILLEGAL_STATE 0x11 #define SD_ERROR_UNKNOWN_ERROR 0x12 #define SD_ERROR_RESERVED_ERROR 0x13 #define SD_ERROR_INVALID_FUNCTION 0x14 #define SD_ERROR_OUT_OF_RANGE 0x15 #define SD_ERROR_STAT_CMD 0x16 #define SD_ERROR_STAT_DATA 0x17 #define SD_ERROR_STAT_CMD_TIMEOUT 0x18 #define SD_ERROR_SDCRDY_STUCK 0x19 #define SD_ERROR_UNHANDLED 0x1A #define SD_ERROR_OVERRUN 0x1B #define SD_ERROR_PIO_TIMEOUT 0x1C #define FUN(c) (0x000007 & (c->arg>>28)) #define REG(c) (0x01FFFF & (c->arg>>9)) static bool limit_speed_to_24_MHz; module_param(limit_speed_to_24_MHz, bool, 0644); MODULE_PARM_DESC(limit_speed_to_24_MHz, "Limit Max SDIO Clock Speed to 24 MHz"); static bool pad_input_to_usb_pkt; module_param(pad_input_to_usb_pkt, bool, 0644); MODULE_PARM_DESC(pad_input_to_usb_pkt, "Pad USB data input transfers to whole USB Packet"); static bool disable_offload_processing; module_param(disable_offload_processing, bool, 0644); MODULE_PARM_DESC(disable_offload_processing, "Disable Offload Processing"); static bool force_1_bit_data_xfers; module_param(force_1_bit_data_xfers, bool, 0644); MODULE_PARM_DESC(force_1_bit_data_xfers, "Force SDIO Data Transfers to 1-bit Mode"); static bool force_polling_for_irqs; module_param(force_polling_for_irqs, bool, 0644); MODULE_PARM_DESC(force_polling_for_irqs, "Force Polling for SDIO interrupts"); static int firmware_irqpoll_timeout = 1024; module_param(firmware_irqpoll_timeout, int, 0644); MODULE_PARM_DESC(firmware_irqpoll_timeout, "VUB300 firmware irqpoll timeout"); static int force_max_req_size = 128; module_param(force_max_req_size, int, 0644); MODULE_PARM_DESC(force_max_req_size, "set max request size in kBytes"); #ifdef SMSC_DEVELOPMENT_BOARD static int firmware_rom_wait_states = 0x04; #else static int firmware_rom_wait_states = 0x1C; #endif module_param(firmware_rom_wait_states, int, 0644); MODULE_PARM_DESC(firmware_rom_wait_states, "ROM wait states byte=RRRIIEEE (Reserved Internal External)"); #define ELAN_VENDOR_ID 0x2201 #define VUB300_VENDOR_ID 0x0424 #define VUB300_PRODUCT_ID 0x012C static struct usb_device_id vub300_table[] = { {USB_DEVICE(ELAN_VENDOR_ID, VUB300_PRODUCT_ID)}, {USB_DEVICE(VUB300_VENDOR_ID, VUB300_PRODUCT_ID)}, {} /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, vub300_table); static struct workqueue_struct *cmndworkqueue; static struct workqueue_struct *pollworkqueue; static struct workqueue_struct *deadworkqueue; static inline int interface_to_InterfaceNumber(struct usb_interface *interface) { if (!interface) return -1; if (!interface->cur_altsetting) return -1; return interface->cur_altsetting->desc.bInterfaceNumber; } struct sdio_register { unsigned func_num:3; unsigned sdio_reg:17; unsigned activate:1; unsigned prepared:1; unsigned regvalue:8; unsigned response:8; unsigned sparebit:26; }; struct vub300_mmc_host { struct usb_device *udev; struct usb_interface *interface; struct kref kref; struct mutex cmd_mutex; struct mutex irq_mutex; char vub_name[3 + (9 * 8) + 4 + 1]; /* max of 7 sdio fn's */ u8 cmnd_out_ep; /* EndPoint for commands */ u8 cmnd_res_ep; /* EndPoint for responses */ u8 data_out_ep; /* EndPoint for out data */ u8 data_inp_ep; /* EndPoint for inp data */ bool card_powered; bool card_present; bool read_only; bool large_usb_packets; bool app_spec; /* ApplicationSpecific */ bool irq_enabled; /* by the MMC CORE */ bool irq_disabled; /* in the firmware */ unsigned bus_width:4; u8 total_offload_count; u8 dynamic_register_count; u8 resp_len; u32 datasize; int errors; int usb_transport_fail; int usb_timed_out; int irqs_queued; struct sdio_register sdio_register[16]; struct offload_interrupt_function_register { #define MAXREGBITS 4 #define MAXREGS (1<<MAXREGBITS) #define MAXREGMASK (MAXREGS-1) u8 offload_count; u32 offload_point; struct offload_registers_access reg[MAXREGS]; } fn[8]; u16 fbs[8]; /* Function Block Size */ struct mmc_command *cmd; struct mmc_request *req; struct mmc_data *data; struct mmc_host *mmc; struct urb *urb; struct urb *command_out_urb; struct urb *command_res_urb; struct completion command_complete; struct completion irqpoll_complete; union sd_command cmnd; union sd_response resp; struct timer_list sg_transfer_timer; struct usb_sg_request sg_request; struct timer_list inactivity_timer; struct work_struct deadwork; struct work_struct cmndwork; struct delayed_work pollwork; struct host_controller_info hc_info; struct sd_status_header system_port_status; u8 padded_buffer[64]; }; #define kref_to_vub300_mmc_host(d) container_of(d, struct vub300_mmc_host, kref) #define SET_TRANSFER_PSEUDOCODE 21 #define SET_INTERRUPT_PSEUDOCODE 20 #define SET_FAILURE_MODE 18 #define SET_ROM_WAIT_STATES 16 #define SET_IRQ_ENABLE 13 #define SET_CLOCK_SPEED 11 #define SET_FUNCTION_BLOCK_SIZE 9 #define SET_SD_DATA_MODE 6 #define SET_SD_POWER 4 #define ENTER_DFU_MODE 3 #define GET_HC_INF0 1 #define GET_SYSTEM_PORT_STATUS 0 static void vub300_delete(struct kref *kref) { /* kref callback - softirq */ struct vub300_mmc_host *vub300 = kref_to_vub300_mmc_host(kref); struct mmc_host *mmc = vub300->mmc; usb_free_urb(vub300->command_out_urb); vub300->command_out_urb = NULL; usb_free_urb(vub300->command_res_urb); vub300->command_res_urb = NULL; usb_put_dev(vub300->udev); mmc_free_host(mmc); /* * and hence also frees vub300 * which is contained at the end of struct mmc */ } static void vub300_queue_cmnd_work(struct vub300_mmc_host *vub300) { kref_get(&vub300->kref); if (queue_work(cmndworkqueue, &vub300->cmndwork)) { /* * then the cmndworkqueue was not previously * running and the above get ref is obvious * required and will be put when the thread * terminates by a specific call */ } else { /* * the cmndworkqueue was already running from * a previous invocation and thus to keep the * kref counts correct we must undo the get */ kref_put(&vub300->kref, vub300_delete); } } static void vub300_queue_poll_work(struct vub300_mmc_host *vub300, int delay) { kref_get(&vub300->kref); if (queue_delayed_work(pollworkqueue, &vub300->pollwork, delay)) { /* * then the pollworkqueue was not previously * running and the above get ref is obvious * required and will be put when the thread * terminates by a specific call */ } else { /* * the pollworkqueue was already running from * a previous invocation and thus to keep the * kref counts correct we must undo the get */ kref_put(&vub300->kref, vub300_delete); } } static void vub300_queue_dead_work(struct vub300_mmc_host *vub300) { kref_get(&vub300->kref); if (queue_work(deadworkqueue, &vub300->deadwork)) { /* * then the deadworkqueue was not previously * running and the above get ref is obvious * required and will be put when the thread * terminates by a specific call */ } else { /* * the deadworkqueue was already running from * a previous invocation and thus to keep the * kref counts correct we must undo the get */ kref_put(&vub300->kref, vub300_delete); } } static void irqpoll_res_completed(struct urb *urb) { /* urb completion handler - hardirq */ struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; if (urb->status) vub300->usb_transport_fail = urb->status; complete(&vub300->irqpoll_complete); } static void irqpoll_out_completed(struct urb *urb) { /* urb completion handler - hardirq */ struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; if (urb->status) { vub300->usb_transport_fail = urb->status; complete(&vub300->irqpoll_complete); return; } else { int ret; unsigned int pipe = usb_rcvbulkpipe(vub300->udev, vub300->cmnd_res_ep); usb_fill_bulk_urb(vub300->command_res_urb, vub300->udev, pipe, &vub300->resp, sizeof(vub300->resp), irqpoll_res_completed, vub300); vub300->command_res_urb->actual_length = 0; ret = usb_submit_urb(vub300->command_res_urb, GFP_ATOMIC); if (ret) { vub300->usb_transport_fail = ret; complete(&vub300->irqpoll_complete); } return; } } static void send_irqpoll(struct vub300_mmc_host *vub300) { /* cmd_mutex is held by vub300_pollwork_thread */ int retval; int timeout = 0xFFFF & (0x0001FFFF - firmware_irqpoll_timeout); vub300->cmnd.poll.header_size = 22; vub300->cmnd.poll.header_type = 1; vub300->cmnd.poll.port_number = 0; vub300->cmnd.poll.command_type = 2; vub300->cmnd.poll.poll_timeout_lsb = 0xFF & (unsigned)timeout; vub300->cmnd.poll.poll_timeout_msb = 0xFF & (unsigned)(timeout >> 8); usb_fill_bulk_urb(vub300->command_out_urb, vub300->udev, usb_sndbulkpipe(vub300->udev, vub300->cmnd_out_ep) , &vub300->cmnd, sizeof(vub300->cmnd) , irqpoll_out_completed, vub300); retval = usb_submit_urb(vub300->command_out_urb, GFP_KERNEL); if (0 > retval) { vub300->usb_transport_fail = retval; vub300_queue_poll_work(vub300, 1); complete(&vub300->irqpoll_complete); return; } else { return; } } static void new_system_port_status(struct vub300_mmc_host *vub300) { int old_card_present = vub300->card_present; int new_card_present = (0x0001 & vub300->system_port_status.port_flags) ? 1 : 0; vub300->read_only = (0x0010 & vub300->system_port_status.port_flags) ? 1 : 0; if (new_card_present && !old_card_present) { dev_info(&vub300->udev->dev, "card just inserted\n"); vub300->card_present = 1; vub300->bus_width = 0; if (disable_offload_processing) strncpy(vub300->vub_name, "EMPTY Processing Disabled", sizeof(vub300->vub_name)); else vub300->vub_name[0] = 0; mmc_detect_change(vub300->mmc, 1); } else if (!new_card_present && old_card_present) { dev_info(&vub300->udev->dev, "card just ejected\n"); vub300->card_present = 0; mmc_detect_change(vub300->mmc, 0); } else { /* no change */ } } static void __add_offloaded_reg_to_fifo(struct vub300_mmc_host *vub300, struct offload_registers_access *register_access, u8 func) { u8 r = vub300->fn[func].offload_point + vub300->fn[func].offload_count; memcpy(&vub300->fn[func].reg[MAXREGMASK & r], register_access, sizeof(struct offload_registers_access)); vub300->fn[func].offload_count += 1; vub300->total_offload_count += 1; } static void add_offloaded_reg(struct vub300_mmc_host *vub300, struct offload_registers_access *register_access) { u32 Register = ((0x03 & register_access->command_byte[0]) << 15) | ((0xFF & register_access->command_byte[1]) << 7) | ((0xFE & register_access->command_byte[2]) >> 1); u8 func = ((0x70 & register_access->command_byte[0]) >> 4); u8 regs = vub300->dynamic_register_count; u8 i = 0; while (0 < regs-- && 1 == vub300->sdio_register[i].activate) { if (vub300->sdio_register[i].func_num == func && vub300->sdio_register[i].sdio_reg == Register) { if (vub300->sdio_register[i].prepared == 0) vub300->sdio_register[i].prepared = 1; vub300->sdio_register[i].response = register_access->Respond_Byte[2]; vub300->sdio_register[i].regvalue = register_access->Respond_Byte[3]; return; } else { i += 1; continue; } } __add_offloaded_reg_to_fifo(vub300, register_access, func); } static void check_vub300_port_status(struct vub300_mmc_host *vub300) { /* * cmd_mutex is held by vub300_pollwork_thread, * vub300_deadwork_thread or vub300_cmndwork_thread */ int retval; retval = usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), GET_SYSTEM_PORT_STATUS, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0000, 0x0000, &vub300->system_port_status, sizeof(vub300->system_port_status), HZ); if (sizeof(vub300->system_port_status) == retval) new_system_port_status(vub300); } static void __vub300_irqpoll_response(struct vub300_mmc_host *vub300) { /* cmd_mutex is held by vub300_pollwork_thread */ if (vub300->command_res_urb->actual_length == 0) return; switch (vub300->resp.common.header_type) { case RESPONSE_INTERRUPT: mutex_lock(&vub300->irq_mutex); if (vub300->irq_enabled) mmc_signal_sdio_irq(vub300->mmc); else vub300->irqs_queued += 1; vub300->irq_disabled = 1; mutex_unlock(&vub300->irq_mutex); break; case RESPONSE_ERROR: if (vub300->resp.error.error_code == SD_ERROR_NO_DEVICE) check_vub300_port_status(vub300); break; case RESPONSE_STATUS: vub300->system_port_status = vub300->resp.status; new_system_port_status(vub300); if (!vub300->card_present) vub300_queue_poll_work(vub300, HZ / 5); break; case RESPONSE_IRQ_DISABLED: { int offloaded_data_length = vub300->resp.common.header_size - 3; int register_count = offloaded_data_length >> 3; int ri = 0; while (register_count--) { add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); ri += 1; } mutex_lock(&vub300->irq_mutex); if (vub300->irq_enabled) mmc_signal_sdio_irq(vub300->mmc); else vub300->irqs_queued += 1; vub300->irq_disabled = 1; mutex_unlock(&vub300->irq_mutex); break; } case RESPONSE_IRQ_ENABLED: { int offloaded_data_length = vub300->resp.common.header_size - 3; int register_count = offloaded_data_length >> 3; int ri = 0; while (register_count--) { add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); ri += 1; } mutex_lock(&vub300->irq_mutex); if (vub300->irq_enabled) mmc_signal_sdio_irq(vub300->mmc); else if (vub300->irqs_queued) vub300->irqs_queued += 1; else vub300->irqs_queued += 1; vub300->irq_disabled = 0; mutex_unlock(&vub300->irq_mutex); break; } case RESPONSE_NO_INTERRUPT: vub300_queue_poll_work(vub300, 1); break; default: break; } } static void __do_poll(struct vub300_mmc_host *vub300) { /* cmd_mutex is held by vub300_pollwork_thread */ unsigned long commretval; mod_timer(&vub300->inactivity_timer, jiffies + HZ); init_completion(&vub300->irqpoll_complete); send_irqpoll(vub300); commretval = wait_for_completion_timeout(&vub300->irqpoll_complete, msecs_to_jiffies(500)); if (vub300->usb_transport_fail) { /* no need to do anything */ } else if (commretval == 0) { vub300->usb_timed_out = 1; usb_kill_urb(vub300->command_out_urb); usb_kill_urb(vub300->command_res_urb); } else { /* commretval > 0 */ __vub300_irqpoll_response(vub300); } } /* this thread runs only when the driver * is trying to poll the device for an IRQ */ static void vub300_pollwork_thread(struct work_struct *work) { /* NOT irq */ struct vub300_mmc_host *vub300 = container_of(work, struct vub300_mmc_host, pollwork.work); if (!vub300->interface) { kref_put(&vub300->kref, vub300_delete); return; } mutex_lock(&vub300->cmd_mutex); if (vub300->cmd) { vub300_queue_poll_work(vub300, 1); } else if (!vub300->card_present) { /* no need to do anything */ } else { /* vub300->card_present */ mutex_lock(&vub300->irq_mutex); if (!vub300->irq_enabled) { mutex_unlock(&vub300->irq_mutex); } else if (vub300->irqs_queued) { vub300->irqs_queued -= 1; mmc_signal_sdio_irq(vub300->mmc); mod_timer(&vub300->inactivity_timer, jiffies + HZ); mutex_unlock(&vub300->irq_mutex); } else { /* NOT vub300->irqs_queued */ mutex_unlock(&vub300->irq_mutex); __do_poll(vub300); } } mutex_unlock(&vub300->cmd_mutex); kref_put(&vub300->kref, vub300_delete); } static void vub300_deadwork_thread(struct work_struct *work) { /* NOT irq */ struct vub300_mmc_host *vub300 = container_of(work, struct vub300_mmc_host, deadwork); if (!vub300->interface) { kref_put(&vub300->kref, vub300_delete); return; } mutex_lock(&vub300->cmd_mutex); if (vub300->cmd) { /* * a command got in as the inactivity * timer expired - so we just let the * processing of the command show if * the device is dead */ } else if (vub300->card_present) { check_vub300_port_status(vub300); } else if (vub300->mmc && vub300->mmc->card && mmc_card_present(vub300->mmc->card)) { /* * the MMC core must not have responded * to the previous indication - lets * hope that it eventually does so we * will just ignore this for now */ } else { check_vub300_port_status(vub300); } mod_timer(&vub300->inactivity_timer, jiffies + HZ); mutex_unlock(&vub300->cmd_mutex); kref_put(&vub300->kref, vub300_delete); } static void vub300_inactivity_timer_expired(unsigned long data) { /* softirq */ struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)data; if (!vub300->interface) { kref_put(&vub300->kref, vub300_delete); } else if (vub300->cmd) { mod_timer(&vub300->inactivity_timer, jiffies + HZ); } else { vub300_queue_dead_work(vub300); mod_timer(&vub300->inactivity_timer, jiffies + HZ); } } static int vub300_response_error(u8 error_code) { switch (error_code) { case SD_ERROR_PIO_TIMEOUT: case SD_ERROR_1BIT_TIMEOUT: case SD_ERROR_4BIT_TIMEOUT: return -ETIMEDOUT; case SD_ERROR_STAT_DATA: case SD_ERROR_OVERRUN: case SD_ERROR_STAT_CMD: case SD_ERROR_STAT_CMD_TIMEOUT: case SD_ERROR_SDCRDY_STUCK: case SD_ERROR_UNHANDLED: case SD_ERROR_1BIT_CRC_WRONG: case SD_ERROR_4BIT_CRC_WRONG: case SD_ERROR_1BIT_CRC_ERROR: case SD_ERROR_4BIT_CRC_ERROR: case SD_ERROR_NO_CMD_ENDBIT: case SD_ERROR_NO_1BIT_DATEND: case SD_ERROR_NO_4BIT_DATEND: case SD_ERROR_1BIT_DATA_TIMEOUT: case SD_ERROR_4BIT_DATA_TIMEOUT: case SD_ERROR_1BIT_UNEXPECTED_TIMEOUT: case SD_ERROR_4BIT_UNEXPECTED_TIMEOUT: return -EILSEQ; case 33: return -EILSEQ; case SD_ERROR_ILLEGAL_COMMAND: return -EINVAL; case SD_ERROR_NO_DEVICE: return -ENOMEDIUM; default: return -ENODEV; } } static void command_res_completed(struct urb *urb) { /* urb completion handler - hardirq */ struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; if (urb->status) { /* we have to let the initiator handle the error */ } else if (vub300->command_res_urb->actual_length == 0) { /* * we have seen this happen once or twice and * we suspect a buggy USB host controller */ } else if (!vub300->data) { /* this means that the command (typically CMD52) succeeded */ } else if (vub300->resp.common.header_type != 0x02) { /* * this is an error response from the VUB300 chip * and we let the initiator handle it */ } else if (vub300->urb) { vub300->cmd->error = vub300_response_error(vub300->resp.error.error_code); usb_unlink_urb(vub300->urb); } else { vub300->cmd->error = vub300_response_error(vub300->resp.error.error_code); usb_sg_cancel(&vub300->sg_request); } complete(&vub300->command_complete); /* got_response_in */ } static void command_out_completed(struct urb *urb) { /* urb completion handler - hardirq */ struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)urb->context; if (urb->status) { complete(&vub300->command_complete); } else { int ret; unsigned int pipe = usb_rcvbulkpipe(vub300->udev, vub300->cmnd_res_ep); usb_fill_bulk_urb(vub300->command_res_urb, vub300->udev, pipe, &vub300->resp, sizeof(vub300->resp), command_res_completed, vub300); vub300->command_res_urb->actual_length = 0; ret = usb_submit_urb(vub300->command_res_urb, GFP_ATOMIC); if (ret == 0) { /* * the urb completion handler will call * our completion handler */ } else { /* * and thus we only call it directly * when it will not be called */ complete(&vub300->command_complete); } } } /* * the STUFF bits are masked out for the comparisons */ static void snoop_block_size_and_bus_width(struct vub300_mmc_host *vub300, u32 cmd_arg) { if ((0xFBFFFE00 & cmd_arg) == 0x80022200) vub300->fbs[1] = (cmd_arg << 8) | (0x00FF & vub300->fbs[1]); else if ((0xFBFFFE00 & cmd_arg) == 0x80022000) vub300->fbs[1] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[1]); else if ((0xFBFFFE00 & cmd_arg) == 0x80042200) vub300->fbs[2] = (cmd_arg << 8) | (0x00FF & vub300->fbs[2]); else if ((0xFBFFFE00 & cmd_arg) == 0x80042000) vub300->fbs[2] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[2]); else if ((0xFBFFFE00 & cmd_arg) == 0x80062200) vub300->fbs[3] = (cmd_arg << 8) | (0x00FF & vub300->fbs[3]); else if ((0xFBFFFE00 & cmd_arg) == 0x80062000) vub300->fbs[3] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[3]); else if ((0xFBFFFE00 & cmd_arg) == 0x80082200) vub300->fbs[4] = (cmd_arg << 8) | (0x00FF & vub300->fbs[4]); else if ((0xFBFFFE00 & cmd_arg) == 0x80082000) vub300->fbs[4] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[4]); else if ((0xFBFFFE00 & cmd_arg) == 0x800A2200) vub300->fbs[5] = (cmd_arg << 8) | (0x00FF & vub300->fbs[5]); else if ((0xFBFFFE00 & cmd_arg) == 0x800A2000) vub300->fbs[5] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[5]); else if ((0xFBFFFE00 & cmd_arg) == 0x800C2200) vub300->fbs[6] = (cmd_arg << 8) | (0x00FF & vub300->fbs[6]); else if ((0xFBFFFE00 & cmd_arg) == 0x800C2000) vub300->fbs[6] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[6]); else if ((0xFBFFFE00 & cmd_arg) == 0x800E2200) vub300->fbs[7] = (cmd_arg << 8) | (0x00FF & vub300->fbs[7]); else if ((0xFBFFFE00 & cmd_arg) == 0x800E2000) vub300->fbs[7] = (0xFF & cmd_arg) | (0xFF00 & vub300->fbs[7]); else if ((0xFBFFFE03 & cmd_arg) == 0x80000E00) vub300->bus_width = 1; else if ((0xFBFFFE03 & cmd_arg) == 0x80000E02) vub300->bus_width = 4; } static void send_command(struct vub300_mmc_host *vub300) { /* cmd_mutex is held by vub300_cmndwork_thread */ struct mmc_command *cmd = vub300->cmd; struct mmc_data *data = vub300->data; int retval; int i; u8 response_type; if (vub300->app_spec) { switch (cmd->opcode) { case 6: response_type = SDRT_1; vub300->resp_len = 6; if (0x00000000 == (0x00000003 & cmd->arg)) vub300->bus_width = 1; else if (0x00000002 == (0x00000003 & cmd->arg)) vub300->bus_width = 4; else dev_err(&vub300->udev->dev, "unexpected ACMD6 bus_width=%d\n", 0x00000003 & cmd->arg); break; case 13: response_type = SDRT_1; vub300->resp_len = 6; break; case 22: response_type = SDRT_1; vub300->resp_len = 6; break; case 23: response_type = SDRT_1; vub300->resp_len = 6; break; case 41: response_type = SDRT_3; vub300->resp_len = 6; break; case 42: response_type = SDRT_1; vub300->resp_len = 6; break; case 51: response_type = SDRT_1; vub300->resp_len = 6; break; case 55: response_type = SDRT_1; vub300->resp_len = 6; break; default: vub300->resp_len = 0; cmd->error = -EINVAL; complete(&vub300->command_complete); return; } vub300->app_spec = 0; } else { switch (cmd->opcode) { case 0: response_type = SDRT_NONE; vub300->resp_len = 0; break; case 1: response_type = SDRT_3; vub300->resp_len = 6; break; case 2: response_type = SDRT_2; vub300->resp_len = 17; break; case 3: response_type = SDRT_6; vub300->resp_len = 6; break; case 4: response_type = SDRT_NONE; vub300->resp_len = 0; break; case 5: response_type = SDRT_4; vub300->resp_len = 6; break; case 6: response_type = SDRT_1; vub300->resp_len = 6; break; case 7: response_type = SDRT_1B; vub300->resp_len = 6; break; case 8: response_type = SDRT_7; vub300->resp_len = 6; break; case 9: response_type = SDRT_2; vub300->resp_len = 17; break; case 10: response_type = SDRT_2; vub300->resp_len = 17; break; case 12: response_type = SDRT_1B; vub300->resp_len = 6; break; case 13: response_type = SDRT_1; vub300->resp_len = 6; break; case 15: response_type = SDRT_NONE; vub300->resp_len = 0; break; case 16: for (i = 0; i < ARRAY_SIZE(vub300->fbs); i++) vub300->fbs[i] = 0xFFFF & cmd->arg; response_type = SDRT_1; vub300->resp_len = 6; break; case 17: case 18: case 24: case 25: case 27: response_type = SDRT_1; vub300->resp_len = 6; break; case 28: case 29: response_type = SDRT_1B; vub300->resp_len = 6; break; case 30: case 32: case 33: response_type = SDRT_1; vub300->resp_len = 6; break; case 38: response_type = SDRT_1B; vub300->resp_len = 6; break; case 42: response_type = SDRT_1; vub300->resp_len = 6; break; case 52: response_type = SDRT_5; vub300->resp_len = 6; snoop_block_size_and_bus_width(vub300, cmd->arg); break; case 53: response_type = SDRT_5; vub300->resp_len = 6; break; case 55: response_type = SDRT_1; vub300->resp_len = 6; vub300->app_spec = 1; break; case 56: response_type = SDRT_1; vub300->resp_len = 6; break; default: vub300->resp_len = 0; cmd->error = -EINVAL; complete(&vub300->command_complete); return; } } /* * it is a shame that we can not use "sizeof(struct sd_command_header)" * this is because the packet _must_ be padded to 64 bytes */ vub300->cmnd.head.header_size = 20; vub300->cmnd.head.header_type = 0x00; vub300->cmnd.head.port_number = 0; /* "0" means port 1 */ vub300->cmnd.head.command_type = 0x00; /* standard read command */ vub300->cmnd.head.response_type = response_type; vub300->cmnd.head.command_index = cmd->opcode; vub300->cmnd.head.arguments[0] = cmd->arg >> 24; vub300->cmnd.head.arguments[1] = cmd->arg >> 16; vub300->cmnd.head.arguments[2] = cmd->arg >> 8; vub300->cmnd.head.arguments[3] = cmd->arg >> 0; if (cmd->opcode == 52) { int fn = 0x7 & (cmd->arg >> 28); vub300->cmnd.head.block_count[0] = 0; vub300->cmnd.head.block_count[1] = 0; vub300->cmnd.head.block_size[0] = (vub300->fbs[fn] >> 8) & 0xFF; vub300->cmnd.head.block_size[1] = (vub300->fbs[fn] >> 0) & 0xFF; vub300->cmnd.head.command_type = 0x00; vub300->cmnd.head.transfer_size[0] = 0; vub300->cmnd.head.transfer_size[1] = 0; vub300->cmnd.head.transfer_size[2] = 0; vub300->cmnd.head.transfer_size[3] = 0; } else if (!data) { vub300->cmnd.head.block_count[0] = 0; vub300->cmnd.head.block_count[1] = 0; vub300->cmnd.head.block_size[0] = (vub300->fbs[0] >> 8) & 0xFF; vub300->cmnd.head.block_size[1] = (vub300->fbs[0] >> 0) & 0xFF; vub300->cmnd.head.command_type = 0x00; vub300->cmnd.head.transfer_size[0] = 0; vub300->cmnd.head.transfer_size[1] = 0; vub300->cmnd.head.transfer_size[2] = 0; vub300->cmnd.head.transfer_size[3] = 0; } else if (cmd->opcode == 53) { int fn = 0x7 & (cmd->arg >> 28); if (0x08 & vub300->cmnd.head.arguments[0]) { /* BLOCK MODE */ vub300->cmnd.head.block_count[0] = (data->blocks >> 8) & 0xFF; vub300->cmnd.head.block_count[1] = (data->blocks >> 0) & 0xFF; vub300->cmnd.head.block_size[0] = (data->blksz >> 8) & 0xFF; vub300->cmnd.head.block_size[1] = (data->blksz >> 0) & 0xFF; } else { /* BYTE MODE */ vub300->cmnd.head.block_count[0] = 0; vub300->cmnd.head.block_count[1] = 0; vub300->cmnd.head.block_size[0] = (vub300->datasize >> 8) & 0xFF; vub300->cmnd.head.block_size[1] = (vub300->datasize >> 0) & 0xFF; } vub300->cmnd.head.command_type = (MMC_DATA_READ & data->flags) ? 0x00 : 0x80; vub300->cmnd.head.transfer_size[0] = (vub300->datasize >> 24) & 0xFF; vub300->cmnd.head.transfer_size[1] = (vub300->datasize >> 16) & 0xFF; vub300->cmnd.head.transfer_size[2] = (vub300->datasize >> 8) & 0xFF; vub300->cmnd.head.transfer_size[3] = (vub300->datasize >> 0) & 0xFF; if (vub300->datasize < vub300->fbs[fn]) { vub300->cmnd.head.block_count[0] = 0; vub300->cmnd.head.block_count[1] = 0; } } else { vub300->cmnd.head.block_count[0] = (data->blocks >> 8) & 0xFF; vub300->cmnd.head.block_count[1] = (data->blocks >> 0) & 0xFF; vub300->cmnd.head.block_size[0] = (data->blksz >> 8) & 0xFF; vub300->cmnd.head.block_size[1] = (data->blksz >> 0) & 0xFF; vub300->cmnd.head.command_type = (MMC_DATA_READ & data->flags) ? 0x00 : 0x80; vub300->cmnd.head.transfer_size[0] = (vub300->datasize >> 24) & 0xFF; vub300->cmnd.head.transfer_size[1] = (vub300->datasize >> 16) & 0xFF; vub300->cmnd.head.transfer_size[2] = (vub300->datasize >> 8) & 0xFF; vub300->cmnd.head.transfer_size[3] = (vub300->datasize >> 0) & 0xFF; if (vub300->datasize < vub300->fbs[0]) { vub300->cmnd.head.block_count[0] = 0; vub300->cmnd.head.block_count[1] = 0; } } if (vub300->cmnd.head.block_size[0] || vub300->cmnd.head.block_size[1]) { u16 block_size = vub300->cmnd.head.block_size[1] | (vub300->cmnd.head.block_size[0] << 8); u16 block_boundary = FIRMWARE_BLOCK_BOUNDARY - (FIRMWARE_BLOCK_BOUNDARY % block_size); vub300->cmnd.head.block_boundary[0] = (block_boundary >> 8) & 0xFF; vub300->cmnd.head.block_boundary[1] = (block_boundary >> 0) & 0xFF; } else { vub300->cmnd.head.block_boundary[0] = 0; vub300->cmnd.head.block_boundary[1] = 0; } usb_fill_bulk_urb(vub300->command_out_urb, vub300->udev, usb_sndbulkpipe(vub300->udev, vub300->cmnd_out_ep), &vub300->cmnd, sizeof(vub300->cmnd), command_out_completed, vub300); retval = usb_submit_urb(vub300->command_out_urb, GFP_KERNEL); if (retval < 0) { cmd->error = retval; complete(&vub300->command_complete); return; } else { return; } } /* * timer callback runs in atomic mode * so it cannot call usb_kill_urb() */ static void vub300_sg_timed_out(unsigned long data) { struct vub300_mmc_host *vub300 = (struct vub300_mmc_host *)data; vub300->usb_timed_out = 1; usb_sg_cancel(&vub300->sg_request); usb_unlink_urb(vub300->command_out_urb); usb_unlink_urb(vub300->command_res_urb); } static u16 roundup_to_multiple_of_64(u16 number) { return 0xFFC0 & (0x3F + number); } /* * this is a separate function to solve the 80 column width restriction */ static void __download_offload_pseudocode(struct vub300_mmc_host *vub300, const struct firmware *fw) { u8 register_count = 0; u16 ts = 0; u16 interrupt_size = 0; const u8 *data = fw->data; int size = fw->size; u8 c; dev_info(&vub300->udev->dev, "using %s for SDIO offload processing\n", vub300->vub_name); do { c = *data++; } while (size-- && c); /* skip comment */ dev_info(&vub300->udev->dev, "using offload firmware %s %s\n", fw->data, vub300->vub_name); if (size < 4) { dev_err(&vub300->udev->dev, "corrupt offload pseudocode in firmware %s\n", vub300->vub_name); strncpy(vub300->vub_name, "corrupt offload pseudocode", sizeof(vub300->vub_name)); return; } interrupt_size += *data++; size -= 1; interrupt_size <<= 8; interrupt_size += *data++; size -= 1; if (interrupt_size < size) { u16 xfer_length = roundup_to_multiple_of_64(interrupt_size); u8 *xfer_buffer = kmalloc(xfer_length, GFP_KERNEL); if (xfer_buffer) { int retval; memcpy(xfer_buffer, data, interrupt_size); memset(xfer_buffer + interrupt_size, 0, xfer_length - interrupt_size); size -= interrupt_size; data += interrupt_size; retval = usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), SET_INTERRUPT_PSEUDOCODE, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0000, 0x0000, xfer_buffer, xfer_length, HZ); kfree(xfer_buffer); if (retval < 0) { strncpy(vub300->vub_name, "SDIO pseudocode download failed", sizeof(vub300->vub_name)); return; } } else { dev_err(&vub300->udev->dev, "not enough memory for xfer buffer to send" " INTERRUPT_PSEUDOCODE for %s %s\n", fw->data, vub300->vub_name); strncpy(vub300->vub_name, "SDIO interrupt pseudocode download failed", sizeof(vub300->vub_name)); return; } } else { dev_err(&vub300->udev->dev, "corrupt interrupt pseudocode in firmware %s %s\n", fw->data, vub300->vub_name); strncpy(vub300->vub_name, "corrupt interrupt pseudocode", sizeof(vub300->vub_name)); return; } ts += *data++; size -= 1; ts <<= 8; ts += *data++; size -= 1; if (ts < size) { u16 xfer_length = roundup_to_multiple_of_64(ts); u8 *xfer_buffer = kmalloc(xfer_length, GFP_KERNEL); if (xfer_buffer) { int retval; memcpy(xfer_buffer, data, ts); memset(xfer_buffer + ts, 0, xfer_length - ts); size -= ts; data += ts; retval = usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), SET_TRANSFER_PSEUDOCODE, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0000, 0x0000, xfer_buffer, xfer_length, HZ); kfree(xfer_buffer); if (retval < 0) { strncpy(vub300->vub_name, "SDIO pseudocode download failed", sizeof(vub300->vub_name)); return; } } else { dev_err(&vub300->udev->dev, "not enough memory for xfer buffer to send" " TRANSFER_PSEUDOCODE for %s %s\n", fw->data, vub300->vub_name); strncpy(vub300->vub_name, "SDIO transfer pseudocode download failed", sizeof(vub300->vub_name)); return; } } else { dev_err(&vub300->udev->dev, "corrupt transfer pseudocode in firmware %s %s\n", fw->data, vub300->vub_name); strncpy(vub300->vub_name, "corrupt transfer pseudocode", sizeof(vub300->vub_name)); return; } register_count += *data++; size -= 1; if (register_count * 4 == size) { int I = vub300->dynamic_register_count = register_count; int i = 0; while (I--) { unsigned int func_num = 0; vub300->sdio_register[i].func_num = *data++; size -= 1; func_num += *data++; size -= 1; func_num <<= 8; func_num += *data++; size -= 1; func_num <<= 8; func_num += *data++; size -= 1; vub300->sdio_register[i].sdio_reg = func_num; vub300->sdio_register[i].activate = 1; vub300->sdio_register[i].prepared = 0; i += 1; } dev_info(&vub300->udev->dev, "initialized %d dynamic pseudocode registers\n", vub300->dynamic_register_count); return; } else { dev_err(&vub300->udev->dev, "corrupt dynamic registers in firmware %s\n", vub300->vub_name); strncpy(vub300->vub_name, "corrupt dynamic registers", sizeof(vub300->vub_name)); return; } } /* * if the binary containing the EMPTY PseudoCode can not be found * vub300->vub_name is set anyway in order to prevent an automatic retry */ static void download_offload_pseudocode(struct vub300_mmc_host *vub300) { struct mmc_card *card = vub300->mmc->card; int sdio_funcs = card->sdio_funcs; const struct firmware *fw = NULL; int l = snprintf(vub300->vub_name, sizeof(vub300->vub_name), "vub_%04X%04X", card->cis.vendor, card->cis.device); int n = 0; int retval; for (n = 0; n < sdio_funcs; n++) { struct sdio_func *sf = card->sdio_func[n]; l += snprintf(vub300->vub_name + l, sizeof(vub300->vub_name) - l, "_%04X%04X", sf->vendor, sf->device); } snprintf(vub300->vub_name + l, sizeof(vub300->vub_name) - l, ".bin"); dev_info(&vub300->udev->dev, "requesting offload firmware %s\n", vub300->vub_name); retval = request_firmware(&fw, vub300->vub_name, &card->dev); if (retval < 0) { strncpy(vub300->vub_name, "vub_default.bin", sizeof(vub300->vub_name)); retval = request_firmware(&fw, vub300->vub_name, &card->dev); if (retval < 0) { strncpy(vub300->vub_name, "no SDIO offload firmware found", sizeof(vub300->vub_name)); } else { __download_offload_pseudocode(vub300, fw); release_firmware(fw); } } else { __download_offload_pseudocode(vub300, fw); release_firmware(fw); } } static void vub300_usb_bulk_msg_completion(struct urb *urb) { /* urb completion handler - hardirq */ complete((struct completion *)urb->context); } static int vub300_usb_bulk_msg(struct vub300_mmc_host *vub300, unsigned int pipe, void *data, int len, int *actual_length, int timeout_msecs) { /* cmd_mutex is held by vub300_cmndwork_thread */ struct usb_device *usb_dev = vub300->udev; struct completion done; int retval; vub300->urb = usb_alloc_urb(0, GFP_KERNEL); if (!vub300->urb) return -ENOMEM; usb_fill_bulk_urb(vub300->urb, usb_dev, pipe, data, len, vub300_usb_bulk_msg_completion, NULL); init_completion(&done); vub300->urb->context = &done; vub300->urb->actual_length = 0; retval = usb_submit_urb(vub300->urb, GFP_KERNEL); if (unlikely(retval)) goto out; if (!wait_for_completion_timeout (&done, msecs_to_jiffies(timeout_msecs))) { retval = -ETIMEDOUT; usb_kill_urb(vub300->urb); } else { retval = vub300->urb->status; } out: *actual_length = vub300->urb->actual_length; usb_free_urb(vub300->urb); vub300->urb = NULL; return retval; } static int __command_read_data(struct vub300_mmc_host *vub300, struct mmc_command *cmd, struct mmc_data *data) { /* cmd_mutex is held by vub300_cmndwork_thread */ int linear_length = vub300->datasize; int padded_length = vub300->large_usb_packets ? ((511 + linear_length) >> 9) << 9 : ((63 + linear_length) >> 6) << 6; if ((padded_length == linear_length) || !pad_input_to_usb_pkt) { int result; unsigned pipe; pipe = usb_rcvbulkpipe(vub300->udev, vub300->data_inp_ep); result = usb_sg_init(&vub300->sg_request, vub300->udev, pipe, 0, data->sg, data->sg_len, 0, GFP_KERNEL); if (result < 0) { usb_unlink_urb(vub300->command_out_urb); usb_unlink_urb(vub300->command_res_urb); cmd->error = result; data->bytes_xfered = 0; return 0; } else { vub300->sg_transfer_timer.expires = jiffies + msecs_to_jiffies(2000 + (linear_length / 16384)); add_timer(&vub300->sg_transfer_timer); usb_sg_wait(&vub300->sg_request); del_timer(&vub300->sg_transfer_timer); if (vub300->sg_request.status < 0) { cmd->error = vub300->sg_request.status; data->bytes_xfered = 0; return 0; } else { data->bytes_xfered = vub300->datasize; return linear_length; } } } else { u8 *buf = kmalloc(padded_length, GFP_KERNEL); if (buf) { int result; unsigned pipe = usb_rcvbulkpipe(vub300->udev, vub300->data_inp_ep); int actual_length = 0; result = vub300_usb_bulk_msg(vub300, pipe, buf, padded_length, &actual_length, 2000 + (padded_length / 16384)); if (result < 0) { cmd->error = result; data->bytes_xfered = 0; kfree(buf); return 0; } else if (actual_length < linear_length) { cmd->error = -EREMOTEIO; data->bytes_xfered = 0; kfree(buf); return 0; } else { sg_copy_from_buffer(data->sg, data->sg_len, buf, linear_length); kfree(buf); data->bytes_xfered = vub300->datasize; return linear_length; } } else { cmd->error = -ENOMEM; data->bytes_xfered = 0; return 0; } } } static int __command_write_data(struct vub300_mmc_host *vub300, struct mmc_command *cmd, struct mmc_data *data) { /* cmd_mutex is held by vub300_cmndwork_thread */ unsigned pipe = usb_sndbulkpipe(vub300->udev, vub300->data_out_ep); int linear_length = vub300->datasize; int modulo_64_length = linear_length & 0x003F; int modulo_512_length = linear_length & 0x01FF; if (linear_length < 64) { int result; int actual_length; sg_copy_to_buffer(data->sg, data->sg_len, vub300->padded_buffer, sizeof(vub300->padded_buffer)); memset(vub300->padded_buffer + linear_length, 0, sizeof(vub300->padded_buffer) - linear_length); result = vub300_usb_bulk_msg(vub300, pipe, vub300->padded_buffer, sizeof(vub300->padded_buffer), &actual_length, 2000 + (sizeof(vub300->padded_buffer) / 16384)); if (result < 0) { cmd->error = result; data->bytes_xfered = 0; } else { data->bytes_xfered = vub300->datasize; } } else if ((!vub300->large_usb_packets && (0 < modulo_64_length)) || (vub300->large_usb_packets && (64 > modulo_512_length)) ) { /* don't you just love these work-rounds */ int padded_length = ((63 + linear_length) >> 6) << 6; u8 *buf = kmalloc(padded_length, GFP_KERNEL); if (buf) { int result; int actual_length; sg_copy_to_buffer(data->sg, data->sg_len, buf, padded_length); memset(buf + linear_length, 0, padded_length - linear_length); result = vub300_usb_bulk_msg(vub300, pipe, buf, padded_length, &actual_length, 2000 + padded_length / 16384); kfree(buf); if (result < 0) { cmd->error = result; data->bytes_xfered = 0; } else { data->bytes_xfered = vub300->datasize; } } else { cmd->error = -ENOMEM; data->bytes_xfered = 0; } } else { /* no data padding required */ int result; unsigned char buf[64 * 4]; sg_copy_to_buffer(data->sg, data->sg_len, buf, sizeof(buf)); result = usb_sg_init(&vub300->sg_request, vub300->udev, pipe, 0, data->sg, data->sg_len, 0, GFP_KERNEL); if (result < 0) { usb_unlink_urb(vub300->command_out_urb); usb_unlink_urb(vub300->command_res_urb); cmd->error = result; data->bytes_xfered = 0; } else { vub300->sg_transfer_timer.expires = jiffies + msecs_to_jiffies(2000 + linear_length / 16384); add_timer(&vub300->sg_transfer_timer); usb_sg_wait(&vub300->sg_request); if (cmd->error) { data->bytes_xfered = 0; } else { del_timer(&vub300->sg_transfer_timer); if (vub300->sg_request.status < 0) { cmd->error = vub300->sg_request.status; data->bytes_xfered = 0; } else { data->bytes_xfered = vub300->datasize; } } } } return linear_length; } static void __vub300_command_response(struct vub300_mmc_host *vub300, struct mmc_command *cmd, struct mmc_data *data, int data_length) { /* cmd_mutex is held by vub300_cmndwork_thread */ long respretval; int msec_timeout = 1000 + data_length / 4; respretval = wait_for_completion_timeout(&vub300->command_complete, msecs_to_jiffies(msec_timeout)); if (respretval == 0) { /* TIMED OUT */ /* we don't know which of "out" and "res" if any failed */ int result; vub300->usb_timed_out = 1; usb_kill_urb(vub300->command_out_urb); usb_kill_urb(vub300->command_res_urb); cmd->error = -ETIMEDOUT; result = usb_lock_device_for_reset(vub300->udev, vub300->interface); if (result == 0) { result = usb_reset_device(vub300->udev); usb_unlock_device(vub300->udev); } } else if (respretval < 0) { /* we don't know which of "out" and "res" if any failed */ usb_kill_urb(vub300->command_out_urb); usb_kill_urb(vub300->command_res_urb); cmd->error = respretval; } else if (cmd->error) { /* * the error occurred sending the command * or receiving the response */ } else if (vub300->command_out_urb->status) { vub300->usb_transport_fail = vub300->command_out_urb->status; cmd->error = -EPROTO == vub300->command_out_urb->status ? -ESHUTDOWN : vub300->command_out_urb->status; } else if (vub300->command_res_urb->status) { vub300->usb_transport_fail = vub300->command_res_urb->status; cmd->error = -EPROTO == vub300->command_res_urb->status ? -ESHUTDOWN : vub300->command_res_urb->status; } else if (vub300->resp.common.header_type == 0x00) { /* * the command completed successfully * and there was no piggybacked data */ } else if (vub300->resp.common.header_type == RESPONSE_ERROR) { cmd->error = vub300_response_error(vub300->resp.error.error_code); if (vub300->data) usb_sg_cancel(&vub300->sg_request); } else if (vub300->resp.common.header_type == RESPONSE_PIGGYBACKED) { int offloaded_data_length = vub300->resp.common.header_size - sizeof(struct sd_register_header); int register_count = offloaded_data_length >> 3; int ri = 0; while (register_count--) { add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); ri += 1; } vub300->resp.common.header_size = sizeof(struct sd_register_header); vub300->resp.common.header_type = 0x00; cmd->error = 0; } else if (vub300->resp.common.header_type == RESPONSE_PIG_DISABLED) { int offloaded_data_length = vub300->resp.common.header_size - sizeof(struct sd_register_header); int register_count = offloaded_data_length >> 3; int ri = 0; while (register_count--) { add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); ri += 1; } mutex_lock(&vub300->irq_mutex); if (vub300->irqs_queued) { vub300->irqs_queued += 1; } else if (vub300->irq_enabled) { vub300->irqs_queued += 1; vub300_queue_poll_work(vub300, 0); } else { vub300->irqs_queued += 1; } vub300->irq_disabled = 1; mutex_unlock(&vub300->irq_mutex); vub300->resp.common.header_size = sizeof(struct sd_register_header); vub300->resp.common.header_type = 0x00; cmd->error = 0; } else if (vub300->resp.common.header_type == RESPONSE_PIG_ENABLED) { int offloaded_data_length = vub300->resp.common.header_size - sizeof(struct sd_register_header); int register_count = offloaded_data_length >> 3; int ri = 0; while (register_count--) { add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); ri += 1; } mutex_lock(&vub300->irq_mutex); if (vub300->irqs_queued) { vub300->irqs_queued += 1; } else if (vub300->irq_enabled) { vub300->irqs_queued += 1; vub300_queue_poll_work(vub300, 0); } else { vub300->irqs_queued += 1; } vub300->irq_disabled = 0; mutex_unlock(&vub300->irq_mutex); vub300->resp.common.header_size = sizeof(struct sd_register_header); vub300->resp.common.header_type = 0x00; cmd->error = 0; } else { cmd->error = -EINVAL; } } static void construct_request_response(struct vub300_mmc_host *vub300, struct mmc_command *cmd) { int resp_len = vub300->resp_len; int less_cmd = (17 == resp_len) ? resp_len : resp_len - 1; int bytes = 3 & less_cmd; int words = less_cmd >> 2; u8 *r = vub300->resp.response.command_response; if (bytes == 3) { cmd->resp[words] = (r[1 + (words << 2)] << 24) | (r[2 + (words << 2)] << 16) | (r[3 + (words << 2)] << 8); } else if (bytes == 2) { cmd->resp[words] = (r[1 + (words << 2)] << 24) | (r[2 + (words << 2)] << 16); } else if (bytes == 1) { cmd->resp[words] = (r[1 + (words << 2)] << 24); } while (words-- > 0) { cmd->resp[words] = (r[1 + (words << 2)] << 24) | (r[2 + (words << 2)] << 16) | (r[3 + (words << 2)] << 8) | (r[4 + (words << 2)] << 0); } if ((cmd->opcode == 53) && (0x000000FF & cmd->resp[0])) cmd->resp[0] &= 0xFFFFFF00; } /* this thread runs only when there is an upper level command req outstanding */ static void vub300_cmndwork_thread(struct work_struct *work) { struct vub300_mmc_host *vub300 = container_of(work, struct vub300_mmc_host, cmndwork); if (!vub300->interface) { kref_put(&vub300->kref, vub300_delete); return; } else { struct mmc_request *req = vub300->req; struct mmc_command *cmd = vub300->cmd; struct mmc_data *data = vub300->data; int data_length; mutex_lock(&vub300->cmd_mutex); init_completion(&vub300->command_complete); if (likely(vub300->vub_name[0]) || !vub300->mmc->card || !mmc_card_present(vub300->mmc->card)) { /* * the name of the EMPTY Pseudo firmware file * is used as a flag to indicate that the file * has been already downloaded to the VUB300 chip */ } else if (0 == vub300->mmc->card->sdio_funcs) { strncpy(vub300->vub_name, "SD memory device", sizeof(vub300->vub_name)); } else { download_offload_pseudocode(vub300); } send_command(vub300); if (!data) data_length = 0; else if (MMC_DATA_READ & data->flags) data_length = __command_read_data(vub300, cmd, data); else data_length = __command_write_data(vub300, cmd, data); __vub300_command_response(vub300, cmd, data, data_length); vub300->req = NULL; vub300->cmd = NULL; vub300->data = NULL; if (cmd->error) { if (cmd->error == -ENOMEDIUM) check_vub300_port_status(vub300); mutex_unlock(&vub300->cmd_mutex); mmc_request_done(vub300->mmc, req); kref_put(&vub300->kref, vub300_delete); return; } else { construct_request_response(vub300, cmd); vub300->resp_len = 0; mutex_unlock(&vub300->cmd_mutex); kref_put(&vub300->kref, vub300_delete); mmc_request_done(vub300->mmc, req); return; } } } static int examine_cyclic_buffer(struct vub300_mmc_host *vub300, struct mmc_command *cmd, u8 Function) { /* cmd_mutex is held by vub300_mmc_request */ u8 cmd0 = 0xFF & (cmd->arg >> 24); u8 cmd1 = 0xFF & (cmd->arg >> 16); u8 cmd2 = 0xFF & (cmd->arg >> 8); u8 cmd3 = 0xFF & (cmd->arg >> 0); int first = MAXREGMASK & vub300->fn[Function].offload_point; struct offload_registers_access *rf = &vub300->fn[Function].reg[first]; if (cmd0 == rf->command_byte[0] && cmd1 == rf->command_byte[1] && cmd2 == rf->command_byte[2] && cmd3 == rf->command_byte[3]) { u8 checksum = 0x00; cmd->resp[1] = checksum << 24; cmd->resp[0] = (rf->Respond_Byte[0] << 24) | (rf->Respond_Byte[1] << 16) | (rf->Respond_Byte[2] << 8) | (rf->Respond_Byte[3] << 0); vub300->fn[Function].offload_point += 1; vub300->fn[Function].offload_count -= 1; vub300->total_offload_count -= 1; return 1; } else { int delta = 1; /* because it does not match the first one */ u8 register_count = vub300->fn[Function].offload_count - 1; u32 register_point = vub300->fn[Function].offload_point + 1; while (0 < register_count) { int point = MAXREGMASK & register_point; struct offload_registers_access *r = &vub300->fn[Function].reg[point]; if (cmd0 == r->command_byte[0] && cmd1 == r->command_byte[1] && cmd2 == r->command_byte[2] && cmd3 == r->command_byte[3]) { u8 checksum = 0x00; cmd->resp[1] = checksum << 24; cmd->resp[0] = (r->Respond_Byte[0] << 24) | (r->Respond_Byte[1] << 16) | (r->Respond_Byte[2] << 8) | (r->Respond_Byte[3] << 0); vub300->fn[Function].offload_point += delta; vub300->fn[Function].offload_count -= delta; vub300->total_offload_count -= delta; return 1; } else { register_point += 1; register_count -= 1; delta += 1; continue; } } return 0; } } static int satisfy_request_from_offloaded_data(struct vub300_mmc_host *vub300, struct mmc_command *cmd) { /* cmd_mutex is held by vub300_mmc_request */ u8 regs = vub300->dynamic_register_count; u8 i = 0; u8 func = FUN(cmd); u32 reg = REG(cmd); while (0 < regs--) { if ((vub300->sdio_register[i].func_num == func) && (vub300->sdio_register[i].sdio_reg == reg)) { if (!vub300->sdio_register[i].prepared) { return 0; } else if ((0x80000000 & cmd->arg) == 0x80000000) { /* * a write to a dynamic register * nullifies our offloaded value */ vub300->sdio_register[i].prepared = 0; return 0; } else { u8 checksum = 0x00; u8 rsp0 = 0x00; u8 rsp1 = 0x00; u8 rsp2 = vub300->sdio_register[i].response; u8 rsp3 = vub300->sdio_register[i].regvalue; vub300->sdio_register[i].prepared = 0; cmd->resp[1] = checksum << 24; cmd->resp[0] = (rsp0 << 24) | (rsp1 << 16) | (rsp2 << 8) | (rsp3 << 0); return 1; } } else { i += 1; continue; } } if (vub300->total_offload_count == 0) return 0; else if (vub300->fn[func].offload_count == 0) return 0; else return examine_cyclic_buffer(vub300, cmd, func); } static void vub300_mmc_request(struct mmc_host *mmc, struct mmc_request *req) { /* NOT irq */ struct mmc_command *cmd = req->cmd; struct vub300_mmc_host *vub300 = mmc_priv(mmc); if (!vub300->interface) { cmd->error = -ESHUTDOWN; mmc_request_done(mmc, req); return; } else { struct mmc_data *data = req->data; if (!vub300->card_powered) { cmd->error = -ENOMEDIUM; mmc_request_done(mmc, req); return; } if (!vub300->card_present) { cmd->error = -ENOMEDIUM; mmc_request_done(mmc, req); return; } if (vub300->usb_transport_fail) { cmd->error = vub300->usb_transport_fail; mmc_request_done(mmc, req); return; } if (!vub300->interface) { cmd->error = -ENODEV; mmc_request_done(mmc, req); return; } kref_get(&vub300->kref); mutex_lock(&vub300->cmd_mutex); mod_timer(&vub300->inactivity_timer, jiffies + HZ); /* * for performance we have to return immediately * if the requested data has been offloaded */ if (cmd->opcode == 52 && satisfy_request_from_offloaded_data(vub300, cmd)) { cmd->error = 0; mutex_unlock(&vub300->cmd_mutex); kref_put(&vub300->kref, vub300_delete); mmc_request_done(mmc, req); return; } else { vub300->cmd = cmd; vub300->req = req; vub300->data = data; if (data) vub300->datasize = data->blksz * data->blocks; else vub300->datasize = 0; vub300_queue_cmnd_work(vub300); mutex_unlock(&vub300->cmd_mutex); kref_put(&vub300->kref, vub300_delete); /* * the kernel lock diagnostics complain * if the cmd_mutex * is "passed on" * to the cmndwork thread, * so we must release it now * and re-acquire it in the cmndwork thread */ } } } static void __set_clock_speed(struct vub300_mmc_host *vub300, u8 buf[8], struct mmc_ios *ios) { int buf_array_size = 8; /* ARRAY_SIZE(buf) does not work !!! */ int retval; u32 kHzClock; if (ios->clock >= 48000000) kHzClock = 48000; else if (ios->clock >= 24000000) kHzClock = 24000; else if (ios->clock >= 20000000) kHzClock = 20000; else if (ios->clock >= 15000000) kHzClock = 15000; else if (ios->clock >= 200000) kHzClock = 200; else kHzClock = 0; { int i; u64 c = kHzClock; for (i = 0; i < buf_array_size; i++) { buf[i] = c; c >>= 8; } } retval = usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), SET_CLOCK_SPEED, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x00, 0x00, buf, buf_array_size, HZ); if (retval != 8) { dev_err(&vub300->udev->dev, "SET_CLOCK_SPEED" " %dkHz failed with retval=%d\n", kHzClock, retval); } else { dev_dbg(&vub300->udev->dev, "SET_CLOCK_SPEED" " %dkHz\n", kHzClock); } } static void vub300_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) { /* NOT irq */ struct vub300_mmc_host *vub300 = mmc_priv(mmc); if (!vub300->interface) return; kref_get(&vub300->kref); mutex_lock(&vub300->cmd_mutex); if ((ios->power_mode == MMC_POWER_OFF) && vub300->card_powered) { vub300->card_powered = 0; usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), SET_SD_POWER, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0000, 0x0000, NULL, 0, HZ); /* must wait for the VUB300 u-proc to boot up */ msleep(600); } else if ((ios->power_mode == MMC_POWER_UP) && !vub300->card_powered) { usb_control_msg(vub300->udev, usb_sndctrlpipe(vub300->udev, 0), SET_SD_POWER, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0001, 0x0000, NULL, 0, HZ); msleep(600); vub300->card_powered = 1; } else if (ios->power_mode == MMC_POWER_ON) { u8 *buf = kmalloc(8, GFP_KERNEL); if (buf) { __set_clock_speed(vub300, buf, ios); kfree(buf); } } else { /* this should mean no change of state */ } mutex_unlock(&vub300->cmd_mutex); kref_put(&vub300->kref, vub300_delete); } static int vub300_mmc_get_ro(struct mmc_host *mmc) { struct vub300_mmc_host *vub300 = mmc_priv(mmc); return vub300->read_only; } static void vub300_enable_sdio_irq(struct mmc_host *mmc, int enable) { /* NOT irq */ struct vub300_mmc_host *vub300 = mmc_priv(mmc); if (!vub300->interface) return; kref_get(&vub300->kref); if (enable) { mutex_lock(&vub300->irq_mutex); if (vub300->irqs_queued) { vub300->irqs_queued -= 1; mmc_signal_sdio_irq(vub300->mmc); } else if (vub300->irq_disabled) { vub300->irq_disabled = 0; vub300->irq_enabled = 1; vub300_queue_poll_work(vub300, 0); } else if (vub300->irq_enabled) { /* this should not happen, so we will just ignore it */ } else { vub300->irq_enabled = 1; vub300_queue_poll_work(vub300, 0); } mutex_unlock(&vub300->irq_mutex); } else { vub300->irq_enabled = 0; } kref_put(&vub300->kref, vub300_delete); } static void vub300_init_card(struct mmc_host *mmc, struct mmc_card *card) { /* NOT irq */ struct vub300_mmc_host *vub300 = mmc_priv(mmc); dev_info(&vub300->udev->dev, "NO host QUIRKS for this card\n"); } static struct mmc_host_ops vub300_mmc_ops = { .request = vub300_mmc_request, .set_ios = vub300_mmc_set_ios, .get_ro = vub300_mmc_get_ro, .enable_sdio_irq = vub300_enable_sdio_irq, .init_card = vub300_init_card, }; static int vub300_probe(struct usb_interface *interface, const struct usb_device_id *id) { /* NOT irq */ struct vub300_mmc_host *vub300; struct usb_host_interface *iface_desc; struct usb_device *udev = usb_get_dev(interface_to_usbdev(interface)); int i; int retval = -ENOMEM; struct urb *command_out_urb; struct urb *command_res_urb; struct mmc_host *mmc; char manufacturer[48]; char product[32]; char serial_number[32]; usb_string(udev, udev->descriptor.iManufacturer, manufacturer, sizeof(manufacturer)); usb_string(udev, udev->descriptor.iProduct, product, sizeof(product)); usb_string(udev, udev->descriptor.iSerialNumber, serial_number, sizeof(serial_number)); dev_info(&udev->dev, "probing VID:PID(%04X:%04X) %s %s %s\n", udev->descriptor.idVendor, udev->descriptor.idProduct, manufacturer, product, serial_number); command_out_urb = usb_alloc_urb(0, GFP_KERNEL); if (!command_out_urb) { retval = -ENOMEM; dev_err(&udev->dev, "not enough memory for command_out_urb\n"); goto error0; } command_res_urb = usb_alloc_urb(0, GFP_KERNEL); if (!command_res_urb) { retval = -ENOMEM; dev_err(&udev->dev, "not enough memory for command_res_urb\n"); goto error1; } /* this also allocates memory for our VUB300 mmc host device */ mmc = mmc_alloc_host(sizeof(struct vub300_mmc_host), &udev->dev); if (!mmc) { retval = -ENOMEM; dev_err(&udev->dev, "not enough memory for the mmc_host\n"); goto error4; } /* MMC core transfer sizes tunable parameters */ mmc->caps = 0; if (!force_1_bit_data_xfers) mmc->caps |= MMC_CAP_4_BIT_DATA; if (!force_polling_for_irqs) mmc->caps |= MMC_CAP_SDIO_IRQ; mmc->caps &= ~MMC_CAP_NEEDS_POLL; /* * MMC_CAP_NEEDS_POLL causes core.c:mmc_rescan() to poll * for devices which results in spurious CMD7's being * issued which stops some SDIO cards from working */ if (limit_speed_to_24_MHz) { mmc->caps |= MMC_CAP_MMC_HIGHSPEED; mmc->caps |= MMC_CAP_SD_HIGHSPEED; mmc->f_max = 24000000; dev_info(&udev->dev, "limiting SDIO speed to 24_MHz\n"); } else { mmc->caps |= MMC_CAP_MMC_HIGHSPEED; mmc->caps |= MMC_CAP_SD_HIGHSPEED; mmc->f_max = 48000000; } mmc->f_min = 200000; mmc->max_blk_count = 511; mmc->max_blk_size = 512; mmc->max_segs = 128; if (force_max_req_size) mmc->max_req_size = force_max_req_size * 1024; else mmc->max_req_size = 64 * 1024; mmc->max_seg_size = mmc->max_req_size; mmc->ocr_avail = 0; mmc->ocr_avail |= MMC_VDD_165_195; mmc->ocr_avail |= MMC_VDD_20_21; mmc->ocr_avail |= MMC_VDD_21_22; mmc->ocr_avail |= MMC_VDD_22_23; mmc->ocr_avail |= MMC_VDD_23_24; mmc->ocr_avail |= MMC_VDD_24_25; mmc->ocr_avail |= MMC_VDD_25_26; mmc->ocr_avail |= MMC_VDD_26_27; mmc->ocr_avail |= MMC_VDD_27_28; mmc->ocr_avail |= MMC_VDD_28_29; mmc->ocr_avail |= MMC_VDD_29_30; mmc->ocr_avail |= MMC_VDD_30_31; mmc->ocr_avail |= MMC_VDD_31_32; mmc->ocr_avail |= MMC_VDD_32_33; mmc->ocr_avail |= MMC_VDD_33_34; mmc->ocr_avail |= MMC_VDD_34_35; mmc->ocr_avail |= MMC_VDD_35_36; mmc->ops = &vub300_mmc_ops; vub300 = mmc_priv(mmc); vub300->mmc = mmc; vub300->card_powered = 0; vub300->bus_width = 0; vub300->cmnd.head.block_size[0] = 0x00; vub300->cmnd.head.block_size[1] = 0x00; vub300->app_spec = 0; mutex_init(&vub300->cmd_mutex); mutex_init(&vub300->irq_mutex); vub300->command_out_urb = command_out_urb; vub300->command_res_urb = command_res_urb; vub300->usb_timed_out = 0; vub300->dynamic_register_count = 0; for (i = 0; i < ARRAY_SIZE(vub300->fn); i++) { vub300->fn[i].offload_point = 0; vub300->fn[i].offload_count = 0; } vub300->total_offload_count = 0; vub300->irq_enabled = 0; vub300->irq_disabled = 0; vub300->irqs_queued = 0; for (i = 0; i < ARRAY_SIZE(vub300->sdio_register); i++) vub300->sdio_register[i++].activate = 0; vub300->udev = udev; vub300->interface = interface; vub300->cmnd_res_ep = 0; vub300->cmnd_out_ep = 0; vub300->data_inp_ep = 0; vub300->data_out_ep = 0; for (i = 0; i < ARRAY_SIZE(vub300->fbs); i++) vub300->fbs[i] = 512; /* * set up the endpoint information * * use the first pair of bulk-in and bulk-out * endpoints for Command/Response+Interrupt * * use the second pair of bulk-in and bulk-out * endpoints for Data In/Out */ vub300->large_usb_packets = 0; iface_desc = interface->cur_altsetting; for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { struct usb_endpoint_descriptor *endpoint = &iface_desc->endpoint[i].desc; dev_info(&vub300->udev->dev, "vub300 testing %s EndPoint(%d) %02X\n", usb_endpoint_is_bulk_in(endpoint) ? "BULK IN" : usb_endpoint_is_bulk_out(endpoint) ? "BULK OUT" : "UNKNOWN", i, endpoint->bEndpointAddress); if (endpoint->wMaxPacketSize > 64) vub300->large_usb_packets = 1; if (usb_endpoint_is_bulk_in(endpoint)) { if (!vub300->cmnd_res_ep) { vub300->cmnd_res_ep = endpoint->bEndpointAddress; } else if (!vub300->data_inp_ep) { vub300->data_inp_ep = endpoint->bEndpointAddress; } else { dev_warn(&vub300->udev->dev, "ignoring" " unexpected bulk_in endpoint"); } } else if (usb_endpoint_is_bulk_out(endpoint)) { if (!vub300->cmnd_out_ep) { vub300->cmnd_out_ep = endpoint->bEndpointAddress; } else if (!vub300->data_out_ep) { vub300->data_out_ep = endpoint->bEndpointAddress; } else { dev_warn(&vub300->udev->dev, "ignoring" " unexpected bulk_out endpoint"); } } else { dev_warn(&vub300->udev->dev, "vub300 ignoring EndPoint(%d) %02X", i, endpoint->bEndpointAddress); } } if (vub300->cmnd_res_ep && vub300->cmnd_out_ep && vub300->data_inp_ep && vub300->data_out_ep) { dev_info(&vub300->udev->dev, "vub300 %s packets" " using EndPoints %02X %02X %02X %02X\n", vub300->large_usb_packets ? "LARGE" : "SMALL", vub300->cmnd_out_ep, vub300->cmnd_res_ep, vub300->data_out_ep, vub300->data_inp_ep); /* we have the expected EndPoints */ } else { dev_err(&vub300->udev->dev, "Could not find two sets of bulk-in/out endpoint pairs\n"); retval = -EINVAL; goto error5; } retval = usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), GET_HC_INF0, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0000, 0x0000, &vub300->hc_info, sizeof(vub300->hc_info), HZ); if (retval < 0) goto error5; retval = usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), SET_ROM_WAIT_STATES, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, firmware_rom_wait_states, 0x0000, NULL, 0, HZ); if (retval < 0) goto error5; dev_info(&vub300->udev->dev, "operating_mode = %s %s %d MHz %s %d byte USB packets\n", (mmc->caps & MMC_CAP_SDIO_IRQ) ? "IRQs" : "POLL", (mmc->caps & MMC_CAP_4_BIT_DATA) ? "4-bit" : "1-bit", mmc->f_max / 1000000, pad_input_to_usb_pkt ? "padding input data to" : "with", vub300->large_usb_packets ? 512 : 64); retval = usb_control_msg(vub300->udev, usb_rcvctrlpipe(vub300->udev, 0), GET_SYSTEM_PORT_STATUS, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, 0x0000, 0x0000, &vub300->system_port_status, sizeof(vub300->system_port_status), HZ); if (retval < 0) { goto error4; } else if (sizeof(vub300->system_port_status) == retval) { vub300->card_present = (0x0001 & vub300->system_port_status.port_flags) ? 1 : 0; vub300->read_only = (0x0010 & vub300->system_port_status.port_flags) ? 1 : 0; } else { goto error4; } usb_set_intfdata(interface, vub300); INIT_DELAYED_WORK(&vub300->pollwork, vub300_pollwork_thread); INIT_WORK(&vub300->cmndwork, vub300_cmndwork_thread); INIT_WORK(&vub300->deadwork, vub300_deadwork_thread); kref_init(&vub300->kref); init_timer(&vub300->sg_transfer_timer); vub300->sg_transfer_timer.data = (unsigned long)vub300; vub300->sg_transfer_timer.function = vub300_sg_timed_out; kref_get(&vub300->kref); init_timer(&vub300->inactivity_timer); vub300->inactivity_timer.data = (unsigned long)vub300; vub300->inactivity_timer.function = vub300_inactivity_timer_expired; vub300->inactivity_timer.expires = jiffies + HZ; add_timer(&vub300->inactivity_timer); if (vub300->card_present) dev_info(&vub300->udev->dev, "USB vub300 remote SDIO host controller[%d]" "connected with SD/SDIO card inserted\n", interface_to_InterfaceNumber(interface)); else dev_info(&vub300->udev->dev, "USB vub300 remote SDIO host controller[%d]" "connected with no SD/SDIO card inserted\n", interface_to_InterfaceNumber(interface)); mmc_add_host(mmc); return 0; error5: mmc_free_host(mmc); /* * and hence also frees vub300 * which is contained at the end of struct mmc */ error4: usb_free_urb(command_res_urb); error1: usb_free_urb(command_out_urb); error0: usb_put_dev(udev); return retval; } static void vub300_disconnect(struct usb_interface *interface) { /* NOT irq */ struct vub300_mmc_host *vub300 = usb_get_intfdata(interface); if (!vub300 || !vub300->mmc) { return; } else { struct mmc_host *mmc = vub300->mmc; if (!vub300->mmc) { return; } else { int ifnum = interface_to_InterfaceNumber(interface); usb_set_intfdata(interface, NULL); /* prevent more I/O from starting */ vub300->interface = NULL; kref_put(&vub300->kref, vub300_delete); mmc_remove_host(mmc); pr_info("USB vub300 remote SDIO host controller[%d]" " now disconnected", ifnum); return; } } } #ifdef CONFIG_PM static int vub300_suspend(struct usb_interface *intf, pm_message_t message) { return 0; } static int vub300_resume(struct usb_interface *intf) { return 0; } #else #define vub300_suspend NULL #define vub300_resume NULL #endif static int vub300_pre_reset(struct usb_interface *intf) { /* NOT irq */ struct vub300_mmc_host *vub300 = usb_get_intfdata(intf); mutex_lock(&vub300->cmd_mutex); return 0; } static int vub300_post_reset(struct usb_interface *intf) { /* NOT irq */ struct vub300_mmc_host *vub300 = usb_get_intfdata(intf); /* we are sure no URBs are active - no locking needed */ vub300->errors = -EPIPE; mutex_unlock(&vub300->cmd_mutex); return 0; } static struct usb_driver vub300_driver = { .name = "vub300", .probe = vub300_probe, .disconnect = vub300_disconnect, .suspend = vub300_suspend, .resume = vub300_resume, .pre_reset = vub300_pre_reset, .post_reset = vub300_post_reset, .id_table = vub300_table, .supports_autosuspend = 1, }; static int __init vub300_init(void) { /* NOT irq */ int result; pr_info("VUB300 Driver rom wait states = %02X irqpoll timeout = %04X", firmware_rom_wait_states, 0x0FFFF & firmware_irqpoll_timeout); cmndworkqueue = create_singlethread_workqueue("kvub300c"); if (!cmndworkqueue) { pr_err("not enough memory for the REQUEST workqueue"); result = -ENOMEM; goto out1; } pollworkqueue = create_singlethread_workqueue("kvub300p"); if (!pollworkqueue) { pr_err("not enough memory for the IRQPOLL workqueue"); result = -ENOMEM; goto out2; } deadworkqueue = create_singlethread_workqueue("kvub300d"); if (!deadworkqueue) { pr_err("not enough memory for the EXPIRED workqueue"); result = -ENOMEM; goto out3; } result = usb_register(&vub300_driver); if (result) { pr_err("usb_register failed. Error number %d", result); goto out4; } return 0; out4: destroy_workqueue(deadworkqueue); out3: destroy_workqueue(pollworkqueue); out2: destroy_workqueue(cmndworkqueue); out1: return result; } static void __exit vub300_exit(void) { usb_deregister(&vub300_driver); flush_workqueue(cmndworkqueue); flush_workqueue(pollworkqueue); flush_workqueue(deadworkqueue); destroy_workqueue(cmndworkqueue); destroy_workqueue(pollworkqueue); destroy_workqueue(deadworkqueue); } module_init(vub300_init); module_exit(vub300_exit); MODULE_AUTHOR("Tony Olech <[email protected]>"); MODULE_DESCRIPTION("VUB300 USB to SD/MMC/SDIO adapter driver"); MODULE_LICENSE("GPL");
329892.c
0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0xD0,0x17,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0xB8,0x13,0xC8,0x15,0xD8,0x15,0xE0,0x17,0xE8,0x17,0xE8,0x19,0xF0,0x19,0xF0,0x19,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0xB0,0x11,0xC0,0x13,0xD0,0x15,0xD8,0x15,0xE0,0x17,0xE8,0x17,0xF0,0x19,0xF0,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0xB0,0x11,0xC0,0x13,0xD0,0x13,0xD8,0x15,0xE0,0x15,0xE8,0x17,0xE8,0x17,0xF0,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0xA0,0xF,0xB8,0x11,0xC8,0x13,0xD0,0x13,0xD8,0x15,0xE0,0x15,0xE8,0x17,0xE8,0x17,0xF0,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0xA8,0xF,0xB8,0x11,0xC8,0x13,0xD0,0x13,0xD8,0x15,0xE0,0x15,0xE8,0x17,0xE8,0x17,0xF0,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x98,0xD,0xA8,0xF,0xB8,0x11,0xC8,0x11,0xD0,0x13,0xD8,0x15,0xE0,0x15,0xE8,0x15,0xE8,0x17,0xF0,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x98,0xD,0xA8,0xF,0xB8,0x11,0xC0,0x11,0xD0,0x13,0xD8,0x13,0xE0,0x15,0xE0,0x15,0xE8,0x17,0xF0,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0xF8,0x1D,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x90,0xB,0xA8,0xD,0xB8,0xF,0xC0,0x11,0xC8,0x11,0xD0,0x13,0xD8,0x13,0xE0,0x15,0xE8,0x15,0xF0,0x17,0xF0,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0xF8,0x1D,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x90,0xB,0xA0,0xD,0xB0,0xF,0xC0,0x11,0xC8,0x11,0xD0,0x13,0xD8,0x13,0xE0,0x15,0xE0,0x15,0xE8,0x15,0xF0,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0xF8,0x1D,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x88,0x9,0x98,0xD,0xA8,0xD,0xB8,0xF,0xC0,0x11,0xC8,0x11,0xD0,0x13,0xD8,0x13,0xE0,0x15,0xE8,0x15,0xE8,0x15,0xF0,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1B,0xF8,0x1D,0xF8,0x1D,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x80,0x9,0x98,0xB,0xA8,0xD,0xB0,0xF,0xC0,0xF,0xC8,0x11,0xD0,0x11,0xD8,0x13,0xD8,0x13,0xE0,0x15,0xE8,0x15,0xF0,0x15,0xF0,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x1D,0xF8,0x5D,0xF8,0x5F,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x70,0x7,0x88,0x9,0xA0,0xB,0xA8,0xD,0xB8,0xF,0xC0,0xF,0xC8,0x11,0xD0,0x11,0xD8,0x13,0xE0,0x13,0xE0,0x15,0xE8,0x15,0xF0,0x15,0xF0,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1B,0xF8,0x5D,0xF8,0x5F,0xF8,0xA1,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x80,0x9,0x90,0xB,0xA0,0xD,0xB0,0xD,0xB8,0xF,0xC0,0xF,0xC8,0x11,0xD0,0x11,0xD8,0x13,0xE0,0x13,0xE8,0x15,0xE8,0x15,0xF0,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x1D,0xF8,0x5D,0xF8,0x9F,0xF8,0xE3,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x70,0x7,0x88,0x9,0x98,0xB,0xA8,0xD,0xB0,0xD,0xB8,0xF,0xC8,0x11,0xD0,0x11,0xD0,0x11,0xD8,0x13,0xE0,0x13,0xE8,0x15,0xE8,0x15,0xF0,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x1B,0xF8,0x5D,0xF8,0x5F,0xF8,0xA1,0xF9,0x25,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x60,0x3,0x78,0x7,0x90,0x9,0xA0,0xB,0xA8,0xD,0xB8,0xD,0xC0,0xF,0xC8,0x11,0xD0,0x11,0xD8,0x11,0xD8,0x13,0xE0,0x13,0xE8,0x15,0xE8,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x19,0xF8,0x5B,0xF8,0x5D,0xF8,0x9F,0xF8,0xE1,0xF9,0x65,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x70,0x5,0x80,0x7,0x90,0x9,0xA0,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD8,0x11,0xD8,0x13,0xE0,0x13,0xE8,0x13,0xE8,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x1B,0xF8,0x5B,0xF8,0x5D,0xF8,0x9F,0xF9,0x23,0xF9,0xA7,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x3,0x78,0x7,0x88,0x9,0x98,0xB,0xA0,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD8,0x11,0xD8,0x13,0xE0,0x13,0xE8,0x13,0xE8,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x1B,0xF8,0x5B,0xF8,0x9D,0xF8,0xE1,0xF9,0x23,0xF9,0xA9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x60,0x3,0x78,0x7,0x88,0x9,0x98,0xB,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD8,0x11,0xD8,0x13,0xE0,0x13,0xE8,0x13,0xE8,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x5B,0xF8,0x9D,0xF8,0xE1,0xF9,0x23,0xF9,0xE9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x40,0x1,0x68,0x5,0x80,0x7,0x90,0x9,0x98,0xB,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD8,0x11,0xD8,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x5B,0xF8,0x9D,0xF8,0xE1,0xF9,0x23,0xF9,0xE9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x70,0x5,0x80,0x7,0x90,0x9,0xA0,0xB,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD0,0x11,0xD8,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x19,0xF8,0x5B,0xF8,0x9D,0xF8,0xE1,0xF9,0x23,0xF9,0xE9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x3,0x70,0x5,0x80,0x7,0x90,0x9,0xA0,0xB,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD0,0x11,0xD8,0x11,0xE0,0x13,0xE0,0x13,0xE8,0x13,0xF0,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x5B,0xF8,0x9D,0xF8,0xDF,0xF9,0x23,0xF9,0xE9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x60,0x3,0x70,0x5,0x80,0x7,0x90,0x9,0xA0,0xB,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0xF,0xD0,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x5B,0xF8,0x9D,0xF8,0xDF,0xF9,0x23,0xF9,0xE7,0x58,0x0,0x58,0x0,0x58,0x0,0x48,0x1,0x60,0x3,0x78,0x5,0x88,0x7,0x90,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xD,0xC8,0xF,0xC8,0xF,0xD0,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x15,0xF0,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x59,0xF8,0x5B,0xF8,0x9F,0xF9,0x21,0xF9,0xA7,0x58,0x0,0x58,0x0,0x58,0x0,0x48,0x1,0x60,0x3,0x78,0x5,0x88,0x7,0x90,0x9,0x98,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC0,0xF,0xC8,0xF,0xD0,0x11,0xD8,0x11,0xD8,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x59,0xF8,0x5B,0xF8,0x9D,0xF8,0xDF,0xF9,0x65,0x58,0x0,0x58,0x0,0x58,0x0,0x48,0x1,0x60,0x3,0x78,0x5,0x88,0x7,0x90,0x9,0x98,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xB8,0xD,0xC0,0xF,0xC8,0xF,0xD0,0xF,0xD0,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x5B,0xF8,0x9D,0xF8,0xDF,0xF9,0x63,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x68,0x3,0x78,0x5,0x80,0x7,0x90,0x7,0x98,0x9,0xA0,0xB,0xA8,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xD,0xC8,0xF,0xD0,0xF,0xD0,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x59,0xF8,0x5B,0xF8,0x9D,0xF9,0x21,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x60,0x3,0x78,0x5,0x80,0x7,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xF,0xC8,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x59,0xF8,0x9B,0xF8,0xDF,0x58,0x0,0x58,0x0,0x60,0x3,0x50,0x1,0x60,0x3,0x70,0x5,0x80,0x5,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC0,0xF,0xC8,0xF,0xD0,0xF,0xD0,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x59,0xF8,0x5B,0xF8,0x9D,0x58,0x0,0x58,0x0,0x48,0x1,0x50,0x1,0x60,0x1,0x70,0x3,0x80,0x5,0x88,0x7,0x90,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB0,0xD,0xB8,0xD,0xC0,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x17,0xF8,0x59,0xF8,0x5B,0x58,0x0,0x58,0x0,0x48,0x1,0x50,0x1,0x60,0x1,0x70,0x3,0x78,0x5,0x88,0x7,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xF,0xC8,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0xF8,0x59,0x58,0x0,0x58,0x0,0x68,0x3,0x50,0x1,0x58,0x1,0x68,0x3,0x78,0x5,0x88,0x5,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xB8,0xD,0xC0,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0xF8,0x19,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x68,0x3,0x78,0x5,0x80,0x5,0x88,0x7,0x98,0x7,0xA0,0x9,0xA8,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD8,0xF,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x13,0xF8,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0xF8,0x17,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x50,0x1,0x60,0x1,0x70,0x3,0x80,0x5,0x88,0x7,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC0,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x13,0xF8,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x17,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x50,0x1,0x60,0x1,0x70,0x3,0x78,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE8,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0xF8,0x15,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x50,0x1,0x58,0x1,0x68,0x3,0x78,0x3,0x80,0x5,0x88,0x7,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD8,0xF,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x13,0xF0,0x15,0xF8,0x15,0xF8,0x15,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x50,0x1,0x58,0x1,0x60,0x1,0x70,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA8,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xD,0xC0,0xD,0xC0,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0xF,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x13,0xF0,0x13,0xF8,0x15,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x50,0x1,0x58,0x1,0x60,0x1,0x68,0x3,0x78,0x3,0x80,0x5,0x88,0x7,0x90,0x7,0x98,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB8,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x13,0xF0,0x15,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x68,0x1,0x70,0x3,0x78,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0xE8,0x13,0xE8,0x13,0xF0,0x13,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA8,0x9,0xA8,0xB,0xB0,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x11,0xE8,0x13,0xE8,0x13,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x7,0x90,0x7,0x98,0x7,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0xF,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE0,0x11,0xE8,0x13,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0x98,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0xF,0xD8,0x11,0xE0,0x11,0xE0,0x11,0xE0,0x11,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0xF,0xD8,0x11,0xD8,0x11,0xE0,0x11,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD0,0xF,0xD8,0x11,0xD8,0x11,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0xD8,0xF,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xD,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0xD0,0xF,0xD0,0xF,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xB,0xC0,0xD,0xC0,0xD,0xC0,0xD,0xC8,0xD,0xC8,0xF,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x78,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0x98,0x9,0xA0,0x9,0xA8,0x9,0xA8,0xB,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xD,0xC0,0xD,0xC0,0xD,0xC8,0xD,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0x98,0x7,0xA0,0x9,0xA8,0x9,0xA8,0x9,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xB,0xB8,0xD,0xC0,0xD,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x90,0x7,0x90,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xA8,0xB,0xB0,0xB,0xB0,0xB,0xB8,0xB,0xB8,0xD,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x88,0x5,0x90,0x7,0x98,0x7,0x98,0x7,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xA8,0xB,0xB0,0xB,0xB0,0xB,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x80,0x5,0x88,0x5,0x90,0x7,0x90,0x7,0x98,0x7,0x98,0x9,0xA0,0x9,0xA0,0x9,0xA8,0x9,0xA8,0xB,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x88,0x5,0x90,0x7,0x90,0x7,0x98,0x7,0x98,0x9,0xA0,0x9,0xA0,0x9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x78,0x3,0x80,0x5,0x88,0x5,0x88,0x5,0x90,0x7,0x90,0x7,0x98,0x7,0x98,0x9,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x78,0x5,0x80,0x5,0x88,0x5,0x88,0x5,0x88,0x7,0x90,0x7,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x78,0x3,0x78,0x3,0x80,0x5,0x80,0x5,0x88,0x5,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x1,0x70,0x3,0x70,0x3,0x78,0x3,0x78,0x5,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x60,0x1,0x68,0x1,0x68,0x3,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x1,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x50,0x1,0x50,0x1,0x50,0x1,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,0x58,0x0,
291261.c
/* * POK header * * The following file is a part of the POK project. Any modification should * made according to the POK licence. You CANNOT use this file or a part of * this file is this part of a file for your own project * * For more information on the POK licence, please see our LICENCE FILE * * Please follow the coding guidelines described in doc/CODING_GUIDELINES * * Copyright (c) 2007-2009 POK team * * Created by julien on Mon May 4 18:09:52 2009 */ #include <arinc653/partition.h> #include <libc/stdio.h> void test () { PARTITION_STATUS_TYPE status; RETURN_CODE_TYPE ret; GET_PARTITION_STATUS (&status, &ret); if (status.PERIOD != 1000) { printf("ERROR PERIOD\n"); } if (status.DURATION != 1000) { printf("ERROR DURATION\n"); } if (status.IDENTIFIER != 0) { printf("ERROR IDENTIFIER\n"); } if (status.LOCK_LEVEL != 0) { printf("ERROR LOCK LEVEL\n"); } if (status.OPERATING_MODE != NORMAL) { printf("ERROR OPERATING MODE\n"); } if (ret != NO_ERROR) { printf("ERROR RETURN CODE\n"); } printf("ALL TESTS WERE PASSED\n"); }
902167.c
/* $Id: upnppermissions.c,v 1.19 2014/03/13 10:11:24 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2014 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <ctype.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <syslog.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include "config.h" #include "upnppermissions.h" /* read_permission_line() * parse the a permission line which format is : * (deny|allow) [0-9]+(-[0-9]+) ip/mask [0-9]+(-[0-9]+) * ip/mask is either 192.168.1.1/24 or 192.168.1.1/255.255.255.0 */ int read_permission_line(struct upnpperm * perm, char * p) { char * q; int n_bits; int i; /* first token: (allow|deny) */ while(isspace(*p)) p++; if(0 == memcmp(p, "allow", 5)) { perm->type = UPNPPERM_ALLOW; p += 5; } else if(0 == memcmp(p, "deny", 4)) { perm->type = UPNPPERM_DENY; p += 4; } else { return -1; } while(isspace(*p)) p++; /* second token: eport or eport_min-eport_max */ if(!isdigit(*p)) return -1; for(q = p; isdigit(*q); q++); if(*q=='-') { *q = '\0'; i = atoi(p); if(i > 65535) return -1; perm->eport_min = (u_short)i; q++; p = q; while(isdigit(*q)) q++; *q = '\0'; i = atoi(p); if(i > 65535) return -1; perm->eport_max = (u_short)i; if(perm->eport_min > perm->eport_max) return -1; } else if(isspace(*q)) { *q = '\0'; i = atoi(p); if(i > 65535) return -1; perm->eport_min = perm->eport_max = (u_short)i; } else { return -1; } p = q + 1; while(isspace(*p)) p++; /* third token: ip/mask */ if(!isdigit(*p)) return -1; for(q = p; isdigit(*q) || (*q == '.'); q++); if(*q=='/') { *q = '\0'; if(!inet_aton(p, &perm->address)) return -1; q++; p = q; while(isdigit(*q)) q++; if(*q == '.') { while(*q == '.' || isdigit(*q)) q++; if(!isspace(*q)) return -1; *q = '\0'; if(!inet_aton(p, &perm->mask)) return -1; } else if(!isspace(*q)) return -1; else { *q = '\0'; n_bits = atoi(p); if(n_bits > 32) return -1; perm->mask.s_addr = htonl(n_bits ? (0xffffffffu << (32 - n_bits)) : 0); } } else if(isspace(*q)) { *q = '\0'; if(!inet_aton(p, &perm->address)) return -1; perm->mask.s_addr = 0xffffffffu; } else { return -1; } p = q + 1; /* fourth token: iport or iport_min-iport_max */ while(isspace(*p)) p++; if(!isdigit(*p)) return -1; for(q = p; isdigit(*q); q++); if(*q=='-') { *q = '\0'; i = atoi(p); if(i > 65535) return -1; perm->iport_min = (u_short)i; q++; p = q; while(isdigit(*q)) q++; *q = '\0'; i = atoi(p); if(i > 65535) return -1; perm->iport_max = (u_short)i; if(perm->iport_min > perm->iport_max) return -1; } else if(isspace(*q) || *q == '\0') { *q = '\0'; i = atoi(p); if(i > 65535) return -1; perm->iport_min = perm->iport_max = (u_short)i; } else { return -1; } #ifdef DEBUG printf("perm rule added : %s %hu-%hu %08x/%08x %hu-%hu\n", (perm->type==UPNPPERM_ALLOW)?"allow":"deny", perm->eport_min, perm->eport_max, ntohl(perm->address.s_addr), ntohl(perm->mask.s_addr), perm->iport_min, perm->iport_max); #endif return 0; } #ifdef USE_MINIUPNPDCTL void write_permlist(int fd, const struct upnpperm * permary, int nperms) { int l; const struct upnpperm * perm; int i; char buf[128]; write(fd, "Permissions :\n", 14); for(i = 0; i<nperms; i++) { perm = permary + i; l = snprintf(buf, sizeof(buf), "%02d %s %hu-%hu %08x/%08x %hu-%hu\n", i, (perm->type==UPNPPERM_ALLOW)?"allow":"deny", perm->eport_min, perm->eport_max, ntohl(perm->address.s_addr), ntohl(perm->mask.s_addr), perm->iport_min, perm->iport_max); if(l<0) return; write(fd, buf, l); } } #endif /* match_permission() * returns: 1 if eport, address, iport matches the permission rule * 0 if no match */ static int match_permission(const struct upnpperm * perm, u_short eport, struct in_addr address, u_short iport) { if( (eport < perm->eport_min) || (perm->eport_max < eport)) return 0; if( (iport < perm->iport_min) || (perm->iport_max < iport)) return 0; if( (address.s_addr & perm->mask.s_addr) != (perm->address.s_addr & perm->mask.s_addr) ) return 0; return 1; } #if 0 /* match_permission_internal() * returns: 1 if address, iport matches the permission rule * 0 if no match */ static int match_permission_internal(const struct upnpperm * perm, struct in_addr address, u_short iport) { if( (iport < perm->iport_min) || (perm->iport_max < iport)) return 0; if( (address.s_addr & perm->mask.s_addr) != (perm->address.s_addr & perm->mask.s_addr) ) return 0; return 1; } #endif int check_upnp_rule_against_permissions(const struct upnpperm * permary, int n_perms, u_short eport, struct in_addr address, u_short iport) { int i; for(i=0; i<n_perms; i++) { if(match_permission(permary + i, eport, address, iport)) { syslog(LOG_DEBUG, "UPnP permission rule %d matched : port mapping %s", i, (permary[i].type == UPNPPERM_ALLOW)?"accepted":"rejected" ); return (permary[i].type == UPNPPERM_ALLOW); } } syslog(LOG_DEBUG, "no permission rule matched : accept by default (n_perms=%d)", n_perms); return 1; /* Default : accept */ }
139688.c
/* * web_thing_action.c * * Created on: Nov 22, 2019 * Last update: Apr 2, 2021 * Author: kz * email: [email protected] */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "common.h" #include "simple_web_thing_server.h" #include "web_thing.h" #include "web_thing_action.h" char TRUE[] = "true"; char FALSE[] = "false"; char *action_model_jsonize(action_t *p, int16_t thing_index); char *input_prop_jsonize(action_input_prop_t *aip); char *request_inputs_jsonize(action_t *a, action_request_t *ar); action_request_t *get_request_ptr(action_t *a, int request_index); /****************************************************** * * Complete action, set status as "completed" and time * * ****************************************************/ int8_t complete_action(int thing_nr, char *action_id, ACTION_STATUS status){ int8_t res = -1; thing_t *t = NULL; action_t *a; int i; //find thing t = get_thing_ptr(thing_nr); if (t != NULL){ a = get_action_ptr(t, action_id); if (a != NULL){ //find request on the list i = a -> running_request_index; if (i > 0){ action_request_t *ar = get_request_ptr(a, i); ar -> status = status; ar -> time_completed = time(NULL); a -> running_request_index = -1; res = 0; char *buff = action_request_jsonize(thing_nr, action_id, i); inform_all_subscribers_action(a, buff, strlen(buff)); free(buff); } } } return res; } /********************************************** * * when action's status is changed upgrade it's record in actions list * * **********************************************/ void upgrade_request_on_list(int thing_nr, char *action_id, ACTION_STATUS status){ } /******************************************************* * * jsonize action request from requests list * ******************************************************/ char *action_request_jsonize(int thing_nr, char *action_id, int request_index){ thing_t *t = NULL; char *out_buff = NULL; action_t *a; char rq_str[] = "{\"%s\":{\"input\":{%s},\"href\":\"%s\",\"timeRequested\":\"%s\""\ ",%s\"status\":\"%s\"}}"; //values in rq_str: action id, inputs ("name":value), href, request time, //complete time (with semicolon at the end, empty if not completed), status char *status[] = {"pending", "completed", "executed", "failed", "created", "deleted"}; //find thing t = get_thing_ptr(thing_nr); a = get_action_ptr(t, action_id); //find action request if (a != NULL){ action_request_t *ar = get_request_ptr(a, request_index); if (ar != NULL){ char *inputs_buff, *href_buff = NULL; char *t_req = NULL, *t_com = NULL; struct tm ti; //jsonize inputs inputs_buff = request_inputs_jsonize(a, ar); //create href address href_buff = malloc(50); sprintf(href_buff, "/%i/actions/%s/%i", t ->thing_nr, action_id, request_index); //request time localtime_r(&(ar -> time_requested), &ti); t_req = malloc(50); memset(t_req, 0, 50); sprintf(t_req, "%04i-%02i-%02iT%02i:%02i:%02i+00:00", ti.tm_year + 1900, ti.tm_mon + 1, ti.tm_mday, ti.tm_hour, ti.tm_min, ti.tm_sec); //complete time t_com = malloc(70); memset(t_com, 0, 70); if (ar -> time_completed > 0){ localtime_r(&(ar -> time_completed), &ti); sprintf(t_com, "\"timeCompleted\":\"%04i-%02i-%02iT%02i:%02i:%02i+00:00\",", ti.tm_year + 1900, ti.tm_mon + 1, ti.tm_mday, ti.tm_hour, ti.tm_min, ti.tm_sec); } else{ strcpy(t_com, ""); } int len = strlen(a -> id) + strlen(rq_str) + strlen(inputs_buff) + strlen(href_buff) + strlen(t_req) + strlen(t_com) + 10; out_buff = malloc(len); sprintf(out_buff, rq_str, a -> id, inputs_buff, href_buff, t_req, t_com, status[ar -> status]); free(t_com); free(t_req); free(href_buff); free(inputs_buff); } } return out_buff; } /**************************************************** * * jsonize inputs of given request * * **************************************************/ char *request_inputs_jsonize(action_t *a, action_request_t *ar){ char prop_int_str[] = "\"%s\":%i"; char prop_num_str[] = "\"%s\":%5.3f"; char prop_str_str[] = "\"%s\":\"%s\""; int ipi; action_input_prop_t *ip; //prepare inputs list request_value_t *rv = ar -> values; //count how many values is saved in action_request int prop_qua = 0; while (rv != NULL){ prop_qua++; rv = rv -> next; } //calculate how long the names of the inputs are int id_len = 0; action_input_prop_t *ipt = a -> input_properties; while (ipt != NULL){ id_len += strlen(ipt -> id); ipt = ipt -> next; } int inputs_len = prop_qua * 50 + id_len + 10; char *inputs = malloc(inputs_len); memset(inputs, 0, inputs_len); rv = ar -> values; while (rv != NULL){ ipi = rv -> input_prop_index; //find input property name (id) ip = a -> input_properties; char *prop_id = NULL; while (ip != NULL){ if (ip -> input_prop_index == ipi){ prop_id = ip -> id; break; } ip = ip -> next; } if (prop_id != NULL){ if (rv -> value != NULL){ char *buff = malloc(strlen(ip -> id) + 30); memset(buff, 0, strlen(ip -> id) + 30); if (ip -> type == VAL_INTEGER){ sprintf(buff, prop_int_str, ip -> id, *(int *)(rv -> value)); } else if (ip -> type == VAL_NUMBER){ sprintf(buff, prop_num_str, ip -> id, *(double *)(rv -> value)); } else if (ip -> type == VAL_STRING){ sprintf(buff, prop_str_str, ip -> id, (char *)(rv -> value)); } else if (ip -> type == VAL_BOOLEAN){ if (*(int8_t *)(rv -> value) == 0){ sprintf(buff, prop_str_str, ip -> id, TRUE); } else{ sprintf(buff, prop_str_str, ip -> id, FALSE); } } else{ printf("INPUT JSONIZE: unknown type\n"); } strcat(inputs, buff); free(buff); } } rv = rv -> next; if (rv != NULL){ strcat(inputs, ","); } } return inputs; } /************************************************* * * while action is requested add it to the list of action's requests * * ************************************************/ int add_request_to_list(action_t *a, char *inputs){ action_request_t *ar, *ar_last; time_t t; bool end_of_inputs = false; char *p_start, *p1, *p2, name[16], value[16]; request_value_t *rv = NULL, *prev_rv = NULL, *first_rv = NULL; int next_index = -1; p_start = inputs; while (end_of_inputs == false){ memset(name, 0, 15); memset(value, 0, 15); //name p1 = strchr(p_start, '"'); if (p1 == NULL) goto add_request_to_list_end; p2 = strchr(p1 + 1, '"'); if (p2 == NULL) goto add_request_to_list_end; int name_len = p2 - p1 - 1; memcpy(name, p1 + 1, name_len); //value p1 = strchr(p2, ':'); if (p1 == NULL) goto add_request_to_list_end; p2 = strchr(p1 + 1, ','); if (p2 == NULL){ p2 = inputs + strlen(inputs); end_of_inputs = true; } else{ p_start = p2; } int val_len = p2 - p1 - 1; memcpy(value, p1 + 1, val_len); if (name_len > 0){ action_input_prop_t *ap; //find input property of this name ap = a -> input_properties; while (ap != NULL){ if (strcmp(name, ap -> id) == 0){ break; } ap = ap -> next; } if (ap != NULL){ rv = malloc(sizeof(request_value_t)); if (prev_rv != NULL){ prev_rv -> next = rv; } else{ first_rv = rv; } rv -> input_prop_index = ap -> input_prop_index; rv -> next = NULL; if (val_len > 0){ if (ap -> type == VAL_INTEGER){ int *int_value; int_value = malloc(sizeof(int)); *int_value = atoi(value); rv -> value = int_value; } else if (ap -> type == VAL_NUMBER){ double *num_value; num_value = malloc(sizeof(double)); *num_value = (double)atof(value); rv -> value = num_value; } else if (ap -> type == VAL_STRING){ char *str_value = malloc(val_len); memcpy(str_value, value + 1, val_len - 2); str_value[val_len - 2] = 0; rv -> value = str_value; } else if (ap -> type == VAL_BOOLEAN){ int8_t *bool_num_val; bool_num_val = malloc(sizeof(int8_t)); if (strstr(value, TRUE) != NULL){ *bool_num_val = 0; } else{ *bool_num_val = 1; } rv -> value = bool_num_val; } else{ //TODO printf("ADD REQUEST: Unknown input type\n"); } } else{ rv -> value = NULL; } } } prev_rv = rv; } t = time(NULL); ar = a -> requests_list; ar_last = a -> requests_list; int i = 0; while (ar != NULL){ ar_last = ar; i++; ar = ar -> next; } //add request into requests list if (i == MAX_ACTION_REQUESTS){ //request list is full, delete the oldest one to make place for new one action_request_t *ar_temp = a -> requests_list; //to be deleted a -> requests_list = a -> requests_list -> next; //delete values from the oldest request request_value_t *rv_temp = ar_temp -> values; request_value_t *rv_temp_prev = NULL; while (rv_temp != NULL){ free(rv_temp -> value); rv_temp_prev = rv_temp -> next; free(rv_temp); rv_temp = rv_temp_prev; } //delete the oldest request free(ar_temp); } //add new request at the end of the list next_index = a -> last_request_index + 1; action_request_t *ar_new = malloc(sizeof(action_request_t)); memset(ar_new, 0, sizeof(action_request_t)); if (ar_last == NULL){ a -> requests_list = ar_new; } else{ ar_last -> next = ar_new; } ar_new -> time_requested = t; ar_new -> status = ACT_CREATED; ar_new -> time_completed = 0; if (first_rv != NULL){ ar_new -> values = first_rv; } ar_new -> index = next_index; a -> last_request_index = next_index; a -> running_request_index = next_index; add_request_to_list_end: return next_index; } /************************************************** * * * *************************************************/ char *get_actions_model(thing_t *t){ char *act, *buff_temp; action_t *a; //count quantity of actions int i = 0; a = t -> actions; while (a != NULL){ i++; a = a -> next; } //printf("actions: %i\n", i); if (i > 0){ a = t -> actions; if (i > 1){ act = malloc(i * 500); memset(act, 0, i * 500); for (int j = i; j > 0; j--){ buff_temp = action_model_jsonize(a, t -> thing_nr); strcat(act, buff_temp); free(buff_temp); if (j != 1){ strcat(act, ","); } a = a -> next; } } else{ act = action_model_jsonize(a, t -> thing_nr); } } else{ act = malloc(3); strcpy(act, ""); } return act; } /******************************************************** * * create json model for action * * *****************************************************/ char *action_model_jsonize(action_t *a, int16_t thing_index){ char action_str[] = "\"%s\":{\"@type\":\"%s\",\"title\":\"%s\","\ "\"description\":\"%s\","\ "\"input\":{\"type\":\"object\",\"required\":[%s],"\ "\"properties\":{%s}},\"links\":[{\"rel\":\"action\","\ "\"href\":\"%sactions/%s\"}]}"; char *buff = NULL, *all_prop_buff = NULL, *prop_buff, th_lk[10], *req_buff; uint16_t i = 0, ap_len = 0; action_input_prop_t *aip; sprintf(th_lk, "/%i/", thing_index); //jsonize input properties of the action aip = a -> input_properties; //count quantity of properties while (aip != NULL){ i++; if (aip -> required == true){ ap_len += strlen(aip -> id); //properties length of required prop. } aip = aip -> next; } uint16_t req_len = ap_len + i * 2 + 5; uint16_t buff_len = i * ACTION_PROP_LEN + strlen(a -> description) + req_len; all_prop_buff = malloc(buff_len); memset(all_prop_buff, 0, buff_len); req_buff = malloc(req_len); memset(req_buff, 0, req_len); aip = a -> input_properties; int req_cnt = 0; while (aip != NULL){ prop_buff = input_prop_jsonize(aip); strcat(all_prop_buff, prop_buff); free(prop_buff); if (aip -> required == true){ if (req_cnt != 0){ strcat(req_buff, ","); } strcat(req_buff, "\""); strcat(req_buff, aip -> id); strcat(req_buff, "\""); req_cnt++; } i--; if (i > 0){ strcat(all_prop_buff, ","); } aip = aip -> next; } buff = malloc(400 + strlen(all_prop_buff)); sprintf(buff, action_str, a -> id, a -> input_at_type -> at_type, a -> title, a -> description, req_buff, all_prop_buff, th_lk, a -> id); free(req_buff); free(all_prop_buff); return buff; } /*********************************************** * * build json model of action input property * * *********************************************/ char *input_prop_jsonize(action_input_prop_t *aip){ char *buff = NULL, *buff1 = NULL, *buff_enum = NULL; char *type[] = {"null", "boolean", "object", "array", "number", "integer", "string"}; char prop_str[] = "\"%s\":{\"type\":\"%s\""; char buff_temp[30]; bool add_comma = false; //allocate and clear buffers buff = malloc(ACTION_PROP_LEN); memset(buff, 0, ACTION_PROP_LEN); memset(buff_temp, 0, 30); if (aip -> type == VAL_INTEGER){ if ((aip -> min_valid == true) || (aip -> max_valid == true) || (aip -> unit != NULL)){ buff1 = malloc(100); memset(buff1, 0, 100); } if (aip -> min_valid == true){ sprintf(buff_temp, "\"minimum\":%i", aip -> min_value.int_val); strcat(buff1, buff_temp); add_comma = true; } if (aip -> max_valid == true){ if (add_comma == true){ strcat(buff1, ","); } sprintf(buff_temp, "\"maximum\":%i", aip -> max_value.int_val); strcat(buff1, buff_temp); add_comma = true; } if (aip -> unit != NULL){ if (add_comma == true){ strcat(buff1, ","); } sprintf(buff_temp, "\"unit\":\"%s\"", aip -> unit); strcat(buff1, buff_temp); } if ((aip -> enum_prop == true) && (aip -> enum_list != NULL)){ //enum value char buff_loc_1[20]; enum_item_t *enum_item; int enum_i = 0; //calculate needed place enum_item = aip -> enum_list; while (enum_item){ enum_i++; enum_item = enum_item -> next; } buff_enum = malloc(enum_i * 10); //TODO: calculate needed place strcpy(buff_enum, "\"enum\":["); enum_item = aip -> enum_list; enum_i = 0; memset(buff_loc_1, 0, 20); while (enum_item){ if (enum_i > 0){ strcat(buff_enum, ","); } sprintf(buff_loc_1, "%d", enum_item -> value.int_val); strcat(buff_enum, buff_loc_1); memset(buff_loc_1, 0, 20); enum_i++; enum_item = enum_item -> next; } strcat(buff_enum, "]"); } } else if (aip -> type == VAL_NUMBER){ if ((aip -> min_valid == true) || (aip -> max_valid == true) || (aip -> unit != NULL)){ buff1 = malloc(100); memset(buff1, 0, 100); } //add maximum value if (aip -> min_valid == true){ sprintf(buff_temp, "\"minimum\":%5.3f", aip -> min_value.float_val); strcat(buff1, buff_temp); add_comma = true; } //add minimum value if (aip -> max_valid == true){ if (add_comma == true){ strcat(buff1, ","); } sprintf(buff_temp, "\"maximum\":%5.3f", aip -> max_value.float_val); strcat(buff1, buff_temp); add_comma = true; } //add unit if (aip -> unit != NULL){ if (add_comma == true){ strcat(buff1, ","); } sprintf(buff_temp, "\"unit\":\"%s\"", aip -> unit); strcat(buff1, buff_temp); } if ((aip -> enum_prop == true) && (aip -> enum_list != NULL)){ //enum value char buff_loc_1[20]; enum_item_t *enum_item; int enum_i = 0; //calculate needed place enum_item = aip -> enum_list; while (enum_item){ enum_i++; enum_item = enum_item -> next; } buff_enum = malloc(enum_i * 10); //TODO: calculate needed place strcpy(buff_enum, "\"enum\":["); enum_item = aip -> enum_list; enum_i = 0; memset(buff_loc_1, 0, 20); while (enum_item){ if (enum_i > 0){ strcat(buff_enum, ","); } sprintf(buff_loc_1, "%5.3f", enum_item -> value.float_val); strcat(buff_enum, buff_loc_1); memset(buff_loc_1, 0, 20); enum_i++; enum_item = enum_item -> next; } strcat(buff_enum, "]"); } } else if (aip -> type == VAL_STRING){ if ((aip -> enum_prop == true) && (aip -> enum_list != NULL)){ enum_item_t *enum_item; int enum_i = 0; int len = 0; enum_item = aip -> enum_list; //calculate needed place while (enum_item){ len += strlen(enum_item -> value.str_addr); enum_i++; enum_item = enum_item -> next; } buff_enum = malloc(len + 20 + enum_i * 2); strcpy(buff_enum, "\"enum\":["); enum_item = aip -> enum_list; enum_i = 0; while (enum_item){ if (enum_i > 0){ strcat(buff_enum, ","); } strcat(buff_enum, "\""); strcat(buff_enum, enum_item -> value.str_addr); strcat(buff_enum, "\""); enum_i++; enum_item = enum_item -> next; } strcat(buff_enum, "]"); } } sprintf(buff, prop_str, aip -> id, type[aip -> type]); if (buff1 != NULL){ strcat(buff, ","); strcat(buff, buff1); free(buff1); } if (buff_enum != NULL){ strcat(buff, ","); strcat(buff, buff_enum); free(buff_enum); } strcat(buff, "}"); return buff; } /****************************************** * * initialization of action input * * ******************************************/ action_input_prop_t *action_input_prop_init(char *_id, VAL_TYPE _type, bool _req, //required int_float_u *_min, int_float_u *_max, char *unit, bool is_enum, enum_item_t *enum_list){ action_input_prop_t *aip; aip = malloc(sizeof(action_input_prop_t)); aip -> id = _id; aip -> type = _type; aip -> required = _req; if (_min != NULL){ aip -> min_value = *_min; aip -> min_valid = true; } else{ aip -> min_valid = false; } if (_max != NULL){ aip -> max_value = *_max; aip -> max_valid = true; } else{ aip -> max_valid = false; } aip -> unit = unit; aip -> next = NULL; aip -> input_prop_index = -1; aip -> enum_prop = is_enum; aip -> enum_list = enum_list; return aip; } /******************************************* * * * * ******************************************/ void add_action_input_prop(action_t *_a, action_input_prop_t *_aip){ int i; action_input_prop_t **aip = &(_a -> input_properties); while (*aip != NULL){ i = (*aip) -> input_prop_index; aip = &((*aip) -> next); } *aip = _aip; i = _a -> inputs_qua; _aip -> input_prop_index = i + 1; _a -> inputs_qua = i + 1; //number of input properties } /****************************************************** * * initialize action structure * * ****************************************************/ action_t *action_init(void){ action_t *a; a = malloc(sizeof(action_t)); memset(a, 0, sizeof(action_t)); a -> last_request_index = 0; a -> running_request_index = -1; return a; } action_t *get_action_ptr(thing_t *t, char *action_id){ action_t *a = NULL; if (action_id != NULL){ //find action a = t -> actions; while (a != NULL){ if (strcmp(action_id, a -> id) == 0){ break; } a = a -> next; } } return a; } /***************************************************** * * * * ***************************************************/ action_request_t *get_request_ptr(action_t *a, int request_index){ action_request_t *ar = a -> requests_list; while (ar != NULL){ if (ar -> index == request_index){ break; } ar = ar -> next; } return ar; } /********************************************* * * out: length of output string * * ********************************************/ uint16_t get_action_request_queue(action_t *a, char *buff){ uint16_t res = 0; char *buff_1; action_request_t *ar = a -> requests_list; if (ar != NULL){ while (ar != NULL){ buff_1 = action_request_jsonize(a -> t -> thing_nr, a -> id, ar -> index); if (buff_1 != NULL){ strcat(buff, buff_1); res += strlen(buff_1); free(buff_1); } ar = ar -> next; if (ar != NULL){ strcat(buff, ","); } } } return res; }
636183.c
/* * Exercise 1-12 * Write a program that prints its input one word per line. */ #include <stdio.h> #include <ctype.h> int main() { int isIn = 0; char c; while ((c = getchar()) != EOF) { if (isIn) { if (isspace(c)) { isIn = 0; putchar('\n'); } else { putchar(c); } } else { if (!isspace(c)) { isIn = 1; putchar(c); } } } }
398214.c
/* * self_pipe.c - dual process ping-pong example to stress PMU context switch of one process * * Copyright (c) 2008 Google, Inc * Contributed by Stephane Eranian <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * This file is part of libpfm, a performance monitoring support library for * applications on Linux. */ #include <sys/types.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <signal.h> #include <sched.h> #include <err.h> #include <sys/ioctl.h> #include <sys/prctl.h> #include <perfmon/pfmlib_perf_event.h> #include "perf_util.h" static struct { const char *events; int cpu; int delay; } options; int pin_cpu(pid_t pid, unsigned int cpu) { cpu_set_t mask; CPU_ZERO(&mask); CPU_SET(cpu, &mask); return sched_setaffinity(pid, sizeof(mask), &mask); } static volatile int quit; void sig_handler(int n) { quit = 1; } static void do_child(int fr, int fw) { char c; ssize_t ret; for(;;) { ret = read(fr, &c, 1); if (ret < 0) break; ret = write(fw, "c", 1); if (ret < 0) break; } printf("child exited\n"); exit(0); } static void measure(void) { perf_event_desc_t *fds = NULL; int num_fds = 0; uint64_t values[3]; ssize_t n; int i, ret; int pr[2], pw[2]; pid_t pid; char cc = '0'; ret = pfm_initialize(); if (ret != PFM_SUCCESS) err(1, "cannot initialize libpfm"); if (options.cpu == -1) { srandom(getpid()); options.cpu = random() % sysconf(_SC_NPROCESSORS_ONLN); } ret = pipe(pr); if (ret) err(1, "cannot create read pipe"); ret = pipe(pw); if (ret) err(1, "cannot create write pipe"); ret = perf_setup_list_events(options.events, &fds, &num_fds); if (ret || !num_fds) exit(1); for(i=0; i < num_fds; i++) { fds[i].hw.disabled = 1; fds[i].hw.read_format = PERF_FORMAT_SCALE; fds[i].fd = perf_event_open(&fds[i].hw, 0, -1, -1, 0); if (fds[i].fd == -1) err(1, "cannot open event %d", i); } /* * Pin to CPU0, inherited by child process. That will enforce * the ping-pionging and thus stress the PMU context switch * which is what we want */ ret = pin_cpu(getpid(), options.cpu); if (ret) err(1, "cannot pin to CPU%d", options.cpu); printf("Both processes pinned to CPU%d, running for %d seconds\n", options.cpu, options.delay); /* * create second process which is not monitoring at the moment */ switch(pid=fork()) { case -1: err(1, "cannot create child\n"); case 0: /* do not inherit session fd */ for(i=0; i < num_fds; i++) close(fds[i].fd); /* pr[]: write master, read child */ /* pw[]: read master, write child */ close(pr[1]); close(pw[0]); do_child(pr[0], pw[1]); exit(1); } close(pr[0]); close(pw[1]); /* * Let's roll now */ prctl(PR_TASK_PERF_EVENTS_ENABLE); signal(SIGALRM, sig_handler); alarm(options.delay); /* * ping pong loop */ while(!quit) { n = write(pr[1], "c", 1); if (n < 1) err(1, "write failed"); n = read(pw[0], &cc, 1); if (n < 1) err(1, "read failed"); } prctl(PR_TASK_PERF_EVENTS_DISABLE); for(i=0; i < num_fds; i++) { uint64_t val; double ratio; ret = read(fds[i].fd, values, sizeof(values)); if (ret == -1) err(1,"pfm_read error"); if (ret != sizeof(values)) errx(1, "did not read correct amount %d", ret); val = perf_scale(values); ratio = perf_scale_ratio(values); if (ratio == 1.0) printf("%20"PRIu64" %s\n", val, fds[i].name); else if (ratio == 0.0) printf("%20"PRIu64" %s (did not run: competing session)\n", val, fds[i].name); else printf("%20"PRIu64" %s (scaled from %.2f%% of time)\n", val, fds[i].name, ratio*100.0); } /* * kill child process */ kill(SIGKILL, pid); /* * close pipes */ close(pr[1]); close(pw[0]); /* * and destroy our session */ for(i=0; i < num_fds; i++) close(fds[i].fd); perf_free_fds(fds, num_fds); /* free libpfm resources cleanly */ pfm_terminate(); } static void usage(void) { printf("usage: self_pipe [-h] [-c cpu] [-d delay] [-e event1,event2,...]\n"); } int main(int argc, char **argv) { int c; options.cpu = -1; options.delay = -1; while ((c=getopt(argc, argv,"he:c:d:")) != -1) { switch(c) { case 'e': options.events = optarg; break; case 'c': options.cpu = atoi(optarg); break; case 'd': options.delay = atoi(optarg); break; case 'h': usage(); exit(0); default: errx(1, "unknown error"); } } if (!options.events) options.events = "cycles,instructions"; if (options.delay == -1) options.delay = 10; measure(); return 0; }
925621.c
/* * ISP1704 USB Charger Detection driver * * Copyright (C) 2010 Nokia Corporation * Copyright (C) 2012 - 2013 Pali Rohár <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/err.h> #include <linux/init.h> #include <linux/types.h> #include <linux/device.h> #include <linux/sysfs.h> #include <linux/platform_device.h> #include <linux/power_supply.h> #include <linux/delay.h> #include <linux/of.h> #include <linux/of_gpio.h> #include <linux/usb/otg.h> #include <linux/usb/ulpi.h> #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> #include <linux/power/isp1704_charger.h> /* Vendor specific Power Control register */ #define ISP1704_PWR_CTRL 0x3d #define ISP1704_PWR_CTRL_SWCTRL (1 << 0) #define ISP1704_PWR_CTRL_DET_COMP (1 << 1) #define ISP1704_PWR_CTRL_BVALID_RISE (1 << 2) #define ISP1704_PWR_CTRL_BVALID_FALL (1 << 3) #define ISP1704_PWR_CTRL_DP_WKPU_EN (1 << 4) #define ISP1704_PWR_CTRL_VDAT_DET (1 << 5) #define ISP1704_PWR_CTRL_DPVSRC_EN (1 << 6) #define ISP1704_PWR_CTRL_HWDETECT (1 << 7) #define NXP_VENDOR_ID 0x04cc static u16 isp170x_id[] = { 0x1704, 0x1707, }; struct isp1704_charger { struct device *dev; struct power_supply *psy; struct power_supply_desc psy_desc; struct usb_phy *phy; struct notifier_block nb; struct work_struct work; /* properties */ char model[8]; unsigned present:1; unsigned online:1; unsigned current_max; }; static inline int isp1704_read(struct isp1704_charger *isp, u32 reg) { return usb_phy_io_read(isp->phy, reg); } static inline int isp1704_write(struct isp1704_charger *isp, u32 reg, u32 val) { return usb_phy_io_write(isp->phy, val, reg); } /* * Disable/enable the power from the isp1704 if a function for it * has been provided with platform data. */ static void isp1704_charger_set_power(struct isp1704_charger *isp, bool on) { struct isp1704_charger_data *board = isp->dev->platform_data; if (board && board->set_power) board->set_power(on); else if (board) gpio_set_value(board->enable_gpio, on); } /* * Determine is the charging port DCP (dedicated charger) or CDP (Host/HUB * chargers). * * REVISIT: The method is defined in Battery Charging Specification and is * applicable to any ULPI transceiver. Nothing isp170x specific here. */ static inline int isp1704_charger_type(struct isp1704_charger *isp) { u8 reg; u8 func_ctrl; u8 otg_ctrl; int type = POWER_SUPPLY_TYPE_USB_DCP; func_ctrl = isp1704_read(isp, ULPI_FUNC_CTRL); otg_ctrl = isp1704_read(isp, ULPI_OTG_CTRL); /* disable pulldowns */ reg = ULPI_OTG_CTRL_DM_PULLDOWN | ULPI_OTG_CTRL_DP_PULLDOWN; isp1704_write(isp, ULPI_CLR(ULPI_OTG_CTRL), reg); /* full speed */ isp1704_write(isp, ULPI_CLR(ULPI_FUNC_CTRL), ULPI_FUNC_CTRL_XCVRSEL_MASK); isp1704_write(isp, ULPI_SET(ULPI_FUNC_CTRL), ULPI_FUNC_CTRL_FULL_SPEED); /* Enable strong pull-up on DP (1.5K) and reset */ reg = ULPI_FUNC_CTRL_TERMSELECT | ULPI_FUNC_CTRL_RESET; isp1704_write(isp, ULPI_SET(ULPI_FUNC_CTRL), reg); usleep_range(1000, 2000); reg = isp1704_read(isp, ULPI_DEBUG); if ((reg & 3) != 3) type = POWER_SUPPLY_TYPE_USB_CDP; /* recover original state */ isp1704_write(isp, ULPI_FUNC_CTRL, func_ctrl); isp1704_write(isp, ULPI_OTG_CTRL, otg_ctrl); return type; } /* * ISP1704 detects PS/2 adapters as charger. To make sure the detected charger * is actually a dedicated charger, the following steps need to be taken. */ static inline int isp1704_charger_verify(struct isp1704_charger *isp) { int ret = 0; u8 r; /* Reset the transceiver */ r = isp1704_read(isp, ULPI_FUNC_CTRL); r |= ULPI_FUNC_CTRL_RESET; isp1704_write(isp, ULPI_FUNC_CTRL, r); usleep_range(1000, 2000); /* Set normal mode */ r &= ~(ULPI_FUNC_CTRL_RESET | ULPI_FUNC_CTRL_OPMODE_MASK); isp1704_write(isp, ULPI_FUNC_CTRL, r); /* Clear the DP and DM pull-down bits */ r = ULPI_OTG_CTRL_DP_PULLDOWN | ULPI_OTG_CTRL_DM_PULLDOWN; isp1704_write(isp, ULPI_CLR(ULPI_OTG_CTRL), r); /* Enable strong pull-up on DP (1.5K) and reset */ r = ULPI_FUNC_CTRL_TERMSELECT | ULPI_FUNC_CTRL_RESET; isp1704_write(isp, ULPI_SET(ULPI_FUNC_CTRL), r); usleep_range(1000, 2000); /* Read the line state */ if (!isp1704_read(isp, ULPI_DEBUG)) { /* Disable strong pull-up on DP (1.5K) */ isp1704_write(isp, ULPI_CLR(ULPI_FUNC_CTRL), ULPI_FUNC_CTRL_TERMSELECT); return 1; } /* Is it a charger or PS/2 connection */ /* Enable weak pull-up resistor on DP */ isp1704_write(isp, ULPI_SET(ISP1704_PWR_CTRL), ISP1704_PWR_CTRL_DP_WKPU_EN); /* Disable strong pull-up on DP (1.5K) */ isp1704_write(isp, ULPI_CLR(ULPI_FUNC_CTRL), ULPI_FUNC_CTRL_TERMSELECT); /* Enable weak pull-down resistor on DM */ isp1704_write(isp, ULPI_SET(ULPI_OTG_CTRL), ULPI_OTG_CTRL_DM_PULLDOWN); /* It's a charger if the line states are clear */ if (!(isp1704_read(isp, ULPI_DEBUG))) ret = 1; /* Disable weak pull-up resistor on DP */ isp1704_write(isp, ULPI_CLR(ISP1704_PWR_CTRL), ISP1704_PWR_CTRL_DP_WKPU_EN); return ret; } static inline int isp1704_charger_detect(struct isp1704_charger *isp) { unsigned long timeout; u8 pwr_ctrl; int ret = 0; pwr_ctrl = isp1704_read(isp, ISP1704_PWR_CTRL); /* set SW control bit in PWR_CTRL register */ isp1704_write(isp, ISP1704_PWR_CTRL, ISP1704_PWR_CTRL_SWCTRL); /* enable manual charger detection */ isp1704_write(isp, ULPI_SET(ISP1704_PWR_CTRL), ISP1704_PWR_CTRL_SWCTRL | ISP1704_PWR_CTRL_DPVSRC_EN); usleep_range(1000, 2000); timeout = jiffies + msecs_to_jiffies(300); do { /* Check if there is a charger */ if (isp1704_read(isp, ISP1704_PWR_CTRL) & ISP1704_PWR_CTRL_VDAT_DET) { ret = isp1704_charger_verify(isp); break; } } while (!time_after(jiffies, timeout) && isp->online); /* recover original state */ isp1704_write(isp, ISP1704_PWR_CTRL, pwr_ctrl); return ret; } static inline int isp1704_charger_detect_dcp(struct isp1704_charger *isp) { if (isp1704_charger_detect(isp) && isp1704_charger_type(isp) == POWER_SUPPLY_TYPE_USB_DCP) return true; else return false; } static void isp1704_charger_work(struct work_struct *data) { struct isp1704_charger *isp = container_of(data, struct isp1704_charger, work); static DEFINE_MUTEX(lock); mutex_lock(&lock); switch (isp->phy->last_event) { case USB_EVENT_VBUS: /* do not call wall charger detection more times */ if (!isp->present) { isp->online = true; isp->present = 1; isp1704_charger_set_power(isp, 1); /* detect wall charger */ if (isp1704_charger_detect_dcp(isp)) { isp->psy_desc.type = POWER_SUPPLY_TYPE_USB_DCP; isp->current_max = 1800; } else { isp->psy_desc.type = POWER_SUPPLY_TYPE_USB; isp->current_max = 500; } /* enable data pullups */ if (isp->phy->otg->gadget) usb_gadget_connect(isp->phy->otg->gadget); } if (isp->psy_desc.type != POWER_SUPPLY_TYPE_USB_DCP) { /* * Only 500mA here or high speed chirp * handshaking may break */ if (isp->current_max > 500) isp->current_max = 500; if (isp->current_max > 100) isp->psy_desc.type = POWER_SUPPLY_TYPE_USB_CDP; } break; case USB_EVENT_NONE: isp->online = false; isp->present = 0; isp->current_max = 0; isp->psy_desc.type = POWER_SUPPLY_TYPE_USB; /* * Disable data pullups. We need to prevent the controller from * enumerating. * * FIXME: This is here to allow charger detection with Host/HUB * chargers. The pullups may be enabled elsewhere, so this can * not be the final solution. */ if (isp->phy->otg->gadget) usb_gadget_disconnect(isp->phy->otg->gadget); isp1704_charger_set_power(isp, 0); break; default: goto out; } power_supply_changed(isp->psy); out: mutex_unlock(&lock); } static int isp1704_notifier_call(struct notifier_block *nb, unsigned long val, void *v) { struct isp1704_charger *isp = container_of(nb, struct isp1704_charger, nb); schedule_work(&isp->work); return NOTIFY_OK; } static int isp1704_charger_get_property(struct power_supply *psy, enum power_supply_property psp, union power_supply_propval *val) { struct isp1704_charger *isp = power_supply_get_drvdata(psy); switch (psp) { case POWER_SUPPLY_PROP_PRESENT: val->intval = isp->present; break; case POWER_SUPPLY_PROP_ONLINE: val->intval = isp->online; break; case POWER_SUPPLY_PROP_CURRENT_MAX: val->intval = isp->current_max; break; case POWER_SUPPLY_PROP_MODEL_NAME: val->strval = isp->model; break; case POWER_SUPPLY_PROP_MANUFACTURER: val->strval = "NXP"; break; default: return -EINVAL; } return 0; } static enum power_supply_property power_props[] = { POWER_SUPPLY_PROP_PRESENT, POWER_SUPPLY_PROP_ONLINE, POWER_SUPPLY_PROP_CURRENT_MAX, POWER_SUPPLY_PROP_MODEL_NAME, POWER_SUPPLY_PROP_MANUFACTURER, }; static inline int isp1704_test_ulpi(struct isp1704_charger *isp) { int vendor; int product; int i; int ret = -ENODEV; /* Test ULPI interface */ ret = isp1704_write(isp, ULPI_SCRATCH, 0xaa); if (ret < 0) return ret; ret = isp1704_read(isp, ULPI_SCRATCH); if (ret < 0) return ret; if (ret != 0xaa) return -ENODEV; /* Verify the product and vendor id matches */ vendor = isp1704_read(isp, ULPI_VENDOR_ID_LOW); vendor |= isp1704_read(isp, ULPI_VENDOR_ID_HIGH) << 8; if (vendor != NXP_VENDOR_ID) return -ENODEV; product = isp1704_read(isp, ULPI_PRODUCT_ID_LOW); product |= isp1704_read(isp, ULPI_PRODUCT_ID_HIGH) << 8; for (i = 0; i < ARRAY_SIZE(isp170x_id); i++) { if (product == isp170x_id[i]) { sprintf(isp->model, "isp%x", product); return product; } } dev_err(isp->dev, "product id %x not matching known ids", product); return -ENODEV; } static int isp1704_charger_probe(struct platform_device *pdev) { struct isp1704_charger *isp; int ret = -ENODEV; struct power_supply_config psy_cfg = {}; struct isp1704_charger_data *pdata = dev_get_platdata(&pdev->dev); struct device_node *np = pdev->dev.of_node; if (np) { int gpio = of_get_named_gpio(np, "nxp,enable-gpio", 0); if (gpio < 0) return gpio; pdata = devm_kzalloc(&pdev->dev, sizeof(struct isp1704_charger_data), GFP_KERNEL); pdata->enable_gpio = gpio; dev_info(&pdev->dev, "init gpio %d\n", pdata->enable_gpio); ret = devm_gpio_request_one(&pdev->dev, pdata->enable_gpio, GPIOF_OUT_INIT_HIGH, "isp1704_reset"); if (ret) goto fail0; } if (!pdata) { dev_err(&pdev->dev, "missing platform data!\n"); return -ENODEV; } isp = devm_kzalloc(&pdev->dev, sizeof(*isp), GFP_KERNEL); if (!isp) return -ENOMEM; if (np) isp->phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); else isp->phy = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2); if (IS_ERR(isp->phy)) { ret = PTR_ERR(isp->phy); goto fail0; } isp->dev = &pdev->dev; platform_set_drvdata(pdev, isp); isp1704_charger_set_power(isp, 1); ret = isp1704_test_ulpi(isp); if (ret < 0) goto fail1; isp->psy_desc.name = "isp1704"; isp->psy_desc.type = POWER_SUPPLY_TYPE_USB; isp->psy_desc.properties = power_props; isp->psy_desc.num_properties = ARRAY_SIZE(power_props); isp->psy_desc.get_property = isp1704_charger_get_property; psy_cfg.drv_data = isp; isp->psy = power_supply_register(isp->dev, &isp->psy_desc, &psy_cfg); if (IS_ERR(isp->psy)) { ret = PTR_ERR(isp->psy); goto fail1; } /* * REVISIT: using work in order to allow the usb notifications to be * made atomically in the future. */ INIT_WORK(&isp->work, isp1704_charger_work); isp->nb.notifier_call = isp1704_notifier_call; ret = usb_register_notifier(isp->phy, &isp->nb); if (ret) goto fail2; dev_info(isp->dev, "registered with product id %s\n", isp->model); /* * Taking over the D+ pullup. * * FIXME: The device will be disconnected if it was already * enumerated. The charger driver should be always loaded before any * gadget is loaded. */ if (isp->phy->otg->gadget) usb_gadget_disconnect(isp->phy->otg->gadget); if (isp->phy->last_event == USB_EVENT_NONE) isp1704_charger_set_power(isp, 0); /* Detect charger if VBUS is valid (the cable was already plugged). */ if (isp->phy->last_event == USB_EVENT_VBUS && !isp->phy->otg->default_a) schedule_work(&isp->work); return 0; fail2: power_supply_unregister(isp->psy); fail1: isp1704_charger_set_power(isp, 0); fail0: dev_err(&pdev->dev, "failed to register isp1704 with error %d\n", ret); return ret; } static int isp1704_charger_remove(struct platform_device *pdev) { struct isp1704_charger *isp = platform_get_drvdata(pdev); usb_unregister_notifier(isp->phy, &isp->nb); power_supply_unregister(isp->psy); isp1704_charger_set_power(isp, 0); return 0; } #ifdef CONFIG_OF static const struct of_device_id omap_isp1704_of_match[] = { { .compatible = "nxp,isp1704", }, {}, }; MODULE_DEVICE_TABLE(of, omap_isp1704_of_match); #endif static struct platform_driver isp1704_charger_driver = { .driver = { .name = "isp1704_charger", .of_match_table = of_match_ptr(omap_isp1704_of_match), }, .probe = isp1704_charger_probe, .remove = isp1704_charger_remove, }; module_platform_driver(isp1704_charger_driver); MODULE_ALIAS("platform:isp1704_charger"); MODULE_AUTHOR("Nokia Corporation"); MODULE_DESCRIPTION("ISP170x USB Charger driver"); MODULE_LICENSE("GPL");
451497.c
/* * Copyright (C) 2000-2006 Erik Andersen <[email protected]> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #define L_get_hosts_byaddr_r #include RESOLVER
177804.c
/* Copyright (C) 2003 Russ Cox, Massachusetts Institute of Technology */ /* See COPYRIGHT */ #include <u.h> #include <libc.h> #include <fcall.h> #include <9pclient.h> #include "fsimpl.h" int fsremove(CFsys *fs, char *name) { CFid *fid; if((fid = fswalk(fs->root, name)) == nil) return -1; return fsfremove(fid); }
60996.c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END * * Copyright (c) 2002-2006 Neterion, Inc. */ #include "xgehal-ring.h" #include "xgehal-device.h" #if defined(XGE_OS_DMA_REQUIRES_SYNC) && defined(XGE_HAL_DMA_DTR_STREAMING) static ptrdiff_t __hal_ring_item_dma_offset(xge_hal_mempool_h mempoolh, void *item) { int memblock_idx; void *memblock; /* get owner memblock index */ memblock_idx = __hal_ring_block_memblock_idx(item); /* get owner memblock by memblock index */ memblock = __hal_mempool_memblock(mempoolh, memblock_idx); return (char*)item - (char*)memblock; } #endif static dma_addr_t __hal_ring_item_dma_addr(xge_hal_mempool_h mempoolh, void *item, pci_dma_h *dma_handle) { int memblock_idx; void *memblock; xge_hal_mempool_dma_t *memblock_dma_object; ptrdiff_t dma_item_offset; /* get owner memblock index */ memblock_idx = __hal_ring_block_memblock_idx((xge_hal_ring_block_t *) item); /* get owner memblock by memblock index */ memblock = __hal_mempool_memblock((xge_hal_mempool_t *) mempoolh, memblock_idx); /* get memblock DMA object by memblock index */ memblock_dma_object = __hal_mempool_memblock_dma((xge_hal_mempool_t *) mempoolh, memblock_idx); /* calculate offset in the memblock of this item */ dma_item_offset = (char*)item - (char*)memblock; *dma_handle = memblock_dma_object->handle; return memblock_dma_object->addr + dma_item_offset; } static void __hal_ring_rxdblock_link(xge_hal_mempool_h mempoolh, xge_hal_ring_t *ring, int from, int to) { xge_hal_ring_block_t *to_item, *from_item; dma_addr_t to_dma, from_dma __unused; pci_dma_h to_dma_handle, from_dma_handle; /* get "from" RxD block */ from_item = (xge_hal_ring_block_t *) __hal_mempool_item((xge_hal_mempool_t *) mempoolh, from); xge_assert(from_item); /* get "to" RxD block */ to_item = (xge_hal_ring_block_t *) __hal_mempool_item((xge_hal_mempool_t *) mempoolh, to); xge_assert(to_item); /* return address of the beginning of previous RxD block */ to_dma = __hal_ring_item_dma_addr(mempoolh, to_item, &to_dma_handle); /* set next pointer for this RxD block to point on * previous item's DMA start address */ __hal_ring_block_next_pointer_set(from_item, to_dma); /* return "from" RxD block's DMA start address */ from_dma = __hal_ring_item_dma_addr(mempoolh, from_item, &from_dma_handle); #if defined(XGE_OS_DMA_REQUIRES_SYNC) && defined(XGE_HAL_DMA_DTR_STREAMING) /* we must sync "from" RxD block, so hardware will see it */ xge_os_dma_sync(ring->channel.pdev, from_dma_handle, from_dma + XGE_HAL_RING_NEXT_BLOCK_POINTER_OFFSET, __hal_ring_item_dma_offset(mempoolh, from_item) + XGE_HAL_RING_NEXT_BLOCK_POINTER_OFFSET, sizeof(u64), XGE_OS_DMA_DIR_TODEVICE); #endif xge_debug_ring(XGE_TRACE, "block%d:0x"XGE_OS_LLXFMT" => block%d:0x"XGE_OS_LLXFMT, from, (unsigned long long)from_dma, to, (unsigned long long)to_dma); } static xge_hal_status_e __hal_ring_mempool_item_alloc(xge_hal_mempool_h mempoolh, void *memblock, int memblock_index, xge_hal_mempool_dma_t *dma_object, void *item, int index, int is_last, void *userdata) { int i; xge_hal_ring_t *ring = (xge_hal_ring_t *)userdata; xge_assert(item); xge_assert(ring); /* format rxds array */ for (i=ring->rxds_per_block-1; i>=0; i--) { void *rxdblock_priv; xge_hal_ring_rxd_priv_t *rxd_priv; xge_hal_ring_rxd_1_t *rxdp; int reserve_index = index * ring->rxds_per_block + i; int memblock_item_idx; ring->reserved_rxds_arr[reserve_index] = (char *)item + (ring->rxds_per_block - 1 - i) * ring->rxd_size; /* Note: memblock_item_idx is index of the item within * the memblock. For instance, in case of three RxD-blocks * per memblock this value can be 0,1 or 2. */ rxdblock_priv = __hal_mempool_item_priv((xge_hal_mempool_t *) mempoolh, memblock_index, item, &memblock_item_idx); rxdp = (xge_hal_ring_rxd_1_t *) ring->reserved_rxds_arr[reserve_index]; rxd_priv = (xge_hal_ring_rxd_priv_t *) (void *) ((char*)rxdblock_priv + ring->rxd_priv_size * i); /* pre-format per-RxD Ring's private */ rxd_priv->dma_offset = (char*)rxdp - (char*)memblock; rxd_priv->dma_addr = dma_object->addr + rxd_priv->dma_offset; rxd_priv->dma_handle = dma_object->handle; #ifdef XGE_DEBUG_ASSERT rxd_priv->dma_object = dma_object; #endif /* pre-format Host_Control */ #if defined(XGE_HAL_USE_5B_MODE) if (ring->buffer_mode == XGE_HAL_RING_QUEUE_BUFFER_MODE_5) { xge_hal_ring_rxd_5_t *rxdp_5 = (xge_hal_ring_rxd_5_t *)rxdp; #if defined(XGE_OS_PLATFORM_64BIT) xge_assert(memblock_index <= 0xFFFF); xge_assert(i <= 0xFFFF); /* store memblock's index */ rxdp_5->host_control = (u32)memblock_index << 16; /* store index of memblock's private */ rxdp_5->host_control |= (u32)(memblock_item_idx * ring->rxds_per_block + i); #else /* 32-bit case */ rxdp_5->host_control = (u32)rxd_priv; #endif } else { /* 1b and 3b modes */ rxdp->host_control = (u64)(ulong_t)rxd_priv; } #else /* 1b and 3b modes */ rxdp->host_control = (u64)(ulong_t)rxd_priv; #endif } __hal_ring_block_memblock_idx_set((xge_hal_ring_block_t *) item, memblock_index); if (is_last) { /* link last one with first one */ __hal_ring_rxdblock_link(mempoolh, ring, 0, index); } if (index > 0 ) { /* link this RxD block with previous one */ __hal_ring_rxdblock_link(mempoolh, ring, index, index-1); } return XGE_HAL_OK; } xge_hal_status_e __hal_ring_initial_replenish(xge_hal_channel_t *channel, xge_hal_channel_reopen_e reopen) { xge_hal_dtr_h dtr = NULL; while (xge_hal_channel_dtr_count(channel) > 0) { xge_hal_status_e status; status = xge_hal_ring_dtr_reserve(channel, &dtr); xge_assert(status == XGE_HAL_OK); if (channel->dtr_init) { status = channel->dtr_init(channel, dtr, channel->reserve_length, channel->userdata, reopen); if (status != XGE_HAL_OK) { xge_hal_ring_dtr_free(channel, dtr); xge_hal_channel_abort(channel, XGE_HAL_CHANNEL_OC_NORMAL); return status; } } xge_hal_ring_dtr_post(channel, dtr); } return XGE_HAL_OK; } xge_hal_status_e __hal_ring_open(xge_hal_channel_h channelh, xge_hal_channel_attr_t *attr) { xge_hal_status_e status; xge_hal_device_t *hldev; xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; xge_hal_ring_queue_t *queue; /* Note: at this point we have channel.devh and channel.pdev * pre-set only! */ hldev = (xge_hal_device_t *)ring->channel.devh; ring->config = &hldev->config.ring; queue = &ring->config->queue[attr->post_qid]; ring->indicate_max_pkts = queue->indicate_max_pkts; ring->buffer_mode = queue->buffer_mode; xge_assert(queue->configured); #if defined(XGE_HAL_RX_MULTI_RESERVE) xge_os_spin_lock_init(&ring->channel.reserve_lock, hldev->pdev); #elif defined(XGE_HAL_RX_MULTI_RESERVE_IRQ) xge_os_spin_lock_init_irq(&ring->channel.reserve_lock, hldev->irqh); #endif #if defined(XGE_HAL_RX_MULTI_POST) xge_os_spin_lock_init(&ring->channel.post_lock, hldev->pdev); #elif defined(XGE_HAL_RX_MULTI_POST_IRQ) xge_os_spin_lock_init_irq(&ring->channel.post_lock, hldev->irqh); #endif ring->rxd_size = XGE_HAL_RING_RXD_SIZEOF(queue->buffer_mode); ring->rxd_priv_size = sizeof(xge_hal_ring_rxd_priv_t) + attr->per_dtr_space; /* how many RxDs can fit into one block. Depends on configured * buffer_mode. */ ring->rxds_per_block = XGE_HAL_RING_RXDS_PER_BLOCK(queue->buffer_mode); /* calculate actual RxD block private size */ ring->rxdblock_priv_size = ring->rxd_priv_size * ring->rxds_per_block; ring->reserved_rxds_arr = (void **) xge_os_malloc(ring->channel.pdev, sizeof(void*) * queue->max * ring->rxds_per_block); if (ring->reserved_rxds_arr == NULL) { __hal_ring_close(channelh); return XGE_HAL_ERR_OUT_OF_MEMORY; } ring->mempool = __hal_mempool_create( hldev->pdev, ring->config->memblock_size, XGE_HAL_RING_RXDBLOCK_SIZE, ring->rxdblock_priv_size, queue->initial, queue->max, __hal_ring_mempool_item_alloc, NULL, /* nothing to free */ ring); if (ring->mempool == NULL) { __hal_ring_close(channelh); return XGE_HAL_ERR_OUT_OF_MEMORY; } status = __hal_channel_initialize(channelh, attr, ring->reserved_rxds_arr, queue->initial * ring->rxds_per_block, queue->max * ring->rxds_per_block, 0 /* no threshold for ring! */); if (status != XGE_HAL_OK) { __hal_ring_close(channelh); return status; } /* sanity check that everything formatted ok */ xge_assert(ring->reserved_rxds_arr[0] == (char *)ring->mempool->items_arr[0] + (ring->rxds_per_block * ring->rxd_size - ring->rxd_size)); /* Note: * Specifying dtr_init callback means two things: * 1) dtrs need to be initialized by ULD at channel-open time; * 2) dtrs need to be posted at channel-open time * (that's what the initial_replenish() below does) * Currently we don't have a case when the 1) is done without the 2). */ if (ring->channel.dtr_init) { if ((status = __hal_ring_initial_replenish ( (xge_hal_channel_t *) channelh, XGE_HAL_CHANNEL_OC_NORMAL) ) != XGE_HAL_OK) { __hal_ring_close(channelh); return status; } } /* initial replenish will increment the counter in its post() routine, * we have to reset it */ ring->channel.usage_cnt = 0; return XGE_HAL_OK; } void __hal_ring_close(xge_hal_channel_h channelh) { xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; xge_hal_ring_queue_t *queue; #if defined(XGE_HAL_RX_MULTI_RESERVE)||defined(XGE_HAL_RX_MULTI_RESERVE_IRQ)||\ defined(XGE_HAL_RX_MULTI_POST) || defined(XGE_HAL_RX_MULTI_POST_IRQ) xge_hal_device_t *hldev = (xge_hal_device_t *)ring->channel.devh; #endif xge_assert(ring->channel.pdev); queue = &ring->config->queue[ring->channel.post_qid]; if (ring->mempool) { __hal_mempool_destroy(ring->mempool); } if (ring->reserved_rxds_arr) { xge_os_free(ring->channel.pdev, ring->reserved_rxds_arr, sizeof(void*) * queue->max * ring->rxds_per_block); } __hal_channel_terminate(channelh); #if defined(XGE_HAL_RX_MULTI_RESERVE) xge_os_spin_lock_destroy(&ring->channel.reserve_lock, hldev->pdev); #elif defined(XGE_HAL_RX_MULTI_RESERVE_IRQ) xge_os_spin_lock_destroy_irq(&ring->channel.reserve_lock, hldev->pdev); #endif #if defined(XGE_HAL_RX_MULTI_POST) xge_os_spin_lock_destroy(&ring->channel.post_lock, hldev->pdev); #elif defined(XGE_HAL_RX_MULTI_POST_IRQ) xge_os_spin_lock_destroy_irq(&ring->channel.post_lock, hldev->pdev); #endif } void __hal_ring_prc_enable(xge_hal_channel_h channelh) { xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; xge_hal_device_t *hldev = (xge_hal_device_t *)ring->channel.devh; xge_hal_pci_bar0_t *bar0; u64 val64; void *first_block; int block_num; xge_hal_ring_queue_t *queue; pci_dma_h dma_handle; xge_assert(ring); xge_assert(ring->channel.pdev); bar0 = (xge_hal_pci_bar0_t *) (void *) ((xge_hal_device_t *)ring->channel.devh)->bar0; queue = &ring->config->queue[ring->channel.post_qid]; xge_assert(queue->buffer_mode == 1 || queue->buffer_mode == 3 || queue->buffer_mode == 5); /* last block in fact becomes first. This is just the way it * is filled up and linked by item_alloc() */ block_num = queue->initial; first_block = __hal_mempool_item(ring->mempool, block_num - 1); val64 = __hal_ring_item_dma_addr(ring->mempool, first_block, &dma_handle); xge_os_pio_mem_write64(ring->channel.pdev, ring->channel.regh0, val64, &bar0->prc_rxd0_n[ring->channel.post_qid]); xge_debug_ring(XGE_TRACE, "ring%d PRC DMA addr 0x"XGE_OS_LLXFMT" initialized", ring->channel.post_qid, (unsigned long long)val64); val64 = xge_os_pio_mem_read64(ring->channel.pdev, ring->channel.regh0, &bar0->prc_ctrl_n[ring->channel.post_qid]); if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_HERC && !queue->rth_en) { val64 |= XGE_HAL_PRC_CTRL_RTH_DISABLE; } val64 |= XGE_HAL_PRC_CTRL_RC_ENABLED; val64 |= vBIT((queue->buffer_mode >> 1),14,2);/* 1,3 or 5 => 0,1 or 2 */ val64 &= ~XGE_HAL_PRC_CTRL_RXD_BACKOFF_INTERVAL(0xFFFFFF); val64 |= XGE_HAL_PRC_CTRL_RXD_BACKOFF_INTERVAL( (hldev->config.pci_freq_mherz * queue->backoff_interval_us)); /* Beware: no snoop by the bridge if (no_snoop_bits) */ val64 |= XGE_HAL_PRC_CTRL_NO_SNOOP(queue->no_snoop_bits); /* Herc: always use group_reads */ if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_HERC) val64 |= XGE_HAL_PRC_CTRL_GROUP_READS; if (hldev->config.bimodal_interrupts) if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_HERC) val64 |= XGE_HAL_PRC_CTRL_BIMODAL_INTERRUPT; xge_os_pio_mem_write64(ring->channel.pdev, ring->channel.regh0, val64, &bar0->prc_ctrl_n[ring->channel.post_qid]); /* Configure Receive Protocol Assist */ val64 = xge_os_pio_mem_read64(ring->channel.pdev, ring->channel.regh0, &bar0->rx_pa_cfg); val64 |= XGE_HAL_RX_PA_CFG_SCATTER_MODE(ring->config->scatter_mode); val64 |= (XGE_HAL_RX_PA_CFG_IGNORE_SNAP_OUI | XGE_HAL_RX_PA_CFG_IGNORE_LLC_CTRL); /* Clean STRIP_VLAN_TAG bit and set as config from upper layer */ val64 &= ~XGE_HAL_RX_PA_CFG_STRIP_VLAN_TAG_MODE(1); val64 |= XGE_HAL_RX_PA_CFG_STRIP_VLAN_TAG_MODE(ring->config->strip_vlan_tag); xge_os_pio_mem_write64(ring->channel.pdev, ring->channel.regh0, val64, &bar0->rx_pa_cfg); xge_debug_ring(XGE_TRACE, "ring%d enabled in buffer_mode %d", ring->channel.post_qid, queue->buffer_mode); } void __hal_ring_prc_disable(xge_hal_channel_h channelh) { xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; xge_hal_pci_bar0_t *bar0; u64 val64; xge_assert(ring); xge_assert(ring->channel.pdev); bar0 = (xge_hal_pci_bar0_t *) (void *) ((xge_hal_device_t *)ring->channel.devh)->bar0; val64 = xge_os_pio_mem_read64(ring->channel.pdev, ring->channel.regh0, &bar0->prc_ctrl_n[ring->channel.post_qid]); val64 &= ~((u64) XGE_HAL_PRC_CTRL_RC_ENABLED); xge_os_pio_mem_write64(ring->channel.pdev, ring->channel.regh0, val64, &bar0->prc_ctrl_n[ring->channel.post_qid]); } void __hal_ring_hw_initialize(xge_hal_device_h devh) { xge_hal_device_t *hldev = (xge_hal_device_t *)devh; xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)(void *)hldev->bar0; u64 val64; int i, j; /* Rx DMA intialization. */ val64 = 0; for (i = 0; i < XGE_HAL_MAX_RING_NUM; i++) { if (!hldev->config.ring.queue[i].configured) continue; val64 |= vBIT(hldev->config.ring.queue[i].priority, (5 + (i * 8)), 3); } xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, &bar0->rx_queue_priority); xge_debug_ring(XGE_TRACE, "Rings priority configured to 0x"XGE_OS_LLXFMT, (unsigned long long)val64); /* Configuring ring queues according to per-ring configuration */ val64 = 0; for (i = 0; i < XGE_HAL_MAX_RING_NUM; i++) { if (!hldev->config.ring.queue[i].configured) continue; val64 |= vBIT(hldev->config.ring.queue[i].dram_size_mb,(i*8),8); } xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, &bar0->rx_queue_cfg); xge_debug_ring(XGE_TRACE, "DRAM configured to 0x"XGE_OS_LLXFMT, (unsigned long long)val64); if (!hldev->config.rts_qos_en && !hldev->config.rts_port_en && !hldev->config.rts_mac_en) { /* * Activate default (QoS-based) Rx steering */ val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, &bar0->rts_qos_steering); for (j = 0; j < 8 /* QoS max */; j++) { for (i = 0; i < XGE_HAL_MAX_RING_NUM; i++) { if (!hldev->config.ring.queue[i].configured) continue; if (!hldev->config.ring.queue[i].rth_en) val64 |= (BIT(i) >> (j*8)); } } xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, &bar0->rts_qos_steering); xge_debug_ring(XGE_TRACE, "QoS steering configured to 0x"XGE_OS_LLXFMT, (unsigned long long)val64); } /* Note: If a queue does not exist, it should be assigned a maximum * length of zero. Otherwise, packet loss could occur. * P. 4-4 User guide. * * All configured rings will be properly set at device open time * by utilizing device_mtu_set() API call. */ for (i = 0; i < XGE_HAL_MAX_RING_NUM; i++) { if (hldev->config.ring.queue[i].configured) continue; xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, 0ULL, &bar0->rts_frm_len_n[i]); } #ifdef XGE_HAL_HERC_EMULATION val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, ((u8 *)bar0 + 0x2e60)); /* mc_rldram_mrs_herc */ val64 |= 0x0000000000010000; xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, ((u8 *)bar0 + 0x2e60)); val64 |= 0x003a000000000000; xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, ((u8 *)bar0 + 0x2e40)); /* mc_rldram_ref_herc */ xge_os_mdelay(2000); #endif /* now enabling MC-RLDRAM after setting MC_QUEUE sizes */ val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, &bar0->mc_rldram_mrs); val64 |= XGE_HAL_MC_RLDRAM_QUEUE_SIZE_ENABLE | XGE_HAL_MC_RLDRAM_MRS_ENABLE; __hal_pio_mem_write32_upper(hldev->pdev, hldev->regh0, (u32)(val64>>32), &bar0->mc_rldram_mrs); xge_os_wmb(); __hal_pio_mem_write32_lower(hldev->pdev, hldev->regh0, (u32)val64, &bar0->mc_rldram_mrs); /* RLDRAM initialization procedure require 500us to complete */ xge_os_mdelay(1); /* Temporary fixes for Herc RLDRAM */ if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_HERC) { val64 = XGE_HAL_MC_RLDRAM_SET_REF_PERIOD(0x0279); xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, &bar0->mc_rldram_ref_per_herc); val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, &bar0->mc_rldram_mrs_herc); xge_debug_ring(XGE_TRACE, "default mc_rldram_mrs_herc 0x"XGE_OS_LLXFMT, (unsigned long long)val64); val64 = 0x0003570003010300ULL; xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64, &bar0->mc_rldram_mrs_herc); xge_os_mdelay(1); } if (hldev->config.intr_mode != XGE_HAL_INTR_MODE_MSIX) return; /* * Assign MSI-X vectors */ for (i = 0; i < XGE_HAL_MAX_RING_NUM; i++) { xge_list_t *item; xge_hal_channel_t *channel = NULL; if (!hldev->config.ring.queue[i].configured || !hldev->config.ring.queue[i].intr_vector) continue; /* find channel */ xge_list_for_each(item, &hldev->free_channels) { xge_hal_channel_t *tmp; tmp = xge_container_of(item, xge_hal_channel_t, item); if (tmp->type == XGE_HAL_CHANNEL_TYPE_RING && tmp->post_qid == i) { channel = tmp; break; } } if (channel) { (void) xge_hal_channel_msix_set(channel, hldev->config.ring.queue[i].intr_vector); } } xge_debug_ring(XGE_TRACE, "%s", "ring channels initialized"); } void __hal_ring_mtu_set(xge_hal_device_h devh, int new_frmlen) { int i; xge_hal_device_t *hldev = (xge_hal_device_t *)devh; xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)(void *)hldev->bar0; for (i = 0; i < XGE_HAL_MAX_RING_NUM; i++) { if (!hldev->config.ring.queue[i].configured) continue; if (hldev->config.ring.queue[i].max_frm_len != XGE_HAL_RING_USE_MTU) { xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, XGE_HAL_MAC_RTS_FRM_LEN_SET( hldev->config.ring.queue[i].max_frm_len), &bar0->rts_frm_len_n[i]); } else { xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, XGE_HAL_MAC_RTS_FRM_LEN_SET(new_frmlen), &bar0->rts_frm_len_n[i]); } } xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, XGE_HAL_RMAC_MAX_PYLD_LEN(new_frmlen), &bar0->rmac_max_pyld_len); }
719538.c
#include <stomp/connection.h> #include <stomp/common.h> #include <stomp/frame.h> #include <stomp/list.h> #include <pthread.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdio.h> #define MAX_DATA_CHUNK (1<<22) static struct data_entry *alloc_entry(int datalen) { struct data_entry *entry; entry = (struct data_entry *)malloc(sizeof(struct data_entry)); if(entry != NULL) { int len = datalen; if(len > MAX_DATA_CHUNK) { len = MAX_DATA_CHUNK; } entry->data = (char *)malloc(len + 1); if(entry->data == NULL) { free(entry); return NULL; } entry->len = len; INIT_LIST_HEAD(&entry->list); } return entry; } static void free_entry(struct data_entry *entry) { if(entry != NULL) { free(entry->data); free(entry); } } static frame_t *alloc_frame() { frame_t *f; f = (frame_t *)malloc(sizeof(frame_t)); if(f != NULL) { f->cmd = NULL; // mainly used by reciever in parsing processing f->status = 0; INIT_LIST_HEAD(&f->h_headers); INIT_LIST_HEAD(&f->h_body); INIT_LIST_HEAD(&f->list); pthread_mutex_init(&f->mutex_headers, NULL); pthread_mutex_init(&f->mutex_body, NULL); } return f; } static void free_list_entry(struct list_head *head) { struct data_entry *entry, *e; list_for_each_entry_safe(entry, e, head, list) { list_del(&entry->list); free_entry(entry); } } static int set_frame_data(struct list_head *head, pthread_mutex_t *mutex, char *data, int len) { struct data_entry *entry; entry = alloc_entry(len); strncpy(entry->data, data, entry->len); entry->data[entry->len] = '\0'; pthread_mutex_lock(mutex); { list_add_tail(&entry->list, head); } pthread_mutex_unlock(mutex); return RET_SUCCESS; } static int do_send_data(connection_t *conn, struct list_head *head, pthread_mutex_t *mutex) { struct data_entry *entry; int sent_bytes = 0; pthread_mutex_lock(mutex); list_for_each_entry(entry, head, list) { sent_bytes += conn_send(conn, entry->data, entry->len); } pthread_mutex_unlock(mutex); return sent_bytes; } frame_t *frame_init() { return alloc_frame(); } int frame_set_cmd(frame_t *frame, char *data, int len) { assert(frame != NULL); assert(data != NULL); if(len > LD_MAX) { len = LD_MAX; } if(frame->cmd == NULL) { frame->cmd = (char *)malloc(LD_MAX + 1); if(frame->cmd == NULL) { return RET_ERROR; } } strncpy(frame->cmd, data, len); frame->cmd_len = len; frame->cmd[len] = '\0'; return RET_SUCCESS; } int frame_set_header(frame_t *frame, char *data, int len) { assert(frame != NULL); assert(data != NULL); if(len > LD_MAX) { return RET_ERROR; } return set_frame_data(&frame->h_headers, &frame->mutex_headers, data, len); } int frame_set_body(frame_t *frame, char *data, int len) { int remained_size = len; int offset = 0; assert(frame != NULL); assert(data != NULL); while(remained_size > 0) { int data_size; data_size = remained_size; if(remained_size > LD_MAX) { data_size = LD_MAX; } if(set_frame_data(&frame->h_body, &frame->mutex_body, data + offset, data_size) == RET_ERROR) { return RET_ERROR; } remained_size -= data_size; offset += data_size; } return RET_SUCCESS; } int frame_send(frame_t *frame, connection_t *conn) { int sent_bytes = 0; assert(frame != NULL); assert(conn != NULL); // send command sent_bytes += conn_send(conn, frame->cmd, frame->cmd_len); // send separation of headers sent_bytes += conn_send(conn, "\n", 1); // send headers data sent_bytes += do_send_data(conn, &frame->h_headers, &frame->mutex_headers); // send separation of headers sent_bytes += conn_send(conn, "\n", 1); // send body data sent_bytes += do_send_data(conn, &frame->h_body, &frame->mutex_body); // send determination of frame sent_bytes += conn_send(conn, "\0", 1); return sent_bytes; } void frame_free(frame_t *f) { free_list_entry(&f->h_headers); free_list_entry(&f->h_body); free(f->cmd); free(f); }
271727.c
//------------------------------------------------------------------------------ // GB_AxB: hard-coded functions for semiring: C<M>=A*B or A'*B //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitesparse.com See GraphBLAS/Doc/License.txt for license. //------------------------------------------------------------------------------ // If this file is in the Generated/ folder, do not edit it (auto-generated). #include "GB.h" #ifndef GBCOMPACT #include "GB_control.h" #include "GB_ek_slice.h" #include "GB_bracket.h" #include "GB_iterator.h" #include "GB_sort.h" #include "GB_atomics.h" #include "GB_AxB_saxpy3.h" #include "GB_AxB__include.h" // The C=A*B semiring is defined by the following types and operators: // A'*B function (dot2): GB_Adot2B__any_rdiv_int16 // A'*B function (dot3): GB_Adot3B__any_rdiv_int16 // C+=A'*B function (dot4): GB_Adot4B__any_rdiv_int16 // A*B function (saxpy3): GB_Asaxpy3B__any_rdiv_int16 // C type: int16_t // A type: int16_t // B type: int16_t // Multiply: z = GB_IDIV_SIGNED (bkj, aik, 16) // Add: cij = z // 'any' monoid? 1 // atomic? 1 // OpenMP atomic? 0 // MultAdd: int16_t x_op_y = GB_IDIV_SIGNED (bkj, aik, 16) ; cij = x_op_y // Identity: 0 // Terminal: break ; #define GB_ATYPE \ int16_t #define GB_BTYPE \ int16_t #define GB_CTYPE \ int16_t // aik = Ax [pA] #define GB_GETA(aik,Ax,pA) \ int16_t aik = Ax [pA] // bkj = Bx [pB] #define GB_GETB(bkj,Bx,pB) \ int16_t bkj = Bx [pB] #define GB_CX(p) Cx [p] // multiply operator #define GB_MULT(z, x, y) \ z = GB_IDIV_SIGNED (y, x, 16) // multiply-add #define GB_MULTADD(z, x, y) \ int16_t x_op_y = GB_IDIV_SIGNED (y, x, 16) ; z = x_op_y // monoid identity value #define GB_IDENTITY \ 0 // break if cij reaches the terminal value (dot product only) #define GB_DOT_TERMINAL(cij) \ break ; // simd pragma for dot-product loop vectorization #define GB_PRAGMA_VECTORIZE_DOT \ ; // simd pragma for other loop vectorization #define GB_PRAGMA_VECTORIZE GB_PRAGMA_SIMD // declare the cij scalar #define GB_CIJ_DECLARE(cij) \ int16_t cij // save the value of C(i,j) #define GB_CIJ_SAVE(cij,p) Cx [p] = cij // cij = Cx [pC] #define GB_GETC(cij,pC) \ cij = Cx [pC] // Cx [pC] = cij #define GB_PUTC(cij,pC) \ Cx [pC] = cij // Cx [p] = t #define GB_CIJ_WRITE(p,t) Cx [p] = t // C(i,j) += t #define GB_CIJ_UPDATE(p,t) \ Cx [p] = t // x + y #define GB_ADD_FUNCTION(x,y) \ y // type with size of GB_CTYPE, and can be used in compare-and-swap #define GB_CTYPE_PUN \ int16_t // bit pattern for bool, 8-bit, 16-bit, and 32-bit integers #define GB_CTYPE_BITS \ 0xffffL // 1 if monoid update can skipped entirely (the ANY monoid) #define GB_IS_ANY_MONOID \ 1 // 1 if monoid update is EQ #define GB_IS_EQ_MONOID \ 0 // 1 if monoid update can be done atomically, 0 otherwise #define GB_HAS_ATOMIC \ 1 // 1 if monoid update can be done with an OpenMP atomic update, 0 otherwise #if GB_MICROSOFT #define GB_HAS_OMP_ATOMIC \ 0 #else #define GB_HAS_OMP_ATOMIC \ 0 #endif // 1 for the ANY_PAIR semirings #define GB_IS_ANY_PAIR_SEMIRING \ 0 // 1 if PAIR is the multiply operator #define GB_IS_PAIR_MULTIPLIER \ 0 // atomic compare-exchange #define GB_ATOMIC_COMPARE_EXCHANGE(target, expected, desired) \ GB_ATOMIC_COMPARE_EXCHANGE_16 (target, expected, desired) #if GB_IS_ANY_PAIR_SEMIRING // result is purely symbolic; no numeric work to do. Hx is not used. #define GB_HX_WRITE(i,t) #define GB_CIJ_GATHER(p,i) #define GB_HX_UPDATE(i,t) #define GB_CIJ_MEMCPY(p,i,len) #else // Hx [i] = t #define GB_HX_WRITE(i,t) Hx [i] = t // Cx [p] = Hx [i] #define GB_CIJ_GATHER(p,i) Cx [p] = Hx [i] // Hx [i] += t #define GB_HX_UPDATE(i,t) \ Hx [i] = t // memcpy (&(Cx [p]), &(Hx [i]), len) #define GB_CIJ_MEMCPY(p,i,len) \ memcpy (Cx +(p), Hx +(i), (len) * sizeof(int16_t)) #endif // disable this semiring and use the generic case if these conditions hold #define GB_DISABLE \ (GxB_NO_ANY || GxB_NO_RDIV || GxB_NO_INT16 || GxB_NO_ANY_INT16 || GxB_NO_RDIV_INT16 || GxB_NO_ANY_RDIV_INT16) //------------------------------------------------------------------------------ // C=A'*B or C<!M>=A'*B: dot product (phase 2) //------------------------------------------------------------------------------ GrB_Info GB_Adot2B__any_rdiv_int16 ( GrB_Matrix C, const GrB_Matrix M, const bool Mask_struct, const GrB_Matrix *Aslice, bool A_is_pattern, const GrB_Matrix B, bool B_is_pattern, int64_t *GB_RESTRICT B_slice, int64_t *GB_RESTRICT *C_counts, int nthreads, int naslice, int nbslice ) { // C<M>=A'*B now uses dot3 #if GB_DISABLE return (GrB_NO_VALUE) ; #else #define GB_PHASE_2_OF_2 #include "GB_AxB_dot2_meta.c" #undef GB_PHASE_2_OF_2 return (GrB_SUCCESS) ; #endif } //------------------------------------------------------------------------------ // C<M>=A'*B: masked dot product method (phase 2) //------------------------------------------------------------------------------ GrB_Info GB_Adot3B__any_rdiv_int16 ( GrB_Matrix C, const GrB_Matrix M, const bool Mask_struct, const GrB_Matrix A, bool A_is_pattern, const GrB_Matrix B, bool B_is_pattern, const GB_task_struct *GB_RESTRICT TaskList, const int ntasks, const int nthreads ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else #include "GB_AxB_dot3_template.c" return (GrB_SUCCESS) ; #endif } //------------------------------------------------------------------------------ // C+=A'*B: dense dot product //------------------------------------------------------------------------------ GrB_Info GB_Adot4B__any_rdiv_int16 ( GrB_Matrix C, const GrB_Matrix A, bool A_is_pattern, int64_t *GB_RESTRICT A_slice, int naslice, const GrB_Matrix B, bool B_is_pattern, int64_t *GB_RESTRICT B_slice, int nbslice, const int nthreads ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else #include "GB_AxB_dot4_template.c" return (GrB_SUCCESS) ; #endif } //------------------------------------------------------------------------------ // C=A*B, C<M>=A*B, C<!M>=A*B: saxpy3 method (Gustavson + Hash) //------------------------------------------------------------------------------ #include "GB_AxB_saxpy3_template.h" GrB_Info GB_Asaxpy3B__any_rdiv_int16 ( GrB_Matrix C, const GrB_Matrix M, bool Mask_comp, const bool Mask_struct, const GrB_Matrix A, bool A_is_pattern, const GrB_Matrix B, bool B_is_pattern, GB_saxpy3task_struct *GB_RESTRICT TaskList, const int ntasks, const int nfine, const int nthreads, GB_Context Context ) { #if GB_DISABLE return (GrB_NO_VALUE) ; #else #include "GB_AxB_saxpy3_template.c" return (GrB_SUCCESS) ; #endif } #endif
256061.c
// Reference : https://www.programmingsimplified.com/c/program/c-program-add-number-digits // Method 1 : Sum of digits of a number // Sum of digits C program to calculate the sum of digits of a number, // we use modulus operator (%) to extract individual digits of a number and keep on adding them. // #include <stdio.h> // int main() // { // int num = 0; // int temp = 0; // int sum = 0; // printf("enter an interger:\n"); // scanf("%d", &num); // temp = num; // while(temp!=0){ // sum = sum + temp % 10; // temp = temp / 10; // } // printf("sum = %d\n", sum); // return 0; // } // Method 2 : find sum of digits using for loop // #include <stdio.h> // int main() // { // int num = 0; // int temp = 0; // int sum = 0; // printf("enter an interger:\n"); // scanf("%d", &num); // temp = num; // for(temp; temp!=0; temp = temp / 10){ // sum = sum + temp % 10; // } // printf("sum = %d\n", sum); // return 0; // } // Method 3-1 : Calculate sum of digits in C without modulus operator use for loop // An advantage of this method is that the input integer can be huge, which we can't store in an int or a long long data type variable. // #include <stdio.h> // int main() // { // char num[1000]; // int sum = 0; // printf("enter an interger:\n"); // scanf("%s", num); // for(int i=0; num[i]!='\0'; i++){ // sum = sum + (num[i]-'0'); // num[i]-'0' Converting character to integer // } // printf("sum = %d\n", sum); // return 0; // } // Method 3-2 : Calculate sum of digits in C without modulus operator use while loop // An advantage of this method is that the input integer can be huge, which we can't store in an int or a long long data type variable. // #include <stdio.h> // int main() // { // char num[1000]; // int sum = 0; // int i = 0; // printf("enter an interger:\n"); // scanf("%s", num); // while(num[i]!='\0') // { // sum = sum + (num[i]-'0'); // i++; // } // printf("%d\n", sum); // return 0; // } // Method 4 : C program to find sum of digits of a number using recursion // #include <stdio.h> // int add_digits(int); // int main() // { // int num = 0; // int sum = 0; // printf("enter an interger:\n"); // scanf("%d", &num); // sum = add_digits(num); // printf("%d\n", sum); // return 0; // } // int add_digits(int num) // { // if(num==0) return 0; // else return (num%10+add_digits(num/10)); // }
477059.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <openssl/sha.h> #include "utility.h" static int len = 0; static unsigned char *next; void resetLine() { len = 0; } unsigned char* readLine(int fd, unsigned char *buf) { if (len <= 0) { // fill buffer len = read(fd, buf, MAXLINE); if (len == 0) { perror("Unable to read from socket."); exit(-1); } next = buf; } // find terminator for (int i = 0; i < len; i++) { if (next[i] == '\r') { // found - replace with '\0' and update `next`/`len` next[i] = '\0'; unsigned char *line = next; i += 2; next += i; len -= i; return line; } } if (len >= MAXLINE) { perror("HTTP header exceeds buffer or is underminated."); exit(-1); } // not found - shift remaining data and fill remaining buffer for (int i = 0; i < len; i++) { buf[i] = next[i]; } next = buf; len += read(fd, buf + len, MAXLINE - len); return readLine(fd, buf); } int startsWith(unsigned char *prefix, unsigned char *str) { size_t len = strlen(prefix); return len > strlen(str) ? 0 : strncmp(prefix, str, len) == 0; } void base64Encode(unsigned char *src, size_t srcLen, unsigned char *dest, size_t destLen) { const unsigned char table[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; const unsigned char *end = src + srcLen; while (end - src >= 3) { *dest++ = table[src[0] >> 2]; *dest++ = table[((src[0] & 0x03) << 4) | (src[1] >> 4)]; *dest++ = table[((src[1] & 0x0f) << 2) | (src[2] >> 6)]; *dest++ = table[src[2] & 0x3f]; src += 3; } if (end - src) { *dest++ = table[src[0] >> 2]; if (end - src == 1) { *dest++ = table[(src[0] & 0x03) << 4]; *dest++ = '='; } else { *dest++ = table[((src[0] & 0x03) << 4) | (src[1] >> 4)]; *dest++ = table[(src[1] & 0x0f) << 2]; } *dest++ = '='; } *dest++ = '\0'; }
378752.c
/*- * Copyright (c) 2002-2004 Tim J. Robbins. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* FUNCTION <<fputws>>, <<fputws_unlocked>>---write a wide character string in a file or stream INDEX fputws INDEX fputws_unlocked INDEX _fputws_r INDEX _fputws_unlocked_r ANSI_SYNOPSIS #include <wchar.h> int fputws(const wchar_t *__restrict <[ws]>, FILE *__restrict <[fp]>); #define _GNU_SOURCE #include <wchar.h> int fputws_unlocked(const wchar_t *__restrict <[ws]>, FILE *__restrict <[fp]>); #include <wchar.h> int _fputws_r(struct _reent *<[ptr]>, const wchar_t *<[ws]>, FILE *<[fp]>); #include <wchar.h> int _fputws_unlocked_r(struct _reent *<[ptr]>, const wchar_t *<[ws]>, FILE *<[fp]>); TRAD_SYNOPSIS #include <wchar.h> int fputws(<[ws]>, <[fp]>) wchar_t *__restrict <[ws]>; FILE *__restrict <[fp]>; #define _GNU_SOURCE #include <wchar.h> int fputws_unlocked(<[ws]>, <[fp]>) wchar_t *__restrict <[ws]>; FILE *__restrict <[fp]>; #include <wchar.h> int _fputws_r(<[ptr]>, <[ws]>, <[fp]>) struct _reent *<[ptr]>; wchar_t *<[ws]>; FILE *<[fp]>; #include <wchar.h> int _fputws_unlocked_r(<[ptr]>, <[ws]>, <[fp]>) struct _reent *<[ptr]>; wchar_t *<[ws]>; FILE *<[fp]>; DESCRIPTION <<fputws>> writes the wide character string at <[ws]> (but without the trailing null) to the file or stream identified by <[fp]>. <<fputws_unlocked>> is a non-thread-safe version of <<fputws>>. <<fputws_unlocked>> may only safely be used within a scope protected by flockfile() (or ftrylockfile()) and funlockfile(). This function may safely be used in a multi-threaded program if and only if they are called while the invoking thread owns the (FILE *) object, as is the case after a successful call to the flockfile() or ftrylockfile() functions. If threads are disabled, then <<fputws_unlocked>> is equivalent to <<fputws>>. <<_fputws_r>> and <<_fputws_unlocked_r>> are simply reentrant versions of the above that take an additional reentrant struct pointer argument: <[ptr]>. RETURNS If successful, the result is a non-negative integer; otherwise, the result is <<-1>> to indicate an error. PORTABILITY <<fputws>> is required by C99 and POSIX.1-2001. <<fputws_unlocked>> is a GNU extension. */ #include <_ansi.h> #include <reent.h> #include <errno.h> #include <limits.h> #include <stdio.h> #include <wchar.h> #include "fvwrite.h" #include "local.h" #ifdef __IMPL_UNLOCKED__ #define _fputws_r _fputws_unlocked_r #define fputws fputws_unlocked #endif int _DEFUN(_fputws_r, (ptr, ws, fp), struct _reent *ptr _AND const wchar_t *ws _AND FILE *fp) { size_t nbytes; char buf[BUFSIZ]; #ifdef _FVWRITE_IN_STREAMIO struct __suio uio; struct __siov iov; _newlib_flockfile_start (fp); ORIENT (fp, 1); if (cantwrite (ptr, fp) != 0) goto error; uio.uio_iov = &iov; uio.uio_iovcnt = 1; iov.iov_base = buf; do { nbytes = _wcsrtombs_r(ptr, buf, &ws, sizeof (buf), &fp->_mbstate); if (nbytes == (size_t) -1) goto error; iov.iov_len = uio.uio_resid = nbytes; if (__sfvwrite_r(ptr, fp, &uio) != 0) goto error; } while (ws != NULL); _newlib_flockfile_exit (fp); return (0); error: _newlib_flockfile_end (fp); return (-1); #else _newlib_flockfile_start (fp); ORIENT (fp, 1); if (cantwrite (ptr, fp) != 0) goto error; do { size_t i = 0; nbytes = _wcsrtombs_r (ptr, buf, &ws, sizeof (buf), &fp->_mbstate); if (nbytes == (size_t) -1) goto error; while (i < nbytes) { if (__sputc_r (ptr, buf[i], fp) == EOF) goto error; i++; } } while (ws != NULL); _newlib_flockfile_exit (fp); return (0); error: _newlib_flockfile_end (fp); return (-1); #endif } int _DEFUN(fputws, (ws, fp), const wchar_t *__restrict ws _AND FILE *__restrict fp) { struct _reent *reent = _REENT; CHECK_INIT (reent, fp); return _fputws_r (reent, ws, fp); }
138500.c
/* -------------------------------------------------------------------------- * * File kd_event.c * Description Events * Author Y.H Mun * * -------------------------------------------------------------------------- * * Copyright (C) 2010-2012 XMSoft. All rights reserved. * * Contact Email: [email protected] * * -------------------------------------------------------------------------- * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library in the file COPYING.LIB; * if not, write to the Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * * -------------------------------------------------------------------------- */ #include "kd_library.h" typedef struct XMCallback XMCallback; struct XMCallback { KDCallbackFunc* func; KDint eventtype; KDvoid* eventuserptr; }; static KDint _xmFindCallbackSubset ( KDvoid* d, KDvoid* f ) { KDint ret = -1; XMCallback* data = (XMCallback *) d; XMCallback* find = (XMCallback *) f; if ( find->eventtype == 0 || find->eventtype == data->eventtype ) { if ( find->eventuserptr == 0 || find->eventuserptr == data->eventuserptr ) { ret = 0; } } if ( ret && ( find->eventuserptr == 0 || find->eventuserptr == data->eventuserptr ) ) { if ( find->eventtype == 0 || find->eventtype == data->eventtype ) { ret = 0; } } return ret; } static KDint _xmFindCallback ( KDvoid* d, KDvoid* f ) { KDint ret = -1; XMCallback* data = (XMCallback *) d; KDEvent* find = (KDEvent *) f; if ( data->eventtype == 0 || data->eventtype == find->type ) { if ( data->eventuserptr == 0 || data->eventuserptr == find->userptr ) { ret = 0; } } if ( ret && ( data->eventuserptr == 0 || data->eventuserptr == find->userptr ) ) { if ( data->eventtype == 0 || data->eventtype == find->type ) { ret = 0; } } return ret; } // kdWaitEvent : Get next event from thread's event queue. KD_API const KDEvent* KD_APIENTRY kdWaitEvent ( KDust timeout ) { KDEvent* event = KD_NULL; KDust time = kdGetTimeUST ( ); XMContext* context = 0; do { if ( ( context = xmFindContext ( kdThreadSelf ( ) ) ) ) { kdPumpEvents ( ); event = (KDEvent *) xmQueuePopFront ( context->events ); if ( event ) { return event; } } } while ( ( timeout == ( (KDust) -1 ) ) || ( ( kdGetTimeUST ( ) - time ) < timeout ) ); if ( timeout != 0 ) { kdSetError ( KD_EAGAIN ); } return KD_NULL; } // kdSetEventUserptr : Set the userptr for global events. KD_API KDvoid KD_APIENTRY kdSetEventUserptr ( KDvoid* userptr ) { XMContext* context = 0; if ( ( context = xmFindContext ( kdThreadSelf ( ) ) ) ) { context->userptr = userptr; } } // kdDefaultEvent : Perform default processing on an unrecognized event. KD_API KDvoid KD_APIENTRY kdDefaultEvent ( const KDEvent* event ) { XMContext* context = 0; XMCallback* callback = 0; KDint32 type = 0; if ( event ) { type = event->type; if ( !( ( context = xmFindContext ( kdThreadSelf ( ) ) ) && ( callback = (XMCallback *) xmQueueReverseFind ( context->callbacks, _xmFindCallback, (KDvoid *) event ) ) && ( callback->func ) ) ) { kdFreeEvent ( (KDEvent *) event ); } if ( type == KD_EVENT_QUIT ) { kdExit ( 0 ); } } } // kdPumpEvents : Pump the thread's event queue, performing callbacks. KD_API KDint KD_APIENTRY kdPumpEvents ( KDvoid ) { static KDint pumping = 0; KDEvent* event = 0; XMContext* context = 0; XMCallback* callback = 0; if ( ( context = xmFindContext ( kdThreadSelf ( ) ) ) ) { xmFireTimer ( context ); if ( pumping ) { event = (KDEvent *) xmQueueFindNext ( context->events ); } else { pumping = 1; event = (KDEvent *) xmQueueFind ( context->events, 0, 0 ); } while ( event ) { if ( ( callback = (XMCallback *) xmQueueReverseFind ( context->callbacks, _xmFindCallback, event ) ) && ( callback->func ) ) { xmQueueEraseFound ( context->events ); callback->func ( event ); kdFreeEvent ( event ); } event = (KDEvent *) xmQueueFindNext ( context->events ); } } pumping = 0; return 0; } // kdInstallCallback : Install or remove a callback function for event processing. KD_API KDint KD_APIENTRY kdInstallCallback ( KDCallbackFunc* func, KDint eventtype, KDvoid* eventuserptr ) { XMContext* context = 0; XMCallback* callback = 0; XMCallback* subset = 0; KDint ret = -1; if ( ( context = xmFindContext ( kdThreadSelf ( ) ) ) ) { if( func == 0 && eventtype == 0 && eventuserptr == 0 ) { while( ( callback = (XMCallback *) xmQueuePopRear ( context->callbacks ) ) ) { kdFree ( callback ); } ret = 0; } else { if ( ( callback = (XMCallback *) kdMalloc ( sizeof ( XMCallback ) ) ) ) { callback->func = func; callback->eventtype = eventtype; callback->eventuserptr = eventuserptr; subset = (XMCallback *) xmQueueReverseFind ( context->callbacks, _xmFindCallbackSubset, callback ); while ( subset ) { kdFree ( subset ); xmQueueEraseFound ( context->callbacks ); subset = (XMCallback *) xmQueueFindNext ( context->callbacks ); } if( xmQueuePushRear ( context->callbacks, callback ) ) { kdFree ( callback ); } else { ret = 0; } } else { kdSetError ( KD_ENOMEM ); } } } return ret; } // kdCreateEvent : Create an event for posting. KD_API KDEvent* KD_APIENTRY kdCreateEvent ( KDvoid ) { KDEvent* event = KD_NULL; if ( ( event = (KDEvent *) kdMalloc ( sizeof ( KDEvent ) ) ) ) { kdMemset ( event, 0, sizeof ( KDEvent ) ); } else { kdSetError ( KD_ENOMEM ); } return event; } // kdPostEvent, kdPostThreadEvent : Post an event into a queue. KD_API KDint KD_APIENTRY kdPostEvent ( KDEvent* event ) { return kdPostThreadEvent ( event, kdThreadSelf ( ) ); } KD_API KDint KD_APIENTRY kdPostThreadEvent ( KDEvent* event, KDThread* thread ) { XMContext* context = 0; KDint ret = -1; if ( ( context = xmFindContext ( thread ) ) ) { if ( !xmQueuePushRear ( context->events, event ) ) { ret = 0; if ( event->timestamp == 0 ) { event->timestamp = kdGetTimeUST ( ); } if ( event->userptr == 0 ) { event->userptr = context->userptr; } } } return ret; } // kdFreeEvent : Abandon an event instead of posting it. KD_API KDvoid KD_APIENTRY kdFreeEvent ( KDEvent* event ) { if ( event->type == KD_EVENT_NAME_LOOKUP_COMPLETE ) { if ( event->data.namelookup.result ) { kdFree ( (KDvoid*) event->data.namelookup.result ); } } kdFree ( event ); }
496697.c
#include <stdio.h> #include <stdlib.h> int main() { unsigned char N; scanf("%hhu", &N); char *string = (char *) malloc((N + 1) * sizeof(char)); scanf("%s", string); for(unsigned char i = 0; i < N; i++) for(unsigned char j = 0; j < 3; j++) printf("%c", string[i]); free(string); return 0; }
259077.c
/* * Copyright (c) 2001-2004 Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * * This file is part of the lwIP TCP/IP stack. * * Author: Adam Dunkels <[email protected]> * */ #include "lwip/opt.h" #include "lwip/def.h" #include "lwip/mem.h" #include "lwip/pbuf.h" #include "lwip/stats.h" #include "lwip/snmp.h" #include "lwip/ethip6.h" #include "lwip/etharp.h" #include "lwip/dhcp.h" #include "lwip/timeouts.h" #include "netif/ethernet.h" #include "virtio_internal.h" #include "virtio_net.h" #include <io.h> typedef struct vnet { vtpci dev; u16 port; heap rxbuffers; int rxbuflen; struct netif *n; struct virtqueue *txq; struct virtqueue *rxq; struct virtqueue *ctl; void *empty; // just a mac..fix, from pre-heap days } *vnet; typedef struct xpbuf { struct pbuf_custom p; buffer b; vnet vn; } *xpbuf; static CLOSURE_1_1(tx_complete, void, struct pbuf *, u64); static void tx_complete(struct pbuf *p, u64 len) { // unfortunately we dont have control over the allocation // path (?) // free me! pbuf_free(p); } static err_t low_level_output(struct netif *netif, struct pbuf *p) { vnet vn = netif->state; vqmsg m = allocate_vqmsg(vn->txq); assert(m != INVALID_ADDRESS); vqmsg_push(vn->txq, m, vn->empty, NET_HEADER_LENGTH, false); pbuf_ref(p); for (struct pbuf * q = p; q != NULL; q = q->next) vqmsg_push(vn->txq, m, q->payload, q->len, false); vqmsg_commit(vn->txq, m, closure(vn->dev->general, tx_complete, p)); MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); if (((u8_t *)p->payload)[0] & 1) { /* broadcast or multicast packet*/ MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts); } else { /* unicast packet */ MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); } /* increase ifoutdiscards or ifouterrors on error */ LINK_STATS_INC(link.xmit); return ERR_OK; } static void receive_buffer_release(struct pbuf *p) { xpbuf x = (void *)p; deallocate(x->vn->rxbuffers, x, x->vn->rxbuflen + sizeof(struct xpbuf)); } static void post_receive(vnet vn); static CLOSURE_1_1(input, void, xpbuf, u64); static void input(xpbuf x, u64 len) { vnet vn= x->vn; // under what conditions does a virtio queue give us zero? if (x != NULL) { len -= NET_HEADER_LENGTH; assert(len <= x->p.pbuf.len); x->p.pbuf.tot_len = x->p.pbuf.len = len; x->p.pbuf.payload += NET_HEADER_LENGTH; if (vn->n->input(&x->p.pbuf, vn->n) != ERR_OK) { receive_buffer_release(&x->p.pbuf); } } else { rprintf ("virtio null\n"); } // we need to get a signal from the device side that there was // an underrun here to open up the window post_receive(vn); } static void post_receive(vnet vn) { xpbuf x = allocate(vn->rxbuffers, sizeof(struct xpbuf) + vn->rxbuflen); x->vn = vn; x->p.custom_free_function = receive_buffer_release; pbuf_alloced_custom(PBUF_RAW, vn->rxbuflen, PBUF_REF, &x->p, x+1, vn->rxbuflen); vqmsg m = allocate_vqmsg(vn->rxq); assert(m != INVALID_ADDRESS); vqmsg_push(vn->rxq, m, x+1, vn->rxbuflen, true); vqmsg_commit(vn->rxq, m, closure(vn->dev->general, input, x)); } static void status_callback(struct netif *netif) { u8 *n = (u8 *)&netif->ip_addr; rprintf("assigned: %d.%d.%d.%d\n", n[0], n[1], n[2], n[3]); } static err_t virtioif_init(struct netif *netif) { vnet vn = netif->state; netif->hostname = "uniboot"; // from config netif->name[0] = 'e'; netif->name[1] = 'n'; netif->output = etharp_output; netif->linkoutput = low_level_output; netif->hwaddr_len = ETHARP_HWADDR_LEN; netif->status_callback = status_callback; for (int i = 0; i < ETHER_ADDR_LEN; i++) netif->hwaddr[i] = in8(vn->dev->base + VIRTIO_MSI_DEVICE_CONFIG + i); netif->mtu = 1500; /* device capabilities */ /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */ netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_LINK_UP | NETIF_FLAG_UP; // fix post_receive(vn); post_receive(vn); post_receive(vn); return ERR_OK; } static void virtio_net_attach(heap general, heap page_allocator, pci_dev d) { //u32 badness = VIRTIO_F_BAD_FEATURE | VIRTIO_NET_F_CSUM | VIRTIO_NET_F_GUEST_CSUM | // VIRTIO_NET_F_GUEST_TSO4 | VIRTIO_NET_F_GUEST_TSO6 | VIRTIO_NET_F_GUEST_ECN| // VIRTIO_NET_F_GUEST_UFO | VIRTIO_NET_F_CTRL_VLAN | VIRTIO_NET_F_MQ; vtpci dev = attach_vtpci(general, page_allocator, d, VIRTIO_NET_F_MAC); vnet vn = allocate(dev->general, sizeof(struct vnet)); vn->n = allocate(dev->general, sizeof(struct netif)); vn->rxbuflen = NET_HEADER_LENGTH + sizeof(struct eth_hdr) + sizeof(struct eth_vlan_hdr) + 1500; vn->rxbuffers = allocate_objcache(dev->general, page_allocator, vn->rxbuflen + sizeof(struct xpbuf), PAGESIZE_2M); /* rx = 0, tx = 1, ctl = 2 by page 53 of http://docs.oasis-open.org/virtio/virtio/v1.0/cs01/virtio-v1.0-cs01.pdf */ vn->dev = dev; vtpci_alloc_virtqueue(dev, 1, &vn->txq); vtpci_alloc_virtqueue(dev, 0, &vn->rxq); // just need 10 contig bytes really vn->empty = allocate(dev->contiguous, dev->contiguous->pagesize); for (int i = 0; i < NET_HEADER_LENGTH ; i++) ((u8 *)vn->empty)[i] = 0; vn->n->state = vn; // initialization complete vtpci_set_status(dev, VIRTIO_CONFIG_STATUS_DRIVER_OK); netif_add(vn->n, 0, 0, 0, vn, virtioif_init, ethernet_input); } static CLOSURE_2_1(virtio_net_probe, boolean, heap, heap, pci_dev); static boolean virtio_net_probe(heap general, heap page_allocator, pci_dev d) { if (pci_get_vendor(d) != VIRTIO_PCI_VENDORID || pci_get_device(d) != VIRTIO_PCI_DEVICEID_NETWORK) return false; virtio_net_attach(general, page_allocator, d); return true; } void init_virtio_network(kernel_heaps kh) { heap h = heap_general(kh); register_pci_driver(closure(h, virtio_net_probe, h, heap_backed(kh))); } err_t init_static_config(tuple root, struct netif *n) { ip4_addr_t ip; ip4_addr_t netmask; ip4_addr_t gw; value v; if(!(v = table_find(root, sym(ipaddr)))) return ERR_ARG; ip4addr_aton((char *)v, &ip); if(!(v= table_find(root, sym(gateway)))) return ERR_ARG; ip4addr_aton((char *)v, &gw); if(!(v= table_find(root, sym(netmask)))) return ERR_ARG; ip4addr_aton((char *)v, &netmask); netif_set_addr(n, &ip, &netmask, &gw); netif_set_up(n); return ERR_OK; } void init_network_iface(tuple root) { struct netif *n = netif_find("en0"); if (!n) { halt("no network interface found\n"); } netif_set_default(n); if (ERR_OK != init_static_config(root, n)) { dhcp_start(n); } }
731268.c
/**************************************************************************** * * Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * 3. Neither the name PX4 nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ /** * @file hwtest.c * * Simple output test. * @ref Documentation https://pixhawk.org/dev/examples/write_output * * @author Lorenz Meier <[email protected]> */ #include <stdio.h> #include <string.h> #include <drivers/drv_hrt.h> #include <px4_config.h> #include <systemlib/err.h> #include <uORB/topics/actuator_armed.h> #include <uORB/topics/actuator_controls.h> #include <uORB/topics/actuator_controls_0.h> #include <uORB/topics/actuator_controls_1.h> #include <uORB/topics/actuator_controls_2.h> #include <uORB/topics/actuator_controls_3.h> #include <uORB/uORB.h> __EXPORT int ex_hwtest_main(int argc, char *argv[]); int ex_hwtest_main(int argc, char *argv[]) { warnx("DO NOT FORGET TO STOP THE DEFAULT CONTROL APPS!"); warnx("(run <commander stop>,)"); warnx("( <mc_att_control stop> and)"); warnx("( <fw_att_control stop> to do so)"); warnx("usage: http://px4.io/dev/examples/write_output"); struct actuator_controls_s actuators; memset(&actuators, 0, sizeof(actuators)); orb_advert_t actuator_pub_ptr = orb_advertise(ORB_ID(actuator_controls_0), &actuators); struct actuator_armed_s arm; memset(&arm, 0 , sizeof(arm)); arm.timestamp = hrt_absolute_time(); arm.ready_to_arm = true; arm.armed = true; orb_advert_t arm_pub_ptr = orb_advertise(ORB_ID(actuator_armed), &arm); orb_publish(ORB_ID(actuator_armed), arm_pub_ptr, &arm); /* read back values to validate */ int arm_sub_fd = orb_subscribe(ORB_ID(actuator_armed)); orb_copy(ORB_ID(actuator_armed), arm_sub_fd, &arm); if (arm.ready_to_arm && arm.armed) { warnx("Actuator armed"); } else { errx(1, "Arming actuators failed"); } hrt_abstime stime; int count = 0; while (count != 36) { stime = hrt_absolute_time(); while (hrt_absolute_time() - stime < 1000000) { for (int i = 0; i != 2; i++) { if (count <= 5) { actuators.control[i] = -1.0f; } else if (count <= 10) { actuators.control[i] = -0.7f; } else if (count <= 15) { actuators.control[i] = -0.5f; } else if (count <= 20) { actuators.control[i] = -0.3f; } else if (count <= 25) { actuators.control[i] = 0.0f; } else if (count <= 30) { actuators.control[i] = 0.3f; } else { actuators.control[i] = 0.5f; } } actuators.timestamp = hrt_absolute_time(); orb_publish(ORB_ID(actuator_controls_0), actuator_pub_ptr, &actuators); usleep(10000); } warnx("count %i", count); count++; } return OK; }
137516.c
/* * nsd-checkzone.c -- nsd-checkzone(8) checks zones for syntax errors * * Copyright (c) 2013, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ #include "config.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <errno.h> #include "nsd.h" #include "options.h" #include "util.h" #include "zonec.h" static void error(const char *format, ...) ATTR_FORMAT(printf, 1, 2); struct nsd nsd; /* * Print the help text. * */ static void usage (void) { fprintf(stderr, "Usage: nsd-checkzone <zone name> <zone file>\n"); fprintf(stderr, "Version %s. Report bugs to <%s>.\n", PACKAGE_VERSION, PACKAGE_BUGREPORT); } /* * Something went wrong, give error messages and exit. * */ static void error(const char *format, ...) { va_list args; va_start(args, format); log_vmsg(LOG_ERR, format, args); va_end(args); exit(1); } static void check_zone(struct nsd* nsd, const char* name, const char* fname) { const dname_type* dname; zone_options_type* zo; zone_type* zone; unsigned errors; /* init*/ nsd->db = namedb_open("", nsd->options); dname = dname_parse(nsd->options->region, name); if(!dname) { /* parse failure */ error("cannot parse zone name '%s'", name); } zo = zone_options_create(nsd->options->region); memset(zo, 0, sizeof(*zo)); zo->node.key = dname; zo->name = name; zone = namedb_zone_create(nsd->db, dname, zo); /* read the zone */ errors = zonec_read(name, fname, zone); if(errors > 0) { printf("zone %s file %s has %u errors\n", name, fname, errors); exit(1); } printf("zone %s is ok\n", name); namedb_close(nsd->db); } /* dummy functions to link */ int writepid(struct nsd * ATTR_UNUSED(nsd)) { return 0; } void unlinkpid(const char * ATTR_UNUSED(file)) { } void bind8_stats(struct nsd * ATTR_UNUSED(nsd)) { } void sig_handler(int ATTR_UNUSED(sig)) { } extern char *optarg; extern int optind; int main(int argc, char *argv[]) { /* Scratch variables... */ int c; struct nsd nsd; memset(&nsd, 0, sizeof(nsd)); log_init("nsd-checkzone"); /* Parse the command line... */ while ((c = getopt(argc, argv, "h")) != -1) { switch (c) { case 'h': usage(); exit(0); case '?': default: usage(); exit(1); } } argc -= optind; argv += optind; /* Commandline parse error */ if (argc != 2) { fprintf(stderr, "wrong number of arguments.\n"); usage(); exit(1); } nsd.options = nsd_options_create(region_create_custom(xalloc, free, DEFAULT_CHUNK_SIZE, DEFAULT_LARGE_OBJECT_SIZE, DEFAULT_INITIAL_CLEANUP_SIZE, 1)); if (verbosity == 0) verbosity = nsd.options->verbosity; check_zone(&nsd, argv[0], argv[1]); region_destroy(nsd.options->region); /* yylex_destroy(); but, not available in all versions of flex */ exit(0); }
499681.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2020 Justine Alexandra Roberts Tunney │ │ │ │ Permission to use, copy, modify, and/or distribute this software for │ │ any purpose with or without fee is hereby granted, provided that the │ │ above copyright notice and this permission notice appear in all copies. │ │ │ │ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │ │ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │ │ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │ │ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │ │ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │ │ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │ │ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ #include "libc/fmt/leb128.h" /** * Encodes signed integer to array. */ char *zleb128(char *p, int128_t x) { int c; uint128_t u; u = x; u <<= 1; u ^= x >> 127; for (;;) { c = u & 127; if (!(u >>= 7)) { *p++ = c; return p; } else { *p++ = c | 128; } } }
110250.c
/* $OpenBSD: dsa_meth.c,v 1.1 2018/03/17 15:19:12 tb Exp $ */ /* * Copyright (c) 2018 Theo Buehler <[email protected]> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <stdlib.h> #include <string.h> #include <openssl/dsa.h> #include <openssl/err.h> DSA_METHOD * DSA_meth_new(const char *name, int flags) { DSA_METHOD *meth; if ((meth = calloc(1, sizeof(*meth))) == NULL) return NULL; if ((meth->name = strdup(name)) == NULL) { free(meth); return NULL; } meth->flags = flags; return meth; } void DSA_meth_free(DSA_METHOD *meth) { if (meth != NULL) { free((char *)meth->name); free(meth); } } DSA_METHOD * DSA_meth_dup(const DSA_METHOD *meth) { DSA_METHOD *copy; if ((copy = calloc(1, sizeof(*copy))) == NULL) return NULL; memcpy(copy, meth, sizeof(*copy)); if ((copy->name = strdup(meth->name)) == NULL) { free(copy); return NULL; } return copy; } int DSA_meth_set_sign(DSA_METHOD *meth, DSA_SIG *(*sign)(const unsigned char *, int, DSA *)) { meth->dsa_do_sign = sign; return 1; } int DSA_meth_set_finish(DSA_METHOD *meth, int (*finish)(DSA *)) { meth->finish = finish; return 1; }
411985.c
#include "flecs_private.h" /** Skip spaces when parsing signature */ static const char *skip_space( const char *ptr) { while (isspace(*ptr)) { ptr ++; } return ptr; } /** Parse element with a dot-separated qualifier ('CONTAINER.Foo') */ static char* parse_complex_elem( char *bptr, ecs_system_expr_elem_kind_t *elem_kind, ecs_system_expr_oper_kind_t *oper_kind, const char * *source) { if (bptr[0] == '!') { *oper_kind = EcsOperNot; if (!bptr[1]) { ecs_abort(ECS_INVALID_EXPRESSION, bptr); } bptr ++; } else if (bptr[0] == '?') { *oper_kind = EcsOperOptional; if (!bptr[1]) { ecs_abort(ECS_INVALID_EXPRESSION, bptr); } bptr ++; } *source = NULL; char *dot = strchr(bptr, '.'); if (dot) { if (bptr == dot) { *elem_kind = EcsFromEmpty; } else if (!strncmp(bptr, "CONTAINER", dot - bptr)) { *elem_kind = EcsFromContainer; } else if (!strncmp(bptr, "SYSTEM", dot - bptr)) { *elem_kind = EcsFromSystem; } else if (!strncmp(bptr, "SELF", dot - bptr)) { /* default */ } else if (!strncmp(bptr, "OWNED", dot - bptr)) { *elem_kind = EcsFromOwned; } else if (!strncmp(bptr, "SHARED", dot - bptr)) { *elem_kind = EcsFromShared; } else if (!strncmp(bptr, "CASCADE", dot - bptr)) { *elem_kind = EcsCascade; } else { *elem_kind = EcsFromEntity; *source = bptr; } bptr = dot + 1; if (!bptr[0]) { return NULL; } } return bptr; } static int has_tables( ecs_world_t *world, ecs_system_expr_elem_kind_t elem_kind, ecs_system_expr_oper_kind_t oper_kind, const char *component_id, const char *source_id, void *data) { (void)world; (void)oper_kind; (void)component_id; (void)source_id; bool *needs_matching = data; if (elem_kind == EcsFromSelf || elem_kind == EcsFromContainer) { *needs_matching = true; } return 0; } /* -- Private functions -- */ /* Does expression require that a system matches with tables */ bool ecs_needs_tables( ecs_world_t *world, const char *signature) { bool needs_matching = false; ecs_parse_component_expr(world, signature, has_tables, &needs_matching); return needs_matching; } /** Count components in a signature */ uint32_t ecs_columns_count( const char *sig) { const char *ptr = sig; uint32_t count = 1; while ((ptr = strchr(ptr + 1, ','))) { count ++; } return count; } /** Parse component expression */ int ecs_parse_component_expr( ecs_world_t *world, const char *sig, ecs_parse_action_t action, void *ctx) { size_t len = strlen(sig); const char *ptr; char ch, *bptr, *buffer = ecs_os_malloc(len + 1); ecs_assert(buffer != NULL, ECS_OUT_OF_MEMORY, NULL); bool complex_expr = false; bool prev_is_0 = false; ecs_system_expr_elem_kind_t elem_kind = EcsFromSelf; ecs_system_expr_oper_kind_t oper_kind = EcsOperAnd; const char *source; for (bptr = buffer, ch = sig[0], ptr = sig; ch; ptr++) { ptr = skip_space(ptr); ch = *ptr; if (prev_is_0) { /* 0 can only apppear by itself */ ecs_abort(ECS_INVALID_SIGNATURE, sig); } if (ch == ',' || ch == '|' || ch == '\0') { if (bptr == buffer) { ecs_abort(ECS_INVALID_SIGNATURE, sig); } *bptr = '\0'; bptr = buffer; source = NULL; if (complex_expr) { ecs_system_expr_oper_kind_t prev_oper_kind = oper_kind; bptr = parse_complex_elem(bptr, &elem_kind, &oper_kind, &source); if (!bptr) { ecs_abort(ECS_INVALID_EXPRESSION, sig); } if (oper_kind == EcsOperNot && prev_oper_kind == EcsOperOr) { ecs_abort(ECS_INVALID_EXPRESSION, sig); } } if (oper_kind == EcsOperOr) { if (elem_kind == EcsFromEmpty) { /* Cannot OR handles */ ecs_abort(ECS_INVALID_EXPRESSION, sig); } } if (!strcmp(bptr, "0")) { if (bptr != buffer) { /* 0 can only appear by itself */ ecs_abort(ECS_INVALID_EXPRESSION, sig); } elem_kind = EcsFromEmpty; prev_is_0 = true; } char *source_id = NULL; if (source) { char *dot = strchr(source, '.'); source_id = ecs_os_malloc(dot - source + 1); ecs_assert(source_id != NULL, ECS_OUT_OF_MEMORY, NULL); strncpy(source_id, source, dot - source); source_id[dot - source] = '\0'; } int ret; if ((ret = action( world, elem_kind, oper_kind, bptr, source_id, ctx))) { ecs_abort(ret, sig); } if (source_id) { ecs_os_free(source_id); } complex_expr = false; elem_kind = EcsFromSelf; if (ch == '|') { oper_kind = EcsOperOr; } else { oper_kind = EcsOperAnd; } bptr = buffer; } else { *bptr = ch; bptr ++; if (ch == '.' || ch == '!' || ch == '?') { complex_expr = true; } } } ecs_os_free(buffer); return 0; }
350002.c
/* * * LCD driver for HP Jornada 700 series (710/720/728) * Copyright (C) 2006-2009 Kristoffer Ericson <[email protected]> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 or any later version as published by the Free Software Foundation. * */ #include <linux/device.h> #include <linux/fb.h> #include <linux/kernel.h> #include <linux/lcd.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/delay.h> #include <mach/jornada720.h> #include <mach/hardware.h> #include <video/s1d13xxxfb.h> #define LCD_MAX_CONTRAST 0xff #define LCD_DEF_CONTRAST 0x80 static int jornada_lcd_get_power(struct lcd_device *ld) { /* LDD2 in PPC = LCD POWER */ if (PPSR & PPC_LDD2) return FB_BLANK_UNBLANK; /* PW ON */ else return FB_BLANK_POWERDOWN; /* PW OFF */ } static int jornada_lcd_get_contrast(struct lcd_device *ld) { int ret; if (jornada_lcd_get_power(ld) != FB_BLANK_UNBLANK) return 0; jornada_ssp_start(); if (jornada_ssp_byte(GETCONTRAST) != TXDUMMY) { dev_err(&ld->dev, "get contrast failed\n"); jornada_ssp_end(); return -ETIMEDOUT; } else { ret = jornada_ssp_byte(TXDUMMY); jornada_ssp_end(); return ret; } } static int jornada_lcd_set_contrast(struct lcd_device *ld, int value) { int ret; jornada_ssp_start(); /* start by sending our set contrast cmd to mcu */ ret = jornada_ssp_byte(SETCONTRAST); /* push the new value */ if (jornada_ssp_byte(value) != TXDUMMY) { dev_err(&ld->dev, "set contrast failed\n"); jornada_ssp_end(); return -ETIMEDOUT; } /* if we get here we can assume everything went well */ jornada_ssp_end(); return 0; } static int jornada_lcd_set_power(struct lcd_device *ld, int power) { if (power != FB_BLANK_UNBLANK) { PPSR &= ~PPC_LDD2; PPDR |= PPC_LDD2; } else { PPSR |= PPC_LDD2; } return 0; } static struct lcd_ops jornada_lcd_props = { .get_contrast = jornada_lcd_get_contrast, .set_contrast = jornada_lcd_set_contrast, .get_power = jornada_lcd_get_power, .set_power = jornada_lcd_set_power, }; static int jornada_lcd_probe(struct platform_device *pdev) { struct lcd_device *lcd_device; int ret; lcd_device = devm_lcd_device_register(&pdev->dev, S1D_DEVICENAME, &pdev->dev, NULL, &jornada_lcd_props); if (IS_ERR(lcd_device)) { ret = PTR_ERR(lcd_device); dev_err(&pdev->dev, "failed to register device\n"); return ret; } platform_set_drvdata(pdev, lcd_device); /* lets set our default values */ jornada_lcd_set_contrast(lcd_device, LCD_DEF_CONTRAST); jornada_lcd_set_power(lcd_device, FB_BLANK_UNBLANK); /* give it some time to startup */ msleep(100); return 0; } static struct platform_driver jornada_lcd_driver = { .probe = jornada_lcd_probe, .driver = { .name = "jornada_lcd", }, }; module_platform_driver(jornada_lcd_driver); MODULE_AUTHOR("Kristoffer Ericson <[email protected]>"); MODULE_DESCRIPTION("HP Jornada 710/720/728 LCD driver"); MODULE_LICENSE("GPL");
377744.c
/* * Mach Operating System * Copyright (c) 1992 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * Carnegie Mellon requests users of this software to return to * * Software Distribution Coordinator or [email protected] * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ /* * HISTORY * $Log: block_io.c,v $ * Revision 1.2 2000/10/27 01:58:49 welchd * * Updated to latest source * * Revision 1.2 1995/08/29 01:07:23 gback * gross hack to ensure ioctl()'s on block devices work * * Revision 1.1.1.2 1995/03/23 01:16:52 law * lites-950323 from jvh. * * Revision 2.4 93/05/11 12:02:50 rvb * From UX: Do not fragment vm map with mbufs unless requested * to do so. * [93/05/03 12:58:09 rvb] * * Revision 2.3 93/03/12 10:54:53 rwd * Keep allocbufspace and freebufspace up to date. * [93/03/04 rwd] * * Revision 2.2 93/02/26 12:55:40 rwd * Include sys/systm.h for printf prototypes. * [92/12/09 rwd] * * Revision 2.1 92/04/21 17:11:18 rwd * BSDSS * * */ /* * Block IO using MACH KERNEL interface. */ #include "osfmach3.h" #include <serv/server_defs.h> #include <sys/param.h> #include <sys/buf.h> #include <sys/errno.h> #include <sys/synch.h> #include <sys/ucred.h> #include <sys/systm.h> #include <sys/assert.h> #include <sys/conf.h> #include <serv/import_mach.h> #include <serv/device_utils.h> #include <device/device.h> /* * We store the block-io port in the hash table */ #define bio_port_enter(dev, port) \ dev_number_hash_enter(XDEV_BLOCK(dev), (char *)(port)) #define bio_port_remove(dev) \ dev_number_hash_remove(XDEV_BLOCK(dev)) #define bio_port_lookup(dev) \ ((mach_port_t)dev_number_hash_lookup(XDEV_BLOCK(dev))) kern_return_t bio_read_reply(char *, kern_return_t, char *, mach_msg_type_number_t); kern_return_t bio_write_reply(char *, kern_return_t, int); dev_t blktochr (dev_t); extern int freebufspace; extern int allocbufspace; #if OSFMACH3 extern security_token_t security_id; #endif int debug_bio = 0; /* * Open block device. */ int bdev_open( dev_t dev, int flag) { #if OSFMACH3 dev_name_t name; #else char name[32]; #endif kern_return_t rc; mach_port_t device_port; int mode; /* * See whether we have opened the device already. */ if (bio_port_lookup(dev)) { return (0); } rc = bdev_name_string(dev, name); if (rc != 0) return (rc); #if OSFMACH3 mode = D_READ|D_WRITE; #else mode = 0; /* XXX */ #endif rc = device_open(device_server_port, #if OSF_LEDGERS MACH_PORT_NULL, #endif mode, #if OSFMACH3 security_id, #endif name, &device_port); if (rc != D_SUCCESS) return (dev_error_to_errno(rc)); bio_port_enter(dev, device_port); return (0); } int bdev_close( dev_t dev, int flag) { mach_port_t device_port; int error; device_port = (mach_port_t)bio_port_lookup(dev); if (device_port == MACH_PORT_NULL) return (0); /* shouldn't happen */ bio_port_remove(dev); error = dev_error_to_errno(device_close(device_port)); (void) mach_port_deallocate(mach_task_self(), device_port); return (error); } int bdev_dump() { printf("bdev_dump()----------\n"); return(0); } int bdev_size() { printf("bdev_size()----------\n"); return(0); } int bdev_ioctl( dev_t dev, ioctl_cmd_t cmd, caddr_t arg, int mode, struct proc *p) { dev_t cdev = blktochr(dev); /* * this is a hack so that the ioctl will find the correct * device port in the hash chain - if anybody asks, I didn't do it */ if (cdev != NODEV) return cdevsw[major(cdev)].d_ioctl(XDEV_BLOCK(dev), cmd, arg, mode, p); printf("bdev_ioctl(dev = %x, cmd = %x, arg = %x, mode = %d)---------\n", dev, cmd, arg, mode); return EIO; } int bio_strategy( struct buf * bp) { mach_port_t device_port; kern_return_t error; mach_msg_type_number_t count; assert((bp->b_flags & (B_INVAL|B_BAD|B_ERROR|B_DONE)) == 0); assert((bp->b_flags & B_BUSY) == B_BUSY); /* * Find the request port for the device. */ device_port = bio_port_lookup(bp->b_dev); if (device_port == MACH_PORT_NULL) panic("bio_strategy null port"); /* * Start the IO. XXX What should we do in case of error??? * Calling bio_read_reply/bio_write_reply isn't correct, * because they use interrupt_enter/interrupt_exit. */ /* XXX There must be a more general way of doing the rounding */ #define round_sector(x) ((x + 511U) & ~511U) count = round_sector(bp->b_bcount); if (bp->b_flags & B_READ) { error = device_read_request(device_port, bp->b_reply_port, 0, bp->b_blkno, count); if (error != KERN_SUCCESS) panic("bio_strategy read request", error); } else { /* as there is no write flag, check that it anyway IS a write */ assert(bp->b_flags & (B_DIRTY|B_DELWRI|B_WRITEINPROG)); assert(bp->b_bcount <= MAXBSIZE); error = device_write_request(device_port, bp->b_reply_port, 0, bp->b_blkno, bp->b_un.b_addr, count); if (error != KERN_SUCCESS) panic("bio_strategy write request",error); } } int donotfragmentbuf = 1; kern_return_t bio_read_reply( char * bp_ptr, kern_return_t return_code, char *data, mach_msg_type_number_t data_count) { register struct buf *bp = (struct buf *)bp_ptr; vm_offset_t dealloc_addr = 0; vm_size_t dealloc_size = 0; int s; kern_return_t kr; interrupt_enter(SPLBIO); if (return_code != D_SUCCESS) { bp->b_flags |= B_ERROR; bp->b_error = EIO; } else { /* * Deallocate old memory. Actually do it later, * after we have lowered IPL. */ if (bp->b_bufsize > 0) { dealloc_addr = (vm_offset_t) bp->b_un.b_addr; dealloc_size = (vm_size_t) bp->b_bufsize; if (!donotfragmentbuf) bp->b_bufsize = 0; } if (data_count < bp->b_bcount) { bp->b_flags |= B_ERROR; bp->b_resid = bp->b_bcount - data_count; } if (donotfragmentbuf && (bp->b_bufsize > 0)) { bcopy(data, bp->b_un.b_addr, data_count); dealloc_addr = (vm_offset_t) data; dealloc_size = (vm_size_t) round_page(data_count); } else { bp->b_un.b_addr = data; bp->b_bufsize = round_page(data_count); #if 0 freebufspace += (dealloc_size - bp->b_bufsize); allocbufspace -= (dealloc_size - bp->b_bufsize); #endif } } assert((bp->b_flags & (B_DIRTY|B_INVAL|B_DELWRI|B_BUSY)) == B_BUSY); biodone(bp); interrupt_exit(SPLBIO); if (return_code == D_SUCCESS & debug_bio) printf("r allocate bp: %x addr: %x size: %x\n", bp, data, bp->b_bufsize); if (dealloc_size != 0) { kr = vm_deallocate(mach_task_self(), dealloc_addr, dealloc_size); assert(kr == KERN_SUCCESS); if (debug_bio) printf("rdeallocate bp: %x addr: %x size: %x\n", bp, dealloc_addr, dealloc_size); } } kern_return_t bio_write_reply( char * bp_ptr, kern_return_t return_code, int bytes_written) { register struct buf *bp = (struct buf *)bp_ptr; interrupt_enter(SPLBIO); if (return_code != D_SUCCESS) { bp->b_flags |= B_ERROR; bp->b_error = EIO; } else if (bytes_written < bp->b_bcount) { bp->b_flags |= B_ERROR; bp->b_resid = bp->b_bcount - bytes_written; } biodone(bp); interrupt_exit(SPLBIO); }
823642.c
#ifdef HAVE_XORG_CONFIG_H #include <xorg-config.h> #endif #include "xf86Module.h" static MODULESETUPPROTO(tda9850Setup); static XF86ModuleVersionInfo tda9850VersRec = { "tda9850", MODULEVENDORSTRING, MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, 1, 0, 0, ABI_CLASS_VIDEODRV, /* This needs the video driver ABI */ ABI_VIDEODRV_VERSION, MOD_CLASS_NONE, {0,0,0,0} }; _X_EXPORT XF86ModuleData tda9850ModuleData = { &tda9850VersRec, tda9850Setup, NULL }; static pointer tda9850Setup(pointer module, pointer opts, int *errmaj, int *errmin) { return (pointer)1; }
804104.c
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_levinson_durbin_f32.c * Description: f32 version of Levinson Durbin algorithm * * $Date: 23 April 2021 * $Revision: V1.9.0 * * Target Processor: Cortex-M and Cortex-A cores * -------------------------------------------------------------------- */ /* * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "dsp/filtering_functions.h" /** @ingroup groupFilters */ /** @defgroup LD Levinson Durbin Algorithm */ /** @addtogroup LD @{ */ /** @brief Levinson Durbin @param[in] phi autocovariance vector starting with lag 0 (length is nbCoefs + 1) @param[out] a autoregressive coefficients @param[out] err prediction error (variance) @param[in] nbCoefs number of autoregressive coefficients @return none */ #if defined(ARM_MATH_MVE_FLOAT16) && !defined(ARM_MATH_AUTOVECTORIZE) && defined(__CMSIS_GCC_H) #pragma GCC warning "Scalar version of arm_levinson_durbin_f32 built. Helium version has build issues with gcc." #endif #if defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) && !defined(__CMSIS_GCC_H) #include "arm_helium_utils.h" #define LANE23_MASK 0xFF00 void arm_levinson_durbin_f32(const float32_t *phi, float32_t *a, float32_t *err, int nbCoefs) { float32_t e; static const uint32_t revOffsetArray[4] = {3,2,1,0}; a[0] = phi[1] / phi[0]; e = phi[0] - phi[1] * a[0]; for(int p=1; p < nbCoefs; p++) { float32_t suma = 0.0f; float32_t sumb = 0.0f; f32x4_t vecA,vecRevPhi,vecPhi,vecSumA, vecSumB; float32_t k; uint32_t blkCnt; const float32_t *pPhi,*pRevPhi,*pA; uint32x4_t revOffset; int nb,j,i; revOffset = vld1q(revOffsetArray); vecSumA = vdupq_n_f32(0.0f); vecSumB = vdupq_n_f32(0.0f); pRevPhi = &phi[p-3]; pPhi = &phi[1]; pA = a; i = 0; blkCnt = p >> 2; while(blkCnt > 0) { vecA = vld1q(pA); pA += 4; vecPhi = vld1q(pPhi); pPhi += 4; vecRevPhi = vldrwq_gather_shifted_offset_f32(pRevPhi,revOffset); pRevPhi -= 4; vecSumA = vfmaq(vecSumA,vecA,vecRevPhi); vecSumB = vfmaq(vecSumB,vecA,vecPhi); i += 4; blkCnt--; } suma = vecAddAcrossF32Mve(vecSumA); sumb = vecAddAcrossF32Mve(vecSumB); blkCnt = p & 3; while(blkCnt > 0) { suma += a[i] * phi[p - i]; sumb += a[i] * phi[i + 1]; i++; blkCnt--; } k = (phi[p+1] - suma)/(phi[0] - sumb); f32x4_t vecRevA,tmp; static uint32_t orgOffsetArray[4]={0,1,-1,-2}; static const uint32_t offsetIncArray[4]={2,2,-2,-2}; uint32x4_t offset,offsetInc,vecTmp; offset = vld1q(orgOffsetArray); vecTmp = vdupq_n_u32(p); offset = vaddq_m_u32(offset,offset,vecTmp,LANE23_MASK); offsetInc = vld1q(offsetIncArray); nb = p >> 2; j=0; for(int i = 0; i < nb ; i++) { /* x0=a[j] - k * a[p-1-j]; x1=a[j+1] - k * a[p-2-j]; x3=a[p-1-j] - k * a[j]; x4=a[p-2-j] - k * a[j+1]; a[j] = x0; a[j+1] = x1; a[p-1-j] = x2; a[p-2-j] = x3; */ uint64_t tmpa,tmpb; vecA = vldrwq_gather_shifted_offset_f32(a,offset); tmpa = vgetq_lane_u64((uint64x2_t)vecA,0); tmpb = vgetq_lane_u64((uint64x2_t)vecA,1); vecRevA = (f32x4_t) vsetq_lane_u64(tmpb,(uint64x2_t)vecRevA,0); vecRevA = (f32x4_t) vsetq_lane_u64(tmpa,(uint64x2_t)vecRevA,1); tmp = vsubq(vecA,vmulq_n_f32(vecRevA,k)); vstrwq_scatter_shifted_offset_f32(a, offset, tmp); offset = vaddq(offset,offsetInc); j+=2; } switch(p & 3) { case 3: { float32_t x,y; x = a[j] - k * a[p-1-j]; y = a[p-1-j] - k * a[j]; a[j] = x; a[p-1-j] = y; a[j+1] = a[j+1] - k * a[p-1-(j+1)]; } break; case 2: { float32_t x,y; x = a[j] - k * a[p-1-j]; y = a[p-1-j] - k * a[j]; a[j] = x; a[p-1-j] = y; } break; case 1: a[j] = a[j]- k * a[p-1-j]; break; } a[p] = k; e = e * (1.0f - k*k); } *err = e; } #else void arm_levinson_durbin_f32(const float32_t *phi, float32_t *a, float32_t *err, int nbCoefs) { float32_t e; a[0] = phi[1] / phi[0]; e = phi[0] - phi[1] * a[0]; for(int p=1; p < nbCoefs; p++) { float32_t suma=0.0f; float32_t sumb=0.0f; float32_t k; int nb,j; for(int i=0; i < p; i++) { suma += a[i] * phi[p - i]; sumb += a[i] * phi[i + 1]; } k = (phi[p+1]-suma)/(phi[0] - sumb); nb = p >> 1; j=0; for(int i =0; i < nb ; i++) { float32_t x,y; x=a[j] - k * a[p-1-j]; y=a[p-1-j] - k * a[j]; a[j] = x; a[p-1-j] = y; j++; } nb = p & 1; if (nb) { a[j]=a[j]- k * a[p-1-j]; } a[p] = k; e = e * (1.0f - k*k); } *err = e; } #endif /* defined(ARM_MATH_MVEF) && !defined(ARM_MATH_AUTOVECTORIZE) */ /** @} end of LD group */
20484.c
#include <math.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <complex.h> #ifdef complex #undef complex #endif #ifdef I #undef I #endif #if defined(_WIN64) typedef long long BLASLONG; typedef unsigned long long BLASULONG; #else typedef long BLASLONG; typedef unsigned long BLASULONG; #endif #ifdef LAPACK_ILP64 typedef BLASLONG blasint; #if defined(_WIN64) #define blasabs(x) llabs(x) #else #define blasabs(x) labs(x) #endif #else typedef int blasint; #define blasabs(x) abs(x) #endif typedef blasint integer; typedef unsigned int uinteger; typedef char *address; typedef short int shortint; typedef float real; typedef double doublereal; typedef struct { real r, i; } complex; typedef struct { doublereal r, i; } doublecomplex; #ifdef _MSC_VER static inline _Fcomplex Cf(complex *z) {_Fcomplex zz={z->r , z->i}; return zz;} static inline _Dcomplex Cd(doublecomplex *z) {_Dcomplex zz={z->r , z->i};return zz;} static inline _Fcomplex * _pCf(complex *z) {return (_Fcomplex*)z;} static inline _Dcomplex * _pCd(doublecomplex *z) {return (_Dcomplex*)z;} #else static inline _Complex float Cf(complex *z) {return z->r + z->i*_Complex_I;} static inline _Complex double Cd(doublecomplex *z) {return z->r + z->i*_Complex_I;} static inline _Complex float * _pCf(complex *z) {return (_Complex float*)z;} static inline _Complex double * _pCd(doublecomplex *z) {return (_Complex double*)z;} #endif #define pCf(z) (*_pCf(z)) #define pCd(z) (*_pCd(z)) typedef int logical; typedef short int shortlogical; typedef char logical1; typedef char integer1; #define TRUE_ (1) #define FALSE_ (0) /* Extern is for use with -E */ #ifndef Extern #define Extern extern #endif /* I/O stuff */ typedef int flag; typedef int ftnlen; typedef int ftnint; /*external read, write*/ typedef struct { flag cierr; ftnint ciunit; flag ciend; char *cifmt; ftnint cirec; } cilist; /*internal read, write*/ typedef struct { flag icierr; char *iciunit; flag iciend; char *icifmt; ftnint icirlen; ftnint icirnum; } icilist; /*open*/ typedef struct { flag oerr; ftnint ounit; char *ofnm; ftnlen ofnmlen; char *osta; char *oacc; char *ofm; ftnint orl; char *oblnk; } olist; /*close*/ typedef struct { flag cerr; ftnint cunit; char *csta; } cllist; /*rewind, backspace, endfile*/ typedef struct { flag aerr; ftnint aunit; } alist; /* inquire */ typedef struct { flag inerr; ftnint inunit; char *infile; ftnlen infilen; ftnint *inex; /*parameters in standard's order*/ ftnint *inopen; ftnint *innum; ftnint *innamed; char *inname; ftnlen innamlen; char *inacc; ftnlen inacclen; char *inseq; ftnlen inseqlen; char *indir; ftnlen indirlen; char *infmt; ftnlen infmtlen; char *inform; ftnint informlen; char *inunf; ftnlen inunflen; ftnint *inrecl; ftnint *innrec; char *inblank; ftnlen inblanklen; } inlist; #define VOID void union Multitype { /* for multiple entry points */ integer1 g; shortint h; integer i; /* longint j; */ real r; doublereal d; complex c; doublecomplex z; }; typedef union Multitype Multitype; struct Vardesc { /* for Namelist */ char *name; char *addr; ftnlen *dims; int type; }; typedef struct Vardesc Vardesc; struct Namelist { char *name; Vardesc **vars; int nvars; }; typedef struct Namelist Namelist; #define abs(x) ((x) >= 0 ? (x) : -(x)) #define dabs(x) (fabs(x)) #define f2cmin(a,b) ((a) <= (b) ? (a) : (b)) #define f2cmax(a,b) ((a) >= (b) ? (a) : (b)) #define dmin(a,b) (f2cmin(a,b)) #define dmax(a,b) (f2cmax(a,b)) #define bit_test(a,b) ((a) >> (b) & 1) #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b))) #define bit_set(a,b) ((a) | ((uinteger)1 << (b))) #define abort_() { sig_die("Fortran abort routine called", 1); } #define c_abs(z) (cabsf(Cf(z))) #define c_cos(R,Z) { pCf(R)=ccos(Cf(Z)); } #ifdef _MSC_VER #define c_div(c, a, b) {Cf(c)._Val[0] = (Cf(a)._Val[0]/Cf(b)._Val[0]); Cf(c)._Val[1]=(Cf(a)._Val[1]/Cf(b)._Val[1]);} #define z_div(c, a, b) {Cd(c)._Val[0] = (Cd(a)._Val[0]/Cd(b)._Val[0]); Cd(c)._Val[1]=(Cd(a)._Val[1]/df(b)._Val[1]);} #else #define c_div(c, a, b) {pCf(c) = Cf(a)/Cf(b);} #define z_div(c, a, b) {pCd(c) = Cd(a)/Cd(b);} #endif #define c_exp(R, Z) {pCf(R) = cexpf(Cf(Z));} #define c_log(R, Z) {pCf(R) = clogf(Cf(Z));} #define c_sin(R, Z) {pCf(R) = csinf(Cf(Z));} //#define c_sqrt(R, Z) {*(R) = csqrtf(Cf(Z));} #define c_sqrt(R, Z) {pCf(R) = csqrtf(Cf(Z));} #define d_abs(x) (fabs(*(x))) #define d_acos(x) (acos(*(x))) #define d_asin(x) (asin(*(x))) #define d_atan(x) (atan(*(x))) #define d_atn2(x, y) (atan2(*(x),*(y))) #define d_cnjg(R, Z) { pCd(R) = conj(Cd(Z)); } #define r_cnjg(R, Z) { pCf(R) = conjf(Cf(Z)); } #define d_cos(x) (cos(*(x))) #define d_cosh(x) (cosh(*(x))) #define d_dim(__a, __b) ( *(__a) > *(__b) ? *(__a) - *(__b) : 0.0 ) #define d_exp(x) (exp(*(x))) #define d_imag(z) (cimag(Cd(z))) #define r_imag(z) (cimagf(Cf(z))) #define d_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x))) #define r_int(__x) (*(__x)>0 ? floor(*(__x)) : -floor(- *(__x))) #define d_lg10(x) ( 0.43429448190325182765 * log(*(x)) ) #define r_lg10(x) ( 0.43429448190325182765 * log(*(x)) ) #define d_log(x) (log(*(x))) #define d_mod(x, y) (fmod(*(x), *(y))) #define u_nint(__x) ((__x)>=0 ? floor((__x) + .5) : -floor(.5 - (__x))) #define d_nint(x) u_nint(*(x)) #define u_sign(__a,__b) ((__b) >= 0 ? ((__a) >= 0 ? (__a) : -(__a)) : -((__a) >= 0 ? (__a) : -(__a))) #define d_sign(a,b) u_sign(*(a),*(b)) #define r_sign(a,b) u_sign(*(a),*(b)) #define d_sin(x) (sin(*(x))) #define d_sinh(x) (sinh(*(x))) #define d_sqrt(x) (sqrt(*(x))) #define d_tan(x) (tan(*(x))) #define d_tanh(x) (tanh(*(x))) #define i_abs(x) abs(*(x)) #define i_dnnt(x) ((integer)u_nint(*(x))) #define i_len(s, n) (n) #define i_nint(x) ((integer)u_nint(*(x))) #define i_sign(a,b) ((integer)u_sign((integer)*(a),(integer)*(b))) #define pow_dd(ap, bp) ( pow(*(ap), *(bp))) #define pow_si(B,E) spow_ui(*(B),*(E)) #define pow_ri(B,E) spow_ui(*(B),*(E)) #define pow_di(B,E) dpow_ui(*(B),*(E)) #define pow_zi(p, a, b) {pCd(p) = zpow_ui(Cd(a), *(b));} #define pow_ci(p, a, b) {pCf(p) = cpow_ui(Cf(a), *(b));} #define pow_zz(R,A,B) {pCd(R) = cpow(Cd(A),*(B));} #define s_cat(lpp, rpp, rnp, np, llp) { ftnlen i, nc, ll; char *f__rp, *lp; ll = (llp); lp = (lpp); for(i=0; i < (int)*(np); ++i) { nc = ll; if((rnp)[i] < nc) nc = (rnp)[i]; ll -= nc; f__rp = (rpp)[i]; while(--nc >= 0) *lp++ = *(f__rp)++; } while(--ll >= 0) *lp++ = ' '; } #define s_cmp(a,b,c,d) ((integer)strncmp((a),(b),f2cmin((c),(d)))) #define s_copy(A,B,C,D) { int __i,__m; for (__i=0, __m=f2cmin((C),(D)); __i<__m && (B)[__i] != 0; ++__i) (A)[__i] = (B)[__i]; } #define sig_die(s, kill) { exit(1); } #define s_stop(s, n) {exit(0);} static char junk[] = "\n@(#)LIBF77 VERSION 19990503\n"; #define z_abs(z) (cabs(Cd(z))) #define z_exp(R, Z) {pCd(R) = cexp(Cd(Z));} #define z_sqrt(R, Z) {pCd(R) = csqrt(Cd(Z));} #define myexit_() break; #define mycycle() continue; #define myceiling(w) {ceil(w)} #define myhuge(w) {HUGE_VAL} //#define mymaxloc_(w,s,e,n) {if (sizeof(*(w)) == sizeof(double)) dmaxloc_((w),*(s),*(e),n); else dmaxloc_((w),*(s),*(e),n);} #define mymaxloc(w,s,e,n) {dmaxloc_(w,*(s),*(e),n)} /* procedure parameter types for -A and -C++ */ #define F2C_proc_par_types 1 #ifdef __cplusplus typedef logical (*L_fp)(...); #else typedef logical (*L_fp)(); #endif static float spow_ui(float x, integer n) { float pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static double dpow_ui(double x, integer n) { double pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } #ifdef _MSC_VER static _Fcomplex cpow_ui(complex x, integer n) { complex pow={1.0,0.0}; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x.r = 1/x.r, x.i=1/x.i; for(u = n; ; ) { if(u & 01) pow.r *= x.r, pow.i *= x.i; if(u >>= 1) x.r *= x.r, x.i *= x.i; else break; } } _Fcomplex p={pow.r, pow.i}; return p; } #else static _Complex float cpow_ui(_Complex float x, integer n) { _Complex float pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } #endif #ifdef _MSC_VER static _Dcomplex zpow_ui(_Dcomplex x, integer n) { _Dcomplex pow={1.0,0.0}; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x._Val[0] = 1/x._Val[0], x._Val[1] =1/x._Val[1]; for(u = n; ; ) { if(u & 01) pow._Val[0] *= x._Val[0], pow._Val[1] *= x._Val[1]; if(u >>= 1) x._Val[0] *= x._Val[0], x._Val[1] *= x._Val[1]; else break; } } _Dcomplex p = {pow._Val[0], pow._Val[1]}; return p; } #else static _Complex double zpow_ui(_Complex double x, integer n) { _Complex double pow=1.0; unsigned long int u; if(n != 0) { if(n < 0) n = -n, x = 1/x; for(u = n; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } #endif static integer pow_ii(integer x, integer n) { integer pow; unsigned long int u; if (n <= 0) { if (n == 0 || x == 1) pow = 1; else if (x != -1) pow = x == 0 ? 1/x : 0; else n = -n; } if ((n > 0) || !(n == 0 || x == 1 || x != -1)) { u = n; for(pow = 1; ; ) { if(u & 01) pow *= x; if(u >>= 1) x *= x; else break; } } return pow; } static integer dmaxloc_(double *w, integer s, integer e, integer *n) { double m; integer i, mi; for(m=w[s-1], mi=s, i=s+1; i<=e; i++) if (w[i-1]>m) mi=i ,m=w[i-1]; return mi-s+1; } static integer smaxloc_(float *w, integer s, integer e, integer *n) { float m; integer i, mi; for(m=w[s-1], mi=s, i=s+1; i<=e; i++) if (w[i-1]>m) mi=i ,m=w[i-1]; return mi-s+1; } static inline void cdotc_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Fcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conjf(Cf(&x[i]))._Val[0] * Cf(&y[i])._Val[0]; zdotc._Val[1] += conjf(Cf(&x[i]))._Val[1] * Cf(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conjf(Cf(&x[i*incx]))._Val[0] * Cf(&y[i*incy])._Val[0]; zdotc._Val[1] += conjf(Cf(&x[i*incx]))._Val[1] * Cf(&y[i*incy])._Val[1]; } } pCf(z) = zdotc; } #else _Complex float zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conjf(Cf(&x[i])) * Cf(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conjf(Cf(&x[i*incx])) * Cf(&y[i*incy]); } } pCf(z) = zdotc; } #endif static inline void zdotc_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Dcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conj(Cd(&x[i]))._Val[0] * Cd(&y[i])._Val[0]; zdotc._Val[1] += conj(Cd(&x[i]))._Val[1] * Cd(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += conj(Cd(&x[i*incx]))._Val[0] * Cd(&y[i*incy])._Val[0]; zdotc._Val[1] += conj(Cd(&x[i*incx]))._Val[1] * Cd(&y[i*incy])._Val[1]; } } pCd(z) = zdotc; } #else _Complex double zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conj(Cd(&x[i])) * Cd(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += conj(Cd(&x[i*incx])) * Cd(&y[i*incy]); } } pCd(z) = zdotc; } #endif static inline void cdotu_(complex *z, integer *n_, complex *x, integer *incx_, complex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Fcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cf(&x[i])._Val[0] * Cf(&y[i])._Val[0]; zdotc._Val[1] += Cf(&x[i])._Val[1] * Cf(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cf(&x[i*incx])._Val[0] * Cf(&y[i*incy])._Val[0]; zdotc._Val[1] += Cf(&x[i*incx])._Val[1] * Cf(&y[i*incy])._Val[1]; } } pCf(z) = zdotc; } #else _Complex float zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cf(&x[i]) * Cf(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cf(&x[i*incx]) * Cf(&y[i*incy]); } } pCf(z) = zdotc; } #endif static inline void zdotu_(doublecomplex *z, integer *n_, doublecomplex *x, integer *incx_, doublecomplex *y, integer *incy_) { integer n = *n_, incx = *incx_, incy = *incy_, i; #ifdef _MSC_VER _Dcomplex zdotc = {0.0, 0.0}; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cd(&x[i])._Val[0] * Cd(&y[i])._Val[0]; zdotc._Val[1] += Cd(&x[i])._Val[1] * Cd(&y[i])._Val[1]; } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc._Val[0] += Cd(&x[i*incx])._Val[0] * Cd(&y[i*incy])._Val[0]; zdotc._Val[1] += Cd(&x[i*incx])._Val[1] * Cd(&y[i*incy])._Val[1]; } } pCd(z) = zdotc; } #else _Complex double zdotc = 0.0; if (incx == 1 && incy == 1) { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cd(&x[i]) * Cd(&y[i]); } } else { for (i=0;i<n;i++) { /* zdotc = zdotc + dconjg(x(i))* y(i) */ zdotc += Cd(&x[i*incx]) * Cd(&y[i*incy]); } } pCd(z) = zdotc; } #endif /* -- translated by f2c (version 20000121). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ /* > \brief \b IPARMQ */ /* =========== DOCUMENTATION =========== */ /* Online html documentation available at */ /* http://www.netlib.org/lapack/explore-html/ */ /* > \htmlonly */ /* > Download IPARMQ + dependencies */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/iparmq. f"> */ /* > [TGZ]</a> */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/iparmq. f"> */ /* > [ZIP]</a> */ /* > <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/iparmq. f"> */ /* > [TXT]</a> */ /* > \endhtmlonly */ /* Definition: */ /* =========== */ /* INTEGER FUNCTION IPARMQ( ISPEC, NAME, OPTS, N, ILO, IHI, LWORK ) */ /* INTEGER IHI, ILO, ISPEC, LWORK, N */ /* CHARACTER NAME*( * ), OPTS*( * ) */ /* > \par Purpose: */ /* ============= */ /* > */ /* > \verbatim */ /* > */ /* > This program sets problem and machine dependent parameters */ /* > useful for xHSEQR and related subroutines for eigenvalue */ /* > problems. It is called whenever */ /* > IPARMQ is called with 12 <= ISPEC <= 16 */ /* > \endverbatim */ /* Arguments: */ /* ========== */ /* > \param[in] ISPEC */ /* > \verbatim */ /* > ISPEC is INTEGER */ /* > ISPEC specifies which tunable parameter IPARMQ should */ /* > return. */ /* > */ /* > ISPEC=12: (INMIN) Matrices of order nmin or less */ /* > are sent directly to xLAHQR, the implicit */ /* > double shift QR algorithm. NMIN must be */ /* > at least 11. */ /* > */ /* > ISPEC=13: (INWIN) Size of the deflation window. */ /* > This is best set greater than or equal to */ /* > the number of simultaneous shifts NS. */ /* > Larger matrices benefit from larger deflation */ /* > windows. */ /* > */ /* > ISPEC=14: (INIBL) Determines when to stop nibbling and */ /* > invest in an (expensive) multi-shift QR sweep. */ /* > If the aggressive early deflation subroutine */ /* > finds LD converged eigenvalues from an order */ /* > NW deflation window and LD > (NW*NIBBLE)/100, */ /* > then the next QR sweep is skipped and early */ /* > deflation is applied immediately to the */ /* > remaining active diagonal block. Setting */ /* > IPARMQ(ISPEC=14) = 0 causes TTQRE to skip a */ /* > multi-shift QR sweep whenever early deflation */ /* > finds a converged eigenvalue. Setting */ /* > IPARMQ(ISPEC=14) greater than or equal to 100 */ /* > prevents TTQRE from skipping a multi-shift */ /* > QR sweep. */ /* > */ /* > ISPEC=15: (NSHFTS) The number of simultaneous shifts in */ /* > a multi-shift QR iteration. */ /* > */ /* > ISPEC=16: (IACC22) IPARMQ is set to 0, 1 or 2 with the */ /* > following meanings. */ /* > 0: During the multi-shift QR/QZ sweep, */ /* > blocked eigenvalue reordering, blocked */ /* > Hessenberg-triangular reduction, */ /* > reflections and/or rotations are not */ /* > accumulated when updating the */ /* > far-from-diagonal matrix entries. */ /* > 1: During the multi-shift QR/QZ sweep, */ /* > blocked eigenvalue reordering, blocked */ /* > Hessenberg-triangular reduction, */ /* > reflections and/or rotations are */ /* > accumulated, and matrix-matrix */ /* > multiplication is used to update the */ /* > far-from-diagonal matrix entries. */ /* > 2: During the multi-shift QR/QZ sweep, */ /* > blocked eigenvalue reordering, blocked */ /* > Hessenberg-triangular reduction, */ /* > reflections and/or rotations are */ /* > accumulated, and 2-by-2 block structure */ /* > is exploited during matrix-matrix */ /* > multiplies. */ /* > (If xTRMM is slower than xGEMM, then */ /* > IPARMQ(ISPEC=16)=1 may be more efficient than */ /* > IPARMQ(ISPEC=16)=2 despite the greater level of */ /* > arithmetic work implied by the latter choice.) */ /* > \endverbatim */ /* > */ /* > \param[in] NAME */ /* > \verbatim */ /* > NAME is CHARACTER string */ /* > Name of the calling subroutine */ /* > \endverbatim */ /* > */ /* > \param[in] OPTS */ /* > \verbatim */ /* > OPTS is CHARACTER string */ /* > This is a concatenation of the string arguments to */ /* > TTQRE. */ /* > \endverbatim */ /* > */ /* > \param[in] N */ /* > \verbatim */ /* > N is INTEGER */ /* > N is the order of the Hessenberg matrix H. */ /* > \endverbatim */ /* > */ /* > \param[in] ILO */ /* > \verbatim */ /* > ILO is INTEGER */ /* > \endverbatim */ /* > */ /* > \param[in] IHI */ /* > \verbatim */ /* > IHI is INTEGER */ /* > It is assumed that H is already upper triangular */ /* > in rows and columns 1:ILO-1 and IHI+1:N. */ /* > \endverbatim */ /* > */ /* > \param[in] LWORK */ /* > \verbatim */ /* > LWORK is INTEGER */ /* > The amount of workspace available. */ /* > \endverbatim */ /* Authors: */ /* ======== */ /* > \author Univ. of Tennessee */ /* > \author Univ. of California Berkeley */ /* > \author Univ. of Colorado Denver */ /* > \author NAG Ltd. */ /* > \date June 2017 */ /* > \ingroup OTHERauxiliary */ /* > \par Further Details: */ /* ===================== */ /* > */ /* > \verbatim */ /* > */ /* > Little is known about how best to choose these parameters. */ /* > It is possible to use different values of the parameters */ /* > for each of CHSEQR, DHSEQR, SHSEQR and ZHSEQR. */ /* > */ /* > It is probably best to choose different parameters for */ /* > different matrices and different parameters at different */ /* > times during the iteration, but this has not been */ /* > implemented --- yet. */ /* > */ /* > */ /* > The best choices of most of the parameters depend */ /* > in an ill-understood way on the relative execution */ /* > rate of xLAQR3 and xLAQR5 and on the nature of each */ /* > particular eigenvalue problem. Experiment may be the */ /* > only practical way to determine which choices are most */ /* > effective. */ /* > */ /* > Following is a list of default values supplied by IPARMQ. */ /* > These defaults may be adjusted in order to attain better */ /* > performance in any particular computational environment. */ /* > */ /* > IPARMQ(ISPEC=12) The xLAHQR vs xLAQR0 crossover point. */ /* > Default: 75. (Must be at least 11.) */ /* > */ /* > IPARMQ(ISPEC=13) Recommended deflation window size. */ /* > This depends on ILO, IHI and NS, the */ /* > number of simultaneous shifts returned */ /* > by IPARMQ(ISPEC=15). The default for */ /* > (IHI-ILO+1) <= 500 is NS. The default */ /* > for (IHI-ILO+1) > 500 is 3*NS/2. */ /* > */ /* > IPARMQ(ISPEC=14) Nibble crossover point. Default: 14. */ /* > */ /* > IPARMQ(ISPEC=15) Number of simultaneous shifts, NS. */ /* > a multi-shift QR iteration. */ /* > */ /* > If IHI-ILO+1 is ... */ /* > */ /* > greater than ...but less ... the */ /* > or equal to ... than default is */ /* > */ /* > 0 30 NS = 2+ */ /* > 30 60 NS = 4+ */ /* > 60 150 NS = 10 */ /* > 150 590 NS = ** */ /* > 590 3000 NS = 64 */ /* > 3000 6000 NS = 128 */ /* > 6000 infinity NS = 256 */ /* > */ /* > (+) By default matrices of this order are */ /* > passed to the implicit double shift routine */ /* > xLAHQR. See IPARMQ(ISPEC=12) above. These */ /* > values of NS are used only in case of a rare */ /* > xLAHQR failure. */ /* > */ /* > (**) The asterisks (**) indicate an ad-hoc */ /* > function increasing from 10 to 64. */ /* > */ /* > IPARMQ(ISPEC=16) Select structured matrix multiply. */ /* > (See ISPEC=16 above for details.) */ /* > Default: 3. */ /* > \endverbatim */ /* > */ /* ===================================================================== */ integer iparmq_(integer *ispec, char *name__, char *opts, integer *n, integer *ilo, integer *ihi, integer *lwork) { /* System generated locals */ integer ret_val, i__1, i__2; real r__1; /* Local variables */ integer i__, ic, nh, ns, iz; char subnam[6]; integer name_len; /* -- LAPACK auxiliary routine (version 3.7.1) -- */ /* -- LAPACK is a software package provided by Univ. of Tennessee, -- */ /* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */ /* June 2017 */ /* ================================================================ */ if (*ispec == 15 || *ispec == 13 || *ispec == 16) { /* ==== Set the number simultaneous shifts ==== */ nh = *ihi - *ilo + 1; ns = 2; if (nh >= 30) { ns = 4; } if (nh >= 60) { ns = 10; } if (nh >= 150) { /* Computing MAX */ r__1 = log((real) nh) / log(2.f); i__1 = 10, i__2 = nh / i_nint(&r__1); ns = f2cmax(i__1,i__2); } if (nh >= 590) { ns = 64; } if (nh >= 3000) { ns = 128; } if (nh >= 6000) { ns = 256; } /* Computing MAX */ i__1 = 2, i__2 = ns - ns % 2; ns = f2cmax(i__1,i__2); } if (*ispec == 12) { /* ===== Matrices of order smaller than NMIN get sent */ /* . to xLAHQR, the classic double shift algorithm. */ /* . This must be at least 11. ==== */ ret_val = 75; } else if (*ispec == 14) { /* ==== INIBL: skip a multi-shift qr iteration and */ /* . whenever aggressive early deflation finds */ /* . at least (NIBBLE*(window size)/100) deflations. ==== */ ret_val = 14; } else if (*ispec == 15) { /* ==== NSHFTS: The number of simultaneous shifts ===== */ ret_val = ns; } else if (*ispec == 13) { /* ==== NW: deflation window size. ==== */ if (nh <= 500) { ret_val = ns; } else { ret_val = ns * 3 / 2; } } else if (*ispec == 16) { /* ==== IACC22: Whether to accumulate reflections */ /* . before updating the far-from-diagonal elements */ /* . and whether to use 2-by-2 block structure while */ /* . doing it. A small amount of work could be saved */ /* . by making this choice dependent also upon the */ /* . NH=IHI-ILO+1. */ /* Convert NAME to upper case if the first character is lower case. */ ret_val = 0; s_copy(subnam, name__, (ftnlen)6, name_len); ic = *(unsigned char *)subnam; iz = 'Z'; if (iz == 90 || iz == 122) { /* ASCII character set */ if (ic >= 97 && ic <= 122) { *(unsigned char *)subnam = (char) (ic - 32); for (i__ = 2; i__ <= 6; ++i__) { ic = *(unsigned char *)&subnam[i__ - 1]; if (ic >= 97 && ic <= 122) { *(unsigned char *)&subnam[i__ - 1] = (char) (ic - 32); } } } } else if (iz == 233 || iz == 169) { /* EBCDIC character set */ if (ic >= 129 && ic <= 137 || ic >= 145 && ic <= 153 || ic >= 162 && ic <= 169) { *(unsigned char *)subnam = (char) (ic + 64); for (i__ = 2; i__ <= 6; ++i__) { ic = *(unsigned char *)&subnam[i__ - 1]; if (ic >= 129 && ic <= 137 || ic >= 145 && ic <= 153 || ic >= 162 && ic <= 169) { *(unsigned char *)&subnam[i__ - 1] = (char) (ic + 64); } } } } else if (iz == 218 || iz == 250) { /* Prime machines: ASCII+128 */ if (ic >= 225 && ic <= 250) { *(unsigned char *)subnam = (char) (ic - 32); for (i__ = 2; i__ <= 6; ++i__) { ic = *(unsigned char *)&subnam[i__ - 1]; if (ic >= 225 && ic <= 250) { *(unsigned char *)&subnam[i__ - 1] = (char) (ic - 32); } } } } if (s_cmp(subnam + 1, "GGHRD", (ftnlen)5, (ftnlen)5) == 0 || s_cmp( subnam + 1, "GGHD3", (ftnlen)5, (ftnlen)5) == 0) { ret_val = 1; if (nh >= 14) { ret_val = 2; } } else if (s_cmp(subnam + 3, "EXC", (ftnlen)3, (ftnlen)3) == 0) { if (nh >= 14) { ret_val = 1; } if (nh >= 14) { ret_val = 2; } } else if (s_cmp(subnam + 1, "HSEQR", (ftnlen)5, (ftnlen)5) == 0 || s_cmp(subnam + 1, "LAQR", (ftnlen)4, (ftnlen)4) == 0) { if (ns >= 14) { ret_val = 1; } if (ns >= 14) { ret_val = 2; } } } else { /* ===== invalid value of ispec ===== */ ret_val = -1; } /* ==== End of IPARMQ ==== */ return ret_val; } /* iparmq_ */
178812.c
struct Foo { int a; int b; }; typedef void (*ecall_t)(struct Foo *); extern void *ecall(void *); void use() { struct Foo f; ((ecall_t)ecall)(&f); }
639195.c
/* * Copyright (c) 2019, GreenWaves Technologies, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and the following disclaimer. * * o Redistributions in binary form must reproduce the above copyright notice, this * list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * o Neither the name of GreenWaves Technologies, Inc. nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "pmsis.h" /******************************************************************************* * Definitions ******************************************************************************/ /******************************************************************************* * Driver data ******************************************************************************/ static pi_task_t *__cb_task_array[ARCHI_NB_PWM] = {NULL}; /******************************************************************************* * Internal functions ******************************************************************************/ static void __pi_pwm_timer_conf_set(uint8_t pwm_id, struct pi_pwm_conf *conf) { uint32_t config = (uint32_t) conf->timer_conf; config |= (conf->input_src << PI_PWM_CONFIG_INSEL_OFFSET); config |= (conf->prescaler << PI_PWM_CONFIG_PRESCALER_OFFSET); hal_pwm_config_reg_set(pwm_id, config); } static void __pi_pwm_threshold_set(uint8_t pwm_id, uint16_t counter_start, uint16_t counter_end) { hal_pwm_threshold_set(pwm_id, counter_start, counter_end); } static void __pi_pwm_channel_config_set(uint8_t pwm_id, pi_pwm_channel_e channel, uint16_t threshold, pi_pwm_ch_config_e config) { hal_pwm_channel_th_mode_set(pwm_id, channel, threshold, config); } static void __pi_pwm_output_event_set(pi_pwm_evt_sel_e evt_sel, pi_pwm_output_evt_e evt_output) { hal_pwm_ctrl_evt_cfg_set(evt_sel, evt_output); } static void __pi_pwm_output_event_clear(pi_pwm_evt_sel_e evt_sel) { hal_pwm_ctrl_evt_cfg_disable(evt_sel); } static void __pi_pwm_user_cb_attach(uint8_t pwm_id, pi_task_t *cb) { __cb_task_array[pwm_id] = cb; } static void __pi_pwm_command_set(uint8_t pwm_id, pi_pwm_cmd_e cmd) { hal_pwm_cmd_set(pwm_id, cmd); } /******************************************************************************* * API implementation ******************************************************************************/ void pwm_handler(void *arg) { uint32_t event = (uint32_t) arg; uint32_t periph_id = event - SOC_EVENT_PWM(0); if (__cb_task_array[periph_id] != NULL) { pmsis_event_push(pmsis_event_get_default_scheduler(), __cb_task_array[periph_id]); } } void __pi_pwm_conf_init(struct pi_pwm_conf *conf) { conf->device = PI_DEVICE_PWM_TYPE; conf->pwm_id = 0; conf->ch_id = PI_PWM_CHANNEL0; conf->input_src = 0; conf->timer_conf = PI_PWM_EVT_EACH_CLK_CYCLE | PI_PWM_CLKSEL_REFCLK_32K | PI_PWM_UPDOWNSEL_RESET; conf->prescaler = 0; } int32_t __pi_pwm_open(uint8_t pwm_id, struct pi_pwm_conf *conf) { /* Set handler. */ pi_fc_event_handler_set(SOC_EVENT_PWM(pwm_id), pwm_handler); /* Enable SOC event propagation to FC. */ hal_soc_eu_set_fc_mask(SOC_EVENT_PWM(pwm_id)); /* Disable PWM CG. */ hal_pwm_ctrl_cg_disable(pwm_id); /* Setup PWM timer. */ __pi_pwm_timer_conf_set(pwm_id, conf); return 0; } void __pi_pwm_close(uint8_t pwm_id) { /* Clear handler. */ pi_fc_event_handler_clear(SOC_EVENT_PWM(pwm_id)); /* Disable SOC event propagation to FC. */ hal_soc_eu_clear_fc_mask(SOC_EVENT_PWM(pwm_id)); /* Enable PWM CG. */ hal_pwm_ctrl_cg_enable(pwm_id); /* Clear any attached callback. */ __cb_task_array[pwm_id] = NULL; } int32_t __pi_pwm_ioctl(uint8_t pwm_id, pi_pwm_ioctl_cmd_e cmd, void *arg) { pi_pwm_cmd_e timer_cmd = (pi_pwm_cmd_e) arg; struct pi_pwm_conf *conf = (struct pi_pwm_conf *) arg; uint32_t threshold = (uint32_t) arg; struct pi_pwm_ioctl_ch_config *ch_conf = (struct pi_pwm_ioctl_ch_config *) arg; struct pi_pwm_ioctl_evt *evt = (struct pi_pwm_ioctl_evt *) arg; pi_task_t *cb_task = (pi_task_t *) arg; switch (cmd) { case PI_PWM_TIMER_COMMAND : __pi_pwm_command_set(pwm_id, timer_cmd); return 0; case PI_PWM_TIMER_CONFIG : __pi_pwm_timer_conf_set(pwm_id, conf); return 0; case PI_PWM_TIMER_THRESH : __pi_pwm_threshold_set(pwm_id, threshold & 0xFFFF, threshold >> 16); return 0; case PI_PWM_CH_CONFIG : __pi_pwm_channel_config_set(pwm_id, ch_conf->channel, ch_conf->ch_threshold, ch_conf->config); return 0; case PI_PWM_EVENT_SET : __pi_pwm_output_event_set(evt->evt_sel, evt->evt_output); return 0; case PI_PWM_EVENT_CLEAR : __pi_pwm_output_event_clear(evt->evt_sel); return 0; case PI_PWM_ATTACH_CB : __pi_pwm_user_cb_attach(pwm_id, cb_task); default : return -1; } } uint32_t __pi_pwm_counter_get(uint8_t pwm_id) { return hal_pwm_counter_get(pwm_id); }
397202.c
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 2 for more details (a copy is included * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License * version 2 along with this program; If not, see * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. * * GPL HEADER END */ /* * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * * Copyright (c) 2011, 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ * Lustre is a trademark of Sun Microsystems, Inc. */ #define DEBUG_SUBSYSTEM S_LNET #include <linux/module.h> #include <linux/kernel.h> #include <linux/fs_struct.h> #include <linux/sched.h> #include "../../../include/linux/libcfs/libcfs.h" #if defined(CONFIG_KGDB) #include <linux/kgdb.h> #endif sigset_t cfs_block_allsigs(void) { unsigned long flags; sigset_t old; spin_lock_irqsave(&current->sighand->siglock, flags); old = current->blocked; sigfillset(&current->blocked); recalc_sigpending(); spin_unlock_irqrestore(&current->sighand->siglock, flags); return old; } EXPORT_SYMBOL(cfs_block_allsigs); sigset_t cfs_block_sigs(unsigned long sigs) { unsigned long flags; sigset_t old; spin_lock_irqsave(&current->sighand->siglock, flags); old = current->blocked; sigaddsetmask(&current->blocked, sigs); recalc_sigpending(); spin_unlock_irqrestore(&current->sighand->siglock, flags); return old; } EXPORT_SYMBOL(cfs_block_sigs); /* Block all signals except for the @sigs */ sigset_t cfs_block_sigsinv(unsigned long sigs) { unsigned long flags; sigset_t old; spin_lock_irqsave(&current->sighand->siglock, flags); old = current->blocked; sigaddsetmask(&current->blocked, ~sigs); recalc_sigpending(); spin_unlock_irqrestore(&current->sighand->siglock, flags); return old; } EXPORT_SYMBOL(cfs_block_sigsinv); void cfs_restore_sigs(sigset_t old) { unsigned long flags; spin_lock_irqsave(&current->sighand->siglock, flags); current->blocked = old; recalc_sigpending(); spin_unlock_irqrestore(&current->sighand->siglock, flags); } EXPORT_SYMBOL(cfs_restore_sigs); void cfs_clear_sigpending(void) { unsigned long flags; spin_lock_irqsave(&current->sighand->siglock, flags); clear_tsk_thread_flag(current, TIF_SIGPENDING); spin_unlock_irqrestore(&current->sighand->siglock, flags); } EXPORT_SYMBOL(cfs_clear_sigpending);
498509.c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_44.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml Template File: sources-sink-44.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Point data to a buffer that does not have space for a NULL terminator * GoodSource: Point data to a buffer that includes space for a NULL terminator * Sinks: cpy * BadSink : Copy string to data using wcscpy() * Flow Variant: 44 Data/control flow: data passed as an argument from one function to a function in the same source file called via a function pointer * * */ #include "std_testcase.h" #ifndef _WIN32 #include <wchar.h> #endif /* MAINTENANCE NOTE: The length of this string should equal the 10 */ #define SRC_STRING L"AAAAAAAAAA" #ifndef OMITBAD static void badSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } } void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_44_bad() { wchar_t * data; /* define a function pointer */ void (*funcPtr) (wchar_t *) = badSink; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FLAW: Set a pointer to a buffer that does not leave room for a NULL terminator when performing * string copies in the sinks */ data = dataBadBuffer; data[0] = L'\0'; /* null terminate */ /* use the function pointer */ funcPtr(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B() uses the GoodSource with the BadSink */ static void goodG2BSink(wchar_t * data) { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); } } static void goodG2B() { wchar_t * data; void (*funcPtr) (wchar_t *) = goodG2BSink; wchar_t * dataBadBuffer = (wchar_t *)ALLOCA((10)*sizeof(wchar_t)); wchar_t * dataGoodBuffer = (wchar_t *)ALLOCA((10+1)*sizeof(wchar_t)); /* FIX: Set a pointer to a buffer that leaves room for a NULL terminator when performing * string copies in the sinks */ data = dataGoodBuffer; data[0] = L'\0'; /* null terminate */ funcPtr(data); } void CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_44_good() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_44_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_alloca_cpy_44_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
549630.c
void unpackTile(int tile, int tileSize, DNA *unpacked) /* Unpack 2 base-per-nucleotide tile into unpacked. */ { int i; int t; for (i = tileSize-1; i>= 0; i -= 1) { t = (tile & 0x3); tile >>= 2; unpacked[i] = valToNt[t]; } unpacked[tileSize] = 0; } int findRepeatAdjust(int tile, int tileSize) /* Adjust for tile hitting multiple spots in a pattern. */ { DNA unpacked[17]; int i; DNA b; boolean repeats = TRUE; /* Unpack tile. */ assert(tileSize < sizeof(unpacked)); unpackTile(tile, tileSize, unpacked); /* Check for whole tile being same base. */ repeats = TRUE; b = unpacked[0]; for (i=1; i<tileSize; ++i) { if (unpacked[i] != b) { repeats = FALSE; break; } } if (repeats) { return 1; } /* Check for every other tile being same. */ repeats = TRUE; for (i=2; i<tileSize; ++i) { if (unpacked[i] != unpacked[i&1]) { repeats = FALSE; break; } } if (repeats) { return 2; } /* Check for every third tile being same. */ if (tileSize >= 6) { repeats = TRUE; for (i=3; i<tileSize; ++i) { if (unpacked[i] != unpacked[i%3]) { repeats = FALSE; break; } } if (repeats) { return 3; } } return 4; } void bestMatchInSeq(struct profile *prof, DNA *seq, int seqSize, double *retScore, int *retPos) double power(double a, int b) /* Returns a raised to an integer b power. */ { double acc = 1.0; if (b < 0) { b = -b; a = 1.0/a; } while (--b >= 0) acc *= a; return acc; } double runStartTile(struct startTile *tile, struct seqList *seqList, double logFreq[4], double improbThreshold) /* Run start tile over sequence list and score it. */ { int i; DNA *tileDna = tile->seq, *seqDna, *endSeq; int tileSize = tile->size, seqSize; struct seqList *seqEl; struct dnaSeq *seq; double tileScore = 0; for (seqEl = seqList; seqEl != NULL; seqEl = seqEl->next) { seq = seqEl->seq; seqDna = seq->dna; seqSize = seq->size; endSeq = seqDna + seqSize; for (; seqDna < endSeq; seqDna++) { double oneProb = 0; for (i=0; i<tileSize; ++i) { if (tileDna[i] == seqDna[i]) { oneProb += logFreq[ntVal[tileDna[i]]]; } } if (oneProb >= improbThreshold) { tileScore += oneProb; for (i=0; i<tileSize; ++i) { if (tileDna[i] == seqDna[i]) tile->counts[i] += 1; } ++tile->hitCount; } } } return tileScore; } struct startTile *makeStartTiles(struct seqList *seqList, struct seqList *badSeq, double improbFactor) /* Make a list of good starting tiles. */ { double follow[5][5]; int i; struct startTile *tileList = NULL, *tile; struct hash *tileHash = newHash(12); struct seqList *seqEl; struct dnaSeq *seq; DNA *dna; int basesLeft; DNA *oligo; int oligoSize; double oligoProb; double runProbThreshold = -0.75*log(improbFactor); double goodScore, badScore; makeFreqTable(seqList, freq); makeFollowTable(seqList, follow); uglyf("A %f C %f G %f T %f\n", freq[A_BASE_VAL], freq[C_BASE_VAL], freq[G_BASE_VAL], freq[T_BASE_VAL]); for (seqEl = seqList; seqEl != NULL; seqEl = seqEl->next) { uglyf("Searching %s for start tiles\r", seqEl->seq->srn->name); seq = seqEl->seq; dna = seq->dna; basesLeft = seq->size; while (ffFindGoodOligo(dna, basesLeft, improbFactor, freq, &oligo, &oligoSize, &oligoProb)) { int nextOffset = oligo - dna + 1; char nbuf[maxStartTileSize+1]; assert(oligoSize < sizeof(nbuf)); memcpy(nbuf, oligo, oligoSize); nbuf[oligoSize] = 0; if (!hashLookup(tileHash, nbuf)) { hashAdd(tileHash, nbuf, NULL); AllocVar(tile); tile->seq = oligo; tile->size = oligoSize; tile->improb = oligoProb; goodScore = runStartTile(tile, seqList, logFreq, runProbThreshold); if (badSeq) badScore = runStartTile(tile, badSeq, logFreq, runProbThreshold); else badScore = 0; tile->score = goodScore - badScore; slAddHead(&tileList, tile); } dna += nextOffset; basesLeft -= nextOffset; } } freeHash(&tileHash); slSort(&tileList, cmpStartScores); { int count = 0; for (tile = tileList; tile != NULL; tile = tile->next) { if (++count < 30 || tile->next == NULL) { char buf[maxStartTileSize+1]; memcpy(buf, tile->seq, tile->size); buf[tile->size] = 0; uglyf("Tile #%d seq %s size %d hits %d score %f\n", count, buf, tile->size, tile->hitCount, tile->score); } } } return tileList; } void displayTileMatch(struct startTile *tile, struct seqList *list, double improbFactor) { struct seqList *el; struct dnaSeq *seq; DNA *dna, *endDna, *tileDna = tile->seq; int tileSize = tile->size; int i; double runProbThreshold = -0.75*log(improbFactor); double logBase[5]; double *logFreq = logBase+1; double oneProb; makeFreqTable(list, freq); logFreq[-1] = 0; for (i=0; i<4; ++i) logFreq[i] = -log(freq[i]); for (el = list; el != NULL; el = el->next) { char buf[256]; seq = el->seq; assert(seq->size < sizeof(buf)); memcpy(buf, seq->dna, seq->size+1); dna = buf; endDna = dna + seq->size - tileSize; for (;dna < endDna; ++dna) { oneProb = 0.0; for (i=0; i<tileSize; ++i) { if (tileDna[i] == dna[i]) { oneProb += logFreq[ntVal[tileDna[i]]]; } } if (oneProb >= runProbThreshold) { for (i=0; i<tileSize; ++i) { if (tileDna[i] == dna[i]) dna[i] = toupper(dna[i]); } } } printf("%s\n", buf); } } #ifdef OLD if (cgiVarExists("startTile")) { struct profile *prof; startTile = cgiString("startTile"); startPos = cgiInt("startPos"); printf("Here is the <A HREF=#converge>convergence</A> of the initial pattern %s at %d. ", startTile, startPos); printf("The <A HREF=#hits>pattern hits</A> in the DNA sequences is at the end."); htmlHorizontalLine(); printf("<TT><PRE><A NAME=converge></A>\n"); dnaFilter(startTile, startTile); prof = profileFromTile(startTile, strlen(startTile), startPos, (int)averageSeqSize(goodSeq)); printf("Converging profile:\n"); prof->score = scoreProfile(prof, goodSeq, badSeq, NULL, FALSE); printProfile(prof); prof = convergeAndPrint(prof, 25); htmlHorizontalLine(); printf("<A NAME=hits></A>\n"); showProfHits(prof, goodSeq); } else { puts("<H2 ALIGN=CENTER>Preliminary Results</H2>"); puts("The sequence you input was broken into 'tiles' of six base pairs each. " "The parts of the sequence that are underlined below show some promise of " "being part of a pattern. The tiles in this picture are constrained to be " "separated by at least one base. Clicking on a " "tile will run the Memish Locator algorithm iteratively with that tile as a " "starting point. The algorithm will display it's step-by-step convergence, " "and the positions in your input that match the pattern it finds.\n\n" "This is <I>very</I> experimental at this stage, but it's already interesting " "to play with."); printf("<TT><PRE>\n"); showTileOpts(); } #endif /* OLD */ void hyperlinkProfile(struct profile *prof) /* Start a hyperlink for profile. */ { char *consSeq = consensusSeq(prof); printf("<A HREF=../cgi-bin/ameme.exe?startTile=%s&startPos=%f&good=%s", consSeq, prof->locale.mean, goodName); if (badName) printf("&bad=%s", badName); if (nullModelCgiName) { printf("&Background=%s", nullModelCgiName); } printf(">"); } void showTileOpts() /* Display seqList with promising tiles hyperlinked to * iterative aligner. */ { struct profile *profileList, *prof; struct seqList *seqEl; struct dnaSeq *seq; double bestScore; double cutoffScore; int tileSize; int seqSize; int profCount; struct profile nomansLand; profileList = findStartProfiles(goodSeq, startScanLimit, badSeq); if (profileList == NULL) errAbort("Couldn't find any pattern, sorry\n"); slSort(&profileList, cmpProfiles); profileList = collapseStartProfiles(profileList); bestScore = profileList->score; cutoffScore = bestScore-2; if (cutoffScore < 0) cutoffScore = 0; /* Allocate the matchProf members. */ for (seqEl = goodSeq; seqEl != NULL; seqEl = seqEl->next) { seq = seqEl->seq; seqEl->matchProf = needMem(seq->size * sizeof(seqEl->matchProf[0])); } seqSize = goodSeqElSize; /* Fill in matchProf with profile associated with corresponding position in * sequence. */ for (prof = profileList; prof != NULL; prof = prof->next) { makeLocProb(prof->locale.mean, prof->locale.standardDeviation, seqSize); if (prof->score < cutoffScore) break; tileSize = prof->columnCount; for (seqEl = goodSeq; seqEl != NULL; seqEl = seqEl->next) { double score; int pos; DNA *dna; struct profile **matchers; /* Claim best match in sequence for this profile (if it's * a decent match. */ seq = seqEl->seq; dna = seq->dna; bestMatchInSeq(prof, dna, seqEl->softMask, seqSize, locProb, &score, &pos); if (score > 0 && score > prof->score-1) { int i; int startIx, endIx; boolean clippedStart = FALSE, clippedEnd = FALSE; boolean allClear = TRUE; startIx = pos-1; if (startIx < 0) { startIx = 0; clippedStart = TRUE; } endIx = pos + tileSize; if (endIx >= seqSize) { endIx = seqSize-1; clippedEnd = TRUE; } matchers = seqEl->matchProf; for (i=startIx; i<=endIx; ++i) { if (matchers[i] != NULL) allClear = FALSE; } if (allClear) { for (i=pos; i<pos+tileSize; ++i) matchers[i] = prof; if (!clippedStart) matchers[clippedStart] = &nomansLand; if (!clippedEnd) matchers[clippedEnd] = &nomansLand; } } } } htmlHorizontalLine(); /* Do the nasty output function. */ for (seqEl = goodSeq; seqEl != NULL; seqEl = seqEl->next) { struct profile **matchers = seqEl->matchProf; struct dnaSeq *seq = seqEl->seq; DNA *dna = seq->dna; int dnaSize = seq->size; struct profile *prof, *lastProf = NULL; int i; for (i=0; i<dnaSize; ++i) { prof = matchers[i]; if (prof != lastProf) { if (lastProf != NULL && lastProf != &nomansLand) printf("</A>"); if (prof != NULL && prof != &nomansLand) hyperlinkProfile(prof); } printf("%c", dna[i]); lastProf = prof; } if (prof != NULL && prof != &nomansLand) printf("</A>"); printf("\n"); } htmlHorizontalLine(); puts("</PRE></TT>"); puts("Here are the promising tiles ranked by score. As you can see I need to still " "figure out how to merge nearly identical and overlapping tiles.<BR>"); puts("<PRE><TT>"); profCount = 0; for (prof = profileList; prof != NULL; prof = prof->next) { char *consSeq; if (++profCount >= 100) break; hyperlinkProfile(prof); consSeq = consensusSeq(prof); printf("%s at %2.0f</A> score %f ", consSeq, prof->locale.mean, prof->score); if (profCount % 3 == 0) printf("\n"); } htmlHorizontalLine(); }
19106.c
/** @file Implementation of the command set of USB Mass Storage Specification for Bootability, Revision 1.0. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ #include "UsbMass.h" /** Execute REQUEST SENSE Command to retrieve sense data from device. @param UsbMass The device whose sense data is requested. @retval EFI_SUCCESS The command is executed successfully. @retval EFI_DEVICE_ERROR Failed to request sense. @retval EFI_NO_RESPONSE The device media doesn't response this request. @retval EFI_INVALID_PARAMETER The command has some invalid parameters. @retval EFI_WRITE_PROTECTED The device is write protected. @retval EFI_MEDIA_CHANGED The device media has been changed. **/ EFI_STATUS UsbBootRequestSense ( IN USB_MASS_DEVICE *UsbMass ) { USB_BOOT_REQUEST_SENSE_CMD SenseCmd; USB_BOOT_REQUEST_SENSE_DATA SenseData; EFI_BLOCK_IO_MEDIA *Media; USB_MASS_TRANSPORT *Transport; EFI_STATUS Status; UINT32 CmdResult; Transport = UsbMass->Transport; // // Request the sense data from the device // ZeroMem (&SenseCmd, sizeof (USB_BOOT_REQUEST_SENSE_CMD)); ZeroMem (&SenseData, sizeof (USB_BOOT_REQUEST_SENSE_DATA)); SenseCmd.OpCode = USB_BOOT_REQUEST_SENSE_OPCODE; SenseCmd.Lun = (UINT8) (USB_BOOT_LUN (UsbMass->Lun)); SenseCmd.AllocLen = (UINT8) sizeof (USB_BOOT_REQUEST_SENSE_DATA); Status = Transport->ExecCommand ( UsbMass->Context, &SenseCmd, sizeof (USB_BOOT_REQUEST_SENSE_CMD), EfiUsbDataIn, &SenseData, sizeof (USB_BOOT_REQUEST_SENSE_DATA), UsbMass->Lun, USB_BOOT_GENERAL_CMD_TIMEOUT, &CmdResult ); if (EFI_ERROR (Status) || CmdResult != USB_MASS_CMD_SUCCESS) { DEBUG ((EFI_D_ERROR, "UsbBootRequestSense: (%r) CmdResult=0x%x\n", Status, CmdResult)); if (!EFI_ERROR (Status)) { Status = EFI_DEVICE_ERROR; } return Status; } // // If sense data is retrieved successfully, interpret the sense data // and update the media status if necessary. // Media = &UsbMass->BlockIoMedia; switch (USB_BOOT_SENSE_KEY (SenseData.SenseKey)) { case USB_BOOT_SENSE_NO_SENSE: if (SenseData.Asc == USB_BOOT_ASC_NO_ADDITIONAL_SENSE_INFORMATION) { // // It is not an error if a device does not have additional sense information // Status = EFI_SUCCESS; } else { Status = EFI_NO_RESPONSE; } break; case USB_BOOT_SENSE_RECOVERED: // // Suppose hardware can handle this case, and recover later by itself // Status = EFI_NOT_READY; break; case USB_BOOT_SENSE_NOT_READY: Status = EFI_DEVICE_ERROR; if (SenseData.Asc == USB_BOOT_ASC_NO_MEDIA) { Media->MediaPresent = FALSE; Status = EFI_NO_MEDIA; } else if (SenseData.Asc == USB_BOOT_ASC_NOT_READY) { Status = EFI_NOT_READY; } break; case USB_BOOT_SENSE_ILLEGAL_REQUEST: Status = EFI_INVALID_PARAMETER; break; case USB_BOOT_SENSE_UNIT_ATTENTION: Status = EFI_DEVICE_ERROR; if (SenseData.Asc == USB_BOOT_ASC_MEDIA_CHANGE) { // // If MediaChange, reset ReadOnly and new MediaId // Status = EFI_MEDIA_CHANGED; Media->ReadOnly = FALSE; Media->MediaId++; } else if (SenseData.Asc == USB_BOOT_ASC_NOT_READY) { Status = EFI_NOT_READY; } else if (SenseData.Asc == USB_BOOT_ASC_NO_MEDIA) { Status = EFI_NOT_READY; } break; case USB_BOOT_SENSE_DATA_PROTECT: Status = EFI_WRITE_PROTECTED; Media->ReadOnly = TRUE; break; default: Status = EFI_DEVICE_ERROR; break; } DEBUG ((EFI_D_INFO, "UsbBootRequestSense: (%r) with error code (%x) sense key %x/%x/%x\n", Status, SenseData.ErrorCode, USB_BOOT_SENSE_KEY (SenseData.SenseKey), SenseData.Asc, SenseData.Ascq )); return Status; } /** Execute the USB mass storage bootability commands. This function executes the USB mass storage bootability commands. If execution failed, retrieve the error by REQUEST_SENSE, then update the device's status, such as ReadyOnly. @param UsbMass The device to issue commands to @param Cmd The command to execute @param CmdLen The length of the command @param DataDir The direction of data transfer @param Data The buffer to hold the data @param DataLen The length of expected data @param Timeout The timeout used to transfer @retval EFI_SUCCESS Command is executed successfully @retval Others Command execution failed. **/ EFI_STATUS UsbBootExecCmd ( IN USB_MASS_DEVICE *UsbMass, IN VOID *Cmd, IN UINT8 CmdLen, IN EFI_USB_DATA_DIRECTION DataDir, IN VOID *Data, IN UINT32 DataLen, IN UINT32 Timeout ) { USB_MASS_TRANSPORT *Transport; EFI_STATUS Status; UINT32 CmdResult; Transport = UsbMass->Transport; Status = Transport->ExecCommand ( UsbMass->Context, Cmd, CmdLen, DataDir, Data, DataLen, UsbMass->Lun, Timeout, &CmdResult ); if (Status == EFI_TIMEOUT) { DEBUG ((EFI_D_ERROR, "UsbBootExecCmd: %r to Exec 0x%x Cmd\n", Status, *(UINT8 *)Cmd)); return EFI_TIMEOUT; } // // If ExecCommand() returns no error and CmdResult is success, // then the commnad transfer is successful. // if ((CmdResult == USB_MASS_CMD_SUCCESS) && !EFI_ERROR (Status)) { return EFI_SUCCESS; } // // If command execution failed, then retrieve error info via sense request. // DEBUG ((EFI_D_ERROR, "UsbBootExecCmd: %r to Exec 0x%x Cmd (Result = %x)\n", Status, *(UINT8 *)Cmd, CmdResult)); return UsbBootRequestSense (UsbMass); } /** Execute the USB mass storage bootability commands with retrial. This function executes USB mass storage bootability commands. If the device isn't ready, wait for it. If the device is ready and error occurs, retry the command again until it exceeds the limit of retrial times. @param UsbMass The device to issue commands to @param Cmd The command to execute @param CmdLen The length of the command @param DataDir The direction of data transfer @param Data The buffer to hold the data @param DataLen The length of expected data @param Timeout The timeout used to transfer @retval EFI_SUCCESS The command is executed successfully. @retval EFI_NO_MEDIA The device media is removed. @retval Others Command execution failed after retrial. **/ EFI_STATUS UsbBootExecCmdWithRetry ( IN USB_MASS_DEVICE *UsbMass, IN VOID *Cmd, IN UINT8 CmdLen, IN EFI_USB_DATA_DIRECTION DataDir, IN VOID *Data, IN UINT32 DataLen, IN UINT32 Timeout ) { EFI_STATUS Status; UINTN Retry; EFI_EVENT TimeoutEvt; Retry = 0; Status = EFI_SUCCESS; Status = gBS->CreateEvent ( EVT_TIMER, TPL_CALLBACK, NULL, NULL, &TimeoutEvt ); if (EFI_ERROR (Status)) { return Status; } Status = gBS->SetTimer (TimeoutEvt, TimerRelative, EFI_TIMER_PERIOD_SECONDS(60)); if (EFI_ERROR (Status)) { goto EXIT; } // // Execute the cmd and retry if it fails. // while (EFI_ERROR (gBS->CheckEvent (TimeoutEvt))) { Status = UsbBootExecCmd ( UsbMass, Cmd, CmdLen, DataDir, Data, DataLen, Timeout ); if (Status == EFI_SUCCESS || Status == EFI_NO_MEDIA) { break; } // // If the sense data shows the drive is not ready, we need execute the cmd again. // We limit the upper boundary to 60 seconds. // if (Status == EFI_NOT_READY) { continue; } // // If the status is other error, then just retry 5 times. // if (Retry++ >= USB_BOOT_COMMAND_RETRY) { break; } } EXIT: if (TimeoutEvt != NULL) { gBS->CloseEvent (TimeoutEvt); } return Status; } /** Execute TEST UNIT READY command to check if the device is ready. @param UsbMass The device to test @retval EFI_SUCCESS The device is ready. @retval Others Device not ready. **/ EFI_STATUS UsbBootIsUnitReady ( IN USB_MASS_DEVICE *UsbMass ) { USB_BOOT_TEST_UNIT_READY_CMD TestCmd; ZeroMem (&TestCmd, sizeof (USB_BOOT_TEST_UNIT_READY_CMD)); TestCmd.OpCode = USB_BOOT_TEST_UNIT_READY_OPCODE; TestCmd.Lun = (UINT8) (USB_BOOT_LUN (UsbMass->Lun)); return UsbBootExecCmdWithRetry ( UsbMass, &TestCmd, (UINT8) sizeof (USB_BOOT_TEST_UNIT_READY_CMD), EfiUsbNoData, NULL, 0, USB_BOOT_GENERAL_CMD_TIMEOUT ); } /** Execute INQUIRY Command to request information regarding parameters of the device be sent to the host computer. @param UsbMass The device to inquire. @retval EFI_SUCCESS INQUIRY Command is executed successfully. @retval Others INQUIRY Command is not executed successfully. **/ EFI_STATUS UsbBootInquiry ( IN USB_MASS_DEVICE *UsbMass ) { USB_BOOT_INQUIRY_CMD InquiryCmd; EFI_BLOCK_IO_MEDIA *Media; EFI_STATUS Status; Media = &(UsbMass->BlockIoMedia); ZeroMem (&InquiryCmd, sizeof (USB_BOOT_INQUIRY_CMD)); ZeroMem (&UsbMass->InquiryData, sizeof (USB_BOOT_INQUIRY_DATA)); InquiryCmd.OpCode = USB_BOOT_INQUIRY_OPCODE; InquiryCmd.Lun = (UINT8) (USB_BOOT_LUN (UsbMass->Lun)); InquiryCmd.AllocLen = (UINT8) sizeof (USB_BOOT_INQUIRY_DATA); Status = UsbBootExecCmdWithRetry ( UsbMass, &InquiryCmd, (UINT8) sizeof (USB_BOOT_INQUIRY_CMD), EfiUsbDataIn, &UsbMass->InquiryData, sizeof (USB_BOOT_INQUIRY_DATA), USB_BOOT_GENERAL_CMD_TIMEOUT ); if (EFI_ERROR (Status)) { return Status; } // // Get information from PDT (Peripheral Device Type) field and Removable Medium Bit // from the inquiry data. // UsbMass->Pdt = (UINT8) (USB_BOOT_PDT (UsbMass->InquiryData.Pdt)); Media->RemovableMedia = (BOOLEAN) (USB_BOOT_REMOVABLE (UsbMass->InquiryData.Removable)); // // Set block size to the default value of 512 Bytes, in case no media is present at first time. // Media->BlockSize = 0x0200; return Status; } /** Execute READ CAPACITY 16 bytes command to request information regarding the capacity of the installed medium of the device. This function executes READ CAPACITY 16 bytes command to get the capacity of the USB mass storage media, including the presence, block size, and last block number. @param UsbMass The device to retireve disk gemotric. @retval EFI_SUCCESS The disk geometry is successfully retrieved. @retval EFI_NOT_READY The returned block size is zero. @retval Other READ CAPACITY 16 bytes command execution failed. **/ EFI_STATUS UsbBootReadCapacity16 ( IN USB_MASS_DEVICE *UsbMass ) { UINT8 CapacityCmd[16]; EFI_SCSI_DISK_CAPACITY_DATA16 CapacityData; EFI_BLOCK_IO_MEDIA *Media; EFI_STATUS Status; UINT32 BlockSize; Media = &UsbMass->BlockIoMedia; Media->MediaPresent = FALSE; Media->LastBlock = 0; Media->BlockSize = 0; ZeroMem (CapacityCmd, sizeof (CapacityCmd)); ZeroMem (&CapacityData, sizeof (CapacityData)); CapacityCmd[0] = EFI_SCSI_OP_READ_CAPACITY16; CapacityCmd[1] = 0x10; // // Partial medium indicator, set the bytes 2 ~ 9 of the Cdb as ZERO. // ZeroMem ((CapacityCmd + 2), 8); CapacityCmd[13] = sizeof (CapacityData); Status = UsbBootExecCmdWithRetry ( UsbMass, CapacityCmd, (UINT8) sizeof (CapacityCmd), EfiUsbDataIn, &CapacityData, sizeof (CapacityData), USB_BOOT_GENERAL_CMD_TIMEOUT ); if (EFI_ERROR (Status)) { return Status; } // // Get the information on media presence, block size, and last block number // from READ CAPACITY data. // Media->MediaPresent = TRUE; Media->LastBlock = SwapBytes64 (ReadUnaligned64 ((CONST UINT64 *) &(CapacityData.LastLba7))); BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) &(CapacityData.BlockSize3))); Media->LowestAlignedLba = (CapacityData.LowestAlignLogic2 << 8) | CapacityData.LowestAlignLogic1; Media->LogicalBlocksPerPhysicalBlock = (1 << CapacityData.LogicPerPhysical); if (BlockSize == 0) { // // Get sense data // return UsbBootRequestSense (UsbMass); } else { Media->BlockSize = BlockSize; } return Status; } /** Execute READ CAPACITY command to request information regarding the capacity of the installed medium of the device. This function executes READ CAPACITY command to get the capacity of the USB mass storage media, including the presence, block size, and last block number. @param UsbMass The device to retireve disk gemotric. @retval EFI_SUCCESS The disk geometry is successfully retrieved. @retval EFI_NOT_READY The returned block size is zero. @retval Other READ CAPACITY command execution failed. **/ EFI_STATUS UsbBootReadCapacity ( IN USB_MASS_DEVICE *UsbMass ) { USB_BOOT_READ_CAPACITY_CMD CapacityCmd; USB_BOOT_READ_CAPACITY_DATA CapacityData; EFI_BLOCK_IO_MEDIA *Media; EFI_STATUS Status; UINT32 BlockSize; Media = &UsbMass->BlockIoMedia; ZeroMem (&CapacityCmd, sizeof (USB_BOOT_READ_CAPACITY_CMD)); ZeroMem (&CapacityData, sizeof (USB_BOOT_READ_CAPACITY_DATA)); CapacityCmd.OpCode = USB_BOOT_READ_CAPACITY_OPCODE; CapacityCmd.Lun = (UINT8) (USB_BOOT_LUN (UsbMass->Lun)); Status = UsbBootExecCmdWithRetry ( UsbMass, &CapacityCmd, (UINT8) sizeof (USB_BOOT_READ_CAPACITY_CMD), EfiUsbDataIn, &CapacityData, sizeof (USB_BOOT_READ_CAPACITY_DATA), USB_BOOT_GENERAL_CMD_TIMEOUT ); if (EFI_ERROR (Status)) { return Status; } // // Get the information on media presence, block size, and last block number // from READ CAPACITY data. // Media->MediaPresent = TRUE; Media->LastBlock = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) CapacityData.LastLba)); BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) CapacityData.BlockLen)); if (BlockSize == 0) { // // Get sense data // return UsbBootRequestSense (UsbMass); } else { Media->BlockSize = BlockSize; } if (Media->LastBlock == 0xFFFFFFFF) { Status = UsbBootReadCapacity16 (UsbMass); if (!EFI_ERROR (Status)) { UsbMass->Cdb16Byte = TRUE; } } return Status; } /** Retrieves SCSI mode sense information via MODE SENSE(6) command. @param UsbMass The device whose sense data is requested. @retval EFI_SUCCESS SCSI mode sense information retrieved successfully. @retval Other Command execution failed. **/ EFI_STATUS UsbScsiModeSense ( IN USB_MASS_DEVICE *UsbMass ) { EFI_STATUS Status; USB_SCSI_MODE_SENSE6_CMD ModeSenseCmd; USB_SCSI_MODE_SENSE6_PARA_HEADER ModeParaHeader; EFI_BLOCK_IO_MEDIA *Media; Media = &UsbMass->BlockIoMedia; ZeroMem (&ModeSenseCmd, sizeof (USB_SCSI_MODE_SENSE6_CMD)); ZeroMem (&ModeParaHeader, sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER)); // // MODE SENSE(6) command is defined in Section 8.2.10 of SCSI-2 Spec // ModeSenseCmd.OpCode = USB_SCSI_MODE_SENSE6_OPCODE; ModeSenseCmd.Lun = (UINT8) USB_BOOT_LUN (UsbMass->Lun); ModeSenseCmd.PageCode = 0x3F; ModeSenseCmd.AllocateLen = (UINT8) sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER); Status = UsbBootExecCmdWithRetry ( UsbMass, &ModeSenseCmd, (UINT8) sizeof (USB_SCSI_MODE_SENSE6_CMD), EfiUsbDataIn, &ModeParaHeader, sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER), USB_BOOT_GENERAL_CMD_TIMEOUT ); // // Format of device-specific parameter byte of the mode parameter header is defined in // Section 8.2.10 of SCSI-2 Spec. // BIT7 of this byte is indicates whether the medium is write protected. // if (!EFI_ERROR (Status)) { Media->ReadOnly = (BOOLEAN) ((ModeParaHeader.DevicePara & BIT7) != 0); } return Status; } /** Get the parameters for the USB mass storage media. This function get the parameters for the USB mass storage media, It is used both to initialize the media during the Start() phase of Driver Binding Protocol and to re-initialize it when the media is changed. Althought the RemoveableMedia is unlikely to change, it is also included here. @param UsbMass The device to retrieve disk gemotric. @retval EFI_SUCCESS The disk gemotric is successfully retrieved. @retval Other Failed to get the parameters. **/ EFI_STATUS UsbBootGetParams ( IN USB_MASS_DEVICE *UsbMass ) { EFI_BLOCK_IO_MEDIA *Media; EFI_STATUS Status; Media = &(UsbMass->BlockIoMedia); Status = UsbBootInquiry (UsbMass); if (EFI_ERROR (Status)) { DEBUG ((EFI_D_ERROR, "UsbBootGetParams: UsbBootInquiry (%r)\n", Status)); return Status; } // // According to USB Mass Storage Specification for Bootability, only following // 4 Peripheral Device Types are in spec. // if ((UsbMass->Pdt != USB_PDT_DIRECT_ACCESS) && (UsbMass->Pdt != USB_PDT_CDROM) && (UsbMass->Pdt != USB_PDT_OPTICAL) && (UsbMass->Pdt != USB_PDT_SIMPLE_DIRECT)) { DEBUG ((EFI_D_ERROR, "UsbBootGetParams: Found an unsupported peripheral type[%d]\n", UsbMass->Pdt)); return EFI_UNSUPPORTED; } // // Don't use the Removable bit in inquiry data to test whether the media // is removable because many flash disks wrongly set this bit. // if ((UsbMass->Pdt == USB_PDT_CDROM) || (UsbMass->Pdt == USB_PDT_OPTICAL)) { // // CD-Rom device and Non-CD optical device // UsbMass->OpticalStorage = TRUE; // // Default value 2048 Bytes, in case no media present at first time // Media->BlockSize = 0x0800; } Status = UsbBootDetectMedia (UsbMass); return Status; } /** Detect whether the removable media is present and whether it has changed. @param UsbMass The device to check. @retval EFI_SUCCESS The media status is successfully checked. @retval Other Failed to detect media. **/ EFI_STATUS UsbBootDetectMedia ( IN USB_MASS_DEVICE *UsbMass ) { EFI_BLOCK_IO_MEDIA OldMedia; EFI_BLOCK_IO_MEDIA *Media; UINT8 CmdSet; EFI_STATUS Status; Media = &UsbMass->BlockIoMedia; CopyMem (&OldMedia, &(UsbMass->BlockIoMedia), sizeof (EFI_BLOCK_IO_MEDIA)); CmdSet = ((EFI_USB_INTERFACE_DESCRIPTOR *) (UsbMass->Context))->InterfaceSubClass; Status = UsbBootIsUnitReady (UsbMass); if (EFI_ERROR (Status)) { DEBUG ((EFI_D_ERROR, "UsbBootDetectMedia: UsbBootIsUnitReady (%r)\n", Status)); } // // Status could be: // EFI_SUCCESS: all good. // EFI_NO_MEDIA: media is not present. // others: HW error. // For either EFI_NO_MEDIA, or HW error, skip to get WriteProtected and capacity information. // if (!EFI_ERROR (Status)) { if ((UsbMass->Pdt != USB_PDT_CDROM) && (CmdSet == USB_MASS_STORE_SCSI)) { // // MODE SENSE is required for the device with PDT of 0x00/0x07/0x0E, // according to Section 4 of USB Mass Storage Specification for Bootability. // MODE SENSE(10) is useless here, while MODE SENSE(6) defined in SCSI // could get the information of Write Protected. // Since not all device support this command, skip if fail. // UsbScsiModeSense (UsbMass); } Status = UsbBootReadCapacity (UsbMass); if (EFI_ERROR (Status)) { DEBUG ((EFI_D_ERROR, "UsbBootDetectMedia: UsbBootReadCapacity (%r)\n", Status)); } } if (EFI_ERROR (Status) && Status != EFI_NO_MEDIA) { // // For NoMedia, BlockIo is still needed. // return Status; } // // Detect whether it is necessary to reinstall the Block I/O Protocol. // // MediaId may change in RequestSense for MediaChanged // MediaPresent may change in RequestSense for NoMedia // MediaReadOnly may change in RequestSense for WriteProtected or MediaChanged // MediaPresent/BlockSize/LastBlock may change in ReadCapacity // if ((Media->MediaId != OldMedia.MediaId) || (Media->MediaPresent != OldMedia.MediaPresent) || (Media->ReadOnly != OldMedia.ReadOnly) || (Media->BlockSize != OldMedia.BlockSize) || (Media->LastBlock != OldMedia.LastBlock)) { // // This function is called from: // Block I/O Protocol APIs, which run at TPL_CALLBACK. // DriverBindingStart(), which raises to TPL_CALLBACK. ASSERT (EfiGetCurrentTpl () == TPL_CALLBACK); // // When it is called from DriverBindingStart(), below reinstall fails. // So ignore the return status check. // gBS->ReinstallProtocolInterface ( UsbMass->Controller, &gEfiBlockIoProtocolGuid, &UsbMass->BlockIo, &UsbMass->BlockIo ); // // Reset MediaId after reinstalling Block I/O Protocol. // if (Media->MediaPresent != OldMedia.MediaPresent) { if (Media->MediaPresent) { Media->MediaId = 1; } else { Media->MediaId = 0; } } if ((Media->ReadOnly != OldMedia.ReadOnly) || (Media->BlockSize != OldMedia.BlockSize) || (Media->LastBlock != OldMedia.LastBlock)) { Media->MediaId++; } Status = Media->MediaPresent ? EFI_MEDIA_CHANGED : EFI_NO_MEDIA; } return Status; } /** Read some blocks from the device. @param UsbMass The USB mass storage device to read from @param Lba The start block number @param TotalBlock Total block number to read @param Buffer The buffer to read to @retval EFI_SUCCESS Data are read into the buffer @retval Others Failed to read all the data **/ EFI_STATUS UsbBootReadBlocks ( IN USB_MASS_DEVICE *UsbMass, IN UINT32 Lba, IN UINTN TotalBlock, OUT UINT8 *Buffer ) { USB_BOOT_READ10_CMD ReadCmd; EFI_STATUS Status; UINT16 Count; UINT32 BlockSize; UINT32 ByteSize; UINT32 Timeout; BlockSize = UsbMass->BlockIoMedia.BlockSize; Status = EFI_SUCCESS; while (TotalBlock > 0) { // // Split the total blocks into smaller pieces to ease the pressure // on the device. We must split the total block because the READ10 // command only has 16 bit transfer length (in the unit of block). // Count = (UINT16)((TotalBlock < USB_BOOT_IO_BLOCKS) ? TotalBlock : USB_BOOT_IO_BLOCKS); ByteSize = (UINT32)Count * BlockSize; // // USB command's upper limit timeout is 5s. [USB2.0-9.2.6.1] // Timeout = (UINT32) USB_BOOT_GENERAL_CMD_TIMEOUT; // // Fill in the command then execute // ZeroMem (&ReadCmd, sizeof (USB_BOOT_READ10_CMD)); ReadCmd.OpCode = USB_BOOT_READ10_OPCODE; ReadCmd.Lun = (UINT8) (USB_BOOT_LUN (UsbMass->Lun)); WriteUnaligned32 ((UINT32 *) ReadCmd.Lba, SwapBytes32 (Lba)); WriteUnaligned16 ((UINT16 *) ReadCmd.TransferLen, SwapBytes16 (Count)); Status = UsbBootExecCmdWithRetry ( UsbMass, &ReadCmd, (UINT8) sizeof (USB_BOOT_READ10_CMD), EfiUsbDataIn, Buffer, ByteSize, Timeout ); if (EFI_ERROR (Status)) { return Status; } DEBUG ((EFI_D_BLKIO, "UsbBootReadBlocks: LBA (0x%x), Blk (0x%x)\n", Lba, Count)); Lba += Count; Buffer += Count * BlockSize; TotalBlock -= Count; } return Status; } /** Write some blocks to the device. @param UsbMass The USB mass storage device to write to @param Lba The start block number @param TotalBlock Total block number to write @param Buffer Pointer to the source buffer for the data. @retval EFI_SUCCESS Data are written into the buffer @retval Others Failed to write all the data **/ EFI_STATUS UsbBootWriteBlocks ( IN USB_MASS_DEVICE *UsbMass, IN UINT32 Lba, IN UINTN TotalBlock, IN UINT8 *Buffer ) { USB_BOOT_WRITE10_CMD WriteCmd; EFI_STATUS Status; UINT16 Count; UINT32 BlockSize; UINT32 ByteSize; UINT32 Timeout; BlockSize = UsbMass->BlockIoMedia.BlockSize; Status = EFI_SUCCESS; while (TotalBlock > 0) { // // Split the total blocks into smaller pieces to ease the pressure // on the device. We must split the total block because the WRITE10 // command only has 16 bit transfer length (in the unit of block). // Count = (UINT16)((TotalBlock < USB_BOOT_IO_BLOCKS) ? TotalBlock : USB_BOOT_IO_BLOCKS); ByteSize = (UINT32)Count * BlockSize; // // USB command's upper limit timeout is 5s. [USB2.0-9.2.6.1] // Timeout = (UINT32) USB_BOOT_GENERAL_CMD_TIMEOUT; // // Fill in the write10 command block // ZeroMem (&WriteCmd, sizeof (USB_BOOT_WRITE10_CMD)); WriteCmd.OpCode = USB_BOOT_WRITE10_OPCODE; WriteCmd.Lun = (UINT8) (USB_BOOT_LUN (UsbMass->Lun)); WriteUnaligned32 ((UINT32 *) WriteCmd.Lba, SwapBytes32 (Lba)); WriteUnaligned16 ((UINT16 *) WriteCmd.TransferLen, SwapBytes16 (Count)); Status = UsbBootExecCmdWithRetry ( UsbMass, &WriteCmd, (UINT8) sizeof (USB_BOOT_WRITE10_CMD), EfiUsbDataOut, Buffer, ByteSize, Timeout ); if (EFI_ERROR (Status)) { return Status; } DEBUG ((EFI_D_BLKIO, "UsbBootWriteBlocks: LBA (0x%x), Blk (0x%x)\n", Lba, Count)); Lba += Count; Buffer += Count * BlockSize; TotalBlock -= Count; } return Status; } /** Read some blocks from the device by SCSI 16 byte cmd. @param UsbMass The USB mass storage device to read from @param Lba The start block number @param TotalBlock Total block number to read @param Buffer The buffer to read to @retval EFI_SUCCESS Data are read into the buffer @retval Others Failed to read all the data **/ EFI_STATUS UsbBootReadBlocks16 ( IN USB_MASS_DEVICE *UsbMass, IN UINT64 Lba, IN UINTN TotalBlock, OUT UINT8 *Buffer ) { UINT8 ReadCmd[16]; EFI_STATUS Status; UINT16 Count; UINT32 BlockSize; UINT32 ByteSize; UINT32 Timeout; BlockSize = UsbMass->BlockIoMedia.BlockSize; Status = EFI_SUCCESS; while (TotalBlock > 0) { // // Split the total blocks into smaller pieces. // Count = (UINT16)((TotalBlock < USB_BOOT_IO_BLOCKS) ? TotalBlock : USB_BOOT_IO_BLOCKS); ByteSize = (UINT32)Count * BlockSize; // // USB command's upper limit timeout is 5s. [USB2.0-9.2.6.1] // Timeout = (UINT32) USB_BOOT_GENERAL_CMD_TIMEOUT; // // Fill in the command then execute // ZeroMem (ReadCmd, sizeof (ReadCmd)); ReadCmd[0] = EFI_SCSI_OP_READ16; ReadCmd[1] = (UINT8) ((USB_BOOT_LUN (UsbMass->Lun) & 0xE0)); WriteUnaligned64 ((UINT64 *) &ReadCmd[2], SwapBytes64 (Lba)); WriteUnaligned32 ((UINT32 *) &ReadCmd[10], SwapBytes32 (Count)); Status = UsbBootExecCmdWithRetry ( UsbMass, ReadCmd, (UINT8) sizeof (ReadCmd), EfiUsbDataIn, Buffer, ByteSize, Timeout ); if (EFI_ERROR (Status)) { return Status; } DEBUG ((EFI_D_BLKIO, "UsbBootReadBlocks16: LBA (0x%lx), Blk (0x%x)\n", Lba, Count)); Lba += Count; Buffer += Count * BlockSize; TotalBlock -= Count; } return Status; } /** Write some blocks to the device by SCSI 16 byte cmd. @param UsbMass The USB mass storage device to write to @param Lba The start block number @param TotalBlock Total block number to write @param Buffer Pointer to the source buffer for the data. @retval EFI_SUCCESS Data are written into the buffer @retval Others Failed to write all the data **/ EFI_STATUS UsbBootWriteBlocks16 ( IN USB_MASS_DEVICE *UsbMass, IN UINT64 Lba, IN UINTN TotalBlock, IN UINT8 *Buffer ) { UINT8 WriteCmd[16]; EFI_STATUS Status; UINT16 Count; UINT32 BlockSize; UINT32 ByteSize; UINT32 Timeout; BlockSize = UsbMass->BlockIoMedia.BlockSize; Status = EFI_SUCCESS; while (TotalBlock > 0) { // // Split the total blocks into smaller pieces. // Count = (UINT16)((TotalBlock < USB_BOOT_IO_BLOCKS) ? TotalBlock : USB_BOOT_IO_BLOCKS); ByteSize = (UINT32)Count * BlockSize; // // USB command's upper limit timeout is 5s. [USB2.0-9.2.6.1] // Timeout = (UINT32) USB_BOOT_GENERAL_CMD_TIMEOUT; // // Fill in the write16 command block // ZeroMem (WriteCmd, sizeof (WriteCmd)); WriteCmd[0] = EFI_SCSI_OP_WRITE16; WriteCmd[1] = (UINT8) ((USB_BOOT_LUN (UsbMass->Lun) & 0xE0)); WriteUnaligned64 ((UINT64 *) &WriteCmd[2], SwapBytes64 (Lba)); WriteUnaligned32 ((UINT32 *) &WriteCmd[10], SwapBytes32 (Count)); Status = UsbBootExecCmdWithRetry ( UsbMass, WriteCmd, (UINT8) sizeof (WriteCmd), EfiUsbDataOut, Buffer, ByteSize, Timeout ); if (EFI_ERROR (Status)) { return Status; } DEBUG ((EFI_D_BLKIO, "UsbBootWriteBlocks: LBA (0x%lx), Blk (0x%x)\n", Lba, Count)); Lba += Count; Buffer += Count * BlockSize; TotalBlock -= Count; } return Status; } /** Use the USB clear feature control transfer to clear the endpoint stall condition. @param UsbIo The USB I/O Protocol instance @param EndpointAddr The endpoint to clear stall for @retval EFI_SUCCESS The endpoint stall condition is cleared. @retval Others Failed to clear the endpoint stall condition. **/ EFI_STATUS UsbClearEndpointStall ( IN EFI_USB_IO_PROTOCOL *UsbIo, IN UINT8 EndpointAddr ) { EFI_USB_DEVICE_REQUEST Request; EFI_STATUS Status; UINT32 CmdResult; UINT32 Timeout; Request.RequestType = 0x02; Request.Request = USB_REQ_CLEAR_FEATURE; Request.Value = USB_FEATURE_ENDPOINT_HALT; Request.Index = EndpointAddr; Request.Length = 0; Timeout = USB_BOOT_GENERAL_CMD_TIMEOUT / USB_MASS_1_MILLISECOND; Status = UsbIo->UsbControlTransfer ( UsbIo, &Request, EfiUsbNoData, Timeout, NULL, 0, &CmdResult ); return Status; }
709462.c
#include<stdio.h> int main() { int brick, done=0, i=1; printf("Enter number of bricks."); scanf("%d", &brick); do { done=done+3*i; i++; } while(done<brick); done=done-3*(i-1); (done+i-1>brick)? printf("Patlu"): printf("Motu"); }
326884.c
/* * fs/cifs/file.c * * vfs operations that deal with files * * Copyright (C) International Business Machines Corp., 2002,2007 * Author(s): Steve French ([email protected]) * Jeremy Allison ([email protected]) * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <linux/fs.h> #include <linux/backing-dev.h> #include <linux/stat.h> #include <linux/fcntl.h> #include <linux/pagemap.h> #include <linux/pagevec.h> #include <linux/writeback.h> #include <linux/task_io_accounting_ops.h> #include <linux/delay.h> #include <asm/div64.h> #include "cifsfs.h" #include "cifspdu.h" #include "cifsglob.h" #include "cifsproto.h" #include "cifs_unicode.h" #include "cifs_debug.h" #include "cifs_fs_sb.h" static inline struct cifsFileInfo *cifs_init_private( struct cifsFileInfo *private_data, struct inode *inode, struct file *file, __u16 netfid) { memset(private_data, 0, sizeof(struct cifsFileInfo)); private_data->netfid = netfid; private_data->pid = current->tgid; init_MUTEX(&private_data->fh_sem); mutex_init(&private_data->lock_mutex); INIT_LIST_HEAD(&private_data->llist); private_data->pfile = file; /* needed for writepage */ private_data->pInode = inode; private_data->invalidHandle = FALSE; private_data->closePend = FALSE; /* we have to track num writers to the inode, since writepages does not tell us which handle the write is for so there can be a close (overlapping with write) of the filehandle that cifs_writepages chose to use */ atomic_set(&private_data->wrtPending, 0); return private_data; } static inline int cifs_convert_flags(unsigned int flags) { if ((flags & O_ACCMODE) == O_RDONLY) return GENERIC_READ; else if ((flags & O_ACCMODE) == O_WRONLY) return GENERIC_WRITE; else if ((flags & O_ACCMODE) == O_RDWR) { /* GENERIC_ALL is too much permission to request can cause unnecessary access denied on create */ /* return GENERIC_ALL; */ return (GENERIC_READ | GENERIC_WRITE); } return 0x20197; } static inline int cifs_get_disposition(unsigned int flags) { if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) return FILE_CREATE; else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) return FILE_OVERWRITE_IF; else if ((flags & O_CREAT) == O_CREAT) return FILE_OPEN_IF; else if ((flags & O_TRUNC) == O_TRUNC) return FILE_OVERWRITE; else return FILE_OPEN; } /* all arguments to this function must be checked for validity in caller */ static inline int cifs_open_inode_helper(struct inode *inode, struct file *file, struct cifsInodeInfo *pCifsInode, struct cifsFileInfo *pCifsFile, struct cifsTconInfo *pTcon, int *oplock, FILE_ALL_INFO *buf, char *full_path, int xid) { struct timespec temp; int rc; /* want handles we can use to read with first in the list so we do not have to walk the list to search for one in prepare_write */ if ((file->f_flags & O_ACCMODE) == O_WRONLY) { list_add_tail(&pCifsFile->flist, &pCifsInode->openFileList); } else { list_add(&pCifsFile->flist, &pCifsInode->openFileList); } write_unlock(&GlobalSMBSeslock); if (pCifsInode->clientCanCacheRead) { /* we have the inode open somewhere else no need to discard cache data */ goto client_can_cache; } /* BB need same check in cifs_create too? */ /* if not oplocked, invalidate inode pages if mtime or file size changed */ temp = cifs_NTtimeToUnix(le64_to_cpu(buf->LastWriteTime)); if (timespec_equal(&file->f_path.dentry->d_inode->i_mtime, &temp) && (file->f_path.dentry->d_inode->i_size == (loff_t)le64_to_cpu(buf->EndOfFile))) { cFYI(1, ("inode unchanged on server")); } else { if (file->f_path.dentry->d_inode->i_mapping) { /* BB no need to lock inode until after invalidate since namei code should already have it locked? */ rc = filemap_write_and_wait(file->f_path.dentry->d_inode->i_mapping); if (rc != 0) CIFS_I(file->f_path.dentry->d_inode)->write_behind_rc = rc; } cFYI(1, ("invalidating remote inode since open detected it " "changed")); invalidate_remote_inode(file->f_path.dentry->d_inode); } client_can_cache: if (pTcon->unix_ext) rc = cifs_get_inode_info_unix(&file->f_path.dentry->d_inode, full_path, inode->i_sb, xid); else rc = cifs_get_inode_info(&file->f_path.dentry->d_inode, full_path, buf, inode->i_sb, xid); if ((*oplock & 0xF) == OPLOCK_EXCLUSIVE) { pCifsInode->clientCanCacheAll = TRUE; pCifsInode->clientCanCacheRead = TRUE; cFYI(1, ("Exclusive Oplock granted on inode %p", file->f_path.dentry->d_inode)); } else if ((*oplock & 0xF) == OPLOCK_READ) pCifsInode->clientCanCacheRead = TRUE; return rc; } int cifs_open(struct inode *inode, struct file *file) { int rc = -EACCES; int xid, oplock; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; struct cifsFileInfo *pCifsFile; struct cifsInodeInfo *pCifsInode; struct list_head *tmp; char *full_path = NULL; int desiredAccess; int disposition; __u16 netfid; FILE_ALL_INFO *buf = NULL; xid = GetXid(); cifs_sb = CIFS_SB(inode->i_sb); pTcon = cifs_sb->tcon; if (file->f_flags & O_CREAT) { /* search inode for this file and fill in file->private_data */ pCifsInode = CIFS_I(file->f_path.dentry->d_inode); read_lock(&GlobalSMBSeslock); list_for_each(tmp, &pCifsInode->openFileList) { pCifsFile = list_entry(tmp, struct cifsFileInfo, flist); if ((pCifsFile->pfile == NULL) && (pCifsFile->pid == current->tgid)) { /* mode set in cifs_create */ /* needed for writepage */ pCifsFile->pfile = file; file->private_data = pCifsFile; break; } } read_unlock(&GlobalSMBSeslock); if (file->private_data != NULL) { rc = 0; FreeXid(xid); return rc; } else { if (file->f_flags & O_EXCL) cERROR(1, ("could not find file instance for " "new file %p", file)); } } full_path = build_path_from_dentry(file->f_path.dentry); if (full_path == NULL) { FreeXid(xid); return -ENOMEM; } cFYI(1, ("inode = 0x%p file flags are 0x%x for %s", inode, file->f_flags, full_path)); desiredAccess = cifs_convert_flags(file->f_flags); /********************************************************************* * open flag mapping table: * * POSIX Flag CIFS Disposition * ---------- ---------------- * O_CREAT FILE_OPEN_IF * O_CREAT | O_EXCL FILE_CREATE * O_CREAT | O_TRUNC FILE_OVERWRITE_IF * O_TRUNC FILE_OVERWRITE * none of the above FILE_OPEN * * Note that there is not a direct match between disposition * FILE_SUPERSEDE (ie create whether or not file exists although * O_CREAT | O_TRUNC is similar but truncates the existing * file rather than creating a new file as FILE_SUPERSEDE does * (which uses the attributes / metadata passed in on open call) *? *? O_SYNC is a reasonable match to CIFS writethrough flag *? and the read write flags match reasonably. O_LARGEFILE *? is irrelevant because largefile support is always used *? by this client. Flags O_APPEND, O_DIRECT, O_DIRECTORY, * O_FASYNC, O_NOFOLLOW, O_NONBLOCK need further investigation *********************************************************************/ disposition = cifs_get_disposition(file->f_flags); if (oplockEnabled) oplock = REQ_OPLOCK; else oplock = FALSE; /* BB pass O_SYNC flag through on file attributes .. BB */ /* Also refresh inode by passing in file_info buf returned by SMBOpen and calling get_inode_info with returned buf (at least helps non-Unix server case) */ /* BB we can not do this if this is the second open of a file and the first handle has writebehind data, we might be able to simply do a filemap_fdatawrite/filemap_fdatawait first */ buf = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL); if (!buf) { rc = -ENOMEM; goto out; } if (cifs_sb->tcon->ses->capabilities & CAP_NT_SMBS) rc = CIFSSMBOpen(xid, pTcon, full_path, disposition, desiredAccess, CREATE_NOT_DIR, &netfid, &oplock, buf, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); else rc = -EIO; /* no NT SMB support fall into legacy open below */ if (rc == -EIO) { /* Old server, try legacy style OpenX */ rc = SMBLegacyOpen(xid, pTcon, full_path, disposition, desiredAccess, CREATE_NOT_DIR, &netfid, &oplock, buf, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); } if (rc) { cFYI(1, ("cifs_open returned 0x%x", rc)); goto out; } file->private_data = kmalloc(sizeof(struct cifsFileInfo), GFP_KERNEL); if (file->private_data == NULL) { rc = -ENOMEM; goto out; } pCifsFile = cifs_init_private(file->private_data, inode, file, netfid); write_lock(&GlobalSMBSeslock); list_add(&pCifsFile->tlist, &pTcon->openFileList); pCifsInode = CIFS_I(file->f_path.dentry->d_inode); if (pCifsInode) { rc = cifs_open_inode_helper(inode, file, pCifsInode, pCifsFile, pTcon, &oplock, buf, full_path, xid); } else { write_unlock(&GlobalSMBSeslock); } if (oplock & CIFS_CREATE_ACTION) { /* time to set mode which we can not set earlier due to problems creating new read-only files */ if (pTcon->unix_ext) { CIFSSMBUnixSetPerms(xid, pTcon, full_path, inode->i_mode, (__u64)-1, (__u64)-1, 0 /* dev */, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); } else { /* BB implement via Windows security descriptors eg CIFSSMBWinSetPerms(xid, pTcon, full_path, mode, -1, -1, local_nls); in the meantime could set r/o dos attribute when perms are eg: mode & 0222 == 0 */ } } out: kfree(buf); kfree(full_path); FreeXid(xid); return rc; } /* Try to reacquire byte range locks that were released when session */ /* to server was lost */ static int cifs_relock_file(struct cifsFileInfo *cifsFile) { int rc = 0; /* BB list all locks open on this file and relock */ return rc; } static int cifs_reopen_file(struct file *file, int can_flush) { int rc = -EACCES; int xid, oplock; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; struct cifsFileInfo *pCifsFile; struct cifsInodeInfo *pCifsInode; struct inode *inode; char *full_path = NULL; int desiredAccess; int disposition = FILE_OPEN; __u16 netfid; if (file->private_data) { pCifsFile = (struct cifsFileInfo *)file->private_data; } else return -EBADF; xid = GetXid(); down(&pCifsFile->fh_sem); if (pCifsFile->invalidHandle == FALSE) { up(&pCifsFile->fh_sem); FreeXid(xid); return 0; } if (file->f_path.dentry == NULL) { cERROR(1, ("no valid name if dentry freed")); dump_stack(); rc = -EBADF; goto reopen_error_exit; } inode = file->f_path.dentry->d_inode; if (inode == NULL) { cERROR(1, ("inode not valid")); dump_stack(); rc = -EBADF; goto reopen_error_exit; } cifs_sb = CIFS_SB(inode->i_sb); pTcon = cifs_sb->tcon; /* can not grab rename sem here because various ops, including those that already have the rename sem can end up causing writepage to get called and if the server was down that means we end up here, and we can never tell if the caller already has the rename_sem */ full_path = build_path_from_dentry(file->f_path.dentry); if (full_path == NULL) { rc = -ENOMEM; reopen_error_exit: up(&pCifsFile->fh_sem); FreeXid(xid); return rc; } cFYI(1, ("inode = 0x%p file flags 0x%x for %s", inode, file->f_flags, full_path)); desiredAccess = cifs_convert_flags(file->f_flags); if (oplockEnabled) oplock = REQ_OPLOCK; else oplock = FALSE; /* Can not refresh inode by passing in file_info buf to be returned by SMBOpen and then calling get_inode_info with returned buf since file might have write behind data that needs to be flushed and server version of file size can be stale. If we knew for sure that inode was not dirty locally we could do this */ rc = CIFSSMBOpen(xid, pTcon, full_path, disposition, desiredAccess, CREATE_NOT_DIR, &netfid, &oplock, NULL, cifs_sb->local_nls, cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); if (rc) { up(&pCifsFile->fh_sem); cFYI(1, ("cifs_open returned 0x%x", rc)); cFYI(1, ("oplock: %d", oplock)); } else { pCifsFile->netfid = netfid; pCifsFile->invalidHandle = FALSE; up(&pCifsFile->fh_sem); pCifsInode = CIFS_I(inode); if (pCifsInode) { if (can_flush) { rc = filemap_write_and_wait(inode->i_mapping); if (rc != 0) CIFS_I(inode)->write_behind_rc = rc; /* temporarily disable caching while we go to server to get inode info */ pCifsInode->clientCanCacheAll = FALSE; pCifsInode->clientCanCacheRead = FALSE; if (pTcon->unix_ext) rc = cifs_get_inode_info_unix(&inode, full_path, inode->i_sb, xid); else rc = cifs_get_inode_info(&inode, full_path, NULL, inode->i_sb, xid); } /* else we are writing out data to server already and could deadlock if we tried to flush data, and since we do not know if we have data that would invalidate the current end of file on the server we can not go to the server to get the new inod info */ if ((oplock & 0xF) == OPLOCK_EXCLUSIVE) { pCifsInode->clientCanCacheAll = TRUE; pCifsInode->clientCanCacheRead = TRUE; cFYI(1, ("Exclusive Oplock granted on inode %p", file->f_path.dentry->d_inode)); } else if ((oplock & 0xF) == OPLOCK_READ) { pCifsInode->clientCanCacheRead = TRUE; pCifsInode->clientCanCacheAll = FALSE; } else { pCifsInode->clientCanCacheRead = FALSE; pCifsInode->clientCanCacheAll = FALSE; } cifs_relock_file(pCifsFile); } } kfree(full_path); FreeXid(xid); return rc; } int cifs_close(struct inode *inode, struct file *file) { int rc = 0; int xid, timeout; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; struct cifsFileInfo *pSMBFile = (struct cifsFileInfo *)file->private_data; xid = GetXid(); cifs_sb = CIFS_SB(inode->i_sb); pTcon = cifs_sb->tcon; if (pSMBFile) { struct cifsLockInfo *li, *tmp; pSMBFile->closePend = TRUE; if (pTcon) { /* no sense reconnecting to close a file that is already closed */ if (pTcon->tidStatus != CifsNeedReconnect) { timeout = 2; while ((atomic_read(&pSMBFile->wrtPending) != 0) && (timeout <= 2048)) { /* Give write a better chance to get to server ahead of the close. We do not want to add a wait_q here as it would increase the memory utilization as the struct would be in each open file, but this should give enough time to clear the socket */ #ifdef CONFIG_CIFS_DEBUG2 cFYI(1, ("close delay, write pending")); #endif /* DEBUG2 */ msleep(timeout); timeout *= 4; } if (atomic_read(&pSMBFile->wrtPending)) cERROR(1, ("close with pending writes")); rc = CIFSSMBClose(xid, pTcon, pSMBFile->netfid); } } /* Delete any outstanding lock records. We'll lose them when the file is closed anyway. */ mutex_lock(&pSMBFile->lock_mutex); list_for_each_entry_safe(li, tmp, &pSMBFile->llist, llist) { list_del(&li->llist); kfree(li); } mutex_unlock(&pSMBFile->lock_mutex); write_lock(&GlobalSMBSeslock); list_del(&pSMBFile->flist); list_del(&pSMBFile->tlist); write_unlock(&GlobalSMBSeslock); timeout = 10; /* We waited above to give the SMBWrite a chance to issue on the wire (so we do not get SMBWrite returning EBADF if writepages is racing with close. Note that writepages does not specify a file handle, so it is possible for a file to be opened twice, and the application close the "wrong" file handle - in these cases we delay long enough to allow the SMBWrite to get on the wire before the SMB Close. We allow total wait here over 45 seconds, more than oplock break time, and more than enough to allow any write to complete on the server, or to time out on the client */ while ((atomic_read(&pSMBFile->wrtPending) != 0) && (timeout <= 50000)) { cERROR(1, ("writes pending, delay free of handle")); msleep(timeout); timeout *= 8; } kfree(pSMBFile->search_resume_name); kfree(file->private_data); file->private_data = NULL; } else rc = -EBADF; read_lock(&GlobalSMBSeslock); if (list_empty(&(CIFS_I(inode)->openFileList))) { cFYI(1, ("closing last open instance for inode %p", inode)); /* if the file is not open we do not know if we can cache info on this inode, much less write behind and read ahead */ CIFS_I(inode)->clientCanCacheRead = FALSE; CIFS_I(inode)->clientCanCacheAll = FALSE; } read_unlock(&GlobalSMBSeslock); if ((rc == 0) && CIFS_I(inode)->write_behind_rc) rc = CIFS_I(inode)->write_behind_rc; FreeXid(xid); return rc; } int cifs_closedir(struct inode *inode, struct file *file) { int rc = 0; int xid; struct cifsFileInfo *pCFileStruct = (struct cifsFileInfo *)file->private_data; char *ptmp; cFYI(1, ("Closedir inode = 0x%p", inode)); xid = GetXid(); if (pCFileStruct) { struct cifsTconInfo *pTcon; struct cifs_sb_info *cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; cFYI(1, ("Freeing private data in close dir")); if ((pCFileStruct->srch_inf.endOfSearch == FALSE) && (pCFileStruct->invalidHandle == FALSE)) { pCFileStruct->invalidHandle = TRUE; rc = CIFSFindClose(xid, pTcon, pCFileStruct->netfid); cFYI(1, ("Closing uncompleted readdir with rc %d", rc)); /* not much we can do if it fails anyway, ignore rc */ rc = 0; } ptmp = pCFileStruct->srch_inf.ntwrk_buf_start; if (ptmp) { cFYI(1, ("closedir free smb buf in srch struct")); pCFileStruct->srch_inf.ntwrk_buf_start = NULL; if (pCFileStruct->srch_inf.smallBuf) cifs_small_buf_release(ptmp); else cifs_buf_release(ptmp); } ptmp = pCFileStruct->search_resume_name; if (ptmp) { cFYI(1, ("closedir free resume name")); pCFileStruct->search_resume_name = NULL; kfree(ptmp); } kfree(file->private_data); file->private_data = NULL; } /* BB can we lock the filestruct while this is going on? */ FreeXid(xid); return rc; } static int store_file_lock(struct cifsFileInfo *fid, __u64 len, __u64 offset, __u8 lockType) { struct cifsLockInfo *li = kmalloc(sizeof(struct cifsLockInfo), GFP_KERNEL); if (li == NULL) return -ENOMEM; li->offset = offset; li->length = len; li->type = lockType; mutex_lock(&fid->lock_mutex); list_add(&li->llist, &fid->llist); mutex_unlock(&fid->lock_mutex); return 0; } int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) { int rc, xid; __u32 numLock = 0; __u32 numUnlock = 0; __u64 length; int wait_flag = FALSE; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; __u16 netfid; __u8 lockType = LOCKING_ANDX_LARGE_FILES; int posix_locking; length = 1 + pfLock->fl_end - pfLock->fl_start; rc = -EACCES; xid = GetXid(); cFYI(1, ("Lock parm: 0x%x flockflags: " "0x%x flocktype: 0x%x start: %lld end: %lld", cmd, pfLock->fl_flags, pfLock->fl_type, pfLock->fl_start, pfLock->fl_end)); if (pfLock->fl_flags & FL_POSIX) cFYI(1, ("Posix")); if (pfLock->fl_flags & FL_FLOCK) cFYI(1, ("Flock")); if (pfLock->fl_flags & FL_SLEEP) { cFYI(1, ("Blocking lock")); wait_flag = TRUE; } if (pfLock->fl_flags & FL_ACCESS) cFYI(1, ("Process suspended by mandatory locking - " "not implemented yet")); if (pfLock->fl_flags & FL_LEASE) cFYI(1, ("Lease on file - not implemented yet")); if (pfLock->fl_flags & (~(FL_POSIX | FL_FLOCK | FL_SLEEP | FL_ACCESS | FL_LEASE))) cFYI(1, ("Unknown lock flags 0x%x", pfLock->fl_flags)); if (pfLock->fl_type == F_WRLCK) { cFYI(1, ("F_WRLCK ")); numLock = 1; } else if (pfLock->fl_type == F_UNLCK) { cFYI(1, ("F_UNLCK")); numUnlock = 1; /* Check if unlock includes more than one lock range */ } else if (pfLock->fl_type == F_RDLCK) { cFYI(1, ("F_RDLCK")); lockType |= LOCKING_ANDX_SHARED_LOCK; numLock = 1; } else if (pfLock->fl_type == F_EXLCK) { cFYI(1, ("F_EXLCK")); numLock = 1; } else if (pfLock->fl_type == F_SHLCK) { cFYI(1, ("F_SHLCK")); lockType |= LOCKING_ANDX_SHARED_LOCK; numLock = 1; } else cFYI(1, ("Unknown type of lock")); cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; if (file->private_data == NULL) { FreeXid(xid); return -EBADF; } netfid = ((struct cifsFileInfo *)file->private_data)->netfid; posix_locking = (cifs_sb->tcon->ses->capabilities & CAP_UNIX) && (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(cifs_sb->tcon->fsUnixInfo.Capability)); /* BB add code here to normalize offset and length to account for negative length which we can not accept over the wire */ if (IS_GETLK(cmd)) { if (posix_locking) { int posix_lock_type; if (lockType & LOCKING_ANDX_SHARED_LOCK) posix_lock_type = CIFS_RDLCK; else posix_lock_type = CIFS_WRLCK; rc = CIFSSMBPosixLock(xid, pTcon, netfid, 1 /* get */, length, pfLock, posix_lock_type, wait_flag); FreeXid(xid); return rc; } /* BB we could chain these into one lock request BB */ rc = CIFSSMBLock(xid, pTcon, netfid, length, pfLock->fl_start, 0, 1, lockType, 0 /* wait flag */ ); if (rc == 0) { rc = CIFSSMBLock(xid, pTcon, netfid, length, pfLock->fl_start, 1 /* numUnlock */ , 0 /* numLock */ , lockType, 0 /* wait flag */ ); pfLock->fl_type = F_UNLCK; if (rc != 0) cERROR(1, ("Error unlocking previously locked " "range %d during test of lock", rc)); rc = 0; } else { /* if rc == ERR_SHARING_VIOLATION ? */ rc = 0; /* do not change lock type to unlock since range in use */ } FreeXid(xid); return rc; } if (!numLock && !numUnlock) { /* if no lock or unlock then nothing to do since we do not know what it is */ FreeXid(xid); return -EOPNOTSUPP; } if (posix_locking) { int posix_lock_type; if (lockType & LOCKING_ANDX_SHARED_LOCK) posix_lock_type = CIFS_RDLCK; else posix_lock_type = CIFS_WRLCK; if (numUnlock == 1) posix_lock_type = CIFS_UNLCK; rc = CIFSSMBPosixLock(xid, pTcon, netfid, 0 /* set */, length, pfLock, posix_lock_type, wait_flag); } else { struct cifsFileInfo *fid = (struct cifsFileInfo *)file->private_data; if (numLock) { rc = CIFSSMBLock(xid, pTcon, netfid, length, pfLock->fl_start, 0, numLock, lockType, wait_flag); if (rc == 0) { /* For Windows locks we must store them. */ rc = store_file_lock(fid, length, pfLock->fl_start, lockType); } } else if (numUnlock) { /* For each stored lock that this unlock overlaps completely, unlock it. */ int stored_rc = 0; struct cifsLockInfo *li, *tmp; rc = 0; mutex_lock(&fid->lock_mutex); list_for_each_entry_safe(li, tmp, &fid->llist, llist) { if (pfLock->fl_start <= li->offset && (pfLock->fl_start + length) >= (li->offset + li->length)) { stored_rc = CIFSSMBLock(xid, pTcon, netfid, li->length, li->offset, 1, 0, li->type, FALSE); if (stored_rc) rc = stored_rc; list_del(&li->llist); kfree(li); } } mutex_unlock(&fid->lock_mutex); } } if (pfLock->fl_flags & FL_POSIX) posix_lock_file_wait(file, pfLock); FreeXid(xid); return rc; } ssize_t cifs_user_write(struct file *file, const char __user *write_data, size_t write_size, loff_t *poffset) { int rc = 0; unsigned int bytes_written = 0; unsigned int total_written; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; int xid, long_op; struct cifsFileInfo *open_file; cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; /* cFYI(1, (" write %d bytes to offset %lld of %s", write_size, *poffset, file->f_path.dentry->d_name.name)); */ if (file->private_data == NULL) return -EBADF; open_file = (struct cifsFileInfo *) file->private_data; xid = GetXid(); if (*poffset > file->f_path.dentry->d_inode->i_size) long_op = CIFS_VLONG_OP; /* writes past EOF take long time */ else long_op = CIFS_LONG_OP; for (total_written = 0; write_size > total_written; total_written += bytes_written) { rc = -EAGAIN; while (rc == -EAGAIN) { if (file->private_data == NULL) { /* file has been closed on us */ FreeXid(xid); /* if we have gotten here we have written some data and blocked, and the file has been freed on us while we blocked so return what we managed to write */ return total_written; } if (open_file->closePend) { FreeXid(xid); if (total_written) return total_written; else return -EBADF; } if (open_file->invalidHandle) { /* we could deadlock if we called filemap_fdatawait from here so tell reopen_file not to flush data to server now */ rc = cifs_reopen_file(file, FALSE); if (rc != 0) break; } rc = CIFSSMBWrite(xid, pTcon, open_file->netfid, min_t(const int, cifs_sb->wsize, write_size - total_written), *poffset, &bytes_written, NULL, write_data + total_written, long_op); } if (rc || (bytes_written == 0)) { if (total_written) break; else { FreeXid(xid); return rc; } } else *poffset += bytes_written; long_op = CIFS_STD_OP; /* subsequent writes fast - 15 seconds is plenty */ } cifs_stats_bytes_written(pTcon, total_written); /* since the write may have blocked check these pointers again */ if ((file->f_path.dentry) && (file->f_path.dentry->d_inode)) { struct inode *inode = file->f_path.dentry->d_inode; /* Do not update local mtime - server will set its actual value on write * inode->i_ctime = inode->i_mtime = * current_fs_time(inode->i_sb);*/ if (total_written > 0) { spin_lock(&inode->i_lock); if (*poffset > file->f_path.dentry->d_inode->i_size) i_size_write(file->f_path.dentry->d_inode, *poffset); spin_unlock(&inode->i_lock); } mark_inode_dirty_sync(file->f_path.dentry->d_inode); } FreeXid(xid); return total_written; } static ssize_t cifs_write(struct file *file, const char *write_data, size_t write_size, loff_t *poffset) { int rc = 0; unsigned int bytes_written = 0; unsigned int total_written; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; int xid, long_op; struct cifsFileInfo *open_file; cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; cFYI(1, ("write %zd bytes to offset %lld of %s", write_size, *poffset, file->f_path.dentry->d_name.name)); if (file->private_data == NULL) return -EBADF; open_file = (struct cifsFileInfo *)file->private_data; xid = GetXid(); if (*poffset > file->f_path.dentry->d_inode->i_size) long_op = CIFS_VLONG_OP; /* writes past EOF can be slow */ else long_op = CIFS_LONG_OP; for (total_written = 0; write_size > total_written; total_written += bytes_written) { rc = -EAGAIN; while (rc == -EAGAIN) { if (file->private_data == NULL) { /* file has been closed on us */ FreeXid(xid); /* if we have gotten here we have written some data and blocked, and the file has been freed on us while we blocked so return what we managed to write */ return total_written; } if (open_file->closePend) { FreeXid(xid); if (total_written) return total_written; else return -EBADF; } if (open_file->invalidHandle) { /* we could deadlock if we called filemap_fdatawait from here so tell reopen_file not to flush data to server now */ rc = cifs_reopen_file(file, FALSE); if (rc != 0) break; } if (experimEnabled || (pTcon->ses->server && ((pTcon->ses->server->secMode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) == 0))) { struct kvec iov[2]; unsigned int len; len = min((size_t)cifs_sb->wsize, write_size - total_written); /* iov[0] is reserved for smb header */ iov[1].iov_base = (char *)write_data + total_written; iov[1].iov_len = len; rc = CIFSSMBWrite2(xid, pTcon, open_file->netfid, len, *poffset, &bytes_written, iov, 1, long_op); } else rc = CIFSSMBWrite(xid, pTcon, open_file->netfid, min_t(const int, cifs_sb->wsize, write_size - total_written), *poffset, &bytes_written, write_data + total_written, NULL, long_op); } if (rc || (bytes_written == 0)) { if (total_written) break; else { FreeXid(xid); return rc; } } else *poffset += bytes_written; long_op = CIFS_STD_OP; /* subsequent writes fast - 15 seconds is plenty */ } cifs_stats_bytes_written(pTcon, total_written); /* since the write may have blocked check these pointers again */ if ((file->f_path.dentry) && (file->f_path.dentry->d_inode)) { /*BB We could make this contingent on superblock ATIME flag too */ /* file->f_path.dentry->d_inode->i_ctime = file->f_path.dentry->d_inode->i_mtime = CURRENT_TIME;*/ if (total_written > 0) { spin_lock(&file->f_path.dentry->d_inode->i_lock); if (*poffset > file->f_path.dentry->d_inode->i_size) i_size_write(file->f_path.dentry->d_inode, *poffset); spin_unlock(&file->f_path.dentry->d_inode->i_lock); } mark_inode_dirty_sync(file->f_path.dentry->d_inode); } FreeXid(xid); return total_written; } #ifdef CONFIG_CIFS_EXPERIMENTAL struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *cifs_inode) { struct cifsFileInfo *open_file = NULL; read_lock(&GlobalSMBSeslock); /* we could simply get the first_list_entry since write-only entries are always at the end of the list but since the first entry might have a close pending, we go through the whole list */ list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { if (open_file->closePend) continue; if (open_file->pfile && ((open_file->pfile->f_flags & O_RDWR) || (open_file->pfile->f_flags & O_RDONLY))) { if (!open_file->invalidHandle) { /* found a good file */ /* lock it so it will not be closed on us */ atomic_inc(&open_file->wrtPending); read_unlock(&GlobalSMBSeslock); return open_file; } /* else might as well continue, and look for another, or simply have the caller reopen it again rather than trying to fix this handle */ } else /* write only file */ break; /* write only files are last so must be done */ } read_unlock(&GlobalSMBSeslock); return NULL; } #endif struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *cifs_inode) { struct cifsFileInfo *open_file; int rc; /* Having a null inode here (because mapping->host was set to zero by the VFS or MM) should not happen but we had reports of on oops (due to it being zero) during stress testcases so we need to check for it */ if (cifs_inode == NULL) { cERROR(1, ("Null inode passed to cifs_writeable_file")); dump_stack(); return NULL; } read_lock(&GlobalSMBSeslock); refind_writable: list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { if (open_file->closePend) continue; if (open_file->pfile && ((open_file->pfile->f_flags & O_RDWR) || (open_file->pfile->f_flags & O_WRONLY))) { atomic_inc(&open_file->wrtPending); if (!open_file->invalidHandle) { /* found a good writable file */ read_unlock(&GlobalSMBSeslock); return open_file; } read_unlock(&GlobalSMBSeslock); /* Had to unlock since following call can block */ rc = cifs_reopen_file(open_file->pfile, FALSE); if (!rc) { if (!open_file->closePend) return open_file; else { /* start over in case this was deleted */ /* since the list could be modified */ read_lock(&GlobalSMBSeslock); atomic_dec(&open_file->wrtPending); goto refind_writable; } } /* if it fails, try another handle if possible - (we can not do this if closePending since loop could be modified - in which case we have to start at the beginning of the list again. Note that it would be bad to hold up writepages here (rather than in caller) with continuous retries */ cFYI(1, ("wp failed on reopen file")); read_lock(&GlobalSMBSeslock); /* can not use this handle, no write pending on this one after all */ atomic_dec(&open_file->wrtPending); if (open_file->closePend) /* list could have changed */ goto refind_writable; /* else we simply continue to the next entry. Thus we do not loop on reopen errors. If we can not reopen the file, for example if we reconnected to a server with another client racing to delete or lock the file we would not make progress if we restarted before the beginning of the loop here. */ } } read_unlock(&GlobalSMBSeslock); return NULL; } static int cifs_partialpagewrite(struct page *page, unsigned from, unsigned to) { struct address_space *mapping = page->mapping; loff_t offset = (loff_t)page->index << PAGE_CACHE_SHIFT; char *write_data; int rc = -EFAULT; int bytes_written = 0; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; struct inode *inode; struct cifsFileInfo *open_file; if (!mapping || !mapping->host) return -EFAULT; inode = page->mapping->host; cifs_sb = CIFS_SB(inode->i_sb); pTcon = cifs_sb->tcon; offset += (loff_t)from; write_data = kmap(page); write_data += from; if ((to > PAGE_CACHE_SIZE) || (from > to)) { kunmap(page); return -EIO; } /* racing with truncate? */ if (offset > mapping->host->i_size) { kunmap(page); return 0; /* don't care */ } /* check to make sure that we are not extending the file */ if (mapping->host->i_size - offset < (loff_t)to) to = (unsigned)(mapping->host->i_size - offset); open_file = find_writable_file(CIFS_I(mapping->host)); if (open_file) { bytes_written = cifs_write(open_file->pfile, write_data, to-from, &offset); atomic_dec(&open_file->wrtPending); /* Does mm or vfs already set times? */ inode->i_atime = inode->i_mtime = current_fs_time(inode->i_sb); if ((bytes_written > 0) && (offset)) { rc = 0; } else if (bytes_written < 0) { if (rc != -EBADF) rc = bytes_written; } } else { cFYI(1, ("No writeable filehandles for inode")); rc = -EIO; } kunmap(page); return rc; } static int cifs_writepages(struct address_space *mapping, struct writeback_control *wbc) { struct backing_dev_info *bdi = mapping->backing_dev_info; unsigned int bytes_to_write; unsigned int bytes_written; struct cifs_sb_info *cifs_sb; int done = 0; pgoff_t end; pgoff_t index; int range_whole = 0; struct kvec *iov; int len; int n_iov = 0; pgoff_t next; int nr_pages; __u64 offset = 0; struct cifsFileInfo *open_file; struct page *page; struct pagevec pvec; int rc = 0; int scanned = 0; int xid; cifs_sb = CIFS_SB(mapping->host->i_sb); /* * If wsize is smaller that the page cache size, default to writing * one page at a time via cifs_writepage */ if (cifs_sb->wsize < PAGE_CACHE_SIZE) return generic_writepages(mapping, wbc); if ((cifs_sb->tcon->ses) && (cifs_sb->tcon->ses->server)) if (cifs_sb->tcon->ses->server->secMode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) if (!experimEnabled) return generic_writepages(mapping, wbc); iov = kmalloc(32 * sizeof(struct kvec), GFP_KERNEL); if (iov == NULL) return generic_writepages(mapping, wbc); /* * BB: Is this meaningful for a non-block-device file system? * If it is, we should test it again after we do I/O */ if (wbc->nonblocking && bdi_write_congested(bdi)) { wbc->encountered_congestion = 1; kfree(iov); return 0; } xid = GetXid(); pagevec_init(&pvec, 0); if (wbc->range_cyclic) { index = mapping->writeback_index; /* Start from prev offset */ end = -1; } else { index = wbc->range_start >> PAGE_CACHE_SHIFT; end = wbc->range_end >> PAGE_CACHE_SHIFT; if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) range_whole = 1; scanned = 1; } retry: while (!done && (index <= end) && (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, PAGECACHE_TAG_DIRTY, min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1))) { int first; unsigned int i; first = -1; next = 0; n_iov = 0; bytes_to_write = 0; for (i = 0; i < nr_pages; i++) { page = pvec.pages[i]; /* * At this point we hold neither mapping->tree_lock nor * lock on the page itself: the page may be truncated or * invalidated (changing page->mapping to NULL), or even * swizzled back from swapper_space to tmpfs file * mapping */ if (first < 0) lock_page(page); else if (TestSetPageLocked(page)) break; if (unlikely(page->mapping != mapping)) { unlock_page(page); break; } if (!wbc->range_cyclic && page->index > end) { done = 1; unlock_page(page); break; } if (next && (page->index != next)) { /* Not next consecutive page */ unlock_page(page); break; } if (wbc->sync_mode != WB_SYNC_NONE) wait_on_page_writeback(page); if (PageWriteback(page) || !clear_page_dirty_for_io(page)) { unlock_page(page); break; } /* * This actually clears the dirty bit in the radix tree. * See cifs_writepage() for more commentary. */ set_page_writeback(page); if (page_offset(page) >= mapping->host->i_size) { done = 1; unlock_page(page); end_page_writeback(page); break; } /* * BB can we get rid of this? pages are held by pvec */ page_cache_get(page); len = min(mapping->host->i_size - page_offset(page), (loff_t)PAGE_CACHE_SIZE); /* reserve iov[0] for the smb header */ n_iov++; iov[n_iov].iov_base = kmap(page); iov[n_iov].iov_len = len; bytes_to_write += len; if (first < 0) { first = i; offset = page_offset(page); } next = page->index + 1; if (bytes_to_write + PAGE_CACHE_SIZE > cifs_sb->wsize) break; } if (n_iov) { /* Search for a writable handle every time we call * CIFSSMBWrite2. We can't rely on the last handle * we used to still be valid */ open_file = find_writable_file(CIFS_I(mapping->host)); if (!open_file) { cERROR(1, ("No writable handles for inode")); rc = -EBADF; } else { rc = CIFSSMBWrite2(xid, cifs_sb->tcon, open_file->netfid, bytes_to_write, offset, &bytes_written, iov, n_iov, CIFS_LONG_OP); atomic_dec(&open_file->wrtPending); if (rc || bytes_written < bytes_to_write) { cERROR(1, ("Write2 ret %d, wrote %d", rc, bytes_written)); /* BB what if continued retry is requested via mount flags? */ if (rc == -ENOSPC) set_bit(AS_ENOSPC, &mapping->flags); else set_bit(AS_EIO, &mapping->flags); } else { cifs_stats_bytes_written(cifs_sb->tcon, bytes_written); } } for (i = 0; i < n_iov; i++) { page = pvec.pages[first + i]; /* Should we also set page error on success rc but too little data written? */ /* BB investigate retry logic on temporary server crash cases and how recovery works when page marked as error */ if (rc) SetPageError(page); kunmap(page); unlock_page(page); end_page_writeback(page); page_cache_release(page); } if ((wbc->nr_to_write -= n_iov) <= 0) done = 1; index = next; } pagevec_release(&pvec); } if (!scanned && !done) { /* * We hit the last page and there is more work to be done: wrap * back to the start of the file */ scanned = 1; index = 0; goto retry; } if (wbc->range_cyclic || (range_whole && wbc->nr_to_write > 0)) mapping->writeback_index = index; FreeXid(xid); kfree(iov); return rc; } static int cifs_writepage(struct page *page, struct writeback_control *wbc) { int rc = -EFAULT; int xid; xid = GetXid(); /* BB add check for wbc flags */ page_cache_get(page); if (!PageUptodate(page)) { cFYI(1, ("ppw - page not up to date")); } /* * Set the "writeback" flag, and clear "dirty" in the radix tree. * * A writepage() implementation always needs to do either this, * or re-dirty the page with "redirty_page_for_writepage()" in * the case of a failure. * * Just unlocking the page will cause the radix tree tag-bits * to fail to update with the state of the page correctly. */ set_page_writeback(page); rc = cifs_partialpagewrite(page, 0, PAGE_CACHE_SIZE); SetPageUptodate(page); /* BB add check for error and Clearuptodate? */ unlock_page(page); end_page_writeback(page); page_cache_release(page); FreeXid(xid); return rc; } static int cifs_commit_write(struct file *file, struct page *page, unsigned offset, unsigned to) { int xid; int rc = 0; struct inode *inode = page->mapping->host; loff_t position = ((loff_t)page->index << PAGE_CACHE_SHIFT) + to; char *page_data; xid = GetXid(); cFYI(1, ("commit write for page %p up to position %lld for %d", page, position, to)); spin_lock(&inode->i_lock); if (position > inode->i_size) { i_size_write(inode, position); } spin_unlock(&inode->i_lock); if (!PageUptodate(page)) { position = ((loff_t)page->index << PAGE_CACHE_SHIFT) + offset; /* can not rely on (or let) writepage write this data */ if (to < offset) { cFYI(1, ("Illegal offsets, can not copy from %d to %d", offset, to)); FreeXid(xid); return rc; } /* this is probably better than directly calling partialpage_write since in this function the file handle is known which we might as well leverage */ /* BB check if anything else missing out of ppw such as updating last write time */ page_data = kmap(page); rc = cifs_write(file, page_data + offset, to-offset, &position); if (rc > 0) rc = 0; /* else if (rc < 0) should we set writebehind rc? */ kunmap(page); } else { set_page_dirty(page); } FreeXid(xid); return rc; } int cifs_fsync(struct file *file, struct dentry *dentry, int datasync) { int xid; int rc = 0; struct inode *inode = file->f_path.dentry->d_inode; xid = GetXid(); cFYI(1, ("Sync file - name: %s datasync: 0x%x", dentry->d_name.name, datasync)); rc = filemap_write_and_wait(inode->i_mapping); if (rc == 0) { rc = CIFS_I(inode)->write_behind_rc; CIFS_I(inode)->write_behind_rc = 0; } FreeXid(xid); return rc; } /* static void cifs_sync_page(struct page *page) { struct address_space *mapping; struct inode *inode; unsigned long index = page->index; unsigned int rpages = 0; int rc = 0; cFYI(1, ("sync page %p",page)); mapping = page->mapping; if (!mapping) return 0; inode = mapping->host; if (!inode) return; */ /* fill in rpages then result = cifs_pagein_inode(inode, index, rpages); */ /* BB finish */ /* cFYI(1, ("rpages is %d for sync page of Index %ld", rpages, index)); #if 0 if (rc < 0) return rc; return 0; #endif } */ /* * As file closes, flush all cached write data for this inode checking * for write behind errors. */ int cifs_flush(struct file *file, fl_owner_t id) { struct inode *inode = file->f_path.dentry->d_inode; int rc = 0; /* Rather than do the steps manually: lock the inode for writing loop through pages looking for write behind data (dirty pages) coalesce into contiguous 16K (or smaller) chunks to write to server send to server (prefer in parallel) deal with writebehind errors unlock inode for writing filemapfdatawrite appears easier for the time being */ rc = filemap_fdatawrite(inode->i_mapping); /* reset wb rc if we were able to write out dirty pages */ if (!rc) { rc = CIFS_I(inode)->write_behind_rc; CIFS_I(inode)->write_behind_rc = 0; } cFYI(1, ("Flush inode %p file %p rc %d", inode, file, rc)); return rc; } ssize_t cifs_user_read(struct file *file, char __user *read_data, size_t read_size, loff_t *poffset) { int rc = -EACCES; unsigned int bytes_read = 0; unsigned int total_read = 0; unsigned int current_read_size; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; int xid; struct cifsFileInfo *open_file; char *smb_read_data; char __user *current_offset; struct smb_com_read_rsp *pSMBr; xid = GetXid(); cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; if (file->private_data == NULL) { FreeXid(xid); return -EBADF; } open_file = (struct cifsFileInfo *)file->private_data; if ((file->f_flags & O_ACCMODE) == O_WRONLY) { cFYI(1, ("attempting read on write only file instance")); } for (total_read = 0, current_offset = read_data; read_size > total_read; total_read += bytes_read, current_offset += bytes_read) { current_read_size = min_t(const int, read_size - total_read, cifs_sb->rsize); rc = -EAGAIN; smb_read_data = NULL; while (rc == -EAGAIN) { int buf_type = CIFS_NO_BUFFER; if ((open_file->invalidHandle) && (!open_file->closePend)) { rc = cifs_reopen_file(file, TRUE); if (rc != 0) break; } rc = CIFSSMBRead(xid, pTcon, open_file->netfid, current_read_size, *poffset, &bytes_read, &smb_read_data, &buf_type); pSMBr = (struct smb_com_read_rsp *)smb_read_data; if (smb_read_data) { if (copy_to_user(current_offset, smb_read_data + 4 /* RFC1001 length field */ + le16_to_cpu(pSMBr->DataOffset), bytes_read)) { rc = -EFAULT; } if (buf_type == CIFS_SMALL_BUFFER) cifs_small_buf_release(smb_read_data); else if (buf_type == CIFS_LARGE_BUFFER) cifs_buf_release(smb_read_data); smb_read_data = NULL; } } if (rc || (bytes_read == 0)) { if (total_read) { break; } else { FreeXid(xid); return rc; } } else { cifs_stats_bytes_read(pTcon, bytes_read); *poffset += bytes_read; } } FreeXid(xid); return total_read; } static ssize_t cifs_read(struct file *file, char *read_data, size_t read_size, loff_t *poffset) { int rc = -EACCES; unsigned int bytes_read = 0; unsigned int total_read; unsigned int current_read_size; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; int xid; char *current_offset; struct cifsFileInfo *open_file; int buf_type = CIFS_NO_BUFFER; xid = GetXid(); cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; if (file->private_data == NULL) { FreeXid(xid); return -EBADF; } open_file = (struct cifsFileInfo *)file->private_data; if ((file->f_flags & O_ACCMODE) == O_WRONLY) cFYI(1, ("attempting read on write only file instance")); for (total_read = 0, current_offset = read_data; read_size > total_read; total_read += bytes_read, current_offset += bytes_read) { current_read_size = min_t(const int, read_size - total_read, cifs_sb->rsize); /* For windows me and 9x we do not want to request more than it negotiated since it will refuse the read then */ if ((pTcon->ses) && !(pTcon->ses->capabilities & CAP_LARGE_FILES)) { current_read_size = min_t(const int, current_read_size, pTcon->ses->server->maxBuf - 128); } rc = -EAGAIN; while (rc == -EAGAIN) { if ((open_file->invalidHandle) && (!open_file->closePend)) { rc = cifs_reopen_file(file, TRUE); if (rc != 0) break; } rc = CIFSSMBRead(xid, pTcon, open_file->netfid, current_read_size, *poffset, &bytes_read, &current_offset, &buf_type); } if (rc || (bytes_read == 0)) { if (total_read) { break; } else { FreeXid(xid); return rc; } } else { cifs_stats_bytes_read(pTcon, total_read); *poffset += bytes_read; } } FreeXid(xid); return total_read; } int cifs_file_mmap(struct file *file, struct vm_area_struct *vma) { struct dentry *dentry = file->f_path.dentry; int rc, xid; xid = GetXid(); rc = cifs_revalidate(dentry); if (rc) { cFYI(1, ("Validation prior to mmap failed, error=%d", rc)); FreeXid(xid); return rc; } rc = generic_file_mmap(file, vma); FreeXid(xid); return rc; } static void cifs_copy_cache_pages(struct address_space *mapping, struct list_head *pages, int bytes_read, char *data, struct pagevec *plru_pvec) { struct page *page; char *target; while (bytes_read > 0) { if (list_empty(pages)) break; page = list_entry(pages->prev, struct page, lru); list_del(&page->lru); if (add_to_page_cache(page, mapping, page->index, GFP_KERNEL)) { page_cache_release(page); cFYI(1, ("Add page cache failed")); data += PAGE_CACHE_SIZE; bytes_read -= PAGE_CACHE_SIZE; continue; } target = kmap_atomic(page, KM_USER0); if (PAGE_CACHE_SIZE > bytes_read) { memcpy(target, data, bytes_read); /* zero the tail end of this partial page */ memset(target + bytes_read, 0, PAGE_CACHE_SIZE - bytes_read); bytes_read = 0; } else { memcpy(target, data, PAGE_CACHE_SIZE); bytes_read -= PAGE_CACHE_SIZE; } kunmap_atomic(target, KM_USER0); flush_dcache_page(page); SetPageUptodate(page); unlock_page(page); if (!pagevec_add(plru_pvec, page)) __pagevec_lru_add(plru_pvec); data += PAGE_CACHE_SIZE; } return; } static int cifs_readpages(struct file *file, struct address_space *mapping, struct list_head *page_list, unsigned num_pages) { int rc = -EACCES; int xid; loff_t offset; struct page *page; struct cifs_sb_info *cifs_sb; struct cifsTconInfo *pTcon; unsigned int bytes_read = 0; unsigned int read_size, i; char *smb_read_data = NULL; struct smb_com_read_rsp *pSMBr; struct pagevec lru_pvec; struct cifsFileInfo *open_file; int buf_type = CIFS_NO_BUFFER; xid = GetXid(); if (file->private_data == NULL) { FreeXid(xid); return -EBADF; } open_file = (struct cifsFileInfo *)file->private_data; cifs_sb = CIFS_SB(file->f_path.dentry->d_sb); pTcon = cifs_sb->tcon; pagevec_init(&lru_pvec, 0); #ifdef CONFIG_CIFS_DEBUG2 cFYI(1, ("rpages: num pages %d", num_pages)); #endif for (i = 0; i < num_pages; ) { unsigned contig_pages; struct page *tmp_page; unsigned long expected_index; if (list_empty(page_list)) break; page = list_entry(page_list->prev, struct page, lru); offset = (loff_t)page->index << PAGE_CACHE_SHIFT; /* count adjacent pages that we will read into */ contig_pages = 0; expected_index = list_entry(page_list->prev, struct page, lru)->index; list_for_each_entry_reverse(tmp_page, page_list, lru) { if (tmp_page->index == expected_index) { contig_pages++; expected_index++; } else break; } if (contig_pages + i > num_pages) contig_pages = num_pages - i; /* for reads over a certain size could initiate async read ahead */ read_size = contig_pages * PAGE_CACHE_SIZE; /* Read size needs to be in multiples of one page */ read_size = min_t(const unsigned int, read_size, cifs_sb->rsize & PAGE_CACHE_MASK); #ifdef CONFIG_CIFS_DEBUG2 cFYI(1, ("rpages: read size 0x%x contiguous pages %d", read_size, contig_pages)); #endif rc = -EAGAIN; while (rc == -EAGAIN) { if ((open_file->invalidHandle) && (!open_file->closePend)) { rc = cifs_reopen_file(file, TRUE); if (rc != 0) break; } rc = CIFSSMBRead(xid, pTcon, open_file->netfid, read_size, offset, &bytes_read, &smb_read_data, &buf_type); /* BB more RC checks ? */ if (rc == -EAGAIN) { if (smb_read_data) { if (buf_type == CIFS_SMALL_BUFFER) cifs_small_buf_release(smb_read_data); else if (buf_type == CIFS_LARGE_BUFFER) cifs_buf_release(smb_read_data); smb_read_data = NULL; } } } if ((rc < 0) || (smb_read_data == NULL)) { cFYI(1, ("Read error in readpages: %d", rc)); break; } else if (bytes_read > 0) { task_io_account_read(bytes_read); pSMBr = (struct smb_com_read_rsp *)smb_read_data; cifs_copy_cache_pages(mapping, page_list, bytes_read, smb_read_data + 4 /* RFC1001 hdr */ + le16_to_cpu(pSMBr->DataOffset), &lru_pvec); i += bytes_read >> PAGE_CACHE_SHIFT; cifs_stats_bytes_read(pTcon, bytes_read); if ((bytes_read & PAGE_CACHE_MASK) != bytes_read) { i++; /* account for partial page */ /* server copy of file can have smaller size than client */ /* BB do we need to verify this common case ? this case is ok - if we are at server EOF we will hit it on next read */ /* break; */ } } else { cFYI(1, ("No bytes read (%d) at offset %lld . " "Cleaning remaining pages from readahead list", bytes_read, offset)); /* BB turn off caching and do new lookup on file size at server? */ break; } if (smb_read_data) { if (buf_type == CIFS_SMALL_BUFFER) cifs_small_buf_release(smb_read_data); else if (buf_type == CIFS_LARGE_BUFFER) cifs_buf_release(smb_read_data); smb_read_data = NULL; } bytes_read = 0; } pagevec_lru_add(&lru_pvec); /* need to free smb_read_data buf before exit */ if (smb_read_data) { if (buf_type == CIFS_SMALL_BUFFER) cifs_small_buf_release(smb_read_data); else if (buf_type == CIFS_LARGE_BUFFER) cifs_buf_release(smb_read_data); smb_read_data = NULL; } FreeXid(xid); return rc; } static int cifs_readpage_worker(struct file *file, struct page *page, loff_t *poffset) { char *read_data; int rc; page_cache_get(page); read_data = kmap(page); /* for reads over a certain size could initiate async read ahead */ rc = cifs_read(file, read_data, PAGE_CACHE_SIZE, poffset); if (rc < 0) goto io_error; else cFYI(1, ("Bytes read %d", rc)); file->f_path.dentry->d_inode->i_atime = current_fs_time(file->f_path.dentry->d_inode->i_sb); if (PAGE_CACHE_SIZE > rc) memset(read_data + rc, 0, PAGE_CACHE_SIZE - rc); flush_dcache_page(page); SetPageUptodate(page); rc = 0; io_error: kunmap(page); page_cache_release(page); return rc; } static int cifs_readpage(struct file *file, struct page *page) { loff_t offset = (loff_t)page->index << PAGE_CACHE_SHIFT; int rc = -EACCES; int xid; xid = GetXid(); if (file->private_data == NULL) { FreeXid(xid); return -EBADF; } cFYI(1, ("readpage %p at offset %d 0x%x\n", page, (int)offset, (int)offset)); rc = cifs_readpage_worker(file, page, &offset); unlock_page(page); FreeXid(xid); return rc; } static int is_inode_writable(struct cifsInodeInfo *cifs_inode) { struct cifsFileInfo *open_file; read_lock(&GlobalSMBSeslock); list_for_each_entry(open_file, &cifs_inode->openFileList, flist) { if (open_file->closePend) continue; if (open_file->pfile && ((open_file->pfile->f_flags & O_RDWR) || (open_file->pfile->f_flags & O_WRONLY))) { read_unlock(&GlobalSMBSeslock); return 1; } } read_unlock(&GlobalSMBSeslock); return 0; } /* We do not want to update the file size from server for inodes open for write - to avoid races with writepage extending the file - in the future we could consider allowing refreshing the inode only on increases in the file size but this is tricky to do without racing with writebehind page caching in the current Linux kernel design */ int is_size_safe_to_change(struct cifsInodeInfo *cifsInode, __u64 end_of_file) { if (!cifsInode) return 1; if (is_inode_writable(cifsInode)) { /* This inode is open for write at least once */ struct cifs_sb_info *cifs_sb; cifs_sb = CIFS_SB(cifsInode->vfs_inode.i_sb); if ( cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DIRECT_IO ) { /* since no page cache to corrupt on directio we can change size safely */ return 1; } if (i_size_read(&cifsInode->vfs_inode) < end_of_file) return 1; return 0; } else return 1; } static int cifs_prepare_write(struct file *file, struct page *page, unsigned from, unsigned to) { int rc = 0; loff_t i_size; loff_t offset; cFYI(1, ("prepare write for page %p from %d to %d", page, from, to)); if (PageUptodate(page)) return 0; /* If we are writing a full page it will be up to date, no need to read from the server */ if ((to == PAGE_CACHE_SIZE) && (from == 0)) { SetPageUptodate(page); return 0; } offset = (loff_t)page->index << PAGE_CACHE_SHIFT; i_size = i_size_read(page->mapping->host); if ((offset >= i_size) || ((from == 0) && (offset + to) >= i_size)) { /* * We don't need to read data beyond the end of the file. * zero it, and set the page uptodate */ simple_prepare_write(file, page, from, to); SetPageUptodate(page); } else if ((file->f_flags & O_ACCMODE) != O_WRONLY) { /* might as well read a page, it is fast enough */ rc = cifs_readpage_worker(file, page, &offset); } else { /* we could try using another file handle if there is one - but how would we lock it to prevent close of that handle racing with this read? In any case this will be written out by commit_write so is fine */ } /* we do not need to pass errors back e.g. if we do not have read access to the file because cifs_commit_write will do the right thing. -- shaggy */ return 0; } const struct address_space_operations cifs_addr_ops = { .readpage = cifs_readpage, .readpages = cifs_readpages, .writepage = cifs_writepage, .writepages = cifs_writepages, .prepare_write = cifs_prepare_write, .commit_write = cifs_commit_write, .set_page_dirty = __set_page_dirty_nobuffers, /* .sync_page = cifs_sync_page, */ /* .direct_IO = */ }; /* * cifs_readpages requires the server to support a buffer large enough to * contain the header plus one complete page of data. Otherwise, we need * to leave cifs_readpages out of the address space operations. */ const struct address_space_operations cifs_addr_ops_smallbuf = { .readpage = cifs_readpage, .writepage = cifs_writepage, .writepages = cifs_writepages, .prepare_write = cifs_prepare_write, .commit_write = cifs_commit_write, .set_page_dirty = __set_page_dirty_nobuffers, /* .sync_page = cifs_sync_page, */ /* .direct_IO = */ };
627351.c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. //************************ Includes ***************************** // This library #include <k4ainternal/imu.h> // Dependent libraries #include <k4ainternal/logging.h> #include <k4ainternal/math.h> #include <k4ainternal/queue.h> #include <k4ainternal/calibration.h> // System dependencies #include <stdlib.h> #include <string.h> #ifdef __cplusplus extern "C" { #endif //**************Symbolic Constant Macros (defines) ************* #define IMU_TEMPERATURE_DIVISOR 256 #define IMU_TEMPERATURE_CONSTANT 15 #define IMU_SCALE_NORMALIZATION 1000000 // The raw readings from accelerometer are in g's and in the SDK g = 9.81 m/s^2 is used as constant factor to convert // it. This gravitational constant is consistent with the parameter used in device calibration. Changing this constant // to a different value would break the IMU accelerometer calibration. #define IMU_GRAVITATIONAL_CONSTANT 9.81f // The raw readings from gyroscope are in degrees per second and in the SDK, is converted to radians per second. #define PI 3.141592f #define IMU_RADIANS_PER_DEGREES (PI / 180.0f) // Set the max timestamp expected from the IMU after starting it with the color camera. If this value is too large then // starting and stopping the IMU & color camera in rapid succession can result in timestamps going backwards near each // IMU start. #define MAX_IMU_TIME_STAMP_MS 1500 //************************ Typedefs ***************************** // parameters used to compute the calibrated IMU typedef struct _imu_calibration_rectifier_t { float bias_gyro[3]; float bias_accel[3]; float mixing_matrix_gyro[3 * 3]; float mixing_matrix_accel[3 * 3]; } imu_calibration_rectifier_t; typedef struct _imu_context_t { TICK_COUNTER_HANDLE tick; colormcu_t color_mcu; queue_t queue; uint32_t dropped_count; float temperature; k4a_calibration_imu_t gyro_calibration; k4a_calibration_imu_t accel_calibration; imu_calibration_rectifier_t calibration_rectifier; bool running; bool wait_for_ts_reset; } imu_context_t; //************ Declarations (Statics and globals) *************** K4A_DECLARE_CONTEXT(imu_t, imu_context_t); //******************* Function Prototypes *********************** usb_cmd_stream_cb_t imu_capture_ready; //*********************** Functions ***************************** /** * Callback function used with the command module to handle received captures from the IMU device * * @param result * Status of the received capture. If this isn't K4A_RESULT_SUCCEEDED, the capture content is not guaranteed and * should be discarded. * * @param image * image resource for IMU. This contains all of the information on the received capture. * * @param p_context * Callback context. In this function, this is the handle to the initiating object that has the queue. * * \remarks * Capture is safe to use during this callback as the caller ensures a ref is held. If the callback function wants the * capture to exist beyond this callback, a ref must be taken with capture_inc_ref(). */ void imu_capture_ready(k4a_result_t result, k4a_image_t image, void *p_context) { imu_context_t *p_imu = (imu_context_t *)p_context; uint8_t *p_packet; imu_payload_metadata_t *p_metadata = NULL; xyz_vector_t *p_gyro_data = NULL; xyz_vector_t *p_accel_data = NULL; size_t capture_size; // place capture in queue if (result != K4A_RESULT_SUCCEEDED) { LOG_WARNING("A streaming IMU transfer failed", 0); // Stop the queue - this will notify users waiting for data. queue_stop(p_imu->queue); } if (K4A_SUCCEEDED(result)) { result = K4A_RESULT_FROM_BOOL(image != NULL); } if (K4A_SUCCEEDED(result)) { // Take apart the capture packet data and create captures for each sample p_packet = image_get_buffer(image); capture_size = image_get_size(image); if (capture_size < sizeof(imu_payload_metadata_t)) { LOG_ERROR("IMU streaming payload size too small for imu_payload_metadata_t: %zu", capture_size); return; } else { p_metadata = (imu_payload_metadata_t *)p_packet; } if (capture_size < sizeof(imu_payload_metadata_t) + (p_metadata->gyro.sample_count * sizeof(xyz_vector_t))) { LOG_ERROR("IMU streaming payload size too small for gyro samples: %u size: %zu", p_metadata->gyro.sample_count, capture_size); return; } else { p_gyro_data = (xyz_vector_t *)(p_packet + sizeof(imu_payload_metadata_t)); } if (capture_size < sizeof(imu_payload_metadata_t) + (p_metadata->gyro.sample_count * sizeof(xyz_vector_t)) + (p_metadata->accel.sample_count * sizeof(xyz_vector_t))) { LOG_ERROR("IMU streaming payload size too small for accelerometer samples: %u size: %zu", p_metadata->accel.sample_count, capture_size); return; } else { p_accel_data = (xyz_vector_t *)(p_packet + sizeof(imu_payload_metadata_t) + (p_metadata->gyro.sample_count * sizeof(xyz_vector_t))); } if (p_metadata->gyro.sample_count != p_metadata->accel.sample_count) { LOG_WARNING("IMU payload sample accel(%d) != sample gyro(%d)", p_metadata->accel.sample_count, p_metadata->gyro.sample_count); } for (uint32_t i = 0; i < p_metadata->gyro.sample_count && i < p_metadata->accel.sample_count; i++) { result = K4A_RESULT_SUCCEEDED; // When starting the color camera the TS of the IMU gets reset back to 0. The process takes a couple seconds // at start up. So when the color camera start is recent this code waits for the IMU timestamp to drop to a // time near zero. if (p_imu->wait_for_ts_reset) { if (K4A_90K_HZ_TICK_TO_USEC(p_accel_data[i].pts) > (MAX_IMU_TIME_STAMP_MS * 1000)) { result = K4A_RESULT_FAILED; // dropping this IMU sample p_imu->dropped_count++; } else { if (p_imu->dropped_count != 0) { LOG_INFO("IMU startup dropped last %d samples, the timestamp is too large", p_imu->dropped_count); } p_imu->dropped_count = 0; p_imu->wait_for_ts_reset = false; } } k4a_capture_t imu_capture = NULL; k4a_image_t imu_image = NULL; if (K4A_SUCCEEDED(result)) { result = TRACE_CALL( image_create_empty_internal(ALLOCATION_SOURCE_IMU, sizeof(k4a_imu_sample_t), &imu_image)); } if (K4A_SUCCEEDED(result)) { k4a_imu_sample_t sample = { 0 }; sample.temperature = ((float)(p_metadata->temperature.value) / IMU_TEMPERATURE_DIVISOR) + IMU_TEMPERATURE_CONSTANT; sample.gyro_sample.xyz.x = (float)p_gyro_data[i].rx * p_metadata->gyro.sensitivity * IMU_RADIANS_PER_DEGREES / IMU_SCALE_NORMALIZATION; sample.gyro_sample.xyz.y = (float)p_gyro_data[i].ry * p_metadata->gyro.sensitivity * IMU_RADIANS_PER_DEGREES / IMU_SCALE_NORMALIZATION; sample.gyro_sample.xyz.z = (float)p_gyro_data[i].rz * p_metadata->gyro.sensitivity * IMU_RADIANS_PER_DEGREES / IMU_SCALE_NORMALIZATION; sample.gyro_timestamp_usec = K4A_90K_HZ_TICK_TO_USEC(p_gyro_data[i].pts); sample.acc_sample.xyz.x = (float)p_accel_data[i].rx * p_metadata->accel.sensitivity * IMU_GRAVITATIONAL_CONSTANT / IMU_SCALE_NORMALIZATION; sample.acc_sample.xyz.y = (float)p_accel_data[i].ry * p_metadata->accel.sensitivity * IMU_GRAVITATIONAL_CONSTANT / IMU_SCALE_NORMALIZATION; sample.acc_sample.xyz.z = (float)p_accel_data[i].rz * p_metadata->accel.sensitivity * IMU_GRAVITATIONAL_CONSTANT / IMU_SCALE_NORMALIZATION; sample.acc_timestamp_usec = K4A_90K_HZ_TICK_TO_USEC(p_accel_data[i].pts); memcpy(image_get_buffer(imu_image), &sample, sizeof(k4a_imu_sample_t)); } if (K4A_SUCCEEDED(result)) { result = TRACE_CALL(capture_create(&imu_capture)); } if (K4A_SUCCEEDED(result)) { capture_set_imu_image(imu_capture, imu_image); queue_push(p_imu->queue, imu_capture); } if (imu_image) { // remove local ref on image image_dec_ref(imu_image); } if (imu_capture) { // remove local ref on capture capture_dec_ref(imu_capture); // release our interest in the new capture } } } } /** * Function to refresh the bias and mixing matrix rectifier for calibration based on sensor temperature * * @param calibration * Handle to this calibration parameters * * @param temperature * Value of sensor temperature * * @param bias * Pointer to bias rectifier * * @param mixing_matrix * Pointer to mixing matrix rectifier */ static void imu_refresh_bias_and_mixing_matrix(const k4a_calibration_imu_t calibration, float temperature, float *bias, float *mixing_matrix) { assert(calibration.model_type_mask); const unsigned int MODEL_COEFFICIENTS = sizeof(calibration.bias_temperature_model) / (3 * sizeof(float)); for (unsigned int row = 0; row < 3; ++row) { bias[row] = math_eval_poly_3(temperature, &calibration.bias_temperature_model[row * MODEL_COEFFICIENTS]); for (unsigned int col = 0; col < 3; ++col) { mixing_matrix[3 * row + col] = math_eval_poly_3(temperature, &calibration.mixing_matrix_temperature_model[(3 * row + col) * MODEL_COEFFICIENTS]); } } } /** * Function to update the bias and mixing matrix based on sensor temperature * * @param gyro_temperature * Value of gyro sensor temperature * * @param accel_temperature * Value of accel sensor temperature * * @param p_imu * Pointer to the imu context, which includes the calibration information. */ static void imu_update_calibration_with_temperature(float gyro_temperature, float accel_temperature, imu_context_t *p_imu) { imu_refresh_bias_and_mixing_matrix(p_imu->gyro_calibration, gyro_temperature, p_imu->calibration_rectifier.bias_gyro, p_imu->calibration_rectifier.mixing_matrix_gyro); imu_refresh_bias_and_mixing_matrix(p_imu->accel_calibration, accel_temperature, p_imu->calibration_rectifier.bias_accel, p_imu->calibration_rectifier.mixing_matrix_accel); } /** * Function for creating and initializing the IMU object associated with * a specific instance. * * @param tick_handle * handle to get the system tick * * @param color_mcu * Handle to entity that owns the handle to talk with the hardware * * @param p_imu_handle * Pointer to where to place the object handle * * @return * K4A_RESULT_SUCCEEDED Operation successful * K4A_RESULT_FAILED Operation failed */ k4a_result_t imu_create(TICK_COUNTER_HANDLE tick_handle, colormcu_t color_mcu, calibration_t calibration_handle, imu_t *p_imu_handle) { k4a_result_t result = K4A_RESULT_FAILED; imu_context_t *p_imu; // Validate parameters RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, color_mcu == NULL); RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, calibration_handle == NULL); RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, tick_handle == NULL); RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, p_imu_handle == NULL); // Create the handle p_imu = imu_t_create(p_imu_handle); // Assign handle to device p_imu->color_mcu = color_mcu; p_imu->tick = tick_handle; p_imu->temperature = 0; // Create allocator handle result = TRACE_CALL( queue_create(QUEUE_CALC_DEPTH(K4A_IMU_SAMPLE_RATE, QUEUE_DEFAULT_DEPTH_USEC), "Queue_imu", &p_imu->queue)); if (K4A_SUCCEEDED(result)) { // Register stream callback with stream engine result = colormcu_imu_register_stream_cb(color_mcu, imu_capture_ready, p_imu); } if (K4A_SUCCEEDED(result)) { result = TRACE_CALL( calibration_get_imu(calibration_handle, K4A_CALIBRATION_TYPE_GYRO, &p_imu->gyro_calibration)); } if (K4A_SUCCEEDED(result)) { result = TRACE_CALL( calibration_get_imu(calibration_handle, K4A_CALIBRATION_TYPE_ACCEL, &p_imu->accel_calibration)); } if (K4A_SUCCEEDED(result)) { imu_update_calibration_with_temperature(p_imu->gyro_calibration.temperature_in_c, p_imu->accel_calibration.temperature_in_c, p_imu); } if (K4A_SUCCEEDED(result)) { // SDK may have crashed last session, so call stop() p_imu->running = true; imu_stop(*p_imu_handle); } if (K4A_FAILED(result)) { imu_destroy(*p_imu_handle); *p_imu_handle = NULL; } return result; } /** * Function for destroying this instance of the IMU object * * @param imu_handle * Handle to this specific object * * @return * None */ void imu_destroy(imu_t imu_handle) { imu_context_t *imu = imu_t_get_context(imu_handle); // implicit stop imu_stop(imu_handle); // Destroy queue if (imu->queue != NULL) { queue_destroy(imu->queue); imu->queue = NULL; } imu_t_destroy(imu_handle); } /** * Function to adjust the sensor measurement according to calibration data * * @param p_imu_sample * Pointer to this specific imu sample * * @param p_imu * Pointer to the imu context, which includes the calibration information. * */ static void imu_apply_intrinsic_calibration(k4a_imu_sample_t *p_imu_sample, const imu_context_t *p_imu) { math_affine_transform_3(p_imu->calibration_rectifier.mixing_matrix_gyro, p_imu_sample->gyro_sample.v, p_imu->calibration_rectifier.bias_gyro, p_imu_sample->gyro_sample.v); math_quadratic_transform_3(p_imu->calibration_rectifier.mixing_matrix_accel, p_imu->accel_calibration.second_order_scaling, p_imu_sample->acc_sample.v, p_imu->calibration_rectifier.bias_accel, p_imu_sample->acc_sample.v); } /** * Function to get the next capture in the stream. Note, if excessive time has passed since the last call, some * captures may have been discarded. * * @param imu_handle * Handle to this specific object * * @param imu_sample * Pointer to where the sample will be written to * * @param timeout_in_ms * Number of mSecs to wait until timing out for getting a capture * * @return * K4A_WAIT_RESULT_TIMEOUT Operation timed out * K4A_WAIT_RESULT_SUCCEEDED Operation was successful and a capture was retrieved * K4A_WAIT_RESULT_FAILED Operation failed due to invalid input or unknown reason */ k4a_wait_result_t imu_get_sample(imu_t imu_handle, k4a_imu_sample_t *imu_sample, int32_t timeout_in_ms) { RETURN_VALUE_IF_HANDLE_INVALID(K4A_WAIT_RESULT_FAILED, imu_t, imu_handle); RETURN_VALUE_IF_ARG(K4A_WAIT_RESULT_FAILED, (imu_sample == NULL)); k4a_wait_result_t wresult = K4A_WAIT_RESULT_SUCCEEDED; imu_context_t *p_imu = imu_t_get_context(imu_handle); k4a_capture_t capture = NULL; k4a_image_t image = NULL; uint8_t *buffer = NULL; wresult = queue_pop(p_imu->queue, timeout_in_ms, &capture); if (wresult == K4A_WAIT_RESULT_SUCCEEDED) { k4a_result_t result = K4A_RESULT_FROM_BOOL((image = capture_get_imu_image(capture)) != NULL); if (K4A_FAILED(result)) { wresult = K4A_WAIT_RESULT_FAILED; } } if (wresult == K4A_WAIT_RESULT_SUCCEEDED) { buffer = image_get_buffer(image); k4a_result_t result = K4A_RESULT_FROM_BOOL(buffer != NULL); if (K4A_FAILED(result)) { wresult = K4A_WAIT_RESULT_FAILED; } } if (wresult == K4A_WAIT_RESULT_SUCCEEDED) { assert(sizeof(k4a_imu_sample_t) <= image_get_size(image)); memcpy(imu_sample, buffer, sizeof(k4a_imu_sample_t)); // update the calibration when the temperature changes more than 0.25C if ((imu_sample->temperature > (p_imu->temperature + 0.25f)) || (imu_sample->temperature < (p_imu->temperature - 0.25f))) { imu_update_calibration_with_temperature(imu_sample->temperature, imu_sample->temperature, p_imu); p_imu->temperature = imu_sample->temperature; } // The application of intrinsic calibration is delayed until the IMU sample is queried. imu_apply_intrinsic_calibration(imu_sample, p_imu); } if (image) { image_dec_ref(image); } if (capture) { capture_dec_ref(capture); } return wresult; } /** * Function to start the IMU stream. * * @param imu_handle * Handle to this specific object * * @return * K4A_RESULT_SUCCEEDED Operation was successful * K4A_RESULT_FAILED Operation was not successful */ k4a_result_t imu_start(imu_t imu_handle, tickcounter_ms_t color_camera_start_tick) { imu_context_t *p_imu = imu_t_get_context(imu_handle); k4a_result_t result = K4A_RESULT_SUCCEEDED; tickcounter_ms_t current_tick; RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, p_imu == NULL); p_imu->running = true; queue_enable(p_imu->queue); p_imu->wait_for_ts_reset = false; if (color_camera_start_tick != 0) { // Color camera start reset's time stamp. So it can cause IMU time stamps to look as if they are going // backwards. If start happened recently, then we will wait for time stamps reset before sending them on to the // user. However we only do this when we know the color camera recently started. result = K4A_RESULT_FROM_BOOL(tickcounter_get_current_ms(p_imu->tick, &current_tick) == 0); if (K4A_SUCCEEDED(result)) { if ((current_tick - color_camera_start_tick) <= MAX_IMU_TIME_STAMP_MS) { p_imu->wait_for_ts_reset = true; } } } if (K4A_SUCCEEDED(result)) { result = colormcu_imu_start_streaming(p_imu->color_mcu); } return result; } /** * Function to stop the IMU stream. * * @param imu_handle * Handle to this specific object * */ void imu_stop(imu_t imu_handle) { imu_context_t *p_imu = imu_t_get_context(imu_handle); RETURN_VALUE_IF_ARG(VOID_VALUE, p_imu == NULL); // It is ok to call this multiple times, so no lock. Only doing it once is an optimization to not stop if the sensor // was never started. if (p_imu->running) { colormcu_imu_stop_streaming(p_imu->color_mcu); queue_disable(p_imu->queue); } p_imu->running = false; } /** * Function returning a pointer to extrinsic calibration of gyro. * * @param imu_handle * Handle to this specific object * */ k4a_calibration_extrinsics_t *imu_get_gyro_extrinsics(imu_t imu_handle) { imu_context_t *p_imu = imu_t_get_context(imu_handle); RETURN_VALUE_IF_ARG(0, p_imu == NULL); return &p_imu->gyro_calibration.depth_to_imu; } /** * Function returning a pointer to extrinsic calibration of accel. * * @param imu_handle * Handle to this specific object * */ k4a_calibration_extrinsics_t *imu_get_accel_extrinsics(imu_t imu_handle) { imu_context_t *p_imu = imu_t_get_context(imu_handle); RETURN_VALUE_IF_ARG(0, p_imu == NULL); return &p_imu->accel_calibration.depth_to_imu; } #ifdef __cplusplus } #endif