commit 0956063d068271849812db721421ea1a6dd8a82c Author: Garfield Date: Mon Nov 16 12:07:59 2026 +0800 ✨ 初始提交:月读第三方书源插件集合 每个书源一个独立插件目录,含微信读书公众号订阅、书架导入等完整功能。 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> diff --git a/moonsource-qidian.koplugin/README.md b/moonsource-qidian.koplugin/README.md new file mode 100644 index 0000000..8db8ef4 --- /dev/null +++ b/moonsource-qidian.koplugin/README.md @@ -0,0 +1,22 @@ +# 起点中文网 + +| 能力 | 是否支持 | 备注 | +| --- | --- | --- | +| 扫码登录 | 支持 | 完成官方站点兑换后再校验账号;新扫码已购流程仍需实测 | +| 手机短信登录 | 已实现,未实测 | 支持图片验证码及腾讯验证桥,安全验证由用户完成 | +| 浏览器登录与 Cookie 导入 | 支持 | 支持扩展回传及手动粘贴 | +| 设备密码登录 | 不支持 | 短信登录不是密码登录 | +| 书架拉取 | 支持 | 分组、分页及书号去重 | +| 书架新增与移出 | 已实现,未实测 | 本地先生效,联网后推送;远端写入回读未完成 | +| 分类书城 | 支持 | 男/女频、子分类、资费、字数、状态、签约、更新时间和排序 | +| 榜单与搜索 | 支持 | 七种榜单;列表默认聚合 60 本,搜索最多 200 本 | +| 详情与分卷目录 | 支持 | 保留章节 ID 和已有目录缓存 | +| 免费与已购正文 | 支持 | 按官网权限解码,不购买或绕过权限 | +| 章节与全本缓存 | 支持 | 已缓存章节可离线打开;未购提示不计入正文缓存 | +| 阅读进度同步 | 部分支持 | 仅章节位置,无章内比例;远端写后回读未实测 | +| 笔记与统计同步 | 不支持 | 仅本地保存 | +| 整书书友圈 | 部分支持 | 详情展示最多三条帖子预览,不是完整列表 | +| 章评与段评 | 支持 | 真正章末评论与段落评论共存,支持定位、分页及缓存 | +| 评论回复 | 部分支持 | 仅服务器附带的二级预览,可本地翻阅;没有完整回复分页 | +| 评论写操作 | 不支持 | 不发评、不点赞、不删评 | +| 账号切换 | 部分支持 | 同账号可续期;换号须确认清理旧本地数据,未同步记录会丢失 | diff --git a/moonsource-qidian.koplugin/_meta.lua b/moonsource-qidian.koplugin/_meta.lua new file mode 100644 index 0000000..f4f59ec --- /dev/null +++ b/moonsource-qidian.koplugin/_meta.lua @@ -0,0 +1,5 @@ +local _ = require("gettext") +return { + fullname = _("月读书源:起点中文网"), + description = _("给月读增加「起点中文网」书源。需要同时安装月读,与平台官方无关。"), +} diff --git a/moonsource-qidian.koplugin/main.lua b/moonsource-qidian.koplugin/main.lua new file mode 100644 index 0000000..7c20ca0 --- /dev/null +++ b/moonsource-qidian.koplugin/main.lua @@ -0,0 +1,9 @@ +--[[-- +KOReader 只认带 main.lua 的插件目录;书源本身不需要任何插件钩子,月读读取旁边的 moon_source.lua。 +--]] +local WidgetContainer = require("ui/widget/container/widgetcontainer") + +return WidgetContainer:extend{ + name = "moonsource_qidian", + is_doc_only = false, +} diff --git a/moonsource-qidian.koplugin/moon_source.lua b/moonsource-qidian.koplugin/moon_source.lua new file mode 100644 index 0000000..4e0e237 --- /dev/null +++ b/moonsource-qidian.koplugin/moon_source.lua @@ -0,0 +1,15 @@ +--[[-- +月读第三方书源描述:起点中文网。契约见月读 examples/moonsource-demo.koplugin/moon_source.lua。 +--]] + +local function lazy(module) + return setmetatable({}, { __index = function(_, key) return require(module)[key] end }) +end + +return { + api = 1, + provides = { source = true }, + meta = function() return require("moonsource_qidian.source").meta() end, + new = function() return require("moonsource_qidian.source").new() end, + setting = lazy("moonsource_qidian.setting"), +} diff --git a/moonsource-qidian.koplugin/moonsource_qidian/_meta.lua b/moonsource-qidian.koplugin/moonsource_qidian/_meta.lua new file mode 100644 index 0000000..12be3eb --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/_meta.lua @@ -0,0 +1,16 @@ +--[[-- +书源元信息:id / 名称 / 类型,加上启用页展示用的说明与能力清单。`init.lua` 的 `meta()` 直接返回本表。 + +@module moonsource_qidian._meta +--]] + +local _ = require("l10n").get("moonsource_qidian") + +return { + id = "ext.qidian", + name = _("起点中文网"), + type = "chapter", + description = _("起点中文网书架与在线阅读"), + abilities = { _("扫码登录"), _("手机号验证码登录"), _("搜索与发现"), _("书架同步"), + _("进度同步"), _("VIP 章节"), _("他人段评"), _("章节评论"), _("书友圈帖子预览") }, +} diff --git a/moonsource-qidian.koplugin/moonsource_qidian/browse.lua b/moonsource-qidian.koplugin/moonsource_qidian/browse.lua new file mode 100644 index 0000000..ddbbd93 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/browse.lua @@ -0,0 +1,154 @@ +--[[-- +起点分类书库:动态男频分类、官网筛选、匿名分页。节点保留全部已选条件。 + +@module moonsource_qidian.browse +--]] + +local Client = require("moonsource_qidian.client") +local Mapper = require("moonsource_qidian.mapper") +local Browse = require("source.browse") +local Text = require("utils.text") +local _ = require("l10n").get("moonsource_qidian") + +local Library = {} +-- 官网动态标签:预译已知标签,未知标签仍沿用 gettext 的原文回退。 +local LABELS = { + ["100~200万"] = _("100~200万"), ["200万以上"] = _("200万以上"), + ["30~50万"] = _("30~50万"), ["30万以下"] = _("30万以下"), ["50~100万"] = _("50~100万"), + ["VIP"] = _("VIP"), ["一月内"] = _("一月内"), ["七日内"] = _("七日内"), ["三日内"] = _("三日内"), + ["东方玄幻"] = _("东方玄幻"), ["二级分类"] = _("二级分类"), ["人气"] = _("人气"), + ["半月内"] = _("半月内"), ["品质"] = _("品质"), ["完本"] = _("完本"), ["属性"] = _("属性"), + ["异世大陆"] = _("异世大陆"), ["月票"] = _("月票"), ["点击"] = _("点击"), + ["王朝争霸"] = _("王朝争霸"), ["签约作品"] = _("签约作品"), ["精品小说"] = _("精品小说"), + ["连载"] = _("连载"), ["高武世界"] = _("高武世界"), +} +local KEYS = { catId = true, subCatId = true, isvip = true, size = true, isfinish = true, + sign = true, update = true, orderBy = true, gender = true } +-- m.qdmm.com 的分类目录目前返回风控页;这些是电脑官网 /all/ 实际公布的女频分类。 +local FEMALE = { + { catId = 80, catName = "古代言情" }, { catId = 81, catName = "仙侠奇缘" }, + { catId = 82, catName = "现代言情" }, { catId = 83, catName = "浪漫青春" }, + { catId = 84, catName = "玄幻言情" }, { catId = 85, catName = "悬疑推理" }, + { catId = 30083, catName = "短篇" }, { catId = 86, catName = "科幻空间" }, + { catId = 88, catName = "游戏竞技" }, { catId = 87, catName = "轻小说" }, + { catId = 30120, catName = "现实生活" }, +} + +local function node(params) + return "category?" .. Text.formEncode(params) +end + +local function change(params, key, value) + local out = {} + for name, current in pairs(params) do out[name] = current end + out[key] = value == "" and nil or tostring(value) + if key == "catId" then out.subCatId = nil end + if key == "gender" then + out.catId = value == "female" and "80" or "21" + out.subCatId = nil + end + return node(out) +end + +local function groups(params, categories, data) + local current = node(params) + local channels = Browse.group({ + { id = params.gender == "male" and current or change(params, "gender", "male"), title = _("男频") }, + { id = params.gender == "female" and current or change(params, "gender", "female"), title = _("女频") }, + { id = "yuepiao:-1", title = _("排行榜") }, + }, current) + channels.title = _("频道") + local cats = {} + for _idx, cat in ipairs(params.gender == "female" and FEMALE or categories) do + cats[#cats + 1] = { id = change(params, "catId", cat.catId), title = _(cat.catName) } + end + local category = Browse.group(cats, current) + category.title = _("分类") + local out = { channels, category } + local sorts = {} + for _idx, item in ipairs(data.orderBy.items) do + sorts[#sorts + 1] = { id = change(params, "orderBy", item.value), title = LABELS[item.text] or _(item.text) } + end + local sort = Browse.group(sorts, current) + sort.title = _("排序") + out[#out + 1] = sort + for _idx, filter in ipairs(data.filters) do + local chips = {} + for _item, item in ipairs(filter.items) do + local value = tostring(item.value) + chips[#chips + 1] = { + id = change(params, filter.key, value), + title = LABELS[item.text] or _(item.text), + } + end + local group = Browse.group(chips, current) + group.title = filter.key == "subCatId" and _("子分类") + or (LABELS[filter.title] or _(filter.title)) + out[#out + 1] = group + end + return out +end + +---@param self QidianSource +---@param opts { node?: string, limit?: integer } +---@param cb fun(res: table|nil, err: string|nil) +---@return HttpJob +function Library.run(self, opts, cb) + local params = { gender = "male", catId = "21" } + if opts.node then + for key, value in opts.node:sub(10):gmatch("([^&=]+)=([^&]*)") do + if not KEYS[key] or (key ~= "gender" and not value:match("^%d*$")) then + return require("source.base").defer(cb, nil, _("起点分类条件无效")) + end + params[key] = Text.urlDecode(value) + end + end + if params.gender ~= "male" and params.gender ~= "female" then + return require("source.base").defer(cb, nil, _("起点分类条件无效")) + end + local cancelled, job = false, nil + local function load(categories) + local pending = true + local inner = Client.categoryAsync(params.catId, function(data, err) + pending = false + if cancelled then return end + if not data then cb(nil, err); return end + if type(data.filters) ~= "table" or type(data.orderBy) ~= "table" + or type(data.orderBy.items) ~= "table" then cb(nil, _("起点分类响应无效")); return end + job = Browse.pages(function(page, done) + local query = {} + for key, value in pairs(params) do query[key] = value end + query.pageNum = page + return Client.categoryListAsync(query, function(list, reason) + if not list then done(nil, reason); return end + local more = list.isLast ~= 1 and list.isLast ~= true + and (not tonumber(list.pageMax) or page < tonumber(list.pageMax)) + done(Mapper.rank(list), nil, more) + end) + end, opts.limit or 60, groups(params, categories, data), function(result, reason) + if not cancelled then cb(result, reason) end + end) + end) + if pending then job = inner end + end + if self.category_info then + load(self.category_info) + else + local pending = true + local inner = Client.categoryAsync(nil, function(data, err) + pending = false + if cancelled then return end + if not data then cb(nil, err); return end + if type(data.info) ~= "table" or #data.info == 0 then cb(nil, _("起点分类响应无效")); return end + self.category_info = data.info + load(data.info) + end) + if pending then job = inner end + end + return { cancel = function() + cancelled = true + if job then job.cancel() end + end } +end + +return Library diff --git a/moonsource-qidian.koplugin/moonsource_qidian/client.lua b/moonsource-qidian.koplugin/moonsource_qidian/client.lua new file mode 100644 index 0000000..880b223 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/client.lua @@ -0,0 +1,636 @@ +--[[-- +起点中文网 HTTP 客户端(仅异步)。 + +详情、目录、章节走手机站 SSR 页面(m.qidian.com,页面内嵌 pageContext JSON)。 +www.qidian.com 有 WAF,不用。书架是 /webcommon/bookshelf/*,要带 Cookie 里的 _csrfToken。 +进度是章:拉书架行的 readCid;上传 /webcommon/chapter/updReadStatus。 +chapterUpdateTime 必须是章节更新时间的 unix 秒,空字符串会把 getReadStatus 写坏,日期字符串直接 500。 +免费章匿名可读(isBuy 仍是 0)。VIP 章 vipStatus=1 且 isBuy 不是 1 时只有预览;已购 VIP 的 content 是密文(cES / fEnS 非 0),由 fock.lua 解密(密钥 = Cookie 的 ywguid + 页面 fkp)。 + +@module koplugin.book.moonsource_qidian.client +--]] + +local Fock = require("moonsource_qidian.fock") +local CookieLogin = require("source.cookie_login") +local JSON = require("json") +local logger = require("utils.log") +local Mapper = require("moonsource_qidian.mapper") +local Request = require("http.request") +local SourceBase = require("source.base") +local Text = require("utils.text") +local _ = require("l10n").get("moonsource_qidian") + +local Client = {} + +local SOURCE_ID = "ext.qidian" +local WEB = "https://m.qidian.com" +local UA = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) " + .. "Version/16.0 Mobile/15E148 Safari/604.1" +local PAGE_SIZE = 20 +local anon_csrf + +local function anonymousCookie() + if not anon_csrf then anon_csrf = "_csrfToken=" .. require("utils.random").hex(16) end + return anon_csrf +end + +---@return string|nil +function Client.cookie() + local cookie = require("utils.settings").getSource(SOURCE_ID).cookie + return type(cookie) == "string" and cookie ~= "" and cookie or nil +end + +--- Cookie 请求头里的 _csrfToken。没有它书架接口一律 403。 +---@param cookie string +---@return string|nil +function Client.csrf(cookie) + local token = type(cookie) == "string" and ( + cookie:match("^_csrfToken=([^;]+)") or cookie:match(";%s*_csrfToken=([^;]+)")) + if not token or token == "" then return nil end + return token +end + +---@param cookie string|nil +---@return string|nil +function Client.guid(cookie) + local value = type(cookie) == "string" and (cookie:match("^ywguid=([^;]+)") + or cookie:match(";%s*ywguid=([^;]+)")) + return value and value:match("^%d+$") and value or nil +end + +---@param cookie string|nil +---@return table +local function headers(cookie) + return { + Cookie = cookie, + ["User-Agent"] = UA, + Referer = WEB .. "/bookshelf/my/", + Origin = WEB, + } +end + +---@param cookie string +---@param params table|nil +---@return string +local function query(cookie, params) + local parts = {} + for key, value in pairs(params or {}) do + parts[#parts + 1] = Text.urlEncode(key) .. "=" .. Text.urlEncode(value) + end + local token = Client.csrf(cookie) + if token then parts[#parts + 1] = "_csrfToken=" .. Text.urlEncode(token) end + table.sort(parts) + return table.concat(parts, "&") +end + +--- 登录态失效只标记当前已保存的 Cookie,校验新 Cookie 时不污染旧登录态。 +---@param cookie string +---@param msg string +---@return string +local function expired(cookie, msg) + if cookie ~= "" and cookie == Client.cookie() then + return require("source.auth").expire(SOURCE_ID, msg) + end + return msg +end + +---@param cookie string +---@return string +local function loginGone(cookie) + return expired(cookie, _("起点登录已失效,请点「重新登录」,用 QQ阅读或起点 App 扫码。也可在账号设置里粘贴 Cookie。")) +end + +---@param path string +---@param cookie string|nil +---@param cb fun(html: string|nil, err: string|nil) +---@return HttpJob +local function webGet(path, cookie, cb, cache_ttl) + return Request.get(WEB .. path, { + headers = headers(cookie), + timeout = require("http.timeout").net(1), + cache_ttl = cache_ttl, + }, function(raw, err, res) + if not raw then + local code = res and tonumber(res.code) + if cookie and cookie ~= "" and (code == 302 or code == 403) then + cb(nil, loginGone(cookie or "")) + else + cb(nil, err and tostring(err) or _("请求失败")) + end + return + end + cb(raw) + end) +end + +---@param wire table|nil +---@param cookie string +---@return table|nil data +---@return string|nil err +local function okData(wire, cookie) + if tonumber(wire.code) == 0 and type(wire.data) == "table" then return wire.data end + local msg = type(wire.msg) == "string" and wire.msg ~= "" and wire.msg or _("响应无效") + if tonumber(wire.code) == 1403 then msg = loginGone(cookie) end + return nil, msg +end + +---@param path string +---@param params table +---@param cookie string +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +local function apiGet(path, params, cookie, cb) + return Request.get(WEB .. path .. "?" .. query(cookie, params), { + accept = "application/json", + headers = headers(cookie), + timeout = require("http.timeout").net(1), + }, function(raw, err, res) + if not raw then + local code = res and tonumber(res.code) + if cookie:find("ywkey=", 1, true) and (code == 302 or code == 403) then + cb(nil, loginGone(cookie)) + else + cb(nil, err and tostring(err) or _("请求失败")) + end + return + end + local ok, wire = pcall(JSON.decode, raw) + if not ok or type(wire) ~= "table" then cb(nil, _("响应无效")); return end + cb(okData(wire, cookie)) + end) +end + +---@param book_id string +---@param data table|nil +---@return boolean ok +---@return string|nil err +local function bookOk(book_id, data) + local row = type(data) == "table" and (data[book_id] or data[tostring(book_id)]) + if type(row) == "table" and tonumber(row.code) ~= 0 then + return false, row.message or _("请求失败") + end + return true +end + +--- 拉书架。先拉默认分组,再拉其余有书的分组,按书号去重。 +---@param cookie string +---@param cb fun(rows: table[]|nil, err: string|nil) +---@return { cancel: fun() } +function Client.shelfAsync(cookie, cb) + if type(cookie) ~= "string" or cookie == "" then + return SourceBase.defer(cb, nil, _("未登录起点")) + end + if not Client.csrf(cookie) then + return SourceBase.defer(cb, nil, _("起点 Cookie 缺少登录凭证")) + end + local cancelled, job = false, nil + local books, seen, groups = {}, {}, nil + -- 自定义分组:id→名、bookId→分组名(一本书进多个组取第一个,和微信读书同一口径)。 + -- 默认分组(-100)不算分组,没进自定义组的书在 Mapper 里保留题材分类。 + local group_names, group_by_id = {}, {} + local fetchPage + local function addRows(list) + for _idx, row in ipairs(type(list) == "table" and list or {}) do + local id = row.bid and tostring(row.bid) + if id and not seen[id] then + seen[id] = true + books[#books + 1] = row + end + end + end + local function noteGroup(gid, list) + local name = group_names[gid] + if not name then return end + for _idx, row in ipairs(type(list) == "table" and list or {}) do + local id = row.bid and tostring(row.bid) + if id then group_by_id[id] = group_by_id[id] or name end + end + end + local function finish(err) + if cancelled then return end + if err then cb(nil, err); return end + for _idx, row in ipairs(books) do + row._group_name = group_by_id[tostring(row.bid)] + end + cb(books) + end + local function nextGroup() + local gid = groups and table.remove(groups, 1) + if not gid then finish(); return end + fetchPage(gid, 1) + end + fetchPage = function(gid, page) + if cancelled then return end + job = apiGet("/webcommon/bookshelf/mlist", { + gid = gid, sort = 0, pageNum = page, pageSize = PAGE_SIZE, sortChange = 0, + }, cookie, function(data, err) + if cancelled then return end + if not data then finish(err); return end + addRows(data.list) + if groups == nil then + groups = {} + for _idx, group in ipairs(type(data.groups) == "table" and data.groups or {}) do + local id = tonumber(group.groupId) + if id and id ~= -100 and tonumber(group.bookCount) ~= 0 then + groups[#groups + 1] = id + local name = type(group.groupName) == "string" and group.groupName or "" + if name ~= "" then group_names[id] = name end + end + end + end + noteGroup(gid, data.list) + local info = type(data.page) == "table" and data.page or {} + local list = type(data.list) == "table" and data.list or {} + if info.isLast == 1 or info.isLast == true or #list < PAGE_SIZE then + nextGroup() + else + fetchPage(gid, page + 1) + end + end) + end + fetchPage(-100, 1) + return { cancel = function() + cancelled = true + if job then job.cancel() end + end } +end + +--- 校验 Cookie:书架页 200 且 pageData.user.isLogin。cookie 显式传入,登录入口先校验再保存。 +--- 扫码会话可以没有 _csrfToken;校验成功后把书架页 Set-Cookie 合并进 account.cookie 再落盘。 +---@param cookie string +---@param cb fun(ok: boolean|nil, err: string|nil, account: { id: string, cookie?: string }|nil) +---@return { cancel: fun() } +function Client.loginCheckAsync(cookie, cb) + if type(cookie) ~= "string" or cookie == "" then + return SourceBase.defer(cb, nil, _("没有读到 Cookie")) + end + return Request.get(WEB .. "/bookshelf/my/", { + headers = headers(cookie), + timeout = require("http.timeout").net(1), + cache_ttl = 0, + }, function(raw, err, res) + if not raw then + local code = res and tonumber(res.code) + if code == 302 or code == 403 then + cb(nil, loginGone(cookie)) + else + cb(nil, err and tostring(err) or _("请求失败")) + end + return + end + local user = (Mapper.pageData(raw) or {}).user + if not (type(user) == "table" and (user.isLogin == true or user.login == true)) then + cb(nil, loginGone(cookie)) + return + end + local guid = user.guid + if type(guid) ~= "number" and type(guid) ~= "string" then + cb(nil, _("起点账号标识缺失")); return + end + local id = type(guid) == "number" and string.format("%.0f", guid) or guid + if not id:match("^%d+$") then cb(nil, _("起点账号标识缺失")); return end + local refreshed = CookieLogin.parse(cookie, Request.headerAll(res, "Set-Cookie")) + if not Client.csrf(refreshed) then + cb(nil, _("起点 Cookie 缺少登录凭证")); return + end + if cookie == Client.cookie() or refreshed == Client.cookie() then + require("source.auth").ok(SOURCE_ID) + end + cb(true, nil, { id = id, cookie = refreshed }) + end) +end + +---@param book_id string +---@param cb fun(ok: boolean|nil, err: string|nil) +---@return { cancel: fun() } +function Client.addAsync(book_id, cb) + local cookie = Client.cookie() + if not cookie then return SourceBase.defer(cb, nil, _("未登录起点")) end + if not Client.csrf(cookie) then return SourceBase.defer(cb, nil, _("起点 Cookie 缺少登录凭证")) end + return Request.post(WEB .. "/webcommon/bookshelf/addbooks?" .. query(cookie), Text.formEncode({ bookId = book_id }), { + content_type = "application/x-www-form-urlencoded", + headers = headers(cookie), + timeout = require("http.timeout").net(1), + }, function(raw, err) + if not raw then cb(nil, err and tostring(err) or _("请求失败")); return end + local ok, wire = pcall(JSON.decode, raw) + if not ok or type(wire) ~= "table" then cb(nil, _("响应无效")); return end + local data, data_err = okData(wire, cookie) + if not data then cb(nil, data_err); return end + local added, add_err = bookOk(book_id, data) + cb(added and true or nil, add_err) + end) +end + +--- 上报读到哪一章。updated 是章节更新时间的 unix 秒,不是「现在」。 +---@param book_id string +---@param chapter_id string +---@param chapter_name string|nil +---@param is_vip integer|boolean|nil +---@param updated integer|string +---@param cb fun(ok: boolean|nil, err: string|nil) +---@return { cancel: fun() } +function Client.updateReadAsync(book_id, chapter_id, chapter_name, is_vip, updated, cb) + local cookie = Client.cookie() + if not cookie then return SourceBase.defer(cb, nil, _("未登录起点")) end + if not Client.csrf(cookie) then return SourceBase.defer(cb, nil, _("起点 Cookie 缺少登录凭证")) end + if updated == nil or tostring(updated) == "" then + return SourceBase.defer(cb, nil, _("起点章节时间缺失")) + end + return Request.post(WEB .. "/webcommon/chapter/updReadStatus?" .. query(cookie), Text.formEncode({ + bookId = book_id, + chapterId = chapter_id, + chapterName = chapter_name or "", + isVip = (is_vip == true or tonumber(is_vip) == 1) and "1" or "0", + chapterUpdateTime = tostring(updated), + }), { + content_type = "application/x-www-form-urlencoded", + headers = headers(cookie), + timeout = require("http.timeout").net(1), + }, function(raw, err) + if not raw then cb(nil, err and tostring(err) or _("请求失败")); return end + local ok, wire = pcall(JSON.decode, raw) + if not ok or type(wire) ~= "table" then cb(nil, _("响应无效")); return end + -- 成功时 data 不是表(常为空)。不能走 okData,否则 code=0 也会被当成失败。 + if tonumber(wire.code) == 0 then cb(true); return end + local msg = type(wire.msg) == "string" and wire.msg ~= "" and wire.msg or _("响应无效") + if tonumber(wire.code) == 1403 then msg = loginGone(cookie) end + cb(nil, msg) + end) +end + +---@param book_id string +---@param cb fun(ok: boolean|nil, err: string|nil) +---@return { cancel: fun() } +function Client.removeAsync(book_id, cb) + local cookie = Client.cookie() + if not cookie then return SourceBase.defer(cb, nil, _("未登录起点")) end + return apiGet("/webcommon/bookshelf/delbook", { bids = book_id, gid = -100 }, cookie, function(data, err) + if not data then cb(nil, err); return end + local removed, remove_err = bookOk(book_id, data) + cb(removed and true or nil, remove_err) + end) +end + +--- 搜索:匿名双提交 CSRF,首页及后续页同一接口。 +---@param keyword string +---@param cb fun(data: table|nil, err: string|nil) +---@param page integer|nil +---@return HttpJob +function Client.searchAsync(keyword, cb, page) + return apiGet("/webcommon/search/list", { kw = keyword, pageNum = page or 1 }, anonymousCookie(), function(data, err) + if not data then cb(nil, err); return end + if type(data.bookInfo) ~= "table" or type(data.bookInfo.records) ~= "table" then + cb(nil, _("起点搜索响应无效")); return + end + cb(data) + end) +end + +--- 榜单页(手机网页 SSR,一页 20 本)。path 如 /rank/yuepiao/catid21/。 +---@param path string +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.rankAsync(path, cb) + return webGet(path, nil, function(html, err) + if not html then cb(nil, err); return end + local data = Mapper.pageData(html) + if not data or type(data.records) ~= "table" then cb(nil, _("起点榜单为空")); return end + cb(data) + end) +end + +---@param key string +---@param cat string +---@param page integer +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.rankPageAsync(key, cat, page, cb) + local kind = key == "readindex" and "readIndex" or key + return apiGet("/webcommon/rank/" .. kind .. "list", { + catId = cat, gender = "male", pageNum = page, + }, anonymousCookie(), function(data, err) + if not data then cb(nil, err); return end + if type(data.records) ~= "table" then cb(nil, _("起点榜单响应无效")); return end + cb(data) + end) +end + +---@param book_id string +---@param cb fun(info: table|nil, err: string|nil) +---@return HttpJob +function Client.detailAsync(book_id, cb) + return webGet("/book/" .. book_id .. "/", Client.cookie(), function(html, err) + if not html then cb(nil, err); return end + local info = (Mapper.pageData(html) or {}).bookInfo + if type(info) ~= "table" or not info.bookName then + cb(nil, _("起点书籍信息为空")) + return + end + + cb(info) + end) +end + +---@param book_id string +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.bookCircleAsync(book_id, cb) + return webGet("/readersCircle/" .. book_id .. "/", nil, function(html, err) + if not html then cb(nil, err); return end + local data = Mapper.pageData(html) + if not data or type(data.bookCirclePost) ~= "table" then + cb(nil, _("起点书友圈响应无效")); return + end + cb(data.bookCirclePost) + end) +end + +---@param book_id string +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.catalogAsync(book_id, cb) + return webGet("/book/" .. book_id .. "/catalog/", Client.cookie(), function(html, err) + if not html then cb(nil, err); return end + local data = Mapper.pageData(html) + if not data then cb(nil, _("起点目录为空")); return end + cb(data) + end) +end + +--- 一章正文。未购买的 VIP(vipStatus=1 且 isBuy 不是 1)只有预览,不当正文。 +---@param book_id string +---@param chapter_id string +---@param cb fun(text: string|nil, err: string|nil, kind: "unpaid"|nil) kind = "unpaid":这章没买 +---@return HttpJob +function Client.contentAsync(book_id, chapter_id, cb) + local cookie, cancelled = Client.cookie(), false + local decrypting, font_job + local function finish_html(content) + local text = Mapper.chapterText(content) + if not text then cb(nil, _("起点章节内容为空")); return end + cb(text) + end + local function finish_text(text) + if type(text) ~= "string" or Text.trim(text) == "" then cb(nil, _("起点章节内容为空")); return end + cb(text) + end + local function decrypt_done(text, derr) + if cancelled then return end + decrypting = nil + if not text then + logger.warn("qidian fock decrypt failed:", derr) + cb(nil, _("起点 VIP 章节解密失败") .. (derr and (":" .. tostring(derr)) or "")); return + end + finish_text(text) + end + local fetch = webGet("/chapter/" .. book_id .. "/" .. chapter_id .. "/", cookie, function(html, err) + if cancelled then return end + if not html then cb(nil, err); return end + local data = Mapper.pageData(html) or {} + local info = data.chapterInfo + if type(info) ~= "table" then cb(nil, _("起点章节内容为空")); return end + if Mapper.locked(info) then cb(nil, _("起点 VIP 章节未购买"), "unpaid"); return end + local content = info.content + local ces = tonumber(info.cES) or 0 + if ces ~= 0 and ces ~= 2 then + logger.warn("qidian unknown cES:", ces) + cb(nil, _("起点 VIP 章节加密方式不受支持")); return + end + local fock = Mapper.fockEncrypted(info) + local font_protected = Mapper.fontProtected(info) + if not fock and not font_protected then finish_html(content); return end + + local keypool, version, uid + if fock then + local page_guid = type(data.user) == "table" and data.user.guid + uid = type(page_guid) == "number" and string.format("%.0f", page_guid) + or (type(page_guid) == "string" and page_guid or Client.guid(cookie)) + if page_guid and uid ~= Client.guid(cookie) then + logger.warn("qidian chapter identity differs from login cookie; using response identity") + end + -- fkp 是 base64 的 `window.onkeyfocus("<密钥池>", <版本>)`,只取参数,不执行 + keypool, version = Text.base64Decode(tostring(info.fkp or "")) + :match('onkeyfocus%("([^"]+)",%s*(%d+)%)') + if type(content) ~= "string" or content == "" then + logger.warn("qidian encrypted chapter content empty") + cb(nil, _("起点 VIP 章节正文为空,请退出后重新扫码或改用 Cookie 登录")); return + end + if not (uid and uid:match("^%d+$") and keypool and version) then + logger.warn("qidian decrypt inputs missing: uid", uid ~= nil, "keypool", keypool ~= nil, + "version", version ~= nil) + cb(nil, require("source.cookie_login").relogin( + _("起点中文网"), "https://m.qidian.com/", _("起点中文网 → 起点账号"))); return + end + end + + local function run(fixed_font) + local pending = true + local function done(plain, derr) + pending = false + decrypt_done(plain, derr) + end + local job + if font_protected then + if fock then + job = Fock.chapterAsync(info, fixed_font, chapter_id, keypool, version, uid, done) + else + job = Fock.restoreAsync(content, info, fixed_font, done) + end + else + job = Fock.decryptAsync(content, chapter_id, keypool, version, uid, function(plain, derr) + pending = false + if cancelled then return end + decrypting = nil + if not plain then + logger.warn("qidian fock decrypt failed:", derr) + cb(nil, _("起点 VIP 章节解密失败") .. (derr and (":" .. tostring(derr)) or "")); return + end + finish_html(plain) + end) + end + if pending then decrypting = job end + end + + if not font_protected then run(nil); return end + + local url = info.fixedFontTtf + if type(url) ~= "string" or url == "" or type(info.randomFont) ~= "string" or type(info.css) ~= "string" then + logger.warn("qidian font inputs missing: fixedFontTtf", type(url), "randomFont", type(info.randomFont), + "css", type(info.css)) + cb(nil, _("起点 VIP 章节字体解密失败:缺少字体信息")); return + end + font_job = Request.get(url, { + headers = { ["User-Agent"] = UA, ["Referer"] = "https://m.qidian.com/" }, + timeout = require("http.timeout").net(3), + }, function(ttf, ferr, res) + if cancelled then return end + font_job = nil + if not ttf or #ttf == 0 then + logger.warn("qidian font download failed:", ferr, "code", res and res.code, "len", ttf and #ttf) + cb(nil, _("起点 VIP 章节字体下载失败")); return + end + if not require("moonsource_qidian.yuewen_fonts").looksLikeFont(ttf) then + logger.warn("qidian font download invalid:", #ttf, tostring(ttf:sub(1, 16)), "code", res and res.code) + cb(nil, _("起点 VIP 章节字体下载失败")); return + end + run(ttf) + end) + end) + return { cancel = function() + cancelled = true + fetch.cancel() + if font_job then font_job:cancel() end + if decrypting then decrypting:cancel() end + end } +end + +--- 分类目录或分类首屏(含官网动态筛选元数据),公共请求不带账号。 +---@param cat_id string|nil +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.categoryAsync(cat_id, cb) + return webGet("/category/" .. (cat_id and ("catid" .. cat_id .. "/") or ""), nil, function(html, err) + if not html then cb(nil, err); return end + local data = Mapper.pageData(html) + if not data then cb(nil, _("起点分类响应无效")); return end + cb(data) + end) +end + +--- 分类后续页,匿名 CSRF 双提交。 +---@param params table +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.categoryListAsync(params, cb) + return apiGet("/webcommon/category/list", params, anonymousCookie(), function(data, err) + if not data then cb(nil, err); return end + if type(data.records) ~= "table" then cb(nil, _("起点分类响应无效")); return end + cb(data) + end) +end + +--- 本章各段评论数;list[].paragraphId 从 1 数,-1 是章末总评;enableReview = 0 表示这本书没开段评。 +---@param book_id string +---@param chapter_id string +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.reviewSummaryAsync(book_id, chapter_id, cb) + return apiGet("/webcommon/chapterreview/reviewsummary4m", { bookId = book_id, chapterId = chapter_id }, + Client.cookie() or anonymousCookie(), cb) +end + +--- 某段的一页评论(page 从 1 起,每页 10 条左右)。 +---@param book_id string +---@param chapter_id string +---@param paragraph_id integer +---@param page integer +---@param cb fun(data: table|nil, err: string|nil) +---@return HttpJob +function Client.reviewListAsync(book_id, chapter_id, paragraph_id, page, cb) + return apiGet("/webcommon/chapterreview/reviewlist4m", { + bookId = book_id, chapterId = chapter_id, paragraphId = paragraph_id, page = page, + }, Client.cookie() or anonymousCookie(), cb) +end + +return Client diff --git a/moonsource-qidian.koplugin/moonsource_qidian/fock.lua b/moonsource-qidian.koplugin/moonsource_qidian/fock.lua new file mode 100644 index 0000000..0e0b38d --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/fock.lua @@ -0,0 +1,109 @@ +--[[-- +起点 VIP 章节正文解密(Fock):阅文 wasm 的起点构建参数 + 子进程编排,宿主在 `moonsource_qidian.yuewen_fock`。 +网页端用它解密 `chapterInfo.content`。 + +@module moonsource_qidian.fock +--]]-- + +local Shared = require("moonsource_qidian.yuewen_fock") +local FontRestore = require("moonsource_qidian.yuewen_fonts") +local JSON = require("json") + +local Fock = {} + +-- 起点 font 层的字形与参考 Noto 偶有 0.65~0.75 的形近字(如 䵻→对),比 QQ阅读放宽一点。 +local FONT_THRESHOLD = 0.65 + +---@param info table chapterInfo +---@return table +local function fontData(info) + local raw = info.randomFont + assert(type(raw) == "string" and raw ~= "", "qidian randomFont missing") + local ok, random = pcall(JSON.decode, raw) + if not ok or type(random) ~= "table" then + error("qidian randomFont decode failed: " .. tostring(random)) + end + return { css = info.css or "", randomFont = random } +end + +--- 还原字体层;抛错转成 `{ err }`,不让子进程崩在 on_failed 里丢上下文。 +---@return { text: string|nil, err: string|nil } +local function restore(html, info, fixed_font, temp_paths) + local ok, text = pcall(FontRestore.restore, html, fontData(info), fixed_font, + { dedupe = true, confusions = true, threshold = FONT_THRESHOLD, temp_paths = temp_paths }) + if not ok then return { err = "font: " .. tostring(text) } end + return { text = text } +end + +local HOST = { + ["location.hostname"] = "vipreader.qidian.com", + ["location.protocol"] = "https:", +} + +---@type YuewenFockBuild +local BUILD = { + wasm = "moonsource_qidian.fock_wasm", + callback = 22685, + stack = 5274992, + exports = { ctors = "g", main = "m", set_uid = "h", set_key = "i", decrypt = "j", + stack_save = "n", stack_restore = "o", alloc = "p", malloc = "q" }, + -- 其余是反调试 / 定时器探测:返回 -1(那几个会返回 indexOf 结果)或 0 + probe = function(code) + if code == 14394 or code == 14449 or code == 14875 then return 0 end + if code % 709 == 15372 % 709 then return -1 end + return 0 + end, + imports = function(env) + return { + f = function() return 0 end, + c = function(a, b) return env.malloc_str(HOST[env.cstr(a) .. "." .. env.cstr(b)] or "undefined") end, + e = function() return env.malloc_str("undefined") end, + } + end, +} + +---@param content string base64 密文 +---@param chapter_id string|number +---@param keypool string base64 密钥池(fkp 里 onkeyfocus 的第一个参数) +---@param version string +---@param uid string 用户 ywguid +---@return string|nil text +---@return string|nil err +function Fock.decrypt(content, chapter_id, keypool, version, uid) + return Shared.decrypt(BUILD, content, chapter_id, keypool, version, uid) +end + +--- 在子进程里解密;回调拿明文或错误。 +---@return BookJob +function Fock.decryptAsync(content, chapter_id, keypool, version, uid, cb) + return Shared.jobAsync("qidian_fock", function() + local plain, err = Fock.decrypt(content, chapter_id, keypool, version, uid) + return { text = plain, err = err } + end, cb) +end + +--- 在子进程里解密并还原 cES=2 的字体层;回调拿纯文本或错误。 +--- 起点会在正文尾部追加一份同长度的诱饵副本,restore 的 dedupe 会丢掉它。 +---@param info table chapterInfo +---@param fixed_font string fixedFontTtf 下载下来的字节 +---@return BookJob +function Fock.chapterAsync(info, fixed_font, chapter_id, keypool, version, uid, cb) + return Shared.jobAsync("qidian_fock", function(temp_paths) + local plain, err = Fock.decrypt(info.content, chapter_id, keypool, version, uid) + if not plain then return { err = "decrypt: " .. tostring(err) } end + return restore(plain, info, fixed_font, temp_paths) + end, cb) +end + +--- 只有字体层(fEnS=0)时直接还原明文 HTML。 +---@param html string Fock 明文或页面正文 HTML +---@param info table chapterInfo +---@param fixed_font string +---@return BookJob +function Fock.restoreAsync(html, info, fixed_font, cb) + return Shared.jobAsync("qidian_font", function(temp_paths) + return restore(html, info, fixed_font, temp_paths) + end, cb) +end + +return Fock diff --git a/moonsource-qidian.koplugin/moonsource_qidian/fock_wasm.lua b/moonsource-qidian.koplugin/moonsource_qidian/fock_wasm.lua new file mode 100644 index 0000000..343143e --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/fock_wasm.lua @@ -0,0 +1,15025 @@ +-- 由 tools/gen_fock.js 从起点 Fock(wasm2js)转译生成,勿手改。 +-- 运行环境见 fock.lua;env = { mem = ffi uint8_t*, imp = { b, c, d, e, f, abort } }。 +local bit = require("bit") +local ffi = require("ffi") +local tobit, band, bor, bxor, bnot = bit.tobit, bit.band, bit.bor, bit.bxor, bit.bnot +local lshift, rshift, arshift = bit.lshift, bit.rshift, bit.arshift +local fmod = math.fmod + +local function toint(x) + return tobit(x >= 0 and math.floor(x) or -math.floor(-x)) +end + +local function imul(a, b) + a, b = tobit(a), tobit(b) + return tobit(band(a, 65535) * b + lshift(tobit(rshift(a, 16) * b), 16)) +end + +local function clz32(x) + x = tobit(x) + if x == 0 then return 32 end + if x < 0 then return 0 end + local n = 0 + while x > 0 do x = lshift(x, 1); n = n + 1 end + return n +end + +return function(env) +local mem = env.mem +local abort, imp_b, imp_c, imp_d, imp_e, imp_f = env.imp.abort, env.imp.b, env.imp.c, env.imp.d, env.imp.e, env.imp.f +local I8, I16, I32 = ffi.cast("int8_t*", mem), ffi.cast("int16_t*", mem), ffi.cast("int32_t*", mem) +local U8, U16, U32 = ffi.cast("uint8_t*", mem), ffi.cast("uint16_t*", mem), ffi.cast("uint32_t*", mem) +local F64 = ffi.cast("double*", mem) +local B, Iv = 5274992, 0 +local scratch = ffi.new("int32_t[4]") +local scratch_f = ffi.cast("double*", scratch) +local function rf_a(i) return scratch[i] end +local function rf_u(i, v) scratch[i] = v end +local function rf_c() return scratch_f[0] end +local function rf_s(v) scratch_f[0] = v end +local F = {} +local UA = { [0] = false } +local YA = UA + +F.fm = function(v_A) +local v_r, v_e, v_n, v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_v, v_g = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_e = 0 +v_n = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_v = 0 +v_g = 0 +v_r = tobit((B - 16)) +B = v_r +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +v_A = tobit(v_A) +if ((tobit(v_A) % 4294967296) <= 244) then +do +do +v_a = I32[5681] +local t1 = v_a +v_s = (((tobit(v_A) % 4294967296) < 11) and 16 or band((v_A + 11), (-8))) +v_n = tobit((rshift(v_s, 3) % 4294967296)) +v_e = tobit((rshift(t1, v_n) % 4294967296)) +if (band(3, v_e) ~= 0) then +do +do +v_t = tobit((v_n + band(1, bxor((-1), v_e)))) +v_e = lshift(v_t, 3) +v_o = I32[arshift((22772 + v_e), 2)] +v_A = tobit((v_o + 8)) +v_n = I32[arshift((v_o + 8), 2)] +local t2 = bor(0, v_n) +v_e = tobit((v_e + 22764)) +if (t2 ~= bor(0, v_e)) then +I32[arshift((v_n + 12), 2)] = tobit(v_e) +I32[arshift((v_e + 8), 2)] = tobit(v_n) +else +I32[5681] = tobit(band(F.fKA((-2), v_t), v_a)) +end +v_e = lshift(v_t, 3) +I32[arshift((v_o + 4), 2)] = tobit(bor(3, v_e)) +v_e = tobit((v_e + v_o)) +I32[arshift((4 + v_e), 2)] = tobit(bor(1, I32[arshift((v_e + 4), 2)])) +end +goto L1 +end +end +end +v_v = I32[5683] +if ((tobit(v_v) % 4294967296) >= (tobit(v_s) % 4294967296)) then +goto L12 +end +do +if (v_e ~= 0) then +do +do +v_A = lshift(2, v_n) +v_A = band(bor((0 - v_A), v_A), lshift(v_e, v_n)) +v_e = tobit((band((0 - v_A), v_A) - 1)) +v_A = band((rshift(v_e, 12) % 4294967296), 16) +v_n = v_A +local t3 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 5) % 4294967296), 8) +v_n = bor(t3, v_A) +local t4 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 2) % 4294967296), 4) +v_n = bor(t4, v_A) +local t5 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 1) % 4294967296), 2) +v_n = bor(t5, v_A) +local t6 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 1) % 4294967296), 1) +v_n = tobit((bor(t6, v_A) + tobit((rshift(v_e, v_A) % 4294967296)))) +v_A = lshift(v_n, 3) +v_u = I32[arshift((22772 + v_A), 2)] +v_e = I32[arshift((v_u + 8), 2)] +local t7 = bor(0, v_e) +v_A = tobit((v_A + 22764)) +if (t7 ~= bor(0, v_A)) then +I32[arshift((v_e + 12), 2)] = tobit(v_A) +I32[arshift((v_A + 8), 2)] = tobit(v_e) +else +v_a = band(F.fKA((-2), v_n), v_a) +I32[5681] = tobit(v_a) +end +v_A = tobit((v_u + 8)) +I32[arshift((v_u + 4), 2)] = tobit(bor(3, v_s)) +v_e = lshift(v_n, 3) +v_o = tobit((v_e - v_s)) +v_t = tobit((v_u + v_s)) +I32[arshift((4 + v_t), 2)] = tobit(bor(1, v_o)) +I32[arshift((v_e + v_u), 2)] = tobit(v_o) +if (v_v ~= 0) then +v_e = tobit((rshift(v_v, 3) % 4294967296)) +v_n = tobit((22764 + lshift(v_e, 3))) +v_u = I32[5686] +v_e = lshift(1, v_e) +if (band(v_e, v_a) ~= 0) then +v_e = I32[arshift((v_n + 8), 2)] +else +I32[5681] = tobit(bor(v_e, v_a)) +v_e = v_n +end +I32[arshift((v_n + 8), 2)] = tobit(v_u) +I32[arshift((v_e + 12), 2)] = tobit(v_u) +I32[arshift((v_u + 12), 2)] = tobit(v_n) +I32[arshift((v_u + 8), 2)] = tobit(v_e) +end +I32[5686] = tobit(v_t) +I32[5683] = tobit(v_o) +end +goto L1 +end +end +end +v_c = I32[5682] +if (not (v_c ~= 0)) then +goto L12 +end +do +do +do +v_e = tobit((band(v_c, (0 - v_c)) - 1)) +v_A = band((rshift(v_e, 12) % 4294967296), 16) +v_n = v_A +local t8 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 5) % 4294967296), 8) +v_n = bor(t8, v_A) +local t9 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 2) % 4294967296), 4) +v_n = bor(t9, v_A) +local t10 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 1) % 4294967296), 2) +v_n = bor(t10, v_A) +local t11 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 1) % 4294967296), 1) +v_e = I32[arshift((23028 + lshift((bor(t11, v_A) + tobit((rshift(v_e, v_A) % 4294967296))), 2)), 2)] +v_t = tobit((band((-8), I32[arshift((v_e + 4), 2)]) - v_s)) +v_n = v_e +end +while true do +do +v_A = I32[arshift((v_n + 16), 2)] +local t12 = (v_A ~= 0) +if not t12 then +v_A = I32[arshift((v_n + 20), 2)] +t12 = (v_A ~= 0) +end +if not t12 then goto B13 end +end +do +v_n = tobit((band((-8), I32[arshift((v_A + 4), 2)]) - v_s)) +v_o = (((tobit(v_n) % 4294967296) < (tobit(v_t) % 4294967296)) and 1 or 0) +v_t = ((v_o ~= 0) and v_n or v_t) +v_e = ((v_o ~= 0) and v_A or v_e) +v_n = v_A +end +::C13:: +end +end +::B13:: +end +v_l = tobit((v_e + v_s)) +if ((tobit(v_l) % 4294967296) <= (tobit(v_e) % 4294967296)) then +goto L11 +end +v_g = I32[arshift((v_e + 24), 2)] +v_o = I32[arshift((v_e + 12), 2)] +if (bor(0, v_o) ~= bor(0, v_e)) then +v_A = I32[arshift((v_e + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_o) +I32[arshift((v_o + 8), 2)] = tobit(v_A) +goto L2 +end +v_n = tobit((v_e + 20)) +v_A = I32[arshift(v_n, 2)] +if (not (v_A ~= 0)) then +v_A = I32[arshift((v_e + 16), 2)] +if (not (v_A ~= 0)) then +goto L10 +end +v_n = tobit((v_e + 16)) +end +do +do +while true do +do +v_u = v_n +v_o = v_A +v_n = tobit((v_A + 20)) +v_A = I32[arshift(v_n, 2)] +local t13 = v_A +if t13 == 0 then +v_n = tobit((v_o + 16)) +v_A = I32[arshift((v_o + 16), 2)] +t13 = v_A +end +if not (t13 ~= 0) then goto B14 end +end +do +end +::C14:: +end +end +::B14:: +end +I32[arshift(v_u, 2)] = tobit(0) +goto L2 +end +end +end +do +v_s = (-1) +local t14 = ((not ((tobit(v_A) % 4294967296) > 4294967231)) and 1 or 0) +if t14 ~= 0 then +local t15 = (-8) +v_A = tobit((v_A + 11)) +v_s = band(t15, v_A) +v_l = I32[5682] +t14 = v_l +end +if (t14 ~= 0) then +do +do +v_t = tobit((0 - v_s)) +v_a = 0 +if not ((tobit(v_s) % 4294967296) < 256) then +v_a = 31 +if not ((tobit(v_s) % 4294967296) > 16777215) then +v_A = tobit((rshift(v_A, 8) % 4294967296)) +local t16 = v_A +v_u = band((rshift((v_A + 1048320), 16) % 4294967296), 8) +v_A = lshift(t16, v_u) +local t17 = v_A +v_n = band((rshift((v_A + 520192), 16) % 4294967296), 4) +v_A = lshift(t17, v_n) +local t18 = v_A +v_e = band((rshift((v_A + 245760), 16) % 4294967296), 2) +v_A = tobit((tobit((rshift(lshift(t18, v_e), 15) % 4294967296)) - bor(bor(v_e, v_n), v_u))) +v_a = tobit((28 + bor(lshift(v_A, 1), band((rshift(v_s, (v_A + 21)) % 4294967296), 1)))) +end +end +end +do +do +do +do +do +do +do +v_n = I32[arshift((23028 + lshift(v_a, 2)), 2)] +if (v_n ~= 0) then +do +do +v_A = 0 +v_e = lshift(v_s, ((31 == bor(0, v_a)) and 0 or tobit((25 - tobit((rshift(v_a, 1) % 4294967296)))))) +while true do +do +do +do +v_u = tobit((band((-8), I32[arshift((v_n + 4), 2)]) - v_s)) +local t19 = (((tobit(v_u) % 4294967296) >= (tobit(v_t) % 4294967296)) and 1 or 0) +if t19 == 0 then +v_o = v_n +v_t = v_u +t19 = v_t +end +if (not (t19 ~= 0)) then +v_t = 0 +v_A = v_n +goto L16 +end +end +v_u = I32[arshift((v_n + 20), 2)] +v_n = I32[arshift((16 + tobit((band((rshift(v_e, 29) % 4294967296), 4) + v_n))), 2)] +v_A = ((v_u ~= 0) and ((bor(0, v_u) == bor(0, v_n)) and v_A or v_u) or v_A) +v_e = lshift(v_e, 1) +if (not (v_n ~= 0)) then +goto B17 +end +end +end +::C17:: +end +end +::B17:: +end +else +v_A = 0 +end +end +do +if (not (bor(v_A, v_o) ~= 0)) then +do +v_o = 0 +v_A = lshift(2, v_a) +v_A = band(bor((0 - v_A), v_A), v_l) +if (not (v_A ~= 0)) then +goto L12 +end +do +v_e = tobit((band(v_A, (0 - v_A)) - 1)) +v_A = band((rshift(v_e, 12) % 4294967296), 16) +v_n = v_A +local t20 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 5) % 4294967296), 8) +v_n = bor(t20, v_A) +local t21 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 2) % 4294967296), 4) +v_n = bor(t21, v_A) +local t22 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 1) % 4294967296), 2) +v_n = bor(t22, v_A) +local t23 = v_n +v_e = tobit((rshift(v_e, v_A) % 4294967296)) +v_A = band((rshift(v_e, 1) % 4294967296), 1) +v_A = I32[arshift((23028 + lshift((bor(t23, v_A) + tobit((rshift(v_e, v_A) % 4294967296))), 2)), 2)] +end +end +end +end +if (not (v_A ~= 0)) then +goto L15 +end +end +end +::L16:: +end +do +do +while true do +do +v_e = tobit((band((-8), I32[arshift((v_A + 4), 2)]) - v_s)) +v_n = (((tobit(v_e) % 4294967296) < (tobit(v_t) % 4294967296)) and 1 or 0) +v_t = ((v_n ~= 0) and v_e or v_t) +v_o = ((v_n ~= 0) and v_A or v_o) +v_e = I32[arshift((v_A + 16), 2)] +local t24 = v_e +if t24 == 0 then +t24 = I32[arshift((v_A + 20), 2)] +end +v_A = t24 +if not (v_A ~= 0) then goto B18 end +end +do +end +::C18:: +end +end +::B18:: +end +end +end +::L15:: +end +do +if (not (bor(((not (v_o ~= 0)) and 1 or 0), (((tobit((I32[5683] - v_s)) % 4294967296) <= (tobit(v_t) % 4294967296)) and 1 or 0)) ~= 0)) then +do +v_c = tobit((v_o + v_s)) +if ((tobit(v_c) % 4294967296) <= (tobit(v_o) % 4294967296)) then +goto L11 +end +do +v_a = I32[arshift((v_o + 24), 2)] +local t25 = bor(0, v_o) +v_e = I32[arshift((v_o + 12), 2)] +if (t25 ~= bor(0, v_e)) then +v_A = I32[arshift((v_o + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_e) +I32[arshift((v_e + 8), 2)] = tobit(v_A) +goto L3 +end +end +v_n = tobit((v_o + 20)) +v_A = I32[arshift(v_n, 2)] +if (not (v_A ~= 0)) then +v_A = I32[arshift((v_o + 16), 2)] +if (not (v_A ~= 0)) then +goto L9 +end +v_n = tobit((v_o + 16)) +end +do +do +while true do +do +v_u = v_n +v_e = v_A +v_n = tobit((v_A + 20)) +v_A = I32[arshift(v_n, 2)] +local t26 = v_A +if t26 == 0 then +v_n = tobit((v_e + 16)) +v_A = I32[arshift((v_e + 16), 2)] +t26 = v_A +end +if not (t26 ~= 0) then goto B19 end +end +do +end +::C19:: +end +end +::B19:: +end +I32[arshift(v_u, 2)] = tobit(0) +goto L3 +end +end +end +end +end +end +end +end +::L12:: +end +v_n = I32[5683] +if ((tobit(v_n) % 4294967296) >= (tobit(v_s) % 4294967296)) then +v_t = I32[5686] +v_e = tobit((v_n - v_s)) +if ((tobit(v_e) % 4294967296) >= 16) then +I32[5683] = tobit(v_e) +v_A = tobit((v_t + v_s)) +I32[5686] = tobit(v_A) +I32[arshift((v_A + 4), 2)] = tobit(bor(1, v_e)) +I32[arshift((v_n + v_t), 2)] = tobit(v_e) +I32[arshift((v_t + 4), 2)] = tobit(bor(3, v_s)) +else +I32[5686] = tobit(0) +I32[5683] = tobit(0) +I32[arshift((v_t + 4), 2)] = tobit(bor(3, v_n)) +v_A = tobit((v_n + v_t)) +I32[arshift((4 + v_A), 2)] = tobit(bor(1, I32[arshift((v_A + 4), 2)])) +end +v_A = tobit((v_t + 8)) +goto L1 +end +v_c = I32[5684] +if ((tobit(v_c) % 4294967296) > (tobit(v_s) % 4294967296)) then +v_e = tobit((v_c - v_s)) +I32[5684] = tobit(v_e) +v_n = I32[5687] +v_A = tobit((v_n + v_s)) +I32[5687] = tobit(v_A) +I32[arshift((v_A + 4), 2)] = tobit(bor(1, v_e)) +I32[arshift((v_n + 4), 2)] = tobit(bor(3, v_s)) +v_A = tobit((v_n + 8)) +goto L1 +end +do +v_A = 0 +v_l = tobit((v_s + 47)) +v_e = v_l +if (I32[5799] ~= 0) then +v_n = I32[5801] +else +I32[5802] = tobit((-1)) +I32[5803] = tobit((-1)) +I32[5800] = tobit(4096) +I32[5801] = tobit(4096) +I32[5799] = tobit(bxor(band((v_r + 12), (-16)), 1431655768)) +I32[5804] = tobit(0) +I32[5792] = tobit(0) +v_n = 4096 +end +v_u = tobit((v_e + v_n)) +local t27 = v_u +v_o = tobit((0 - v_n)) +v_n = band(t27, v_o) +if ((tobit(v_n) % 4294967296) <= (tobit(v_s) % 4294967296)) then +goto L1 +end +end +do +v_t = I32[5791] +local t29 = (v_t ~= 0) +if t29 then +local t28 = (tobit(v_t) % 4294967296) +v_e = I32[5789] +v_a = tobit((v_e + v_n)) +t29 = (bor(((t28 < (tobit(v_a) % 4294967296)) and 1 or 0), (((tobit(v_e) % 4294967296) >= (tobit(v_a) % 4294967296)) and 1 or 0)) ~= 0) +end +if t29 then +goto L1 +end +end +if (band(4, U8[23168]) ~= 0) then +goto L6 +end +do +do +do +do +do +do +do +v_t = I32[5687] +if (v_t ~= 0) then +do +do +v_A = 23172 +while true do +do +do +do +local t30 = (tobit(v_t) % 4294967296) +v_e = I32[arshift(v_A, 2)] +if ((t30 < (tobit((v_e + I32[arshift((v_A + 4), 2)])) % 4294967296)) and ((tobit(v_e) % 4294967296) <= (tobit(v_t) % 4294967296))) then +goto L21 +end +end +v_A = I32[arshift((v_A + 8), 2)] +if (not (v_A ~= 0)) then +goto B22 +end +end +end +::C22:: +end +end +::B22:: +end +end +end +do +local t31 = (-1) +v_e = F.fmA(0) +if (t31 == bor(0, v_e)) then +goto L7 +end +end +v_a = v_n +v_t = I32[5800] +v_A = tobit((v_t - 1)) +if (band(v_A, v_e) ~= 0) then +v_a = tobit((tobit((v_n - v_e)) + band((v_A + v_e), (0 - v_t)))) +end +if (bor((((tobit(v_a) % 4294967296) <= (tobit(v_s) % 4294967296)) and 1 or 0), (((tobit(v_a) % 4294967296) > 2147483646) and 1 or 0)) ~= 0) then +goto L7 +end +do +v_t = I32[5791] +local t33 = (v_t ~= 0) +if t33 then +local t32 = (tobit(v_t) % 4294967296) +v_A = I32[5789] +v_o = tobit((v_A + v_a)) +t33 = (bor(((t32 < (tobit(v_o) % 4294967296)) and 1 or 0), (((tobit(v_A) % 4294967296) >= (tobit(v_o) % 4294967296)) and 1 or 0)) ~= 0) +end +if t33 then +goto L7 +end +end +do +local t34 = bor(0, v_e) +v_A = F.fmA(v_a) +if (t34 ~= bor(0, v_A)) then +goto L20 +end +end +goto L5 +end +end +::L21:: +end +v_a = band(v_o, (v_u - v_c)) +if ((tobit(v_a) % 4294967296) > 2147483646) then +goto L7 +end +v_e = F.fmA(v_a) +if (bor(0, v_e) == tobit((I32[arshift(v_A, 2)] + I32[arshift((v_A + 4), 2)]))) then +goto L8 +end +v_A = v_e +end +end +::L20:: +end +if (not (bor((((-1) == bor(0, v_A)) and 1 or 0), (((tobit((v_s + 48)) % 4294967296) <= (tobit(v_a) % 4294967296)) and 1 or 0)) ~= 0)) then +v_e = I32[5801] +v_e = band((v_e + tobit((v_l - v_a))), (0 - v_e)) +if ((tobit(v_e) % 4294967296) > 2147483646) then +v_e = v_A +goto L5 +end +if ((-1) ~= bor(0, F.fmA(v_e))) then +v_a = tobit((v_e + v_a)) +v_e = v_A +goto L5 +end +F.fmA(tobit((0 - v_a))) +goto L7 +end +v_e = v_A +if ((-1) ~= bor(0, v_A)) then +goto L5 +end +goto L7 +end +end +::L11:: +end +abort() +end +end +::L10:: +end +v_o = 0 +goto L2 +end +end +::L9:: +end +v_e = 0 +goto L3 +end +end +::L8:: +end +if ((-1) ~= bor(0, v_e)) then +goto L5 +end +end +end +::L7:: +end +I32[5792] = tobit(bor(4, I32[5792])) +end +end +::L6:: +end +if ((tobit(v_n) % 4294967296) > 2147483646) then +goto L4 +end +do +local t35 = (-1) +v_e = F.fmA(v_n) +local t37 = (t35 == bor(0, v_e)) +local t36 = (-1) +v_A = F.fmA(0) +if (bor(bor((t37 and 1 or 0), ((t36 == bor(0, v_A)) and 1 or 0)), (((tobit(v_A) % 4294967296) <= (tobit(v_e) % 4294967296)) and 1 or 0)) ~= 0) then +goto L4 +end +end +v_a = tobit((v_A - v_e)) +if ((tobit(v_a) % 4294967296) <= (tobit((v_s + 40)) % 4294967296)) then +goto L4 +end +end +end +::L5:: +end +v_A = tobit((I32[5789] + v_a)) +I32[5789] = tobit(v_A) +if ((tobit(v_A) % 4294967296) > U32[5790]) then +I32[5790] = tobit(v_A) +end +do +do +do +do +do +do +do +do +do +do +v_u = I32[5687] +if (v_u ~= 0) then +do +do +do +v_A = 23172 +while true do +do +do +do +v_t = I32[arshift(v_A, 2)] +local t38 = v_t +v_n = I32[arshift((v_A + 4), 2)] +if (tobit((t38 + v_n)) == bor(0, v_e)) then +goto L25 +end +end +v_A = I32[arshift((v_A + 8), 2)] +if (not (v_A ~= 0)) then +goto B26 +end +end +end +::C26:: +end +end +::B26:: +end +goto L24 +end +end +end +do +v_A = I32[5685] +if not (((tobit(v_A) % 4294967296) <= (tobit(v_e) % 4294967296)) and (v_A ~= 0)) then +I32[5685] = tobit(v_e) +end +v_A = 0 +I32[5794] = tobit(v_a) +I32[5793] = tobit(v_e) +I32[5689] = tobit((-1)) +I32[5690] = tobit(I32[5799]) +I32[5796] = tobit(0) +while true do +v_t = lshift(v_A, 3) +v_n = tobit((22764 + v_t)) +I32[arshift((v_t + 22772), 2)] = tobit(v_n) +I32[arshift((v_t + 22776), 2)] = tobit(v_n) +v_A = tobit((v_A + 1)) +if not (32 ~= bor(0, v_A)) then goto B27 end +do +end +::C27:: +end +end +::B27:: +do +v_t = tobit((v_a - 40)) +local t39 = v_t +v_A = ((band((v_e + 8), 7) ~= 0) and band(((-8) - v_e), 7) or 0) +v_n = tobit((t39 - v_A)) +I32[5684] = tobit(v_n) +v_A = tobit((v_A + v_e)) +I32[5687] = tobit(v_A) +I32[arshift((v_A + 4), 2)] = tobit(bor(1, v_n)) +I32[arshift((4 + tobit((v_e + v_t))), 2)] = tobit(40) +I32[5688] = tobit(I32[5803]) +end +goto L23 +end +end +::L25:: +end +if (not (bor(bor(band(8, U8[tobit((v_A + 12))]), (((tobit(v_t) % 4294967296) > (tobit(v_u) % 4294967296)) and 1 or 0)), (((tobit(v_e) % 4294967296) <= (tobit(v_u) % 4294967296)) and 1 or 0)) ~= 0)) then +I32[arshift((v_A + 4), 2)] = tobit((v_n + v_a)) +v_A = ((band((v_u + 8), 7) ~= 0) and band(((-8) - v_u), 7) or 0) +v_n = tobit((v_A + v_u)) +I32[5687] = tobit(v_n) +v_e = tobit((I32[5684] + v_a)) +v_A = tobit((v_e - v_A)) +I32[5684] = tobit(v_A) +I32[arshift((v_n + 4), 2)] = tobit(bor(1, v_A)) +I32[arshift((4 + tobit((v_e + v_u))), 2)] = tobit(40) +I32[5688] = tobit(I32[5803]) +goto L23 +end +end +end +::L24:: +end +if (U32[5685] > (tobit(v_e) % 4294967296)) then +I32[5685] = tobit(v_e) +end +v_n = tobit((v_e + v_a)) +v_A = 23172 +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +while true do +do +if (bor(0, v_n) ~= I32[arshift(v_A, 2)]) then +v_A = I32[arshift((v_A + 8), 2)] +if (v_A ~= 0) then +goto C34 +end +goto L33 +end +goto B34 +end +::C34:: +end +end +::B34:: +if (not (band(8, U8[tobit((v_A + 12))]) ~= 0)) then +goto L32 +end +end +::L33:: +do +do +v_A = 23172 +while true do +do +do +do +v_n = I32[arshift(v_A, 2)] +local t40 = ((tobit(v_n) % 4294967296) <= (tobit(v_u) % 4294967296)) +if t40 then +v_o = tobit((v_n + I32[arshift((v_A + 4), 2)])) +t40 = ((tobit(v_o) % 4294967296) > (tobit(v_u) % 4294967296)) +end +if t40 then +goto L31 +end +end +v_A = I32[arshift((v_A + 8), 2)] +end +end +::C35:: +end +end +::B35:: +end +end +end +::L32:: +end +do +I32[arshift(v_A, 2)] = tobit(v_e) +I32[arshift((v_A + 4), 2)] = tobit((I32[arshift((v_A + 4), 2)] + v_a)) +v_l = tobit((((band((v_e + 8), 7) ~= 0) and band(((-8) - v_e), 7) or 0) + v_e)) +I32[arshift((4 + v_l), 2)] = tobit(bor(3, v_s)) +v_a = tobit((v_n + ((band((v_n + 8), 7) ~= 0) and band(((-8) - v_n), 7) or 0))) +local t41 = v_a +v_c = tobit((v_s + v_l)) +v_n = tobit((t41 - v_c)) +if (bor(0, v_u) == bor(0, v_a)) then +I32[5687] = tobit(v_c) +v_A = tobit((I32[5684] + v_n)) +I32[5684] = tobit(v_A) +I32[arshift((v_c + 4), 2)] = tobit(bor(1, v_A)) +goto L29 +end +end +if (I32[5686] == bor(0, v_a)) then +I32[5686] = tobit(v_c) +v_A = tobit((I32[5683] + v_n)) +I32[5683] = tobit(v_A) +I32[arshift((v_c + 4), 2)] = tobit(bor(1, v_A)) +I32[arshift((v_A + v_c), 2)] = tobit(v_A) +goto L29 +end +do +v_A = I32[arshift((v_a + 4), 2)] +if (1 == band(3, v_A)) then +do +v_u = band((-8), v_A) +do +do +do +if ((tobit(v_A) % 4294967296) <= 255) then +v_t = I32[arshift((v_a + 8), 2)] +v_A = tobit((rshift(v_A, 3) % 4294967296)) +v_e = I32[arshift((v_a + 12), 2)] +if (bor(0, v_e) == bor(0, v_t)) then +I32[5681] = tobit(band(I32[5681], F.fKA((-2), v_A))) +goto L36 +end +I32[arshift((v_t + 12), 2)] = tobit(v_e) +I32[arshift((v_e + 8), 2)] = tobit(v_t) +else +do +do +v_s = I32[arshift((v_a + 24), 2)] +local t42 = bor(0, v_a) +v_e = I32[arshift((v_a + 12), 2)] +if (t42 == bor(0, v_e)) then +do +v_A = tobit((v_a + 20)) +v_t = I32[arshift(v_A, 2)] +local t43 = (v_t ~= 0) +if not t43 then +v_A = tobit((v_a + 16)) +v_t = I32[arshift(v_A, 2)] +t43 = (v_t ~= 0) +end +if t43 then +do +do +do +while true do +do +v_o = v_A +v_e = v_t +v_A = tobit((v_e + 20)) +v_t = I32[arshift(v_A, 2)] +local t44 = v_t +if t44 == 0 then +v_A = tobit((v_e + 16)) +v_t = I32[arshift((v_e + 16), 2)] +t44 = v_t +end +if not (t44 ~= 0) then goto B37 end +end +do +end +::C37:: +end +end +::B37:: +end +I32[arshift(v_o, 2)] = tobit(0) +end +else +v_e = 0 +end +end +else +v_A = I32[arshift((v_a + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_e) +I32[arshift((v_e + 8), 2)] = tobit(v_A) +end +end +if (v_s ~= 0) then +v_t = I32[arshift((v_a + 28), 2)] +do +v_A = tobit((23028 + lshift(v_t, 2))) +if (I32[arshift(v_A, 2)] == bor(0, v_a)) then +I32[arshift(v_A, 2)] = tobit(v_e) +if (v_e ~= 0) then +goto L38 +end +I32[5682] = tobit(band(I32[5682], F.fKA((-2), v_t))) +goto L36 +end +I32[arshift((v_s + ((I32[arshift((v_s + 16), 2)] == bor(0, v_a)) and 16 or 20)), 2)] = tobit(v_e) +if (not (v_e ~= 0)) then +goto L36 +end +end +::L38:: +I32[arshift((v_e + 24), 2)] = tobit(v_s) +v_A = I32[arshift((v_a + 16), 2)] +if (v_A ~= 0) then +I32[arshift((v_e + 16), 2)] = tobit(v_A) +I32[arshift((v_A + 24), 2)] = tobit(v_e) +end +v_A = I32[arshift((v_a + 20), 2)] +if (v_A ~= 0) then +I32[arshift((v_e + 20), 2)] = tobit(v_A) +I32[arshift((v_A + 24), 2)] = tobit(v_e) +end +end +end +end +end +end +::L36:: +end +v_a = tobit((v_u + v_a)) +v_n = tobit((v_n + v_u)) +end +end +end +do +I32[arshift((v_a + 4), 2)] = tobit(band((-2), I32[arshift((v_a + 4), 2)])) +I32[arshift((v_c + 4), 2)] = tobit(bor(1, v_n)) +I32[arshift((v_n + v_c), 2)] = tobit(v_n) +if ((tobit(v_n) % 4294967296) <= 255) then +do +do +v_A = tobit((rshift(v_n, 3) % 4294967296)) +v_e = tobit((22764 + lshift(v_A, 3))) +v_n = I32[5681] +local t45 = v_n +v_A = lshift(1, v_A) +if (band(t45, v_A) ~= 0) then +v_A = I32[arshift((v_e + 8), 2)] +else +I32[5681] = tobit(bor(v_A, v_n)) +v_A = v_e +end +I32[arshift((v_e + 8), 2)] = tobit(v_c) +I32[arshift((v_A + 12), 2)] = tobit(v_c) +I32[arshift((v_c + 12), 2)] = tobit(v_e) +I32[arshift((v_c + 8), 2)] = tobit(v_A) +end +goto L29 +end +end +end +do +v_A = 31 +if ((tobit(v_n) % 4294967296) <= 16777215) then +v_A = tobit((rshift(v_n, 8) % 4294967296)) +local t46 = v_A +v_o = band((rshift((v_A + 1048320), 16) % 4294967296), 8) +v_A = lshift(t46, v_o) +local t47 = v_A +v_t = band((rshift((v_A + 520192), 16) % 4294967296), 4) +v_A = lshift(t47, v_t) +local t48 = v_A +v_e = band((rshift((v_A + 245760), 16) % 4294967296), 2) +v_A = tobit((tobit((rshift(lshift(t48, v_e), 15) % 4294967296)) - bor(bor(v_e, v_t), v_o))) +v_A = tobit((28 + bor(lshift(v_A, 1), band((rshift(v_n, (v_A + 21)) % 4294967296), 1)))) +end +I32[arshift((v_c + 28), 2)] = tobit(v_A) +I32[arshift((v_c + 16), 2)] = tobit(0) +I32[arshift((v_c + 20), 2)] = tobit(0) +v_o = tobit((23028 + lshift(v_A, 2))) +v_t = I32[5682] +local t49 = v_t +v_e = lshift(1, v_A) +if (band(t49, v_e) ~= 0) then +do +v_A = lshift(v_n, ((31 == bor(0, v_A)) and 0 or tobit((25 - tobit((rshift(v_A, 1) % 4294967296)))))) +v_e = I32[arshift(v_o, 2)] +while true do +do +v_t = v_e +if (band((-8), I32[arshift((v_e + 4), 2)]) == bor(0, v_n)) then +goto L30 +end +v_e = tobit((rshift(v_A, 29) % 4294967296)) +v_A = lshift(v_A, 1) +v_o = tobit((v_t + band(4, v_e))) +v_e = I32[arshift((16 + v_o), 2)] +if (not (v_e ~= 0)) then +goto B39 +end +end +::C39:: +end +end +::B39:: +I32[arshift((v_o + 16), 2)] = tobit(v_c) +I32[arshift((v_c + 24), 2)] = tobit(v_t) +else +I32[5682] = tobit(bor(v_e, v_t)) +I32[arshift(v_o, 2)] = tobit(v_c) +I32[arshift((v_c + 24), 2)] = tobit(v_o) +end +end +I32[arshift((v_c + 12), 2)] = tobit(v_c) +I32[arshift((v_c + 8), 2)] = tobit(v_c) +goto L29 +end +end +::L31:: +end +do +do +do +v_t = tobit((v_a - 40)) +local t50 = v_t +v_A = ((band((v_e + 8), 7) ~= 0) and band(((-8) - v_e), 7) or 0) +v_n = tobit((t50 - v_A)) +I32[5684] = tobit(v_n) +v_A = tobit((v_A + v_e)) +I32[5687] = tobit(v_A) +I32[arshift((v_A + 4), 2)] = tobit(bor(1, v_n)) +I32[arshift((4 + tobit((v_e + v_t))), 2)] = tobit(40) +I32[5688] = tobit(I32[5803]) +v_A = tobit((tobit((v_o + ((band((v_o - 39), 7) ~= 0) and band((39 - v_o), 7) or 0))) - 47)) +v_n = (((tobit(v_A) % 4294967296) < (tobit((v_u + 16)) % 4294967296)) and v_u or v_A) +I32[arshift((v_n + 4), 2)] = tobit(27) +v_A = I32[5796] +I32[arshift((v_n + 16), 2)] = tobit(I32[5795]) +I32[arshift((v_n + 20), 2)] = tobit(v_A) +v_A = I32[5794] +I32[arshift((v_n + 8), 2)] = tobit(I32[5793]) +I32[arshift((v_n + 12), 2)] = tobit(v_A) +I32[5795] = tobit((v_n + 8)) +I32[5794] = tobit(v_a) +I32[5793] = tobit(v_e) +I32[5796] = tobit(0) +v_A = tobit((v_n + 24)) +end +while true do +I32[arshift((v_A + 4), 2)] = tobit(7) +v_e = tobit((v_A + 8)) +v_A = tobit((v_A + 4)) +if not ((tobit(v_e) % 4294967296) < (tobit(v_o) % 4294967296)) then goto B40 end +do +end +::C40:: +end +end +::B40:: +end +if (bor(0, v_n) == bor(0, v_u)) then +goto L23 +end +do +I32[arshift((v_n + 4), 2)] = tobit(band((-2), I32[arshift((v_n + 4), 2)])) +v_o = tobit((v_n - v_u)) +I32[arshift((v_u + 4), 2)] = tobit(bor(1, v_o)) +I32[arshift(v_n, 2)] = tobit(v_o) +if ((tobit(v_o) % 4294967296) <= 255) then +do +do +v_A = tobit((rshift(v_o, 3) % 4294967296)) +v_e = tobit((22764 + lshift(v_A, 3))) +v_n = I32[5681] +local t51 = v_n +v_A = lshift(1, v_A) +if (band(t51, v_A) ~= 0) then +v_A = I32[arshift((v_e + 8), 2)] +else +I32[5681] = tobit(bor(v_A, v_n)) +v_A = v_e +end +I32[arshift((v_e + 8), 2)] = tobit(v_u) +I32[arshift((v_A + 12), 2)] = tobit(v_u) +I32[arshift((v_u + 12), 2)] = tobit(v_e) +I32[arshift((v_u + 8), 2)] = tobit(v_A) +end +goto L23 +end +end +end +do +v_A = 31 +I32[arshift((v_u + 16), 2)] = tobit(0) +I32[arshift((v_u + 20), 2)] = tobit(0) +if ((tobit(v_o) % 4294967296) <= 16777215) then +v_A = tobit((rshift(v_o, 8) % 4294967296)) +local t52 = v_A +v_t = band((rshift((v_A + 1048320), 16) % 4294967296), 8) +v_A = lshift(t52, v_t) +local t53 = v_A +v_n = band((rshift((v_A + 520192), 16) % 4294967296), 4) +v_A = lshift(t53, v_n) +local t54 = v_A +v_e = band((rshift((v_A + 245760), 16) % 4294967296), 2) +v_A = tobit((tobit((rshift(lshift(t54, v_e), 15) % 4294967296)) - bor(bor(v_e, v_n), v_t))) +v_A = tobit((28 + bor(lshift(v_A, 1), band((rshift(v_o, (v_A + 21)) % 4294967296), 1)))) +end +I32[arshift((v_u + 28), 2)] = tobit(v_A) +v_t = tobit((23028 + lshift(v_A, 2))) +v_n = I32[5682] +local t55 = v_n +v_e = lshift(1, v_A) +if (band(t55, v_e) ~= 0) then +do +v_A = lshift(v_o, ((31 == bor(0, v_A)) and 0 or tobit((25 - tobit((rshift(v_A, 1) % 4294967296)))))) +v_e = I32[arshift(v_t, 2)] +while true do +do +v_n = v_e +if (bor(0, v_o) == band((-8), I32[arshift((v_e + 4), 2)])) then +goto L28 +end +v_e = tobit((rshift(v_A, 29) % 4294967296)) +v_A = lshift(v_A, 1) +v_t = tobit((v_n + band(4, v_e))) +v_e = I32[arshift((16 + v_t), 2)] +if (not (v_e ~= 0)) then +goto B41 +end +end +::C41:: +end +end +::B41:: +I32[arshift((v_t + 16), 2)] = tobit(v_u) +I32[arshift((v_u + 24), 2)] = tobit(v_n) +else +I32[5682] = tobit(bor(v_e, v_n)) +I32[arshift(v_t, 2)] = tobit(v_u) +I32[arshift((v_u + 24), 2)] = tobit(v_t) +end +end +I32[arshift((v_u + 12), 2)] = tobit(v_u) +I32[arshift((v_u + 8), 2)] = tobit(v_u) +goto L23 +end +end +::L30:: +end +v_A = I32[arshift((v_t + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_c) +I32[arshift((v_t + 8), 2)] = tobit(v_c) +I32[arshift((v_c + 24), 2)] = tobit(0) +I32[arshift((v_c + 12), 2)] = tobit(v_t) +I32[arshift((v_c + 8), 2)] = tobit(v_A) +end +end +::L29:: +end +v_A = tobit((v_l + 8)) +goto L1 +end +end +::L28:: +end +v_A = I32[arshift((v_n + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_u) +I32[arshift((v_n + 8), 2)] = tobit(v_u) +I32[arshift((v_u + 24), 2)] = tobit(0) +I32[arshift((v_u + 12), 2)] = tobit(v_n) +I32[arshift((v_u + 8), 2)] = tobit(v_A) +end +end +::L23:: +end +v_A = I32[5684] +if (not ((tobit(v_A) % 4294967296) <= (tobit(v_s) % 4294967296))) then +v_e = tobit((v_A - v_s)) +I32[5684] = tobit(v_e) +v_n = I32[5687] +v_A = tobit((v_n + v_s)) +I32[5687] = tobit(v_A) +I32[arshift((v_A + 4), 2)] = tobit(bor(1, v_e)) +I32[arshift((v_n + 4), 2)] = tobit(bor(3, v_s)) +v_A = tobit((v_n + 8)) +goto L1 +end +end +end +::L4:: +end +I32[5680] = tobit(48) +v_A = 0 +goto L1 +end +end +::L3:: +end +do +if (v_a ~= 0) then +v_n = I32[arshift((v_o + 28), 2)] +do +v_A = tobit((23028 + lshift(v_n, 2))) +if (I32[arshift(v_A, 2)] == bor(0, v_o)) then +I32[arshift(v_A, 2)] = tobit(v_e) +if (v_e ~= 0) then +goto L43 +end +v_l = band(F.fKA((-2), v_n), v_l) +I32[5682] = tobit(v_l) +goto L42 +end +I32[arshift((v_a + ((I32[arshift((v_a + 16), 2)] == bor(0, v_o)) and 16 or 20)), 2)] = tobit(v_e) +if (not (v_e ~= 0)) then +goto L42 +end +end +::L43:: +I32[arshift((v_e + 24), 2)] = tobit(v_a) +v_A = I32[arshift((v_o + 16), 2)] +if (v_A ~= 0) then +I32[arshift((v_e + 16), 2)] = tobit(v_A) +I32[arshift((v_A + 24), 2)] = tobit(v_e) +end +v_A = I32[arshift((v_o + 20), 2)] +if (v_A ~= 0) then +I32[arshift((v_e + 20), 2)] = tobit(v_A) +I32[arshift((v_A + 24), 2)] = tobit(v_e) +end +end +end +::L42:: +do +do +do +if ((tobit(v_t) % 4294967296) <= 15) then +v_A = tobit((v_t + v_s)) +I32[arshift((v_o + 4), 2)] = tobit(bor(3, v_A)) +v_A = tobit((v_A + v_o)) +I32[arshift((4 + v_A), 2)] = tobit(bor(1, I32[arshift((v_A + 4), 2)])) +else +do +I32[arshift((v_o + 4), 2)] = tobit(bor(3, v_s)) +I32[arshift((v_c + 4), 2)] = tobit(bor(1, v_t)) +I32[arshift((v_t + v_c), 2)] = tobit(v_t) +if ((tobit(v_t) % 4294967296) <= 255) then +do +v_A = tobit((rshift(v_t, 3) % 4294967296)) +v_e = tobit((22764 + lshift(v_A, 3))) +v_n = I32[5681] +local t56 = v_n +v_A = lshift(1, v_A) +if (band(t56, v_A) ~= 0) then +v_A = I32[arshift((v_e + 8), 2)] +else +I32[5681] = tobit(bor(v_A, v_n)) +v_A = v_e +end +I32[arshift((v_e + 8), 2)] = tobit(v_c) +I32[arshift((v_A + 12), 2)] = tobit(v_c) +I32[arshift((v_c + 12), 2)] = tobit(v_e) +I32[arshift((v_c + 8), 2)] = tobit(v_A) +end +else +do +do +v_A = 31 +if ((tobit(v_t) % 4294967296) <= 16777215) then +v_A = tobit((rshift(v_t, 8) % 4294967296)) +local t57 = v_A +v_u = band((rshift((v_A + 1048320), 16) % 4294967296), 8) +v_A = lshift(t57, v_u) +local t58 = v_A +v_n = band((rshift((v_A + 520192), 16) % 4294967296), 4) +v_A = lshift(t58, v_n) +local t59 = v_A +v_e = band((rshift((v_A + 245760), 16) % 4294967296), 2) +v_A = tobit((tobit((rshift(lshift(t59, v_e), 15) % 4294967296)) - bor(bor(v_e, v_n), v_u))) +v_A = tobit((28 + bor(lshift(v_A, 1), band((rshift(v_t, (v_A + 21)) % 4294967296), 1)))) +end +I32[arshift((v_c + 28), 2)] = tobit(v_A) +I32[arshift((v_c + 16), 2)] = tobit(0) +I32[arshift((v_c + 20), 2)] = tobit(0) +v_n = tobit((23028 + lshift(v_A, 2))) +end +do +do +do +do +v_e = lshift(1, v_A) +if (band(v_e, v_l) ~= 0) then +do +do +do +v_A = lshift(v_t, ((31 == bor(0, v_A)) and 0 or tobit((25 - tobit((rshift(v_A, 1) % 4294967296)))))) +v_s = I32[arshift(v_n, 2)] +while true do +do +do +do +local t60 = (-8) +v_e = v_s +if (band(t60, I32[arshift((v_e + 4), 2)]) == bor(0, v_t)) then +goto L45 +end +end +v_n = tobit((rshift(v_A, 29) % 4294967296)) +v_A = lshift(v_A, 1) +v_n = tobit((v_e + band(4, v_n))) +v_s = I32[arshift((16 + v_n), 2)] +if (not (v_s ~= 0)) then +goto B46 +end +end +end +::C46:: +end +end +::B46:: +end +I32[arshift((v_n + 16), 2)] = tobit(v_c) +I32[arshift((v_c + 24), 2)] = tobit(v_e) +end +else +I32[5682] = tobit(bor(v_e, v_l)) +I32[arshift(v_n, 2)] = tobit(v_c) +I32[arshift((v_c + 24), 2)] = tobit(v_n) +end +end +I32[arshift((v_c + 12), 2)] = tobit(v_c) +I32[arshift((v_c + 8), 2)] = tobit(v_c) +goto L44 +end +end +::L45:: +end +v_A = I32[arshift((v_e + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_c) +I32[arshift((v_e + 8), 2)] = tobit(v_c) +I32[arshift((v_c + 24), 2)] = tobit(0) +I32[arshift((v_c + 12), 2)] = tobit(v_e) +I32[arshift((v_c + 8), 2)] = tobit(v_A) +end +end +end +end +end +end +::L44:: +end +v_A = tobit((v_o + 8)) +goto L1 +end +end +::L2:: +end +do +if (v_g ~= 0) then +v_n = I32[arshift((v_e + 28), 2)] +do +v_A = tobit((23028 + lshift(v_n, 2))) +if (I32[arshift(v_A, 2)] == bor(0, v_e)) then +I32[arshift(v_A, 2)] = tobit(v_o) +if (v_o ~= 0) then +goto L48 +end +I32[5682] = tobit(band(F.fKA((-2), v_n), v_c)) +goto L47 +end +I32[arshift((((I32[arshift((v_g + 16), 2)] == bor(0, v_e)) and 16 or 20) + v_g), 2)] = tobit(v_o) +if (not (v_o ~= 0)) then +goto L47 +end +end +::L48:: +I32[arshift((v_o + 24), 2)] = tobit(v_g) +v_A = I32[arshift((v_e + 16), 2)] +if (v_A ~= 0) then +I32[arshift((v_o + 16), 2)] = tobit(v_A) +I32[arshift((v_A + 24), 2)] = tobit(v_o) +end +v_A = I32[arshift((v_e + 20), 2)] +if (v_A ~= 0) then +I32[arshift((v_o + 20), 2)] = tobit(v_A) +I32[arshift((v_A + 24), 2)] = tobit(v_o) +end +end +end +::L47:: +if ((tobit(v_t) % 4294967296) <= 15) then +v_A = tobit((v_t + v_s)) +I32[arshift((v_e + 4), 2)] = tobit(bor(3, v_A)) +v_A = tobit((v_A + v_e)) +I32[arshift((4 + v_A), 2)] = tobit(bor(1, I32[arshift((v_A + 4), 2)])) +else +I32[arshift((v_e + 4), 2)] = tobit(bor(3, v_s)) +I32[arshift((v_l + 4), 2)] = tobit(bor(1, v_t)) +I32[arshift((v_t + v_l), 2)] = tobit(v_t) +if (v_v ~= 0) then +v_A = tobit((rshift(v_v, 3) % 4294967296)) +v_n = tobit((22764 + lshift(v_A, 3))) +v_o = I32[5686] +v_A = lshift(1, v_A) +if (band(v_A, v_a) ~= 0) then +v_A = I32[arshift((v_n + 8), 2)] +else +I32[5681] = tobit(bor(v_A, v_a)) +v_A = v_n +end +I32[arshift((v_n + 8), 2)] = tobit(v_o) +I32[arshift((v_A + 12), 2)] = tobit(v_o) +I32[arshift((v_o + 12), 2)] = tobit(v_n) +I32[arshift((v_o + 8), 2)] = tobit(v_A) +end +I32[5686] = tobit(v_l) +I32[5683] = tobit(v_t) +end +v_A = tobit((v_e + 8)) +end +end +::L1:: +end +B = tobit((v_r + 16)) +do return bor(0, v_A) end +end + +F.fQ = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I, v_m, v_Q, v_O, v_S, v_M, v_x, v_j, v_T, v_P, v_K, v_R, v_D, v_L, v_F, v_H, v_N, v_U, v_Y, v_G, v_J, v_q, v_W, v_V, v_Z, v_z = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +v_x = 0 +v_j = 0 +v_T = 0 +v_P = 0 +v_K = 0 +v_R = 0 +v_D = 0 +v_L = 0 +v_F = 0 +v_H = 0 +v_N = 0 +v_U = 0 +v_Y = 0 +v_G = 0 +v_J = 0 +v_q = 0 +v_W = 0 +v_V = 0 +v_Z = 0 +v_z = 0 +v_t = tobit((B + (-64))) +B = v_t +I32[arshift((v_t + 56), 2)] = tobit(0) +I32[arshift((v_t + 60), 2)] = tobit(0) +I32[arshift((v_t + 48), 2)] = tobit(0) +I32[arshift((v_t + 52), 2)] = tobit(0) +I32[arshift((v_t + 40), 2)] = tobit(0) +I32[arshift((v_t + 44), 2)] = tobit(0) +I32[arshift((v_t + 32), 2)] = tobit(0) +I32[arshift((v_t + 36), 2)] = tobit(0) +I32[arshift((v_t + 24), 2)] = tobit(0) +I32[arshift((v_t + 28), 2)] = tobit(0) +I32[arshift((v_t + 16), 2)] = tobit(0) +I32[arshift((v_t + 20), 2)] = tobit(0) +I32[arshift((v_t + 8), 2)] = tobit(0) +I32[arshift((v_t + 12), 2)] = tobit(0) +I32[arshift(v_t, 2)] = tobit(0) +I32[arshift((v_t + 4), 2)] = tobit(0) +F.fPA(tobit((v_A + 4)), 0, 272) +do +do +do +do +do +if (bor(((256 == bor(0, v_e)) and 1 or 0), ((192 == bor(0, v_e)) and 1 or 0)) ~= 0) then +I32[arshift(v_A, 2)] = tobit(4) +v_u = F.fTA(v_t, v_r, tobit((rshift(v_e, 3) % 4294967296))) +v_r = 1 +if (192 == bor(0, v_e)) then +goto L51 +end +else +v_a = (-36) +if (128 ~= bor(0, v_e)) then +goto L49 +end +I32[arshift(v_A, 2)] = tobit(3) +F.fTA(v_t, v_r, tobit((rshift(v_e, 3) % 4294967296))) +v_r = 0 +v_P = 1 +end +v_s = U8[tobit((v_t + 22))] +v_a = U8[tobit((v_t + 21))] +v_c = U8[tobit((v_t + 20))] +v_l = U8[tobit((v_t + 19))] +v_v = U8[tobit((v_t + 18))] +v_y = U8[tobit((v_t + 17))] +v_h = U8[tobit((v_t + 16))] +goto L50 +end +::L51:: +v_h = U8[tobit((v_u + 16))] +I8[tobit((v_u + 24))] = tobit(bxor((-1), v_h)) +v_y = U8[tobit((v_u + 17))] +I8[tobit((v_u + 25))] = tobit(bxor((-1), v_y)) +v_v = U8[tobit((v_u + 18))] +I8[tobit((v_u + 26))] = tobit(bxor((-1), v_v)) +v_l = U8[tobit((v_u + 19))] +I8[tobit((v_u + 27))] = tobit(bxor((-1), v_l)) +v_c = U8[tobit((v_u + 20))] +I8[tobit((v_u + 28))] = tobit(bxor((-1), v_c)) +v_a = U8[tobit((v_u + 21))] +I8[tobit((v_u + 29))] = tobit(bxor((-1), v_a)) +v_s = U8[tobit((v_u + 22))] +I8[tobit((v_u + 30))] = tobit(bxor((-1), v_s)) +I8[tobit((v_u + 31))] = tobit(bxor((-1), U8[tobit((v_u + 23))])) +end +::L50:: +do +v_K = U8[tobit((v_t + 23))] +local t61 = v_K +v_R = bor(lshift(band(255, v_a), 16), lshift(v_c, 24)) +v_w = bor(bor(t61, v_R), lshift(band(255, v_s), 8)) +v_D = U8[tobit((v_t + 7))] +local t62 = v_D +v_Q = bor(lshift(U8[tobit((v_t + 5))], 16), lshift(U8[tobit((v_t + 4))], 24)) +v_u = bor(bor(t62, v_Q), lshift(U8[tobit((v_t + 6))], 8)) +v_a = bxor(bxor(v_w, v_u), 1003262091) +v_o = U8[tobit((7840 + tobit((rshift(v_a, 24) % 4294967296))))] +v_s = bor(bor(bor(U8[tobit((7584 + band(255, v_a)))], lshift(U8[tobit((8096 + band((rshift(v_a, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_a, 8) % 4294967296), 255)))], 8)) +v_L = band(255, v_l) +local t63 = v_L +v_F = bor(lshift(band(255, v_y), 16), lshift(v_h, 24)) +v_S = bor(bor(t63, v_F), lshift(band(255, v_v), 8)) +v_O = U8[tobit((v_t + 3))] +local t64 = v_O +v_y = bor(lshift(U8[tobit((v_t + 1))], 16), lshift(U8[bor(0, v_t)], 24)) +v_c = bor(bor(t64, v_y), lshift(U8[tobit((v_t + 2))], 8)) +local t66 = bor(v_o, lshift(v_s, 8)) +local t65 = (-1600231809) +v_l = bxor(v_S, v_c) +v_a = bxor(t65, v_l) +v_a = bxor(t66, bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_a, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_a, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_a, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_a)))])) +v_s = bxor(F.fKA(v_a, 16), v_s) +v_a = bxor(F.fKA(v_s, 24), v_a) +v_H = U8[tobit((v_t + 31))] +local t67 = v_H +v_N = bor(lshift(U8[tobit((v_t + 29))], 16), lshift(U8[tobit((v_t + 28))], 24)) +v_M = bor(bor(t67, v_N), lshift(U8[tobit((v_t + 30))], 8)) +v_U = U8[tobit((v_t + 15))] +local t68 = v_U +v_x = bor(lshift(U8[tobit((v_t + 13))], 16), lshift(U8[tobit((v_t + 12))], 24)) +v_h = bor(bor(t68, v_x), lshift(U8[tobit((v_t + 14))], 8)) +v_o = bxor(bxor(bxor(v_a, v_M), v_h), 1286239154) +v_v = U8[tobit((7840 + tobit((rshift(v_o, 24) % 4294967296))))] +local t69 = v_v +v_b = bor(bor(bor(U8[tobit((7584 + band(255, v_o)))], lshift(U8[tobit((8096 + band((rshift(v_o, 16) % 4294967296), 255)))], 16)), lshift(v_v, 24)), lshift(U8[tobit((8352 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)) +v_C = bor(t69, lshift(v_b, 8)) +local t71 = v_s +v_Y = U8[tobit((v_t + 27))] +local t70 = v_Y +v_G = bor(lshift(U8[tobit((v_t + 25))], 16), lshift(U8[tobit((v_t + 24))], 24)) +v_j = bor(bor(t70, v_G), lshift(U8[tobit((v_t + 26))], 8)) +local t73 = bxor(t71, v_j) +v_J = U8[tobit((v_t + 11))] +local t72 = v_J +v_T = bor(lshift(U8[tobit((v_t + 9))], 16), lshift(U8[tobit((v_t + 8))], 24)) +v_v = bor(bor(t72, v_T), lshift(U8[tobit((v_t + 10))], 8)) +v_d = bxor(bxor(t73, v_v), F.fKA(v_a, 24)) +local t74 = v_C +v_o = bxor((-1233459112), v_d) +v_o = bxor(t74, bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_o, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_o, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_o)))])) +v_b = bxor(F.fKA(v_o, 16), v_b) +v_E = bxor(F.fKA(v_b, 24), v_o) +local t75 = (-380665154) +v_q = bxor(v_E, v_w) +v_o = bxor(t75, v_q) +v_s = U8[tobit((7840 + tobit((rshift(v_o, 24) % 4294967296))))] +v_p = bor(bor(bor(U8[tobit((7584 + band(255, v_o)))], lshift(U8[tobit((8096 + band((rshift(v_o, 16) % 4294967296), 255)))], 16)), lshift(v_s, 24)), lshift(U8[tobit((8352 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)) +v_l = bxor(bxor(bxor(v_c, F.fKA(v_E, 24)), v_l), v_b) +local t76 = bor(v_s, lshift(v_p, 8)) +v_o = bxor((-957401297), v_l) +v_o = bxor(t76, bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_o, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_o, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_o)))])) +v_b = bxor(F.fKA(v_o, 16), v_p) +v_C = bxor(F.fKA(v_b, 24), v_o) +local t77 = (-237801700) +v_I = bxor(bxor(v_C, v_a), v_M) +v_o = bxor(t77, v_I) +v_s = U8[tobit((7840 + tobit((rshift(v_o, 24) % 4294967296))))] +local t78 = v_s +v_p = bor(bor(bor(U8[tobit((7584 + band(255, v_o)))], lshift(U8[tobit((8096 + band((rshift(v_o, 16) % 4294967296), 255)))], 16)), lshift(v_s, 24)), lshift(U8[tobit((8352 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)) +v_k = bor(t78, lshift(v_p, 8)) +v_s = bxor(bxor(bxor(F.fKA(v_C, 24), v_b), v_v), v_d) +local t79 = v_k +v_o = bxor(1426019237, v_s) +v_o = bxor(t79, bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_o, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_o, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_o)))])) +v_b = bxor(F.fKA(v_o, 16), v_p) +v_k = bxor(F.fKA(v_b, 24), v_o) +v_l = bxor(bxor(F.fKA(v_k, 24), v_l), v_b) +v_b = 0 +v_d = 0 +v_p = 0 +if ((tobit(v_e) % 4294967296) >= 129) then +v_C = bxor(v_C, v_a) +local t80 = (-563598051) +v_d = bxor(v_k, v_E) +v_o = bxor(t80, v_d) +v_b = U8[tobit((7840 + tobit((rshift(v_o, 24) % 4294967296))))] +local t81 = v_b +v_o = bor(bor(bor(U8[tobit((7584 + band(255, v_o)))], lshift(U8[tobit((8096 + band((rshift(v_o, 16) % 4294967296), 255)))], 16)), lshift(v_b, 24)), lshift(U8[tobit((8352 + band((rshift(v_o, 8) % 4294967296), 255)))], 8)) +v_p = bor(t81, lshift(v_o, 8)) +local t82 = v_p +v_b = bxor(v_l, v_S) +v_a = bxor(283453434, v_b) +v_a = bxor(t82, bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_a, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_a, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_a, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_a)))])) +v_p = bxor(F.fKA(v_a, 16), v_o) +v_E = bxor(F.fKA(v_p, 24), v_a) +local t83 = (-1276722691) +v_m = bxor(v_C, v_E) +v_a = bxor(t83, v_m) +v_o = U8[tobit((7840 + tobit((rshift(v_a, 24) % 4294967296))))] +v_C = v_d +v_d = bor(bor(bor(U8[tobit((7584 + band(255, v_a)))], lshift(U8[tobit((8096 + band((rshift(v_a, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_a, 8) % 4294967296), 255)))], 8)) +v_p = bxor(bxor(bxor(F.fKA(v_E, 24), v_p), v_s), v_j) +local t84 = bor(v_o, lshift(v_d, 8)) +v_a = bxor((-1336506174), v_p) +v_a = bxor(t84, bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_a, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_a, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_a, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_a)))])) +v_o = bxor(F.fKA(v_a, 16), v_d) +local t85 = v_C +v_a = bxor(F.fKA(v_o, 24), v_a) +v_d = bxor(t85, v_a) +v_b = bxor(bxor(F.fKA(v_a, 24), v_o), v_b) +end +if not (v_r ~= 0) then +v_W = bor(lshift(v_D, 30), (rshift(v_v, 2) % 4294967296)) +v_V = bor(lshift(v_O, 30), (rshift(v_u, 2) % 4294967296)) +v_Z = bor(lshift(v_U, 30), (rshift(v_c, 2) % 4294967296)) +v_z = bor(lshift(v_J, 30), (rshift(v_h, 2) % 4294967296)) +end +v_o = tobit((v_A + 4)) +v_a = imul(v_r, 80) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7376))], 2)), 2)] = tobit(v_c) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7377))], 2)), 2)] = tobit(v_u) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7378))], 2)), 2)] = tobit(v_v) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7379))], 2)), 2)] = tobit(v_h) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7380))], 2)), 2)] = tobit(bor(lshift(v_c, 15), (rshift(v_Q, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7381))], 2)), 2)] = tobit(bor(lshift(v_u, 15), (rshift(v_T, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7382))], 2)), 2)] = tobit(bor(lshift(v_v, 15), (rshift(v_x, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7383))], 2)), 2)] = tobit(bor(lshift(v_h, 15), (rshift(v_y, 17) % 4294967296))) +v_O = bor(lshift(v_O, 28), (rshift(v_u, 4) % 4294967296)) +v_E = bor(lshift(v_h, 13), (rshift(v_y, 19) % 4294967296)) +v_x = bor(lshift(v_v, 13), (rshift(v_x, 19) % 4294967296)) +v_T = bor(lshift(v_u, 13), (rshift(v_T, 19) % 4294967296)) +v_u = bor(lshift(v_c, 13), (rshift(v_Q, 19) % 4294967296)) +if not (v_r ~= 0) then +I32[arshift((v_o + lshift(I8[tobit((v_a + 7384))], 2)), 2)] = tobit(v_V) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7385))], 2)), 2)] = tobit(v_W) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7386))], 2)), 2)] = tobit(v_z) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7387))], 2)), 2)] = tobit(v_Z) +end +v_k = bxor(v_k, v_q) +v_y = bor(lshift(v_U, 28), (rshift(v_c, 4) % 4294967296)) +v_Q = bor(lshift(v_J, 28), (rshift(v_h, 4) % 4294967296)) +v_h = bor(lshift(v_D, 28), (rshift(v_v, 4) % 4294967296)) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7388))], 2)), 2)] = tobit(v_u) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7389))], 2)), 2)] = tobit(v_T) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7390))], 2)), 2)] = tobit(v_x) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7391))], 2)), 2)] = tobit(v_E) +I32[arshift((v_o + lshift(I8[tobit((v_a + 7392))], 2)), 2)] = tobit(v_O) +end +do +if (v_P ~= 0) then +v_u = tobit((imul(v_r, 80) + 7395)) +else +v_c = tobit((v_A + 4)) +v_o = imul(v_r, 80) +I32[arshift((v_c + lshift(I8[tobit((v_o + 7393))], 2)), 2)] = tobit(v_h) +I32[arshift((v_c + lshift(I8[tobit((v_o + 7394))], 2)), 2)] = tobit(v_Q) +I32[arshift((v_c + lshift(I8[tobit((v_o + 7395))], 2)), 2)] = tobit(v_y) +if ((tobit(v_e) % 4294967296) < 129) then +goto L52 +end +v_o = bor(v_r, v_P) +if not (v_o ~= 0) then +v_x = bor(lshift(v_j, 13), (rshift(v_N, 19) % 4294967296)) +v_T = bor(lshift(v_w, 13), (rshift(v_G, 19) % 4294967296)) +v_E = bor(lshift(v_M, 13), (rshift(v_F, 19) % 4294967296)) +v_u = bor(lshift(v_S, 13), (rshift(v_R, 19) % 4294967296)) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7396))], 2) + v_A))), 2)] = tobit(v_S) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7397))], 2) + v_A))), 2)] = tobit(v_w) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7398))], 2) + v_A))), 2)] = tobit(v_j) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7399))], 2) + v_A))), 2)] = tobit(v_M) +end +v_v = tobit((v_A + 4)) +v_c = imul(v_r, 80) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7400))], 2)), 2)] = tobit(bor(lshift(v_S, 15), (rshift(v_R, 17) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7401))], 2)), 2)] = tobit(bor(lshift(v_w, 15), (rshift(v_G, 17) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7402))], 2)), 2)] = tobit(bor(lshift(v_j, 15), (rshift(v_N, 17) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7403))], 2)), 2)] = tobit(bor(lshift(v_M, 15), (rshift(v_F, 17) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7404))], 2)), 2)] = tobit(bor(lshift(v_L, 30), (rshift(v_w, 2) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7405))], 2)), 2)] = tobit(bor(lshift(v_K, 30), (rshift(v_j, 2) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7406))], 2)), 2)] = tobit(bor(lshift(v_Y, 30), (rshift(v_M, 2) % 4294967296))) +I32[arshift((v_v + lshift(I8[tobit((v_c + 7407))], 2)), 2)] = tobit(bor(lshift(v_H, 30), (rshift(v_S, 2) % 4294967296))) +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((v_c + 7408))], 2) + v_A))), 2)] = tobit(v_u) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7409))], 2) + v_A))), 2)] = tobit(v_T) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7410))], 2) + v_A))), 2)] = tobit(v_x) +end +v_Q = bor(lshift(v_Y, 28), (rshift(v_M, 4) % 4294967296)) +v_h = bor(lshift(v_K, 28), (rshift(v_j, 4) % 4294967296)) +v_O = bor(lshift(v_L, 28), (rshift(v_w, 4) % 4294967296)) +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7411))], 2) + v_A))), 2)] = tobit(v_E) +end +v_y = bor(lshift(v_H, 28), (rshift(v_S, 4) % 4294967296)) +v_o = tobit((v_A + 4)) +v_u = imul(v_r, 80) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7412))], 2)), 2)] = tobit(v_O) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7413))], 2)), 2)] = tobit(v_h) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7414))], 2)), 2)] = tobit(v_Q) +v_u = tobit((v_u + 7415)) +end +I32[arshift((4 + tobit((lshift(I8[bor(0, v_u)], 2) + v_A))), 2)] = tobit(v_y) +end +::L52:: +do +if not (v_r ~= 0) then +v_u = tobit((v_A + 4)) +v_a = imul(v_r, 80) +I32[arshift((v_u + lshift(I8[tobit((v_a + 7416))], 2)), 2)] = tobit(v_l) +I32[arshift((v_u + lshift(I8[tobit((v_a + 7417))], 2)), 2)] = tobit(v_k) +I32[arshift((v_u + lshift(I8[tobit((v_a + 7418))], 2)), 2)] = tobit(v_s) +I32[arshift((v_u + lshift(I8[tobit((v_a + 7419))], 2)), 2)] = tobit(v_I) +v_Q = bor(lshift(v_s, 28), (rshift(v_I, 4) % 4294967296)) +v_h = bor(lshift(v_k, 28), (rshift(v_s, 4) % 4294967296)) +v_O = bor(lshift(v_l, 28), (rshift(v_k, 4) % 4294967296)) +v_y = bor(lshift(v_I, 28), (rshift(v_l, 4) % 4294967296)) +end +v_v = bor(lshift(v_I, 13), (rshift(v_l, 19) % 4294967296)) +v_a = bor(lshift(v_s, 13), (rshift(v_I, 19) % 4294967296)) +v_c = bor(lshift(v_k, 13), (rshift(v_s, 19) % 4294967296)) +v_w = bor(lshift(v_l, 13), (rshift(v_k, 19) % 4294967296)) +v_o = tobit((v_A + 4)) +v_u = imul(v_r, 80) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7420))], 2)), 2)] = tobit(bor(lshift(v_l, 15), (rshift(v_k, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7421))], 2)), 2)] = tobit(bor(lshift(v_k, 15), (rshift(v_s, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7422))], 2)), 2)] = tobit(bor(lshift(v_s, 15), (rshift(v_I, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7423))], 2)), 2)] = tobit(bor(lshift(v_I, 15), (rshift(v_l, 17) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7424))], 2)), 2)] = tobit(bor(lshift(v_l, 30), (rshift(v_k, 2) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7425))], 2)), 2)] = tobit(bor(lshift(v_k, 30), (rshift(v_s, 2) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7426))], 2)), 2)] = tobit(bor(lshift(v_s, 30), (rshift(v_I, 2) % 4294967296))) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7427))], 2)), 2)] = tobit(bor(lshift(v_I, 30), (rshift(v_l, 2) % 4294967296))) +if (v_P ~= 0) then +v_s = tobit((v_u + 7430)) +v_l = tobit((v_u + 7429)) +v_o = v_a +v_u = v_c +else +I32[arshift((v_o + lshift(I8[tobit((v_u + 7428))], 2)), 2)] = tobit(v_w) +I32[arshift((v_o + lshift(I8[tobit((v_u + 7429))], 2)), 2)] = tobit(v_c) +v_s = tobit((v_u + 7431)) +v_l = tobit((v_u + 7430)) +v_o = v_v +v_u = v_a +end +v_C = lshift(I8[bor(0, v_l)], 2) +local t86 = v_C +v_l = tobit((v_A + 4)) +I32[arshift((t86 + v_l), 2)] = tobit(v_u) +I32[arshift((v_l + lshift(I8[bor(0, v_s)], 2)), 2)] = tobit(v_o) +if not (v_r ~= 0) then +v_u = imul(v_r, 80) +I32[arshift((v_l + lshift(I8[tobit((v_u + 7432))], 2)), 2)] = tobit(v_O) +I32[arshift((v_l + lshift(I8[tobit((v_u + 7433))], 2)), 2)] = tobit(v_h) +I32[arshift((v_l + lshift(I8[tobit((v_u + 7434))], 2)), 2)] = tobit(v_Q) +I32[arshift((v_l + lshift(I8[tobit((v_u + 7435))], 2)), 2)] = tobit(v_y) +end +if not (bor((((tobit(v_e) % 4294967296) < 129) and 1 or 0), v_P) ~= 0) then +v_o = bor(v_r, v_P) +if not (v_o ~= 0) then +v_v = bor(lshift(v_m, 13), (rshift(v_b, 19) % 4294967296)) +v_c = bor(lshift(v_d, 13), (rshift(v_p, 19) % 4294967296)) +v_w = bor(lshift(v_b, 13), (rshift(v_d, 19) % 4294967296)) +v_a = bor(lshift(v_p, 13), (rshift(v_m, 19) % 4294967296)) +end +v_u = tobit((v_A + 4)) +v_e = imul(v_r, 80) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7436))], 2)), 2)] = tobit(v_b) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7437))], 2)), 2)] = tobit(v_d) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7438))], 2)), 2)] = tobit(v_p) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7439))], 2)), 2)] = tobit(v_m) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7440))], 2)), 2)] = tobit(bor(lshift(v_b, 15), (rshift(v_d, 17) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7441))], 2)), 2)] = tobit(bor(lshift(v_d, 15), (rshift(v_p, 17) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7442))], 2)), 2)] = tobit(bor(lshift(v_p, 15), (rshift(v_m, 17) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7443))], 2)), 2)] = tobit(bor(lshift(v_m, 15), (rshift(v_b, 17) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7444))], 2)), 2)] = tobit(bor(lshift(v_b, 30), (rshift(v_d, 2) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7445))], 2)), 2)] = tobit(bor(lshift(v_d, 30), (rshift(v_p, 2) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7446))], 2)), 2)] = tobit(bor(lshift(v_p, 30), (rshift(v_m, 2) % 4294967296))) +I32[arshift((v_u + lshift(I8[tobit((v_e + 7447))], 2)), 2)] = tobit(bor(lshift(v_m, 30), (rshift(v_b, 2) % 4294967296))) +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((v_e + 7448))], 2) + v_A))), 2)] = tobit(v_w) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7449))], 2) + v_A))), 2)] = tobit(v_c) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7450))], 2) + v_A))), 2)] = tobit(v_a) +end +if not (v_o ~= 0) then +I32[arshift((4 + tobit((lshift(I8[tobit((imul(v_r, 80) + 7451))], 2) + v_A))), 2)] = tobit(v_v) +end +v_a = tobit((v_A + 4)) +v_e = imul(v_r, 80) +I32[arshift((v_a + lshift(I8[tobit((v_e + 7452))], 2)), 2)] = tobit(bor(lshift(v_b, 28), (rshift(v_d, 4) % 4294967296))) +I32[arshift((v_a + lshift(I8[tobit((v_e + 7453))], 2)), 2)] = tobit(bor(lshift(v_d, 28), (rshift(v_p, 4) % 4294967296))) +I32[arshift((v_a + lshift(I8[tobit((v_e + 7454))], 2)), 2)] = tobit(bor(lshift(v_p, 28), (rshift(v_m, 4) % 4294967296))) +I32[arshift((v_a + lshift(I8[tobit((v_e + 7455))], 2)), 2)] = tobit(bor(lshift(v_m, 28), (rshift(v_b, 4) % 4294967296))) +end +v_e = tobit((v_A + 4)) +v_c = imul(v_r, 12) +v_u = lshift(v_c, 2) +v_a = imul(v_r, 20) +I32[arshift((v_e + bor(128, v_u)), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7536))], 2)), 2)]) +I32[arshift((v_e + bor(132, v_u)), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7537))], 2)), 2)]) +I32[arshift((v_e + bor(136, v_u)), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7538))], 2)), 2)]) +I32[arshift((v_e + bor(140, v_u)), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7539))], 2)), 2)]) +if not (v_P ~= 0) then +v_o = tobit((v_e + v_u)) +I32[arshift((144 + v_o), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7540))], 2)), 2)]) +I32[arshift((v_o + 148), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7541))], 2)), 2)]) +I32[arshift((v_o + 152), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7542))], 2)), 2)]) +I32[arshift((v_o + 156), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7543))], 2)), 2)]) +end +v_u = tobit((v_e + v_u)) +I32[arshift((160 + v_u), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7544))], 2)), 2)]) +I32[arshift((v_u + 164), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7545))], 2)), 2)]) +I32[arshift((v_u + 168), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7546))], 2)), 2)]) +I32[arshift((v_u + 172), 2)] = tobit(I32[arshift((v_e + lshift(I8[tobit((v_a + 7547))], 2)), 2)]) +v_a = 0 +if not (v_r ~= 0) then +v_A = tobit((v_A + 4)) +v_e = tobit((v_A + lshift(v_c, 2))) +v_r = imul(v_r, 20) +I32[arshift((v_e + 176), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7548))], 2)), 2)]) +I32[arshift((v_e + 180), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7549))], 2)), 2)]) +I32[arshift((v_e + 184), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7550))], 2)), 2)]) +I32[arshift((v_e + 188), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7551))], 2)), 2)]) +I32[arshift((v_e + 192), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7552))], 2)), 2)]) +I32[arshift((v_e + 196), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7553))], 2)), 2)]) +I32[arshift((v_e + 200), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7554))], 2)), 2)]) +I32[arshift((v_e + 204), 2)] = tobit(I32[arshift((v_A + lshift(I8[tobit((v_r + 7555))], 2)), 2)]) +end +end +end +end +::L49:: +end +B = tobit((v_t - (-64))) +do return v_a end +end + +F.fO = function(v_A, v_r, v_e, v_t, v_a, v_u, v_c) +local v_s, v_l, v_b, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I, v_m, v_Q, v_O, v_S, v_M = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +v_s = tobit((B - 80)) +B = v_s +I32[arshift((v_s + 76), 2)] = tobit(v_r) +v_b = tobit((v_s + 55)) +v_l = tobit((v_s + 56)) +v_r = 0 +do +do +while true do +do +do +if not (bor(0, v_I) < 0) then +if (tobit((2147483647 - v_I)) < bor(0, v_r)) then +I32[5680] = tobit(61) +v_I = (-1) +else +v_I = tobit((v_r + v_I)) +end +end +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +v_h = v_s +do +do +do +do +do +v_w = I32[arshift((v_s + 76), 2)] +v_r = v_w +v_p = U8[bor(0, v_r)] +if (v_p ~= 0) then +do +while true do +do +do +do +v_p = band(v_p, 255) +if (v_p ~= 0) then +if (37 ~= bor(0, v_p)) then +goto L65 +end +do +v_p = v_r +while true do +do +if (37 ~= U8[tobit((v_r + 1))]) then +goto L66 +end +v_d = tobit((v_r + 2)) +I32[arshift((v_s + 76), 2)] = tobit(v_d) +v_p = tobit((v_p + 1)) +v_y = U8[tobit((v_r + 2))] +v_r = v_d +if (37 ~= bor(0, v_y)) then +goto B67 +end +end +::C67:: +end +end +::B67:: +else +v_p = v_r +end +end +::L66:: +v_r = tobit((v_p - v_w)) +if (v_A ~= 0) then +F.fiA(v_A, v_w, v_r) +end +if (v_r ~= 0) then +goto C53 +end +v_d = ((not (F.fDA(I8[tobit((I32[arshift((v_s + 76), 2)] + 1))]) ~= 0)) and 1 or 0) +v_r = I32[arshift((v_s + 76), 2)] +if (bor(v_d, ((36 ~= U8[tobit((v_r + 2))]) and 1 or 0)) ~= 0) then +goto L63 +end +v_m = tobit((I8[tobit((v_r + 1))] - 48)) +v_O = 1 +v_r = tobit((v_r + 3)) +goto L62 +end +::L65:: +v_d = tobit((v_r + 1)) +I32[arshift((v_s + 76), 2)] = tobit(v_d) +v_p = U8[tobit((v_r + 1))] +v_r = v_d +end +::C64:: +end +end +::B64:: +end +v_C = v_I +if (v_A ~= 0) then +goto L55 +end +if (not (v_O ~= 0)) then +goto L61 +end +do +v_r = 1 +while true do +do +v_A = I32[arshift((lshift(v_r, 2) + v_a), 2)] +if (v_A ~= 0) then +F.foA(tobit((lshift(v_r, 3) + v_t)), v_A, v_e, v_c) +v_C = 1 +v_r = tobit((v_r + 1)) +if (10 ~= bor(0, v_r)) then +goto C68 +end +goto L55 +end +goto B68 +end +::C68:: +end +end +::B68:: +v_C = 1 +if ((tobit(v_r) % 4294967296) >= 10) then +goto L55 +end +do +while true do +do +if (I32[arshift((lshift(v_r, 2) + v_a), 2)] ~= 0) then +goto L56 +end +v_r = tobit((v_r + 1)) +if (10 == bor(0, v_r)) then +goto B69 +end +end +::C69:: +end +end +::B69:: +goto L55 +end +::L63:: +v_m = (-1) +v_r = tobit((v_r + 1)) +end +::L62:: +do +I32[arshift((v_h + 76), 2)] = tobit(v_r) +v_h = 0 +v_k = I8[bor(0, v_r)] +v_p = tobit((v_k - 32)) +local t87 = ((not ((tobit(v_p) % 4294967296) > 31)) and 1 or 0) +if t87 ~= 0 then +v_p = lshift(1, v_p) +t87 = band(75913, v_p) +end +if (t87 ~= 0) then +do +do +do +while true do +do +v_d = tobit((v_r + 1)) +I32[arshift((v_s + 76), 2)] = tobit(v_d) +v_k = I8[tobit((v_r + 1))] +v_r = tobit((v_k - 32)) +local t88 = ((not ((tobit(v_r) % 4294967296) >= 32)) and 1 or 0) +if t88 ~= 0 then +v_r = lshift(1, v_r) +t88 = band(75913, v_r) +end +if not (t88 ~= 0) then goto B70 end +end +do +v_p = bor(v_p, v_r) +v_r = v_d +end +::C70:: +end +end +::B70:: +end +v_r = v_d +v_h = v_p +end +end +end +do +do +do +if (42 ~= bor(0, v_k)) then +v_E = F.fQA(tobit((v_s + 76))) +if (bor(0, v_E) < 0) then +goto L56 +end +v_r = I32[arshift((v_s + 76), 2)] +else +do +do +v_d = v_s +local t89 = F.fDA(I8[tobit((v_r + 1))]) +if t89 ~= 0 then +v_r = I32[arshift((v_s + 76), 2)] +t89 = ((36 == U8[tobit((v_r + 2))]) and 1 or 0) +end +if (t89 ~= 0) then +I32[arshift((tobit((lshift(I8[tobit((v_r + 1))], 2) + v_a)) - 192), 2)] = tobit(10) +v_E = I32[arshift((tobit((lshift(I8[tobit((v_r + 1))], 3) + v_t)) - 384), 2)] +v_O = 1 +v_r = tobit((v_r + 3)) +else +if (v_O ~= 0) then +goto L56 +end +v_O = 0 +v_E = 0 +if (v_A ~= 0) then +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +v_E = I32[arshift(v_r, 2)] +end +v_r = tobit((I32[arshift((v_s + 76), 2)] + 1)) +end +end +I32[arshift((v_d + 76), 2)] = tobit(v_r) +if (bor(0, v_E) > (-1)) then +goto L71 +end +v_E = tobit((0 - v_E)) +v_h = bor(v_h, 8192) +end +end +end +end +::L71:: +end +v_y = (-1) +do +do +do +if (46 == U8[bor(0, v_r)]) then +do +if (42 ~= U8[tobit((v_r + 1))]) then +I32[arshift((v_s + 76), 2)] = tobit((v_r + 1)) +v_y = F.fQA(tobit((v_s + 76))) +v_r = I32[arshift((v_s + 76), 2)] +else +do +do +local t90 = (F.fDA(I8[tobit((v_r + 2))]) ~= 0) +if t90 then +v_r = I32[arshift((v_s + 76), 2)] +t90 = (36 == U8[tobit((v_r + 3))]) +end +if t90 then +I32[arshift((tobit((lshift(I8[tobit((v_r + 2))], 2) + v_a)) - 192), 2)] = tobit(10) +v_y = I32[arshift((tobit((lshift(I8[tobit((v_r + 2))], 3) + v_t)) - 384), 2)] +v_r = tobit((v_r + 4)) +I32[arshift((v_s + 76), 2)] = tobit(v_r) +goto L72 +end +end +if (v_O ~= 0) then +goto L56 +end +if (v_A ~= 0) then +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +v_y = I32[arshift(v_r, 2)] +else +v_y = 0 +end +v_r = tobit((I32[arshift((v_s + 76), 2)] + 2)) +I32[arshift((v_s + 76), 2)] = tobit(v_r) +end +end +end +end +end +end +::L72:: +end +do +v_p = 0 +while true do +do +v_Q = v_p +v_C = (-1) +if ((tobit((I8[bor(0, v_r)] - 65)) % 4294967296) > 57) then +goto L55 +end +v_k = tobit((v_r + 1)) +I32[arshift((v_s + 76), 2)] = tobit(v_k) +v_p = I8[bor(0, v_r)] +v_r = v_k +v_p = U8[tobit((11759 + tobit((v_p + imul(v_Q, 58)))))] +if (not ((tobit((v_p - 1)) % 4294967296) < 8)) then +goto B73 +end +end +::C73:: +end +end +::B73:: +if (19 == bor(0, v_p)) then +goto L59 +end +if (not (v_p ~= 0)) then +goto L55 +end +if (bor(0, v_m) >= 0) then +I32[arshift((lshift(v_m, 2) + v_a), 2)] = tobit(v_p) +v_r = tobit((lshift(v_m, 3) + v_t)) +v_p = I32[arshift((4 + v_r), 2)] +I32[arshift((v_s + 64), 2)] = tobit(I32[arshift(v_r, 2)]) +I32[arshift((v_s + 68), 2)] = tobit(v_p) +goto L58 +end +if (v_A ~= 0) then +goto L60 +end +end +end +::L61:: +end +v_C = 0 +goto L55 +end +end +::L60:: +end +F.foA(tobit((v_s - (-64))), v_p, v_e, v_c) +v_k = I32[arshift((v_s + 76), 2)] +goto L57 +end +end +::L59:: +end +if (bor(0, v_m) > (-1)) then +goto L55 +end +end +end +::L58:: +end +v_r = 0 +if (not (v_A ~= 0)) then +goto C53 +end +end +end +::L57:: +end +v_d = band((-65537), v_h) +v_p = ((band(8192, v_h) ~= 0) and v_d or v_h) +v_C = 0 +v_m = 10501 +v_h = v_l +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +v_r = I8[tobit((v_k - 1))] +v_r = (((v_Q ~= 0) and (3 == band(15, v_r))) and band((-33), v_r) or v_r) +do +local sw89 = tobit((v_r - 88)) +if sw89 == 11 then goto K89_0 +elseif sw89 == 1 then goto K89_1 +elseif sw89 == 2 then goto K89_2 +elseif sw89 == 3 then goto K89_3 +elseif sw89 == 4 then goto K89_4 +elseif sw89 == 5 then goto K89_5 +elseif sw89 == 6 then goto K89_6 +elseif sw89 == 7 then goto K89_7 +elseif sw89 == 8 then goto K89_8 +elseif sw89 == 10 then goto K89_9 +elseif sw89 == 16 then goto K89_10 +elseif sw89 == 18 then goto K89_11 +elseif sw89 == 19 then goto K89_12 +elseif sw89 == 20 then goto K89_13 +elseif sw89 == 21 then goto K89_14 +elseif sw89 == 25 then goto K89_15 +elseif sw89 == 26 then goto K89_16 +elseif sw89 == 28 then goto K89_17 +elseif sw89 == 30 then goto K89_18 +elseif sw89 == 31 then goto K89_19 +elseif sw89 == 9 then goto K89_20 +elseif sw89 == 13 then goto K89_21 +elseif sw89 == 14 then goto K89_22 +elseif sw89 == 15 then goto K89_23 +elseif sw89 == 27 then goto K89_24 +elseif sw89 == 12 then goto K89_25 +elseif sw89 == 17 then goto K89_26 +elseif sw89 == 23 then goto K89_27 +elseif sw89 == 0 then goto K89_28 +elseif sw89 == 32 then goto K89_29 +elseif sw89 == 24 then goto K89_30 +elseif sw89 == 22 then goto K89_31 +elseif sw89 == 29 then goto K89_32 +else goto S89 end +::K89_0:: +do +goto L74 +end +::K89_1:: +do +end +::K89_2:: +do +end +::K89_3:: +do +end +::K89_4:: +do +end +::K89_5:: +do +end +::K89_6:: +do +end +::K89_7:: +do +end +::K89_8:: +do +end +::K89_9:: +do +end +::K89_10:: +do +end +::K89_11:: +do +end +::K89_12:: +do +end +::K89_13:: +do +end +::K89_14:: +do +end +::K89_15:: +do +end +::K89_16:: +do +end +::K89_17:: +do +end +::K89_18:: +do +end +::K89_19:: +do +goto L54 +end +::K89_20:: +do +end +::K89_21:: +do +end +::K89_22:: +do +end +::K89_23:: +do +goto L75 +end +::K89_24:: +do +goto L80 +end +::K89_25:: +do +end +::K89_26:: +do +goto L83 +end +::K89_27:: +do +goto L84 +end +::K89_28:: +do +end +::K89_29:: +do +goto L85 +end +::K89_30:: +do +goto L86 +end +::K89_31:: +do +goto L87 +end +::K89_32:: +do +goto L88 +end +end +::S89:: +do +local sw90 = tobit((v_r - 65)) +if sw90 == 1 then goto K90_0 +elseif sw90 == 3 then goto K90_1 +elseif sw90 == 0 then goto K90_2 +elseif sw90 == 4 then goto K90_3 +elseif sw90 == 5 then goto K90_4 +elseif sw90 == 6 then goto K90_5 +elseif sw90 == 2 then goto K90_6 +else goto S90 end +::K90_0:: +do +end +::K90_1:: +do +goto L54 +end +::K90_2:: +do +end +::K90_3:: +do +end +::K90_4:: +do +end +::K90_5:: +do +goto L75 +end +::K90_6:: +do +goto L78 +end +end +::S90:: +if (83 == bor(0, v_r)) then +goto L79 +end +goto L54 +end +::L88:: +v_k = I32[arshift((v_s + 64), 2)] +v_d = I32[arshift((v_s + 68), 2)] +v_m = 10501 +goto L82 +end +::L87:: +v_r = 0 +do +local sw91 = band(255, v_Q) +if sw91 == 0 then goto K91_0 +elseif sw91 == 1 then goto K91_1 +elseif sw91 == 2 then goto K91_2 +elseif sw91 == 3 then goto K91_3 +elseif sw91 == 4 then goto K91_4 +elseif sw91 == 6 then goto K91_5 +elseif sw91 == 7 then goto K91_6 +else goto K91_7 end +::K91_0:: +do +end +::K91_1:: +do +I32[arshift(I32[arshift((v_s + 64), 2)], 2)] = tobit(v_I) +goto C53 +end +::K91_2:: +do +v_p = I32[arshift((v_s + 64), 2)] +I32[arshift(v_p, 2)] = tobit(v_I) +I32[arshift((v_p + 4), 2)] = tobit(arshift(v_I, 31)) +goto C53 +end +::K91_3:: +do +I16[arshift(I32[arshift((v_s + 64), 2)], 1)] = tobit(v_I) +goto C53 +end +::K91_4:: +do +I8[I32[arshift((v_s + 64), 2)]] = tobit(v_I) +goto C53 +end +::K91_5:: +do +I32[arshift(I32[arshift((v_s + 64), 2)], 2)] = tobit(v_I) +goto C53 +end +::K91_6:: +do +goto S91 +end +::K91_7:: +do +goto C53 +end +end +::S91:: +v_p = I32[arshift((v_s + 64), 2)] +I32[arshift(v_p, 2)] = tobit(v_I) +I32[arshift((v_p + 4), 2)] = tobit(arshift(v_I, 31)) +goto C53 +end +::L86:: +v_y = (((tobit(v_y) % 4294967296) > 8) and v_y or 8) +v_p = bor(v_p, 8) +v_r = 120 +end +::L85:: +do +v_w = v_l +v_S = band(32, v_r) +v_Q = I32[arshift((v_s + 68), 2)] +v_d = v_Q +local t91 = v_d +v_k = I32[arshift((v_s + 64), 2)] +if (bor(t91, v_k) ~= 0) then +do +while true do +v_w = tobit((v_w - 1)) +I8[bor(0, v_w)] = tobit(bor(v_S, U8[tobit((12288 + band(15, v_k)))])) +v_M = bor(band(((not (v_d ~= 0)) and 1 or 0), (((tobit(v_k) % 4294967296) > 15) and 1 or 0)), ((0 ~= bor(0, v_d)) and 1 or 0)) +v_Q = v_d +v_d = tobit((rshift(v_d, 4) % 4294967296)) +v_k = bor(lshift(band(15, v_Q), 28), (rshift(v_k, 4) % 4294967296)) +if not (v_M ~= 0) then goto B92 end +do +end +::C92:: +end +end +::B92:: +end +end +if (bor(((not (band(8, v_p) ~= 0)) and 1 or 0), ((not (bor(I32[arshift((v_s + 64), 2)], I32[arshift((v_s + 68), 2)]) ~= 0)) and 1 or 0)) ~= 0) then +goto L81 +end +v_m = tobit((10501 + tobit((rshift(v_r, 4) % 4294967296)))) +v_C = 2 +goto L81 +end +end +::L84:: +end +do +v_r = v_l +v_w = I32[arshift((v_s + 68), 2)] +v_d = v_w +local t92 = v_d +v_k = I32[arshift((v_s + 64), 2)] +if (bor(t92, v_k) ~= 0) then +do +while true do +v_r = tobit((v_r - 1)) +I8[bor(0, v_r)] = tobit(bor(band(7, v_k), 48)) +v_Q = bor(band(((not (v_d ~= 0)) and 1 or 0), (((tobit(v_k) % 4294967296) > 7) and 1 or 0)), ((0 ~= bor(0, v_d)) and 1 or 0)) +v_w = v_d +v_d = tobit((rshift(v_d, 3) % 4294967296)) +v_k = bor(lshift(band(7, v_w), 29), (rshift(v_k, 3) % 4294967296)) +if not (v_Q ~= 0) then goto B93 end +do +end +::C93:: +end +end +::B93:: +end +end +v_w = v_r +if (not (band(8, v_p) ~= 0)) then +goto L81 +end +v_r = tobit((v_l - v_w)) +v_y = ((bor(0, v_r) < bor(0, v_y)) and v_y or tobit((v_r + 1))) +goto L81 +end +end +::L83:: +end +v_r = I32[arshift((v_s + 68), 2)] +v_d = v_r +v_k = I32[arshift((v_s + 64), 2)] +if ((bor(0, v_r) < (-1)) or (bor(0, v_r) <= (-1))) then +v_d = tobit((0 - tobit((v_d + ((0 ~= bor(0, v_k)) and 1 or 0))))) +v_k = tobit((0 - v_k)) +I32[arshift((v_s + 64), 2)] = tobit(v_k) +I32[arshift((v_s + 68), 2)] = tobit(v_d) +v_C = 1 +v_m = 10501 +else +if (band(2048, v_p) ~= 0) then +v_C = 1 +v_m = 10502 +else +v_C = band(1, v_p) +v_m = ((v_C ~= 0) and 10503 or 10501) +end +end +end +end +::L82:: +end +v_w = F.fdA(v_k, v_d, v_l) +end +end +::L81:: +end +v_p = ((bor(0, v_y) > (-1)) and band((-65537), v_p) or v_p) +v_r = I32[arshift((v_s + 68), 2)] +v_d = v_r +v_k = I32[arshift((v_s + 64), 2)] +if (not (bor(bor(((0 ~= bor(0, v_k)) and 1 or 0), ((0 ~= bor(0, v_r)) and 1 or 0)), v_y) ~= 0)) then +v_y = 0 +v_w = v_l +goto L54 +end +v_r = tobit((((not (bor(v_d, v_k) ~= 0)) and 1 or 0) + tobit((v_l - v_w)))) +v_y = ((bor(0, v_r) < bor(0, v_y)) and v_y or v_r) +goto L54 +end +end +::L80:: +end +v_r = v_y +v_h = ((0 ~= bor(0, v_r)) and 1 or 0) +do +do +do +do +do +do +do +do +do +do +do +do +v_p = I32[arshift((v_s + 64), 2)] +local t93 = v_p +if t93 == 0 then +t93 = 10659 +end +v_w = t93 +v_p = v_w +if (not (bor(((not (band(3, v_p) ~= 0)) and 1 or 0), ((not (v_r ~= 0)) and 1 or 0)) ~= 0)) then +do +while true do +do +if (not (U8[bor(0, v_p)] ~= 0)) then +goto L96 +end +v_r = tobit((v_r - 1)) +v_h = ((0 ~= bor(0, v_r)) and 1 or 0) +v_p = tobit((v_p + 1)) +if (not (band(3, v_p) ~= 0)) then +goto L97 +end +if (not (v_r ~= 0)) then +goto B98 +end +end +::C98:: +end +end +::B98:: +end +end +end +::L97:: +end +if (not (v_h ~= 0)) then +goto L95 +end +end +end +::L96:: +end +do +do +do +if (not (bor(((not (U8[bor(0, v_p)] ~= 0)) and 1 or 0), (((tobit(v_r) % 4294967296) < 4) and 1 or 0)) ~= 0)) then +do +do +while true do +do +do +do +local t94 = (-1) +v_h = I32[arshift(v_p, 2)] +if (band(band(bxor(t94, v_h), (v_h - 16843009)), (-2139062144)) ~= 0) then +goto L99 +end +end +v_p = tobit((v_p + 4)) +v_r = tobit((v_r - 4)) +if (not ((tobit(v_r) % 4294967296) > 3)) then +goto B100 +end +end +end +::C100:: +end +end +::B100:: +end +end +end +end +::L99:: +end +if (v_r ~= 0) then +do +while true do +do +v_h = v_p +if (not (U8[bor(0, v_p)] ~= 0)) then +goto L94 +end +v_p = tobit((v_p + 1)) +v_r = tobit((v_r - 1)) +if (not (v_r ~= 0)) then +goto B101 +end +end +::C101:: +end +end +::B101:: +end +end +end +::L95:: +end +v_h = 0 +end +end +::L94:: +end +do +v_r = v_h +local t95 = v_r +if t95 == 0 then +t95 = tobit((v_y + v_w)) +end +v_h = t95 +v_p = v_d +v_y = ((v_r ~= 0) and tobit((v_r - v_w)) or v_y) +end +goto L54 +end +end +::L79:: +end +v_h = I32[arshift((v_s + 64), 2)] +if (v_y ~= 0) then +goto L77 +end +v_r = 0 +F.fEA(v_A, 32, v_E, 0, v_p) +goto L76 +end +end +::L78:: +end +I32[arshift((v_s + 12), 2)] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(I32[arshift((v_s + 64), 2)]) +I32[arshift((v_s + 64), 2)] = tobit((v_s + 8)) +v_y = (-1) +v_h = tobit((v_s + 8)) +end +end +::L77:: +end +v_r = 0 +do +do +do +do +do +while true do +do +do +v_d = I32[arshift(v_h, 2)] +if (not (v_d ~= 0)) then +goto L102 +end +do +v_d = F.faA(tobit((v_s + 4)), v_d) +v_w = ((bor(0, v_d) < 0) and 1 or 0) +if (not (bor(v_w, (((tobit(v_d) % 4294967296) > (tobit((v_y - v_r)) % 4294967296)) and 1 or 0)) ~= 0)) then +do +do +v_h = tobit((v_h + 4)) +local t96 = (tobit(v_y) % 4294967296) +v_r = tobit((v_r + v_d)) +if (t96 > (tobit(v_r) % 4294967296)) then +goto C103 +end +end +goto L102 +end +end +end +goto B103 +end +end +::C103:: +end +end +::B103:: +end +v_C = (-1) +if (v_w ~= 0) then +goto L55 +end +end +end +::L102:: +end +F.fEA(v_A, 32, v_E, v_r, v_p) +if (v_r ~= 0) then +do +v_h = 0 +v_k = I32[arshift((v_s + 64), 2)] +while true do +do +v_d = I32[arshift(v_k, 2)] +if (not (v_d ~= 0)) then +goto L76 +end +v_d = F.faA(tobit((v_s + 4)), v_d) +v_h = tobit((v_d + v_h)) +if (bor(0, v_h) > bor(0, v_r)) then +goto L76 +end +F.fiA(v_A, tobit((v_s + 4)), v_d) +v_k = tobit((v_k + 4)) +if (not ((tobit(v_r) % 4294967296) > (tobit(v_h) % 4294967296))) then +goto B104 +end +end +::C104:: +end +end +::B104:: +else +v_r = 0 +end +end +end +::L76:: +end +F.fEA(v_A, 32, v_E, v_r, bxor(8192, v_p)) +v_r = ((bor(0, v_r) < bor(0, v_E)) and v_E or v_r) +goto C53 +end +end +::L75:: +end +v_r = bor(0, YA[bor(0, v_u)](v_A, F64[arshift((v_s + 64), 3)], v_E, v_y, v_p, v_r)) +goto C53 +end +end +::L74:: +end +I8[tobit((v_s + 55))] = tobit(I32[arshift((v_s + 64), 2)]) +v_y = 1 +v_w = v_b +v_p = v_d +goto L54 +end +end +::L56:: +end +v_C = (-1) +end +end +::L55:: +end +B = tobit((v_s + 80)) +do return v_C end +end +end +::L54:: +end +do +local t98 = v_A +local t97 = bor(0, v_y) +v_h = tobit((v_h - v_w)) +v_y = ((t97 < bor(0, v_h)) and v_h or v_y) +v_d = tobit((v_y + v_C)) +v_r = ((bor(0, v_d) > bor(0, v_E)) and v_d or v_E) +F.fEA(t98, 32, v_r, v_d, v_p) +F.fiA(v_A, v_m, v_C) +F.fEA(v_A, 48, v_r, v_d, bxor(65536, v_p)) +F.fEA(v_A, 48, v_y, v_h, 0) +F.fiA(v_A, v_w, v_h) +F.fEA(v_A, 32, v_r, v_d, bxor(8192, v_p)) +end +end +end +::C53:: +end +end +::B53:: +end +end + +F.fS = function(v_A) +local v_r, v_e, v_t, v_o, v_i = 0, 0, 0, 0, 0 +v_r = 0 +v_e = 0 +v_t = 0 +v_o = 0 +v_i = 0 +do +do +v_e = U8[tobit((v_A + 64))] +I8[tobit((v_A + 32))] = tobit(v_e) +I8[tobit((v_A + 48))] = tobit(bxor(v_e, U8[tobit((v_A + 16))])) +v_e = U8[tobit((v_A + 65))] +I8[tobit((v_A + 33))] = tobit(v_e) +v_r = U8[tobit((v_A + 66))] +I8[tobit((v_A + 34))] = tobit(v_r) +v_t = U8[tobit((v_A + 67))] +I8[tobit((v_A + 35))] = tobit(v_t) +v_o = U8[tobit((v_A + 68))] +I8[tobit((v_A + 36))] = tobit(v_o) +I8[tobit((v_A + 49))] = tobit(bxor(v_e, U8[tobit((v_A + 17))])) +I8[tobit((v_A + 50))] = tobit(bxor(v_r, U8[tobit((v_A + 18))])) +I8[tobit((v_A + 51))] = tobit(bxor(v_t, U8[tobit((v_A + 19))])) +I8[tobit((v_A + 52))] = tobit(bxor(v_o, U8[tobit((v_A + 20))])) +v_e = U8[tobit((v_A + 69))] +I8[tobit((v_A + 37))] = tobit(v_e) +v_r = U8[tobit((v_A + 70))] +I8[tobit((v_A + 38))] = tobit(v_r) +v_t = U8[tobit((v_A + 71))] +I8[tobit((v_A + 39))] = tobit(v_t) +v_o = U8[tobit((v_A + 72))] +I8[tobit((v_A + 40))] = tobit(v_o) +v_i = U8[tobit((v_A + 73))] +I8[tobit((v_A + 41))] = tobit(v_i) +I8[tobit((v_A + 53))] = tobit(bxor(v_e, U8[tobit((v_A + 21))])) +I8[tobit((v_A + 54))] = tobit(bxor(v_r, U8[tobit((v_A + 22))])) +I8[tobit((v_A + 55))] = tobit(bxor(v_t, U8[tobit((v_A + 23))])) +I8[tobit((v_A + 56))] = tobit(bxor(v_o, U8[tobit((v_A + 24))])) +v_e = U8[tobit((v_A + 74))] +I8[tobit((v_A + 42))] = tobit(v_e) +v_r = U8[tobit((v_A + 75))] +I8[tobit((v_A + 43))] = tobit(v_r) +v_t = U8[tobit((v_A + 76))] +I8[tobit((v_A + 44))] = tobit(v_t) +v_o = U8[tobit((v_A + 77))] +I8[tobit((v_A + 45))] = tobit(v_o) +I8[tobit((v_A + 57))] = tobit(bxor(v_i, U8[tobit((v_A + 25))])) +I8[tobit((v_A + 58))] = tobit(bxor(v_e, U8[tobit((v_A + 26))])) +I8[tobit((v_A + 59))] = tobit(bxor(v_r, U8[tobit((v_A + 27))])) +I8[tobit((v_A + 60))] = tobit(bxor(v_t, U8[tobit((v_A + 28))])) +I8[tobit((v_A + 61))] = tobit(bxor(v_o, U8[tobit((v_A + 29))])) +v_e = U8[tobit((v_A + 78))] +I8[tobit((v_A + 46))] = tobit(v_e) +I8[tobit((v_A + 62))] = tobit(bxor(v_e, U8[tobit((v_A + 30))])) +v_e = U8[tobit((v_A + 79))] +I8[tobit((v_A + 47))] = tobit(v_e) +I8[tobit((v_A + 63))] = tobit(bxor(v_e, U8[tobit((v_A + 31))])) +v_t = 0 +v_e = 0 +v_r = 0 +while true do +do +do +do +v_i = U8[tobit((v_e + 11504))] +local t99 = v_i +v_e = tobit((v_A + v_r)) +v_o = bxor(t99, U8[tobit((16 + v_e))]) +I8[tobit((v_e + 16))] = tobit(v_o) +v_o = bxor(U8[tobit((v_o + 11504))], U8[tobit((v_e + 17))]) +I8[tobit((v_e + 17))] = tobit(v_o) +v_i = v_e +v_e = bxor(U8[tobit((v_o + 11504))], U8[tobit((v_e + 18))]) +I8[tobit((v_i + 18))] = tobit(v_e) +v_r = tobit((v_r + 3)) +if (48 == bor(0, v_r)) then +do +while true do +v_r = tobit((v_A + v_t)) +v_e = bxor(U8[tobit((11504 + band(255, v_e)))], U8[tobit((v_r + 16))]) +I8[tobit((v_r + 16))] = tobit(v_e) +v_e = bxor(U8[tobit((v_e + 11504))], U8[tobit((v_r + 17))]) +I8[tobit((v_r + 17))] = tobit(v_e) +v_e = bxor(U8[tobit((v_e + 11504))], U8[tobit((v_r + 18))]) +I8[tobit((v_r + 18))] = tobit(v_e) +v_t = tobit((v_t + 3)) +if not (48 ~= bor(0, v_t)) then goto B106 end +do +end +::C106:: +end +end +::B106:: +do +v_r = tobit((v_e + 1)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B107 end +do +end +::C107:: +end +end +::B107:: +do +v_r = tobit((v_r + 2)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B108 end +do +end +::C108:: +end +end +::B108:: +do +v_r = tobit((v_r + 3)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B109 end +do +end +::C109:: +end +end +::B109:: +do +v_r = tobit((v_r + 4)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B110 end +do +end +::C110:: +end +end +::B110:: +do +v_r = tobit((v_r + 5)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B111 end +do +end +::C111:: +end +end +::B111:: +do +v_r = tobit((v_r + 6)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B112 end +do +end +::C112:: +end +end +::B112:: +do +v_r = tobit((v_r + 7)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B113 end +do +end +::C113:: +end +end +::B113:: +do +v_r = tobit((v_r + 8)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B114 end +do +end +::C114:: +end +end +::B114:: +do +v_r = tobit((v_r + 9)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B115 end +do +end +::C115:: +end +end +::B115:: +do +v_r = tobit((v_r + 10)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B116 end +do +end +::C116:: +end +end +::B116:: +do +v_r = tobit((v_r + 11)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B117 end +do +end +::C117:: +end +end +::B117:: +do +v_r = tobit((v_r + 12)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B118 end +do +end +::C118:: +end +end +::B118:: +do +v_r = tobit((v_r + 13)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B119 end +do +end +::C119:: +end +end +::B119:: +do +v_r = tobit((v_r + 14)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B120 end +do +end +::C120:: +end +end +::B120:: +do +v_r = tobit((v_r + 15)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B121 end +do +end +::C121:: +end +end +::B121:: +do +v_r = tobit((v_r + 16)) +v_e = 0 +while true do +v_t = tobit((v_A + v_e)) +v_r = bxor(U8[tobit((11504 + band(255, v_r)))], U8[tobit((v_t + 16))]) +I8[tobit((v_t + 16))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 17))]) +I8[tobit((v_t + 17))] = tobit(v_r) +v_r = bxor(U8[tobit((v_r + 11504))], U8[tobit((v_t + 18))]) +I8[tobit((v_t + 18))] = tobit(v_r) +v_e = tobit((v_e + 3)) +if not (48 ~= bor(0, v_e)) then goto B122 end +do +end +::C122:: +end +end +::B122:: +v_e = bxor(U8[tobit((11504 + bxor(U8[tobit((v_A + 64))], U8[tobit((v_A + 15))])))], U8[bor(0, v_A)]) +I8[bor(0, v_A)] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 65))])))], U8[tobit((v_A + 1))]) +I8[tobit((v_A + 1))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 66))])))], U8[tobit((v_A + 2))]) +I8[tobit((v_A + 2))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 67))])))], U8[tobit((v_A + 3))]) +I8[tobit((v_A + 3))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 68))])))], U8[tobit((v_A + 4))]) +I8[tobit((v_A + 4))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 69))])))], U8[tobit((v_A + 5))]) +I8[tobit((v_A + 5))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 70))])))], U8[tobit((v_A + 6))]) +I8[tobit((v_A + 6))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 71))])))], U8[tobit((v_A + 7))]) +I8[tobit((v_A + 7))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 72))])))], U8[tobit((v_A + 8))]) +I8[tobit((v_A + 8))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 73))])))], U8[tobit((v_A + 9))]) +I8[tobit((v_A + 9))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 74))])))], U8[tobit((v_A + 10))]) +I8[tobit((v_A + 10))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 75))])))], U8[tobit((v_A + 11))]) +I8[tobit((v_A + 11))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 76))])))], U8[tobit((v_A + 12))]) +I8[tobit((v_A + 12))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 77))])))], U8[tobit((v_A + 13))]) +I8[tobit((v_A + 13))] = tobit(v_e) +v_e = bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 78))])))], U8[tobit((v_A + 14))]) +I8[tobit((v_A + 14))] = tobit(v_e) +I8[tobit((v_A + 15))] = tobit(bxor(U8[tobit((11504 + bxor(v_e, U8[tobit((v_A + 79))])))], U8[tobit((v_A + 15))])) +goto B105 +end +end +v_e = band(v_e, 255) +end +end +::C105:: +end +end +::B105:: +end +end + +F.fM = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +do +v_t = tobit((B - 2048)) +B = v_t +if (not (U8[23220] ~= 0)) then +do +do +do +v_o = 1 +while true do +do +I32[arshift((tobit((v_t + 1024)) + lshift(v_s, 2)), 2)] = tobit(v_o) +I32[arshift((lshift(v_o, 2) + v_t), 2)] = tobit(v_s) +v_u = band(arshift(lshift(v_o, 24), 31), 27) +local t100 = v_u +v_o = bxor(v_o, band(lshift(v_o, 1), 254)) +v_u = bxor(t100, v_o) +local t101 = tobit((v_t + 1024)) +v_a = bor(1, v_s) +I32[arshift((t101 + lshift(v_a, 2)), 2)] = tobit(v_u) +I32[arshift((lshift(v_u, 2) + v_t), 2)] = tobit(v_a) +v_o = bxor(bxor(band(arshift(lshift(v_o, 24), 31), 27), v_u), band(lshift(v_u, 1), 254)) +v_s = tobit((v_s + 2)) +if not (256 ~= bor(0, v_s)) then goto B123 end +end +do +end +::C123:: +end +end +::B123:: +end +do +do +I32[5816] = tobit(27) +I32[5817] = tobit(54) +I32[5814] = tobit(64) +I32[5815] = tobit(128) +I32[5812] = tobit(16) +I32[5813] = tobit(32) +I32[5810] = tobit(4) +I32[5811] = tobit(8) +I32[5808] = tobit(1) +I32[5809] = tobit(2) +I8[23280] = tobit(99) +I8[31827] = tobit(0) +v_o = 1 +while true do +do +v_u = I32[arshift((2044 + tobit((lshift((0 - I32[arshift((lshift(v_o, 2) + v_t), 2)]), 2) + v_t))), 2)] +v_s = band(255, bor(lshift(v_u, 1), (rshift(v_u, 7) % 4294967296))) +v_a = band(lshift(v_s, 1), 254) +local t102 = (rshift(v_a, 7) % 4294967296) +v_c = bor(v_a, (rshift(v_s, 7) % 4294967296)) +v_l = band(lshift(v_c, 1), 254) +v_a = bor(t102, v_l) +v_u = bxor(bxor(bxor(bxor(bxor(v_a, v_c), v_u), v_s), bor(band(lshift(v_a, 1), 254), (rshift(v_l, 7) % 4294967296))), 99) +I8[tobit((v_o + 23280))] = tobit(v_u) +I8[tobit((v_u + 31728))] = tobit(v_o) +v_o = tobit((v_o + 1)) +if not (256 ~= bor(0, v_o)) then goto B124 end +end +do +end +::C124:: +end +end +::B124:: +end +do +v_a = 0 +v_s = 99 +v_c = I32[arshift((v_t + 44), 2)] +v_l = I32[arshift((v_t + 52), 2)] +v_v = I32[arshift((v_t + 36), 2)] +v_g = I32[arshift((v_t + 56), 2)] +while true do +v_o = bxor(band(arshift(lshift(v_s, 24), 31), 27), band(lshift(v_s, 1), 254)) +v_b = bor(bor(v_o, lshift(v_s, 8)), lshift(v_s, 16)) +v_o = bxor(v_o, v_s) +v_u = lshift(v_a, 2) +I32[arshift((27632 + v_u), 2)] = tobit(bor(v_b, lshift(v_o, 24))) +v_o = bor(v_o, lshift(v_b, 8)) +I32[arshift((v_u + 28656), 2)] = tobit(v_o) +v_o = bor(lshift(v_o, 8), v_s) +I32[arshift((v_u + 29680), 2)] = tobit(v_o) +I32[arshift((v_u + 30704), 2)] = tobit(bor(lshift(v_o, 8), v_s)) +v_o = U8[tobit((v_a + 31728))] +if (v_o ~= 0) then +v_o = I32[arshift((lshift(v_o, 2) + v_t), 2)] +v_s = bxor(bxor(lshift(I32[arshift((tobit((v_t + 1024)) + lshift(fmod(tobit((v_o + v_v)), 255), 2)), 2)], 8), I32[arshift((tobit((v_t + 1024)) + lshift(fmod(tobit((v_o + v_g)), 255), 2)), 2)]), lshift(I32[arshift((tobit((v_t + 1024)) + lshift(fmod(tobit((v_o + v_l)), 255), 2)), 2)], 16)) +v_o = lshift(I32[arshift((tobit((v_t + 1024)) + lshift(fmod(tobit((v_o + v_c)), 255), 2)), 2)], 24) +else +v_s = 0 +v_o = 0 +end +v_o = bxor(v_o, v_s) +I32[arshift((v_u + 23536), 2)] = tobit(v_o) +v_o = bor(lshift(v_s, 8), (rshift(v_o, 24) % 4294967296)) +I32[arshift((v_u + 24560), 2)] = tobit(v_o) +I32[arshift((v_u + 25584), 2)] = tobit(F.fKA(v_o, 8)) +I32[arshift((v_u + 26608), 2)] = tobit(F.fKA(v_o, 16)) +v_a = tobit((v_a + 1)) +if not (256 ~= bor(0, v_a)) then goto B125 end +do +v_s = U8[tobit((v_a + 23280))] +end +::C125:: +end +end +::B125:: +I8[23220] = tobit(1) +end +end +end +v_o = v_A +v_u = 10 +do +do +do +if (128 ~= bor(0, v_e)) then +if (256 == bor(0, v_e)) then +v_u = 14 +else +v_s = (-32) +if (192 ~= bor(0, v_e)) then +goto L126 +end +v_u = 12 +end +end +do +do +I32[arshift(v_o, 2)] = tobit(v_u) +v_o = tobit((v_A + 8)) +I32[arshift((v_A + 4), 2)] = tobit(v_o) +v_s = tobit((rshift(v_e, 5) % 4294967296)) +v_a = 0 +while true do +do +v_e = lshift(v_a, 2) +I32[arshift((8 + tobit((v_e + v_A))), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + v_e))], lshift(U8[tobit((bor(1, v_e) + v_r))], 8)), lshift(U8[tobit((bor(2, v_e) + v_r))], 16)), lshift(U8[tobit((bor(3, v_e) + v_r))], 24))) +local t103 = bor(0, v_s) +v_a = tobit((v_a + 1)) +if not (t103 ~= bor(0, v_a)) then goto B127 end +end +do +end +::C127:: +end +end +::B127:: +end +v_s = 0 +do +local sw128 = tobit((v_u - 10)) +if sw128 == 0 then goto K128_0 +elseif sw128 == 2 then goto K128_1 +elseif sw128 == 4 then goto K128_2 +else goto K128_3 end +::K128_0:: +do +do +v_r = I32[arshift(v_o, 2)] +v_a = 0 +while true do +v_A = I32[arshift((v_o + 12), 2)] +v_r = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_A, 8) % 4294967296), 255)))], I32[arshift((23232 + lshift(v_a, 2)), 2)]), v_r), lshift(U8[tobit((23280 + band((rshift(v_A, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_A, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_A)))], 24)) +I32[arshift((v_o + 16), 2)] = tobit(v_r) +v_e = bxor(I32[arshift((v_o + 4), 2)], v_r) +I32[arshift((v_o + 20), 2)] = tobit(v_e) +v_e = bxor(v_e, I32[arshift((v_o + 8), 2)]) +I32[arshift((v_o + 24), 2)] = tobit(v_e) +I32[arshift((v_o + 28), 2)] = tobit(bxor(v_A, v_e)) +v_o = tobit((v_o + 16)) +v_a = tobit((v_a + 1)) +if not (10 ~= bor(0, v_a)) then goto B129 end +do +end +::C129:: +end +end +::B129:: +goto L126 +end +::K128_1:: +do +v_r = I32[arshift((v_A + 28), 2)] +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], I32[5808]), I32[arshift((v_A + 8), 2)]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 32), 2)] = tobit(v_e) +v_u = bxor(v_e, I32[arshift((v_A + 12), 2)]) +I32[arshift((v_A + 36), 2)] = tobit(v_u) +v_o = bxor(v_u, I32[arshift((v_A + 16), 2)]) +I32[arshift((v_A + 40), 2)] = tobit(v_o) +v_a = bxor(v_o, I32[arshift((v_A + 20), 2)]) +I32[arshift((v_A + 44), 2)] = tobit(v_a) +v_c = bxor(v_a, I32[arshift((v_A + 24), 2)]) +I32[arshift((v_A + 48), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 52), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5809]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 56), 2)] = tobit(v_e) +v_u = bxor(v_u, v_e) +I32[arshift((v_A + 60), 2)] = tobit(v_u) +v_o = bxor(v_o, v_u) +I32[arshift((v_A - (-64)), 2)] = tobit(v_o) +v_a = bxor(v_a, v_o) +I32[arshift((v_A + 68), 2)] = tobit(v_a) +v_c = bxor(v_c, v_a) +I32[arshift((v_A + 72), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 76), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5810]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 80), 2)] = tobit(v_e) +v_u = bxor(v_u, v_e) +I32[arshift((v_A + 84), 2)] = tobit(v_u) +v_o = bxor(v_o, v_u) +I32[arshift((v_A + 88), 2)] = tobit(v_o) +v_a = bxor(v_a, v_o) +I32[arshift((v_A + 92), 2)] = tobit(v_a) +v_c = bxor(v_c, v_a) +I32[arshift((v_A + 96), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 100), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5811]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 104), 2)] = tobit(v_e) +v_u = bxor(v_u, v_e) +I32[arshift((v_A + 108), 2)] = tobit(v_u) +v_o = bxor(v_o, v_u) +I32[arshift((v_A + 112), 2)] = tobit(v_o) +v_a = bxor(v_a, v_o) +I32[arshift((v_A + 116), 2)] = tobit(v_a) +v_c = bxor(v_c, v_a) +I32[arshift((v_A + 120), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 124), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5812]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 128), 2)] = tobit(v_e) +v_u = bxor(v_u, v_e) +I32[arshift((v_A + 132), 2)] = tobit(v_u) +v_o = bxor(v_o, v_u) +I32[arshift((v_A + 136), 2)] = tobit(v_o) +v_a = bxor(v_a, v_o) +I32[arshift((v_A + 140), 2)] = tobit(v_a) +v_c = bxor(v_c, v_a) +I32[arshift((v_A + 144), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 148), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5813]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 152), 2)] = tobit(v_e) +v_u = bxor(v_u, v_e) +I32[arshift((v_A + 156), 2)] = tobit(v_u) +v_o = bxor(v_o, v_u) +I32[arshift((v_A + 160), 2)] = tobit(v_o) +v_a = bxor(v_a, v_o) +I32[arshift((v_A + 164), 2)] = tobit(v_a) +v_c = bxor(v_c, v_a) +I32[arshift((v_A + 168), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 172), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5814]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 176), 2)] = tobit(v_e) +v_u = bxor(v_u, v_e) +I32[arshift((v_A + 180), 2)] = tobit(v_u) +v_o = bxor(v_o, v_u) +I32[arshift((v_A + 184), 2)] = tobit(v_o) +v_a = bxor(v_a, v_o) +I32[arshift((v_A + 188), 2)] = tobit(v_a) +v_c = bxor(v_c, v_a) +I32[arshift((v_A + 192), 2)] = tobit(v_c) +v_r = bxor(v_r, v_c) +I32[arshift((v_A + 196), 2)] = tobit(v_r) +v_e = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], v_e), I32[5815]), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_r)))], 24)) +I32[arshift((v_A + 200), 2)] = tobit(v_e) +v_e = bxor(v_e, v_u) +I32[arshift((v_A + 204), 2)] = tobit(v_e) +v_e = bxor(v_e, v_o) +I32[arshift((v_A + 208), 2)] = tobit(v_e) +v_e = bxor(v_e, v_a) +I32[arshift((v_A + 212), 2)] = tobit(v_e) +v_e = bxor(v_e, v_c) +I32[arshift((v_A + 216), 2)] = tobit(v_e) +I32[arshift((v_A + 220), 2)] = tobit(bxor(v_r, v_e)) +goto L126 +end +::K128_2:: +do +goto S128 +end +::K128_3:: +do +goto L126 +end +end +::S128:: +do +v_a = I32[arshift(v_o, 2)] +v_e = 0 +while true do +v_A = I32[arshift((v_o + 28), 2)] +v_a = bxor(bxor(bxor(bxor(bxor(U8[tobit((23280 + band((rshift(v_A, 8) % 4294967296), 255)))], I32[arshift((23232 + lshift(v_e, 2)), 2)]), v_a), lshift(U8[tobit((23280 + band((rshift(v_A, 16) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + tobit((rshift(v_A, 24) % 4294967296))))], 16)), lshift(U8[tobit((23280 + band(255, v_A)))], 24)) +I32[arshift((v_o + 32), 2)] = tobit(v_a) +v_r = bxor(I32[arshift((v_o + 4), 2)], v_a) +I32[arshift((v_o + 36), 2)] = tobit(v_r) +v_r = bxor(v_r, I32[arshift((v_o + 8), 2)]) +I32[arshift((v_o + 40), 2)] = tobit(v_r) +v_r = bxor(v_r, I32[arshift((v_o + 12), 2)]) +I32[arshift((v_o + 44), 2)] = tobit(v_r) +v_r = bxor(bxor(bxor(bxor(I32[arshift((v_o + 16), 2)], U8[tobit((23280 + band(255, v_r)))]), lshift(U8[tobit((23280 + band((rshift(v_r, 8) % 4294967296), 255)))], 8)), lshift(U8[tobit((23280 + band((rshift(v_r, 16) % 4294967296), 255)))], 16)), lshift(U8[tobit((23280 + tobit((rshift(v_r, 24) % 4294967296))))], 24)) +I32[arshift((v_o + 48), 2)] = tobit(v_r) +v_r = bxor(v_r, I32[arshift((v_o + 20), 2)]) +I32[arshift((v_o + 52), 2)] = tobit(v_r) +v_r = bxor(v_r, I32[arshift((v_o + 24), 2)]) +I32[arshift((v_o + 56), 2)] = tobit(v_r) +I32[arshift((v_o + 60), 2)] = tobit(bxor(v_A, v_r)) +v_o = tobit((v_o + 32)) +v_e = tobit((v_e + 1)) +if not (7 ~= bor(0, v_e)) then goto B130 end +do +end +::C130:: +end +end +::B130:: +end +end +::L126:: +end +B = tobit((v_t + 2048)) +do return v_s end +end + +F.fx = function(v_A, v_r) +local v_e, v_n, v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_B, v_I, v_m, v_Q, v_O = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_B = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +do +v_t = bor(bor(bor(U8[tobit((v_r + 16))], lshift(U8[tobit((v_r + 17))], 8)), lshift(U8[tobit((v_r + 18))], 16)), lshift(U8[tobit((v_r + 19))], 24)) +v_m = bor(bor(bor(U8[tobit((v_r + 32))], lshift(U8[tobit((v_r + 33))], 8)), lshift(U8[tobit((v_r + 34))], 16)), lshift(U8[tobit((v_r + 35))], 24)) +v_o = bor(bor(bor(U8[tobit((v_r + 48))], lshift(U8[tobit((v_r + 49))], 8)), lshift(U8[tobit((v_r + 50))], 16)), lshift(U8[tobit((v_r + 51))], 24)) +v_a = bor(bor(bor(U8[tobit((v_r + 36))], lshift(U8[tobit((v_r + 37))], 8)), lshift(U8[tobit((v_r + 38))], 16)), lshift(U8[tobit((v_r + 39))], 24)) +v_u = bor(bor(bor(U8[tobit((v_r + 52))], lshift(U8[tobit((v_r + 53))], 8)), lshift(U8[tobit((v_r + 54))], 16)), lshift(U8[tobit((v_r + 55))], 24)) +v_c = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_I = bor(bor(bor(U8[tobit((v_r + 20))], lshift(U8[tobit((v_r + 21))], 8)), lshift(U8[tobit((v_r + 22))], 16)), lshift(U8[tobit((v_r + 23))], 24)) +v_e = I32[arshift((v_A + 12), 2)] +local t108 = v_e +v_Q = bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24)) +local t104 = v_Q +v_y = I32[arshift((v_A + 8), 2)] +local t107 = tobit((t104 + v_y)) +v_s = I32[arshift((v_A + 20), 2)] +local t106 = v_s +local t105 = v_s +v_n = I32[arshift((v_A + 16), 2)] +v_w = tobit((t108 + F.fKA(tobit((tobit((t107 + bxor(t106, band(bxor(t105, v_n), v_e)))) - 680876936)), 7))) +v_l = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +v_b = bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_c + v_s)) + bxor(band(v_w, bxor(v_e, v_n)), v_n))) - 389564586)), 12) + v_w)) +v_C = tobit((F.fKA(tobit((606105819 + tobit((tobit((v_b + v_n)) + bxor(band(v_E, bxor(v_w, v_e)), v_e))))), 17) + v_E)) +v_B = tobit((F.fKA(tobit((tobit((tobit((v_e + v_l)) + bxor(v_w, band(v_C, bxor(v_w, v_E))))) - 1044525330)), 22) + v_C)) +v_w = tobit((F.fKA(tobit((tobit((tobit((v_w + v_t)) + bxor(v_E, band(v_B, bxor(v_C, v_E))))) - 176418897)), 7) + v_B)) +v_v = bor(bor(bor(U8[tobit((v_r + 28))], lshift(U8[tobit((v_r + 29))], 8)), lshift(U8[tobit((v_r + 30))], 16)), lshift(U8[tobit((v_r + 31))], 24)) +v_g = bor(bor(bor(U8[tobit((v_r + 24))], lshift(U8[tobit((v_r + 25))], 8)), lshift(U8[tobit((v_r + 26))], 16)), lshift(U8[tobit((v_r + 27))], 24)) +v_E = tobit((F.fKA(tobit((1200080426 + tobit((tobit((v_E + v_I)) + bxor(v_C, band(v_w, bxor(v_C, v_B))))))), 12) + v_w)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_C + v_g)) + bxor(v_B, band(v_E, bxor(v_w, v_B))))) - 1473231341)), 17) + v_E)) +v_B = tobit((F.fKA(tobit((tobit((tobit((v_B + v_v)) + bxor(v_w, band(v_C, bxor(v_w, v_E))))) - 45705983)), 22) + v_C)) +v_w = tobit((F.fKA(tobit((1770035416 + tobit((tobit((v_w + v_m)) + bxor(v_E, band(v_B, bxor(v_C, v_E))))))), 7) + v_B)) +v_p = bor(bor(bor(U8[tobit((v_r + 44))], lshift(U8[tobit((v_r + 45))], 8)), lshift(U8[tobit((v_r + 46))], 16)), lshift(U8[tobit((v_r + 47))], 24)) +v_d = bor(bor(bor(U8[tobit((v_r + 40))], lshift(U8[tobit((v_r + 41))], 8)), lshift(U8[tobit((v_r + 42))], 16)), lshift(U8[tobit((v_r + 43))], 24)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_E + v_a)) + bxor(v_C, band(v_w, bxor(v_C, v_B))))) - 1958414417)), 12) + v_w)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_d + v_C)) + bxor(v_B, band(v_E, bxor(v_w, v_B))))) - 42063)), 17) + v_E)) +v_B = tobit((F.fKA(tobit((tobit((tobit((v_B + v_p)) + bxor(v_w, band(v_C, bxor(v_w, v_E))))) - 1990404162)), 22) + v_C)) +v_w = tobit((F.fKA(tobit((1804603682 + tobit((tobit((v_w + v_o)) + bxor(v_E, band(v_B, bxor(v_C, v_E))))))), 7) + v_B)) +v_h = bor(bor(bor(U8[tobit((v_r + 60))], lshift(U8[tobit((v_r + 61))], 8)), lshift(U8[tobit((v_r + 62))], 16)), lshift(U8[tobit((v_r + 63))], 24)) +v_O = tobit((v_w + v_c)) +v_k = bor(bor(bor(U8[tobit((v_r + 56))], lshift(U8[tobit((v_r + 57))], 8)), lshift(U8[tobit((v_r + 58))], 16)), lshift(U8[tobit((v_r + 59))], 24)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_E + v_u)) + bxor(v_C, band(v_w, bxor(v_C, v_B))))) - 40341101)), 12) + v_w)) +v_r = tobit((F.fKA(tobit((tobit((tobit((v_k + v_C)) + bxor(v_B, band(v_E, bxor(v_w, v_B))))) - 1502002290)), 17) + v_E)) +v_w = tobit((F.fKA(tobit((1236535329 + tobit((tobit((v_B + v_h)) + bxor(v_w, band(v_r, bxor(v_w, v_E))))))), 22) + v_r)) +v_C = tobit((F.fKA(tobit((tobit((v_O + bxor(band(bxor(v_r, v_w), v_E), v_r))) - 165796510)), 5) + v_w)) +v_B = tobit((v_r + v_p)) +v_r = tobit((F.fKA(tobit((tobit((tobit((v_E + v_g)) + bxor(v_w, band(v_r, bxor(v_w, v_C))))) - 1069501632)), 9) + v_C)) +v_E = tobit((F.fKA(tobit((643717713 + tobit((v_B + bxor(v_C, band(v_w, bxor(v_r, v_C))))))), 14) + v_r)) +v_w = tobit((F.fKA(tobit((tobit((tobit((v_w + v_Q)) + bxor(v_r, band(v_C, bxor(v_r, v_E))))) - 373897302)), 20) + v_E)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_C + v_I)) + bxor(band(bxor(v_E, v_w), v_r), v_E))) - 701558691)), 5) + v_w)) +v_r = tobit((F.fKA(tobit((38016083 + tobit((tobit((v_r + v_d)) + bxor(v_w, band(v_E, bxor(v_w, v_C))))))), 9) + v_C)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_E + v_h)) + bxor(v_C, band(v_w, bxor(v_r, v_C))))) - 660478335)), 14) + v_r)) +v_w = tobit((F.fKA(tobit((tobit((tobit((v_w + v_t)) + bxor(v_r, band(v_C, bxor(v_r, v_E))))) - 405537848)), 20) + v_E)) +v_C = tobit((F.fKA(tobit((568446438 + tobit((tobit((v_C + v_a)) + bxor(band(bxor(v_E, v_w), v_r), v_E))))), 5) + v_w)) +v_B = tobit((v_E + v_l)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_r + v_k)) + bxor(v_w, band(v_E, bxor(v_w, v_C))))) - 1019803690)), 9) + v_C)) +v_B = tobit((F.fKA(tobit((tobit((v_B + bxor(v_C, band(v_w, bxor(v_E, v_C))))) - 187363961)), 14) + v_E)) +v_w = tobit((F.fKA(tobit((1163531501 + tobit((tobit((v_w + v_m)) + bxor(v_E, band(v_C, bxor(v_E, v_B))))))), 20) + v_B)) +v_r = tobit((F.fKA(tobit((tobit((tobit((v_C + v_u)) + bxor(band(bxor(v_B, v_w), v_E), v_B))) - 1444681467)), 5) + v_w)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_E + v_b)) + bxor(v_w, band(v_B, bxor(v_r, v_w))))) - 51403784)), 9) + v_r)) +v_E = tobit((F.fKA(tobit((1735328473 + tobit((tobit((v_B + v_v)) + bxor(v_r, band(v_w, bxor(v_C, v_r))))))), 14) + v_C)) +v_O = tobit((v_C + v_m)) +local t110 = tobit((v_w + v_o)) +local t109 = v_C +v_B = bxor(v_C, v_E) +v_w = tobit((F.fKA(tobit((tobit((t110 + bxor(t109, band(v_B, v_r)))) - 1926607734)), 20) + v_E)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_r + v_I)) + bxor(v_w, v_B))) - 378558)), 4) + v_w)) +v_r = tobit((F.fKA(tobit((tobit((v_O + bxor(bxor(v_w, v_E), v_C))) - 2022574463)), 11) + v_C)) +v_E = tobit((F.fKA(tobit((1839030562 + tobit((tobit((v_E + v_p)) + bxor(bxor(v_r, v_w), v_C))))), 16) + v_r)) +v_w = tobit((F.fKA(tobit((tobit((tobit((v_w + v_k)) + bxor(bxor(v_E, v_r), v_C))) - 35309556)), 23) + v_E)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_C + v_c)) + bxor(bxor(v_w, v_r), v_E))) - 1530992060)), 4) + v_w)) +v_r = tobit((F.fKA(tobit((1272893353 + tobit((tobit((v_r + v_t)) + bxor(bxor(v_C, v_w), v_E))))), 11) + v_C)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_E + v_v)) + bxor(bxor(v_r, v_w), v_C))) - 155497632)), 16) + v_r)) +v_w = tobit((F.fKA(tobit((tobit((tobit((v_w + v_d)) + bxor(bxor(v_E, v_r), v_C))) - 1094730640)), 23) + v_E)) +v_C = tobit((F.fKA(tobit((681279174 + tobit((tobit((v_C + v_u)) + bxor(bxor(v_w, v_r), v_E))))), 4) + v_w)) +v_r = tobit((F.fKA(tobit((tobit((tobit((v_r + v_Q)) + bxor(bxor(v_C, v_w), v_E))) - 358537222)), 11) + v_C)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_E + v_l)) + bxor(bxor(v_r, v_w), v_C))) - 722521979)), 16) + v_r)) +v_w = tobit((F.fKA(tobit((76029189 + tobit((tobit((v_w + v_g)) + bxor(bxor(v_E, v_r), v_C))))), 23) + v_E)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_C + v_a)) + bxor(bxor(v_w, v_r), v_E))) - 640364487)), 4) + v_w)) +v_B = tobit((v_C + v_Q)) +v_r = tobit((F.fKA(tobit((tobit((tobit((v_r + v_o)) + bxor(bxor(v_C, v_w), v_E))) - 421815835)), 11) + v_C)) +v_Q = bxor(v_r, v_C) +v_C = tobit((F.fKA(tobit((530742520 + tobit((tobit((v_E + v_h)) + bxor(bxor(v_r, v_w), v_C))))), 16) + v_r)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_w + v_b)) + bxor(v_Q, v_C))) - 995338651)), 23) + v_C)) +v_w = tobit((F.fKA(tobit((tobit((v_B + bxor(bor(v_E, bxor((-1), v_r)), v_C))) - 198630844)), 6) + v_E)) +v_B = tobit((v_E + v_I)) +v_I = tobit((v_C + v_k)) +v_C = tobit((F.fKA(tobit((1126891415 + tobit((tobit((v_r + v_v)) + bxor(v_E, bor(v_w, bxor((-1), v_C))))))), 10) + v_w)) +v_E = tobit((F.fKA(tobit((tobit((v_I + bxor(v_w, bor(v_C, bxor((-1), v_E))))) - 1416354905)), 15) + v_C)) +v_r = tobit((F.fKA(tobit((tobit((v_B + bxor(bor(v_E, bxor((-1), v_w)), v_C))) - 57434055)), 21) + v_E)) +v_B = tobit((v_E + v_d)) +v_I = tobit((v_C + v_l)) +v_C = tobit((F.fKA(tobit((1700485571 + tobit((tobit((v_w + v_o)) + bxor(v_E, bor(v_r, bxor((-1), v_C))))))), 6) + v_r)) +v_E = tobit((F.fKA(tobit((tobit((v_I + bxor(v_r, bor(v_C, bxor((-1), v_E))))) - 1894986606)), 10) + v_C)) +v_w = tobit((F.fKA(tobit((tobit((v_B + bxor(bor(v_E, bxor((-1), v_r)), v_C))) - 1051523)), 15) + v_E)) +v_B = tobit((v_E + v_h)) +v_m = tobit((v_C + v_m)) +v_C = tobit((F.fKA(tobit((tobit((tobit((v_r + v_c)) + bxor(v_E, bor(v_w, bxor((-1), v_C))))) - 2054922799)), 21) + v_w)) +v_E = tobit((F.fKA(tobit((1873313359 + tobit((v_m + bxor(v_w, bor(v_C, bxor((-1), v_E))))))), 6) + v_C)) +v_r = tobit((F.fKA(tobit((tobit((v_B + bxor(bor(v_E, bxor((-1), v_w)), v_C))) - 30611744)), 10) + v_E)) +v_w = tobit((F.fKA(tobit((tobit((tobit((v_w + v_g)) + bxor(v_E, bor(v_r, bxor((-1), v_C))))) - 1560198380)), 15) + v_r)) +v_C = tobit((F.fKA(tobit((1309151649 + tobit((tobit((v_C + v_u)) + bxor(v_r, bor(v_w, bxor((-1), v_E))))))), 21) + v_w)) +v_E = tobit((F.fKA(tobit((tobit((tobit((v_E + v_t)) + bxor(bor(v_C, bxor((-1), v_r)), v_w))) - 145523070)), 6) + v_C)) +I32[arshift((v_A + 8), 2)] = tobit((v_E + v_y)) +v_r = tobit((F.fKA(tobit((tobit((tobit((v_r + v_p)) + bxor(v_C, bor(v_E, bxor((-1), v_w))))) - 1120210379)), 10) + v_E)) +I32[arshift((v_A + 20), 2)] = tobit((v_r + v_s)) +v_w = tobit((F.fKA(tobit((718787259 + tobit((tobit((v_w + v_b)) + bxor(v_E, bor(v_r, bxor((-1), v_C))))))), 15) + v_r)) +I32[arshift((v_A + 16), 2)] = tobit((v_w + v_n)) +I32[arshift((v_A + 12), 2)] = tobit((F.fKA(tobit((tobit((tobit((v_C + v_a)) + bxor(v_r, bor(v_w, bxor((-1), v_E))))) - 343485551)), 21) + tobit((v_w + v_e)))) +end +end + +F.fj = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I, v_m, v_Q, v_O, v_S, v_M = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +v_c = I32[arshift((v_A + 4), 2)] +v_o = U8[tobit((v_r + 3))] +v_a = U8[tobit((v_r + 1))] +v_u = U8[tobit((v_r + 2))] +v_t = tobit((B - 48)) +v_s = U8[bor(0, v_r)] +I8[tobit((v_t + 40))] = tobit(v_s) +v_o = bxor(I32[arshift(v_c, 2)], bor(bor(bor(v_s, lshift(v_a, 8)), lshift(v_u, 16)), lshift(v_o, 24))) +I8[tobit((v_t + 40))] = tobit(v_o) +I8[tobit((v_t + 39))] = tobit((rshift(v_o, 8) % 4294967296)) +I8[tobit((v_t + 38))] = tobit((rshift(v_o, 16) % 4294967296)) +I8[tobit((v_t + 37))] = tobit((rshift(v_o, 24) % 4294967296)) +v_o = bxor(I32[arshift((v_c + 4), 2)], bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24))) +I8[tobit((v_t + 36))] = tobit(v_o) +v_l = tobit((rshift(v_o, 8) % 4294967296)) +I8[tobit((v_t + 35))] = tobit(v_l) +v_v = tobit((rshift(v_o, 16) % 4294967296)) +I8[tobit((v_t + 34))] = tobit(v_v) +v_g = tobit((rshift(v_o, 24) % 4294967296)) +I8[tobit((v_t + 33))] = tobit(v_g) +v_a = bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24)) +I32[arshift((v_t + 44), 2)] = tobit((v_c + 12)) +v_a = bxor(v_a, I32[arshift((v_c + 8), 2)]) +I8[tobit((v_t + 32))] = tobit(v_a) +v_p = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 31))] = tobit(v_p) +v_d = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 30))] = tobit(v_d) +v_h = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_t + 29))] = tobit(v_h) +v_u = bxor(I32[arshift((v_c + 12), 2)], bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24))) +I8[tobit((v_t + 28))] = tobit(v_u) +v_k = tobit((rshift(v_u, 8) % 4294967296)) +I8[tobit((v_t + 27))] = tobit(v_k) +v_y = tobit((rshift(v_u, 16) % 4294967296)) +I8[tobit((v_t + 26))] = tobit(v_y) +v_w = tobit((rshift(v_u, 24) % 4294967296)) +I8[tobit((v_t + 25))] = tobit(v_w) +v_r = tobit((v_c + 16)) +v_A = I32[arshift(v_A, 2)] +if (bor(0, v_A) <= 3) then +v_C = U8[tobit((v_t + 37))] +v_E = U8[tobit((v_t + 38))] +else +do +v_I = tobit((rshift(v_A, 1) % 4294967296)) +v_m = U8[tobit((v_t + 39))] +v_C = U8[tobit((v_t + 37))] +v_E = U8[tobit((v_t + 38))] +while true do +v_A = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_g, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_d), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_k), 2)), 2)]), I32[arshift((23536 + lshift(U8[tobit((v_t + 40))], 2)), 2)]), I32[arshift(v_r, 2)]) +I8[tobit((v_t + 24))] = tobit(v_A) +v_c = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_h, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_y), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_m), 2)), 2)]), I32[arshift((23536 + lshift(band(255, v_o), 2)), 2)]), I32[arshift((v_r + 4), 2)]) +I8[tobit((v_t + 20))] = tobit(v_c) +v_s = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_w, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_E), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_l), 2)), 2)]), I32[arshift((23536 + lshift(band(255, v_a), 2)), 2)]), I32[arshift((v_r + 8), 2)]) +I8[tobit((v_t + 16))] = tobit(v_s) +v_b = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_C, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_v), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_p), 2)), 2)]), I32[arshift((23536 + lshift(band(255, v_u), 2)), 2)]), I32[arshift((v_r + 12), 2)]) +I8[tobit((v_t + 12))] = tobit(v_b) +v_Q = tobit((rshift(v_c, 24) % 4294967296)) +v_l = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_Q, 2)), 2)], I32[arshift((25584 + band((rshift(v_s, 14) % 4294967296), 1020)), 2)]), I32[arshift((24560 + band((rshift(v_b, 6) % 4294967296), 1020)), 2)]), I32[arshift((23536 + lshift(band(255, v_A), 2)), 2)]), I32[arshift((v_r + 16), 2)]) +I8[tobit((v_t + 40))] = tobit(v_l) +v_O = tobit((rshift(v_s, 24) % 4294967296)) +v_o = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_O, 2)), 2)], I32[arshift((25584 + band((rshift(v_b, 14) % 4294967296), 1020)), 2)]), I32[arshift((24560 + band((rshift(v_A, 6) % 4294967296), 1020)), 2)]), I32[arshift((23536 + lshift(band(255, v_c), 2)), 2)]), I32[arshift((v_r + 20), 2)]) +I8[tobit((v_t + 36))] = tobit(v_o) +v_a = bxor(bxor(bxor(bxor(I32[arshift((26608 + band((rshift(v_b, 22) % 4294967296), 1020)), 2)], I32[arshift((25584 + band((rshift(v_A, 14) % 4294967296), 1020)), 2)]), I32[arshift((24560 + band((rshift(v_c, 6) % 4294967296), 1020)), 2)]), I32[arshift((23536 + lshift(band(255, v_s), 2)), 2)]), I32[arshift((v_r + 24), 2)]) +I8[tobit((v_t + 32))] = tobit(v_a) +v_S = tobit((rshift(v_A, 24) % 4294967296)) +v_u = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_S, 2)), 2)], I32[arshift((25584 + band((rshift(v_c, 14) % 4294967296), 1020)), 2)]), I32[arshift((24560 + band((rshift(v_s, 6) % 4294967296), 1020)), 2)]), I32[arshift((23536 + lshift(band(255, v_b), 2)), 2)]), I32[arshift((v_r + 28), 2)]) +I8[tobit((v_t + 28))] = tobit(v_u) +v_C = tobit((rshift(v_l, 24) % 4294967296)) +v_E = tobit((rshift(v_l, 16) % 4294967296)) +v_m = tobit((rshift(v_l, 8) % 4294967296)) +v_g = tobit((rshift(v_o, 24) % 4294967296)) +v_v = tobit((rshift(v_o, 16) % 4294967296)) +v_l = tobit((rshift(v_o, 8) % 4294967296)) +v_h = tobit((rshift(v_a, 24) % 4294967296)) +v_d = tobit((rshift(v_a, 16) % 4294967296)) +v_p = tobit((rshift(v_a, 8) % 4294967296)) +v_w = tobit((rshift(v_u, 24) % 4294967296)) +v_y = tobit((rshift(v_u, 16) % 4294967296)) +v_k = tobit((rshift(v_u, 8) % 4294967296)) +v_r = tobit((v_r + 32)) +v_M = ((bor(0, v_I) > 2) and 1 or 0) +v_I = tobit((v_I - 1)) +if not (v_M ~= 0) then goto B131 end +do +end +::C131:: +end +end +::B131:: +I8[tobit((v_t + 23))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_t + 39))] = tobit(v_m) +I8[tobit((v_t + 22))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[tobit((v_t + 21))] = tobit(v_S) +I8[tobit((v_t + 19))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 18))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 17))] = tobit(v_Q) +I8[tobit((v_t + 15))] = tobit((rshift(v_s, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_s, 16) % 4294967296)) +I8[tobit((v_t + 13))] = tobit(v_O) +I8[tobit((v_t + 11))] = tobit((rshift(v_b, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_b, 16) % 4294967296)) +end +v_u = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_C, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_v), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_p), 2)), 2)]), I32[arshift((23536 + lshift(band(255, v_u), 2)), 2)]), I32[arshift((v_r + 12), 2)]) +v_c = U8[tobit((31728 + band((rshift(v_u, 8) % 4294967296), 255)))] +v_A = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_w, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_E), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_l), 2)), 2)]), I32[arshift((23536 + lshift(band(255, v_a), 2)), 2)]), I32[arshift((v_r + 8), 2)]) +v_s = U8[tobit((31728 + band((rshift(v_A, 16) % 4294967296), 255)))] +v_b = U8[tobit((31728 + band((rshift(v_u, 16) % 4294967296), 255)))] +v_o = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_h, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_y), 2)), 2)]), I32[arshift((24560 + lshift(U8[tobit((v_t + 39))], 2)), 2)]), I32[arshift((23536 + lshift(band(255, v_o), 2)), 2)]), I32[arshift((v_r + 4), 2)]) +v_C = U8[tobit((31728 + band((rshift(v_o, 8) % 4294967296), 255)))] +v_E = U8[tobit((31728 + band((rshift(v_A, 8) % 4294967296), 255)))] +v_l = U8[tobit((31728 + band((rshift(v_o, 16) % 4294967296), 255)))] +v_v = U8[tobit((31728 + tobit((rshift(v_o, 24) % 4294967296))))] +v_a = bxor(bxor(bxor(bxor(I32[arshift((26608 + lshift(v_g, 2)), 2)], I32[arshift((25584 + lshift(band(255, v_d), 2)), 2)]), I32[arshift((24560 + lshift(band(255, v_k), 2)), 2)]), I32[arshift((23536 + lshift(U8[tobit((v_t + 40))], 2)), 2)]), I32[arshift(v_r, 2)]) +v_g = U8[tobit((31728 + band((rshift(v_a, 8) % 4294967296), 255)))] +v_p = U8[tobit((31728 + tobit((rshift(v_A, 24) % 4294967296))))] +v_d = U8[tobit((31728 + band((rshift(v_a, 16) % 4294967296), 255)))] +v_h = U8[tobit((31728 + tobit((rshift(v_u, 24) % 4294967296))))] +v_k = U8[tobit((31728 + tobit((rshift(v_a, 24) % 4294967296))))] +v_y = U8[tobit((31728 + band(255, v_a)))] +v_w = U8[tobit((31728 + band(255, v_o)))] +v_I = U8[tobit((31728 + band(255, v_A)))] +v_A = I32[arshift((v_r + 16), 2)] +v_o = I32[arshift((v_r + 20), 2)] +v_a = I32[arshift((v_r + 24), 2)] +v_r = I32[arshift((v_r + 28), 2)] +I8[tobit((v_e + 12))] = tobit(bxor(v_r, U8[tobit((31728 + band(255, v_u)))])) +I8[tobit((v_e + 8))] = tobit(bxor(v_a, v_I)) +I8[tobit((v_e + 4))] = tobit(bxor(v_o, v_w)) +I8[bor(0, v_e)] = tobit(bxor(v_A, v_y)) +I8[tobit((v_e + 15))] = tobit((rshift(bxor(v_r, lshift(v_k, 24)), 24) % 4294967296)) +I8[tobit((v_e + 11))] = tobit((rshift(bxor(v_a, lshift(v_h, 24)), 24) % 4294967296)) +I8[tobit((v_e + 10))] = tobit((rshift(bxor(v_a, lshift(v_d, 16)), 16) % 4294967296)) +I8[tobit((v_e + 7))] = tobit((rshift(bxor(v_o, lshift(v_p, 24)), 24) % 4294967296)) +I8[tobit((v_e + 5))] = tobit((rshift(bxor(v_o, lshift(v_g, 8)), 8) % 4294967296)) +I8[tobit((v_e + 3))] = tobit((rshift(bxor(v_A, lshift(v_v, 24)), 24) % 4294967296)) +I8[tobit((v_e + 14))] = tobit((rshift(bxor(v_r, lshift(v_l, 16)), 16) % 4294967296)) +I8[tobit((v_e + 13))] = tobit((rshift(bxor(v_r, lshift(v_E, 8)), 8) % 4294967296)) +I8[tobit((v_e + 9))] = tobit((rshift(bxor(v_a, lshift(v_C, 8)), 8) % 4294967296)) +I8[tobit((v_e + 6))] = tobit((rshift(bxor(v_o, lshift(v_b, 16)), 16) % 4294967296)) +I8[tobit((v_e + 2))] = tobit((rshift(bxor(v_A, lshift(v_s, 16)), 16) % 4294967296)) +I8[tobit((v_e + 1))] = tobit((rshift(bxor(v_A, lshift(v_c, 8)), 8) % 4294967296)) +I8[tobit((v_t + 40))] = tobit(0) +I8[tobit((v_t + 39))] = tobit(0) +I8[tobit((v_t + 38))] = tobit(0) +I8[tobit((v_t + 37))] = tobit(0) +I8[tobit((v_t + 36))] = tobit(0) +I8[tobit((v_t + 35))] = tobit(0) +I8[tobit((v_t + 34))] = tobit(0) +I8[tobit((v_t + 33))] = tobit(0) +I8[tobit((v_t + 32))] = tobit(0) +I8[tobit((v_t + 31))] = tobit(0) +I8[tobit((v_t + 30))] = tobit(0) +I8[tobit((v_t + 29))] = tobit(0) +I8[tobit((v_t + 28))] = tobit(0) +I8[tobit((v_t + 27))] = tobit(0) +I8[tobit((v_t + 26))] = tobit(0) +I8[tobit((v_t + 25))] = tobit(0) +I8[tobit((v_t + 24))] = tobit(0) +I8[tobit((v_t + 23))] = tobit(0) +I8[tobit((v_t + 22))] = tobit(0) +I8[tobit((v_t + 21))] = tobit(0) +I8[tobit((v_t + 20))] = tobit(0) +I8[tobit((v_t + 19))] = tobit(0) +I8[tobit((v_t + 18))] = tobit(0) +I8[tobit((v_t + 17))] = tobit(0) +I8[tobit((v_t + 16))] = tobit(0) +I8[tobit((v_t + 15))] = tobit(0) +I8[tobit((v_t + 14))] = tobit(0) +I8[tobit((v_t + 13))] = tobit(0) +I8[tobit((v_t + 12))] = tobit(0) +I8[tobit((v_t + 11))] = tobit(0) +I8[tobit((v_t + 10))] = tobit(0) +I8[tobit((v_t + 9))] = tobit(0) +I8[tobit((v_t + 44))] = tobit(0) +I8[tobit((v_t + 45))] = tobit(0) +I8[tobit((v_t + 46))] = tobit(0) +I8[tobit((v_t + 47))] = tobit(0) +end + +F.fT = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I, v_m, v_Q, v_O, v_S, v_M = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +v_c = I32[arshift((v_A + 4), 2)] +v_o = U8[tobit((v_r + 3))] +v_a = U8[tobit((v_r + 1))] +v_u = U8[tobit((v_r + 2))] +v_t = tobit((B - 48)) +v_s = U8[bor(0, v_r)] +I8[tobit((v_t + 40))] = tobit(v_s) +v_o = bxor(I32[arshift(v_c, 2)], bor(bor(bor(v_s, lshift(v_a, 8)), lshift(v_u, 16)), lshift(v_o, 24))) +I8[tobit((v_t + 40))] = tobit(v_o) +I8[tobit((v_t + 39))] = tobit((rshift(v_o, 8) % 4294967296)) +I8[tobit((v_t + 38))] = tobit((rshift(v_o, 16) % 4294967296)) +I8[tobit((v_t + 37))] = tobit((rshift(v_o, 24) % 4294967296)) +v_o = bxor(I32[arshift((v_c + 4), 2)], bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24))) +I8[tobit((v_t + 36))] = tobit(v_o) +v_l = tobit((rshift(v_o, 8) % 4294967296)) +I8[tobit((v_t + 35))] = tobit(v_l) +v_v = tobit((rshift(v_o, 16) % 4294967296)) +I8[tobit((v_t + 34))] = tobit(v_v) +v_g = tobit((rshift(v_o, 24) % 4294967296)) +I8[tobit((v_t + 33))] = tobit(v_g) +v_a = bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24)) +I32[arshift((v_t + 44), 2)] = tobit((v_c + 12)) +v_a = bxor(v_a, I32[arshift((v_c + 8), 2)]) +I8[tobit((v_t + 32))] = tobit(v_a) +v_p = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 31))] = tobit(v_p) +v_d = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 30))] = tobit(v_d) +v_h = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_t + 29))] = tobit(v_h) +v_u = bxor(I32[arshift((v_c + 12), 2)], bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24))) +I8[tobit((v_t + 28))] = tobit(v_u) +v_k = tobit((rshift(v_u, 8) % 4294967296)) +I8[tobit((v_t + 27))] = tobit(v_k) +v_y = tobit((rshift(v_u, 16) % 4294967296)) +I8[tobit((v_t + 26))] = tobit(v_y) +v_w = tobit((rshift(v_u, 24) % 4294967296)) +I8[tobit((v_t + 25))] = tobit(v_w) +v_r = tobit((v_c + 16)) +v_A = I32[arshift(v_A, 2)] +if (bor(0, v_A) <= 3) then +v_C = U8[tobit((v_t + 37))] +v_E = U8[tobit((v_t + 38))] +else +do +v_I = tobit((rshift(v_A, 1) % 4294967296)) +v_m = U8[tobit((v_t + 39))] +v_C = U8[tobit((v_t + 37))] +v_E = U8[tobit((v_t + 38))] +while true do +v_A = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_w, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_d), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_l), 2)), 2)]), I32[arshift((27632 + lshift(U8[tobit((v_t + 40))], 2)), 2)]), I32[arshift(v_r, 2)]) +I8[tobit((v_t + 24))] = tobit(v_A) +v_c = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_C, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_y), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_p), 2)), 2)]), I32[arshift((27632 + lshift(band(255, v_o), 2)), 2)]), I32[arshift((v_r + 4), 2)]) +I8[tobit((v_t + 20))] = tobit(v_c) +v_s = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_g, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_E), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_k), 2)), 2)]), I32[arshift((27632 + lshift(band(255, v_a), 2)), 2)]), I32[arshift((v_r + 8), 2)]) +I8[tobit((v_t + 16))] = tobit(v_s) +v_b = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_h, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_v), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_m), 2)), 2)]), I32[arshift((27632 + lshift(band(255, v_u), 2)), 2)]), I32[arshift((v_r + 12), 2)]) +I8[tobit((v_t + 12))] = tobit(v_b) +v_l = bxor(bxor(bxor(bxor(I32[arshift((30704 + band((rshift(v_b, 22) % 4294967296), 1020)), 2)], I32[arshift((29680 + band((rshift(v_s, 14) % 4294967296), 1020)), 2)]), I32[arshift((28656 + band((rshift(v_c, 6) % 4294967296), 1020)), 2)]), I32[arshift((27632 + lshift(band(255, v_A), 2)), 2)]), I32[arshift((v_r + 16), 2)]) +I8[tobit((v_t + 40))] = tobit(v_l) +v_Q = tobit((rshift(v_A, 24) % 4294967296)) +v_o = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_Q, 2)), 2)], I32[arshift((29680 + band((rshift(v_b, 14) % 4294967296), 1020)), 2)]), I32[arshift((28656 + band((rshift(v_s, 6) % 4294967296), 1020)), 2)]), I32[arshift((27632 + lshift(band(255, v_c), 2)), 2)]), I32[arshift((v_r + 20), 2)]) +I8[tobit((v_t + 36))] = tobit(v_o) +v_O = tobit((rshift(v_c, 24) % 4294967296)) +v_a = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_O, 2)), 2)], I32[arshift((29680 + band((rshift(v_A, 14) % 4294967296), 1020)), 2)]), I32[arshift((28656 + band((rshift(v_b, 6) % 4294967296), 1020)), 2)]), I32[arshift((27632 + lshift(band(255, v_s), 2)), 2)]), I32[arshift((v_r + 24), 2)]) +I8[tobit((v_t + 32))] = tobit(v_a) +v_S = tobit((rshift(v_s, 24) % 4294967296)) +v_u = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_S, 2)), 2)], I32[arshift((29680 + band((rshift(v_c, 14) % 4294967296), 1020)), 2)]), I32[arshift((28656 + band((rshift(v_A, 6) % 4294967296), 1020)), 2)]), I32[arshift((27632 + lshift(band(255, v_b), 2)), 2)]), I32[arshift((v_r + 28), 2)]) +I8[tobit((v_t + 28))] = tobit(v_u) +v_C = tobit((rshift(v_l, 24) % 4294967296)) +v_E = tobit((rshift(v_l, 16) % 4294967296)) +v_m = tobit((rshift(v_l, 8) % 4294967296)) +v_g = tobit((rshift(v_o, 24) % 4294967296)) +v_v = tobit((rshift(v_o, 16) % 4294967296)) +v_l = tobit((rshift(v_o, 8) % 4294967296)) +v_h = tobit((rshift(v_a, 24) % 4294967296)) +v_d = tobit((rshift(v_a, 16) % 4294967296)) +v_p = tobit((rshift(v_a, 8) % 4294967296)) +v_w = tobit((rshift(v_u, 24) % 4294967296)) +v_y = tobit((rshift(v_u, 16) % 4294967296)) +v_k = tobit((rshift(v_u, 8) % 4294967296)) +v_r = tobit((v_r + 32)) +v_M = ((bor(0, v_I) > 2) and 1 or 0) +v_I = tobit((v_I - 1)) +if not (v_M ~= 0) then goto B132 end +do +end +::C132:: +end +end +::B132:: +I8[tobit((v_t + 23))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_t + 39))] = tobit(v_m) +I8[tobit((v_t + 22))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[tobit((v_t + 21))] = tobit(v_Q) +I8[tobit((v_t + 19))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 18))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 17))] = tobit(v_O) +I8[tobit((v_t + 15))] = tobit((rshift(v_s, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_s, 16) % 4294967296)) +I8[tobit((v_t + 13))] = tobit(v_S) +I8[tobit((v_t + 11))] = tobit((rshift(v_b, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_b, 16) % 4294967296)) +end +v_A = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_C, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_y), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_p), 2)), 2)]), I32[arshift((27632 + lshift(band(255, v_o), 2)), 2)]), I32[arshift((v_r + 4), 2)]) +v_c = U8[tobit((23280 + band((rshift(v_A, 8) % 4294967296), 255)))] +v_o = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_g, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_E), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_k), 2)), 2)]), I32[arshift((27632 + lshift(band(255, v_a), 2)), 2)]), I32[arshift((v_r + 8), 2)]) +v_s = U8[tobit((23280 + band((rshift(v_o, 16) % 4294967296), 255)))] +v_b = U8[tobit((23280 + band((rshift(v_o, 8) % 4294967296), 255)))] +v_u = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_h, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_v), 2)), 2)]), I32[arshift((28656 + lshift(U8[tobit((v_t + 39))], 2)), 2)]), I32[arshift((27632 + lshift(band(255, v_u), 2)), 2)]), I32[arshift((v_r + 12), 2)]) +v_C = U8[tobit((23280 + band((rshift(v_u, 16) % 4294967296), 255)))] +v_E = U8[tobit((23280 + band((rshift(v_u, 8) % 4294967296), 255)))] +v_v = U8[tobit((23280 + band((rshift(v_A, 16) % 4294967296), 255)))] +v_g = U8[tobit((23280 + tobit((rshift(v_u, 24) % 4294967296))))] +v_a = bxor(bxor(bxor(bxor(I32[arshift((30704 + lshift(v_w, 2)), 2)], I32[arshift((29680 + lshift(band(255, v_d), 2)), 2)]), I32[arshift((28656 + lshift(band(255, v_l), 2)), 2)]), I32[arshift((27632 + lshift(U8[tobit((v_t + 40))], 2)), 2)]), I32[arshift(v_r, 2)]) +v_l = U8[tobit((23280 + band((rshift(v_a, 16) % 4294967296), 255)))] +v_p = U8[tobit((23280 + tobit((rshift(v_A, 24) % 4294967296))))] +v_d = U8[tobit((23280 + band((rshift(v_a, 8) % 4294967296), 255)))] +v_h = U8[tobit((23280 + tobit((rshift(v_o, 24) % 4294967296))))] +v_k = U8[tobit((23280 + tobit((rshift(v_a, 24) % 4294967296))))] +v_y = U8[tobit((23280 + band(255, v_a)))] +v_w = U8[tobit((23280 + band(255, v_A)))] +v_I = U8[tobit((23280 + band(255, v_o)))] +v_A = I32[arshift((v_r + 16), 2)] +v_o = I32[arshift((v_r + 20), 2)] +v_a = I32[arshift((v_r + 24), 2)] +v_r = I32[arshift((v_r + 28), 2)] +I8[tobit((v_e + 12))] = tobit(bxor(v_r, U8[tobit((23280 + band(255, v_u)))])) +I8[tobit((v_e + 8))] = tobit(bxor(v_a, v_I)) +I8[tobit((v_e + 4))] = tobit(bxor(v_o, v_w)) +I8[bor(0, v_e)] = tobit(bxor(v_A, v_y)) +I8[tobit((v_e + 7))] = tobit((rshift(bxor(v_o, lshift(v_k, 24)), 24) % 4294967296)) +I8[tobit((v_e + 15))] = tobit((rshift(bxor(v_r, lshift(v_h, 24)), 24) % 4294967296)) +I8[tobit((v_e + 13))] = tobit((rshift(bxor(v_r, lshift(v_d, 8)), 8) % 4294967296)) +I8[tobit((v_e + 11))] = tobit((rshift(bxor(v_a, lshift(v_p, 24)), 24) % 4294967296)) +I8[tobit((v_e + 10))] = tobit((rshift(bxor(v_a, lshift(v_l, 16)), 16) % 4294967296)) +I8[tobit((v_e + 3))] = tobit((rshift(bxor(v_A, lshift(v_g, 24)), 24) % 4294967296)) +I8[tobit((v_e + 14))] = tobit((rshift(bxor(v_r, lshift(v_v, 16)), 16) % 4294967296)) +I8[tobit((v_e + 9))] = tobit((rshift(bxor(v_a, lshift(v_E, 8)), 8) % 4294967296)) +I8[tobit((v_e + 6))] = tobit((rshift(bxor(v_o, lshift(v_C, 16)), 16) % 4294967296)) +I8[tobit((v_e + 5))] = tobit((rshift(bxor(v_o, lshift(v_b, 8)), 8) % 4294967296)) +I8[tobit((v_e + 2))] = tobit((rshift(bxor(v_A, lshift(v_s, 16)), 16) % 4294967296)) +I8[tobit((v_e + 1))] = tobit((rshift(bxor(v_A, lshift(v_c, 8)), 8) % 4294967296)) +I8[tobit((v_t + 40))] = tobit(0) +I8[tobit((v_t + 39))] = tobit(0) +I8[tobit((v_t + 38))] = tobit(0) +I8[tobit((v_t + 37))] = tobit(0) +I8[tobit((v_t + 36))] = tobit(0) +I8[tobit((v_t + 35))] = tobit(0) +I8[tobit((v_t + 34))] = tobit(0) +I8[tobit((v_t + 33))] = tobit(0) +I8[tobit((v_t + 32))] = tobit(0) +I8[tobit((v_t + 31))] = tobit(0) +I8[tobit((v_t + 30))] = tobit(0) +I8[tobit((v_t + 29))] = tobit(0) +I8[tobit((v_t + 28))] = tobit(0) +I8[tobit((v_t + 27))] = tobit(0) +I8[tobit((v_t + 26))] = tobit(0) +I8[tobit((v_t + 25))] = tobit(0) +I8[tobit((v_t + 24))] = tobit(0) +I8[tobit((v_t + 23))] = tobit(0) +I8[tobit((v_t + 22))] = tobit(0) +I8[tobit((v_t + 21))] = tobit(0) +I8[tobit((v_t + 20))] = tobit(0) +I8[tobit((v_t + 19))] = tobit(0) +I8[tobit((v_t + 18))] = tobit(0) +I8[tobit((v_t + 17))] = tobit(0) +I8[tobit((v_t + 16))] = tobit(0) +I8[tobit((v_t + 15))] = tobit(0) +I8[tobit((v_t + 14))] = tobit(0) +I8[tobit((v_t + 13))] = tobit(0) +I8[tobit((v_t + 12))] = tobit(0) +I8[tobit((v_t + 11))] = tobit(0) +I8[tobit((v_t + 10))] = tobit(0) +I8[tobit((v_t + 9))] = tobit(0) +I8[tobit((v_t + 44))] = tobit(0) +I8[tobit((v_t + 45))] = tobit(0) +I8[tobit((v_t + 46))] = tobit(0) +I8[tobit((v_t + 47))] = tobit(0) +end + +F.fP = function(v_A, v_r) +local v_e, v_n, v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I, v_m, v_Q, v_O, v_S, v_M = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_n = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +do +v_e = tobit((B - 256)) +B = v_e +v_s = I32[arshift((v_A + 36), 2)] +v_h = I32[arshift((v_A + 32), 2)] +v_k = I32[arshift((v_A + 28), 2)] +v_y = I32[arshift((v_A + 24), 2)] +v_u = I32[arshift((v_A + 20), 2)] +v_l = I32[arshift((v_A + 16), 2)] +v_p = I32[arshift((v_A + 12), 2)] +v_d = I32[arshift((v_A + 8), 2)] +while true do +v_n = 1 +v_o = lshift(v_t, 2) +I32[arshift((v_o + v_e), 2)] = tobit(bor(bor(bor(U8[tobit((bor(3, v_o) + v_r))], lshift(U8[tobit((bor(1, v_o) + v_r))], 16)), lshift(U8[tobit((v_r + v_o))], 24)), lshift(U8[tobit((bor(2, v_o) + v_r))], 8))) +v_t = tobit((v_t + 1)) +if not (16 ~= bor(0, v_t)) then goto B133 end +do +end +::C133:: +end +end +::B133:: +do +do +while true do +do +v_C = lshift(v_S, 2) +v_S = 8 +v_o = tobit((tobit((I32[arshift((v_e + v_C), 2)] + tobit((I32[arshift((v_C + 11248), 2)] + tobit((bxor(bxor(F.fKA(v_y, 26), F.fKA(v_y, 21)), F.fKA(v_y, 7)) + v_s)))))) + bxor(band(bxor(v_h, v_k), v_y), v_h))) +v_a = tobit((tobit((v_o + bxor(bxor(F.fKA(v_d, 30), F.fKA(v_d, 19)), F.fKA(v_d, 10)))) + bor(band(bor(v_d, v_p), v_l), band(v_d, v_p)))) +v_t = tobit((bxor(bxor(F.fKA(v_a, 30), F.fKA(v_a, 19)), F.fKA(v_a, 10)) + bor(band(bor(v_a, v_d), v_p), band(v_a, v_d)))) +v_c = tobit((v_o + v_u)) +v_r = bor(4, v_C) +v_o = tobit((tobit((tobit((I32[arshift((11248 + v_r), 2)] + tobit((bxor(band(v_c, bxor(v_y, v_k)), v_k) + v_h)))) + bxor(bxor(F.fKA(v_c, 26), F.fKA(v_c, 21)), F.fKA(v_c, 7)))) + I32[arshift((v_r + v_e), 2)])) +v_b = tobit((v_t + v_o)) +v_t = tobit((bxor(bxor(F.fKA(v_b, 30), F.fKA(v_b, 19)), F.fKA(v_b, 10)) + bor(band(bor(v_a, v_b), v_d), band(v_a, v_b)))) +v_Q = tobit((v_o + v_l)) +v_r = bor(8, v_C) +v_o = tobit((tobit((tobit((tobit((I32[arshift((11248 + v_r), 2)] + v_k)) + I32[arshift((v_r + v_e), 2)])) + bxor(band(v_Q, bxor(v_c, v_y)), v_y))) + bxor(bxor(F.fKA(v_Q, 26), F.fKA(v_Q, 21)), F.fKA(v_Q, 7)))) +v_v = tobit((v_t + v_o)) +v_t = tobit((bxor(bxor(F.fKA(v_v, 30), F.fKA(v_v, 19)), F.fKA(v_v, 10)) + bor(band(v_a, bor(v_b, v_v)), band(v_b, v_v)))) +v_O = tobit((v_o + v_p)) +v_r = bor(12, v_C) +v_o = tobit((tobit((tobit((tobit((I32[arshift((11248 + v_r), 2)] + v_y)) + I32[arshift((v_r + v_e), 2)])) + bxor(v_c, band(v_O, bxor(v_c, v_Q))))) + bxor(bxor(F.fKA(v_O, 26), F.fKA(v_O, 21)), F.fKA(v_O, 7)))) +v_g = tobit((v_t + v_o)) +v_t = tobit((bxor(bxor(F.fKA(v_g, 30), F.fKA(v_g, 19)), F.fKA(v_g, 10)) + bor(band(v_b, bor(v_v, v_g)), band(v_v, v_g)))) +local t111 = v_c +v_r = bor(16, v_C) +v_r = tobit((tobit((t111 + I32[arshift((11248 + v_r), 2)])) + I32[arshift((v_r + v_e), 2)])) +local t113 = v_r +local t112 = v_Q +v_c = tobit((v_o + v_d)) +v_o = tobit((tobit((t113 + bxor(t112, band(v_c, bxor(v_Q, v_O))))) + bxor(bxor(F.fKA(v_c, 26), F.fKA(v_c, 21)), F.fKA(v_c, 7)))) +v_u = tobit((v_t + v_o)) +v_t = tobit((bxor(bxor(F.fKA(v_u, 30), F.fKA(v_u, 19)), F.fKA(v_u, 10)) + bor(band(v_v, bor(v_u, v_g)), band(v_u, v_g)))) +v_s = tobit((v_o + v_a)) +local t114 = v_Q +v_r = bor(20, v_C) +v_o = tobit((tobit((tobit((tobit((t114 + I32[arshift((11248 + v_r), 2)])) + I32[arshift((v_r + v_e), 2)])) + bxor(v_O, band(v_s, bxor(v_c, v_O))))) + bxor(bxor(F.fKA(v_s, 26), F.fKA(v_s, 21)), F.fKA(v_s, 7)))) +v_l = tobit((v_t + v_o)) +v_t = tobit((bxor(bxor(F.fKA(v_l, 30), F.fKA(v_l, 19)), F.fKA(v_l, 10)) + bor(band(v_g, bor(v_u, v_l)), band(v_u, v_l)))) +v_h = tobit((v_o + v_b)) +local t115 = v_O +v_r = bor(24, v_C) +v_o = tobit((tobit((tobit((tobit((t115 + I32[arshift((11248 + v_r), 2)])) + I32[arshift((v_r + v_e), 2)])) + bxor(v_c, band(v_h, bxor(v_c, v_s))))) + bxor(bxor(F.fKA(v_h, 26), F.fKA(v_h, 21)), F.fKA(v_h, 7)))) +v_k = tobit((v_o + v_v)) +v_p = tobit((v_t + v_o)) +v_t = tobit((bxor(bxor(F.fKA(v_p, 30), F.fKA(v_p, 19)), F.fKA(v_p, 10)) + bor(band(bor(v_l, v_p), v_u), band(v_l, v_p)))) +local t117 = v_t +local t116 = v_c +v_r = bor(28, v_C) +v_r = tobit((tobit((tobit((tobit((t116 + I32[arshift((11248 + v_r), 2)])) + I32[arshift((v_r + v_e), 2)])) + bxor(band(v_k, bxor(v_s, v_h)), v_s))) + bxor(bxor(F.fKA(v_k, 26), F.fKA(v_k, 21)), F.fKA(v_k, 7)))) +v_d = tobit((t117 + v_r)) +v_y = tobit((v_r + v_g)) +v_r = v_n +v_n = 0 +if not (v_r ~= 0) then goto B134 end +end +do +end +::C134:: +end +end +::B134:: +end +do +do +v_t = I32[arshift(v_e, 2)] +v_S = 16 +while true do +do +v_r = v_t +v_w = lshift(v_S, 2) +v_t = tobit((v_w + v_e)) +v_c = I32[arshift((v_t - 8), 2)] +v_r = tobit((v_r + tobit((I32[arshift((v_t - 28), 2)] + bxor(bxor(F.fKA(v_c, 15), F.fKA(v_c, 13)), (rshift(v_c, 10) % 4294967296)))))) +v_n = I32[arshift((v_t - 60), 2)] +v_a = tobit((bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)) + v_r)) +I32[arshift(v_t, 2)] = tobit(v_a) +v_r = bor(4, v_w) +v_o = I32[arshift((v_t - 4), 2)] +v_b = tobit((tobit((v_n + I32[arshift((v_t - 24), 2)])) + bxor(bxor(F.fKA(v_o, 15), F.fKA(v_o, 13)), (rshift(v_o, 10) % 4294967296)))) +local t118 = v_b +v_n = I32[arshift((v_t - 56), 2)] +v_E = tobit((t118 + bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)))) +I32[arshift((v_r + v_e), 2)] = tobit(v_E) +v_b = bor(8, v_w) +v_v = tobit((I32[arshift((v_t - 20), 2)] + tobit((v_n + bxor(bxor(F.fKA(v_a, 15), F.fKA(v_a, 13)), (rshift(v_a, 10) % 4294967296)))))) +local t119 = v_v +v_n = I32[arshift((v_t - 52), 2)] +v_I = tobit((t119 + bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)))) +I32[arshift((v_b + v_e), 2)] = tobit(v_I) +v_v = bor(12, v_w) +v_g = tobit((I32[arshift((v_t - 16), 2)] + tobit((v_n + bxor(bxor(F.fKA(v_E, 15), F.fKA(v_E, 13)), (rshift(v_E, 10) % 4294967296)))))) +local t120 = v_g +v_n = I32[arshift((v_t - 48), 2)] +v_m = tobit((t120 + bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)))) +I32[arshift((v_v + v_e), 2)] = tobit(v_m) +v_g = bor(16, v_w) +v_C = tobit((I32[arshift((v_t - 12), 2)] + tobit((v_n + bxor(bxor(F.fKA(v_I, 15), F.fKA(v_I, 13)), (rshift(v_I, 10) % 4294967296)))))) +local t121 = v_C +v_n = I32[arshift((v_t - 44), 2)] +v_M = tobit((t121 + bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)))) +I32[arshift((v_g + v_e), 2)] = tobit(v_M) +v_Q = bor(20, v_w) +v_c = tobit((tobit((v_n + v_c)) + bxor(bxor(F.fKA(v_m, 15), F.fKA(v_m, 13)), (rshift(v_m, 10) % 4294967296)))) +local t122 = v_c +v_n = I32[arshift((v_t - 40), 2)] +v_C = tobit((t122 + bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)))) +I32[arshift((v_Q + v_e), 2)] = tobit(v_C) +v_O = bor(24, v_w) +v_o = tobit((tobit((v_n + v_o)) + bxor(bxor(F.fKA(v_M, 15), F.fKA(v_M, 13)), (rshift(v_M, 10) % 4294967296)))) +local t123 = v_o +v_n = I32[arshift((v_t - 36), 2)] +v_c = tobit((t123 + bxor(bxor(F.fKA(v_n, 25), F.fKA(v_n, 14)), (rshift(v_n, 3) % 4294967296)))) +I32[arshift((v_O + v_e), 2)] = tobit(v_c) +v_o = bor(28, v_w) +v_n = tobit((tobit((v_n + v_a)) + bxor(bxor(F.fKA(v_C, 15), F.fKA(v_C, 13)), (rshift(v_C, 10) % 4294967296)))) +local t124 = v_n +v_t = I32[arshift((v_t - 32), 2)] +v_n = tobit((t124 + bxor(bxor(F.fKA(v_t, 25), F.fKA(v_t, 14)), (rshift(v_t, 3) % 4294967296)))) +I32[arshift((v_o + v_e), 2)] = tobit(v_n) +v_a = tobit((v_a + tobit((tobit((I32[arshift((v_w + 11248), 2)] + tobit((bxor(bxor(F.fKA(v_y, 26), F.fKA(v_y, 21)), F.fKA(v_y, 7)) + v_s)))) + bxor(band(bxor(v_h, v_k), v_y), v_h))))) +v_w = tobit((tobit((v_a + bxor(bxor(F.fKA(v_d, 30), F.fKA(v_d, 19)), F.fKA(v_d, 10)))) + bor(band(bor(v_d, v_p), v_l), band(v_d, v_p)))) +v_s = tobit((bxor(bxor(F.fKA(v_w, 30), F.fKA(v_w, 19)), F.fKA(v_w, 10)) + bor(band(bor(v_d, v_w), v_p), band(v_d, v_w)))) +v_a = tobit((v_a + v_u)) +v_r = tobit((tobit((tobit((I32[arshift((v_r + 11248), 2)] + tobit((bxor(band(v_a, bxor(v_y, v_k)), v_k) + v_h)))) + bxor(bxor(F.fKA(v_a, 26), F.fKA(v_a, 21)), F.fKA(v_a, 7)))) + v_E)) +v_E = tobit((v_s + v_r)) +v_u = tobit((bxor(bxor(F.fKA(v_E, 30), F.fKA(v_E, 19)), F.fKA(v_E, 10)) + bor(band(bor(v_w, v_E), v_d), band(v_w, v_E)))) +local t126 = v_I +v_s = tobit((I32[arshift((v_b + 11248), 2)] + v_k)) +local t125 = v_s +v_b = tobit((v_r + v_l)) +v_r = tobit((t126 + tobit((tobit((t125 + bxor(band(v_b, bxor(v_a, v_y)), v_y))) + bxor(bxor(F.fKA(v_b, 26), F.fKA(v_b, 21)), F.fKA(v_b, 7)))))) +v_I = tobit((v_u + v_r)) +v_u = tobit((bxor(bxor(F.fKA(v_I, 30), F.fKA(v_I, 19)), F.fKA(v_I, 10)) + bor(band(v_w, bor(v_E, v_I)), band(v_E, v_I)))) +local t129 = v_m +v_l = tobit((I32[arshift((v_v + 11248), 2)] + v_y)) +local t128 = v_l +local t127 = v_a +v_v = tobit((v_r + v_p)) +v_r = tobit((tobit((t129 + tobit((t128 + bxor(t127, band(v_v, bxor(v_a, v_b))))))) + bxor(bxor(F.fKA(v_v, 26), F.fKA(v_v, 21)), F.fKA(v_v, 7)))) +v_m = tobit((v_u + v_r)) +v_u = tobit((bxor(bxor(F.fKA(v_m, 30), F.fKA(v_m, 19)), F.fKA(v_m, 10)) + bor(band(v_E, bor(v_I, v_m)), band(v_I, v_m)))) +v_a = tobit((v_M + tobit((v_a + I32[arshift((v_g + 11248), 2)])))) +local t131 = v_a +local t130 = v_b +v_g = tobit((v_r + v_d)) +v_r = tobit((tobit((t131 + bxor(t130, band(v_g, bxor(v_b, v_v))))) + bxor(bxor(F.fKA(v_g, 26), F.fKA(v_g, 21)), F.fKA(v_g, 7)))) +v_u = tobit((v_u + v_r)) +v_a = tobit((bxor(bxor(F.fKA(v_u, 30), F.fKA(v_u, 19)), F.fKA(v_u, 10)) + bor(band(v_I, bor(v_u, v_m)), band(v_u, v_m)))) +v_s = tobit((v_r + v_w)) +v_r = tobit((tobit((tobit((v_C + tobit((v_b + I32[arshift((v_Q + 11248), 2)])))) + bxor(v_v, band(v_s, bxor(v_v, v_g))))) + bxor(bxor(F.fKA(v_s, 26), F.fKA(v_s, 21)), F.fKA(v_s, 7)))) +v_l = tobit((v_a + v_r)) +v_a = tobit((bxor(bxor(F.fKA(v_l, 30), F.fKA(v_l, 19)), F.fKA(v_l, 10)) + bor(band(v_m, bor(v_u, v_l)), band(v_u, v_l)))) +v_h = tobit((v_r + v_E)) +v_r = tobit((tobit((tobit((v_c + tobit((v_v + I32[arshift((v_O + 11248), 2)])))) + bxor(v_g, band(v_h, bxor(v_g, v_s))))) + bxor(bxor(F.fKA(v_h, 26), F.fKA(v_h, 21)), F.fKA(v_h, 7)))) +v_k = tobit((v_r + v_I)) +v_p = tobit((v_a + v_r)) +v_a = tobit((bxor(bxor(F.fKA(v_p, 30), F.fKA(v_p, 19)), F.fKA(v_p, 10)) + bor(band(bor(v_l, v_p), v_u), band(v_l, v_p)))) +local t132 = v_a +v_r = tobit((tobit((tobit((tobit((v_g + I32[arshift((v_o + 11248), 2)])) + v_n)) + bxor(band(v_k, bxor(v_s, v_h)), v_s))) + bxor(bxor(F.fKA(v_k, 26), F.fKA(v_k, 21)), F.fKA(v_k, 7)))) +v_d = tobit((t132 + v_r)) +v_y = tobit((v_r + v_m)) +v_r = (((tobit(v_S) % 4294967296) < 56) and 1 or 0) +v_S = tobit((v_S + 8)) +if not (v_r ~= 0) then goto B135 end +end +do +end +::C135:: +end +end +::B135:: +end +I32[arshift((v_A + 8), 2)] = tobit((I32[arshift((v_A + 8), 2)] + v_d)) +I32[arshift((v_A + 12), 2)] = tobit((I32[arshift((v_A + 12), 2)] + v_p)) +I32[arshift((v_A + 16), 2)] = tobit((I32[arshift((v_A + 16), 2)] + v_l)) +I32[arshift((v_A + 20), 2)] = tobit((I32[arshift((v_A + 20), 2)] + v_u)) +I32[arshift((v_A + 24), 2)] = tobit((I32[arshift((v_A + 24), 2)] + v_y)) +I32[arshift((v_A + 28), 2)] = tobit((I32[arshift((v_A + 28), 2)] + v_k)) +I32[arshift((v_A + 32), 2)] = tobit((I32[arshift((v_A + 32), 2)] + v_h)) +I32[arshift((v_A + 36), 2)] = tobit((I32[arshift((v_A + 36), 2)] + v_s)) +B = tobit((v_e + 256)) +end + +F.fK = function(v_A, v_r) +local v_e, v_n, v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_B, v_I, v_m, v_Q, v_O, v_S = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +do +v_t = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +v_o = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_a = bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24)) +v_E = I32[arshift((v_A + 8), 2)] +local t133 = v_E +v_u = bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24)) +local t135 = tobit((t133 + v_u)) +v_e = I32[arshift((v_A + 12), 2)] +local t134 = v_e +v_n = I32[arshift((v_A + 16), 2)] +local t136 = tobit((t135 + band(t134, v_n))) +v_c = I32[arshift((v_A + 20), 2)] +v_I = F.fKA(tobit((t136 + band(v_c, bxor((-1), v_e)))), 3) +v_s = bor(bor(bor(U8[tobit((v_r + 16))], lshift(U8[tobit((v_r + 17))], 8)), lshift(U8[tobit((v_r + 18))], 16)), lshift(U8[tobit((v_r + 19))], 24)) +v_Q = F.fKA(tobit((tobit((tobit((v_o + v_c)) + band(bxor((-1), v_I), v_n))) + band(v_I, v_e))), 7) +v_m = F.fKA(tobit((tobit((tobit((v_a + v_n)) + band(bxor((-1), v_Q), v_e))) + band(v_I, v_Q))), 11) +v_O = F.fKA(tobit((tobit((tobit((v_e + v_t)) + band(v_I, bxor((-1), v_m)))) + band(v_m, v_Q))), 19) +v_I = F.fKA(tobit((tobit((tobit((v_I + v_s)) + band(bxor((-1), v_O), v_Q))) + band(v_m, v_O))), 3) +v_l = bor(bor(bor(U8[tobit((v_r + 32))], lshift(U8[tobit((v_r + 33))], 8)), lshift(U8[tobit((v_r + 34))], 16)), lshift(U8[tobit((v_r + 35))], 24)) +local t137 = v_Q +v_b = bor(bor(bor(U8[tobit((v_r + 20))], lshift(U8[tobit((v_r + 21))], 8)), lshift(U8[tobit((v_r + 22))], 16)), lshift(U8[tobit((v_r + 23))], 24)) +v_Q = F.fKA(tobit((tobit((tobit((t137 + v_b)) + band(v_m, bxor((-1), v_I)))) + band(v_I, v_O))), 7) +v_v = bor(bor(bor(U8[tobit((v_r + 28))], lshift(U8[tobit((v_r + 29))], 8)), lshift(U8[tobit((v_r + 30))], 16)), lshift(U8[tobit((v_r + 31))], 24)) +local t138 = v_m +v_g = bor(bor(bor(U8[tobit((v_r + 24))], lshift(U8[tobit((v_r + 25))], 8)), lshift(U8[tobit((v_r + 26))], 16)), lshift(U8[tobit((v_r + 27))], 24)) +v_m = F.fKA(tobit((tobit((tobit((t138 + v_g)) + band(v_O, bxor((-1), v_Q)))) + band(v_I, v_Q))), 11) +v_O = F.fKA(tobit((tobit((tobit((v_O + v_v)) + band(v_I, bxor((-1), v_m)))) + band(v_m, v_Q))), 19) +v_I = F.fKA(tobit((tobit((tobit((v_I + v_l)) + band(v_Q, bxor((-1), v_O)))) + band(v_m, v_O))), 3) +v_p = bor(bor(bor(U8[tobit((v_r + 48))], lshift(U8[tobit((v_r + 49))], 8)), lshift(U8[tobit((v_r + 50))], 16)), lshift(U8[tobit((v_r + 51))], 24)) +local t139 = v_Q +v_d = bor(bor(bor(U8[tobit((v_r + 36))], lshift(U8[tobit((v_r + 37))], 8)), lshift(U8[tobit((v_r + 38))], 16)), lshift(U8[tobit((v_r + 39))], 24)) +v_Q = F.fKA(tobit((tobit((tobit((t139 + v_d)) + band(v_m, bxor((-1), v_I)))) + band(v_I, v_O))), 7) +v_h = bor(bor(bor(U8[tobit((v_r + 44))], lshift(U8[tobit((v_r + 45))], 8)), lshift(U8[tobit((v_r + 46))], 16)), lshift(U8[tobit((v_r + 47))], 24)) +local t140 = v_m +v_k = bor(bor(bor(U8[tobit((v_r + 40))], lshift(U8[tobit((v_r + 41))], 8)), lshift(U8[tobit((v_r + 42))], 16)), lshift(U8[tobit((v_r + 43))], 24)) +v_m = F.fKA(tobit((tobit((tobit((t140 + v_k)) + band(v_O, bxor((-1), v_Q)))) + band(v_I, v_Q))), 11) +v_O = F.fKA(tobit((tobit((tobit((v_O + v_h)) + band(v_I, bxor((-1), v_m)))) + band(v_m, v_Q))), 19) +v_I = F.fKA(tobit((tobit((tobit((v_I + v_p)) + band(v_Q, bxor((-1), v_O)))) + band(v_m, v_O))), 3) +v_y = bor(bor(bor(U8[tobit((v_r + 60))], lshift(U8[tobit((v_r + 61))], 8)), lshift(U8[tobit((v_r + 62))], 16)), lshift(U8[tobit((v_r + 63))], 24)) +v_w = bor(bor(bor(U8[tobit((v_r + 56))], lshift(U8[tobit((v_r + 57))], 8)), lshift(U8[tobit((v_r + 58))], 16)), lshift(U8[tobit((v_r + 59))], 24)) +local t141 = v_Q +v_C = bor(bor(bor(U8[tobit((v_r + 52))], lshift(U8[tobit((v_r + 53))], 8)), lshift(U8[tobit((v_r + 54))], 16)), lshift(U8[tobit((v_r + 55))], 24)) +v_r = F.fKA(tobit((tobit((tobit((t141 + v_C)) + band(v_m, bxor((-1), v_I)))) + band(v_I, v_O))), 7) +v_Q = F.fKA(tobit((tobit((tobit((v_m + v_w)) + band(v_O, bxor((-1), v_r)))) + band(v_r, v_I))), 11) +v_S = band(v_r, v_Q) +v_m = F.fKA(tobit((v_S + tobit((tobit((v_O + v_y)) + band(v_I, bxor((-1), v_Q)))))), 19) +local t142 = tobit((v_I + v_u)) +v_O = band(v_Q, v_m) +v_I = F.fKA(tobit((1518500249 + tobit((t142 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 3) +local t143 = tobit((v_r + v_s)) +v_S = band(v_I, v_m) +v_r = F.fKA(tobit((1518500249 + tobit((t143 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 5) +local t144 = tobit((v_Q + v_l)) +v_O = band(v_r, v_I) +v_Q = F.fKA(tobit((1518500249 + tobit((t144 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 9) +local t145 = tobit((v_m + v_p)) +v_S = band(v_Q, v_r) +v_m = F.fKA(tobit((1518500249 + tobit((t145 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 13) +local t146 = tobit((v_I + v_o)) +v_O = band(v_m, v_Q) +v_I = F.fKA(tobit((1518500249 + tobit((t146 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 3) +local t147 = tobit((v_r + v_b)) +v_S = band(v_I, v_m) +v_r = F.fKA(tobit((1518500249 + tobit((t147 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 5) +local t148 = tobit((v_Q + v_d)) +v_O = band(v_r, v_I) +v_Q = F.fKA(tobit((1518500249 + tobit((t148 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 9) +local t149 = tobit((v_m + v_C)) +v_S = band(v_Q, v_r) +v_m = F.fKA(tobit((1518500249 + tobit((t149 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 13) +local t150 = tobit((v_I + v_a)) +v_O = band(v_m, v_Q) +v_I = F.fKA(tobit((1518500249 + tobit((t150 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 3) +local t151 = tobit((v_r + v_g)) +v_S = band(v_I, v_m) +v_r = F.fKA(tobit((1518500249 + tobit((t151 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 5) +local t152 = tobit((v_Q + v_k)) +v_O = band(v_r, v_I) +v_Q = F.fKA(tobit((1518500249 + tobit((t152 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 9) +local t153 = tobit((v_m + v_w)) +v_S = band(v_Q, v_r) +v_m = F.fKA(tobit((1518500249 + tobit((t153 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 13) +local t154 = tobit((v_I + v_t)) +v_O = band(v_m, v_Q) +v_I = F.fKA(tobit((1518500249 + tobit((t154 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 3) +local t155 = tobit((v_r + v_v)) +v_S = band(v_I, v_m) +v_r = F.fKA(tobit((1518500249 + tobit((t155 + bor(bor(v_S, v_O), band(v_I, v_Q)))))), 5) +v_B = tobit((v_m + v_y)) +local t156 = tobit((v_Q + v_h)) +v_O = band(v_r, v_I) +v_m = F.fKA(tobit((1518500249 + tobit((t156 + bor(bor(v_O, v_S), band(v_r, v_m)))))), 9) +v_Q = F.fKA(tobit((1518500249 + tobit((v_B + bor(v_O, band(v_m, bor(v_r, v_I))))))), 13) +v_O = tobit((v_m + v_s)) +local t157 = tobit((v_I + v_u)) +v_m = bxor(v_m, v_Q) +v_I = F.fKA(tobit((1859775393 + tobit((t157 + bxor(v_m, v_r))))), 3) +v_m = F.fKA(tobit((1859775393 + tobit((tobit((v_r + v_l)) + bxor(v_I, v_m))))), 9) +v_r = F.fKA(tobit((1859775393 + tobit((v_O + bxor(bxor(v_I, v_Q), v_m))))), 11) +v_Q = F.fKA(tobit((1859775393 + tobit((tobit((v_Q + v_p)) + bxor(bxor(v_r, v_I), v_m))))), 15) +v_I = F.fKA(tobit((1859775393 + tobit((tobit((v_I + v_a)) + bxor(bxor(v_Q, v_r), v_m))))), 3) +v_m = F.fKA(tobit((1859775393 + tobit((tobit((v_m + v_k)) + bxor(bxor(v_I, v_r), v_Q))))), 9) +v_r = F.fKA(tobit((1859775393 + tobit((tobit((v_r + v_g)) + bxor(bxor(v_m, v_I), v_Q))))), 11) +v_Q = F.fKA(tobit((1859775393 + tobit((tobit((v_Q + v_w)) + bxor(bxor(v_r, v_I), v_m))))), 15) +v_I = F.fKA(tobit((1859775393 + tobit((tobit((v_I + v_o)) + bxor(bxor(v_Q, v_r), v_m))))), 3) +v_m = F.fKA(tobit((1859775393 + tobit((tobit((v_m + v_d)) + bxor(bxor(v_I, v_r), v_Q))))), 9) +v_r = F.fKA(tobit((1859775393 + tobit((tobit((v_r + v_b)) + bxor(bxor(v_m, v_I), v_Q))))), 11) +v_O = tobit((v_I + v_t)) +v_I = F.fKA(tobit((1859775393 + tobit((tobit((v_Q + v_C)) + bxor(bxor(v_r, v_I), v_m))))), 15) +v_Q = F.fKA(tobit((1859775393 + tobit((v_O + bxor(bxor(v_I, v_r), v_m))))), 3) +I32[arshift((v_A + 8), 2)] = tobit((v_Q + v_E)) +v_m = F.fKA(tobit((1859775393 + tobit((tobit((v_m + v_h)) + bxor(bxor(v_Q, v_r), v_I))))), 9) +I32[arshift((v_A + 20), 2)] = tobit((v_m + v_c)) +v_r = F.fKA(tobit((1859775393 + tobit((tobit((v_r + v_v)) + bxor(bxor(v_m, v_I), v_Q))))), 11) +I32[arshift((v_A + 16), 2)] = tobit((v_r + v_n)) +I32[arshift((v_A + 12), 2)] = tobit((F.fKA(tobit((1859775393 + tobit((tobit((v_I + v_y)) + bxor(bxor(v_r, v_m), v_Q))))), 15) + v_e)) +end +end + +F.fR = function(v_A, v_r, v_e, v_t, v_o, v_a) +local v_u, v_c, v_s = 0, 0, 0 +v_c = 0 +v_s = 0 +v_u = tobit((B - 16)) +B = v_u +v_s = (-34) +do +if (not (band(15, v_e) ~= 0)) then +do +if (v_r ~= 0) then +v_s = 0 +if (not (v_e ~= 0)) then +goto L136 +end +if (1 ~= bor(0, v_r)) then +goto L137 +end +do +while true do +I8[bor(0, v_a)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_o)])) +I8[tobit((v_a + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_o + 1))])) +I8[tobit((v_a + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_o + 2))])) +I8[tobit((v_a + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_o + 3))])) +I8[tobit((v_a + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_o + 4))])) +I8[tobit((v_a + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_o + 5))])) +I8[tobit((v_a + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_o + 6))])) +I8[tobit((v_a + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_o + 7))])) +I8[tobit((v_a + 8))] = tobit(bxor(U8[tobit((v_t + 8))], U8[tobit((v_o + 8))])) +I8[tobit((v_a + 9))] = tobit(bxor(U8[tobit((v_t + 9))], U8[tobit((v_o + 9))])) +I8[tobit((v_a + 10))] = tobit(bxor(U8[tobit((v_t + 10))], U8[tobit((v_o + 10))])) +I8[tobit((v_a + 11))] = tobit(bxor(U8[tobit((v_t + 11))], U8[tobit((v_o + 11))])) +I8[tobit((v_a + 12))] = tobit(bxor(U8[tobit((v_t + 12))], U8[tobit((v_o + 12))])) +I8[tobit((v_a + 13))] = tobit(bxor(U8[tobit((v_t + 13))], U8[tobit((v_o + 13))])) +I8[tobit((v_a + 14))] = tobit(bxor(U8[tobit((v_t + 14))], U8[tobit((v_o + 14))])) +I8[tobit((v_a + 15))] = tobit(bxor(U8[tobit((v_t + 15))], U8[tobit((v_o + 15))])) +F.fT(v_A, v_a, v_a) +v_r = bor(bor(bor(U8[tobit((v_a + 12))], lshift(U8[tobit((v_a + 13))], 8)), lshift(U8[tobit((v_a + 14))], 16)), lshift(U8[tobit((v_a + 15))], 24)) +v_c = bor(bor(bor(U8[tobit((v_a + 8))], lshift(U8[tobit((v_a + 9))], 8)), lshift(U8[tobit((v_a + 10))], 16)), lshift(U8[tobit((v_a + 11))], 24)) +I8[tobit((v_t + 8))] = tobit(v_c) +I8[tobit((v_t + 9))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 11))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 12))] = tobit(v_r) +I8[tobit((v_t + 13))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 15))] = tobit((rshift(v_r, 24) % 4294967296)) +v_r = bor(bor(bor(U8[tobit((v_a + 4))], lshift(U8[tobit((v_a + 5))], 8)), lshift(U8[tobit((v_a + 6))], 16)), lshift(U8[tobit((v_a + 7))], 24)) +v_c = bor(bor(bor(U8[bor(0, v_a)], lshift(U8[tobit((v_a + 1))], 8)), lshift(U8[tobit((v_a + 2))], 16)), lshift(U8[tobit((v_a + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_c) +I8[tobit((v_t + 1))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_r) +I8[tobit((v_t + 5))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_r, 24) % 4294967296)) +v_a = tobit((v_a + 16)) +v_o = tobit((v_o + 16)) +v_e = tobit((v_e - 16)) +if not (v_e ~= 0) then goto B138 end +do +end +::C138:: +end +end +::B138:: +goto L136 +end +v_s = 0 +if (not (v_e ~= 0)) then +goto L136 +end +do +while true do +v_r = bor(bor(bor(U8[tobit((v_o + 4))], lshift(U8[tobit((v_o + 5))], 8)), lshift(U8[tobit((v_o + 6))], 16)), lshift(U8[tobit((v_o + 7))], 24)) +I32[arshift(v_u, 2)] = tobit(bor(bor(bor(U8[bor(0, v_o)], lshift(U8[tobit((v_o + 1))], 8)), lshift(U8[tobit((v_o + 2))], 16)), lshift(U8[tobit((v_o + 3))], 24))) +I32[arshift((v_u + 4), 2)] = tobit(v_r) +v_r = bor(bor(bor(U8[tobit((v_o + 12))], lshift(U8[tobit((v_o + 13))], 8)), lshift(U8[tobit((v_o + 14))], 16)), lshift(U8[tobit((v_o + 15))], 24)) +I32[arshift((v_u + 8), 2)] = tobit(bor(bor(bor(U8[tobit((v_o + 8))], lshift(U8[tobit((v_o + 9))], 8)), lshift(U8[tobit((v_o + 10))], 16)), lshift(U8[tobit((v_o + 11))], 24))) +I32[arshift((v_u + 12), 2)] = tobit(v_r) +F.fj(v_A, v_o, v_a) +I8[bor(0, v_a)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_a)])) +I8[tobit((v_a + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_a + 1))])) +I8[tobit((v_a + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_a + 2))])) +I8[tobit((v_a + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_a + 3))])) +I8[tobit((v_a + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_a + 4))])) +I8[tobit((v_a + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_a + 5))])) +I8[tobit((v_a + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_a + 6))])) +I8[tobit((v_a + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_a + 7))])) +I8[tobit((v_a + 8))] = tobit(bxor(U8[tobit((v_t + 8))], U8[tobit((v_a + 8))])) +I8[tobit((v_a + 9))] = tobit(bxor(U8[tobit((v_t + 9))], U8[tobit((v_a + 9))])) +I8[tobit((v_a + 10))] = tobit(bxor(U8[tobit((v_t + 10))], U8[tobit((v_a + 10))])) +I8[tobit((v_a + 11))] = tobit(bxor(U8[tobit((v_t + 11))], U8[tobit((v_a + 11))])) +I8[tobit((v_a + 12))] = tobit(bxor(U8[tobit((v_t + 12))], U8[tobit((v_a + 12))])) +I8[tobit((v_a + 13))] = tobit(bxor(U8[tobit((v_t + 13))], U8[tobit((v_a + 13))])) +I8[tobit((v_a + 14))] = tobit(bxor(U8[tobit((v_t + 14))], U8[tobit((v_a + 14))])) +I8[tobit((v_a + 15))] = tobit(bxor(U8[tobit((v_t + 15))], U8[tobit((v_a + 15))])) +v_r = I32[arshift((v_u + 12), 2)] +v_c = I32[arshift((v_u + 8), 2)] +I8[tobit((v_t + 8))] = tobit(v_c) +I8[tobit((v_t + 9))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 11))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 12))] = tobit(v_r) +I8[tobit((v_t + 13))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 15))] = tobit((rshift(v_r, 24) % 4294967296)) +v_r = I32[arshift((v_u + 4), 2)] +v_c = I32[arshift(v_u, 2)] +I8[bor(0, v_t)] = tobit(v_c) +I8[tobit((v_t + 1))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_r) +I8[tobit((v_t + 5))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_r, 24) % 4294967296)) +v_a = tobit((v_a + 16)) +v_o = tobit((v_o + 16)) +v_e = tobit((v_e - 16)) +if not (v_e ~= 0) then goto B139 end +do +end +::C139:: +end +end +::B139:: +goto L136 +end +::L137:: +do +while true do +I8[bor(0, v_a)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_o)])) +I8[tobit((v_a + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_o + 1))])) +I8[tobit((v_a + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_o + 2))])) +I8[tobit((v_a + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_o + 3))])) +I8[tobit((v_a + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_o + 4))])) +I8[tobit((v_a + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_o + 5))])) +I8[tobit((v_a + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_o + 6))])) +I8[tobit((v_a + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_o + 7))])) +I8[tobit((v_a + 8))] = tobit(bxor(U8[tobit((v_t + 8))], U8[tobit((v_o + 8))])) +I8[tobit((v_a + 9))] = tobit(bxor(U8[tobit((v_t + 9))], U8[tobit((v_o + 9))])) +I8[tobit((v_a + 10))] = tobit(bxor(U8[tobit((v_t + 10))], U8[tobit((v_o + 10))])) +I8[tobit((v_a + 11))] = tobit(bxor(U8[tobit((v_t + 11))], U8[tobit((v_o + 11))])) +I8[tobit((v_a + 12))] = tobit(bxor(U8[tobit((v_t + 12))], U8[tobit((v_o + 12))])) +I8[tobit((v_a + 13))] = tobit(bxor(U8[tobit((v_t + 13))], U8[tobit((v_o + 13))])) +I8[tobit((v_a + 14))] = tobit(bxor(U8[tobit((v_t + 14))], U8[tobit((v_o + 14))])) +I8[tobit((v_a + 15))] = tobit(bxor(U8[tobit((v_t + 15))], U8[tobit((v_o + 15))])) +F.fj(v_A, v_a, v_a) +v_r = bor(bor(bor(U8[tobit((v_a + 12))], lshift(U8[tobit((v_a + 13))], 8)), lshift(U8[tobit((v_a + 14))], 16)), lshift(U8[tobit((v_a + 15))], 24)) +v_c = bor(bor(bor(U8[tobit((v_a + 8))], lshift(U8[tobit((v_a + 9))], 8)), lshift(U8[tobit((v_a + 10))], 16)), lshift(U8[tobit((v_a + 11))], 24)) +I8[tobit((v_t + 8))] = tobit(v_c) +I8[tobit((v_t + 9))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 11))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 12))] = tobit(v_r) +I8[tobit((v_t + 13))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 15))] = tobit((rshift(v_r, 24) % 4294967296)) +v_r = bor(bor(bor(U8[tobit((v_a + 4))], lshift(U8[tobit((v_a + 5))], 8)), lshift(U8[tobit((v_a + 6))], 16)), lshift(U8[tobit((v_a + 7))], 24)) +v_c = bor(bor(bor(U8[bor(0, v_a)], lshift(U8[tobit((v_a + 1))], 8)), lshift(U8[tobit((v_a + 2))], 16)), lshift(U8[tobit((v_a + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_c) +I8[tobit((v_t + 1))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_r) +I8[tobit((v_t + 5))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_r, 24) % 4294967296)) +v_a = tobit((v_a + 16)) +v_o = tobit((v_o + 16)) +v_e = tobit((v_e - 16)) +if not (v_e ~= 0) then goto B140 end +do +end +::C140:: +end +end +::B140:: +end +end +::L136:: +B = tobit((v_u + 16)) +do return v_s end +end + +F.fD = function(v_A) +local v_r, v_e, v_t, v_o, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +v_r = tobit((B - 112)) +B = v_r +v_e = F.fm(32) +F.fPA(v_r, 0, 108) +v_t = v_r +I32[arshift(v_r, 2)] = tobit(0) +I32[arshift((v_r + 4), 2)] = tobit(0) +I32[arshift((v_r + 104), 2)] = tobit(0) +I32[arshift((v_r + 8), 2)] = tobit(1779033703) +I32[arshift((v_r + 36), 2)] = tobit(1541459225) +I32[arshift((v_r + 32), 2)] = tobit(528734635) +I32[arshift((v_r + 28), 2)] = tobit((-1694144372)) +I32[arshift((v_r + 24), 2)] = tobit(1359893119) +I32[arshift((v_r + 20), 2)] = tobit((-1521486534)) +I32[arshift((v_r + 16), 2)] = tobit(1013904242) +I32[arshift((v_r + 12), 2)] = tobit((-1150833019)) +v_a = F.fpA(v_A) +if (v_a ~= 0) then +do +do +v_o = I32[arshift(v_t, 2)] +v_u = tobit((v_o + v_a)) +I32[arshift(v_t, 2)] = tobit(v_u) +if ((tobit(v_o) % 4294967296) > (tobit(v_u) % 4294967296)) then +I32[arshift((v_t + 4), 2)] = tobit((I32[arshift((v_t + 4), 2)] + 1)) +end +v_u = 0 +v_o = band(v_o, 63) +if (v_o ~= 0) then +v_c = tobit((64 - v_o)) +if ((tobit(v_c) % 4294967296) > (tobit(v_a) % 4294967296)) then +v_u = v_o +else +local t158 = v_o +v_s = tobit((v_t + 40)) +F.fTA(tobit((t158 + v_s)), v_A, v_c) +F.fP(v_t, v_s) +v_a = tobit((v_a - v_c)) +v_A = tobit((v_A + v_c)) +end +end +if ((tobit(v_a) % 4294967296) >= 64) then +do +while true do +F.fP(v_t, v_A) +v_A = tobit((v_A - (-64))) +v_a = tobit((v_a + (-64))) +if not ((tobit(v_a) % 4294967296) > 63) then goto B141 end +do +end +::C141:: +end +end +::B141:: +end +end +if (v_a ~= 0) then +F.fTA(tobit((40 + tobit((v_t + v_u)))), v_A, v_a) +end +end +end +end +do +v_t = tobit((v_r + 40)) +v_o = I32[arshift(v_r, 2)] +local t159 = v_t +v_u = band(63, v_o) +I8[tobit((t159 + v_u))] = tobit(128) +v_A = tobit((v_u + 1)) +if ((tobit(v_u) % 4294967296) <= 55) then +F.fPA(tobit((40 + tobit((v_A + v_r)))), 0, tobit((55 - v_u))) +else +F.fPA(tobit((40 + tobit((v_A + v_r)))), 0, bxor(63, v_u)) +F.fP(v_r, v_t) +I32[arshift((v_t + 48), 2)] = tobit(0) +I32[arshift((v_t + 52), 2)] = tobit(0) +I32[arshift((v_t + 40), 2)] = tobit(0) +I32[arshift((v_t + 44), 2)] = tobit(0) +I32[arshift((v_t + 32), 2)] = tobit(0) +I32[arshift((v_t + 36), 2)] = tobit(0) +I32[arshift((v_t + 24), 2)] = tobit(0) +I32[arshift((v_t + 28), 2)] = tobit(0) +I32[arshift((v_t + 16), 2)] = tobit(0) +I32[arshift((v_t + 20), 2)] = tobit(0) +I32[arshift((v_t + 8), 2)] = tobit(0) +I32[arshift((v_t + 12), 2)] = tobit(0) +I32[arshift(v_t, 2)] = tobit(0) +I32[arshift((v_t + 4), 2)] = tobit(0) +v_o = I32[arshift(v_r, 2)] +end +I8[tobit((v_r + 103))] = tobit(lshift(v_o, 3)) +I8[tobit((v_r + 102))] = tobit((rshift(v_o, 5) % 4294967296)) +I8[tobit((v_r + 101))] = tobit((rshift(v_o, 13) % 4294967296)) +I8[tobit((v_r + 100))] = tobit((rshift(v_o, 21) % 4294967296)) +v_A = I32[arshift((v_r + 4), 2)] +I8[tobit((v_r + 98))] = tobit((rshift(v_A, 5) % 4294967296)) +I8[tobit((v_r + 97))] = tobit((rshift(v_A, 13) % 4294967296)) +I8[tobit((v_r + 96))] = tobit((rshift(v_A, 21) % 4294967296)) +I8[tobit((v_r + 99))] = tobit(bor(lshift(v_A, 3), (rshift(v_o, 29) % 4294967296))) +F.fP(v_r, v_t) +I8[bor(0, v_e)] = tobit(U8[tobit((v_r + 11))]) +I8[tobit((v_e + 1))] = tobit(U16[arshift((v_r + 10), 1)]) +I8[tobit((v_e + 2))] = tobit((rshift(I32[arshift((v_r + 8), 2)], 8) % 4294967296)) +I8[tobit((v_e + 3))] = tobit(I32[arshift((v_r + 8), 2)]) +I8[tobit((v_e + 4))] = tobit(U8[tobit((v_r + 15))]) +I8[tobit((v_e + 5))] = tobit(U16[arshift((v_r + 14), 1)]) +I8[tobit((v_e + 6))] = tobit((rshift(I32[arshift((v_r + 12), 2)], 8) % 4294967296)) +I8[tobit((v_e + 7))] = tobit(I32[arshift((v_r + 12), 2)]) +I8[tobit((v_e + 8))] = tobit(U8[tobit((v_r + 19))]) +I8[tobit((v_e + 9))] = tobit(U16[arshift((v_r + 18), 1)]) +I8[tobit((v_e + 10))] = tobit((rshift(I32[arshift((v_r + 16), 2)], 8) % 4294967296)) +I8[tobit((v_e + 11))] = tobit(I32[arshift((v_r + 16), 2)]) +I8[tobit((v_e + 12))] = tobit(U8[tobit((v_r + 23))]) +I8[tobit((v_e + 13))] = tobit(U16[arshift((v_r + 22), 1)]) +I8[tobit((v_e + 14))] = tobit((rshift(I32[arshift((v_r + 20), 2)], 8) % 4294967296)) +I8[tobit((v_e + 15))] = tobit(I32[arshift((v_r + 20), 2)]) +I8[tobit((v_e + 16))] = tobit(U8[tobit((v_r + 27))]) +I8[tobit((v_e + 17))] = tobit(U16[arshift((v_r + 26), 1)]) +I8[tobit((v_e + 18))] = tobit((rshift(I32[arshift((v_r + 24), 2)], 8) % 4294967296)) +I8[tobit((v_e + 19))] = tobit(I32[arshift((v_r + 24), 2)]) +I8[tobit((v_e + 20))] = tobit(U8[tobit((v_r + 31))]) +I8[tobit((v_e + 21))] = tobit(U16[arshift((v_r + 30), 1)]) +I8[tobit((v_e + 22))] = tobit((rshift(I32[arshift((v_r + 28), 2)], 8) % 4294967296)) +I8[tobit((v_e + 23))] = tobit(I32[arshift((v_r + 28), 2)]) +I8[tobit((v_e + 24))] = tobit(U8[tobit((v_r + 35))]) +I8[tobit((v_e + 25))] = tobit(U16[arshift((v_r + 34), 1)]) +I8[tobit((v_e + 26))] = tobit((rshift(I32[arshift((v_r + 32), 2)], 8) % 4294967296)) +I8[tobit((v_e + 27))] = tobit(I32[arshift((v_r + 32), 2)]) +if not (I32[arshift((v_r + 104), 2)] ~= 0) then +I8[tobit((v_e + 28))] = tobit(U8[tobit((v_r + 39))]) +I8[tobit((v_e + 29))] = tobit(U16[arshift((v_r + 38), 1)]) +I8[tobit((v_e + 30))] = tobit((rshift(I32[arshift((v_r + 36), 2)], 8) % 4294967296)) +I8[tobit((v_e + 31))] = tobit(I32[arshift((v_r + 36), 2)]) +end +if (v_r ~= 0) then +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +I8[tobit((v_r + 8))] = tobit(0) +I8[tobit((v_r + 9))] = tobit(0) +I8[tobit((v_r + 10))] = tobit(0) +I8[tobit((v_r + 11))] = tobit(0) +I8[tobit((v_r + 12))] = tobit(0) +I8[tobit((v_r + 13))] = tobit(0) +I8[tobit((v_r + 14))] = tobit(0) +I8[tobit((v_r + 15))] = tobit(0) +I8[tobit((v_r + 16))] = tobit(0) +I8[tobit((v_r + 17))] = tobit(0) +I8[tobit((v_r + 18))] = tobit(0) +I8[tobit((v_r + 19))] = tobit(0) +I8[tobit((v_r + 20))] = tobit(0) +I8[tobit((v_r + 21))] = tobit(0) +I8[tobit((v_r + 22))] = tobit(0) +I8[tobit((v_r + 23))] = tobit(0) +I8[tobit((v_r + 24))] = tobit(0) +I8[tobit((v_r + 25))] = tobit(0) +I8[tobit((v_r + 26))] = tobit(0) +I8[tobit((v_r + 27))] = tobit(0) +I8[tobit((v_r + 28))] = tobit(0) +I8[tobit((v_r + 29))] = tobit(0) +I8[tobit((v_r + 30))] = tobit(0) +I8[tobit((v_r + 31))] = tobit(0) +I8[tobit((v_r + 32))] = tobit(0) +I8[tobit((v_r + 33))] = tobit(0) +I8[tobit((v_r + 34))] = tobit(0) +I8[tobit((v_r + 35))] = tobit(0) +I8[tobit((v_r + 36))] = tobit(0) +I8[tobit((v_r + 37))] = tobit(0) +I8[tobit((v_r + 38))] = tobit(0) +I8[tobit((v_r + 39))] = tobit(0) +I8[tobit((v_r + 40))] = tobit(0) +I8[tobit((v_r + 41))] = tobit(0) +I8[tobit((v_r + 42))] = tobit(0) +I8[tobit((v_r + 43))] = tobit(0) +I8[tobit((v_r + 44))] = tobit(0) +I8[tobit((v_r + 45))] = tobit(0) +I8[tobit((v_r + 46))] = tobit(0) +I8[tobit((v_r + 47))] = tobit(0) +I8[tobit((v_r + 48))] = tobit(0) +I8[tobit((v_r + 49))] = tobit(0) +I8[tobit((v_r + 50))] = tobit(0) +I8[tobit((v_r + 51))] = tobit(0) +I8[tobit((v_r + 52))] = tobit(0) +I8[tobit((v_r + 53))] = tobit(0) +I8[tobit((v_r + 54))] = tobit(0) +I8[tobit((v_r + 55))] = tobit(0) +I8[tobit((v_r + 56))] = tobit(0) +I8[tobit((v_r + 57))] = tobit(0) +I8[tobit((v_r + 58))] = tobit(0) +I8[tobit((v_r + 59))] = tobit(0) +I8[tobit((v_r + 60))] = tobit(0) +I8[tobit((v_r + 61))] = tobit(0) +I8[tobit((v_r + 62))] = tobit(0) +I8[tobit((v_r + 63))] = tobit(0) +I8[tobit((v_r - (-64)))] = tobit(0) +I8[tobit((v_r + 65))] = tobit(0) +I8[tobit((v_r + 66))] = tobit(0) +I8[tobit((v_r + 67))] = tobit(0) +I8[tobit((v_r + 68))] = tobit(0) +I8[tobit((v_r + 69))] = tobit(0) +I8[tobit((v_r + 70))] = tobit(0) +I8[tobit((v_r + 71))] = tobit(0) +I8[tobit((v_r + 72))] = tobit(0) +I8[tobit((v_r + 73))] = tobit(0) +I8[tobit((v_r + 74))] = tobit(0) +I8[tobit((v_r + 75))] = tobit(0) +I8[tobit((v_r + 76))] = tobit(0) +I8[tobit((v_r + 77))] = tobit(0) +I8[tobit((v_r + 78))] = tobit(0) +I8[tobit((v_r + 79))] = tobit(0) +I8[tobit((v_r + 80))] = tobit(0) +I8[tobit((v_r + 81))] = tobit(0) +I8[tobit((v_r + 82))] = tobit(0) +I8[tobit((v_r + 83))] = tobit(0) +I8[tobit((v_r + 84))] = tobit(0) +I8[tobit((v_r + 85))] = tobit(0) +I8[tobit((v_r + 86))] = tobit(0) +I8[tobit((v_r + 87))] = tobit(0) +I8[tobit((v_r + 88))] = tobit(0) +I8[tobit((v_r + 89))] = tobit(0) +I8[tobit((v_r + 90))] = tobit(0) +I8[tobit((v_r + 91))] = tobit(0) +I8[tobit((v_r + 92))] = tobit(0) +I8[tobit((v_r + 93))] = tobit(0) +I8[tobit((v_r + 94))] = tobit(0) +I8[tobit((v_r + 95))] = tobit(0) +I8[tobit((v_r + 96))] = tobit(0) +I8[tobit((v_r + 97))] = tobit(0) +I8[tobit((v_r + 98))] = tobit(0) +I8[tobit((v_r + 99))] = tobit(0) +I8[tobit((v_r + 100))] = tobit(0) +I8[tobit((v_r + 101))] = tobit(0) +I8[tobit((v_r + 102))] = tobit(0) +I8[tobit((v_r + 103))] = tobit(0) +I8[tobit((v_r + 104))] = tobit(0) +I8[tobit((v_r + 105))] = tobit(0) +I8[tobit((v_r + 106))] = tobit(0) +I8[tobit((v_r + 107))] = tobit(0) +end +B = tobit((v_r + 112)) +do return v_e end +end +end + +F.fL = function(v_A) +local v_r, v_e, v_n, v_t, v_o, v_f, v_a = 0, 0, 0, 0, 0, 0, 0 +v_r = 0 +v_e = 0 +v_n = 0 +v_t = 0 +v_o = 0 +v_f = 0 +v_a = 0 +do +do +do +if (v_A ~= 0) then +do +do +v_n = tobit((v_A - 8)) +local t161 = v_n +local t160 = (-8) +v_r = I32[arshift((v_A - 4), 2)] +v_A = band(t160, v_r) +v_o = tobit((t161 + v_A)) +end +do +do +do +if (not (band(1, v_r) ~= 0)) then +do +if (not (band(3, v_r) ~= 0)) then +goto L142 +end +do +local t162 = v_n +v_r = I32[arshift(v_n, 2)] +v_n = tobit((t162 - v_r)) +if ((tobit(v_n) % 4294967296) < U32[5685]) then +goto L142 +end +end +do +v_A = tobit((v_A + v_r)) +if (I32[5686] == bor(0, v_n)) then +v_r = I32[arshift((v_o + 4), 2)] +if (3 == band(3, v_r)) then +I32[5683] = tobit(v_A) +I32[arshift((v_o + 4), 2)] = tobit(band((-2), v_r)) +I32[arshift((v_n + 4), 2)] = tobit(bor(1, v_A)) +I32[arshift((v_A + v_n), 2)] = tobit(v_A) +do return end +end +else +do +if ((tobit(v_r) % 4294967296) <= 255) then +v_t = I32[arshift((v_n + 8), 2)] +v_r = tobit((rshift(v_r, 3) % 4294967296)) +v_e = I32[arshift((v_n + 12), 2)] +if (bor(0, v_e) == bor(0, v_t)) then +I32[5681] = tobit(band(I32[5681], F.fKA((-2), v_r))) +goto L143 +end +I32[arshift((v_t + 12), 2)] = tobit(v_e) +I32[arshift((v_e + 8), 2)] = tobit(v_t) +goto L143 +end +do +v_a = I32[arshift((v_n + 24), 2)] +local t163 = bor(0, v_n) +v_r = I32[arshift((v_n + 12), 2)] +if (t163 == bor(0, v_r)) then +do +v_t = tobit((v_n + 20)) +v_e = I32[arshift(v_t, 2)] +local t164 = (v_e ~= 0) +if not t164 then +v_t = tobit((v_n + 16)) +v_e = I32[arshift(v_t, 2)] +t164 = (v_e ~= 0) +end +if t164 then +do +do +do +while true do +do +v_f = v_t +v_r = v_e +v_t = tobit((v_r + 20)) +v_e = I32[arshift(v_t, 2)] +local t165 = v_e +if t165 == 0 then +v_t = tobit((v_r + 16)) +v_e = I32[arshift((v_r + 16), 2)] +t165 = v_e +end +if not (t165 ~= 0) then goto B144 end +end +do +end +::C144:: +end +end +::B144:: +end +I32[arshift(v_f, 2)] = tobit(0) +end +else +v_r = 0 +end +end +else +v_e = I32[arshift((v_n + 8), 2)] +I32[arshift((v_e + 12), 2)] = tobit(v_r) +I32[arshift((v_r + 8), 2)] = tobit(v_e) +end +end +if (not (v_a ~= 0)) then +goto L143 +end +v_t = I32[arshift((v_n + 28), 2)] +do +v_e = tobit((23028 + lshift(v_t, 2))) +if (I32[arshift(v_e, 2)] == bor(0, v_n)) then +I32[arshift(v_e, 2)] = tobit(v_r) +if (v_r ~= 0) then +goto L145 +end +I32[5682] = tobit(band(I32[5682], F.fKA((-2), v_t))) +goto L143 +end +I32[arshift((v_a + ((I32[arshift((v_a + 16), 2)] == bor(0, v_n)) and 16 or 20)), 2)] = tobit(v_r) +if (not (v_r ~= 0)) then +goto L143 +end +end +::L145:: +I32[arshift((v_r + 24), 2)] = tobit(v_a) +v_e = I32[arshift((v_n + 16), 2)] +if (v_e ~= 0) then +I32[arshift((v_r + 16), 2)] = tobit(v_e) +I32[arshift((v_e + 24), 2)] = tobit(v_r) +end +v_e = I32[arshift((v_n + 20), 2)] +if (not (v_e ~= 0)) then +goto L143 +end +I32[arshift((v_r + 20), 2)] = tobit(v_e) +I32[arshift((v_e + 24), 2)] = tobit(v_r) +end +end +end +end +end +end +end +::L143:: +end +do +local t166 = (not ((tobit(v_n) % 4294967296) >= (tobit(v_o) % 4294967296))) +if t166 then +v_r = I32[arshift((v_o + 4), 2)] +t166 = (band(1, v_r) ~= 0) +end +if t166 then +do +do +do +do +do +if (not (band(2, v_r) ~= 0)) then +do +if (I32[5687] == bor(0, v_o)) then +I32[5687] = tobit(v_n) +v_A = tobit((I32[5684] + v_A)) +I32[5684] = tobit(v_A) +I32[arshift((v_n + 4), 2)] = tobit(bor(1, v_A)) +if (I32[5686] ~= bor(0, v_n)) then +goto L142 +end +I32[5683] = tobit(0) +I32[5686] = tobit(0) +do return end +end +if (I32[5686] == bor(0, v_o)) then +I32[5686] = tobit(v_n) +v_A = tobit((I32[5683] + v_A)) +I32[5683] = tobit(v_A) +I32[arshift((v_n + 4), 2)] = tobit(bor(1, v_A)) +I32[arshift((v_A + v_n), 2)] = tobit(v_A) +do return end +end +v_A = tobit((band((-8), v_r) + v_A)) +do +do +do +if ((tobit(v_r) % 4294967296) <= 255) then +v_t = I32[arshift((v_o + 8), 2)] +v_r = tobit((rshift(v_r, 3) % 4294967296)) +v_e = I32[arshift((v_o + 12), 2)] +if (bor(0, v_e) == bor(0, v_t)) then +I32[5681] = tobit(band(I32[5681], F.fKA((-2), v_r))) +goto L147 +end +I32[arshift((v_t + 12), 2)] = tobit(v_e) +I32[arshift((v_e + 8), 2)] = tobit(v_t) +else +do +do +v_a = I32[arshift((v_o + 24), 2)] +local t167 = bor(0, v_o) +v_r = I32[arshift((v_o + 12), 2)] +if (t167 == bor(0, v_r)) then +do +v_t = tobit((v_o + 20)) +v_e = I32[arshift(v_t, 2)] +local t168 = (v_e ~= 0) +if not t168 then +v_t = tobit((v_o + 16)) +v_e = I32[arshift(v_t, 2)] +t168 = (v_e ~= 0) +end +if t168 then +do +do +do +while true do +do +v_f = v_t +v_r = v_e +v_t = tobit((v_r + 20)) +v_e = I32[arshift(v_t, 2)] +local t169 = v_e +if t169 == 0 then +v_t = tobit((v_r + 16)) +v_e = I32[arshift((v_r + 16), 2)] +t169 = v_e +end +if not (t169 ~= 0) then goto B148 end +end +do +end +::C148:: +end +end +::B148:: +end +I32[arshift(v_f, 2)] = tobit(0) +end +else +v_r = 0 +end +end +else +v_e = I32[arshift((v_o + 8), 2)] +I32[arshift((v_e + 12), 2)] = tobit(v_r) +I32[arshift((v_r + 8), 2)] = tobit(v_e) +end +end +if (v_a ~= 0) then +v_t = I32[arshift((v_o + 28), 2)] +do +v_e = tobit((23028 + lshift(v_t, 2))) +if (I32[arshift(v_e, 2)] == bor(0, v_o)) then +I32[arshift(v_e, 2)] = tobit(v_r) +if (v_r ~= 0) then +goto L149 +end +I32[5682] = tobit(band(I32[5682], F.fKA((-2), v_t))) +goto L147 +end +I32[arshift((v_a + ((I32[arshift((v_a + 16), 2)] == bor(0, v_o)) and 16 or 20)), 2)] = tobit(v_r) +if (not (v_r ~= 0)) then +goto L147 +end +end +::L149:: +I32[arshift((v_r + 24), 2)] = tobit(v_a) +v_e = I32[arshift((v_o + 16), 2)] +if (v_e ~= 0) then +I32[arshift((v_r + 16), 2)] = tobit(v_e) +I32[arshift((v_e + 24), 2)] = tobit(v_r) +end +v_e = I32[arshift((v_o + 20), 2)] +if (v_e ~= 0) then +I32[arshift((v_r + 20), 2)] = tobit(v_e) +I32[arshift((v_e + 24), 2)] = tobit(v_r) +end +end +end +end +end +end +::L147:: +end +I32[arshift((v_n + 4), 2)] = tobit(bor(1, v_A)) +I32[arshift((v_A + v_n), 2)] = tobit(v_A) +if (I32[5686] ~= bor(0, v_n)) then +goto L146 +end +I32[5683] = tobit(v_A) +do return end +end +end +end +I32[arshift((v_o + 4), 2)] = tobit(band((-2), v_r)) +I32[arshift((v_n + 4), 2)] = tobit(bor(1, v_A)) +I32[arshift((v_A + v_n), 2)] = tobit(v_A) +end +end +::L146:: +end +do +if ((tobit(v_A) % 4294967296) <= 255) then +do +v_A = tobit((rshift(v_A, 3) % 4294967296)) +v_r = tobit((22764 + lshift(v_A, 3))) +v_e = I32[5681] +local t170 = v_e +v_A = lshift(1, v_A) +if (band(t170, v_A) ~= 0) then +v_A = I32[arshift((v_r + 8), 2)] +else +I32[5681] = tobit(bor(v_A, v_e)) +v_A = v_r +end +I32[arshift((v_r + 8), 2)] = tobit(v_n) +I32[arshift((v_A + 12), 2)] = tobit(v_n) +I32[arshift((v_n + 12), 2)] = tobit(v_r) +I32[arshift((v_n + 8), 2)] = tobit(v_A) +do return end +end +end +end +do +v_t = 31 +I32[arshift((v_n + 16), 2)] = tobit(0) +I32[arshift((v_n + 20), 2)] = tobit(0) +if ((tobit(v_A) % 4294967296) <= 16777215) then +v_r = tobit((rshift(v_A, 8) % 4294967296)) +local t171 = v_r +v_f = band((rshift((v_r + 1048320), 16) % 4294967296), 8) +v_r = lshift(t171, v_f) +local t172 = v_r +v_t = band((rshift((v_r + 520192), 16) % 4294967296), 4) +v_r = lshift(t172, v_t) +local t173 = v_r +v_e = band((rshift((v_r + 245760), 16) % 4294967296), 2) +v_r = tobit((tobit((rshift(lshift(t173, v_e), 15) % 4294967296)) - bor(bor(v_e, v_t), v_f))) +v_t = tobit((28 + bor(lshift(v_r, 1), band((rshift(v_A, (v_r + 21)) % 4294967296), 1)))) +end +I32[arshift((v_n + 28), 2)] = tobit(v_t) +v_f = tobit((23028 + lshift(v_t, 2))) +end +do +do +do +do +do +do +do +v_e = I32[5682] +local t174 = v_e +v_r = lshift(1, v_t) +if (band(t174, v_r) ~= 0) then +do +v_t = lshift(v_A, ((31 == bor(0, v_t)) and 0 or tobit((25 - tobit((rshift(v_t, 1) % 4294967296)))))) +v_r = I32[arshift(v_f, 2)] +while true do +do +v_e = v_r +if (band((-8), I32[arshift((v_r + 4), 2)]) == bor(0, v_A)) then +goto L151 +end +v_r = tobit((rshift(v_t, 29) % 4294967296)) +v_t = lshift(v_t, 1) +v_f = tobit((v_e + band(4, v_r))) +v_r = I32[arshift((16 + v_f), 2)] +if (not (v_r ~= 0)) then +goto B152 +end +end +::C152:: +end +end +::B152:: +I32[arshift((v_f + 16), 2)] = tobit(v_n) +I32[arshift((v_n + 24), 2)] = tobit(v_e) +else +I32[5682] = tobit(bor(v_r, v_e)) +I32[arshift(v_f, 2)] = tobit(v_n) +I32[arshift((v_n + 24), 2)] = tobit(v_f) +end +end +I32[arshift((v_n + 12), 2)] = tobit(v_n) +I32[arshift((v_n + 8), 2)] = tobit(v_n) +goto L150 +end +end +::L151:: +end +v_A = I32[arshift((v_e + 8), 2)] +I32[arshift((v_A + 12), 2)] = tobit(v_n) +I32[arshift((v_e + 8), 2)] = tobit(v_n) +I32[arshift((v_n + 24), 2)] = tobit(0) +I32[arshift((v_n + 12), 2)] = tobit(v_e) +I32[arshift((v_n + 8), 2)] = tobit(v_A) +end +end +::L150:: +end +do +v_A = tobit((I32[5689] - 1)) +local t175 = v_A +if t175 == 0 then +t175 = (-1) +end +I32[5689] = tobit(t175) +end +end +end +end +end +end +end +end +::L142:: +end +end + +F.fF = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +do +v_t = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +v_a = bxor(I32[arshift((v_A + 16), 2)], bor(bor(bor(lshift(v_t, 24), band(lshift(v_t, 8), 16711680)), band((rshift(v_t, 8) % 4294967296), 65280)), (rshift(v_t, 24) % 4294967296))) +v_t = bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24)) +v_l = bxor(I32[arshift((v_A + 12), 2)], bor(bor(bor(lshift(v_t, 24), band(lshift(v_t, 8), 16711680)), band((rshift(v_t, 8) % 4294967296), 65280)), (rshift(v_t, 24) % 4294967296))) +v_t = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_u = bxor(I32[arshift((v_A + 8), 2)], bor(bor(bor(lshift(v_t, 24), band(lshift(v_t, 8), 16711680)), band((rshift(v_t, 8) % 4294967296), 65280)), (rshift(v_t, 24) % 4294967296))) +v_r = bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24)) +v_t = bxor(I32[arshift((v_A + 4), 2)], bor(bor(bor(lshift(v_r, 24), band(lshift(v_r, 8), 16711680)), band((rshift(v_r, 8) % 4294967296), 65280)), (rshift(v_r, 24) % 4294967296))) +v_r = tobit((v_A + 20)) +v_v = I32[arshift(v_A, 2)] +if (v_v ~= 0) then +do +do +while true do +do +do +do +v_A = bxor(I32[arshift((v_r + 4), 2)], v_u) +v_o = U8[tobit((7840 + tobit((rshift(v_A, 24) % 4294967296))))] +v_g = v_a +v_a = bor(bor(bor(U8[tobit((7584 + band(255, v_A)))], lshift(U8[tobit((8096 + band((rshift(v_A, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)) +v_A = bxor(I32[arshift(v_r, 2)], v_t) +v_A = bxor(bor(v_o, lshift(v_a, 8)), bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_A, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_A, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_A)))])) +v_s = bxor(F.fKA(v_A, 16), v_a) +local t176 = v_g +v_b = bxor(F.fKA(v_s, 24), v_A) +v_a = bxor(t176, v_b) +v_A = bxor(v_a, I32[arshift((v_r + 12), 2)]) +v_o = U8[tobit((7840 + tobit((rshift(v_A, 24) % 4294967296))))] +v_c = bor(bor(bor(U8[tobit((7584 + band(255, v_A)))], lshift(U8[tobit((8096 + band((rshift(v_A, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)) +v_l = bxor(bxor(F.fKA(v_b, 24), v_l), v_s) +v_A = bxor(v_l, I32[arshift((v_r + 8), 2)]) +v_A = bxor(bor(v_o, lshift(v_c, 8)), bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_A, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_A, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_A)))])) +v_s = bxor(F.fKA(v_A, 16), v_c) +local t177 = v_u +v_b = bxor(F.fKA(v_s, 24), v_A) +v_u = bxor(t177, v_b) +v_A = bxor(v_u, I32[arshift((v_r + 20), 2)]) +v_o = U8[tobit((7840 + tobit((rshift(v_A, 24) % 4294967296))))] +v_c = bor(bor(bor(U8[tobit((7584 + band(255, v_A)))], lshift(U8[tobit((8096 + band((rshift(v_A, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)) +v_t = bxor(bxor(F.fKA(v_b, 24), v_t), v_s) +v_A = bxor(v_t, I32[arshift((v_r + 16), 2)]) +v_A = bxor(bor(v_o, lshift(v_c, 8)), bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_A, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_A, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_A)))])) +v_s = bxor(F.fKA(v_A, 16), v_c) +local t178 = v_a +v_b = bxor(F.fKA(v_s, 24), v_A) +v_a = bxor(t178, v_b) +v_A = bxor(v_a, I32[arshift((v_r + 28), 2)]) +v_o = U8[tobit((7840 + tobit((rshift(v_A, 24) % 4294967296))))] +v_c = bor(bor(bor(U8[tobit((7584 + band(255, v_A)))], lshift(U8[tobit((8096 + band((rshift(v_A, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)) +v_l = bxor(bxor(F.fKA(v_b, 24), v_l), v_s) +v_A = bxor(v_l, I32[arshift((v_r + 24), 2)]) +v_A = bxor(bor(v_o, lshift(v_c, 8)), bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_A, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_A, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_A)))])) +v_s = bxor(F.fKA(v_A, 16), v_c) +local t179 = v_u +v_b = bxor(F.fKA(v_s, 24), v_A) +v_u = bxor(t179, v_b) +v_A = bxor(v_u, I32[arshift((v_r + 36), 2)]) +v_o = U8[tobit((7840 + tobit((rshift(v_A, 24) % 4294967296))))] +v_c = bor(bor(bor(U8[tobit((7584 + band(255, v_A)))], lshift(U8[tobit((8096 + band((rshift(v_A, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)) +v_t = bxor(bxor(F.fKA(v_b, 24), v_t), v_s) +v_A = bxor(v_t, I32[arshift((v_r + 32), 2)]) +v_A = bxor(bor(v_o, lshift(v_c, 8)), bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_A, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_A, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_A)))])) +v_c = bxor(F.fKA(v_A, 16), v_c) +local t180 = v_a +v_s = bxor(F.fKA(v_c, 24), v_A) +v_a = bxor(t180, v_s) +v_A = bxor(v_a, I32[arshift((v_r + 44), 2)]) +v_o = U8[tobit((7840 + tobit((rshift(v_A, 24) % 4294967296))))] +v_g = v_u +v_u = bor(bor(bor(U8[tobit((7584 + band(255, v_A)))], lshift(U8[tobit((8096 + band((rshift(v_A, 16) % 4294967296), 255)))], 16)), lshift(v_o, 24)), lshift(U8[tobit((8352 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)) +v_l = bxor(bxor(F.fKA(v_s, 24), v_c), v_l) +v_A = bxor(v_l, I32[arshift((v_r + 40), 2)]) +v_A = bxor(bor(v_o, lshift(v_u, 8)), bor(bor(bor(lshift(U8[tobit((7840 + band((rshift(v_A, 16) % 4294967296), 255)))], 16), lshift(U8[tobit((7584 + tobit((rshift(v_A, 24) % 4294967296))))], 24)), lshift(U8[tobit((8096 + band((rshift(v_A, 8) % 4294967296), 255)))], 8)), U8[tobit((8352 + band(255, v_A)))])) +v_o = bxor(F.fKA(v_A, 16), v_u) +local t181 = v_g +v_A = bxor(F.fKA(v_o, 24), v_A) +v_u = bxor(t181, v_A) +v_t = bxor(bxor(F.fKA(v_A, 24), v_t), v_o) +v_v = tobit((v_v - 1)) +if (not (v_v ~= 0)) then +v_r = tobit((v_r + 48)) +goto B153 +end +end +v_l = bxor(bor(I32[arshift((v_r + 60), 2)], v_a), v_l) +v_a = bxor(F.fKA(band(v_l, I32[arshift((v_r + 56), 2)]), 1), v_a) +v_u = bxor(F.fKA(band(I32[arshift((v_r + 48), 2)], v_t), 1), v_u) +v_t = bxor(bor(v_u, I32[arshift((v_r + 52), 2)]), v_t) +v_r = tobit((v_r - (-64))) +end +end +::C153:: +end +end +::B153:: +end +end +end +v_v = I32[arshift(v_r, 2)] +v_o = I32[arshift((v_r + 4), 2)] +v_c = I32[arshift((v_r + 8), 2)] +v_A = bxor(I32[arshift((v_r + 12), 2)], v_u) +I8[tobit((v_e + 15))] = tobit(v_A) +v_r = bxor(v_t, v_c) +I8[tobit((v_e + 11))] = tobit(v_r) +v_t = bxor(v_o, v_a) +I8[tobit((v_e + 7))] = tobit(v_t) +v_a = bxor(v_l, v_v) +I8[tobit((v_e + 3))] = tobit(v_a) +I8[tobit((v_e + 14))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_e + 13))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[tobit((v_e + 12))] = tobit((rshift(v_A, 24) % 4294967296)) +I8[tobit((v_e + 10))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_e + 9))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_e + 8))] = tobit((rshift(v_r, 24) % 4294967296)) +I8[tobit((v_e + 6))] = tobit((rshift(v_t, 8) % 4294967296)) +I8[tobit((v_e + 5))] = tobit((rshift(v_t, 16) % 4294967296)) +I8[tobit((v_e + 4))] = tobit((rshift(v_t, 24) % 4294967296)) +I8[tobit((v_e + 2))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_e + 1))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[bor(0, v_e)] = tobit((rshift(v_a, 24) % 4294967296)) +do return 0 end +end + +F.fH = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +do +do +v_t = bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24)) +v_t = bor(bor(bor(lshift(v_t, 24), band(lshift(v_t, 8), 16711680)), band((rshift(v_t, 8) % 4294967296), 65280)), (rshift(v_t, 24) % 4294967296)) +local t183 = v_t +local t182 = (rshift(v_t, 4) % 4294967296) +v_r = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_r = bor(bor(bor(lshift(v_r, 24), band(lshift(v_r, 8), 16711680)), band((rshift(v_r, 8) % 4294967296), 65280)), (rshift(v_r, 24) % 4294967296)) +v_o = band(252645135, bxor(t182, v_r)) +v_t = bxor(t183, lshift(v_o, 4)) +v_o = bxor(v_o, v_r) +local t184 = v_o +v_r = bxor((rshift(v_t, 16) % 4294967296), band(65535, v_o)) +v_o = bxor(t184, v_r) +local t186 = v_o +local t185 = (rshift(v_o, 2) % 4294967296) +v_r = bxor(v_t, lshift(v_r, 16)) +v_t = band(858993459, bxor(t185, v_r)) +v_o = bxor(t186, lshift(v_t, 2)) +local t187 = (rshift(v_o, 8) % 4294967296) +v_r = bxor(v_r, v_t) +v_t = band(16711935, bxor(t187, v_r)) +v_o = F.fKA(bxor(lshift(v_t, 8), v_o), 1) +local t189 = v_o +local t188 = (-1431655766) +v_r = bxor(v_r, v_t) +v_t = band(t188, bxor(v_r, v_o)) +v_o = bxor(t189, v_t) +v_r = F.fKA(bxor(v_r, v_t), 1) +v_t = v_A +v_u = 1 +end +while true do +v_s = v_o +v_c = bxor(I32[arshift((v_t + 4), 2)], F.fKA(v_o, 28)) +v_a = v_r +v_r = bxor(I32[arshift(v_t, 2)], v_o) +v_r = bxor(bxor(bxor(bxor(bxor(bxor(bxor(bxor(I32[arshift((2176 + lshift(band(63, v_c), 2)), 2)], v_a), I32[arshift((1152 + lshift(band(63, v_r), 2)), 2)]), I32[arshift((1408 + band((rshift(v_r, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_r, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_r, 22) % 4294967296), 252)), 2)]), I32[arshift((2432 + band((rshift(v_c, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_c, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_c, 22) % 4294967296), 252)), 2)]) +v_o = bxor(v_r, I32[arshift((v_t + 8), 2)]) +v_a = bxor(bxor(bxor(bxor(v_s, I32[arshift((1152 + lshift(band(63, v_o), 2)), 2)]), I32[arshift((1408 + band((rshift(v_o, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_o, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_o, 22) % 4294967296), 252)), 2)]) +v_o = bxor(I32[arshift((v_t + 12), 2)], F.fKA(v_r, 28)) +v_o = bxor(bxor(bxor(bxor(v_a, I32[arshift((2176 + lshift(band(63, v_o), 2)), 2)]), I32[arshift((2432 + band((rshift(v_o, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_o, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_o, 22) % 4294967296), 252)), 2)]) +if not (8 ~= bor(0, v_u)) then goto B154 end +do +v_t = tobit((v_t + 16)) +v_u = tobit((v_u + 1)) +end +::C154:: +end +end +::B154:: +end +do +v_t = tobit((v_A + 128)) +v_u = 1 +while true do +v_a = v_r +v_c = bxor(I32[arshift((v_t + 4), 2)], F.fKA(v_r, 28)) +v_r = bxor(I32[arshift(v_t, 2)], v_r) +v_o = bxor(bxor(bxor(bxor(bxor(bxor(bxor(bxor(I32[arshift((2176 + lshift(band(63, v_c), 2)), 2)], I32[arshift((1152 + lshift(band(63, v_r), 2)), 2)]), v_o), I32[arshift((1408 + band((rshift(v_r, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_r, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_r, 22) % 4294967296), 252)), 2)]), I32[arshift((2432 + band((rshift(v_c, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_c, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_c, 22) % 4294967296), 252)), 2)]) +v_r = bxor(v_o, I32[arshift((v_t + 8), 2)]) +v_a = bxor(bxor(bxor(bxor(v_a, I32[arshift((1152 + lshift(band(63, v_r), 2)), 2)]), I32[arshift((1408 + band((rshift(v_r, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_r, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_r, 22) % 4294967296), 252)), 2)]) +v_r = bxor(I32[arshift((v_t + 12), 2)], F.fKA(v_o, 28)) +v_r = bxor(bxor(bxor(bxor(v_a, I32[arshift((2176 + lshift(band(63, v_r), 2)), 2)]), I32[arshift((2432 + band((rshift(v_r, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_r, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_r, 22) % 4294967296), 252)), 2)]) +if not (8 ~= bor(0, v_u)) then goto B155 end +do +v_t = tobit((v_t + 16)) +v_u = tobit((v_u + 1)) +end +::C155:: +end +end +::B155:: +do +v_t = tobit((v_A + 256)) +v_u = 1 +while true do +v_A = bxor(I32[arshift((v_t + 4), 2)], F.fKA(v_o, 28)) +v_a = v_r +v_r = bxor(I32[arshift(v_t, 2)], v_o) +v_r = bxor(bxor(bxor(bxor(bxor(bxor(bxor(bxor(I32[arshift((2176 + lshift(band(63, v_A), 2)), 2)], v_a), I32[arshift((1152 + lshift(band(63, v_r), 2)), 2)]), I32[arshift((1408 + band((rshift(v_r, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_r, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_r, 22) % 4294967296), 252)), 2)]), I32[arshift((2432 + band((rshift(v_A, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_A, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_A, 22) % 4294967296), 252)), 2)]) +v_A = bxor(v_r, I32[arshift((v_t + 8), 2)]) +v_a = bxor(bxor(bxor(bxor(I32[arshift((1152 + lshift(band(63, v_A), 2)), 2)], v_o), I32[arshift((1408 + band((rshift(v_A, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_A, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_A, 22) % 4294967296), 252)), 2)]) +v_A = bxor(I32[arshift((v_t + 12), 2)], F.fKA(v_r, 28)) +v_o = bxor(bxor(bxor(bxor(v_a, I32[arshift((2176 + lshift(band(63, v_A), 2)), 2)]), I32[arshift((2432 + band((rshift(v_A, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_A, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_A, 22) % 4294967296), 252)), 2)]) +if not (8 ~= bor(0, v_u)) then goto B156 end +do +v_t = tobit((v_t + 16)) +v_u = tobit((v_u + 1)) +end +::C156:: +end +end +::B156:: +do +v_s = lshift(v_r, 31) +local t192 = v_s +v_a = v_r +local t191 = v_a +local t190 = (-1431655766) +v_A = F.fKA(v_o, 31) +v_r = band(t190, bxor(v_A, v_r)) +v_t = bor(t192, (rshift(bxor(t191, v_r), 1) % 4294967296)) +local t194 = v_t +local t193 = (rshift(v_t, 8) % 4294967296) +v_A = bxor(v_A, v_r) +v_r = band(16711935, bxor(t193, v_A)) +v_t = bxor(t194, lshift(v_r, 8)) +local t196 = v_t +local t195 = (rshift(v_t, 2) % 4294967296) +v_A = bxor(v_A, v_r) +v_r = band(858993459, bxor(t195, v_A)) +v_t = bxor(t196, lshift(v_r, 2)) +local t197 = band(65535, v_t) +v_A = bxor(v_A, v_r) +v_r = bxor(t197, (rshift(v_A, 16) % 4294967296)) +v_o = bxor(lshift(v_r, 16), v_A) +v_A = bxor(v_r, v_t) +local t198 = v_A +v_r = band(252645135, bxor((rshift(v_o, 4) % 4294967296), v_A)) +v_A = bxor(t198, v_r) +I8[tobit((v_e + 7))] = tobit(v_A) +I8[tobit((v_e + 6))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_e + 5))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[tobit((v_e + 4))] = tobit((rshift(v_A, 24) % 4294967296)) +v_A = bxor(v_o, lshift(v_r, 4)) +I8[tobit((v_e + 3))] = tobit(v_A) +I8[tobit((v_e + 2))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_e + 1))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[bor(0, v_e)] = tobit((rshift(v_A, 24) % 4294967296)) +do return 0 end +end +end + +F.fN = function(v_A, v_r, v_e, v_n) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_m, v_Q, v_O, v_S, v_M, v_x, v_j, v_T, v_P, v_K, v_R, v_D = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +v_x = 0 +v_j = 0 +v_T = 0 +v_P = 0 +v_K = 0 +v_R = 0 +v_D = 0 +do +v_t = tobit((B - 32)) +B = v_t +v_g = (-20) +v_r = F.fBA(v_r, v_n) +if not (bor(((not (v_r ~= 0)) and 1 or 0), ((16 ~= I32[arshift((v_r + 24), 2)]) and 1 or 0)) ~= 0) then +F.fAA(v_A) +v_g = F.flA(v_A, v_r) +local t199 = (v_g ~= 0) +if not t199 then +v_g = F.fIA(v_A, v_e, v_n) +t199 = (v_g ~= 0) +end +if not t199 then +v_r = v_t +I32[arshift((v_r + 16), 2)] = tobit(0) +I32[arshift((v_r + 20), 2)] = tobit(0) +I32[arshift((v_r + 24), 2)] = tobit(0) +I32[arshift((v_r + 28), 2)] = tobit(0) +I32[arshift((v_r + 12), 2)] = tobit(0) +v_g = F.fW(v_A, tobit((v_r + 16)), tobit((v_r + 16)), tobit((v_r + 12))) +if not (v_g ~= 0) then +v_e = v_t +v_E = U8[tobit((v_e + 31))] +v_m = U8[tobit((v_e + 30))] +v_Q = U8[tobit((v_e + 27))] +v_j = U8[tobit((v_e + 26))] +v_O = U8[tobit((v_e + 25))] +v_T = U8[tobit((v_e + 24))] +v_k = U8[tobit((v_e + 29))] +v_a = U8[tobit((v_e + 28))] +v_n = U8[tobit((v_e + 23))] +v_c = U8[tobit((v_e + 22))] +v_u = U8[tobit((v_e + 19))] +v_s = U8[tobit((v_e + 18))] +v_v = U8[tobit((v_e + 17))] +v_y = U8[tobit((v_e + 16))] +v_r = U8[tobit((v_e + 21))] +v_o = U8[tobit((v_e + 20))] +I32[arshift((v_A + 192), 2)] = tobit(0) +I32[arshift((v_A + 196), 2)] = tobit(0) +I32[arshift((v_A + 64), 2)] = tobit(0) +I32[arshift((v_A + 68), 2)] = tobit(0) +v_e = v_r +local t200 = (rshift(v_o, 8) % 4294967296) +v_r = tobit((rshift(v_r, 16) % 4294967296)) +v_w = bor(t200, v_r) +local t201 = lshift(v_c, 8) +v_S = bor(lshift(v_e, 16), lshift(v_o, 24)) +v_l = bor(bor(t201, v_S), v_n) +local t202 = lshift(v_s, 8) +v_v = bor(lshift(v_v, 16), lshift(v_y, 24)) +v_r = bor(bor(t202, v_v), v_u) +v_r = bor(bor(v_r, v_w), (rshift(v_c, 24) % 4294967296)) +v_c = v_r +I32[arshift((v_A + 256), 2)] = tobit(v_l) +I32[arshift((v_A + 260), 2)] = tobit(v_r) +v_r = tobit((rshift(v_a, 8) % 4294967296)) +local t203 = v_r +v_e = tobit((rshift(v_k, 16) % 4294967296)) +v_u = bor(t203, v_e) +local t204 = lshift(v_j, 8) +v_s = bor(lshift(v_O, 16), lshift(v_T, 24)) +v_r = bor(bor(t204, v_s), v_Q) +v_r = bor(bor(v_r, v_u), (rshift(v_m, 24) % 4294967296)) +v_u = v_r +local t205 = lshift(v_m, 8) +v_a = bor(lshift(v_k, 16), lshift(v_a, 24)) +v_o = v_a +v_b = bor(bor(t205, v_o), v_E) +I32[arshift((v_A + 128), 2)] = tobit(v_b) +I32[arshift((v_A + 132), 2)] = tobit(v_r) +v_e = v_c +v_r = tobit((rshift(v_e, 1) % 4294967296)) +v_a = bor(lshift(band(1, v_e), 31), (rshift(v_l, 1) % 4294967296)) +v_d = bxor(F.fCA(band(1, v_E), 0, 0, (-520093696)), v_a) +v_r = bxor(v_r, Iv) +v_s = v_r +I32[arshift((v_A + 224), 2)] = tobit(v_d) +I32[arshift((v_A + 228), 2)] = tobit(v_r) +v_o = v_u +v_r = tobit((rshift(v_o, 1) % 4294967296)) +v_p = bor(lshift(band(1, v_o), 31), (rshift(v_b, 1) % 4294967296)) +local t206 = v_r +v_n = lshift(v_n, 31) +v_r = bor(t206, v_n) +v_v = v_r +I32[arshift((v_A + 96), 2)] = tobit(v_p) +I32[arshift((v_A + 100), 2)] = tobit(v_r) +v_n = v_r +v_r = tobit((rshift(v_r, 1) % 4294967296)) +v_h = bor(lshift(band(1, v_n), 31), (rshift(v_p, 1) % 4294967296)) +local t207 = v_r +v_e = lshift(v_a, 31) +v_r = bor(t207, v_e) +v_y = v_r +I32[arshift((v_A + 80), 2)] = tobit(v_h) +I32[arshift((v_A + 84), 2)] = tobit(v_r) +v_e = v_s +v_r = tobit((rshift(v_e, 1) % 4294967296)) +v_a = bor(lshift(band(1, v_e), 31), (rshift(v_d, 1) % 4294967296)) +v_C = bxor(F.fCA(band(1, v_p), 0, 0, (-520093696)), v_a) +v_e = bxor(Iv, v_r) +v_M = v_e +I32[arshift((v_A + 208), 2)] = tobit(v_C) +I32[arshift((v_A + 212), 2)] = tobit(v_e) +v_e = bxor(v_n, v_y) +v_E = v_e +v_R = bxor(v_p, v_h) +I32[arshift((v_A + 112), 2)] = tobit(v_R) +I32[arshift((v_A + 116), 2)] = tobit(v_e) +v_n = v_y +v_r = tobit((rshift(v_n, 1) % 4294967296)) +v_x = bor(lshift(band(1, v_n), 31), (rshift(v_h, 1) % 4294967296)) +local t208 = v_r +v_e = lshift(v_a, 31) +v_r = bor(t208, v_e) +v_P = v_r +I32[arshift((v_A + 72), 2)] = tobit(v_x) +I32[arshift((v_A + 76), 2)] = tobit(v_r) +v_r = bxor(v_s, v_M) +v_m = v_r +v_Q = bxor(v_d, v_C) +I32[arshift((v_A + 240), 2)] = tobit(v_Q) +I32[arshift((v_A + 244), 2)] = tobit(v_r) +v_e = v_M +v_r = tobit((rshift(v_e, 1) % 4294967296)) +v_o = bxor(F.fCA(band(1, v_h), 0, 0, (-520093696)), bor(lshift(band(1, v_e), 31), (rshift(v_C, 1) % 4294967296))) +v_r = bxor(v_r, Iv) +v_e = v_r +I32[arshift((v_A + 200), 2)] = tobit(v_o) +I32[arshift((v_A + 204), 2)] = tobit(v_r) +v_r = bxor(v_n, v_P) +v_D = v_r +v_K = bxor(v_h, v_x) +I32[arshift((v_A + 88), 2)] = tobit(v_K) +I32[arshift((v_A + 92), 2)] = tobit(v_r) +v_r = bxor(v_v, v_P) +v_j = v_r +v_O = bxor(v_p, v_x) +I32[arshift((v_A + 104), 2)] = tobit(v_O) +I32[arshift((v_A + 108), 2)] = tobit(v_r) +v_r = bxor(v_e, v_M) +v_S = v_r +v_w = bxor(v_o, v_C) +I32[arshift((v_A + 216), 2)] = tobit(v_w) +I32[arshift((v_A + 220), 2)] = tobit(v_r) +v_r = bxor(v_e, v_s) +v_T = v_r +v_k = bxor(v_o, v_d) +I32[arshift((v_A + 232), 2)] = tobit(v_k) +I32[arshift((v_A + 236), 2)] = tobit(v_r) +I32[arshift((v_A + 264), 2)] = tobit(bxor(v_o, v_l)) +I32[arshift((v_A + 268), 2)] = tobit(bxor(v_e, v_c)) +v_r = bxor(v_v, v_D) +v_a = v_r +v_o = bxor(v_p, v_K) +I32[arshift((v_A + 120), 2)] = tobit(v_o) +I32[arshift((v_A + 124), 2)] = tobit(v_r) +v_n = bxor(v_s, v_S) +v_e = v_n +v_r = bxor(v_d, v_w) +I32[arshift((v_A + 248), 2)] = tobit(v_r) +I32[arshift((v_A + 252), 2)] = tobit(v_e) +I32[arshift((v_A + 272), 2)] = tobit(bxor(v_l, v_C)) +I32[arshift((v_A + 276), 2)] = tobit(bxor(v_c, v_M)) +I32[arshift((v_A + 136), 2)] = tobit(bxor(v_b, v_x)) +I32[arshift((v_A + 140), 2)] = tobit(bxor(v_u, v_P)) +I32[arshift((v_A + 144), 2)] = tobit(bxor(v_b, v_h)) +I32[arshift((v_A + 148), 2)] = tobit(bxor(v_u, v_y)) +I32[arshift((v_A + 280), 2)] = tobit(bxor(v_l, v_w)) +I32[arshift((v_A + 284), 2)] = tobit(bxor(v_c, v_S)) +I32[arshift((v_A + 152), 2)] = tobit(bxor(v_b, v_K)) +I32[arshift((v_A + 156), 2)] = tobit(bxor(v_u, v_D)) +I32[arshift((v_A + 288), 2)] = tobit(bxor(v_l, v_d)) +I32[arshift((v_A + 292), 2)] = tobit(bxor(v_c, v_s)) +I32[arshift((v_A + 160), 2)] = tobit(bxor(v_b, v_p)) +I32[arshift((v_A + 164), 2)] = tobit(bxor(v_u, v_v)) +I32[arshift((v_A + 296), 2)] = tobit(bxor(v_l, v_k)) +I32[arshift((v_A + 300), 2)] = tobit(bxor(v_c, v_T)) +I32[arshift((v_A + 168), 2)] = tobit(bxor(v_b, v_O)) +I32[arshift((v_A + 172), 2)] = tobit(bxor(v_u, v_j)) +I32[arshift((v_A + 304), 2)] = tobit(bxor(v_l, v_Q)) +I32[arshift((v_A + 308), 2)] = tobit(bxor(v_c, v_m)) +I32[arshift((v_A + 176), 2)] = tobit(bxor(v_b, v_R)) +I32[arshift((v_A + 180), 2)] = tobit(bxor(v_u, v_E)) +I32[arshift((v_A + 312), 2)] = tobit(bxor(v_r, v_l)) +I32[arshift((v_A + 316), 2)] = tobit(bxor(v_e, v_c)) +I32[arshift((v_A + 184), 2)] = tobit(bxor(v_o, v_b)) +I32[arshift((v_A + 188), 2)] = tobit(bxor(v_u, v_a)) +end +end +end +B = tobit((v_t + 32)) +do return v_g end +end +end + +F.fU = function(v_A, v_r, v_e, v_t) +local v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I, v_m, v_Q, v_O = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_o = tobit((B - 32)) +B = v_o +I32[arshift((v_o + 12), 2)] = tobit(0) +do +do +do +local t209 = (((tobit(v_e) % 4294967296) < (tobit(v_t) % 4294967296)) and 1 or 0) +if t209 ~= 0 then +v_a = (-20) +t209 = (((tobit((v_t - v_e)) % 4294967296) < (tobit(v_r) % 4294967296)) and 1 or 0) +end +local t210 = t209 +if t210 == 0 then +v_a = (-20) +v_s = I32[arshift((v_A + 324), 2)] +v_u = v_s +v_l = I32[arshift((v_A + 320), 2)] +local t211 = v_l +v_c = v_r +v_v = tobit((t211 + v_c)) +v_u = (((tobit(v_v) % 4294967296) < (tobit(v_c) % 4294967296)) and tobit((v_u + 1)) or v_u) +v_c = v_u +t210 = bor(bor(bor(band(((bor(0, v_s) == bor(0, v_u)) and 1 or 0), (((tobit(v_l) % 4294967296) > (tobit(v_v) % 4294967296)) and 1 or 0)), (((tobit(v_u) % 4294967296) < (tobit(v_s) % 4294967296)) and 1 or 0)), band(((15 == bor(0, v_u)) and 1 or 0), (((tobit(v_v) % 4294967296) > 4294967264) and 1 or 0))), (((tobit(v_u) % 4294967296) > 15) and 1 or 0)) +end +if (not (t210 ~= 0)) then +do +do +I32[arshift((v_A + 320), 2)] = tobit(v_v) +I32[arshift((v_A + 324), 2)] = tobit(v_c) +if (v_r ~= 0) then +do +do +v_s = tobit((v_A + 368)) +v_E = tobit((v_A + 352)) +while true do +do +do +v_u = tobit((U8[tobit((v_A + 367))] + 1)) +I8[tobit((v_A + 367))] = tobit(v_u) +if (bor(0, v_u) ~= band(255, v_u)) then +v_u = tobit((U8[tobit((v_A + 366))] + 1)) +I8[tobit((v_A + 366))] = tobit(v_u) +if (bor(0, v_u) ~= band(255, v_u)) then +v_u = tobit((U8[tobit((v_A + 365))] + 1)) +I8[tobit((v_A + 365))] = tobit(v_u) +if (bor(0, v_u) ~= band(255, v_u)) then +I8[tobit((v_A + 364))] = tobit((U8[tobit((v_A + 364))] + 1)) +end +end +end +v_a = F.fW(v_A, v_E, tobit((v_o + 16)), tobit((v_o + 12))) +if (v_a ~= 0) then +goto L157 +end +do +do +v_h = (((tobit(v_r) % 4294967296) < 16) and v_r or 16) +v_u = (((tobit(v_h) % 4294967296) > 1) and v_h or 1) +v_a = 0 +while true do +do +if not (I32[arshift((v_A + 384), 2)] ~= 0) then +v_c = tobit((v_A + v_a)) +I8[tobit((368 + v_c))] = tobit(bxor(U8[tobit((v_c + 368))], U8[tobit((v_e + v_a))])) +end +v_c = bxor(U8[tobit((v_e + v_a))], U8[tobit((tobit((v_o + 16)) + v_a))]) +I8[tobit((v_t + v_a))] = tobit(v_c) +if (1 == I32[arshift((v_A + 384), 2)]) then +v_v = tobit((v_A + v_a)) +I8[tobit((368 + v_v))] = tobit(bxor(v_c, U8[tobit((v_v + 368))])) +end +local t212 = bor(0, v_u) +v_a = tobit((v_a + 1)) +if not (t212 ~= bor(0, v_a)) then goto B159 end +end +do +end +::C159:: +end +end +::B159:: +end +do +do +do +v_I = v_s +v_k = tobit((v_A - (-64))) +v_u = U8[tobit((v_s + 15))] +local t213 = v_k +v_p = band((rshift(v_u, 1) % 4294967296), 120) +v_c = tobit((t213 + v_p)) +v_l = I32[arshift(v_c, 2)] +v_d = I32[arshift((v_c + 4), 2)] +v_y = tobit((v_A + 192)) +local t214 = v_y +v_b = lshift(band(15, v_u), 3) +v_c = tobit((t214 + v_b)) +v_u = I32[arshift((4 + v_c), 2)] +v_v = I32[arshift(v_c, 2)] +v_c = lshift(v_v, 28) +v_g = v_l +local t216 = v_g +v_a = tobit((v_b + v_k)) +v_l = I32[arshift((4 + v_a), 2)] +local t215 = lshift(band(15, v_l), 28) +v_b = I32[arshift(v_a, 2)] +v_g = bxor(t216, bor(t215, (rshift(v_b, 4) % 4294967296))) +v_c = bxor(bor((rshift(v_l, 4) % 4294967296), v_c), v_d) +v_a = tobit((v_p + v_y)) +v_l = I32[arshift(v_a, 2)] +v_p = I32[arshift((v_a + 4), 2)] +v_a = tobit((11120 + lshift(band(15, v_b), 3))) +v_b = bxor(bor(lshift(band(15, v_u), 28), (rshift(v_v, 4) % 4294967296)), v_l) +local t217 = (rshift(v_u, 4) % 4294967296) +v_a = lshift(I32[arshift(v_a, 2)], 16) +v_u = bxor(bxor(t217, v_a), v_p) +v_a = 14 +end +while true do +do +v_v = v_a +v_a = U8[tobit((v_a + v_I))] +v_w = band((rshift(v_a, 1) % 4294967296), 120) +v_l = tobit((v_w + v_k)) +v_m = I32[arshift(v_l, 2)] +v_Q = I32[arshift((v_l + 4), 2)] +v_C = lshift(band(15, v_a), 3) +v_a = tobit((v_C + v_y)) +v_l = I32[arshift(v_a, 2)] +v_d = I32[arshift((v_a + 4), 2)] +v_a = tobit((11120 + lshift(band(15, v_g), 3))) +v_p = lshift(I32[arshift(v_a, 2)], 16) +v_a = tobit((rshift(v_u, 4) % 4294967296)) +v_p = bxor(bxor(v_a, v_p), v_d) +v_l = bxor(v_l, bor(lshift(band(15, v_u), 28), (rshift(v_b, 4) % 4294967296))) +v_d = lshift(v_l, 28) +v_a = tobit((v_k + v_C)) +v_C = I32[arshift(v_a, 2)] +v_O = I32[arshift((v_a + 4), 2)] +local t218 = (rshift(v_c, 4) % 4294967296) +v_a = lshift(v_b, 28) +v_b = bxor(bor(t218, v_a), v_O) +local t220 = lshift(band(15, v_b), 28) +local t219 = bor(lshift(band(15, v_c), 28), (rshift(v_g, 4) % 4294967296)) +v_u = 0 +v_u = bxor(bor(t219, v_u), v_C) +v_g = bxor(bor(t220, (rshift(v_u, 4) % 4294967296)), v_m) +v_c = bxor(bor((rshift(v_b, 4) % 4294967296), v_d), v_Q) +v_a = tobit((v_y + v_w)) +v_d = I32[arshift(v_a, 2)] +v_w = I32[arshift((v_a + 4), 2)] +v_u = tobit((11120 + lshift(band(15, v_u), 3))) +v_a = lshift(I32[arshift(v_u, 2)], 16) +v_u = v_p +v_b = bxor(bor(lshift(band(15, v_u), 28), (rshift(v_l, 4) % 4294967296)), v_d) +v_u = bxor(bxor((rshift(v_u, 4) % 4294967296), v_a), v_w) +v_a = tobit((v_v - 1)) +if not (v_v ~= 0) then goto B160 end +end +do +end +::C160:: +end +end +::B160:: +end +I8[tobit((v_s + 15))] = tobit(v_g) +I8[tobit((v_s + 7))] = tobit(v_b) +v_a = v_c +I8[tobit((v_s + 14))] = tobit(bor(lshift(band(255, v_a), 24), (rshift(v_g, 8) % 4294967296))) +I8[tobit((v_s + 13))] = tobit(bor(lshift(band(65535, v_a), 16), (rshift(v_g, 16) % 4294967296))) +I8[tobit((v_s + 12))] = tobit(bor(lshift(band(16777215, v_a), 8), (rshift(v_g, 24) % 4294967296))) +I8[tobit((v_s + 11))] = tobit(v_a) +I8[tobit((v_s + 10))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_s + 9))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_s + 8))] = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_s + 6))] = tobit(bor(lshift(band(255, v_u), 24), (rshift(v_b, 8) % 4294967296))) +I8[tobit((v_s + 5))] = tobit(bor(lshift(band(65535, v_u), 16), (rshift(v_b, 16) % 4294967296))) +I8[tobit((v_s + 4))] = tobit(bor(lshift(band(16777215, v_u), 8), (rshift(v_b, 24) % 4294967296))) +I8[tobit((v_s + 3))] = tobit(v_u) +I8[tobit((v_s + 2))] = tobit((rshift(v_u, 8) % 4294967296)) +I8[tobit((v_s + 1))] = tobit((rshift(v_u, 16) % 4294967296)) +I8[bor(0, v_s)] = tobit((rshift(v_u, 24) % 4294967296)) +v_t = tobit((v_t + v_h)) +v_e = tobit((v_e + v_h)) +v_r = tobit((v_r - v_h)) +if (not (v_r ~= 0)) then +goto B158 +end +end +end +::C158:: +end +end +::B158:: +end +end +end +v_a = 0 +end +end +end +end +::L157:: +end +B = tobit((v_o + 32)) +do return v_a end +end + +F.fY = function() +local v_A, v_r, v_e, v_t, v_o, v_a = 0, 0, 0, 0, 0, 0 +v_r = 0 +v_e = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_A = tobit((B - 384)) +B = v_A +F.fLA(tobit((v_A + 104))) +I8[tobit((v_A + 56))] = tobit(109) +I8[tobit((v_A + 57))] = tobit(102) +I8[tobit((v_A + 58))] = tobit(118) +I8[tobit((v_A + 59))] = tobit(53) +I8[tobit((v_A + 60))] = tobit(106) +I8[tobit((v_A + 61))] = tobit(103) +I8[tobit((v_A + 62))] = tobit(57) +I8[tobit((v_A + 63))] = tobit(97) +I8[tobit((v_A + 48))] = tobit(52) +I8[tobit((v_A + 49))] = tobit(113) +I8[tobit((v_A + 50))] = tobit(117) +I8[tobit((v_A + 51))] = tobit(115) +I8[tobit((v_A + 52))] = tobit(108) +I8[tobit((v_A + 53))] = tobit(121) +I8[tobit((v_A + 54))] = tobit(49) +I8[tobit((v_A + 55))] = tobit(119) +F.fZ(tobit((v_A + 104)), tobit((v_A + 48)), 128) +v_r = bor(bor(bor(U8[13560], lshift(U8[13561], 8)), lshift(U8[13562], 16)), lshift(U8[13563], 24)) +I32[arshift((v_A + 8), 2)] = tobit(bor(bor(bor(U8[13556], lshift(U8[13557], 8)), lshift(U8[13558], 16)), lshift(U8[13559], 24))) +I32[arshift((v_A + 12), 2)] = tobit(v_r) +v_r = bor(bor(bor(U8[13568], lshift(U8[13569], 8)), lshift(U8[13570], 16)), lshift(U8[13571], 24)) +I32[arshift((v_A + 16), 2)] = tobit(bor(bor(bor(U8[13564], lshift(U8[13565], 8)), lshift(U8[13566], 16)), lshift(U8[13567], 24))) +I32[arshift((v_A + 20), 2)] = tobit(v_r) +v_r = bor(bor(bor(U8[13576], lshift(U8[13577], 8)), lshift(U8[13578], 16)), lshift(U8[13579], 24)) +I32[arshift((v_A + 24), 2)] = tobit(bor(bor(bor(U8[13572], lshift(U8[13573], 8)), lshift(U8[13574], 16)), lshift(U8[13575], 24))) +I32[arshift((v_A + 28), 2)] = tobit(v_r) +I8[tobit((v_A + 40))] = tobit(55) +I8[tobit((v_A + 41))] = tobit(114) +I8[tobit((v_A + 42))] = tobit(122) +I8[tobit((v_A + 43))] = tobit(116) +I8[tobit((v_A + 44))] = tobit(56) +I8[tobit((v_A + 45))] = tobit(50) +I8[tobit((v_A + 46))] = tobit(115) +I8[tobit((v_A + 47))] = tobit(52) +I8[tobit((v_A + 32))] = tobit(51) +I8[tobit((v_A + 33))] = tobit(99) +I8[tobit((v_A + 34))] = tobit(104) +I8[tobit((v_A + 35))] = tobit(121) +I8[tobit((v_A + 36))] = tobit(97) +I8[tobit((v_A + 37))] = tobit(48) +I8[tobit((v_A + 38))] = tobit(110) +I8[tobit((v_A + 39))] = tobit(107) +v_r = bor(bor(bor(U8[13552], lshift(U8[13553], 8)), lshift(U8[13554], 16)), lshift(U8[13555], 24)) +I32[arshift(v_A, 2)] = tobit(bor(bor(bor(U8[13548], lshift(U8[13549], 8)), lshift(U8[13550], 16)), lshift(U8[13551], 24))) +I32[arshift((v_A + 4), 2)] = tobit(v_r) +v_o = 32 +F.fR(tobit((v_A + 104)), 0, 32, tobit((v_A + 32)), v_A, tobit((v_A - (-64)))) +F.fhA(tobit((v_A + 104))) +do +do +do +v_e = U8[tobit((v_A + 95))] +local t221 = (((tobit(band((v_e - 1), 255)) % 4294967296) > 15) and 1 or 0) +if t221 == 0 then +v_r = 2 +v_o = 31 +t221 = (((tobit(v_e) % 4294967296) < 2) and 1 or 0) +end +if (not (t221 ~= 0)) then +do +v_o = 30 +while true do +do +if (bor(((bor(0, v_e) ~= U8[tobit((tobit((v_A - (-64))) + v_o))]) and 1 or 0), (((tobit(v_e) % 4294967296) <= (tobit(band(255, v_r)) % 4294967296)) and 1 or 0)) ~= 0) then +goto L161 +end +v_r = tobit((v_r + 1)) +v_o = tobit((v_o - 1)) +end +::C162:: +end +end +::B162:: +end +end +end +::L161:: +end +v_r = F.fm(tobit((v_o + 1))) +F.fPA(tobit((v_r + v_o)), 0, (((-1) ~= bor(0, v_o)) and 1 or 0)) +v_e = F.fTA(v_r, tobit((v_A - (-64))), v_o) +v_t = I32[8013] +v_a = F.fm(tobit((v_t + 17))) +v_o = I32[8012] +v_r = F.fPA(tobit((v_t + v_a)), 0, (((tobit(v_t) % 4294967296) < 4294967279) and 17 or 0)) +v_o = F.fTA(v_a, v_o, v_t) +v_t = bor(bor(bor(U8[tobit((v_e + 12))], lshift(U8[tobit((v_e + 13))], 8)), lshift(U8[tobit((v_e + 14))], 16)), lshift(U8[tobit((v_e + 15))], 24)) +v_a = bor(bor(bor(U8[tobit((v_e + 8))], lshift(U8[tobit((v_e + 9))], 8)), lshift(U8[tobit((v_e + 10))], 16)), lshift(U8[tobit((v_e + 11))], 24)) +I8[tobit((v_r + 8))] = tobit(v_a) +I8[tobit((v_r + 9))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_r + 10))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_r + 11))] = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_r + 12))] = tobit(v_t) +I8[tobit((v_r + 13))] = tobit((rshift(v_t, 8) % 4294967296)) +I8[tobit((v_r + 14))] = tobit((rshift(v_t, 16) % 4294967296)) +I8[tobit((v_r + 15))] = tobit((rshift(v_t, 24) % 4294967296)) +v_t = bor(bor(bor(U8[tobit((v_e + 4))], lshift(U8[tobit((v_e + 5))], 8)), lshift(U8[tobit((v_e + 6))], 16)), lshift(U8[tobit((v_e + 7))], 24)) +v_a = bor(bor(bor(U8[bor(0, v_e)], lshift(U8[tobit((v_e + 1))], 8)), lshift(U8[tobit((v_e + 2))], 16)), lshift(U8[tobit((v_e + 3))], 24)) +I8[bor(0, v_r)] = tobit(v_a) +I8[tobit((v_r + 1))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_r + 2))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_r + 3))] = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_r + 4))] = tobit(v_t) +I8[tobit((v_r + 5))] = tobit((rshift(v_t, 8) % 4294967296)) +I8[tobit((v_r + 6))] = tobit((rshift(v_t, 16) % 4294967296)) +I8[tobit((v_r + 7))] = tobit((rshift(v_t, 24) % 4294967296)) +F.fL(v_e) +B = tobit((v_A + 384)) +do return v_o end +end + +F.fG = function(v_A, v_r, v_e, v_n) +local v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_v, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_v = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +do +do +do +v_a = I32[arshift(v_A, 2)] +if (not ((tobit(v_a) % 4294967296) <= U32[arshift((v_A + 4), 2)])) then +do +if (v_e ~= 0) then +v_c = band(1, v_e) +if (1 ~= bor(0, v_e)) then +do +v_u = band((-2), v_e) +while true do +v_t = bxor(I32[arshift((12512 + lshift(bxor(U8[tobit((v_r + v_o))], band(255, v_t)), 2)), 2)], (rshift(v_t, 8) % 4294967296)) +v_t = bxor(I32[arshift((12512 + lshift(bxor(U8[tobit((bor(1, v_o) + v_r))], band(255, v_t)), 2)), 2)], (rshift(v_t, 8) % 4294967296)) +v_o = tobit((v_o + 2)) +v_u = tobit((v_u - 2)) +if not (v_u ~= 0) then goto B164 end +do +end +::C164:: +end +end +::B164:: +end +if (v_c ~= 0) then +v_t = bxor(I32[arshift((12512 + lshift(bxor(U8[tobit((v_r + v_o))], band(255, v_t)), 2)), 2)], (rshift(v_t, 8) % 4294967296)) +end +v_t = imul(v_t, 4097) +else +v_t = 0 +end +do +v_t = imul(bxor((rshift(v_t, 22) % 4294967296), v_t), 17) +v_t = imul(bxor((rshift(v_t, 9) % 4294967296), v_t), 1025) +v_t = imul(bxor((rshift(v_t, 2) % 4294967296), v_t), 129) +v_t = tobit(fmod((tobit(imul(bxor((rshift(v_t, 15) % 4294967296), (rshift(v_t, 3) % 4294967296)), (-1640531535))) % 4294967296), (tobit(v_a) % 4294967296))) +v_o = I32[arshift((v_A + 8), 2)] +v_A = tobit((lshift(v_t, 4) + v_o)) +v_w = I32[arshift((8 + v_A), 2)] +local t222 = bor(((not (v_w ~= 0)) and 1 or 0), ((I32[arshift((v_A + 4), 2)] ~= bor(0, v_e)) and 1 or 0)) +if t222 == 0 then +t222 = F.fSA(I32[arshift((v_o + lshift(v_t, 4)), 2)], v_r, v_e) +end +if (t222 ~= 0) then +do +local t223 = v_o +v_A = tobit(fmod((tobit((v_t + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_p = I32[arshift((8 + tobit((t223 + lshift(v_A, 4)))), 2)] +local t224 = (not (v_p ~= 0)) +if not t224 then +v_u = tobit((v_o + lshift(v_A, 4))) +t224 = (I32[arshift((4 + v_u), 2)] ~= bor(0, v_e)) +end +if (t224 or (F.fSA(I32[arshift(v_u, 2)], v_r, v_e) ~= 0)) then +do +local t225 = v_o +v_u = tobit(fmod((tobit((v_A + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_c = tobit((t225 + lshift(v_u, 4))) +v_d = I32[arshift((8 + v_c), 2)] +if ((bor(((not (v_d ~= 0)) and 1 or 0), ((I32[arshift((v_c + 4), 2)] ~= bor(0, v_e)) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_o + lshift(v_u, 4)), 2)], v_r, v_e) ~= 0)) then +do +local t226 = v_o +v_c = tobit(fmod((tobit((v_u + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_h = I32[arshift((8 + tobit((t226 + lshift(v_c, 4)))), 2)] +local t227 = (not (v_h ~= 0)) +if not t227 then +v_s = tobit((v_o + lshift(v_c, 4))) +t227 = (I32[arshift((4 + v_s), 2)] ~= bor(0, v_e)) +end +if (t227 or (F.fSA(I32[arshift(v_s, 2)], v_r, v_e) ~= 0)) then +do +local t228 = v_o +v_s = tobit(fmod((tobit((v_c + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_l = tobit((t228 + lshift(v_s, 4))) +v_k = I32[arshift((8 + v_l), 2)] +if ((bor(((not (v_k ~= 0)) and 1 or 0), ((I32[arshift((v_l + 4), 2)] ~= bor(0, v_e)) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_o + lshift(v_s, 4)), 2)], v_r, v_e) ~= 0)) then +do +local t229 = v_o +v_l = tobit(fmod((tobit((v_s + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_C = I32[arshift((8 + tobit((t229 + lshift(v_l, 4)))), 2)] +local t230 = (not (v_C ~= 0)) +if not t230 then +v_v = tobit((v_o + lshift(v_l, 4))) +t230 = (I32[arshift((4 + v_v), 2)] ~= bor(0, v_e)) +end +if (t230 or (F.fSA(I32[arshift(v_v, 2)], v_r, v_e) ~= 0)) then +do +local t231 = v_o +v_v = tobit(fmod((tobit((v_l + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_y = tobit((t231 + lshift(v_v, 4))) +v_E = I32[arshift((8 + v_y), 2)] +if ((bor(((not (v_E ~= 0)) and 1 or 0), ((I32[arshift((v_y + 4), 2)] ~= bor(0, v_e)) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_o + lshift(v_v, 4)), 2)], v_r, v_e) ~= 0)) then +do +local t232 = v_o +v_a = tobit(fmod((tobit((v_v + 1)) % 4294967296), (tobit(v_a) % 4294967296))) +v_y = I32[arshift((8 + tobit((t232 + lshift(v_a, 4)))), 2)] +local t233 = (not (v_y ~= 0)) +if not t233 then +v_o = tobit((v_o + lshift(v_a, 4))) +t233 = (I32[arshift((4 + v_o), 2)] ~= bor(0, v_e)) +end +if (t233 or (F.fSA(I32[arshift(v_o, 2)], v_r, v_e) ~= 0)) then +do +v_o = 0 +if (tobit((v_y + tobit((tobit((tobit((tobit((tobit((tobit((v_p + v_w)) + v_d)) + v_h)) + v_k)) + v_C)) + v_E)))) >= 8) then +goto L163 +end +do +v_e = bor(((not (v_w ~= 0)) and 1 or 0), ((not (v_p ~= 0)) and 1 or 0)) +v_p = bor(v_e, ((not (v_d ~= 0)) and 1 or 0)) +v_d = bor(v_p, ((not (v_h ~= 0)) and 1 or 0)) +v_h = bor(v_d, ((not (v_k ~= 0)) and 1 or 0)) +v_k = bor(v_h, ((not (v_C ~= 0)) and 1 or 0)) +v_r = bor(v_k, ((not (v_E ~= 0)) and 1 or 0)) +v_t = ((v_r ~= 0) and ((v_k ~= 0) and ((v_h ~= 0) and ((v_d ~= 0) and ((v_p ~= 0) and ((v_e ~= 0) and ((v_w ~= 0) and v_A or v_t) or v_u) or v_c) or v_s) or v_l) or v_v) or v_a) +local t234 = ((not (v_r ~= 0)) and 1 or 0) +if t234 ~= 0 then +t234 = v_y +end +if (t234 ~= 0) then +goto L163 +end +end +end +else +v_t = v_a +end +end +else +v_t = v_v +end +end +else +v_t = v_l +end +end +else +v_t = v_s +end +end +else +v_t = v_c +end +end +else +v_t = v_u +end +end +else +v_t = v_A +end +end +end +end +I32[arshift(v_n, 2)] = tobit(v_t) +v_o = 1 +end +end +end +end +::L163:: +end +do return v_o end +end + +F.fJ = function(v_A, v_r) +local v_e, v_n, v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_e = 0 +v_n = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +do +do +do +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_n = bor(bor(bor(lshift(v_e, 24), band(lshift(v_e, 8), 16711680)), band((rshift(v_e, 8) % 4294967296), 65280)), (rshift(v_e, 24) % 4294967296)) +v_t = U8[bor(0, v_r)] +v_e = bor(bor(bor(U8[tobit((v_r + 3))], lshift(U8[tobit((v_r + 1))], 16)), lshift(v_t, 24)), lshift(U8[tobit((v_r + 2))], 8)) +local t235 = (-269488145) +v_a = band(252645135, bxor((rshift(v_n, 4) % 4294967296), v_e)) +v_r = bor(band(t235, bxor(lshift(v_a, 4), v_n)), band(269488144, v_e)) +v_o = band(268435455, bor(bor(bor(bor(bor(bor(bor(lshift(I32[arshift((1088 + band((rshift(v_r, 7) % 4294967296), 60)), 2)], 2), lshift(I32[arshift((1088 + band(lshift(v_r, 1), 60)), 2)], 3)), lshift(I32[arshift((1088 + band((rshift(v_r, 15) % 4294967296), 60)), 2)], 1)), I32[arshift((1088 + band((rshift(v_r, 23) % 4294967296), 60)), 2)]), lshift(I32[arshift((1088 + band((rshift(v_r, 2) % 4294967296), 60)), 2)], 7)), lshift(I32[arshift((1088 + band((rshift(v_r, 10) % 4294967296), 60)), 2)], 6)), lshift(I32[arshift((1088 + band((rshift(v_r, 18) % 4294967296), 60)), 2)], 5)), lshift(I32[arshift((1088 + band((rshift(v_r, 26) % 4294967296), 60)), 2)], 4))) +v_r = bxor(v_e, v_a) +v_n = band(268435455, bor(bor(bor(bor(bor(bor(bor(lshift(I32[arshift((1024 + band((rshift(v_r, 6) % 4294967296), 60)), 2)], 2), lshift(I32[arshift((1024 + lshift(band(15, v_r), 2)), 2)], 3)), lshift(I32[arshift((1024 + band((rshift(v_r, 14) % 4294967296), 60)), 2)], 1)), I32[arshift((1024 + band((rshift(v_r, 22) % 4294967296), 60)), 2)]), lshift(I32[arshift((1024 + band((rshift(v_r, 3) % 4294967296), 60)), 2)], 7)), lshift(I32[arshift((1024 + band((rshift(v_r, 11) % 4294967296), 60)), 2)], 6)), lshift(I32[arshift((1024 + band((rshift(v_r, 19) % 4294967296), 60)), 2)], 5)), lshift(I32[arshift((1024 + band((rshift(v_t, 3) % 4294967296), 28)), 2)], 4))) +end +while true do +if (bor(((not (band(lshift(1, v_c), 33027) ~= 0)) and 1 or 0), (((tobit(v_c) % 4294967296) > 15) and 1 or 0)) ~= 0) then +v_a = tobit((rshift(v_n, 26) % 4294967296)) +v_s = tobit((rshift(v_o, 26) % 4294967296)) +v_r = lshift(v_o, 2) +v_u = band(268435452, v_r) +v_e = lshift(v_n, 2) +v_t = band(268435452, v_e) +else +v_a = tobit((rshift(v_n, 27) % 4294967296)) +v_s = tobit((rshift(v_o, 27) % 4294967296)) +v_r = lshift(v_o, 1) +v_u = band(268435454, v_r) +v_e = lshift(v_n, 1) +v_t = band(268435454, v_e) +end +v_n = bor(v_t, v_a) +v_l = lshift(v_n, 10) +v_o = bor(v_u, v_s) +v_b = tobit((rshift(v_o, 3) % 4294967296)) +v_u = tobit((rshift(v_u, 14) % 4294967296)) +I32[arshift(v_A, 2)] = tobit(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(band((rshift(v_r, 24) % 4294967296), 1), band((rshift(v_r, 26) % 4294967296), 2)), band((rshift(v_r, 18) % 4294967296), 4)), band(8, v_b)), band((rshift(v_r, 10) % 4294967296), 16)), band((rshift(v_r, 5) % 4294967296), 32)), band(512, v_u)), band((rshift(v_r, 1) % 4294967296), 1024)), band(lshift(v_o, 6), 2048)), band((rshift(v_r, 4) % 4294967296), 4096)), band((rshift(v_r, 13) % 4294967296), 8192)), band(256, v_r)), band((rshift(v_e, 10) % 4294967296), 65536)), band(lshift(v_t, 2), 131072)), band(262144, v_l)), band((rshift(v_e, 1) % 4294967296), 1048576)), band(lshift(v_e, 9), 2097152)), band(lshift(v_e, 6), 16777216)), band(lshift(v_n, 18), 34078720)), band(lshift(v_e, 14), 134217728)), band(lshift(v_t, 4), 603979776)), band(lshift(v_a, 28), 268435456))) +v_a = band((rshift(v_r, 21) % 4294967296), 2) +v_v = band((rshift(v_r, 7) % 4294967296), 32) +v_g = band((rshift(v_r, 9) % 4294967296), 1024) +v_p = band((rshift(v_r, 2) % 4294967296), 8192) +v_d = band(512, v_r) +v_r = lshift(v_n, 15) +I32[arshift((v_A + 4), 2)] = tobit(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(bor(v_a, band(lshift(v_s, 2), 4)), band(17, v_b)), v_v), band(lshift(v_o, 7), 256)), v_g), band(2056, v_u)), band(lshift(v_o, 8), 4096)), v_p), v_d), band((rshift(v_e, 4) % 4294967296), 65536)), band((rshift(v_e, 6) % 4294967296), 262144)), band(lshift(v_t, 3), 524288)), band(lshift(v_e, 11), 1048576)), band(lshift(v_n, 16), 2097152)), band(lshift(v_t, 1), 16777216)), band((rshift(v_e, 2) % 4294967296), 33554432)), band(lshift(v_n, 22), 67108864)), band(134217728, v_l)), band(536870912, v_r)), band(lshift(v_e, 17), 268435456)), band(131072, v_r))) +v_A = tobit((v_A + 8)) +v_c = tobit((v_c + 1)) +if not (16 ~= bor(0, v_c)) then goto B165 end +do +end +::C165:: +end +end +::B165:: +end +end + +F.fq = function(v_A) + +if (v_A ~= 0) then +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +I8[tobit((v_A + 14))] = tobit(0) +I8[tobit((v_A + 15))] = tobit(0) +I8[tobit((v_A + 16))] = tobit(0) +I8[tobit((v_A + 17))] = tobit(0) +I8[tobit((v_A + 18))] = tobit(0) +I8[tobit((v_A + 19))] = tobit(0) +I8[tobit((v_A + 20))] = tobit(0) +I8[tobit((v_A + 21))] = tobit(0) +I8[tobit((v_A + 22))] = tobit(0) +I8[tobit((v_A + 23))] = tobit(0) +I8[tobit((v_A + 24))] = tobit(0) +I8[tobit((v_A + 25))] = tobit(0) +I8[tobit((v_A + 26))] = tobit(0) +I8[tobit((v_A + 27))] = tobit(0) +I8[tobit((v_A + 28))] = tobit(0) +I8[tobit((v_A + 29))] = tobit(0) +I8[tobit((v_A + 30))] = tobit(0) +I8[tobit((v_A + 31))] = tobit(0) +I8[tobit((v_A + 32))] = tobit(0) +I8[tobit((v_A + 33))] = tobit(0) +I8[tobit((v_A + 34))] = tobit(0) +I8[tobit((v_A + 35))] = tobit(0) +I8[tobit((v_A + 36))] = tobit(0) +I8[tobit((v_A + 37))] = tobit(0) +I8[tobit((v_A + 38))] = tobit(0) +I8[tobit((v_A + 39))] = tobit(0) +I8[tobit((v_A + 40))] = tobit(0) +I8[tobit((v_A + 41))] = tobit(0) +I8[tobit((v_A + 42))] = tobit(0) +I8[tobit((v_A + 43))] = tobit(0) +I8[tobit((v_A + 44))] = tobit(0) +I8[tobit((v_A + 45))] = tobit(0) +I8[tobit((v_A + 46))] = tobit(0) +I8[tobit((v_A + 47))] = tobit(0) +I8[tobit((v_A + 48))] = tobit(0) +I8[tobit((v_A + 49))] = tobit(0) +I8[tobit((v_A + 50))] = tobit(0) +I8[tobit((v_A + 51))] = tobit(0) +I8[tobit((v_A + 52))] = tobit(0) +I8[tobit((v_A + 53))] = tobit(0) +I8[tobit((v_A + 54))] = tobit(0) +I8[tobit((v_A + 55))] = tobit(0) +I8[tobit((v_A + 56))] = tobit(0) +I8[tobit((v_A + 57))] = tobit(0) +I8[tobit((v_A + 58))] = tobit(0) +I8[tobit((v_A + 59))] = tobit(0) +I8[tobit((v_A + 60))] = tobit(0) +I8[tobit((v_A + 61))] = tobit(0) +I8[tobit((v_A + 62))] = tobit(0) +I8[tobit((v_A + 63))] = tobit(0) +I8[tobit((v_A + 64))] = tobit(0) +I8[tobit((v_A + 65))] = tobit(0) +I8[tobit((v_A + 66))] = tobit(0) +I8[tobit((v_A + 67))] = tobit(0) +I8[tobit((v_A + 68))] = tobit(0) +I8[tobit((v_A + 69))] = tobit(0) +I8[tobit((v_A + 70))] = tobit(0) +I8[tobit((v_A + 71))] = tobit(0) +I8[tobit((v_A + 72))] = tobit(0) +I8[tobit((v_A + 73))] = tobit(0) +I8[tobit((v_A + 74))] = tobit(0) +I8[tobit((v_A + 75))] = tobit(0) +I8[tobit((v_A + 76))] = tobit(0) +I8[tobit((v_A + 77))] = tobit(0) +I8[tobit((v_A + 78))] = tobit(0) +I8[tobit((v_A + 79))] = tobit(0) +I8[tobit((v_A + 80))] = tobit(0) +I8[tobit((v_A + 81))] = tobit(0) +I8[tobit((v_A + 82))] = tobit(0) +I8[tobit((v_A + 83))] = tobit(0) +I8[tobit((v_A + 84))] = tobit(0) +I8[tobit((v_A + 85))] = tobit(0) +I8[tobit((v_A + 86))] = tobit(0) +I8[tobit((v_A + 87))] = tobit(0) +I8[tobit((v_A + 88))] = tobit(0) +I8[tobit((v_A + 89))] = tobit(0) +I8[tobit((v_A + 90))] = tobit(0) +I8[tobit((v_A + 91))] = tobit(0) +I8[tobit((v_A + 92))] = tobit(0) +I8[tobit((v_A + 93))] = tobit(0) +I8[tobit((v_A + 94))] = tobit(0) +I8[tobit((v_A + 95))] = tobit(0) +I8[tobit((v_A + 96))] = tobit(0) +I8[tobit((v_A + 97))] = tobit(0) +I8[tobit((v_A + 98))] = tobit(0) +I8[tobit((v_A + 99))] = tobit(0) +I8[tobit((v_A + 100))] = tobit(0) +I8[tobit((v_A + 101))] = tobit(0) +I8[tobit((v_A + 102))] = tobit(0) +I8[tobit((v_A + 103))] = tobit(0) +I8[tobit((v_A + 104))] = tobit(0) +I8[tobit((v_A + 105))] = tobit(0) +I8[tobit((v_A + 106))] = tobit(0) +I8[tobit((v_A + 107))] = tobit(0) +I8[tobit((v_A + 108))] = tobit(0) +I8[tobit((v_A + 109))] = tobit(0) +I8[tobit((v_A + 110))] = tobit(0) +I8[tobit((v_A + 111))] = tobit(0) +I8[tobit((v_A + 112))] = tobit(0) +I8[tobit((v_A + 113))] = tobit(0) +I8[tobit((v_A + 114))] = tobit(0) +I8[tobit((v_A + 115))] = tobit(0) +I8[tobit((v_A + 116))] = tobit(0) +I8[tobit((v_A + 117))] = tobit(0) +I8[tobit((v_A + 118))] = tobit(0) +I8[tobit((v_A + 119))] = tobit(0) +I8[tobit((v_A + 120))] = tobit(0) +I8[tobit((v_A + 121))] = tobit(0) +I8[tobit((v_A + 122))] = tobit(0) +I8[tobit((v_A + 123))] = tobit(0) +I8[tobit((v_A + 124))] = tobit(0) +I8[tobit((v_A + 125))] = tobit(0) +I8[tobit((v_A + 126))] = tobit(0) +I8[tobit((v_A + 127))] = tobit(0) +end +end + +F.fW = function(v_A, v_r, v_e, v_n) +local v_t, v_o, v_f, v_a, v_u = 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_f = 0 +v_a = 0 +v_u = 0 +v_a = 16 +v_t = (-24832) +do +do +do +local t236 = (v_A ~= 0) +if t236 then +v_o = I32[arshift(v_A, 2)] +t236 = (not (bor(((not (v_o ~= 0)) and 1 or 0), ((not (v_n ~= 0)) and 1 or 0)) ~= 0)) +end +if t236 then +do +I32[arshift(v_n, 2)] = tobit(0) +v_f = I32[arshift((v_o + 24), 2)] +if (not (v_f ~= 0)) then +do return (-25472) end +end +do +do +v_u = I32[arshift((v_o + 4), 2)] +do +local sw169 = tobit((v_u - 1)) +if sw169 == 5 then goto K169_0 +elseif sw169 == 0 then goto K169_1 +else goto K169_2 end +::K169_0:: +do +goto L168 +end +::K169_1:: +do +goto S169 +end +::K169_2:: +do +goto L167 +end +end +::S169:: +v_t = (-25216) +if (16 ~= bor(0, v_f)) then +goto L166 +end +I32[arshift(v_n, 2)] = tobit(16) +do return bor(0, YA[I32[arshift((I32[arshift((v_o + 28), 2)] + 4), 2)]](I32[arshift((v_A + 60), 2)], I32[arshift((v_A + 8), 2)], v_r, v_e)) end +end +::L168:: +I32[arshift(v_n, 2)] = tobit(16) +do return F.fU(I32[arshift((v_A + 60), 2)], 16, v_r, v_e) end +end +::L167:: +do +local t237 = bor(I32[arshift((v_A + 36), 2)], fmod(16, (tobit(v_f) % 4294967296))) +if t237 ~= 0 then +t237 = ((bor(0, v_r) == bor(0, v_e)) and 1 or 0) +end +if (not (t237 ~= 0)) then +do +v_t = (-24704) +do +do +do +do +do +do +do +do +do +do +do +local sw173 = tobit((v_u - 2)) +if sw173 == 0 then goto K173_0 +elseif sw173 == 1 then goto K173_1 +elseif sw173 == 3 then goto K173_2 +elseif sw173 == 5 then goto K173_3 +else goto K173_4 end +::K173_0:: +do +do +do +do +do +do +do +do +do +local sw176 = I32[arshift((v_A + 8), 2)] +if sw176 == 0 then goto K176_0 +elseif sw176 == 1 then goto K176_1 +else goto K176_2 end +::K176_0:: +do +do +local t238 = v_f +v_t = I32[arshift((v_A + 36), 2)] +v_o = tobit((t238 - v_t)) +if (not (I32[arshift((v_A + 12), 2)] ~= 0)) then +goto L175 +end +end +if ((tobit(v_o) % 4294967296) >= 16) then +goto L171 +end +goto L174 +end +::K176_1:: +do +goto S176 +end +::K176_2:: +do +goto L174 +end +end +::S176:: +end +do +local t239 = v_f +v_t = I32[arshift((v_A + 36), 2)] +if ((tobit((t239 - v_t)) % 4294967296) <= 16) then +goto L174 +end +end +goto L171 +end +end +::L175:: +end +if ((tobit(v_o) % 4294967296) > 16) then +goto L171 +end +end +end +::L174:: +end +do +v_t = I32[arshift((v_A + 36), 2)] +if (v_t ~= 0) then +do +do +v_a = tobit((v_A + 20)) +local t240 = tobit((v_a + v_t)) +local t241 = v_r +v_o = tobit((v_f - v_t)) +F.fTA(t240, t241, v_o) +v_t = bor(0, YA[I32[arshift((I32[arshift((I32[arshift(v_A, 2)] + 28), 2)] + 8), 2)]](I32[arshift((v_A + 60), 2)], I32[arshift((v_A + 8), 2)], v_f, tobit((v_A + 40)), v_a, v_e)) +if (v_t ~= 0) then +goto L166 +end +end +I32[arshift(v_n, 2)] = tobit((v_f + I32[arshift(v_n, 2)])) +I32[arshift((v_A + 36), 2)] = tobit(0) +v_a = tobit((16 - v_o)) +v_e = tobit((v_e + v_f)) +v_r = tobit((v_r + v_o)) +end +end +end +v_t = 0 +if (not (v_a ~= 0)) then +goto L166 +end +do +v_o = tobit(fmod((tobit(v_a) % 4294967296), (tobit(v_f) % 4294967296))) +if not (v_o ~= 0) then +v_o = 0 +if not (I32[arshift((v_A + 8), 2)] ~= 0) then +v_o = ((I32[arshift((v_A + 12), 2)] ~= 0) and v_f or 0) +end +end +local t242 = tobit((v_A + 20)) +v_f = tobit((v_a - v_o)) +F.fTA(t242, tobit((v_f + v_r)), v_o) +I32[arshift((v_A + 36), 2)] = tobit((I32[arshift((v_A + 36), 2)] + v_o)) +if (not (v_f ~= 0)) then +goto L166 +end +end +v_t = bor(0, YA[I32[arshift((I32[arshift((I32[arshift(v_A, 2)] + 28), 2)] + 8), 2)]](I32[arshift((v_A + 60), 2)], I32[arshift((v_A + 8), 2)], v_f, tobit((v_A + 40)), v_r, v_e)) +if (v_t ~= 0) then +goto L166 +end +I32[arshift(v_n, 2)] = tobit((v_f + I32[arshift(v_n, 2)])) +goto L170 +end +::K173_1:: +do +v_t = bor(0, YA[I32[arshift((I32[arshift((v_o + 28), 2)] + 12), 2)]](I32[arshift((v_A + 60), 2)], I32[arshift((v_A + 8), 2)], 16, tobit((v_A + 36)), tobit((v_A + 40)), v_r, v_e)) +if (not (v_t ~= 0)) then +goto L172 +end +goto L166 +end +::K173_2:: +do +v_t = bor(0, YA[I32[arshift((I32[arshift((v_o + 28), 2)] + 16), 2)]](I32[arshift((v_A + 60), 2)], 16, tobit((v_A + 36)), tobit((v_A + 40)), tobit((v_A + 20)), v_r, v_e)) +if (not (v_t ~= 0)) then +goto L172 +end +goto L166 +end +::K173_3:: +do +goto S173 +end +::K173_4:: +do +goto L166 +end +end +::S173:: +end +v_t = bor(0, YA[I32[arshift((I32[arshift((v_o + 28), 2)] + 20), 2)]](I32[arshift((v_A + 60), 2)], 16, v_r, v_e)) +if (v_t ~= 0) then +goto L166 +end +end +end +::L172:: +end +I32[arshift(v_n, 2)] = tobit(16) +goto L170 +end +end +::L171:: +end +F.fTA(tobit((20 + tobit((v_A + v_t)))), v_r, 16) +I32[arshift((v_A + 36), 2)] = tobit((I32[arshift((v_A + 36), 2)] + 16)) +end +end +::L170:: +end +v_t = 0 +end +end +end +end +end +end +end +::L166:: +end +do return v_t end +end + +F.fV = function(v_A) +local v_r, v_e, v_t, v_o, v_a, v_u = 0, 0, 0, 0, 0, 0 +v_r = 0 +v_e = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +do +local t243 = (v_A ~= 0) +if not t243 then +v_A = I32[8016] +t243 = (v_A ~= 0) +end +if t243 then +do +v_t = 10657 +v_o = tobit((B - 32)) +I32[arshift((24 + v_o), 2)] = tobit(0) +I32[arshift((v_o + 28), 2)] = tobit(0) +I32[arshift((v_o + 16), 2)] = tobit(0) +I32[arshift((v_o + 20), 2)] = tobit(0) +I32[arshift((v_o + 8), 2)] = tobit(0) +I32[arshift((v_o + 12), 2)] = tobit(0) +I32[arshift(v_o, 2)] = tobit(0) +I32[arshift((v_o + 4), 2)] = tobit(0) +v_e = 0 +v_r = U8[10657] +if (v_r ~= 0) then +v_u = v_A +v_e = U8[10658] +if (v_e ~= 0) then +do +v_a = tobit((v_o + band((rshift(v_r, 3) % 4294967296), 28))) +I32[arshift(v_a, 2)] = tobit(bor(I32[arshift(v_a, 2)], lshift(1, v_r))) +while true do +v_r = band(31, v_e) +v_a = tobit((rshift(v_e, 3) % 4294967296)) +v_e = U8[tobit((v_t + 2))] +v_a = tobit((v_o + band(28, v_a))) +I32[arshift(v_a, 2)] = tobit(bor(I32[arshift(v_a, 2)], lshift(1, v_r))) +v_t = tobit((v_t + 1)) +if not (v_e ~= 0) then goto B177 end +do +end +::C177:: +end +end +::B177:: +v_r = v_A +do +v_e = U8[bor(0, v_u)] +if (v_e ~= 0) then +do +v_t = v_u +while true do +do +if (not (band((rshift(I32[arshift((v_o + band((rshift(v_e, 3) % 4294967296), 28)), 2)], v_e) % 4294967296), 1) ~= 0)) then +v_r = v_t +goto L178 +end +v_e = U8[tobit((v_t + 1))] +v_r = tobit((v_t + 1)) +v_t = v_r +if (not (v_e ~= 0)) then +goto B179 +end +end +::C179:: +end +end +::B179:: +end +end +::L178:: +v_e = tobit((v_r - v_u)) +else +do +v_e = v_A +while true do +v_t = v_e +v_e = tobit((v_e + 1)) +if not (bor(0, v_r) == U8[bor(0, v_t)]) then goto B180 end +do +end +::C180:: +end +end +::B180:: +v_e = tobit((v_t - v_u)) +end +end +v_e = tobit((v_e + v_A)) +if (not (U8[bor(0, v_e)] ~= 0)) then +I32[8016] = tobit(0) +do return 0 end +end +v_u = v_e +v_A = 10657 +v_o = tobit((B - 32)) +B = v_o +v_a = I8[10657] +do +do +do +if ((U8[10658] ~= 0) and (v_a ~= 0)) then +F.fPA(v_o, 0, 32) +v_r = U8[10657] +if (v_r ~= 0) then +do +while true do +v_t = tobit((v_o + band((rshift(v_r, 3) % 4294967296), 28))) +I32[arshift(v_t, 2)] = tobit(bor(I32[arshift(v_t, 2)], lshift(1, v_r))) +v_r = U8[tobit((v_A + 1))] +v_A = tobit((v_A + 1)) +if not (v_r ~= 0) then goto B182 end +do +end +::C182:: +end +end +::B182:: +end +v_t = v_e +v_r = U8[bor(0, v_e)] +if (v_r ~= 0) then +do +v_A = v_u +while true do +do +if (band((rshift(I32[arshift((v_o + band((rshift(v_r, 3) % 4294967296), 28)), 2)], v_r) % 4294967296), 1) ~= 0) then +v_t = v_A +goto L181 +end +v_r = U8[tobit((v_A + 1))] +v_t = tobit((v_A + 1)) +v_A = v_t +if (not (v_r ~= 0)) then +goto B183 +end +end +::C183:: +end +end +::B183:: +end +else +do +v_A = v_e +do +do +do +v_t = band(255, v_a) +if (v_t ~= 0) then +do +if (band(3, v_A) ~= 0) then +do +while true do +do +v_r = U8[bor(0, v_A)] +if (bor(((not (v_r ~= 0)) and 1 or 0), ((bor(0, v_r) == band(255, v_a)) and 1 or 0)) ~= 0) then +goto L184 +end +v_A = tobit((v_A + 1)) +if (not (band(3, v_A) ~= 0)) then +goto B185 +end +end +::C185:: +end +end +::B185:: +end +do +do +do +local t244 = (-1) +v_r = I32[arshift(v_A, 2)] +if (not (band(band(bxor(t244, v_r), (v_r - 16843009)), (-2139062144)) ~= 0)) then +do +do +v_t = imul(v_t, 16843009) +while true do +do +do +do +local t245 = (-1) +v_r = bxor(v_r, v_t) +if (band(band(bxor(t245, v_r), (v_r - 16843009)), (-2139062144)) ~= 0) then +goto L186 +end +end +v_r = I32[arshift((v_A + 4), 2)] +v_A = tobit((v_A + 4)) +if (band(band((v_r - 16843009), bxor((-1), v_r)), (-2139062144)) ~= 0) then +goto B187 +end +end +end +::C187:: +end +end +::B187:: +end +end +end +end +::L186:: +end +do +do +while true do +do +v_t = v_A +v_r = U8[bor(0, v_A)] +local t246 = v_r +if t246 ~= 0 then +v_A = tobit((v_t + 1)) +t246 = ((bor(0, v_r) ~= band(255, v_a)) and 1 or 0) +end +if not (t246 ~= 0) then goto B188 end +end +do +end +::C188:: +end +end +::B188:: +end +v_A = v_t +end +else +v_A = tobit((F.fpA(v_A) + v_A)) +end +end +end +::L184:: +end +v_t = v_A +end +end +end +end +::L181:: +end +B = tobit((v_o + 32)) +v_A = tobit((tobit((v_t - v_u)) + v_e)) +if (U8[bor(0, v_A)] ~= 0) then +I32[8016] = tobit((v_A + 1)) +I8[bor(0, v_A)] = tobit(0) +do return v_e end +end +I32[8016] = tobit(0) +end +end +end +do return v_e end +end + +F.fZ = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u = 0, 0, 0, 0 +v_a = 0 +v_u = 0 +v_t = tobit((B - 288)) +B = v_t +F.fPA(tobit((v_t + 8)), 0, 280) +I32[arshift((v_A + 4), 2)] = tobit((v_A + 8)) +v_o = F.fM(tobit((v_t + 8)), v_r, v_e) +if (not (v_o ~= 0)) then +v_e = I32[arshift((v_t + 8), 2)] +I32[arshift(v_A, 2)] = tobit(v_e) +v_u = I32[arshift((v_t + 12), 2)] +v_a = tobit((v_u + lshift(v_e, 4))) +I32[arshift((v_A + 8), 2)] = tobit(I32[arshift(v_a, 2)]) +I32[arshift((v_A + 12), 2)] = tobit(I32[arshift((v_a + 4), 2)]) +I32[arshift((v_A + 16), 2)] = tobit(I32[arshift((v_a + 8), 2)]) +I32[arshift((v_A + 20), 2)] = tobit(I32[arshift((v_a + 12), 2)]) +v_A = tobit((v_A + 24)) +v_r = tobit((v_a - 16)) +if (bor(0, v_e) < 2) then +v_e = tobit((v_a + 16)) +else +do +while true do +v_a = I32[arshift(v_r, 2)] +I32[arshift(v_A, 2)] = tobit(bxor(bxor(bxor(I32[arshift((24560 + lshift(U8[tobit((23280 + band((rshift(v_a, 8) % 4294967296), 255)))], 2)), 2)], I32[arshift((23536 + lshift(U8[tobit((23280 + band(255, v_a)))], 2)), 2)]), I32[arshift((25584 + lshift(U8[tobit((23280 + band((rshift(v_a, 16) % 4294967296), 255)))], 2)), 2)]), I32[arshift((26608 + lshift(U8[tobit((23280 + tobit((rshift(v_a, 24) % 4294967296))))], 2)), 2)])) +v_a = I32[arshift((v_r + 4), 2)] +I32[arshift((v_A + 4), 2)] = tobit(bxor(bxor(bxor(I32[arshift((24560 + lshift(U8[tobit((23280 + band((rshift(v_a, 8) % 4294967296), 255)))], 2)), 2)], I32[arshift((23536 + lshift(U8[tobit((23280 + band(255, v_a)))], 2)), 2)]), I32[arshift((25584 + lshift(U8[tobit((23280 + band((rshift(v_a, 16) % 4294967296), 255)))], 2)), 2)]), I32[arshift((26608 + lshift(U8[tobit((23280 + tobit((rshift(v_a, 24) % 4294967296))))], 2)), 2)])) +v_a = I32[arshift((v_r + 8), 2)] +I32[arshift((v_A + 8), 2)] = tobit(bxor(bxor(bxor(I32[arshift((24560 + lshift(U8[tobit((23280 + band((rshift(v_a, 8) % 4294967296), 255)))], 2)), 2)], I32[arshift((23536 + lshift(U8[tobit((23280 + band(255, v_a)))], 2)), 2)]), I32[arshift((25584 + lshift(U8[tobit((23280 + band((rshift(v_a, 16) % 4294967296), 255)))], 2)), 2)]), I32[arshift((26608 + lshift(U8[tobit((23280 + tobit((rshift(v_a, 24) % 4294967296))))], 2)), 2)])) +v_a = I32[arshift((v_r + 12), 2)] +I32[arshift((v_A + 12), 2)] = tobit(bxor(bxor(bxor(I32[arshift((24560 + lshift(U8[tobit((23280 + band((rshift(v_a, 8) % 4294967296), 255)))], 2)), 2)], I32[arshift((23536 + lshift(U8[tobit((23280 + band(255, v_a)))], 2)), 2)]), I32[arshift((25584 + lshift(U8[tobit((23280 + band((rshift(v_a, 16) % 4294967296), 255)))], 2)), 2)]), I32[arshift((26608 + lshift(U8[tobit((23280 + tobit((rshift(v_a, 24) % 4294967296))))], 2)), 2)])) +v_r = tobit((v_r - 16)) +v_A = tobit((v_A + 16)) +v_a = ((bor(0, v_e) > 2) and 1 or 0) +v_e = tobit((v_e - 1)) +if not (v_a ~= 0) then goto B189 end +do +end +::C189:: +end +end +::B189:: +v_r = v_u +v_e = tobit((v_r + 32)) +end +I32[arshift(v_A, 2)] = tobit(I32[arshift(v_r, 2)]) +I32[arshift((v_A + 4), 2)] = tobit(I32[arshift((v_e - 28), 2)]) +I32[arshift((v_A + 8), 2)] = tobit(I32[arshift((v_e - 24), 2)]) +I32[arshift((v_A + 12), 2)] = tobit(I32[arshift((v_e - 20), 2)]) +end +do +v_r = 266 +v_A = tobit((v_t + 8)) +while true do +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +if not (v_r ~= 0) then goto B190 end +do +v_A = tobit((v_A + 14)) +v_r = tobit((v_r - 14)) +end +::C190:: +end +end +::B190:: +B = tobit((v_t + 288)) +do return v_o end +end + +F.fz = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c = 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +do +do +do +v_t = bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24)) +v_t = bor(bor(bor(lshift(v_t, 24), band(lshift(v_t, 8), 16711680)), band((rshift(v_t, 8) % 4294967296), 65280)), (rshift(v_t, 24) % 4294967296)) +local t248 = v_t +local t247 = (rshift(v_t, 4) % 4294967296) +v_r = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_r = bor(bor(bor(lshift(v_r, 24), band(lshift(v_r, 8), 16711680)), band((rshift(v_r, 8) % 4294967296), 65280)), (rshift(v_r, 24) % 4294967296)) +v_o = band(252645135, bxor(t247, v_r)) +v_t = bxor(t248, lshift(v_o, 4)) +v_o = bxor(v_o, v_r) +local t249 = v_o +v_r = bxor((rshift(v_t, 16) % 4294967296), band(65535, v_o)) +v_o = bxor(t249, v_r) +local t251 = v_o +local t250 = (rshift(v_o, 2) % 4294967296) +v_r = bxor(v_t, lshift(v_r, 16)) +v_t = band(858993459, bxor(t250, v_r)) +v_o = bxor(t251, lshift(v_t, 2)) +local t252 = (rshift(v_o, 8) % 4294967296) +v_r = bxor(v_r, v_t) +v_t = band(16711935, bxor(t252, v_r)) +v_o = F.fKA(bxor(lshift(v_t, 8), v_o), 1) +v_a = v_o +local t254 = v_a +local t253 = (-1431655766) +v_r = bxor(v_r, v_t) +v_o = band(t253, bxor(v_r, v_o)) +v_t = bxor(t254, v_o) +v_r = F.fKA(bxor(v_r, v_o), 1) +v_o = 1 +end +while true do +v_a = v_t +v_u = bxor(I32[arshift((v_A + 4), 2)], F.fKA(v_t, 28)) +v_c = v_r +v_r = bxor(I32[arshift(v_A, 2)], v_t) +v_r = bxor(bxor(bxor(bxor(bxor(bxor(bxor(bxor(I32[arshift((2176 + lshift(band(63, v_u), 2)), 2)], v_c), I32[arshift((1152 + lshift(band(63, v_r), 2)), 2)]), I32[arshift((1408 + band((rshift(v_r, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_r, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_r, 22) % 4294967296), 252)), 2)]), I32[arshift((2432 + band((rshift(v_u, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_u, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_u, 22) % 4294967296), 252)), 2)]) +v_t = bxor(v_r, I32[arshift((v_A + 8), 2)]) +v_a = bxor(bxor(bxor(bxor(v_a, I32[arshift((1152 + lshift(band(63, v_t), 2)), 2)]), I32[arshift((1408 + band((rshift(v_t, 6) % 4294967296), 252)), 2)]), I32[arshift((1664 + band((rshift(v_t, 14) % 4294967296), 252)), 2)]), I32[arshift((1920 + band((rshift(v_t, 22) % 4294967296), 252)), 2)]) +v_t = bxor(I32[arshift((v_A + 12), 2)], F.fKA(v_r, 28)) +v_t = bxor(bxor(bxor(bxor(v_a, I32[arshift((2176 + lshift(band(63, v_t), 2)), 2)]), I32[arshift((2432 + band((rshift(v_t, 6) % 4294967296), 252)), 2)]), I32[arshift((2688 + band((rshift(v_t, 14) % 4294967296), 252)), 2)]), I32[arshift((2944 + band((rshift(v_t, 22) % 4294967296), 252)), 2)]) +if not (8 ~= bor(0, v_o)) then goto B191 end +do +v_A = tobit((v_A + 16)) +v_o = tobit((v_o + 1)) +end +::C191:: +end +end +::B191:: +end +do +v_a = lshift(v_r, 31) +local t257 = v_a +v_o = v_r +local t256 = v_o +local t255 = (-1431655766) +v_A = F.fKA(v_t, 31) +v_r = band(t255, bxor(v_A, v_r)) +v_t = bor(t257, (rshift(bxor(t256, v_r), 1) % 4294967296)) +local t259 = v_t +local t258 = (rshift(v_t, 8) % 4294967296) +v_A = bxor(v_A, v_r) +v_r = band(16711935, bxor(t258, v_A)) +v_t = bxor(t259, lshift(v_r, 8)) +local t261 = v_t +local t260 = (rshift(v_t, 2) % 4294967296) +v_A = bxor(v_A, v_r) +v_r = band(858993459, bxor(t260, v_A)) +v_t = bxor(t261, lshift(v_r, 2)) +local t262 = band(65535, v_t) +v_A = bxor(v_A, v_r) +v_r = bxor(t262, (rshift(v_A, 16) % 4294967296)) +v_o = bxor(lshift(v_r, 16), v_A) +v_A = bxor(v_r, v_t) +local t263 = v_A +v_r = band(252645135, bxor((rshift(v_o, 4) % 4294967296), v_A)) +v_A = bxor(t263, v_r) +I8[tobit((v_e + 7))] = tobit(v_A) +I8[tobit((v_e + 6))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_e + 5))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[tobit((v_e + 4))] = tobit((rshift(v_A, 24) % 4294967296)) +v_A = bxor(v_o, lshift(v_r, 4)) +I8[tobit((v_e + 3))] = tobit(v_A) +I8[tobit((v_e + 2))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_e + 1))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[bor(0, v_e)] = tobit((rshift(v_A, 24) % 4294967296)) +do return 0 end +end +end + +F.fX = function(v_A, v_r, v_e, v_t, v_o, v_i) +local v_a, v_u = 0, 0 +v_a = 0 +v_u = 0 +v_u = (-50) +do +if (not (band(7, v_e) ~= 0)) then +if (1 == bor(0, v_r)) then +v_u = 0 +if (v_e ~= 0) then +do +v_r = U8[bor(0, v_t)] +while true do +I8[bor(0, v_i)] = tobit(bxor(U8[bor(0, v_o)], v_r)) +I8[tobit((v_i + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_o + 1))])) +I8[tobit((v_i + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_o + 2))])) +I8[tobit((v_i + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_o + 3))])) +I8[tobit((v_i + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_o + 4))])) +I8[tobit((v_i + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_o + 5))])) +I8[tobit((v_i + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_o + 6))])) +I8[tobit((v_i + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_o + 7))])) +F.fz(v_A, v_i, v_i) +v_a = bor(bor(bor(U8[tobit((v_i + 4))], lshift(U8[tobit((v_i + 5))], 8)), lshift(U8[tobit((v_i + 6))], 16)), lshift(U8[tobit((v_i + 7))], 24)) +v_r = bor(bor(bor(U8[bor(0, v_i)], lshift(U8[tobit((v_i + 1))], 8)), lshift(U8[tobit((v_i + 2))], 16)), lshift(U8[tobit((v_i + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_r) +I8[tobit((v_t + 1))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_r, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_a) +I8[tobit((v_t + 5))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_a, 24) % 4294967296)) +v_i = tobit((v_i + 8)) +v_o = tobit((v_o + 8)) +v_e = tobit((v_e - 8)) +if not (v_e ~= 0) then goto B193 end +do +end +::C193:: +end +end +::B193:: +end +else +v_u = 0 +if (not (v_e ~= 0)) then +goto L192 +end +do +while true do +v_a = bor(bor(bor(U8[tobit((v_o + 4))], lshift(U8[tobit((v_o + 5))], 8)), lshift(U8[tobit((v_o + 6))], 16)), lshift(U8[tobit((v_o + 7))], 24)) +v_r = bor(bor(bor(U8[bor(0, v_o)], lshift(U8[tobit((v_o + 1))], 8)), lshift(U8[tobit((v_o + 2))], 16)), lshift(U8[tobit((v_o + 3))], 24)) +F.fz(v_A, v_o, v_i) +I8[bor(0, v_i)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_i)])) +I8[tobit((v_i + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_i + 1))])) +I8[tobit((v_i + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_i + 2))])) +I8[tobit((v_i + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_i + 3))])) +I8[tobit((v_i + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_i + 4))])) +I8[tobit((v_i + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_i + 5))])) +I8[tobit((v_i + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_i + 6))])) +I8[tobit((v_i + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_i + 7))])) +I8[bor(0, v_t)] = tobit(v_r) +I8[tobit((v_t + 1))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_r, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_a) +I8[tobit((v_t + 5))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_a, 24) % 4294967296)) +v_i = tobit((v_i + 8)) +v_o = tobit((v_o + 8)) +v_e = tobit((v_e - 8)) +if not (v_e ~= 0) then goto B194 end +do +end +::C194:: +end +end +::B194:: +end +end +end +::L192:: +do return v_u end +end + +F.f_ = function(v_A) + +if (v_A ~= 0) then +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +I8[tobit((v_A + 14))] = tobit(0) +I8[tobit((v_A + 15))] = tobit(0) +I8[tobit((v_A + 16))] = tobit(0) +I8[tobit((v_A + 17))] = tobit(0) +I8[tobit((v_A + 18))] = tobit(0) +I8[tobit((v_A + 19))] = tobit(0) +I8[tobit((v_A + 20))] = tobit(0) +I8[tobit((v_A + 21))] = tobit(0) +I8[tobit((v_A + 22))] = tobit(0) +I8[tobit((v_A + 23))] = tobit(0) +I8[tobit((v_A + 24))] = tobit(0) +I8[tobit((v_A + 25))] = tobit(0) +I8[tobit((v_A + 26))] = tobit(0) +I8[tobit((v_A + 27))] = tobit(0) +I8[tobit((v_A + 28))] = tobit(0) +I8[tobit((v_A + 29))] = tobit(0) +I8[tobit((v_A + 30))] = tobit(0) +I8[tobit((v_A + 31))] = tobit(0) +I8[tobit((v_A + 32))] = tobit(0) +I8[tobit((v_A + 33))] = tobit(0) +I8[tobit((v_A + 34))] = tobit(0) +I8[tobit((v_A + 35))] = tobit(0) +I8[tobit((v_A + 36))] = tobit(0) +I8[tobit((v_A + 37))] = tobit(0) +I8[tobit((v_A + 38))] = tobit(0) +I8[tobit((v_A + 39))] = tobit(0) +I8[tobit((v_A + 40))] = tobit(0) +I8[tobit((v_A + 41))] = tobit(0) +I8[tobit((v_A + 42))] = tobit(0) +I8[tobit((v_A + 43))] = tobit(0) +I8[tobit((v_A + 44))] = tobit(0) +I8[tobit((v_A + 45))] = tobit(0) +I8[tobit((v_A + 46))] = tobit(0) +I8[tobit((v_A + 47))] = tobit(0) +I8[tobit((v_A + 48))] = tobit(0) +I8[tobit((v_A + 49))] = tobit(0) +I8[tobit((v_A + 50))] = tobit(0) +I8[tobit((v_A + 51))] = tobit(0) +I8[tobit((v_A + 52))] = tobit(0) +I8[tobit((v_A + 53))] = tobit(0) +I8[tobit((v_A + 54))] = tobit(0) +I8[tobit((v_A + 55))] = tobit(0) +I8[tobit((v_A + 56))] = tobit(0) +I8[tobit((v_A + 57))] = tobit(0) +I8[tobit((v_A + 58))] = tobit(0) +I8[tobit((v_A + 59))] = tobit(0) +I8[tobit((v_A + 60))] = tobit(0) +I8[tobit((v_A + 61))] = tobit(0) +I8[tobit((v_A + 62))] = tobit(0) +I8[tobit((v_A + 63))] = tobit(0) +I8[tobit((v_A - (-64)))] = tobit(0) +I8[tobit((v_A + 65))] = tobit(0) +I8[tobit((v_A + 66))] = tobit(0) +I8[tobit((v_A + 67))] = tobit(0) +I8[tobit((v_A + 68))] = tobit(0) +I8[tobit((v_A + 69))] = tobit(0) +I8[tobit((v_A + 70))] = tobit(0) +I8[tobit((v_A + 71))] = tobit(0) +I8[tobit((v_A + 72))] = tobit(0) +I8[tobit((v_A + 73))] = tobit(0) +I8[tobit((v_A + 74))] = tobit(0) +I8[tobit((v_A + 75))] = tobit(0) +I8[tobit((v_A + 76))] = tobit(0) +I8[tobit((v_A + 77))] = tobit(0) +I8[tobit((v_A + 78))] = tobit(0) +I8[tobit((v_A + 79))] = tobit(0) +I8[tobit((v_A + 80))] = tobit(0) +I8[tobit((v_A + 81))] = tobit(0) +I8[tobit((v_A + 82))] = tobit(0) +I8[tobit((v_A + 83))] = tobit(0) +I8[tobit((v_A + 84))] = tobit(0) +I8[tobit((v_A + 85))] = tobit(0) +I8[tobit((v_A + 86))] = tobit(0) +I8[tobit((v_A + 87))] = tobit(0) +end +end + +F.fS_ = function(v_A, v_r, v_e) +local v_n, v_t, v_o, v_i, v_f, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_n = 0 +v_t = 0 +v_o = 0 +v_i = 0 +v_f = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +do +v_t = v_r +if (v_r ~= 0) then +v_n = v_e +if (not (v_n ~= 0)) then +goto L204 +end +goto L203 +end +v_A = tobit(toint(((tobit(v_A) % 4294967296) / (tobit(v_e) % 4294967296)))) +Iv = 0 +goto L195 +end +::L204:: +if (not (v_A ~= 0)) then +goto L202 +end +goto L201 +end +::L203:: +if (not (band((v_n - 1), v_n) ~= 0)) then +goto L200 +end +v_f = tobit((tobit((clz32(v_n) + 33)) - clz32(v_t))) +v_a = tobit((0 - v_f)) +goto L198 +end +::L202:: +v_A = tobit(toint(((tobit(v_t) % 4294967296) / 0))) +Iv = 0 +goto L195 +end +::L201:: +v_n = tobit((32 - clz32(v_t))) +if ((tobit(v_n) % 4294967296) < 31) then +goto L199 +end +goto L197 +end +::L200:: +if (1 == bor(0, v_n)) then +goto L196 +end +v_n = ((v_n ~= 0) and tobit((31 - clz32(bxor((v_n - 1), v_n)))) or 32) +v_e = band(31, v_n) +if ((tobit(band(63, v_n)) % 4294967296) >= 32) then +v_t = 0 +v_A = tobit((rshift(v_r, v_e) % 4294967296)) +else +v_t = tobit((rshift(v_r, v_e) % 4294967296)) +v_A = bor(lshift(band((lshift(1, v_e) - 1), v_r), (32 - v_e)), (rshift(v_A, v_e) % 4294967296)) +end +Iv = v_t +goto L195 +end +::L199:: +v_f = tobit((v_n + 1)) +v_a = tobit((63 - v_n)) +end +::L198:: +do +v_n = v_r +v_t = band(63, v_f) +v_o = band(31, v_t) +if ((tobit(v_t) % 4294967296) >= 32) then +v_t = 0 +v_o = tobit((rshift(v_n, v_o) % 4294967296)) +else +v_t = tobit((rshift(v_n, v_o) % 4294967296)) +v_o = bor(lshift(band((lshift(1, v_o) - 1), v_n), (32 - v_o)), (rshift(v_A, v_o) % 4294967296)) +end +v_a = band(v_a, 63) +v_n = band(31, v_a) +if ((tobit(v_a) % 4294967296) >= 32) then +v_r = lshift(v_A, v_n) +v_A = 0 +else +v_r = bor(band((lshift(1, v_n) - 1), (rshift(v_A, (32 - v_n)) % 4294967296)), lshift(v_r, v_n)) +v_A = lshift(v_A, v_n) +end +if (v_f ~= 0) then +do +do +do +local t264 = (-1) +v_n = tobit((v_e - 1)) +v_a = ((t264 ~= bor(0, v_n)) and 0 or (-1)) +end +while true do +do +v_i = bor(lshift(v_o, 1), (rshift(v_r, 31) % 4294967296)) +v_u = v_i +local t267 = v_u +local t266 = v_e +local t265 = v_a +v_t = bor(lshift(v_t, 1), (rshift(v_o, 31) % 4294967296)) +v_i = arshift((t265 - tobit((v_t + (((tobit(v_n) % 4294967296) < (tobit(v_i) % 4294967296)) and 1 or 0)))), 31) +v_c = band(t266, v_i) +v_o = tobit((t267 - v_c)) +v_t = tobit((v_t - (((tobit(v_u) % 4294967296) < (tobit(v_c) % 4294967296)) and 1 or 0))) +v_r = bor(lshift(v_r, 1), (rshift(v_A, 31) % 4294967296)) +v_A = bor(v_s, lshift(v_A, 1)) +v_i = band(v_i, 1) +v_s = v_i +v_f = tobit((v_f - 1)) +if not (v_f ~= 0) then goto B205 end +end +do +end +::C205:: +end +end +::B205:: +end +end +end +Iv = bor(lshift(v_r, 1), (rshift(v_A, 31) % 4294967296)) +v_A = bor(v_i, lshift(v_A, 1)) +goto L195 +end +end +::L197:: +end +v_A = 0 +v_r = 0 +end +end +::L196:: +end +Iv = v_r +end +end +::L195:: +end +do return v_A end +end + +F.fAA = function(v_A) +local v_r = 0 +v_r = 0 +if (v_A ~= 0) then +v_r = I32[arshift((v_A + 60), 2)] +if (v_r ~= 0) then +YA[I32[arshift((I32[arshift((I32[arshift(v_A, 2)] + 28), 2)] + 36), 2)]](v_r) +end +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +I8[tobit((v_A + 14))] = tobit(0) +I8[tobit((v_A + 15))] = tobit(0) +I8[tobit((v_A + 16))] = tobit(0) +I8[tobit((v_A + 17))] = tobit(0) +I8[tobit((v_A + 18))] = tobit(0) +I8[tobit((v_A + 19))] = tobit(0) +I8[tobit((v_A + 20))] = tobit(0) +I8[tobit((v_A + 21))] = tobit(0) +I8[tobit((v_A + 22))] = tobit(0) +I8[tobit((v_A + 23))] = tobit(0) +I8[tobit((v_A + 24))] = tobit(0) +I8[tobit((v_A + 25))] = tobit(0) +I8[tobit((v_A + 26))] = tobit(0) +I8[tobit((v_A + 27))] = tobit(0) +I8[tobit((v_A + 28))] = tobit(0) +I8[tobit((v_A + 29))] = tobit(0) +I8[tobit((v_A + 30))] = tobit(0) +I8[tobit((v_A + 31))] = tobit(0) +I8[tobit((v_A + 32))] = tobit(0) +I8[tobit((v_A + 33))] = tobit(0) +I8[tobit((v_A + 34))] = tobit(0) +I8[tobit((v_A + 35))] = tobit(0) +I8[tobit((v_A + 36))] = tobit(0) +I8[tobit((v_A + 37))] = tobit(0) +I8[tobit((v_A + 38))] = tobit(0) +I8[tobit((v_A + 39))] = tobit(0) +I8[tobit((v_A + 40))] = tobit(0) +I8[tobit((v_A + 41))] = tobit(0) +I8[tobit((v_A + 42))] = tobit(0) +I8[tobit((v_A + 43))] = tobit(0) +I8[tobit((v_A + 44))] = tobit(0) +I8[tobit((v_A + 45))] = tobit(0) +I8[tobit((v_A + 46))] = tobit(0) +I8[tobit((v_A + 47))] = tobit(0) +I8[tobit((v_A + 48))] = tobit(0) +I8[tobit((v_A + 49))] = tobit(0) +I8[tobit((v_A + 50))] = tobit(0) +I8[tobit((v_A + 51))] = tobit(0) +I8[tobit((v_A + 52))] = tobit(0) +I8[tobit((v_A + 53))] = tobit(0) +I8[tobit((v_A + 54))] = tobit(0) +I8[tobit((v_A + 55))] = tobit(0) +I8[tobit((v_A + 56))] = tobit(0) +I8[tobit((v_A + 57))] = tobit(0) +I8[tobit((v_A + 58))] = tobit(0) +I8[tobit((v_A + 59))] = tobit(0) +I8[tobit((v_A + 60))] = tobit(0) +I8[tobit((v_A + 61))] = tobit(0) +I8[tobit((v_A + 62))] = tobit(0) +I8[tobit((v_A + 63))] = tobit(0) +end +end + +F.frA = function(v_A, v_r) +local v_e, v_n = 0, 0 +v_e = 0 +v_n = 0 +F.fJ(v_A, v_r) +v_r = I32[arshift(v_A, 2)] +v_e = I32[arshift((v_A + 4), 2)] +v_n = I32[arshift((v_A + 124), 2)] +I32[arshift(v_A, 2)] = tobit(I32[arshift((v_A + 120), 2)]) +I32[arshift((v_A + 4), 2)] = tobit(v_n) +I32[arshift((v_A + 120), 2)] = tobit(v_r) +I32[arshift((v_A + 124), 2)] = tobit(v_e) +v_r = I32[arshift((v_A + 8), 2)] +v_e = I32[arshift((v_A + 12), 2)] +v_n = I32[arshift((v_A + 116), 2)] +I32[arshift((v_A + 8), 2)] = tobit(I32[arshift((v_A + 112), 2)]) +I32[arshift((v_A + 12), 2)] = tobit(v_n) +I32[arshift((v_A + 112), 2)] = tobit(v_r) +I32[arshift((v_A + 116), 2)] = tobit(v_e) +v_r = I32[arshift((v_A + 104), 2)] +v_e = I32[arshift((v_A + 108), 2)] +v_n = I32[arshift((v_A + 20), 2)] +I32[arshift((v_A + 104), 2)] = tobit(I32[arshift((v_A + 16), 2)]) +I32[arshift((v_A + 108), 2)] = tobit(v_n) +I32[arshift((v_A + 16), 2)] = tobit(v_r) +I32[arshift((v_A + 20), 2)] = tobit(v_e) +v_r = I32[arshift((v_A + 24), 2)] +I32[arshift((v_A + 24), 2)] = tobit(I32[arshift((v_A + 96), 2)]) +I32[arshift((v_A + 96), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 100), 2)] +I32[arshift((v_A + 100), 2)] = tobit(I32[arshift((v_A + 28), 2)]) +I32[arshift((v_A + 28), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 88), 2)] +I32[arshift((v_A + 88), 2)] = tobit(I32[arshift((v_A + 32), 2)]) +I32[arshift((v_A + 32), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 92), 2)] +I32[arshift((v_A + 92), 2)] = tobit(I32[arshift((v_A + 36), 2)]) +I32[arshift((v_A + 36), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 80), 2)] +I32[arshift((v_A + 80), 2)] = tobit(I32[arshift((v_A + 40), 2)]) +I32[arshift((v_A + 40), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 84), 2)] +I32[arshift((v_A + 84), 2)] = tobit(I32[arshift((v_A + 44), 2)]) +I32[arshift((v_A + 44), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 72), 2)] +I32[arshift((v_A + 72), 2)] = tobit(I32[arshift((v_A + 48), 2)]) +I32[arshift((v_A + 48), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 76), 2)] +I32[arshift((v_A + 76), 2)] = tobit(I32[arshift((v_A + 52), 2)]) +I32[arshift((v_A + 52), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 64), 2)] +I32[arshift((v_A + 64), 2)] = tobit(I32[arshift((v_A + 56), 2)]) +I32[arshift((v_A + 56), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 68), 2)] +I32[arshift((v_A + 68), 2)] = tobit(I32[arshift((v_A + 60), 2)]) +I32[arshift((v_A + 60), 2)] = tobit(v_r) +do return 0 end +end + +F.feA = function(v_A, v_r, v_e, v_t) +local v_o, v_a, v_u, v_c = 0, 0, 0, 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_a = bor(bor(bor(U8[tobit((v_e + 4))], lshift(U8[tobit((v_e + 5))], 8)), lshift(U8[tobit((v_e + 6))], 16)), lshift(U8[tobit((v_e + 7))], 24)) +v_a = bor(bor(bor(lshift(v_a, 24), band(lshift(v_a, 8), 16711680)), band((rshift(v_a, 8) % 4294967296), 65280)), (rshift(v_a, 24) % 4294967296)) +v_e = bor(bor(bor(U8[bor(0, v_e)], lshift(U8[tobit((v_e + 1))], 8)), lshift(U8[tobit((v_e + 2))], 16)), lshift(U8[tobit((v_e + 3))], 24)) +v_u = bor(bor(bor(lshift(v_e, 24), band(lshift(v_e, 8), 16711680)), band((rshift(v_e, 8) % 4294967296), 65280)), (rshift(v_e, 24) % 4294967296)) +if (v_r ~= 0) then +do +v_r = 0 +v_e = tobit((v_A + 72)) +while true do +v_o = bxor(I32[arshift((lshift(v_r, 2) + v_A), 2)], v_u) +v_u = bxor((bxor((I32[arshift((1024 + tobit((v_e + band((rshift(v_o, 14) % 4294967296), 1020)))), 2)] + I32[arshift((v_e + band((rshift(v_o, 22) % 4294967296), 1020)), 2)]), I32[arshift((2048 + tobit((v_e + band((rshift(v_o, 6) % 4294967296), 1020)))), 2)]) + I32[arshift((3072 + tobit((v_e + lshift(band(255, v_o), 2)))), 2)]), v_a) +v_a = v_o +v_r = tobit((v_r + 1)) +if not (16 ~= bor(0, v_r)) then goto B206 end +do +end +::C206:: +end +end +::B206:: +v_e = bxor(I32[arshift((v_A + 64), 2)], v_u) +v_A = tobit((v_A + 68)) +else +do +v_e = 17 +v_c = tobit((v_A + 72)) +while true do +v_o = bxor(I32[arshift((lshift(v_e, 2) + v_A), 2)], v_u) +v_u = bxor((bxor((I32[arshift((1024 + tobit((band((rshift(v_o, 14) % 4294967296), 1020) + v_c))), 2)] + I32[arshift((band((rshift(v_o, 22) % 4294967296), 1020) + v_c), 2)]), I32[arshift((2048 + tobit((band((rshift(v_o, 6) % 4294967296), 1020) + v_c))), 2)]) + I32[arshift((3072 + tobit((lshift(band(255, v_o), 2) + v_c))), 2)]), v_a) +v_r = (((tobit(v_e) % 4294967296) > 2) and 1 or 0) +v_e = tobit((v_e - 1)) +v_a = v_o +if not (v_r ~= 0) then goto B207 end +do +end +::C207:: +end +end +::B207:: +v_e = bxor(I32[arshift((v_A + 4), 2)], v_u) +end +v_A = I32[arshift(v_A, 2)] +I8[tobit((v_t + 7))] = tobit(v_e) +I8[tobit((v_t + 6))] = tobit((rshift(v_e, 8) % 4294967296)) +I8[tobit((v_t + 5))] = tobit((rshift(v_e, 16) % 4294967296)) +I8[tobit((v_t + 4))] = tobit((rshift(v_e, 24) % 4294967296)) +v_A = bxor(v_A, v_o) +I8[tobit((v_t + 3))] = tobit(v_A) +I8[tobit((v_t + 2))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_t + 1))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[bor(0, v_t)] = tobit((rshift(v_A, 24) % 4294967296)) +do return 0 end +end + +F.fnA = function(v_A, v_r, v_e, v_t) +local v_o, v_a, v_u, v_c, v_s, v_l = 0, 0, 0, 0, 0, 0 +v_l = 0 +v_o = tobit((B - 400)) +B = v_o +v_l = tobit((v_r + 1)) +v_s = F.fPA(F.fm(v_l), 0, v_l) +F.fHA(tobit((v_o + 8))) +F.fN(tobit((v_o + 8)), 2, v_t, 256) +v_a = tobit((B - 16)) +B = v_a +I32[arshift((v_a + 12), 2)] = tobit(0) +v_l = tobit((v_o + 8)) +v_t = v_l +I32[arshift((352 + v_t), 2)] = tobit(0) +I32[arshift((v_t + 356), 2)] = tobit(0) +I32[arshift((v_t + 384), 2)] = tobit(0) +I32[arshift((v_t + 320), 2)] = tobit(0) +I32[arshift((v_t + 324), 2)] = tobit(0) +I32[arshift((v_t + 376), 2)] = tobit(0) +I32[arshift((v_t + 380), 2)] = tobit(0) +I32[arshift((v_t + 368), 2)] = tobit(0) +I32[arshift((v_t + 372), 2)] = tobit(0) +I32[arshift((v_t + 360), 2)] = tobit(0) +I32[arshift((v_t + 364), 2)] = tobit(0) +I32[arshift((v_t + 328), 2)] = tobit(0) +I32[arshift((v_t + 332), 2)] = tobit(0) +v_u = bor(bor(bor(U8[tobit((v_e + 4))], lshift(U8[tobit((v_e + 5))], 8)), lshift(U8[tobit((v_e + 6))], 16)), lshift(U8[tobit((v_e + 7))], 24)) +v_t = tobit((v_t + 352)) +v_c = bor(bor(bor(U8[bor(0, v_e)], lshift(U8[tobit((v_e + 1))], 8)), lshift(U8[tobit((v_e + 2))], 16)), lshift(U8[tobit((v_e + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_c) +I8[tobit((v_t + 1))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_u) +I8[tobit((v_t + 5))] = tobit((rshift(v_u, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_u, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_u, 24) % 4294967296)) +v_e = bor(bor(bor(U8[tobit((v_e + 8))], lshift(U8[tobit((v_e + 9))], 8)), lshift(U8[tobit((v_e + 10))], 16)), lshift(U8[tobit((v_e + 11))], 24)) +I8[tobit((v_t + 8))] = tobit(v_e) +I8[tobit((v_t + 9))] = tobit((rshift(v_e, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_e, 16) % 4294967296)) +I8[tobit((v_t + 11))] = tobit((rshift(v_e, 24) % 4294967296)) +I8[tobit((v_l + 367))] = tobit(1) +if not (F.fW(v_l, v_t, tobit((v_l + 336)), tobit((v_a + 12))) ~= 0) then +I32[arshift((v_l + 328), 2)] = tobit(0) +I32[arshift((v_l + 332), 2)] = tobit(0) +end +B = tobit((v_a + 16)) +F.fU(tobit((v_o + 8)), v_r, v_A, v_s) +F.fyA(tobit((v_o + 8))) +B = tobit((v_o + 400)) +do return v_s end +end + +F.ftA = function(v_A) +local v_r, v_e, v_n, v_t, v_o, v_f, v_a = 0, 0, 0, 0, 0, 0, 0 +v_e = 0 +v_n = 0 +v_t = 0 +v_o = 0 +v_f = 0 +v_a = 0 +do +v_r = tobit((B - 16)) +B = v_r +v_o = I32[arshift(v_A, 2)] +I32[arshift((v_r + 4), 2)] = tobit(0) +v_f = 1 +v_n = lshift(v_o, 1) +I32[arshift(v_r, 2)] = tobit(v_n) +v_e = v_n +while true do +v_a = v_t +if not (v_e ~= 0) then goto B208 end +do +v_e = band(v_e, (v_e - 1)) +v_t = tobit((v_t + 1)) +end +::C208:: +end +end +::B208:: +do +do +do +local t268 = (1 == bor(0, v_a)) +if t268 then +v_e = F.fOA(v_n, 16) +I32[arshift((v_r + 8), 2)] = tobit(v_e) +t268 = (v_e ~= 0) +end +if t268 then +if (v_o ~= 0) then +do +v_n = 0 +while true do +do +v_e = tobit((I32[arshift((v_A + 8), 2)] + lshift(v_n, 4))) +if (I32[arshift((v_e + 8), 2)] ~= 0) then +v_f = I32[arshift((v_e + 12), 2)] +v_a = I32[arshift((v_e + 4), 2)] +v_o = I32[arshift(v_e, 2)] +do +do +while true do +do +if (F.fG(v_r, v_o, v_a, tobit((v_r + 12))) ~= 0) then +goto L211 +end +if (F.ftA(v_r) ~= 0) then +goto B212 +end +end +::C212:: +end +end +::B212:: +v_f = 1 +goto L209 +end +::L211:: +v_t = tobit((I32[arshift((v_r + 8), 2)] + lshift(I32[arshift((v_r + 12), 2)], 4))) +I32[arshift((v_t + 4), 2)] = tobit(v_a) +I32[arshift(v_t, 2)] = tobit(v_o) +I32[arshift((v_t + 12), 2)] = tobit(v_f) +if not (I32[arshift((v_t + 8), 2)] ~= 0) then +I32[arshift((v_t + 8), 2)] = tobit(1) +I32[arshift((v_r + 4), 2)] = tobit((I32[arshift((v_r + 4), 2)] + 1)) +end +I32[arshift(v_e, 2)] = tobit(0) +I32[arshift((v_e + 4), 2)] = tobit(0) +I32[arshift((v_e + 8), 2)] = tobit(0) +I32[arshift((v_e + 12), 2)] = tobit(0) +I32[arshift((v_A + 4), 2)] = tobit((I32[arshift((v_A + 4), 2)] - 1)) +v_o = I32[arshift(v_A, 2)] +end +v_n = tobit((v_n + 1)) +if (not ((tobit(v_n) % 4294967296) < (tobit(v_o) % 4294967296))) then +goto B210 +end +end +::C210:: +end +end +::B210:: +end +F.fL(I32[arshift((v_A + 8), 2)]) +I32[arshift((v_A + 8), 2)] = tobit(I32[arshift((v_r + 8), 2)]) +v_e = I32[arshift((v_r + 4), 2)] +I32[arshift(v_A, 2)] = tobit(I32[arshift(v_r, 2)]) +I32[arshift((v_A + 4), 2)] = tobit(v_e) +v_f = 0 +end +end +end +::L209:: +end +B = tobit((v_r + 16)) +do return v_f end +end + +F.foA = function(v_A, v_r, v_e, v_t) + +do +if (not ((tobit(v_r) % 4294967296) > 20)) then +do +local sw214 = tobit((v_r - 9)) +if sw214 == 0 then goto K214_0 +elseif sw214 == 1 then goto K214_1 +elseif sw214 == 2 then goto K214_2 +elseif sw214 == 3 then goto K214_3 +elseif sw214 == 4 then goto K214_4 +elseif sw214 == 5 then goto K214_5 +elseif sw214 == 6 then goto K214_6 +elseif sw214 == 7 then goto K214_7 +elseif sw214 == 8 then goto K214_8 +elseif sw214 == 9 then goto K214_9 +else goto K214_10 end +::K214_0:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +I32[arshift(v_A, 2)] = tobit(I32[arshift(v_r, 2)]) +do return end +end +::K214_1:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +v_r = I32[arshift(v_r, 2)] +I32[arshift(v_A, 2)] = tobit(v_r) +I32[arshift((v_A + 4), 2)] = tobit(arshift(v_r, 31)) +do return end +end +::K214_2:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +I32[arshift(v_A, 2)] = tobit(I32[arshift(v_r, 2)]) +I32[arshift((v_A + 4), 2)] = tobit(0) +do return end +end +::K214_3:: +do +v_r = band((I32[arshift(v_e, 2)] + 7), (-8)) +I32[arshift(v_e, 2)] = tobit((v_r + 8)) +v_e = I32[arshift((v_r + 4), 2)] +I32[arshift(v_A, 2)] = tobit(I32[arshift(v_r, 2)]) +I32[arshift((v_A + 4), 2)] = tobit(v_e) +do return end +end +::K214_4:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +v_r = I16[arshift(v_r, 1)] +I32[arshift(v_A, 2)] = tobit(v_r) +I32[arshift((v_A + 4), 2)] = tobit(arshift(v_r, 31)) +do return end +end +::K214_5:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +I32[arshift(v_A, 2)] = tobit(U16[arshift(v_r, 1)]) +I32[arshift((v_A + 4), 2)] = tobit(0) +do return end +end +::K214_6:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +v_r = I8[bor(0, v_r)] +I32[arshift(v_A, 2)] = tobit(v_r) +I32[arshift((v_A + 4), 2)] = tobit(arshift(v_r, 31)) +do return end +end +::K214_7:: +do +v_r = I32[arshift(v_e, 2)] +I32[arshift(v_e, 2)] = tobit((v_r + 4)) +I32[arshift(v_A, 2)] = tobit(U8[bor(0, v_r)]) +I32[arshift((v_A + 4), 2)] = tobit(0) +do return end +end +::K214_8:: +do +v_r = band((I32[arshift(v_e, 2)] + 7), (-8)) +I32[arshift(v_e, 2)] = tobit((v_r + 8)) +F64[arshift(v_A, 3)] = F64[arshift(v_r, 3)] +do return end +end +::K214_9:: +do +goto S214 +end +::K214_10:: +do +goto L213 +end +end +::S214:: +YA[bor(0, v_t)](v_A, v_e) +end +end +::L213:: +end + +F.fiA = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u = 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +do +if (not (band(32, U8[bor(0, v_A)]) ~= 0)) then +do +do +do +v_o = v_r +v_r = v_e +do +do +do +v_t = v_A +v_A = I32[arshift((v_t + 16), 2)] +if (not (v_A ~= 0)) then +v_A = U8[tobit((v_t + 74))] +I8[tobit((v_t + 74))] = tobit(bor((v_A - 1), v_A)) +v_A = I32[arshift(v_t, 2)] +if (band(8, v_A) ~= 0) then +I32[arshift(v_t, 2)] = tobit(bor(32, v_A)) +v_A = (-1) +else +I32[arshift((v_t + 4), 2)] = tobit(0) +I32[arshift((v_t + 8), 2)] = tobit(0) +v_A = I32[arshift((v_t + 44), 2)] +I32[arshift((v_t + 28), 2)] = tobit(v_A) +I32[arshift((v_t + 20), 2)] = tobit(v_A) +I32[arshift((v_t + 16), 2)] = tobit((v_A + I32[arshift((v_t + 48), 2)])) +v_A = 0 +end +if (v_A ~= 0) then +goto L216 +end +v_A = I32[arshift((v_t + 16), 2)] +end +do +local t269 = v_A +v_u = I32[arshift((v_t + 20), 2)] +if ((tobit((t269 - v_u)) % 4294967296) < (tobit(v_r) % 4294967296)) then +YA[I32[arshift((v_t + 36), 2)]](v_t, v_o, v_e) +goto L215 +end +end +do +do +do +if (I8[tobit((v_t + 75))] > (-1)) then +do +do +do +v_A = v_e +while true do +do +do +v_r = v_A +v_a = v_e +if (not (v_A ~= 0)) then +goto L217 +end +do +local t270 = v_o +v_A = tobit((v_r - 1)) +if (10 == U8[tobit((t270 + v_A))]) then +goto B218 +end +end +end +end +::C218:: +end +end +::B218:: +end +if ((tobit(YA[I32[arshift((v_t + 36), 2)]](v_t, v_o, v_r)) % 4294967296) < (tobit(v_r) % 4294967296)) then +goto L216 +end +v_o = tobit((v_r + v_o)) +v_u = I32[arshift((v_t + 20), 2)] +v_a = tobit((v_e - v_r)) +end +else +v_a = v_e +end +end +end +::L217:: +end +do +local t271 = v_u +local t272 = v_o +v_r = v_a +F.fTA(t271, t272, v_r) +I32[arshift((v_t + 20), 2)] = tobit((v_r + I32[arshift((v_t + 20), 2)])) +end +end +end +::L216:: +end +end +end +::L215:: +end +end +end +end + +F.ffA = function(v_A, v_r, v_e, v_t, v_o) +local v_f, v_a = 0, 0 +v_a = 0 +v_f = tobit((B - 208)) +B = v_f +I32[arshift((v_f + 204), 2)] = tobit(v_e) +F.fPA(tobit((v_f + 160)), 0, 40) +I32[arshift((v_f + 200), 2)] = tobit(I32[arshift((v_f + 204), 2)]) +if not (bor(0, F.fO(0, v_r, tobit((v_f + 200)), tobit((v_f + 80)), tobit((v_f + 160)), v_t, v_o)) < 0) then +v_e = I32[arshift(v_A, 2)] +if (I8[tobit((v_A + 74))] <= 0) then +I32[arshift(v_A, 2)] = tobit(band((-33), v_e)) +end +v_a = band(32, v_e) +if (I32[arshift((v_A + 48), 2)] ~= 0) then +F.fO(v_A, v_r, tobit((v_f + 200)), tobit((v_f + 80)), tobit((v_f + 160)), v_t, v_o) +else +I32[arshift((v_A + 48), 2)] = tobit(80) +I32[arshift((v_A + 16), 2)] = tobit((v_f + 80)) +I32[arshift((v_A + 28), 2)] = tobit(v_f) +I32[arshift((v_A + 20), 2)] = tobit(v_f) +v_e = I32[arshift((v_A + 44), 2)] +I32[arshift((v_A + 44), 2)] = tobit(v_f) +F.fO(v_A, v_r, tobit((v_f + 200)), tobit((v_f + 80)), tobit((v_f + 160)), v_t, v_o) +if (v_e ~= 0) then +YA[I32[arshift((v_A + 36), 2)]](v_A, 0, 0) +I32[arshift((v_A + 48), 2)] = tobit(0) +I32[arshift((v_A + 44), 2)] = tobit(v_e) +I32[arshift((v_A + 28), 2)] = tobit(0) +I32[arshift((v_A + 16), 2)] = tobit(0) +I32[arshift((v_A + 20), 2)] = tobit(0) +end +end +I32[arshift(v_A, 2)] = tobit(bor(I32[arshift(v_A, 2)], v_a)) +end +B = tobit((v_f + 208)) +end + +F.faA = function(v_A, v_r) + +if (not (v_A ~= 0)) then +do return 0 end +end +do +do +do +do +do +do +do +if (v_A ~= 0) then +do +if ((tobit(v_r) % 4294967296) <= 127) then +goto L220 +end +do +if (I32[arshift(I32[3447], 2)] ~= 0) then +do +if ((tobit(v_r) % 4294967296) <= 2047) then +I8[tobit((v_A + 1))] = tobit(bor(band(63, v_r), 128)) +I8[bor(0, v_A)] = tobit(bor((rshift(v_r, 6) % 4294967296), 192)) +v_A = 2 +goto L219 +end +do +local t273 = ((57344 ~= band((-8192), v_r)) and 1 or 0) +if t273 ~= 0 then +t273 = (((tobit(v_r) % 4294967296) >= 55296) and 1 or 0) +end +if (not (t273 ~= 0)) then +I8[tobit((v_A + 2))] = tobit(bor(band(63, v_r), 128)) +I8[bor(0, v_A)] = tobit(bor((rshift(v_r, 12) % 4294967296), 224)) +I8[tobit((v_A + 1))] = tobit(bor(band((rshift(v_r, 6) % 4294967296), 63), 128)) +v_A = 3 +goto L219 +end +end +if ((tobit((v_r - 65536)) % 4294967296) <= 1048575) then +I8[tobit((v_A + 3))] = tobit(bor(band(63, v_r), 128)) +I8[bor(0, v_A)] = tobit(bor((rshift(v_r, 18) % 4294967296), 240)) +I8[tobit((v_A + 2))] = tobit(bor(band((rshift(v_r, 6) % 4294967296), 63), 128)) +I8[tobit((v_A + 1))] = tobit(bor(band((rshift(v_r, 12) % 4294967296), 63), 128)) +v_A = 4 +goto L219 +end +end +else +if (57216 == band((-128), v_r)) then +goto L220 +end +end +end +I32[5680] = tobit(25) +v_A = (-1) +end +else +v_A = 1 +end +end +goto L219 +end +end +::L220:: +end +I8[bor(0, v_A)] = tobit(v_r) +v_A = 1 +end +end +::L219:: +end +do return v_A end +end + +F.fuA = function(v_A, v_r, v_e, v_n, v_t) +local v_o, v_a, v_u = 0, 0, 0 +v_a = 0 +v_u = 0 +v_o = tobit((B - 288)) +B = v_o +v_a = tobit((v_r + 1)) +v_a = F.fPA(F.fm(v_a), 0, v_a) +F.fLA(tobit((v_o + 8))) +F.fZ(tobit((v_o + 8)), v_n, 256) +F.fR(tobit((v_o + 8)), 0, v_r, v_e, v_A, v_a) +F.fhA(tobit((v_o + 8))) +do +do +do +if (not (bor(band(15, v_r), (((tobit(v_r) % 4294967296) < 16) and 1 or 0)) ~= 0)) then +do +local t274 = v_a +v_A = tobit((v_r - 1)) +v_e = U8[tobit((t274 + v_A))] +if ((tobit(band((v_e - 1), 255)) % 4294967296) > 15) then +v_u = v_r +else +do +if (not ((tobit(v_r) % 4294967296) <= (tobit(v_e) % 4294967296))) then +do +v_r = 2 +if ((tobit(v_e) % 4294967296) < 2) then +v_u = v_A +else +do +do +do +while true do +do +do +do +local t276 = bor(0, v_e) +local t275 = v_a +v_A = tobit((v_A - 1)) +if (t276 ~= U8[tobit((t275 + v_A))]) then +goto L221 +end +end +if (not ((tobit(band(255, v_r)) % 4294967296) < (tobit(v_e) % 4294967296))) then +goto B222 +end +v_r = tobit((v_r + 1)) +end +end +::C222:: +end +end +::B222:: +end +v_u = v_A +end +end +end +end +end +end +end +end +end +end +::L221:: +end +if (v_t ~= 0) then +I32[arshift(v_t, 2)] = tobit(v_u) +end +v_A = F.fm(tobit((v_u + 1))) +F.fPA(tobit((v_A + v_u)), 0, (((-1) ~= bor(0, v_u)) and 1 or 0)) +v_A = F.fTA(v_A, v_a, v_u) +F.fL(v_a) +B = tobit((v_o + 288)) +do return v_A end +end + +F.fcA = function(v_A, v_r, v_e, v_n, v_t) +local v_o, v_a, v_u = 0, 0, 0 +v_a = 0 +v_u = 0 +v_o = tobit((B - 128)) +B = v_o +v_a = tobit((v_r + 1)) +v_a = F.fPA(F.fm(v_a), 0, v_a) +F.fFA(v_o) +F.frA(v_o, v_n) +F.fX(v_o, 0, v_r, v_e, v_A, v_a) +F.fq(v_o) +do +do +do +if (not (bor(band(7, v_r), (((tobit(v_r) % 4294967296) < 8) and 1 or 0)) ~= 0)) then +do +local t277 = v_a +v_A = tobit((v_r - 1)) +v_e = U8[tobit((t277 + v_A))] +if ((tobit(band((v_e - 1), 255)) % 4294967296) > 7) then +v_u = v_r +else +do +if (not ((tobit(v_r) % 4294967296) <= (tobit(v_e) % 4294967296))) then +do +v_r = 2 +if ((tobit(v_e) % 4294967296) < 2) then +v_u = v_A +else +do +do +do +while true do +do +do +do +local t279 = bor(0, v_e) +local t278 = v_a +v_A = tobit((v_A - 1)) +if (t279 ~= U8[tobit((t278 + v_A))]) then +goto L223 +end +end +if (not ((tobit(band(255, v_r)) % 4294967296) < (tobit(v_e) % 4294967296))) then +goto B224 +end +v_r = tobit((v_r + 1)) +end +end +::C224:: +end +end +::B224:: +end +v_u = v_A +end +end +end +end +end +end +end +end +end +end +::L223:: +end +if (v_t ~= 0) then +I32[arshift(v_t, 2)] = tobit(v_u) +end +v_A = F.fm(tobit((v_u + 1))) +F.fPA(tobit((v_A + v_u)), 0, (((-1) ~= bor(0, v_u)) and 1 or 0)) +v_A = F.fTA(v_A, v_a, v_u) +F.fL(v_a) +B = tobit((v_o + 128)) +do return v_A end +end + +F.fsA = function(v_A, v_r) +local v_e, v_t = 0, 0 +v_e = 0 +v_t = 0 +do +do +do +do +v_t = v_A +if (not (band(3, bxor(v_t, v_r)) ~= 0)) then +do +if (band(3, v_r) ~= 0) then +do +while true do +do +v_e = U8[bor(0, v_r)] +I8[bor(0, v_t)] = tobit(v_e) +if (not (v_e ~= 0)) then +goto L225 +end +v_t = tobit((v_t + 1)) +v_r = tobit((v_r + 1)) +if (not (band(3, v_r) ~= 0)) then +goto B226 +end +end +::C226:: +end +end +::B226:: +end +do +local t280 = (-1) +v_e = I32[arshift(v_r, 2)] +if (not (band(band(bxor(t280, v_e), (v_e - 16843009)), (-2139062144)) ~= 0)) then +do +while true do +I32[arshift(v_t, 2)] = tobit(v_e) +v_e = I32[arshift((v_r + 4), 2)] +v_t = tobit((v_t + 4)) +v_r = tobit((v_r + 4)) +if not (not (band(band((v_e - 16843009), bxor((-1), v_e)), (-2139062144)) ~= 0)) then goto B227 end +do +end +::C227:: +end +end +::B227:: +end +end +end +end +end +v_e = U8[bor(0, v_r)] +I8[bor(0, v_t)] = tobit(v_e) +if (v_e ~= 0) then +do +while true do +v_e = U8[tobit((v_r + 1))] +I8[tobit((v_t + 1))] = tobit(v_e) +v_t = tobit((v_t + 1)) +v_r = tobit((v_r + 1)) +if not (v_e ~= 0) then goto B228 end +do +end +::C228:: +end +end +::B228:: +end +end +end +::L225:: +end +do return v_A end +end + +F.flA = function(v_A, v_r) +local v_e = 0 +v_e = 0 +v_e = (-24832) +if (not (bor(((not (v_r ~= 0)) and 1 or 0), ((not (v_A ~= 0)) and 1 or 0)) ~= 0)) then +v_e = v_A +I32[arshift(v_e, 2)] = tobit(0) +I32[arshift((v_e + 4), 2)] = tobit(0) +I32[arshift((v_e + 56), 2)] = tobit(0) +I32[arshift((v_e + 60), 2)] = tobit(0) +I32[arshift((v_e + 48), 2)] = tobit(0) +I32[arshift((v_e + 52), 2)] = tobit(0) +I32[arshift((v_e + 40), 2)] = tobit(0) +I32[arshift((v_e + 44), 2)] = tobit(0) +I32[arshift((v_e + 32), 2)] = tobit(0) +I32[arshift((v_e + 36), 2)] = tobit(0) +I32[arshift((v_e + 24), 2)] = tobit(0) +I32[arshift((v_e + 28), 2)] = tobit(0) +I32[arshift((v_e + 16), 2)] = tobit(0) +I32[arshift((v_e + 20), 2)] = tobit(0) +I32[arshift((v_e + 8), 2)] = tobit(0) +I32[arshift((v_e + 12), 2)] = tobit(0) +v_e = bor(0, YA[I32[arshift((I32[arshift((v_r + 28), 2)] + 32), 2)]]()) +I32[arshift((v_A + 60), 2)] = tobit(v_e) +if (not (v_e ~= 0)) then +do return (-24960) end +end +I32[arshift(v_A, 2)] = tobit(v_r) +v_e = 0 +if (2 == I32[arshift((v_r + 4), 2)]) then +I32[arshift((v_A + 16), 2)] = tobit(50) +I32[arshift((v_A + 12), 2)] = tobit(51) +end +end +do return v_e end +end + +F.fbA = function(v_A, v_r, v_e) +local v_n, v_t = 0, 0 +v_n = 0 +v_t = 0 +do +F.fJ(v_A, v_e) +F.fJ(tobit((v_r + 128)), tobit((v_e + 8))) +F.fJ(tobit((v_A + 256)), tobit((v_e + 16))) +v_e = 0 +while true do +v_n = lshift(v_e, 2) +v_t = tobit((v_n + v_r)) +I32[arshift(v_t, 2)] = tobit(I32[arshift((lshift((94 - v_e), 2) + v_A), 2)]) +I32[arshift((bor(4, v_n) + v_r), 2)] = tobit(I32[arshift((lshift((95 - v_e), 2) + v_A), 2)]) +v_n = tobit((v_A + v_n)) +I32[arshift((128 + v_n), 2)] = tobit(I32[arshift((lshift((62 - v_e), 2) + v_r), 2)]) +I32[arshift((v_n + 132), 2)] = tobit(I32[arshift((lshift((63 - v_e), 2) + v_r), 2)]) +I32[arshift((v_t + 256), 2)] = tobit(I32[arshift((lshift((30 - v_e), 2) + v_A), 2)]) +I32[arshift((v_t + 260), 2)] = tobit(I32[arshift((lshift((31 - v_e), 2) + v_A), 2)]) +v_n = (((tobit(v_e) % 4294967296) < 30) and 1 or 0) +v_e = tobit((v_e + 2)) +if not (v_n ~= 0) then goto B229 end +do +end +::C229:: +end +end +::B229:: +end + +F.fvA = function(v_A) +local v_r, v_e, v_t, v_o, v_i = 0, 0, 0, 0, 0 +do +v_r = 0 +v_e = 0 +v_t = 0 +v_o = 0 +v_i = 0 +while true do +v_r = v_A +v_A = tobit((v_r + 1)) +if not (F.fRA(I8[bor(0, v_r)]) ~= 0) then goto B230 end +do +end +::C230:: +end +end +::B230:: +do +do +v_e = I8[bor(0, v_r)] +do +local sw233 = tobit((v_e - 43)) +if sw233 == 0 then goto K233_0 +elseif sw233 == 2 then goto K233_1 +else goto K233_2 end +::K233_0:: +do +goto L232 +end +::K233_1:: +do +goto S233 +end +::K233_2:: +do +goto L231 +end +end +::S233:: +v_o = 1 +end +::L232:: +v_e = I8[bor(0, v_A)] +v_r = v_A +v_i = v_o +end +::L231:: +do +if (F.fDA(v_e) ~= 0) then +do +v_A = 0 +while true do +do +v_t = tobit((48 + tobit((v_A - I8[bor(0, v_r)])))) +if (not (F.fDA(I8[tobit((v_r + 1))]) ~= 0)) then +goto L234 +end +v_r = tobit((v_r + 1)) +v_A = imul(v_t, 10) +end +::C235:: +end +end +::B235:: +end +end +::L234:: +do return ((v_i ~= 0) and v_t or tobit((0 - v_t))) end +end + +F.fgA = function(v_A, v_r, v_e) +local v_t, v_o, v_f = 0, 0, 0 +v_f = 0 +v_o = tobit((B - 16)) +B = v_o +I32[arshift((v_o + 12), 2)] = tobit(v_e) +v_t = tobit((B - 160)) +B = v_t +F.fTA(tobit((v_t + 8)), 12304, 144) +I32[arshift((v_t + 52), 2)] = tobit(v_A) +I32[arshift((v_t + 28), 2)] = tobit(v_A) +v_f = tobit(((-2) - v_A)) +v_f = (((tobit(v_f) % 4294967296) < 2147483647) and v_f or 2147483647) +I32[arshift((v_t + 56), 2)] = tobit(v_f) +v_A = tobit((v_A + v_f)) +I32[arshift((v_t + 36), 2)] = tobit(v_A) +I32[arshift((v_t + 24), 2)] = tobit(v_A) +F.ffA(tobit((v_t + 8)), v_r, v_e, 0, 0) +if (v_f ~= 0) then +v_A = I32[arshift((v_t + 28), 2)] +I8[tobit((v_A - ((bor(0, v_A) == I32[arshift((v_t + 24), 2)]) and 1 or 0)))] = tobit(0) +end +B = tobit((v_t + 160)) +B = tobit((v_o + 16)) +end + +F.fpA = function(v_A) +local v_r, v_e, v_n = 0, 0, 0 +v_r = 0 +v_e = 0 +v_n = 0 +do +do +do +v_r = v_A +if (band(3, v_r) ~= 0) then +do +while true do +do +if (not (U8[bor(0, v_r)] ~= 0)) then +goto L236 +end +v_r = tobit((v_r + 1)) +if (not (band(3, v_r) ~= 0)) then +goto B237 +end +end +::C237:: +end +end +::B237:: +end +do +do +while true do +do +v_e = v_r +v_r = tobit((v_r + 4)) +local t281 = (-1) +v_n = I32[arshift(v_e, 2)] +if not (not (band(band(bxor(t281, v_n), (v_n - 16843009)), (-2139062144)) ~= 0)) then goto B238 end +end +do +end +::C238:: +end +end +::B238:: +end +if (not (band(255, v_n) ~= 0)) then +do return tobit((v_e - v_A)) end +end +do +while true do +v_n = U8[tobit((v_e + 1))] +v_r = tobit((v_e + 1)) +v_e = v_r +if not (v_n ~= 0) then goto B239 end +do +end +::C239:: +end +end +::B239:: +end +end +::L236:: +end +do return tobit((v_r - v_A)) end +end + +F.fdA = function(v_A, v_r, v_e) +local v_t, v_o, v_i = 0, 0, 0 +v_t = 0 +v_o = 0 +v_i = 0 +if ((tobit(v_r) % 4294967296) < 1) then +v_t = v_A +else +do +while true do +v_t = F.fS_(v_A, v_r, 10) +v_o = Iv +v_i = v_o +v_o = F.fCA(v_t, v_o, 10, 0) +v_e = tobit((v_e - 1)) +I8[bor(0, v_e)] = tobit(bor((v_A - v_o), 48)) +v_o = (((tobit(v_r) % 4294967296) > 9) and 1 or 0) +v_A = v_t +v_r = v_i +if not (v_o ~= 0) then goto B240 end +do +end +::C240:: +end +end +::B240:: +end +if (v_t ~= 0) then +do +while true do +v_A = tobit(toint(((tobit(v_t) % 4294967296) / 10))) +v_e = tobit((v_e - 1)) +I8[bor(0, v_e)] = tobit(bor((v_t - imul(v_A, 10)), 48)) +v_r = (((tobit(v_t) % 4294967296) > 9) and 1 or 0) +v_t = v_A +if not (v_r ~= 0) then goto B241 end +do +end +::C241:: +end +end +::B241:: +end +do return v_e end +end + +F.fhA = function(v_A) +local v_r = 0 +v_r = 0 +do +if (v_A ~= 0) then +do +v_r = 266 +while true do +do +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +if (not (v_r ~= 0)) then +goto L242 +end +v_A = tobit((v_A + 14)) +v_r = tobit((v_r - 14)) +end +::C243:: +end +end +::B243:: +end +end +::L242:: +end + +F.fkA = function(v_A, v_r) +local v_e, v_n, v_t = 0, 0, 0 +v_t = 0 +rf_s(v_A) +v_t = bor(0, rf_a(1)) +v_e = bor(0, rf_a(0)) +v_n = v_t +v_t = band((rshift(v_t, 20) % 4294967296), 2047) +if (2047 ~= bor(0, v_t)) then +if (not (v_t ~= 0)) then +v_t = v_r +if (0 == v_A) then +v_r = 0 +else +v_A = F.fkA((18446744073709552000 * v_A), v_r) +v_r = tobit((I32[arshift(v_r, 2)] + (-64))) +end +I32[arshift(v_t, 2)] = tobit(v_r) +do return v_A end +end +I32[arshift(v_r, 2)] = tobit((v_t - 1022)) +rf_u(0, bor(0, v_e)) +rf_u(1, bor(band((-2146435073), v_n), 1071644672)) +v_A = rf_c() +end +do return v_A end +end + +F.fyA = function(v_A) +local v_r = 0 +v_r = 0 +do +F.fAA(v_A) +v_r = 378 +while true do +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +if not (v_r ~= 0) then goto B244 end +do +v_A = tobit((v_A + 14)) +v_r = tobit((v_r - 14)) +end +::C244:: +end +end +::B244:: +end + +F.fwA = function(v_A, v_r, v_e) +local v_n, v_t = 0, 0 +v_n = 0 +v_t = 0 +if (not (v_e ~= 0)) then +do return 0 end +end +do +v_n = U8[bor(0, v_A)] +if (v_n ~= 0) then +do +while true do +do +v_t = U8[bor(0, v_r)] +if (not (v_t ~= 0)) then +goto L245 +end +v_e = tobit((v_e - 1)) +if (not (v_e ~= 0)) then +goto L245 +end +if (bor(0, v_n) ~= bor(0, v_t)) then +goto L245 +end +v_r = tobit((v_r + 1)) +v_n = U8[tobit((v_A + 1))] +v_A = tobit((v_A + 1)) +if (not (v_n ~= 0)) then +goto B246 +end +end +::C246:: +end +end +::B246:: +end +v_n = 0 +end +::L245:: +do return tobit((v_n - U8[bor(0, v_r)])) end +end + +F.fCA = function(v_A, v_r, v_e, v_n) +local v_t, v_o, v_i, v_f, v_a, v_u = 0, 0, 0, 0, 0, 0 +v_a = 0 +v_u = 0 +do +v_a = tobit((rshift(v_e, 16) % 4294967296)) +local t282 = v_a +v_u = tobit((rshift(v_A, 16) % 4294967296)) +v_f = imul(t282, v_u) +v_t = band(65535, v_e) +local t283 = v_t +v_o = band(65535, v_A) +v_i = imul(t283, v_o) +v_u = tobit((tobit((rshift(v_i, 16) % 4294967296)) + imul(v_u, v_t))) +v_a = tobit((band(65535, v_u) + imul(v_a, v_o))) +Iv = tobit((((tobit((imul(v_r, v_e) + v_f)) + imul(v_A, v_n)) + (rshift(v_u, 16) % 4294967296)) + (rshift(v_a, 16) % 4294967296))) +do return bor(band(65535, v_i), lshift(v_a, 16)) end +end +end + +F.fEA = function(v_A, v_r, v_e, v_n, v_t) +local v_o = 0 +do +v_o = tobit((B - 256)) +B = v_o +if (not (bor(band(73728, v_t), ((bor(0, v_e) <= bor(0, v_n)) and 1 or 0)) ~= 0)) then +do +do +local t284 = v_o +local t285 = band(255, v_r) +v_e = tobit((v_e - v_n)) +v_n = (((tobit(v_e) % 4294967296) < 256) and 1 or 0) +F.fPA(t284, t285, ((v_n ~= 0) and v_e or 256)) +if (not (v_n ~= 0)) then +do +while true do +F.fiA(v_A, v_o, 256) +v_e = tobit((v_e - 256)) +if not ((tobit(v_e) % 4294967296) > 255) then goto B247 end +do +end +::C247:: +end +end +::B247:: +end +end +F.fiA(v_A, v_o, v_e) +end +end +end +B = tobit((v_o + 256)) +end + +F.fBA = function(v_A, v_r) +local v_e, v_n, v_t = 0, 0, 0 +v_e = 0 +v_n = 0 +v_t = 0 +v_n = 10112 +do +do +do +do +v_e = I32[2529] +if (v_e ~= 0) then +do +do +while true do +do +do +do +v_t = v_n +local t286 = ((1 ~= I32[arshift((v_e + 4), 2)]) and 1 or 0) +if t286 == 0 then +t286 = bor(((I32[arshift(I32[arshift((v_e + 28), 2)], 2)] ~= bor(0, v_A)) and 1 or 0), ((I32[arshift((v_e + 8), 2)] ~= bor(0, v_r)) and 1 or 0)) +end +if (not (t286 ~= 0)) then +goto L248 +end +end +v_n = tobit((v_t + 8)) +v_e = I32[arshift((v_t + 12), 2)] +if (not (v_e ~= 0)) then +goto B249 +end +end +end +::C249:: +end +end +::B249:: +end +end +end +v_e = 0 +end +end +::L248:: +end +do return v_e end +end + +F.fIA = function(v_A, v_r, v_e) +local v_n, v_t = 0, 0 +v_n = 0 +v_t = 0 +do +v_t = (-24832) +if (v_A ~= 0) then +v_n = I32[arshift(v_A, 2)] +local t288 = (not (v_n ~= 0)) +local t287 = ((I32[arshift((v_n + 8), 2)] == bor(0, v_e)) and 1 or 0) +if t287 == 0 then +t287 = band(2, U8[tobit((v_n + 20))]) +end +if not (bor((t288 and 1 or 0), ((not (t287 ~= 0)) and 1 or 0)) ~= 0) then +I32[arshift((v_A + 8), 2)] = tobit(1) +I32[arshift((v_A + 4), 2)] = tobit(v_e) +v_t = bor(0, YA[I32[arshift((I32[arshift((v_n + 28), 2)] + 24), 2)]](I32[arshift((v_A + 60), 2)], v_r, v_e)) +end +end +do return v_t end +end +end + +F.fmA = function(v_A) +local v_r, v_n = 0, 0 +do +v_r = I32[3403] +local t289 = v_r +v_n = band((v_A + 3), (-4)) +v_A = tobit((t289 + v_n)) +local t290 +if ((((tobit(v_A) % 4294967296) <= (tobit(v_r) % 4294967296)) and (v_n ~= 0)) or (((tobit(v_A) % 4294967296) > (tobit(lshift(tobit(toint((16777216 / 65536))), 16)) % 4294967296)) and (not (bor(0, imp_f(bor(0, v_A))) ~= 0)))) then +I32[5680] = tobit(48) +t290 = (-1) +else +I32[3403] = tobit(v_A) +t290 = v_r +end +do return t290 end +end +end + +F.fQA = function(v_A) +local v_r, v_e, v_t = 0, 0, 0 +v_r = 0 +v_e = 0 +v_t = 0 +do +if (F.fDA(I8[I32[arshift(v_A, 2)]]) ~= 0) then +do +while true do +do +v_e = I32[arshift(v_A, 2)] +v_t = I8[bor(0, v_e)] +I32[arshift(v_A, 2)] = tobit((v_e + 1)) +v_r = tobit((tobit((v_r + v_t)) - 48)) +if (not (F.fDA(I8[tobit((v_e + 1))]) ~= 0)) then +goto L250 +end +v_r = imul(v_r, 10) +end +::C251:: +end +end +::B251:: +end +end +::L250:: +do return v_r end +end + +F.fOA = function(v_A, v_r) +local v_e, v_n = 0, 0 +v_e = 0 +v_n = 0 +v_e = 0 +if (v_A ~= 0) then +v_n = F.fCA(v_A, 0, v_r, 0) +v_e = v_n +if not ((tobit(bor(v_A, v_r)) % 4294967296) < 65536) then +v_e = ((Iv ~= 0) and (-1) or v_n) +end +end +v_r = v_e +v_A = F.fm(v_r) +if not (bor(((not (v_A ~= 0)) and 1 or 0), ((not (band(3, U8[tobit((v_A - 4))]) ~= 0)) and 1 or 0)) ~= 0) then +F.fPA(v_A, 0, v_r) +end +do return v_A end +end + +F.fSA = function(v_A, v_r, v_e) +local v_n, v_t, v_o = 0, 0, 0 +v_n = 0 +v_t = 0 +v_o = 0 +do +do +do +if (v_e ~= 0) then +do +do +do +while true do +do +do +do +v_n = U8[bor(0, v_A)] +local t291 = bor(0, v_n) +v_t = U8[bor(0, v_r)] +if (t291 == bor(0, v_t)) then +v_r = tobit((v_r + 1)) +v_A = tobit((v_A + 1)) +v_e = tobit((v_e - 1)) +if (v_e ~= 0) then +goto C253 +end +goto L252 +end +end +goto B253 +end +end +::C253:: +end +end +::B253:: +end +v_o = tobit((v_n - v_t)) +end +end +end +end +::L252:: +end +do return v_o end +end + +F.fMA = function() +local v_A, v_r = 0, 0 +v_r = 0 +v_A = tobit((F.fCA(I32[8018], I32[8019], 1284865837, 1481765933) + 1)) +v_r = Iv +v_r = (((tobit(v_A) % 4294967296) < 1) and tobit((v_r + 1)) or v_r) +I32[8018] = tobit(v_A) +I32[8019] = tobit(v_r) +do return tobit((rshift(v_r, 1) % 4294967296)) end +end + +F.fxA = function(v_A, v_r, v_e, v_n) +local v_t = 0 +v_t = 0 +v_t = (-13) +v_r = F.fBA(v_r, v_n) +if not (bor(((not (v_r ~= 0)) and 1 or 0), ((16 ~= I32[arshift((v_r + 24), 2)]) and 1 or 0)) ~= 0) then +F.fAA(v_A) +v_t = F.flA(v_A, v_r) +if not (v_t ~= 0) then +v_t = F.fIA(v_A, v_e, v_n) +end +end +do return v_t end +end + +F.fjA = function(v_A) + +I32[arshift((v_A + 8), 2)] = tobit(1732584193) +I32[arshift((v_A + 12), 2)] = tobit((-271733879)) +I32[arshift(v_A, 2)] = tobit(0) +I32[arshift((v_A + 4), 2)] = tobit(0) +I32[arshift((v_A + 16), 2)] = tobit((-1732584194)) +I32[arshift((v_A + 20), 2)] = tobit(271733878) +end + +F.fTA = function(v_A, v_r, v_e) +local v_t = 0 +v_t = 0 +if (v_e ~= 0) then +do +v_t = v_A +while true do +I8[bor(0, v_t)] = tobit(U8[bor(0, v_r)]) +v_t = tobit((v_t + 1)) +v_r = tobit((v_r + 1)) +v_e = tobit((v_e - 1)) +if not (v_e ~= 0) then goto B254 end +do +end +::C254:: +end +end +::B254:: +end +do return v_A end +end + +F.fPA = function(v_A, v_r, v_e) +local v_t = 0 +v_t = 0 +if (v_e ~= 0) then +do +v_t = v_A +while true do +I8[bor(0, v_t)] = tobit(v_r) +v_t = tobit((v_t + 1)) +v_e = tobit((v_e - 1)) +if not (v_e ~= 0) then goto B255 end +do +end +::C255:: +end +end +::B255:: +end +do return v_A end +end + +F.fKA = function(v_A, v_r) +local v_e = 0 +v_e = 0 +do +local t292 = (-1) +v_e = band(31, v_r) +local t295 = lshift(band((rshift(t292, v_e) % 4294967296), v_A), v_e) +v_e = v_A +local t294 = v_e +local t293 = (-1) +v_A = band((0 - v_r), 31) +do return bor(t295, (rshift(band(t294, lshift(t293, v_A)), v_A) % 4294967296)) end +end +end + +F.fRA = function(v_A) + +do return bor(((32 == bor(0, v_A)) and 1 or 0), (((tobit((v_A - 9)) % 4294967296) < 5) and 1 or 0)) end +end + +F.fDA = function(v_A) + +do return (((tobit((v_A - 48)) % 4294967296) < 10) and 1 or 0) end +end + +F.fLA = function(v_A) + +F.fPA(v_A, 0, 280) +end + +F.fFA = function(v_A) + +F.fPA(v_A, 0, 128) +end + +F.fHA = function(v_A) + +F.fPA(v_A, 0, 392) +end + +F.fNA = function(v_A) + +F.fPA(v_A, 0, 88) +end + +UA[1] = function(v_A, v_r, v_e, v_n) + +v_A = tobit(v_A) +v_e = tobit(v_e) +v_n = tobit(v_n) +v_r = tobit(v_r) +if (1 ~= bor(0, v_r)) then +F.fj(v_A, v_e, v_n) +else +F.fT(v_A, v_e, v_n) +end +do return 0 end +end +UA[2] = function(v_A, v_r, v_e, v_n, v_t, v_o) + +do +v_A = tobit(v_A) +local t296 = v_A +v_r = tobit(v_r) +local t297 = v_r +v_e = tobit(v_e) +local t298 = v_e +v_n = tobit(v_n) +local t299 = v_n +v_t = tobit(v_t) +local t300 = v_t +v_o = tobit(v_o) +do return bor(0, F.fR(t296, t297, t298, t299, t300, v_o)) end +end +end +UA[3] = function(v_A, v_r, v_e, v_t, v_o, v_a, v_u) +local v_c, v_s = 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = 0 +v_s = 0 +v_t = tobit(v_t) +v_c = I32[arshift(v_t, 2)] +do +if (v_r ~= 0) then +if (not (v_e ~= 0)) then +goto L256 +end +do +while true do +v_e = tobit((v_e - 1)) +if not (v_c ~= 0) then +F.fT(v_A, v_o, v_o) +end +v_r = tobit((v_o + v_c)) +v_s = bxor(U8[bor(0, v_a)], U8[bor(0, v_r)]) +I8[bor(0, v_u)] = tobit(v_s) +I8[bor(0, v_r)] = tobit(v_s) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 15) +if not (v_e ~= 0) then goto B257 end +do +end +::C257:: +end +end +::B257:: +else +if (v_e ~= 0) then +do +while true do +v_e = tobit((v_e - 1)) +if not (v_c ~= 0) then +F.fT(v_A, v_o, v_o) +end +v_s = U8[bor(0, v_a)] +v_r = tobit((v_o + v_c)) +I8[bor(0, v_u)] = tobit(bxor(v_s, U8[bor(0, v_r)])) +I8[bor(0, v_r)] = tobit(v_s) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 15) +if not (v_e ~= 0) then goto B258 end +do +end +::C258:: +end +end +::B258:: +end +end +end +::L256:: +I32[arshift(v_t, 2)] = tobit(v_c) +do return 0 end +end +UA[4] = function(v_A, v_r, v_e, v_t, v_o, v_a, v_u) +local v_c, v_s, v_l, v_b = 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_e = tobit(v_e) +v_c = I32[arshift(v_e, 2)] +if (v_r ~= 0) then +do +while true do +do +v_r = tobit((v_r - 1)) +do +if (not (v_c ~= 0)) then +do +F.fT(v_A, v_t, v_o) +v_s = 16 +while true do +do +if (not (v_s ~= 0)) then +goto L260 +end +v_s = tobit((v_s - 1)) +v_b = tobit((v_s + v_t)) +v_l = tobit((U8[bor(0, v_b)] + 1)) +I8[bor(0, v_b)] = tobit(v_l) +if (bor(0, v_l) == band(255, v_l)) then +goto B261 +end +end +::C261:: +end +end +::B261:: +end +end +::L260:: +I8[bor(0, v_u)] = tobit(bxor(U8[tobit((v_o + v_c))], U8[bor(0, v_a)])) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 15) +if (not (v_r ~= 0)) then +goto B259 +end +end +::C259:: +end +end +::B259:: +end +I32[arshift(v_e, 2)] = tobit(v_c) +do return 0 end +end +UA[5] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t301 = v_A +v_r = tobit(v_r) +local t302 = v_r +v_e = tobit(v_e) +do return bor(0, F.fM(t301, t302, v_e)) end +end +end +UA[6] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t303 = v_A +v_r = tobit(v_r) +local t304 = v_r +v_e = tobit(v_e) +do return bor(0, F.fZ(t303, t304, v_e)) end +end +end +UA[7] = function() +local v_A = 0 +v_A = F.fOA(1, 280) +if (v_A ~= 0) then +F.fLA(v_A) +end +do return bor(0, v_A) end +end +UA[8] = function(v_A) + +v_A = tobit(v_A) +F.fhA(v_A) +F.fL(v_A) +end +UA[9] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t305 = v_A +v_r = tobit(v_r) +local t306 = v_r +v_e = tobit(v_e) +do return bor(0, F.fN(t305, 2, t306, v_e)) end +end +end +UA[10] = function() +local v_A = 0 +v_A = F.fOA(1, 392) +if (v_A ~= 0) then +F.fHA(v_A) +end +do return bor(0, v_A) end +end +UA[11] = function(v_A) + +v_A = tobit(v_A) +F.fyA(v_A) +F.fL(v_A) +end +UA[12] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t307 = v_A +v_r = tobit(v_r) +local t308 = v_r +v_e = tobit(v_e) +do return bor(0, F.fxA(t307, 2, t308, v_e)) end +end +end +UA[13] = function() +local v_A, v_r = 0, 0 +v_r = 0 +v_A = F.fOA(1, 64) +if (v_A ~= 0) then +v_r = v_A +I32[arshift(v_r, 2)] = tobit(0) +I32[arshift((v_r + 4), 2)] = tobit(0) +I32[arshift((v_r + 56), 2)] = tobit(0) +I32[arshift((v_r + 60), 2)] = tobit(0) +I32[arshift((v_r + 48), 2)] = tobit(0) +I32[arshift((v_r + 52), 2)] = tobit(0) +I32[arshift((v_r + 40), 2)] = tobit(0) +I32[arshift((v_r + 44), 2)] = tobit(0) +I32[arshift((v_r + 32), 2)] = tobit(0) +I32[arshift((v_r + 36), 2)] = tobit(0) +I32[arshift((v_r + 24), 2)] = tobit(0) +I32[arshift((v_r + 28), 2)] = tobit(0) +I32[arshift((v_r + 16), 2)] = tobit(0) +I32[arshift((v_r + 20), 2)] = tobit(0) +I32[arshift((v_r + 8), 2)] = tobit(0) +I32[arshift((v_r + 12), 2)] = tobit(0) +end +do return bor(0, v_A) end +end +UA[14] = function(v_A) + +v_A = tobit(v_A) +F.fAA(v_A) +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +I8[tobit((v_A + 14))] = tobit(0) +I8[tobit((v_A + 15))] = tobit(0) +I8[tobit((v_A + 16))] = tobit(0) +I8[tobit((v_A + 17))] = tobit(0) +I8[tobit((v_A + 18))] = tobit(0) +I8[tobit((v_A + 19))] = tobit(0) +I8[tobit((v_A + 20))] = tobit(0) +I8[tobit((v_A + 21))] = tobit(0) +I8[tobit((v_A + 22))] = tobit(0) +I8[tobit((v_A + 23))] = tobit(0) +I8[tobit((v_A + 24))] = tobit(0) +I8[tobit((v_A + 25))] = tobit(0) +I8[tobit((v_A + 26))] = tobit(0) +I8[tobit((v_A + 27))] = tobit(0) +I8[tobit((v_A + 28))] = tobit(0) +I8[tobit((v_A + 29))] = tobit(0) +I8[tobit((v_A + 30))] = tobit(0) +I8[tobit((v_A + 31))] = tobit(0) +I8[tobit((v_A + 32))] = tobit(0) +I8[tobit((v_A + 33))] = tobit(0) +I8[tobit((v_A + 34))] = tobit(0) +I8[tobit((v_A + 35))] = tobit(0) +I8[tobit((v_A + 36))] = tobit(0) +I8[tobit((v_A + 37))] = tobit(0) +I8[tobit((v_A + 38))] = tobit(0) +I8[tobit((v_A + 39))] = tobit(0) +I8[tobit((v_A + 40))] = tobit(0) +I8[tobit((v_A + 41))] = tobit(0) +I8[tobit((v_A + 42))] = tobit(0) +I8[tobit((v_A + 43))] = tobit(0) +I8[tobit((v_A + 44))] = tobit(0) +I8[tobit((v_A + 45))] = tobit(0) +I8[tobit((v_A + 46))] = tobit(0) +I8[tobit((v_A + 47))] = tobit(0) +I8[tobit((v_A + 48))] = tobit(0) +I8[tobit((v_A + 49))] = tobit(0) +I8[tobit((v_A + 50))] = tobit(0) +I8[tobit((v_A + 51))] = tobit(0) +I8[tobit((v_A + 52))] = tobit(0) +I8[tobit((v_A + 53))] = tobit(0) +I8[tobit((v_A + 54))] = tobit(0) +I8[tobit((v_A + 55))] = tobit(0) +I8[tobit((v_A + 56))] = tobit(0) +I8[tobit((v_A + 57))] = tobit(0) +I8[tobit((v_A + 58))] = tobit(0) +I8[tobit((v_A + 59))] = tobit(0) +I8[tobit((v_A + 60))] = tobit(0) +I8[tobit((v_A + 61))] = tobit(0) +I8[tobit((v_A + 62))] = tobit(0) +I8[tobit((v_A + 63))] = tobit(0) +F.fL(v_A) +end +UA[15] = function(v_A, v_r, v_e, v_t) +local v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v = 0, 0, 0, 0, 0, 0, 0, 0 +v_r = tobit(v_r) +v_e = tobit(v_e) +v_t = tobit(v_t) +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +do +v_A = tobit(v_A) +v_o = I32[arshift((4 + v_A), 2)] +v_a = I32[arshift(v_A, 2)] +if (v_r ~= 0) then +do +do +v_c = tobit((v_A + 8)) +while true do +do +local t309 = v_c +v_a = band((v_a + 1), 255) +v_l = tobit((t309 + v_a)) +v_s = U8[bor(0, v_l)] +local t310 = v_c +v_o = band((v_s + v_o), 255) +v_b = tobit((t310 + v_o)) +v_v = U8[bor(0, v_b)] +I8[bor(0, v_l)] = tobit(v_v) +I8[bor(0, v_b)] = tobit(v_s) +I8[tobit((v_t + v_u))] = tobit(bxor(U8[tobit((band((v_s + v_v), 255) + v_c))], U8[tobit((v_e + v_u))])) +v_u = tobit((v_u + 1)) +if not (bor(0, v_u) ~= bor(0, v_r)) then goto B262 end +end +do +end +::C262:: +end +end +::B262:: +end +end +end +I32[arshift((v_A + 4), 2)] = tobit(v_o) +I32[arshift(v_A, 2)] = tobit(v_a) +do return 0 end +end +UA[16] = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +v_e = tobit(v_e) +if (band(7, v_e) ~= 0) then +v_A = (-24832) +else +do +do +do +v_s = tobit((rshift(v_e, 3) % 4294967296)) +v_e = 0 +I32[arshift(v_A, 2)] = tobit(0) +I32[arshift((v_A + 4), 2)] = tobit(0) +while true do +do +v_o = tobit((v_A + 8)) +I8[tobit((v_o + v_e))] = tobit(v_e) +v_t = bor(1, v_e) +I8[tobit((v_t + v_o))] = tobit(v_t) +v_t = bor(2, v_e) +I8[tobit((v_t + v_o))] = tobit(v_t) +v_t = bor(3, v_e) +I8[tobit((v_t + v_o))] = tobit(v_t) +v_t = bor(4, v_e) +I8[tobit((v_t + v_o))] = tobit(v_t) +v_t = bor(5, v_e) +I8[tobit((v_t + v_o))] = tobit(v_t) +v_t = bor(6, v_e) +I8[tobit((v_t + v_o))] = tobit(v_t) +v_t = v_o +local t311 = v_t +v_o = bor(7, v_e) +I8[tobit((t311 + v_o))] = tobit(v_o) +v_e = tobit((v_e + 8)) +if not (256 ~= bor(0, v_e)) then goto B263 end +end +do +end +::C263:: +end +end +::B263:: +end +do +do +v_A = tobit((v_A + 8)) +v_e = 0 +v_o = 0 +while true do +do +v_t = (((tobit(v_e) % 4294967296) < (tobit(v_s) % 4294967296)) and v_e or 0) +v_u = tobit((v_A + v_a)) +v_c = U8[bor(0, v_u)] +local t312 = v_A +v_o = band((U8[tobit((v_t + v_r))] + tobit((v_c + v_o))), 255) +v_e = tobit((t312 + v_o)) +I8[bor(0, v_u)] = tobit(U8[bor(0, v_e)]) +I8[bor(0, v_e)] = tobit(v_c) +v_e = tobit((v_t + 1)) +v_a = tobit((v_a + 1)) +if not (256 ~= bor(0, v_a)) then goto B264 end +end +do +end +::C264:: +end +end +::B264:: +end +v_A = 0 +end +end +end +do return bor(0, v_A) end +end +UA[17] = function() +local v_A = 0 +v_A = F.fOA(1, 264) +if (v_A ~= 0) then +F.fPA(v_A, 0, 264) +end +do return bor(0, v_A) end +end +UA[18] = function(v_A) +local v_r, v_e = 0, 0 +v_r = 0 +v_e = 0 +do +v_A = tobit(v_A) +v_r = v_A +if (v_r ~= 0) then +do +v_e = 252 +while true do +do +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +I8[tobit((v_r + 8))] = tobit(0) +I8[tobit((v_r + 9))] = tobit(0) +I8[tobit((v_r + 10))] = tobit(0) +I8[tobit((v_r + 11))] = tobit(0) +if (not (v_e ~= 0)) then +goto L265 +end +v_r = tobit((v_r + 12)) +v_e = tobit((v_e - 12)) +end +::C266:: +end +end +::B266:: +end +end +::L265:: +F.fL(v_A) +end +UA[19] = function(v_A, v_r, v_e, v_n) + +do +v_A = tobit(v_A) +local t313 = v_A +v_r = tobit(v_r) +local t314 = v_r +v_e = tobit(v_e) +local t315 = v_e +v_n = tobit(v_n) +do return bor(0, F.feA(t313, t314, t315, v_n)) end +end +end +UA[20] = function(v_A, v_r, v_e, v_t, v_o, v_i) +local v_a, v_u, v_c = 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_i = tobit(v_i) +v_a = 0 +v_u = 0 +v_c = 0 +v_c = (-24) +do +v_e = tobit(v_e) +if (not (band(7, v_e) ~= 0)) then +if (v_r ~= 0) then +v_c = 0 +if (not (v_e ~= 0)) then +goto L267 +end +do +v_a = U8[bor(0, v_t)] +while true do +I8[bor(0, v_i)] = tobit(bxor(U8[bor(0, v_o)], v_a)) +I8[tobit((v_i + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_o + 1))])) +I8[tobit((v_i + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_o + 2))])) +I8[tobit((v_i + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_o + 3))])) +I8[tobit((v_i + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_o + 4))])) +I8[tobit((v_i + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_o + 5))])) +I8[tobit((v_i + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_o + 6))])) +I8[tobit((v_i + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_o + 7))])) +F.feA(v_A, v_r, v_i, v_i) +v_u = bor(bor(bor(U8[tobit((v_i + 4))], lshift(U8[tobit((v_i + 5))], 8)), lshift(U8[tobit((v_i + 6))], 16)), lshift(U8[tobit((v_i + 7))], 24)) +v_a = bor(bor(bor(U8[bor(0, v_i)], lshift(U8[tobit((v_i + 1))], 8)), lshift(U8[tobit((v_i + 2))], 16)), lshift(U8[tobit((v_i + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_a) +I8[tobit((v_t + 1))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_u) +I8[tobit((v_t + 5))] = tobit((rshift(v_u, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_u, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_u, 24) % 4294967296)) +v_i = tobit((v_i + 8)) +v_o = tobit((v_o + 8)) +v_e = tobit((v_e - 8)) +if not (v_e ~= 0) then goto B268 end +do +end +::C268:: +end +end +::B268:: +else +v_c = 0 +if (v_e ~= 0) then +do +while true do +v_a = bor(bor(bor(U8[tobit((v_o + 4))], lshift(U8[tobit((v_o + 5))], 8)), lshift(U8[tobit((v_o + 6))], 16)), lshift(U8[tobit((v_o + 7))], 24)) +v_r = bor(bor(bor(U8[bor(0, v_o)], lshift(U8[tobit((v_o + 1))], 8)), lshift(U8[tobit((v_o + 2))], 16)), lshift(U8[tobit((v_o + 3))], 24)) +F.feA(v_A, 0, v_o, v_i) +I8[bor(0, v_i)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_i)])) +I8[tobit((v_i + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_i + 1))])) +I8[tobit((v_i + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_i + 2))])) +I8[tobit((v_i + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_i + 3))])) +I8[tobit((v_i + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_i + 4))])) +I8[tobit((v_i + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_i + 5))])) +I8[tobit((v_i + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_i + 6))])) +I8[tobit((v_i + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_i + 7))])) +I8[bor(0, v_t)] = tobit(v_r) +I8[tobit((v_t + 1))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_r, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_a) +I8[tobit((v_t + 5))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_a, 24) % 4294967296)) +v_i = tobit((v_i + 8)) +v_o = tobit((v_o + 8)) +v_e = tobit((v_e - 8)) +if not (v_e ~= 0) then goto B269 end +do +end +::C269:: +end +end +::B269:: +end +end +end +end +::L267:: +do return bor(0, v_c) end +end +UA[21] = function(v_A, v_r, v_e, v_t, v_o, v_a, v_u) +local v_c, v_s = 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = 0 +v_s = 0 +v_t = tobit(v_t) +v_c = I32[arshift(v_t, 2)] +do +if (v_r ~= 0) then +if (not (v_e ~= 0)) then +goto L270 +end +do +while true do +v_e = tobit((v_e - 1)) +if not (v_c ~= 0) then +F.feA(v_A, 1, v_o, v_o) +end +v_r = tobit((v_o + v_c)) +v_s = bxor(U8[bor(0, v_a)], U8[bor(0, v_r)]) +I8[bor(0, v_u)] = tobit(v_s) +I8[bor(0, v_r)] = tobit(v_s) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 7) +if not (v_e ~= 0) then goto B271 end +do +end +::C271:: +end +end +::B271:: +else +if (v_e ~= 0) then +do +while true do +v_e = tobit((v_e - 1)) +if not (v_c ~= 0) then +F.feA(v_A, 1, v_o, v_o) +end +v_s = U8[bor(0, v_a)] +v_r = tobit((v_o + v_c)) +I8[bor(0, v_u)] = tobit(bxor(v_s, U8[bor(0, v_r)])) +I8[bor(0, v_r)] = tobit(v_s) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 7) +if not (v_e ~= 0) then goto B272 end +do +end +::C272:: +end +end +::B272:: +end +end +end +::L270:: +I32[arshift(v_t, 2)] = tobit(v_c) +do return 0 end +end +UA[22] = function(v_A, v_r, v_e, v_t, v_o, v_a, v_u) +local v_c, v_s, v_l, v_b = 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_e = tobit(v_e) +v_c = I32[arshift(v_e, 2)] +if (v_r ~= 0) then +do +while true do +do +v_r = tobit((v_r - 1)) +do +if (not (v_c ~= 0)) then +do +F.feA(v_A, 1, v_t, v_o) +v_s = 8 +while true do +do +if (not (v_s ~= 0)) then +goto L274 +end +v_s = tobit((v_s - 1)) +v_b = tobit((v_s + v_t)) +v_l = tobit((U8[bor(0, v_b)] + 1)) +I8[bor(0, v_b)] = tobit(v_l) +if (bor(0, v_l) == band(255, v_l)) then +goto B275 +end +end +::C275:: +end +end +::B275:: +end +end +::L274:: +I8[bor(0, v_u)] = tobit(bxor(U8[tobit((v_o + v_c))], U8[bor(0, v_a)])) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 7) +if (not (v_r ~= 0)) then +goto B273 +end +end +::C273:: +end +end +::B273:: +end +I32[arshift(v_e, 2)] = tobit(v_c) +do return 0 end +end +UA[23] = function(v_A, v_r, v_e) +local v_n, v_t, v_o, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0, 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +v_A = tobit(v_A) +v_n = v_A +v_r = tobit(v_r) +v_A = v_r +v_e = tobit(v_e) +if (bor(band(7, v_e), (((tobit((v_e - 32)) % 4294967296) > 416) and 1 or 0)) ~= 0) then +v_A = (-22) +else +do +do +do +F.fTA(tobit((v_n + 72)), 3200, 4096) +v_e = tobit((rshift(v_e, 3) % 4294967296)) +v_r = 0 +while true do +do +local t318 = (tobit(v_e) % 4294967296) +local t317 = (tobit(v_e) % 4294967296) +local t316 = (tobit(v_e) % 4294967296) +v_t = tobit((v_r + 1)) +v_a = ((t316 > (tobit(v_t) % 4294967296)) and v_t or 0) +v_t = tobit((v_a + 1)) +v_u = ((t317 > (tobit(v_t) % 4294967296)) and v_t or 0) +v_t = tobit((v_u + 1)) +v_t = ((t318 > (tobit(v_t) % 4294967296)) and v_t or 0) +v_s = lshift(v_o, 2) +I32[arshift((v_s + v_n), 2)] = tobit(bxor(I32[arshift((v_s + 7296), 2)], bor(U8[tobit((v_A + v_t))], lshift(bor(bor(U8[tobit((v_A + v_u))], lshift(U8[tobit((v_A + v_r))], 16)), lshift(U8[tobit((v_A + v_a))], 8)), 8)))) +v_r = tobit((v_t + 1)) +v_r = (((tobit(v_r) % 4294967296) < (tobit(v_e) % 4294967296)) and v_r or 0) +v_o = tobit((v_o + 1)) +if not (18 ~= bor(0, v_o)) then goto B276 end +end +do +end +::C276:: +end +end +::B276:: +end +do +v_e = 0 +v_a = tobit((v_n + 72)) +v_t = 0 +v_A = 0 +while true do +do +do +v_o = 0 +while true do +v_r = v_t +v_t = bxor(I32[arshift((lshift(v_o, 2) + v_n), 2)], v_A) +v_A = bxor(v_r, (bxor((I32[arshift((1024 + tobit((v_a + band((rshift(v_t, 14) % 4294967296), 1020)))), 2)] + I32[arshift((v_a + band((rshift(v_t, 22) % 4294967296), 1020)), 2)]), I32[arshift((2048 + tobit((v_a + band((rshift(v_t, 6) % 4294967296), 1020)))), 2)]) + I32[arshift((3072 + tobit((v_a + lshift(band(255, v_t), 2)))), 2)])) +v_o = tobit((v_o + 1)) +if not (16 ~= bor(0, v_o)) then goto B278 end +do +end +::C278:: +end +end +::B278:: +v_o = I32[arshift((v_n + 64), 2)] +v_u = lshift(v_e, 2) +v_r = bxor(I32[arshift((v_n + 68), 2)], v_t) +I32[arshift((v_u + v_n), 2)] = tobit(v_r) +v_t = bxor(v_A, v_o) +I32[arshift((bor(4, v_u) + v_n), 2)] = tobit(v_t) +v_o = (((tobit(v_e) % 4294967296) < 16) and 1 or 0) +v_e = tobit((v_e + 2)) +v_A = v_r +if (not (v_o ~= 0)) then +goto B277 +end +end +::C277:: +end +end +::B277:: +do +v_u = I32[arshift((v_n + 68), 2)] +v_s = I32[arshift((v_n + 64), 2)] +v_e = 0 +v_a = tobit((v_n + 72)) +while true do +do +do +v_o = 0 +while true do +v_A = v_t +v_t = bxor(I32[arshift((lshift(v_o, 2) + v_n), 2)], v_r) +v_r = bxor(v_A, (bxor((I32[arshift((1024 + tobit((v_a + band((rshift(v_t, 14) % 4294967296), 1020)))), 2)] + I32[arshift((v_a + band((rshift(v_t, 22) % 4294967296), 1020)), 2)]), I32[arshift((2048 + tobit((v_a + band((rshift(v_t, 6) % 4294967296), 1020)))), 2)]) + I32[arshift((3072 + tobit((v_a + lshift(band(255, v_t), 2)))), 2)])) +v_o = tobit((v_o + 1)) +if not (16 ~= bor(0, v_o)) then goto B280 end +do +end +::C280:: +end +end +::B280:: +v_A = bxor(v_t, v_u) +v_o = lshift(v_e, 2) +I32[arshift((v_o + v_a), 2)] = tobit(v_A) +v_t = bxor(v_r, v_s) +I32[arshift((v_a + bor(4, v_o)), 2)] = tobit(v_t) +v_o = (((tobit(v_e) % 4294967296) < 254) and 1 or 0) +v_e = tobit((v_e + 2)) +v_r = v_A +if (not (v_o ~= 0)) then +goto B279 +end +end +::C279:: +end +end +::B279:: +do +v_e = 0 +v_a = tobit((v_n + 72)) +v_c = tobit((v_n + 1096)) +while true do +do +do +v_o = 0 +while true do +v_r = v_t +v_t = bxor(I32[arshift((lshift(v_o, 2) + v_n), 2)], v_A) +v_A = bxor(v_r, (bxor((I32[arshift((1024 + tobit((v_a + band((rshift(v_t, 14) % 4294967296), 1020)))), 2)] + I32[arshift((v_a + band((rshift(v_t, 22) % 4294967296), 1020)), 2)]), I32[arshift((2048 + tobit((v_a + band((rshift(v_t, 6) % 4294967296), 1020)))), 2)]) + I32[arshift((3072 + tobit((v_a + lshift(band(255, v_t), 2)))), 2)])) +v_o = tobit((v_o + 1)) +if not (16 ~= bor(0, v_o)) then goto B282 end +do +end +::C282:: +end +end +::B282:: +v_r = bxor(v_t, v_u) +v_o = lshift(v_e, 2) +I32[arshift((v_o + v_c), 2)] = tobit(v_r) +v_t = bxor(v_A, v_s) +I32[arshift((v_c + bor(4, v_o)), 2)] = tobit(v_t) +v_o = (((tobit(v_e) % 4294967296) < 254) and 1 or 0) +v_e = tobit((v_e + 2)) +v_A = v_r +if (not (v_o ~= 0)) then +goto B281 +end +end +::C281:: +end +end +::B281:: +do +v_e = 0 +v_a = tobit((v_n + 72)) +v_c = tobit((v_n + 2120)) +while true do +do +do +v_o = 0 +while true do +v_A = v_t +v_t = bxor(I32[arshift((lshift(v_o, 2) + v_n), 2)], v_r) +v_r = bxor(v_A, (bxor((I32[arshift((1024 + tobit((v_a + band((rshift(v_t, 14) % 4294967296), 1020)))), 2)] + I32[arshift((v_a + band((rshift(v_t, 22) % 4294967296), 1020)), 2)]), I32[arshift((2048 + tobit((v_a + band((rshift(v_t, 6) % 4294967296), 1020)))), 2)]) + I32[arshift((3072 + tobit((v_a + lshift(band(255, v_t), 2)))), 2)])) +v_o = tobit((v_o + 1)) +if not (16 ~= bor(0, v_o)) then goto B284 end +do +end +::C284:: +end +end +::B284:: +v_A = bxor(v_t, v_u) +v_o = lshift(v_e, 2) +I32[arshift((v_o + v_c), 2)] = tobit(v_A) +v_t = bxor(v_r, v_s) +I32[arshift((v_c + bor(4, v_o)), 2)] = tobit(v_t) +v_o = (((tobit(v_e) % 4294967296) < 254) and 1 or 0) +v_e = tobit((v_e + 2)) +v_r = v_A +if (not (v_o ~= 0)) then +goto B283 +end +end +::C283:: +end +end +::B283:: +do +v_r = 0 +v_a = tobit((v_n + 72)) +v_c = tobit((v_n + 3144)) +while true do +do +do +v_o = 0 +while true do +v_e = v_t +v_t = bxor(I32[arshift((lshift(v_o, 2) + v_n), 2)], v_A) +v_A = bxor(v_e, (bxor((I32[arshift((1024 + tobit((v_a + band((rshift(v_t, 14) % 4294967296), 1020)))), 2)] + I32[arshift((v_a + band((rshift(v_t, 22) % 4294967296), 1020)), 2)]), I32[arshift((2048 + tobit((v_a + band((rshift(v_t, 6) % 4294967296), 1020)))), 2)]) + I32[arshift((3072 + tobit((v_a + lshift(band(255, v_t), 2)))), 2)])) +v_o = tobit((v_o + 1)) +if not (16 ~= bor(0, v_o)) then goto B286 end +do +end +::C286:: +end +end +::B286:: +v_e = bxor(v_t, v_u) +v_o = lshift(v_r, 2) +I32[arshift((v_o + v_c), 2)] = tobit(v_e) +v_t = bxor(v_A, v_s) +I32[arshift((v_c + bor(4, v_o)), 2)] = tobit(v_t) +v_o = (((tobit(v_r) % 4294967296) < 254) and 1 or 0) +v_r = tobit((v_r + 2)) +v_A = v_e +if (not (v_o ~= 0)) then +goto B285 +end +end +::C285:: +end +end +::B285:: +v_A = 0 +end +end +end +do return bor(0, v_A) end +end +UA[24] = function() +local v_A = 0 +v_A = F.fOA(1, 4168) +if (v_A ~= 0) then +F.fPA(v_A, 0, 4168) +end +do return bor(0, v_A) end +end +UA[25] = function(v_A) +local v_r, v_e = 0, 0 +v_r = 0 +v_e = 0 +do +v_A = tobit(v_A) +v_r = v_A +if (v_r ~= 0) then +do +v_e = 4160 +while true do +do +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +if (not (v_e ~= 0)) then +goto L287 +end +v_r = tobit((v_r + 8)) +v_e = tobit((v_e - 8)) +end +::C288:: +end +end +::B288:: +end +end +::L287:: +F.fL(v_A) +end +UA[26] = function(v_A, v_r, v_e, v_n) + +do +v_A = tobit(v_A) +local t319 = v_A +v_e = tobit(v_e) +local t320 = v_e +v_n = tobit(v_n) +do return bor(0, F.fF(t319, t320, v_n)) end +end +end +UA[27] = function(v_A, v_r, v_e, v_t, v_o, v_a) +local v_u, v_c, v_s = 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_c = 0 +v_s = 0 +v_u = tobit((B - 16)) +B = v_u +v_s = (-38) +do +v_e = tobit(v_e) +if (not (band(15, v_e) ~= 0)) then +if (v_r ~= 0) then +v_s = 0 +if (not (v_e ~= 0)) then +goto L289 +end +do +while true do +I8[bor(0, v_a)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_o)])) +I8[tobit((v_a + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_o + 1))])) +I8[tobit((v_a + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_o + 2))])) +I8[tobit((v_a + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_o + 3))])) +I8[tobit((v_a + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_o + 4))])) +I8[tobit((v_a + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_o + 5))])) +I8[tobit((v_a + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_o + 6))])) +I8[tobit((v_a + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_o + 7))])) +I8[tobit((v_a + 8))] = tobit(bxor(U8[tobit((v_t + 8))], U8[tobit((v_o + 8))])) +I8[tobit((v_a + 9))] = tobit(bxor(U8[tobit((v_t + 9))], U8[tobit((v_o + 9))])) +I8[tobit((v_a + 10))] = tobit(bxor(U8[tobit((v_t + 10))], U8[tobit((v_o + 10))])) +I8[tobit((v_a + 11))] = tobit(bxor(U8[tobit((v_t + 11))], U8[tobit((v_o + 11))])) +I8[tobit((v_a + 12))] = tobit(bxor(U8[tobit((v_t + 12))], U8[tobit((v_o + 12))])) +I8[tobit((v_a + 13))] = tobit(bxor(U8[tobit((v_t + 13))], U8[tobit((v_o + 13))])) +I8[tobit((v_a + 14))] = tobit(bxor(U8[tobit((v_t + 14))], U8[tobit((v_o + 14))])) +I8[tobit((v_a + 15))] = tobit(bxor(U8[tobit((v_t + 15))], U8[tobit((v_o + 15))])) +F.fF(v_A, v_a, v_a) +v_r = bor(bor(bor(U8[tobit((v_a + 12))], lshift(U8[tobit((v_a + 13))], 8)), lshift(U8[tobit((v_a + 14))], 16)), lshift(U8[tobit((v_a + 15))], 24)) +v_c = bor(bor(bor(U8[tobit((v_a + 8))], lshift(U8[tobit((v_a + 9))], 8)), lshift(U8[tobit((v_a + 10))], 16)), lshift(U8[tobit((v_a + 11))], 24)) +I8[tobit((v_t + 8))] = tobit(v_c) +I8[tobit((v_t + 9))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 11))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 12))] = tobit(v_r) +I8[tobit((v_t + 13))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 15))] = tobit((rshift(v_r, 24) % 4294967296)) +v_r = bor(bor(bor(U8[tobit((v_a + 4))], lshift(U8[tobit((v_a + 5))], 8)), lshift(U8[tobit((v_a + 6))], 16)), lshift(U8[tobit((v_a + 7))], 24)) +v_c = bor(bor(bor(U8[bor(0, v_a)], lshift(U8[tobit((v_a + 1))], 8)), lshift(U8[tobit((v_a + 2))], 16)), lshift(U8[tobit((v_a + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_c) +I8[tobit((v_t + 1))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_r) +I8[tobit((v_t + 5))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_r, 24) % 4294967296)) +v_a = tobit((v_a + 16)) +v_o = tobit((v_o + 16)) +v_e = tobit((v_e - 16)) +if not (v_e ~= 0) then goto B290 end +do +end +::C290:: +end +end +::B290:: +else +v_s = 0 +if (v_e ~= 0) then +do +while true do +v_r = bor(bor(bor(U8[tobit((v_o + 4))], lshift(U8[tobit((v_o + 5))], 8)), lshift(U8[tobit((v_o + 6))], 16)), lshift(U8[tobit((v_o + 7))], 24)) +I32[arshift(v_u, 2)] = tobit(bor(bor(bor(U8[bor(0, v_o)], lshift(U8[tobit((v_o + 1))], 8)), lshift(U8[tobit((v_o + 2))], 16)), lshift(U8[tobit((v_o + 3))], 24))) +I32[arshift((v_u + 4), 2)] = tobit(v_r) +v_r = bor(bor(bor(U8[tobit((v_o + 12))], lshift(U8[tobit((v_o + 13))], 8)), lshift(U8[tobit((v_o + 14))], 16)), lshift(U8[tobit((v_o + 15))], 24)) +I32[arshift((v_u + 8), 2)] = tobit(bor(bor(bor(U8[tobit((v_o + 8))], lshift(U8[tobit((v_o + 9))], 8)), lshift(U8[tobit((v_o + 10))], 16)), lshift(U8[tobit((v_o + 11))], 24))) +I32[arshift((v_u + 12), 2)] = tobit(v_r) +F.fF(v_A, v_o, v_a) +I8[bor(0, v_a)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_a)])) +I8[tobit((v_a + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_a + 1))])) +I8[tobit((v_a + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_a + 2))])) +I8[tobit((v_a + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_a + 3))])) +I8[tobit((v_a + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_a + 4))])) +I8[tobit((v_a + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_a + 5))])) +I8[tobit((v_a + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_a + 6))])) +I8[tobit((v_a + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_a + 7))])) +I8[tobit((v_a + 8))] = tobit(bxor(U8[tobit((v_t + 8))], U8[tobit((v_a + 8))])) +I8[tobit((v_a + 9))] = tobit(bxor(U8[tobit((v_t + 9))], U8[tobit((v_a + 9))])) +I8[tobit((v_a + 10))] = tobit(bxor(U8[tobit((v_t + 10))], U8[tobit((v_a + 10))])) +I8[tobit((v_a + 11))] = tobit(bxor(U8[tobit((v_t + 11))], U8[tobit((v_a + 11))])) +I8[tobit((v_a + 12))] = tobit(bxor(U8[tobit((v_t + 12))], U8[tobit((v_a + 12))])) +I8[tobit((v_a + 13))] = tobit(bxor(U8[tobit((v_t + 13))], U8[tobit((v_a + 13))])) +I8[tobit((v_a + 14))] = tobit(bxor(U8[tobit((v_t + 14))], U8[tobit((v_a + 14))])) +I8[tobit((v_a + 15))] = tobit(bxor(U8[tobit((v_t + 15))], U8[tobit((v_a + 15))])) +v_r = I32[arshift((v_u + 12), 2)] +v_c = I32[arshift((v_u + 8), 2)] +I8[tobit((v_t + 8))] = tobit(v_c) +I8[tobit((v_t + 9))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 10))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 11))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 12))] = tobit(v_r) +I8[tobit((v_t + 13))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 14))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 15))] = tobit((rshift(v_r, 24) % 4294967296)) +v_r = I32[arshift((v_u + 4), 2)] +v_c = I32[arshift(v_u, 2)] +I8[bor(0, v_t)] = tobit(v_c) +I8[tobit((v_t + 1))] = tobit((rshift(v_c, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_c, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_c, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_r) +I8[tobit((v_t + 5))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_r, 24) % 4294967296)) +v_a = tobit((v_a + 16)) +v_o = tobit((v_o + 16)) +v_e = tobit((v_e - 16)) +if not (v_e ~= 0) then goto B291 end +do +end +::C291:: +end +end +::B291:: +end +end +end +end +::L289:: +B = tobit((v_u + 16)) +do return bor(0, v_s) end +end +UA[28] = function(v_A, v_r, v_e, v_t, v_o, v_a, v_u) +local v_c, v_s = 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = 0 +v_s = 0 +v_t = tobit(v_t) +v_c = I32[arshift(v_t, 2)] +do +if (v_r ~= 0) then +if (not (v_e ~= 0)) then +goto L292 +end +do +while true do +v_e = tobit((v_e - 1)) +if not (v_c ~= 0) then +F.fF(v_A, v_o, v_o) +end +v_r = tobit((v_o + v_c)) +v_s = bxor(U8[bor(0, v_a)], U8[bor(0, v_r)]) +I8[bor(0, v_u)] = tobit(v_s) +I8[bor(0, v_r)] = tobit(v_s) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 15) +if not (v_e ~= 0) then goto B293 end +do +end +::C293:: +end +end +::B293:: +else +if (v_e ~= 0) then +do +while true do +v_e = tobit((v_e - 1)) +if not (v_c ~= 0) then +F.fF(v_A, v_o, v_o) +end +v_s = U8[bor(0, v_a)] +v_r = tobit((v_o + v_c)) +I8[bor(0, v_u)] = tobit(bxor(v_s, U8[bor(0, v_r)])) +I8[bor(0, v_r)] = tobit(v_s) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 15) +if not (v_e ~= 0) then goto B294 end +do +end +::C294:: +end +end +::B294:: +end +end +end +::L292:: +I32[arshift(v_t, 2)] = tobit(v_c) +do return 0 end +end +UA[29] = function(v_A, v_r, v_e, v_t, v_o, v_a, v_u) +local v_c, v_s, v_l, v_b = 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_e = tobit(v_e) +v_c = I32[arshift(v_e, 2)] +if (v_r ~= 0) then +do +while true do +do +v_r = tobit((v_r - 1)) +do +if (not (v_c ~= 0)) then +do +F.fF(v_A, v_t, v_o) +v_s = 16 +while true do +do +if (not (v_s ~= 0)) then +goto L296 +end +v_s = tobit((v_s - 1)) +v_b = tobit((v_s + v_t)) +v_l = tobit((U8[bor(0, v_b)] + 1)) +I8[bor(0, v_b)] = tobit(v_l) +if (bor(0, v_l) == band(255, v_l)) then +goto B297 +end +end +::C297:: +end +end +::B297:: +end +end +::L296:: +I8[bor(0, v_u)] = tobit(bxor(U8[tobit((v_o + v_c))], U8[bor(0, v_a)])) +v_u = tobit((v_u + 1)) +v_a = tobit((v_a + 1)) +v_c = band((v_c + 1), 15) +if (not (v_r ~= 0)) then +goto B295 +end +end +::C295:: +end +end +::B295:: +end +I32[arshift(v_e, 2)] = tobit(v_c) +do return 0 end +end +UA[30] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t321 = v_A +v_r = tobit(v_r) +local t322 = v_r +v_e = tobit(v_e) +do return bor(0, F.fQ(t321, t322, v_e)) end +end +end +UA[31] = function(v_A, v_r, v_e) +local v_t, v_o, v_f, v_a = 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_f = 0 +v_a = 0 +do +v_t = tobit((B - 288)) +B = v_t +F.fPA(tobit((v_t + 8)), 0, 276) +v_o = F.fQ(tobit((v_t + 8)), v_r, v_e) +if (not (v_o ~= 0)) then +do +do +do +v_r = I32[arshift((v_t + 8), 2)] +I32[arshift(v_A, 2)] = tobit(v_r) +local t323 = tobit((v_t + 8)) +v_f = ((4 == bor(0, v_r)) and 1 or 0) +v_e = tobit((t323 + lshift(v_f, 6))) +I32[arshift((v_A + 4), 2)] = tobit(I32[arshift((v_e + 196), 2)]) +I32[arshift((v_A + 8), 2)] = tobit(I32[arshift((v_e + 200), 2)]) +I32[arshift((v_A + 12), 2)] = tobit(I32[arshift((v_e + 204), 2)]) +I32[arshift((v_A + 16), 2)] = tobit(I32[arshift((v_e + 208), 2)]) +v_r = tobit((v_A + 20)) +v_f = bor(lshift(v_f, 3), 22) +v_e = tobit((v_e + 188)) +v_A = 1 +end +while true do +do +I32[arshift(v_r, 2)] = tobit(I32[arshift(v_e, 2)]) +I32[arshift((v_r + 4), 2)] = tobit(I32[arshift((v_e + 4), 2)]) +v_e = tobit((v_e - 8)) +v_f = tobit((v_f - 1)) +v_r = tobit((v_r + 8)) +if (not (v_A ~= 0)) then +do +while true do +v_A = v_r +I32[arshift(v_A, 2)] = tobit(I32[arshift(v_e, 2)]) +I32[arshift((v_A + 4), 2)] = tobit(I32[arshift((v_e + 4), 2)]) +I32[arshift((v_A + 8), 2)] = tobit(I32[arshift((v_e - 8), 2)]) +I32[arshift((v_A + 12), 2)] = tobit(I32[arshift((v_e - 4), 2)]) +I32[arshift((v_A + 16), 2)] = tobit(I32[arshift((v_e - 16), 2)]) +I32[arshift((v_A + 20), 2)] = tobit(I32[arshift((v_e - 12), 2)]) +v_a = tobit((v_e - 24)) +I32[arshift((v_A + 24), 2)] = tobit(I32[arshift(v_a, 2)]) +I32[arshift((v_A + 28), 2)] = tobit(I32[arshift((v_e - 20), 2)]) +v_e = tobit((v_e - 32)) +v_r = tobit((v_A + 32)) +v_f = tobit((v_f - 4)) +if not (v_f ~= 0) then goto B299 end +do +end +::C299:: +end +end +::B299:: +I32[arshift((v_A + 32), 2)] = tobit(I32[arshift((v_a - 16), 2)]) +I32[arshift((v_A + 36), 2)] = tobit(I32[arshift((v_a - 12), 2)]) +I32[arshift((v_A + 40), 2)] = tobit(I32[arshift(v_e, 2)]) +I32[arshift((v_A + 44), 2)] = tobit(I32[arshift((v_a - 4), 2)]) +goto B298 +end +v_A = tobit((v_A - 1)) +end +::C298:: +end +end +::B298:: +end +end +end +do +v_A = 264 +v_e = tobit((v_t + 8)) +while true do +I8[bor(0, v_e)] = tobit(0) +I8[tobit((v_e + 1))] = tobit(0) +I8[tobit((v_e + 2))] = tobit(0) +I8[tobit((v_e + 3))] = tobit(0) +I8[tobit((v_e + 4))] = tobit(0) +I8[tobit((v_e + 5))] = tobit(0) +I8[tobit((v_e + 6))] = tobit(0) +I8[tobit((v_e + 7))] = tobit(0) +I8[tobit((v_e + 8))] = tobit(0) +I8[tobit((v_e + 9))] = tobit(0) +I8[tobit((v_e + 10))] = tobit(0) +I8[tobit((v_e + 11))] = tobit(0) +if not (v_A ~= 0) then goto B300 end +do +v_e = tobit((v_e + 12)) +v_A = tobit((v_A - 12)) +end +::C300:: +end +end +::B300:: +B = tobit((v_t + 288)) +do return bor(0, v_o) end +end +UA[32] = function() +local v_A = 0 +v_A = F.fOA(1, 276) +if (v_A ~= 0) then +F.fPA(v_A, 0, 276) +end +do return bor(0, v_A) end +end +UA[33] = function(v_A) +local v_r, v_e = 0, 0 +v_r = 0 +v_e = 0 +do +v_A = tobit(v_A) +v_r = v_A +if (v_r ~= 0) then +do +v_e = 264 +while true do +do +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +I8[tobit((v_r + 8))] = tobit(0) +I8[tobit((v_r + 9))] = tobit(0) +I8[tobit((v_r + 10))] = tobit(0) +I8[tobit((v_r + 11))] = tobit(0) +if (not (v_e ~= 0)) then +goto L301 +end +v_r = tobit((v_r + 12)) +v_e = tobit((v_e - 12)) +end +::C302:: +end +end +::B302:: +end +end +::L301:: +F.fL(v_A) +end +UA[34] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t324 = v_A +v_r = tobit(v_r) +local t325 = v_r +v_e = tobit(v_e) +do return bor(0, F.fN(t324, 5, t325, v_e)) end +end +end +UA[35] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t326 = v_A +v_r = tobit(v_r) +local t327 = v_r +v_e = tobit(v_e) +do return bor(0, F.fxA(t326, 5, t327, v_e)) end +end +end +UA[36] = function(v_A, v_r, v_e, v_n) + +do +v_A = tobit(v_A) +local t328 = v_A +v_e = tobit(v_e) +local t329 = v_e +v_n = tobit(v_n) +do return bor(0, F.fz(t328, t329, v_n)) end +end +end +UA[37] = function(v_A, v_r, v_e, v_n, v_t, v_o) + +do +v_A = tobit(v_A) +local t330 = v_A +v_r = tobit(v_r) +local t331 = v_r +v_e = tobit(v_e) +local t332 = v_e +v_n = tobit(v_n) +local t333 = v_n +v_t = tobit(v_t) +local t334 = v_t +v_o = tobit(v_o) +do return bor(0, F.fX(t330, t331, t332, t333, t334, v_o)) end +end +end +UA[38] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t335 = v_A +v_r = tobit(v_r) +F.fJ(t335, v_r) +do return 0 end +end +end +UA[39] = function(v_A, v_r, v_e) + +do +v_A = tobit(v_A) +local t336 = v_A +v_r = tobit(v_r) +do return bor(0, F.frA(t336, v_r)) end +end +end +UA[40] = function() +local v_A = 0 +v_A = F.fOA(1, 128) +if (v_A ~= 0) then +F.fFA(v_A) +end +do return bor(0, v_A) end +end +UA[41] = function(v_A) + +v_A = tobit(v_A) +F.fq(v_A) +F.fL(v_A) +end +UA[42] = function(v_A, v_r, v_e, v_n) + +do +v_A = tobit(v_A) +local t337 = v_A +v_e = tobit(v_e) +local t338 = v_e +v_n = tobit(v_n) +do return bor(0, F.fH(t337, t338, v_n)) end +end +end +UA[43] = function(v_A, v_r, v_e, v_t, v_o, v_i) +local v_a, v_u = 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_i = tobit(v_i) +v_a = 0 +v_u = 0 +v_u = (-50) +do +v_e = tobit(v_e) +if (not (band(7, v_e) ~= 0)) then +if (1 == bor(0, v_r)) then +v_u = 0 +if (v_e ~= 0) then +do +v_r = U8[bor(0, v_t)] +while true do +I8[bor(0, v_i)] = tobit(bxor(U8[bor(0, v_o)], v_r)) +I8[tobit((v_i + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_o + 1))])) +I8[tobit((v_i + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_o + 2))])) +I8[tobit((v_i + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_o + 3))])) +I8[tobit((v_i + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_o + 4))])) +I8[tobit((v_i + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_o + 5))])) +I8[tobit((v_i + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_o + 6))])) +I8[tobit((v_i + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_o + 7))])) +F.fH(v_A, v_i, v_i) +v_a = bor(bor(bor(U8[tobit((v_i + 4))], lshift(U8[tobit((v_i + 5))], 8)), lshift(U8[tobit((v_i + 6))], 16)), lshift(U8[tobit((v_i + 7))], 24)) +v_r = bor(bor(bor(U8[bor(0, v_i)], lshift(U8[tobit((v_i + 1))], 8)), lshift(U8[tobit((v_i + 2))], 16)), lshift(U8[tobit((v_i + 3))], 24)) +I8[bor(0, v_t)] = tobit(v_r) +I8[tobit((v_t + 1))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_r, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_a) +I8[tobit((v_t + 5))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_a, 24) % 4294967296)) +v_i = tobit((v_i + 8)) +v_o = tobit((v_o + 8)) +v_e = tobit((v_e - 8)) +if not (v_e ~= 0) then goto B304 end +do +end +::C304:: +end +end +::B304:: +end +else +v_u = 0 +if (not (v_e ~= 0)) then +goto L303 +end +do +while true do +v_a = bor(bor(bor(U8[tobit((v_o + 4))], lshift(U8[tobit((v_o + 5))], 8)), lshift(U8[tobit((v_o + 6))], 16)), lshift(U8[tobit((v_o + 7))], 24)) +v_r = bor(bor(bor(U8[bor(0, v_o)], lshift(U8[tobit((v_o + 1))], 8)), lshift(U8[tobit((v_o + 2))], 16)), lshift(U8[tobit((v_o + 3))], 24)) +F.fH(v_A, v_o, v_i) +I8[bor(0, v_i)] = tobit(bxor(U8[bor(0, v_t)], U8[bor(0, v_i)])) +I8[tobit((v_i + 1))] = tobit(bxor(U8[tobit((v_t + 1))], U8[tobit((v_i + 1))])) +I8[tobit((v_i + 2))] = tobit(bxor(U8[tobit((v_t + 2))], U8[tobit((v_i + 2))])) +I8[tobit((v_i + 3))] = tobit(bxor(U8[tobit((v_t + 3))], U8[tobit((v_i + 3))])) +I8[tobit((v_i + 4))] = tobit(bxor(U8[tobit((v_t + 4))], U8[tobit((v_i + 4))])) +I8[tobit((v_i + 5))] = tobit(bxor(U8[tobit((v_t + 5))], U8[tobit((v_i + 5))])) +I8[tobit((v_i + 6))] = tobit(bxor(U8[tobit((v_t + 6))], U8[tobit((v_i + 6))])) +I8[tobit((v_i + 7))] = tobit(bxor(U8[tobit((v_t + 7))], U8[tobit((v_i + 7))])) +I8[bor(0, v_t)] = tobit(v_r) +I8[tobit((v_t + 1))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_t + 2))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_t + 3))] = tobit((rshift(v_r, 24) % 4294967296)) +I8[tobit((v_t + 4))] = tobit(v_a) +I8[tobit((v_t + 5))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_t + 6))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_t + 7))] = tobit((rshift(v_a, 24) % 4294967296)) +v_i = tobit((v_i + 8)) +v_o = tobit((v_o + 8)) +v_e = tobit((v_e - 8)) +if not (v_e ~= 0) then goto B305 end +do +end +::C305:: +end +end +::B305:: +end +end +end +::L303:: +do return bor(0, v_u) end +end +UA[44] = function(v_A, v_r, v_e) +local v_t, v_o, v_f, v_a, v_u, v_c = 0, 0, 0, 0, 0, 0 +v_e = tobit(v_e) +v_t = 0 +v_o = 0 +v_f = 0 +v_a = 0 +v_u = 0 +v_c = 0 +do +do +do +v_e = tobit((B - 384)) +B = v_e +v_A = tobit(v_A) +local t339 = v_A +v_r = tobit(v_r) +F.fJ(t339, v_r) +F.fJ(tobit((v_e + 128)), tobit((v_r + 8))) +v_r = 0 +end +while true do +v_t = lshift(v_r, 2) +v_f = I32[arshift((lshift((30 - v_r), 2) + v_A), 2)] +I32[arshift((v_t + v_e), 2)] = tobit(v_f) +v_a = bor(4, v_t) +v_u = I32[arshift((lshift((31 - v_r), 2) + v_A), 2)] +I32[arshift((v_a + v_e), 2)] = tobit(v_u) +v_o = tobit((v_A + v_t)) +I32[arshift((128 + v_o), 2)] = tobit(I32[arshift((lshift((62 - v_r), 2) + v_e), 2)]) +I32[arshift((v_o + 132), 2)] = tobit(I32[arshift((lshift((63 - v_r), 2) + v_e), 2)]) +v_c = tobit((v_t + 256)) +I32[arshift((v_c + v_A), 2)] = tobit(I32[arshift(v_o, 2)]) +v_t = tobit((v_t + 260)) +I32[arshift((v_t + v_A), 2)] = tobit(I32[arshift((v_A + v_a), 2)]) +I32[arshift((v_e + v_t), 2)] = tobit(v_u) +I32[arshift((v_e + v_c), 2)] = tobit(v_f) +v_t = (((tobit(v_r) % 4294967296) < 30) and 1 or 0) +v_r = tobit((v_r + 2)) +if not (v_t ~= 0) then goto B306 end +do +end +::C306:: +end +end +::B306:: +end +do +v_A = 372 +v_r = v_e +while true do +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +I8[tobit((v_r + 8))] = tobit(0) +I8[tobit((v_r + 9))] = tobit(0) +I8[tobit((v_r + 10))] = tobit(0) +I8[tobit((v_r + 11))] = tobit(0) +if not (v_A ~= 0) then goto B307 end +do +v_r = tobit((v_r + 12)) +v_A = tobit((v_A - 12)) +end +::C307:: +end +end +::B307:: +B = tobit((v_e + 384)) +do return 0 end +end +UA[45] = function(v_A, v_r, v_e) +local v_t, v_o, v_f, v_a, v_u, v_c = 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_e = tobit(v_e) +v_t = 0 +v_o = 0 +v_f = 0 +v_a = 0 +v_u = 0 +v_c = 0 +do +do +do +v_e = tobit((B - 384)) +B = v_e +local t340 = v_e +v_r = tobit(v_r) +F.fJ(t340, v_r) +F.fJ(tobit((v_A + 128)), tobit((v_r + 8))) +v_r = 0 +end +while true do +v_t = lshift(v_r, 2) +v_f = I32[arshift((lshift((30 - v_r), 2) + v_e), 2)] +I32[arshift((v_t + v_A), 2)] = tobit(v_f) +v_a = bor(4, v_t) +v_u = I32[arshift((lshift((31 - v_r), 2) + v_e), 2)] +I32[arshift((v_a + v_A), 2)] = tobit(v_u) +v_o = tobit((v_e + v_t)) +I32[arshift((128 + v_o), 2)] = tobit(I32[arshift((lshift((62 - v_r), 2) + v_A), 2)]) +I32[arshift((v_o + 132), 2)] = tobit(I32[arshift((lshift((63 - v_r), 2) + v_A), 2)]) +v_c = tobit((v_t + 256)) +I32[arshift((v_c + v_e), 2)] = tobit(I32[arshift(v_o, 2)]) +v_t = tobit((v_t + 260)) +I32[arshift((v_t + v_e), 2)] = tobit(I32[arshift((v_e + v_a), 2)]) +I32[arshift((v_A + v_t), 2)] = tobit(v_u) +I32[arshift((v_A + v_c), 2)] = tobit(v_f) +v_t = (((tobit(v_r) % 4294967296) < 30) and 1 or 0) +v_r = tobit((v_r + 2)) +if not (v_t ~= 0) then goto B308 end +do +end +::C308:: +end +end +::B308:: +end +do +v_A = 372 +v_r = v_e +while true do +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +I8[tobit((v_r + 8))] = tobit(0) +I8[tobit((v_r + 9))] = tobit(0) +I8[tobit((v_r + 10))] = tobit(0) +I8[tobit((v_r + 11))] = tobit(0) +if not (v_A ~= 0) then goto B309 end +do +v_r = tobit((v_r + 12)) +v_A = tobit((v_A - 12)) +end +::C309:: +end +end +::B309:: +B = tobit((v_e + 384)) +do return 0 end +end +UA[46] = function() +local v_A = 0 +v_A = F.fOA(1, 384) +if (v_A ~= 0) then +F.fPA(v_A, 0, 384) +end +do return bor(0, v_A) end +end +UA[47] = function(v_A) +local v_r, v_e = 0, 0 +v_r = 0 +v_e = 0 +do +v_A = tobit(v_A) +v_r = v_A +if (v_r ~= 0) then +do +v_e = 372 +while true do +do +I8[bor(0, v_r)] = tobit(0) +I8[tobit((v_r + 1))] = tobit(0) +I8[tobit((v_r + 2))] = tobit(0) +I8[tobit((v_r + 3))] = tobit(0) +I8[tobit((v_r + 4))] = tobit(0) +I8[tobit((v_r + 5))] = tobit(0) +I8[tobit((v_r + 6))] = tobit(0) +I8[tobit((v_r + 7))] = tobit(0) +I8[tobit((v_r + 8))] = tobit(0) +I8[tobit((v_r + 9))] = tobit(0) +I8[tobit((v_r + 10))] = tobit(0) +I8[tobit((v_r + 11))] = tobit(0) +if (not (v_e ~= 0)) then +goto L310 +end +v_r = tobit((v_r + 12)) +v_e = tobit((v_e - 12)) +end +::C311:: +end +end +::B311:: +end +end +::L310:: +F.fL(v_A) +end +UA[48] = function(v_A, v_r, v_e) + +do +do +do +v_e = tobit(v_e) +v_e = tobit((B - 384)) +B = v_e +v_A = tobit(v_A) +local t341 = v_A +local t342 = v_e +v_r = tobit(v_r) +F.fbA(t341, t342, v_r) +v_r = 372 +v_A = v_e +end +while true do +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +if not (v_r ~= 0) then goto B312 end +do +v_A = tobit((v_A + 12)) +v_r = tobit((v_r - 12)) +end +::C312:: +end +end +::B312:: +end +B = tobit((v_e + 384)) +do return 0 end +end +UA[49] = function(v_A, v_r, v_e) + +do +do +do +v_e = tobit(v_e) +v_e = tobit((B - 384)) +B = v_e +local t343 = v_e +v_A = tobit(v_A) +local t344 = v_A +v_r = tobit(v_r) +F.fbA(t343, t344, v_r) +v_r = 372 +v_A = v_e +end +while true do +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +if not (v_r ~= 0) then goto B313 end +do +v_A = tobit((v_A + 12)) +v_r = tobit((v_r - 12)) +end +::C313:: +end +end +::B313:: +end +B = tobit((v_e + 384)) +do return 0 end +end +UA[50] = function(v_A, v_r, v_e) +local v_n, v_t, v_o, v_a, v_u = 0, 0, 0, 0, 0 +v_r = tobit(v_r) +v_n = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +do +v_A = tobit(v_A) +local t345 = (not (v_A ~= 0)) +v_e = tobit(v_e) +if (bor((t345 and 1 or 0), ((not (v_e ~= 0)) and 1 or 0)) ~= 0) then +v_A = (-24832) +else +do +do +local t346 = v_r +v_n = U8[tobit((tobit((v_A + v_r)) - 1))] +v_t = tobit((t346 - v_n)) +I32[arshift(v_e, 2)] = tobit(v_t) +v_e = bor(((not (v_n ~= 0)) and 1 or 0), (((tobit(v_r) % 4294967296) < (tobit(v_n) % 4294967296)) and 1 or 0)) +if (v_r ~= 0) then +do +do +v_a = band(3, v_r) +if ((tobit((v_r - 1)) % 4294967296) < 3) then +v_r = 0 +else +do +do +v_u = band((-4), v_r) +v_r = 0 +while true do +do +v_o = bor((((tobit(v_r) % 4294967296) < (tobit(v_t) % 4294967296)) and 0 or bxor(v_n, U8[tobit((v_A + v_r))])), v_e) +local t347 = v_o +v_e = bor(1, v_r) +v_o = bor(t347, (((tobit(v_e) % 4294967296) < (tobit(v_t) % 4294967296)) and 0 or bxor(v_n, U8[tobit((v_e + v_A))]))) +local t348 = v_o +v_e = bor(2, v_r) +v_o = bor(t348, (((tobit(v_e) % 4294967296) < (tobit(v_t) % 4294967296)) and 0 or bxor(v_n, U8[tobit((v_e + v_A))]))) +local t349 = v_o +v_e = bor(3, v_r) +v_e = bor(t349, (((tobit(v_e) % 4294967296) < (tobit(v_t) % 4294967296)) and 0 or bxor(v_n, U8[tobit((v_e + v_A))]))) +v_r = tobit((v_r + 4)) +v_u = tobit((v_u - 4)) +if not (v_u ~= 0) then goto B314 end +end +do +end +::C314:: +end +end +::B314:: +end +end +end +if (v_a ~= 0) then +do +while true do +v_e = bor((((tobit(v_r) % 4294967296) < (tobit(v_t) % 4294967296)) and 0 or bxor(v_n, U8[tobit((v_A + v_r))])), v_e) +v_r = tobit((v_r + 1)) +v_a = tobit((v_a - 1)) +if not (v_a ~= 0) then goto B315 end +do +end +::C315:: +end +end +::B315:: +end +end +end +end +v_A = ((band(255, v_e) ~= 0) and (-25088) or 0) +end +end +end +do return bor(0, v_A) end +end +UA[51] = function(v_A, v_r, v_e) +local v_t, v_o = 0, 0 +v_A = tobit(v_A) +v_t = 0 +v_o = 0 +do +do +do +v_r = tobit(v_r) +local t350 = v_r +v_e = tobit(v_e) +v_o = tobit((t350 - v_e)) +if (v_o ~= 0) then +do +v_r = 1 +v_t = v_e +while true do +do +I8[tobit((v_A + v_t))] = tobit(v_o) +v_t = band(255, v_r) +if ((tobit(v_t) % 4294967296) >= (tobit(v_o) % 4294967296)) then +goto L316 +end +v_r = tobit((v_r + 1)) +v_t = tobit((v_e + v_t)) +end +::C317:: +end +end +::B317:: +end +end +end +::L316:: +end +end +UA[52] = function(v_A, v_r, v_e, v_t, v_o, v_u) +local v_c, v_l, v_b, v_v, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_m, v_Q, v_O, v_S, v_M, v_x, v_j, v_T, v_P, v_K = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = v_r +v_e = tobit(v_e) +v_t = tobit(v_t) +v_o = tobit(v_o) +v_u = tobit(v_u) +v_l = 0 +v_b = 0 +v_v = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_m = 0 +v_Q = 0 +v_O = 0 +v_S = 0 +v_M = 0 +v_x = 0 +v_j = 0 +v_T = 0 +v_P = 0 +v_K = 0 +v_c = tobit((B - 560)) +B = v_c +I32[arshift((v_c + 44), 2)] = tobit(0) +rf_s(v_r) +v_k = bor(0, rf_a(1)) +rf_a(0) +if ((bor(0, v_k) < (-1)) or (bor(0, v_k) <= (-1))) then +v_S = 1 +v_M = 10511 +v_r = (-v_r) +rf_s(v_r) +v_k = bor(0, rf_a(1)) +rf_a(0) +else +if (band(2048, v_o) ~= 0) then +v_S = 1 +v_M = 10514 +else +v_S = band(1, v_o) +v_M = ((v_S ~= 0) and 10517 or 10512) +v_K = ((not (v_S ~= 0)) and 1 or 0) +end +end +do +do +do +if (2146435072 ~= band(2146435072, v_k)) then +do +v_Q = tobit((v_c + 16)) +do +do +do +do +do +v_r = F.fkA(v_r, tobit((v_c + 44))) +v_r = (v_r + v_r) +if (0 ~= v_r) then +v_l = I32[arshift((v_c + 44), 2)] +I32[arshift((v_c + 44), 2)] = tobit((v_l - 1)) +v_x = bor(32, v_u) +if (97 ~= bor(0, v_x)) then +goto L321 +end +goto L319 +end +v_x = bor(32, v_u) +if (97 == bor(0, v_x)) then +goto L319 +end +v_w = I32[arshift((v_c + 44), 2)] +v_h = ((bor(0, v_t) < 0) and 6 or v_t) +goto L320 +end +::L321:: +v_w = tobit((v_l - 29)) +I32[arshift((v_c + 44), 2)] = tobit(v_w) +v_r = (v_r * 268435456) +v_h = ((bor(0, v_t) < 0) and 6 or v_t) +end +::L320:: +do +v_E = ((bor(0, v_w) < 0) and tobit((v_c + 48)) or tobit((v_c + 336))) +v_b = v_E +while true do +v_l = ((band(((v_r < 4294967296) and 1 or 0), ((v_r >= 0) and 1 or 0)) ~= 0) and (tobit(bnot(bnot(v_r))) % 4294967296) or 0) +v_t = v_b +I32[arshift(v_t, 2)] = tobit(v_l) +v_b = tobit((v_b + 4)) +v_r = (1000000000 * (v_r - (tobit(v_l) % 4294967296))) +if not (0 ~= v_r) then goto B322 end +do +end +::C322:: +end +end +::B322:: +do +if (bor(0, v_w) < 1) then +v_t = v_w +v_l = v_b +v_v = v_E +else +do +do +v_v = v_E +v_t = v_w +while true do +do +do +do +v_y = ((bor(0, v_t) < 29) and v_t or 29) +local t351 = (tobit(v_v) % 4294967296) +v_l = tobit((v_b - 4)) +if (not (t351 > (tobit(v_l) % 4294967296))) then +do +do +do +v_d = v_y +v_t = 0 +v_k = 0 +while true do +do +v_m = v_l +v_P = I32[arshift(v_l, 2)] +v_C = band(31, v_d) +if ((tobit(band(63, v_d)) % 4294967296) >= 32) then +v_T = lshift(v_P, v_C) +v_C = 0 +else +v_T = band((lshift(1, v_C) - 1), (rshift(v_P, (32 - v_C)) % 4294967296)) +v_C = lshift(v_P, v_C) +end +v_T = tobit((v_k + v_T)) +v_C = tobit((v_C + v_t)) +v_k = v_C +v_t = F.fS_(v_k, (((tobit(v_t) % 4294967296) > (tobit(v_k) % 4294967296)) and tobit((v_T + 1)) or v_T), 1000000000) +v_C = F.fCA(v_t, Iv, 1000000000, 0) +I32[arshift(v_m, 2)] = tobit((v_k - v_C)) +local t352 = (tobit(v_v) % 4294967296) +v_l = tobit((v_l - 4)) +if not (t352 <= (tobit(v_l) % 4294967296)) then goto B324 end +end +do +v_k = 0 +end +::C324:: +end +end +::B324:: +end +if (v_t ~= 0) then +v_v = tobit((v_v - 4)) +I32[arshift(v_v, 2)] = tobit(v_t) +end +end +end +end +do +do +while true do +do +local t353 = (tobit(v_v) % 4294967296) +v_l = v_b +local t354 = (t353 < (tobit(v_l) % 4294967296)) +if t354 then +v_b = tobit((v_l - 4)) +t354 = (not (I32[arshift(v_b, 2)] ~= 0)) +end +if not t354 then goto B325 end +end +do +end +::C325:: +end +end +::B325:: +end +v_t = tobit((I32[arshift((v_c + 44), 2)] - v_y)) +I32[arshift((v_c + 44), 2)] = tobit(v_t) +v_b = v_l +if (not (bor(0, v_t) > 0)) then +goto B323 +end +end +end +::C323:: +end +end +::B323:: +end +end +end +do +v_b = tobit(toint((tobit((v_h + 25)) / 9))) +if (bor(0, v_t) <= (-1)) then +do +do +v_C = tobit((v_b + 1)) +v_j = ((102 == bor(0, v_x)) and 1 or 0) +while true do +do +do +v_m = ((bor(0, v_t) < (-9)) and 9 or tobit((0 - v_t))) +do +if ((tobit(v_l) % 4294967296) > (tobit(v_v) % 4294967296)) then +do +v_k = tobit((rshift(1000000000, v_m) % 4294967296)) +v_d = bxor(lshift((-1), v_m), (-1)) +v_t = 0 +v_b = v_v +while true do +v_y = v_t +v_t = I32[arshift(v_b, 2)] +I32[arshift(v_b, 2)] = tobit((v_y + tobit((rshift(v_t, v_m) % 4294967296)))) +v_t = imul(v_k, band(v_t, v_d)) +v_b = tobit((v_b + 4)) +if not ((tobit(v_b) % 4294967296) < (tobit(v_l) % 4294967296)) then goto B328 end +do +end +::C328:: +end +end +::B328:: +v_v = ((I32[arshift(v_v, 2)] ~= 0) and v_v or tobit((v_v + 4))) +if (not (v_t ~= 0)) then +goto L327 +end +I32[arshift(v_l, 2)] = tobit(v_t) +v_l = tobit((v_l + 4)) +else +v_v = ((I32[arshift(v_v, 2)] ~= 0) and v_v or tobit((v_v + 4))) +end +end +::L327:: +do +v_t = tobit((I32[arshift((v_c + 44), 2)] + v_m)) +I32[arshift((v_c + 44), 2)] = tobit(v_t) +local t356 = bor(0, v_C) +local t355 = v_l +v_b = ((v_j ~= 0) and v_E or v_v) +v_l = ((t356 < arshift((t355 - v_b), 2)) and tobit((v_b + lshift(v_C, 2))) or v_l) +if (not (bor(0, v_t) < 0)) then +goto B326 +end +end +end +end +::C326:: +end +end +::B326:: +end +end +end +v_b = 0 +do +do +do +local t357 = (((tobit(v_l) % 4294967296) <= (tobit(v_v) % 4294967296)) and 1 or 0) +if t357 == 0 then +v_b = imul(arshift((v_E - v_v), 2), 9) +v_d = I32[arshift(v_v, 2)] +t357 = (((tobit(v_d) % 4294967296) < 10) and 1 or 0) +end +if (not (t357 ~= 0)) then +do +v_t = 100 +while true do +do +v_b = tobit((v_b + 1)) +if ((tobit(v_t) % 4294967296) > (tobit(v_d) % 4294967296)) then +goto L329 +end +v_t = imul(v_t, 10) +end +::C330:: +end +end +::B330:: +end +end +end +::L329:: +end +do +v_t = tobit((tobit((v_h - ((102 == bor(0, v_x)) and 0 or v_b))) - band(((103 == bor(0, v_x)) and 1 or 0), ((0 ~= bor(0, v_h)) and 1 or 0)))) +if (bor(0, v_t) < tobit((imul(arshift((v_l - v_E), 2), 9) - 9))) then +do +v_k = tobit((v_t + 9216)) +v_d = tobit(toint((bor(0, v_k) / 9))) +v_y = tobit((tobit((lshift(v_d, 2) + ((bor(0, v_w) < 0) and bor((v_c + 48), 4) or tobit((v_c + 340))))) - 4096)) +v_t = 10 +do +v_d = tobit((v_k - imul(v_d, 9))) +if (not (bor(0, v_d) > 7)) then +do +v_t = 100 +while true do +do +v_d = tobit((v_d + 1)) +if (8 == bor(0, v_d)) then +goto L331 +end +v_t = imul(v_t, 10) +end +::C332:: +end +end +::B332:: +end +end +::L331:: +do +do +do +v_k = I32[arshift(v_y, 2)] +local t359 = v_k +local t358 = v_t +v_w = tobit(toint(((tobit(v_k) % 4294967296) / (tobit(v_t) % 4294967296)))) +v_C = tobit((t359 - imul(t358, v_w))) +v_d = tobit((v_y + 4)) +local t360 = ((bor(0, v_d) ~= bor(0, v_l)) and 1 or 0) +if t360 == 0 then +t360 = v_C +end +local t361 = t360 +if t361 ~= 0 then +v_r = ((bor(0, v_l) == bor(0, v_d)) and 1 or 1.5) +v_d = tobit((rshift(v_t, 1) % 4294967296)) +v_O = (((tobit(v_d) % 4294967296) > (tobit(v_C) % 4294967296)) and 0.5 or ((bor(0, v_d) == bor(0, v_C)) and v_r or 1.5)) +v_r = ((band(1, v_w) ~= 0) and 9007199254740994 or 9007199254740992) +if not (bor(((45 ~= U8[bor(0, v_M)]) and 1 or 0), v_K) ~= 0) then +v_O = (-v_O) +v_r = (-v_r) +end +v_d = tobit((v_k - v_C)) +I32[arshift(v_y, 2)] = tobit(v_d) +t361 = (((v_r + v_O) ~= v_r) and 1 or 0) +end +if (t361 ~= 0) then +v_t = tobit((v_t + v_d)) +I32[arshift(v_y, 2)] = tobit(v_t) +if ((tobit(v_t) % 4294967296) >= 1000000000) then +do +while true do +I32[arshift(v_y, 2)] = tobit(0) +v_y = tobit((v_y - 4)) +if ((tobit(v_y) % 4294967296) < (tobit(v_v) % 4294967296)) then +v_v = tobit((v_v - 4)) +I32[arshift(v_v, 2)] = tobit(0) +end +v_t = tobit((I32[arshift(v_y, 2)] + 1)) +I32[arshift(v_y, 2)] = tobit(v_t) +if not ((tobit(v_t) % 4294967296) > 999999999) then goto B334 end +do +end +::C334:: +end +end +::B334:: +end +v_b = imul(arshift((v_E - v_v), 2), 9) +v_d = I32[arshift(v_v, 2)] +if (not ((tobit(v_d) % 4294967296) < 10)) then +do +v_t = 100 +while true do +do +v_b = tobit((v_b + 1)) +if ((tobit(v_t) % 4294967296) > (tobit(v_d) % 4294967296)) then +goto L333 +end +v_t = imul(v_t, 10) +end +::C335:: +end +end +::B335:: +end +end +end +end +::L333:: +end +v_t = tobit((v_y + 4)) +v_l = (((tobit(v_t) % 4294967296) < (tobit(v_l) % 4294967296)) and v_t or v_l) +end +end +end +do +do +while true do +do +v_w = v_l +v_d = (((tobit(v_l) % 4294967296) <= (tobit(v_v) % 4294967296)) and 1 or 0) +local t362 = ((not (v_d ~= 0)) and 1 or 0) +if t362 ~= 0 then +v_l = tobit((v_w - 4)) +t362 = ((not (I32[arshift(v_l, 2)] ~= 0)) and 1 or 0) +end +if not (t362 ~= 0) then goto B336 end +end +do +end +::C336:: +end +end +::B336:: +end +do +if (103 == bor(0, v_x)) then +do +do +local t363 = v_h +if t363 == 0 then +t363 = 1 +end +v_l = t363 +v_t = band(((bor(0, v_l) > bor(0, v_b)) and 1 or 0), ((bor(0, v_b) > (-5)) and 1 or 0)) +v_h = tobit((((v_t ~= 0) and bxor((-1), v_b) or (-1)) + v_l)) +v_u = tobit((((v_t ~= 0) and (-1) or (-2)) + v_u)) +v_m = band(8, v_o) +if (not (v_m ~= 0)) then +do +do +v_l = (-9) +local t364 = ((not (v_d ~= 0)) and 1 or 0) +if t364 ~= 0 then +v_t = I32[arshift((v_w - 4), 2)] +t364 = v_t +end +local t365 = t364 +if t365 ~= 0 then +v_l = 0 +t365 = ((not (tobit(fmod((tobit(v_t) % 4294967296), 10)) ~= 0)) and 1 or 0) +end +if (t365 ~= 0) then +do +v_d = 0 +v_l = 100 +while true do +if not (not (tobit(fmod((tobit(v_t) % 4294967296), (tobit(v_l) % 4294967296))) ~= 0)) then goto B337 end +do +v_d = tobit((v_d + 1)) +v_l = imul(v_l, 10) +end +::C337:: +end +end +::B337:: +v_l = bxor((-1), v_d) +end +end +v_t = imul(arshift((v_w - v_E), 2), 9) +if (70 ~= band((-33), v_u)) then +v_m = 0 +v_t = tobit((tobit((tobit((v_t + v_b)) + v_l)) - 9)) +v_t = ((bor(0, v_t) > 0) and v_t or 0) +v_h = ((bor(0, v_t) > bor(0, v_h)) and v_h or v_t) +else +v_m = 0 +v_t = tobit((tobit((v_t + v_l)) - 9)) +v_t = ((bor(0, v_t) > 0) and v_t or 0) +v_h = ((bor(0, v_t) > bor(0, v_h)) and v_h or v_t) +end +end +end +end +end +else +v_m = band(8, v_o) +end +end +do +v_C = ((0 ~= bor(v_h, v_m)) and 1 or 0) +v_t = v_A +v_d = v_e +v_k = band((-33), v_u) +if (70 == bor(0, v_k)) then +v_u = ((bor(0, v_b) > 0) and v_b or 0) +else +do +do +local t366 = v_Q +v_l = arshift(v_b, 31) +v_l = F.fdA(bxor((v_l + v_b), v_l), 0, v_Q) +if (tobit((t366 - v_l)) <= 1) then +do +while true do +v_l = tobit((v_l - 1)) +I8[bor(0, v_l)] = tobit(48) +if not (tobit((v_Q - v_l)) < 2) then goto B338 end +do +end +::C338:: +end +end +::B338:: +end +end +v_j = tobit((v_l - 2)) +I8[bor(0, v_j)] = tobit(v_u) +I8[tobit((v_l - 1))] = tobit(((bor(0, v_b) < 0) and 45 or 43)) +v_u = tobit((v_Q - v_j)) +end +end +end +do +local t367 = v_t +local t368 = v_d +v_y = tobit((1 + tobit((v_u + tobit((v_C + tobit((v_h + v_S)))))))) +F.fEA(t367, 32, t368, v_y, v_o) +F.fiA(v_A, v_M, v_S) +F.fEA(v_A, 48, v_e, v_y, bxor(65536, v_o)) +end +do +do +do +do +do +do +do +do +do +do +if (70 == bor(0, v_k)) then +do +do +do +v_t = bor((v_c + 16), 8) +v_b = bor((v_c + 16), 9) +v_u = (((tobit(v_v) % 4294967296) > (tobit(v_E) % 4294967296)) and v_E or v_v) +v_v = v_u +while true do +do +do +v_l = F.fdA(I32[arshift(v_v, 2)], 0, v_b) +do +if (bor(0, v_u) == bor(0, v_v)) then +if (bor(0, v_l) == bor(0, v_b)) then +I8[tobit((v_c + 24))] = tobit(48) +v_l = v_t +end +else +if ((tobit((v_c + 16)) % 4294967296) >= (tobit(v_l) % 4294967296)) then +goto L343 +end +do +while true do +v_l = tobit((v_l - 1)) +I8[bor(0, v_l)] = tobit(48) +if not ((tobit((v_c + 16)) % 4294967296) < (tobit(v_l) % 4294967296)) then goto B344 end +do +end +::C344:: +end +end +::B344:: +end +end +::L343:: +do +F.fiA(v_A, v_l, tobit((v_b - v_l))) +local t369 = (tobit(v_E) % 4294967296) +v_v = tobit((v_v + 4)) +if (not (t369 >= (tobit(v_v) % 4294967296))) then +goto B342 +end +end +end +end +::C342:: +end +end +::B342:: +end +v_l = 0 +if (not (v_C ~= 0)) then +goto L340 +end +F.fiA(v_A, 10655, 1) +if (bor(((bor(0, v_h) < 1) and 1 or 0), (((tobit(v_v) % 4294967296) >= (tobit(v_w) % 4294967296)) and 1 or 0)) ~= 0) then +goto L341 +end +do +do +while true do +do +do +v_l = F.fdA(I32[arshift(v_v, 2)], 0, v_b) +if ((tobit(v_l) % 4294967296) > (tobit((v_c + 16)) % 4294967296)) then +do +while true do +v_l = tobit((v_l - 1)) +I8[bor(0, v_l)] = tobit(48) +if not ((tobit((v_c + 16)) % 4294967296) < (tobit(v_l) % 4294967296)) then goto B346 end +do +end +::C346:: +end +end +::B346:: +end +do +F.fiA(v_A, v_l, ((bor(0, v_h) < 9) and v_h or 9)) +v_l = tobit((v_h - 9)) +local t370 = (tobit(v_w) % 4294967296) +v_v = tobit((v_v + 4)) +if (t370 <= (tobit(v_v) % 4294967296)) then +goto L340 +end +end +v_t = ((bor(0, v_h) > 9) and 1 or 0) +v_h = v_l +if (not (v_t ~= 0)) then +goto B345 +end +end +end +::C345:: +end +end +::B345:: +end +goto L340 +end +end +end +do +do +do +if (not (bor(0, v_h) < 0)) then +do +do +v_u = (((tobit(v_v) % 4294967296) < (tobit(v_w) % 4294967296)) and v_w or tobit((v_v + 4))) +v_d = bor((v_c + 16), 9) +v_t = bor((v_c + 16), 8) +v_b = v_v +while true do +do +do +do +local t371 = bor(0, v_d) +v_l = F.fdA(I32[arshift(v_b, 2)], 0, v_d) +if (t371 == bor(0, v_l)) then +I8[tobit((v_c + 24))] = tobit(48) +v_l = v_t +end +end +do +if (bor(0, v_b) == bor(0, v_v)) then +F.fiA(v_A, v_l, 1) +v_l = tobit((v_l + 1)) +if not ((not (v_m ~= 0)) and (bor(0, v_h) <= 0)) then +F.fiA(v_A, 10655, 1) +end +else +if ((tobit((v_c + 16)) % 4294967296) >= (tobit(v_l) % 4294967296)) then +goto L349 +end +do +while true do +v_l = tobit((v_l - 1)) +I8[bor(0, v_l)] = tobit(48) +if not ((tobit((v_c + 16)) % 4294967296) < (tobit(v_l) % 4294967296)) then goto B350 end +do +end +::C350:: +end +end +::B350:: +end +end +::L349:: +do +local t372 = v_A +v_w = v_l +local t373 = v_w +v_l = tobit((v_d - v_l)) +F.fiA(t372, t373, ((bor(0, v_l) < bor(0, v_h)) and v_l or v_h)) +v_h = tobit((v_h - v_l)) +local t374 = (tobit(v_u) % 4294967296) +v_b = tobit((v_b + 4)) +if (t374 <= (tobit(v_b) % 4294967296)) then +goto L347 +end +end +if (not (bor(0, v_h) > (-1))) then +goto B348 +end +end +end +::C348:: +end +end +::B348:: +end +end +end +end +::L347:: +end +F.fEA(v_A, 48, tobit((v_h + 18)), 18, 0) +F.fiA(v_A, v_j, tobit((v_Q - v_j))) +goto L339 +end +end +::L341:: +end +v_l = v_h +end +end +::L340:: +end +F.fEA(v_A, 48, tobit((v_l + 9)), 9, 0) +end +end +::L339:: +end +goto L318 +end +end +::L319:: +end +do +v_h = band(32, v_u) +v_w = ((v_h ~= 0) and tobit((v_M + 9)) or v_M) +local t375 = ((not ((tobit(v_t) % 4294967296) > 11)) and 1 or 0) +if t375 ~= 0 then +v_l = tobit((12 - v_t)) +t375 = v_l +end +if (t375 ~= 0) then +do +v_O = 8 +while true do +v_O = (v_O * 16) +v_l = tobit((v_l - 1)) +if not (v_l ~= 0) then goto B351 end +do +end +::C351:: +end +end +::B351:: +v_r = ((45 ~= U8[bor(0, v_w)]) and ((v_r + v_O) - v_O) or (-(v_O + ((-v_r) - v_O)))) +end +end +do +do +do +local t376 = bor(0, v_Q) +v_l = I32[arshift((v_c + 44), 2)] +v_b = arshift(v_l, 31) +v_l = F.fdA(bxor(v_b, (v_l + v_b)), 0, v_Q) +if (t376 == bor(0, v_l)) then +I8[tobit((v_c + 15))] = tobit(48) +v_l = tobit((v_c + 15)) +end +v_d = bor(2, v_S) +v_b = I32[arshift((v_c + 44), 2)] +v_k = tobit((v_l - 2)) +I8[bor(0, v_k)] = tobit((v_u + 15)) +I8[tobit((v_l - 1))] = tobit(((bor(0, v_b) < 0) and 45 or 43)) +v_l = band(8, v_o) +v_v = tobit((v_c + 16)) +end +while true do +do +v_u = v_v +v_E = v_h +v_b = ((math.abs(v_r) < 2147483648) and bnot(bnot(v_r)) or (-2147483648)) +I8[bor(0, v_v)] = tobit(bor(v_E, U8[tobit((v_b + 12288))])) +v_r = (16 * (v_r - bor(0, v_b))) +local t377 = v_l +if t377 == 0 then +t377 = bor(((bor(0, v_t) > 0) and 1 or 0), ((0 ~= v_r) and 1 or 0)) +end +local t378 = (not (t377 ~= 0)) +v_v = tobit((v_u + 1)) +if not (bor((t378 and 1 or 0), ((1 ~= tobit((v_v - tobit((v_c + 16))))) and 1 or 0)) ~= 0) then +I8[tobit((v_u + 1))] = tobit(46) +v_v = tobit((v_u + 2)) +end +if not (0 ~= v_r) then goto B352 end +end +do +end +::C352:: +end +end +::B352:: +end +do +local t379 = v_A +local t380 = v_e +v_u = ((bor(((not (v_t ~= 0)) and 1 or 0), ((tobit((tobit((v_v - v_c)) - 18)) >= bor(0, v_t)) and 1 or 0)) ~= 0) and tobit((tobit((v_Q - tobit((v_k + tobit((v_c + 16)))))) + v_v)) or tobit((2 + tobit((tobit((v_t + v_Q)) - v_k))))) +v_y = tobit((v_u + v_d)) +F.fEA(t379, 32, t380, v_y, v_o) +F.fiA(v_A, v_w, v_d) +F.fEA(v_A, 48, v_e, v_y, bxor(65536, v_o)) +local t381 = v_A +local t382 = tobit((v_c + 16)) +v_t = tobit((v_v - tobit((v_c + 16)))) +F.fiA(t381, t382, v_t) +local t385 = v_A +local t384 = v_u +v_l = v_t +local t383 = v_l +v_t = tobit((v_Q - v_k)) +F.fEA(t385, 48, tobit((t384 - tobit((t383 + v_t)))), 0, 0) +F.fiA(v_A, v_k, v_t) +end +end +else +do +local t386 = v_A +local t387 = v_e +v_y = tobit((v_S + 3)) +F.fEA(t386, 32, t387, v_y, band((-65537), v_o)) +F.fiA(v_A, v_M, v_S) +v_t = band(32, v_u) +F.fiA(v_A, ((v_r ~= v_r) and ((v_t ~= 0) and 10588 or 10640) or ((v_t ~= 0) and 10613 or 10644)), 3) +end +end +end +end +::L318:: +end +F.fEA(v_A, 32, v_e, v_y, bxor(8192, v_o)) +B = tobit((v_c + 560)) +do return bor(0, ((bor(0, v_e) > bor(0, v_y)) and v_e or v_y)) end +end +UA[53] = function(v_A, v_r) +local v_e, v_n, v_t, v_o, v_f, v_a, v_s, v_l, v_b, v_g, v_p, v_d, v_h, v_k, v_y = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_o = 0 +v_f = 0 +v_a = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_r = tobit(v_r) +v_o = v_r +v_r = band((I32[arshift(v_r, 2)] + 15), (-16)) +I32[arshift(v_o, 2)] = tobit((v_r + 16)) +v_t = v_A +v_A = v_r +v_p = I32[arshift(v_A, 2)] +v_r = I32[arshift((v_A + 4), 2)] +v_s = I32[arshift((v_A + 12), 2)] +v_n = v_s +v_e = tobit((B - 32)) +B = v_e +v_o = band(2147483647, v_s) +v_s = v_o +v_a = tobit((v_o - 1006698496)) +v_f = tobit((v_o - 1140785152)) +v_o = I32[arshift((v_A + 8), 2)] +v_g = v_o +do +do +do +if (bor(band(((bor(0, v_a) == bor(0, v_f)) and 1 or 0), (((tobit(v_o) % 4294967296) < (tobit(v_o) % 4294967296)) and 1 or 0)), (((tobit(v_a) % 4294967296) < (tobit(v_f) % 4294967296)) and 1 or 0)) ~= 0) then +do +do +v_s = v_o +v_o = bor(lshift(v_n, 4), (rshift(v_o, 28) % 4294967296)) +local t388 = lshift(v_s, 4) +v_A = v_r +v_s = bor(t388, (rshift(v_A, 28) % 4294967296)) +v_A = band(v_A, 268435455) +v_r = v_A +if (bor(band(((134217728 == bor(0, v_A)) and 1 or 0), (((tobit(v_p) % 4294967296) >= 1) and 1 or 0)), (((tobit(v_A) % 4294967296) > 134217728) and 1 or 0)) ~= 0) then +v_A = tobit((v_o + 1073741824)) +v_r = tobit((v_s + 1)) +v_A = (((tobit(v_r) % 4294967296) < 1) and tobit((v_A + 1)) or v_A) +v_a = v_r +goto L353 +end +end +v_a = v_s +v_A = tobit((v_o + 1073741824)) +if (bor(v_p, bxor(134217728, v_r)) ~= 0) then +goto L353 +end +do +v_o = v_A +v_r = band(1, v_s) +local t389 = (tobit(v_r) % 4294967296) +v_s = tobit((v_r + v_a)) +v_a = v_s +v_A = ((t389 > (tobit(v_a) % 4294967296)) and tobit((v_o + 1)) or v_o) +end +end +else +do +if (((band(((not (v_g ~= 0)) and 1 or 0), ((2147418112 == bor(0, v_s)) and 1 or 0)) ~= 0) and ((not (bor(v_r, v_p) ~= 0)) and 1 or 0) or (((tobit(v_s) % 4294967296) < 2147418112) and 1 or 0)) ~= 0) then +v_a = 0 +v_A = 2146435072 +if not ((tobit(v_s) % 4294967296) > 1140785151) then +v_A = 0 +v_k = tobit((rshift(v_s, 16) % 4294967296)) +if not ((tobit(v_k) % 4294967296) < 15249) then +v_a = v_p +v_A = v_r +v_f = bor(band(65535, v_n), 65536) +v_s = v_f +v_d = v_o +v_l = v_o +v_b = tobit((v_k - 15233)) +if (band(64, v_b) ~= 0) then +v_f = v_a +v_o = tobit((v_b + (-64))) +v_a = band(31, v_o) +if ((tobit(band(63, v_o)) % 4294967296) >= 32) then +v_A = lshift(v_f, v_a) +v_l = 0 +else +v_A = bor(band((lshift(1, v_a) - 1), (rshift(v_f, (32 - v_a)) % 4294967296)), lshift(v_A, v_a)) +v_l = lshift(v_f, v_a) +end +v_f = v_A +v_a = 0 +v_A = 0 +else +if (v_b ~= 0) then +v_g = v_b +v_o = v_b +v_h = band(31, v_o) +if ((tobit(band(63, v_o)) % 4294967296) >= 32) then +v_o = lshift(v_l, v_h) +v_l = 0 +else +v_o = bor(band((lshift(1, v_h) - 1), (rshift(v_l, (32 - v_h)) % 4294967296)), lshift(v_f, v_h)) +v_l = lshift(v_l, v_h) +end +v_f = v_o +v_y = v_l +v_l = v_A +v_h = v_a +v_o = tobit((64 - v_b)) +v_b = band(31, v_o) +if ((tobit(band(63, v_o)) % 4294967296) >= 32) then +v_o = 0 +v_l = tobit((rshift(v_l, v_b) % 4294967296)) +else +v_o = tobit((rshift(v_l, v_b) % 4294967296)) +v_l = bor(lshift(band((lshift(1, v_b) - 1), v_l), (32 - v_b)), (rshift(v_h, v_b) % 4294967296)) +end +v_l = bor(v_l, v_y) +v_f = bor(v_f, v_o) +v_b = band(31, v_g) +if ((tobit(band(63, v_g)) % 4294967296) >= 32) then +v_o = lshift(v_a, v_b) +v_a = 0 +else +v_o = bor(band((lshift(1, v_b) - 1), (rshift(v_a, (32 - v_b)) % 4294967296)), lshift(v_A, v_b)) +v_a = lshift(v_a, v_b) +end +v_A = v_o +end +end +I32[arshift((v_e + 16), 2)] = tobit(v_a) +I32[arshift((v_e + 20), 2)] = tobit(v_A) +I32[arshift((v_e + 24), 2)] = tobit(v_l) +I32[arshift((v_e + 28), 2)] = tobit(v_f) +v_o = tobit((15361 - v_k)) +if (band(64, v_o) ~= 0) then +v_r = v_d +v_A = tobit((v_o + (-64))) +v_f = band(31, v_A) +if ((tobit(band(63, v_A)) % 4294967296) >= 32) then +v_o = 0 +v_p = tobit((rshift(v_s, v_f) % 4294967296)) +else +v_o = tobit((rshift(v_s, v_f) % 4294967296)) +v_p = bor(lshift(band((lshift(1, v_f) - 1), v_s), (32 - v_f)), (rshift(v_r, v_f) % 4294967296)) +end +v_r = v_o +v_d = 0 +v_s = 0 +else +if (v_o ~= 0) then +v_A = v_s +v_a = v_d +v_f = tobit((64 - v_o)) +v_g = band(31, v_f) +if ((tobit(band(63, v_f)) % 4294967296) >= 32) then +v_A = lshift(v_a, v_g) +v_a = 0 +else +v_A = bor(band((lshift(1, v_g) - 1), (rshift(v_a, (32 - v_g)) % 4294967296)), lshift(v_A, v_g)) +v_a = lshift(v_a, v_g) +end +v_f = v_A +v_l = v_a +v_a = v_p +v_A = v_o +v_g = band(31, v_o) +if ((tobit(band(63, v_o)) % 4294967296) >= 32) then +v_o = 0 +v_r = tobit((rshift(v_r, v_g) % 4294967296)) +else +v_o = tobit((rshift(v_r, v_g) % 4294967296)) +v_r = bor(lshift(band((lshift(1, v_g) - 1), v_r), (32 - v_g)), (rshift(v_a, v_g) % 4294967296)) +end +v_p = bor(v_l, v_r) +v_r = bor(v_o, v_f) +v_o = v_d +v_f = band(31, v_A) +if ((tobit(band(63, v_A)) % 4294967296) >= 32) then +v_A = 0 +v_d = tobit((rshift(v_s, v_f) % 4294967296)) +else +v_A = tobit((rshift(v_s, v_f) % 4294967296)) +v_d = bor(lshift(band((lshift(1, v_f) - 1), v_s), (32 - v_f)), (rshift(v_o, v_f) % 4294967296)) +end +v_s = v_A +end +end +I32[arshift(v_e, 2)] = tobit(v_p) +I32[arshift((v_e + 4), 2)] = tobit(v_r) +I32[arshift((v_e + 8), 2)] = tobit(v_d) +I32[arshift((v_e + 12), 2)] = tobit(v_s) +v_f = I32[arshift((v_e + 4), 2)] +v_r = I32[arshift((v_e + 8), 2)] +v_a = bor(lshift(v_r, 4), (rshift(v_f, 28) % 4294967296)) +v_A = bor(lshift(I32[arshift((v_e + 12), 2)], 4), (rshift(v_r, 28) % 4294967296)) +v_f = band(v_f, 268435455) +v_s = v_f +local t390 = (134217728 == bor(0, v_f)) +v_r = bor(bor(I32[arshift(v_e, 2)], ((0 ~= bor(I32[arshift((v_e + 16), 2)], I32[arshift((v_e + 24), 2)])) and 1 or 0)), ((0 ~= bor(I32[arshift((v_e + 20), 2)], I32[arshift((v_e + 28), 2)])) and 1 or 0)) +if (bor(band((t390 and 1 or 0), (((tobit(v_r) % 4294967296) >= 1) and 1 or 0)), (((tobit(v_f) % 4294967296) > 134217728) and 1 or 0)) ~= 0) then +v_r = tobit((v_a + 1)) +v_A = (((tobit(v_r) % 4294967296) < 1) and tobit((v_A + 1)) or v_A) +v_a = v_r +else +if not (bor(v_r, bxor(134217728, v_s)) ~= 0) then +v_f = v_A +v_r = tobit((v_a + band(1, v_a))) +v_f = (((tobit(v_r) % 4294967296) < (tobit(v_a) % 4294967296)) and tobit((v_f + 1)) or v_f) +v_a = v_r +v_A = v_f +end +end +end +end +else +v_s = v_o +v_a = bor(lshift(v_s, 4), (rshift(v_r, 28) % 4294967296)) +v_o = bor(lshift(v_n, 4), (rshift(v_o, 28) % 4294967296)) +v_A = bor(band(524287, v_o), 2146959360) +end +end +end +end +end +::L353:: +end +B = tobit((v_e + 32)) +rf_u(0, bor(0, v_a)) +rf_u(1, bor(band((-2147483648), v_n), v_A)) +F64[arshift(v_t, 3)] = rf_c() +end +UA[54] = function(v_A, v_r, v_e) +local v_n, v_t = 0, 0 +v_r = tobit(v_r) +v_e = tobit(v_e) +v_t = 0 +do +v_A = tobit(v_A) +v_n = I32[arshift((20 + v_A), 2)] +local t392 = v_n +local t393 = v_r +local t391 = (tobit(v_e) % 4294967296) +v_t = tobit((I32[arshift((v_A + 16), 2)] - v_n)) +v_t = ((t391 < (tobit(v_t) % 4294967296)) and v_e or v_t) +F.fTA(t392, t393, v_t) +I32[arshift((v_A + 20), 2)] = tobit((v_t + I32[arshift((v_A + 20), 2)])) +do return bor(0, v_e) end +end +end +UA[55] = function(v_A, v_r, v_e, v_t, v_a, v_u, v_c) +local v_s, v_b, v_v, v_p, v_d, v_h, v_k, v_y, v_w, v_C, v_E, v_I = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_t = tobit(v_t) +v_a = tobit(v_a) +v_u = tobit(v_u) +v_c = tobit(v_c) +v_b = 0 +v_v = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_y = 0 +v_w = 0 +v_C = 0 +v_E = 0 +v_I = 0 +do +v_s = tobit((B - 528)) +B = v_s +v_k = (-3) +v_b = I32[8012] +if (not (bor(((not (v_b ~= 0)) and 1 or 0), ((not (U8[bor(0, v_b)] ~= 0)) and 1 or 0)) ~= 0)) then +do +if (I32[8014] ~= 0) then +do +do +v_k = (-1) +local t394 = ((not ((tobit(v_r) % 4294967296) < 256)) and 1 or 0) +if t394 ~= 0 then +I8[tobit((v_s + 480))] = tobit(0) +F.fTA(tobit((v_s + 224)), v_A, 256) +I8[tobit((v_s + 192))] = tobit(0) +v_b = F.fY() +v_y = F.fD(v_b) +F.fL(v_b) +v_b = v_y +v_v = bor(bor(bor(U8[tobit((v_b + 12))], lshift(U8[tobit((v_b + 13))], 8)), lshift(U8[tobit((v_b + 14))], 16)), lshift(U8[tobit((v_b + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_b + 8))], lshift(U8[tobit((v_b + 9))], 8)), lshift(U8[tobit((v_b + 10))], 16)), lshift(U8[tobit((v_b + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_v) +v_v = bor(bor(bor(U8[tobit((v_b + 4))], lshift(U8[tobit((v_b + 5))], 8)), lshift(U8[tobit((v_b + 6))], 16)), lshift(U8[tobit((v_b + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_b)], lshift(U8[tobit((v_b + 1))], 8)), lshift(U8[tobit((v_b + 2))], 16)), lshift(U8[tobit((v_b + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_v) +v_d = tobit((B - 288)) +B = v_d +v_v = F.fPA(F.fm(257), 0, 257) +F.fLA(tobit((v_d + 8))) +F.fZ(tobit((v_d + 8)), v_b, 256) +F.fR(tobit((v_d + 8)), 0, 256, tobit((v_s + 496)), tobit((v_s + 224)), v_v) +F.fhA(tobit((v_d + 8))) +B = tobit((v_d + 288)) +t394 = v_v +end +if (t394 ~= 0) then +do +do +v_b = v_v +v_v = bor(bor(bor(U8[tobit((v_b + 8))], lshift(U8[tobit((v_b + 9))], 8)), lshift(U8[tobit((v_b + 10))], 16)), lshift(U8[tobit((v_b + 11))], 24)) +v_d = bor(bor(bor(U8[tobit((v_b + 12))], lshift(U8[tobit((v_b + 13))], 8)), lshift(U8[tobit((v_b + 14))], 16)), lshift(U8[tobit((v_b + 15))], 24)) +v_k = bor(bor(bor(U8[bor(0, v_b)], lshift(U8[tobit((v_b + 1))], 8)), lshift(U8[tobit((v_b + 2))], 16)), lshift(U8[tobit((v_b + 3))], 24)) +v_p = bor(bor(bor(U8[tobit((v_b + 4))], lshift(U8[tobit((v_b + 5))], 8)), lshift(U8[tobit((v_b + 6))], 16)), lshift(U8[tobit((v_b + 7))], 24)) +v_w = bor(bor(bor(U8[tobit((v_b + 20))], lshift(U8[tobit((v_b + 21))], 8)), lshift(U8[tobit((v_b + 22))], 16)), lshift(U8[tobit((v_b + 23))], 24)) +I32[arshift((v_s + 208), 2)] = tobit(bor(bor(bor(U8[tobit((v_b + 16))], lshift(U8[tobit((v_b + 17))], 8)), lshift(U8[tobit((v_b + 18))], 16)), lshift(U8[tobit((v_b + 19))], 24))) +I32[arshift((v_s + 212), 2)] = tobit(v_w) +I16[arshift((v_s + 216), 1)] = tobit(bor(U8[tobit((v_b + 24))], lshift(U8[tobit((v_b + 25))], 8))) +v_w = U8[tobit((v_b + 26))] +F.fTA(tobit((v_s - (-64))), tobit((v_b + 128)), 128) +F.fL(v_y) +F.fL(v_b) +I32[arshift((v_s + 48), 2)] = tobit(v_k) +I32[arshift((v_s + 52), 2)] = tobit(v_p) +I8[tobit((v_s + 56))] = tobit(0) +v_y = F.fvA(tobit((v_s + 48))) +I32[arshift((v_s + 48), 2)] = tobit(v_v) +I32[arshift((v_s + 52), 2)] = tobit(v_d) +v_I = F.fvA(tobit((v_s + 48))) +I16[arshift((v_s + 40), 1)] = tobit(U16[arshift((v_s + 216), 1)]) +I8[tobit((v_s + 42))] = tobit(0) +v_b = I32[arshift((v_s + 212), 2)] +I32[arshift((v_s + 32), 2)] = tobit(I32[arshift((v_s + 208), 2)]) +I32[arshift((v_s + 36), 2)] = tobit(v_b) +I32[arshift(v_s, 2)] = tobit(F.fvA(tobit((v_s + 32)))) +v_d = tobit((B - 16)) +B = v_d +I32[arshift((v_d + 12), 2)] = tobit(v_s) +v_b = tobit((B - 160)) +B = v_b +F.fTA(tobit((v_b + 8)), 12304, 144) +v_v = tobit((v_s + 32)) +I32[arshift((v_b + 52), 2)] = tobit(v_v) +I32[arshift((v_b + 28), 2)] = tobit(v_v) +v_k = tobit(((-2) - v_v)) +v_k = (((tobit(v_k) % 4294967296) < 11) and v_k or 11) +I32[arshift((v_b + 56), 2)] = tobit(v_k) +v_v = tobit((v_v + v_k)) +I32[arshift((v_b + 36), 2)] = tobit(v_v) +I32[arshift((v_b + 24), 2)] = tobit(v_v) +F.ffA(tobit((v_b + 8)), 10633, v_s, 52, 53) +if (v_k ~= 0) then +v_v = I32[arshift((v_b + 28), 2)] +I8[tobit((v_v - ((bor(0, v_v) == I32[arshift((v_b + 24), 2)]) and 1 or 0)))] = tobit(0) +end +B = tobit((v_b + 160)) +B = tobit((v_d + 16)) +v_k = (-2) +v_v = I32[8014] +v_d = tobit((v_s + 32)) +v_b = 0 +v_p = 10 +while true do +v_h = bxor(I32[arshift((12512 + lshift(bxor(U8[tobit((v_b + v_d))], band(255, v_h)), 2)), 2)], (rshift(v_h, 8) % 4294967296)) +v_h = bxor(I32[arshift((12512 + lshift(bxor(U8[tobit((v_d + bor(1, v_b)))], band(255, v_h)), 2)), 2)], (rshift(v_h, 8) % 4294967296)) +v_b = tobit((v_b + 2)) +v_p = tobit((v_p - 2)) +if not (v_p ~= 0) then goto B354 end +do +end +::C354:: +end +end +::B354:: +v_b = imul(v_h, 4097) +v_b = imul(bxor((rshift(v_b, 22) % 4294967296), v_b), 17) +v_b = imul(bxor((rshift(v_b, 9) % 4294967296), v_b), 1025) +v_b = imul(bxor((rshift(v_b, 2) % 4294967296), v_b), 129) +v_h = I32[arshift(v_v, 2)] +v_b = tobit(fmod((tobit(imul(bxor((rshift(v_b, 15) % 4294967296), (rshift(v_b, 3) % 4294967296)), (-1640531535))) % 4294967296), (tobit(v_h) % 4294967296))) +v_v = I32[arshift((v_v + 8), 2)] +do +do +do +do +v_p = tobit((lshift(v_b, 4) + v_v)) +local t397 = ((bor(((not (I32[arshift((8 + v_p), 2)] ~= 0)) and 1 or 0), ((10 ~= I32[arshift((v_p + 4), 2)]) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_v + lshift(v_b, 4)), 2)], v_d, 10) ~= 0)) +if t397 then +local t395 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +local t396 = (not (I32[arshift((8 + tobit((t395 + lshift(v_b, 4)))), 2)] ~= 0)) +if not t396 then +v_p = tobit((v_v + lshift(v_b, 4))) +t396 = (10 ~= I32[arshift((4 + v_p), 2)]) +end +t397 = (t396 or (F.fSA(I32[arshift(v_p, 2)], v_d, 10) ~= 0)) +end +local t399 = t397 +if t399 then +local t398 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +v_p = tobit((t398 + lshift(v_b, 4))) +t399 = ((bor(((not (I32[arshift((8 + v_p), 2)] ~= 0)) and 1 or 0), ((10 ~= I32[arshift((v_p + 4), 2)]) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_v + lshift(v_b, 4)), 2)], v_d, 10) ~= 0)) +end +local t402 = t399 +if t402 then +local t400 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +local t401 = (not (I32[arshift((8 + tobit((t400 + lshift(v_b, 4)))), 2)] ~= 0)) +if not t401 then +v_p = tobit((v_v + lshift(v_b, 4))) +t401 = (10 ~= I32[arshift((4 + v_p), 2)]) +end +t402 = (t401 or (F.fSA(I32[arshift(v_p, 2)], v_d, 10) ~= 0)) +end +local t404 = t402 +if t404 then +local t403 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +v_p = tobit((t403 + lshift(v_b, 4))) +t404 = ((bor(((not (I32[arshift((8 + v_p), 2)] ~= 0)) and 1 or 0), ((10 ~= I32[arshift((v_p + 4), 2)]) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_v + lshift(v_b, 4)), 2)], v_d, 10) ~= 0)) +end +local t407 = t404 +if t407 then +local t405 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +local t406 = (not (I32[arshift((8 + tobit((t405 + lshift(v_b, 4)))), 2)] ~= 0)) +if not t406 then +v_p = tobit((v_v + lshift(v_b, 4))) +t406 = (10 ~= I32[arshift((4 + v_p), 2)]) +end +t407 = (t406 or (F.fSA(I32[arshift(v_p, 2)], v_d, 10) ~= 0)) +end +local t409 = t407 +if t409 then +local t408 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +v_p = tobit((t408 + lshift(v_b, 4))) +t409 = ((bor(((not (I32[arshift((8 + v_p), 2)] ~= 0)) and 1 or 0), ((10 ~= I32[arshift((v_p + 4), 2)]) and 1 or 0)) ~= 0) or (F.fSA(I32[arshift((v_v + lshift(v_b, 4)), 2)], v_d, 10) ~= 0)) +end +if t409 then +do +do +v_p = 0 +local t410 = v_v +v_b = tobit(fmod((tobit((v_b + 1)) % 4294967296), (tobit(v_h) % 4294967296))) +if (not (I32[arshift((8 + tobit((t410 + lshift(v_b, 4)))), 2)] ~= 0)) then +goto L355 +end +end +v_h = tobit((v_v + lshift(v_b, 4))) +if (10 ~= I32[arshift((4 + v_h), 2)]) then +goto L355 +end +if (F.fSA(I32[arshift(v_h, 2)], v_d, 10) ~= 0) then +goto L355 +end +end +end +end +v_p = I32[arshift((12 + tobit((v_v + lshift(v_b, 4)))), 2)] +end +end +::L355:: +end +do +if (not (bor(((not (v_p ~= 0)) and 1 or 0), ((not (I32[arshift((v_p + 8), 2)] ~= 0)) and 1 or 0)) ~= 0)) then +do +do +if (v_a ~= 0) then +I32[arshift(v_a, 2)] = tobit(((1 == bor(0, v_w)) and 1 or 0)) +end +v_a = tobit((v_A + 128)) +v_b = F.fTA(v_a, tobit((v_s - (-64))), 128) +if (U8[tobit((v_s + 64))] ~= 0) then +v_A = tobit((v_r - 128)) +else +v_a = tobit((v_A + 256)) +v_A = F.fSA(tobit((v_s - (-64))), bor((v_s - (-64)), 1), 127) +v_a = ((v_A ~= 0) and v_b or v_a) +v_A = tobit((((v_A ~= 0) and (-128) or (-256)) + v_r)) +end +v_b = I32[arshift((v_p + 4), 2)] +v_v = I32[arshift((v_p + 8), 2)] +v_d = tobit((B - 48)) +B = v_d +v_C = F.fY() +v_E = F.fD(v_C) +v_r = v_E +v_h = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_d + 24), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_d + 28), 2)] = tobit(v_h) +v_h = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_d + 16), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_d + 20), 2)] = tobit(v_h) +v_p = F.fuA(v_b, v_v, tobit((v_d + 16)), v_r, tobit((v_d + 12))) +v_w = I32[8013] +local t411 = v_d +v_r = tobit((v_w + v_t)) +v_b = tobit((t411 - band((32 + v_r), (-16)))) +B = v_b +v_b = F.fPA(v_b, 0, tobit((v_r + 17))) +v_r = v_b +v_v = tobit((v_p + imul(v_I, 17))) +v_h = bor(bor(bor(U8[tobit((v_v + 12))], lshift(U8[tobit((v_v + 13))], 8)), lshift(U8[tobit((v_v + 14))], 16)), lshift(U8[tobit((v_v + 15))], 24)) +v_k = bor(bor(bor(U8[tobit((v_v + 8))], lshift(U8[tobit((v_v + 9))], 8)), lshift(U8[tobit((v_v + 10))], 16)), lshift(U8[tobit((v_v + 11))], 24)) +I8[tobit((v_r + 8))] = tobit(v_k) +I8[tobit((v_r + 9))] = tobit((rshift(v_k, 8) % 4294967296)) +I8[tobit((v_r + 10))] = tobit((rshift(v_k, 16) % 4294967296)) +I8[tobit((v_r + 11))] = tobit((rshift(v_k, 24) % 4294967296)) +I8[tobit((v_r + 12))] = tobit(v_h) +I8[tobit((v_r + 13))] = tobit((rshift(v_h, 8) % 4294967296)) +I8[tobit((v_r + 14))] = tobit((rshift(v_h, 16) % 4294967296)) +I8[tobit((v_r + 15))] = tobit((rshift(v_h, 24) % 4294967296)) +v_h = bor(bor(bor(U8[tobit((v_v + 4))], lshift(U8[tobit((v_v + 5))], 8)), lshift(U8[tobit((v_v + 6))], 16)), lshift(U8[tobit((v_v + 7))], 24)) +v_v = bor(bor(bor(U8[bor(0, v_v)], lshift(U8[tobit((v_v + 1))], 8)), lshift(U8[tobit((v_v + 2))], 16)), lshift(U8[tobit((v_v + 3))], 24)) +I8[bor(0, v_r)] = tobit(v_v) +I8[tobit((v_r + 1))] = tobit((rshift(v_v, 8) % 4294967296)) +I8[tobit((v_r + 2))] = tobit((rshift(v_v, 16) % 4294967296)) +I8[tobit((v_r + 3))] = tobit((rshift(v_v, 24) % 4294967296)) +I8[tobit((v_r + 4))] = tobit(v_h) +I8[tobit((v_r + 5))] = tobit((rshift(v_h, 8) % 4294967296)) +I8[tobit((v_r + 6))] = tobit((rshift(v_h, 16) % 4294967296)) +I8[tobit((v_r + 7))] = tobit((rshift(v_h, 24) % 4294967296)) +v_r = F.fTA(tobit((v_r + 16)), I32[8012], v_w) +if (v_t ~= 0) then +F.fTA(tobit((v_r + v_w)), v_e, v_t) +end +v_r = F.fD(v_b) +F.fL(v_C) +F.fL(v_E) +F.fL(v_p) +B = tobit((v_d + 48)) +end +do +do +do +do +do +do +if (bor(0, v_y) <= 31344422) then +if (bor(0, v_y) <= 29344483) then +if (21123123 == bor(0, v_y)) then +goto L361 +end +if (21132184 ~= bor(0, v_y)) then +goto L356 +end +I8[tobit((v_s + 16))] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(0) +I32[arshift((v_s + 12), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 8), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +v_A = F.fcA(v_a, v_A, tobit((v_s + 8)), tobit((v_s + 8)), tobit((v_s + 28))) +I8[tobit((v_s + 512))] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(0) +I32[arshift((v_s + 508), 2)] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_e) +I32[arshift(v_u, 2)] = tobit(F.fuA(v_A, I32[arshift((v_s + 28), 2)], tobit((v_s + 496)), v_r, v_c)) +F.fL(v_A) +goto L356 +end +if (29344484 == bor(0, v_y)) then +goto L358 +end +if (29859828 ~= bor(0, v_y)) then +goto L356 +end +I8[tobit((v_s + 512))] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(0) +I32[arshift((v_s + 508), 2)] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_e) +v_A = F.fuA(v_a, v_A, tobit((v_s + 496)), v_r, tobit((v_s + 28))) +I8[tobit((v_s + 13))] = tobit(0) +I8[tobit((v_s + 14))] = tobit(0) +I8[tobit((v_s + 15))] = tobit(0) +I8[tobit((v_s + 16))] = tobit(0) +I8[tobit((v_s + 17))] = tobit(0) +I8[tobit((v_s + 18))] = tobit(0) +I8[tobit((v_s + 19))] = tobit(0) +I8[tobit((v_s + 20))] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(0) +I32[arshift((v_s + 12), 2)] = tobit(0) +I32[arshift((v_s + 16), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 8), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +I32[arshift(v_u, 2)] = tobit(F.fnA(v_A, I32[arshift((v_s + 28), 2)], tobit((v_s + 8)), v_r)) +if (v_c ~= 0) then +I32[arshift(v_c, 2)] = tobit(I32[arshift((v_s + 28), 2)]) +end +F.fL(v_A) +goto L356 +end +if (bor(0, v_y) <= 34232880) then +if (31344423 == bor(0, v_y)) then +goto L357 +end +if (31932881 ~= bor(0, v_y)) then +goto L356 +end +I8[tobit((v_s + 512))] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(0) +I32[arshift((v_s + 508), 2)] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_e) +v_A = F.fuA(v_a, v_A, tobit((v_s + 496)), v_r, tobit((v_s + 28))) +I8[tobit((v_s + 16))] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(0) +I32[arshift((v_s + 12), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 8), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +I32[arshift(v_u, 2)] = tobit(F.fcA(v_A, I32[arshift((v_s + 28), 2)], tobit((v_s + 8)), tobit((v_s + 8)), v_c)) +F.fL(v_A) +goto L356 +end +if (34232881 == bor(0, v_y)) then +goto L359 +end +if (34941028 == bor(0, v_y)) then +goto L360 +end +if (94859123 ~= bor(0, v_y)) then +goto L356 +end +I8[tobit((v_s + 13))] = tobit(0) +I8[tobit((v_s + 14))] = tobit(0) +I8[tobit((v_s + 15))] = tobit(0) +I8[tobit((v_s + 16))] = tobit(0) +I8[tobit((v_s + 17))] = tobit(0) +I8[tobit((v_s + 18))] = tobit(0) +I8[tobit((v_s + 19))] = tobit(0) +I8[tobit((v_s + 20))] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(0) +I32[arshift((v_s + 12), 2)] = tobit(0) +I32[arshift((v_s + 16), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 8), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +v_e = F.fnA(v_a, v_A, tobit((v_s + 8)), v_r) +I8[tobit((v_s + 512))] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(0) +I32[arshift((v_s + 508), 2)] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_t = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_t) +v_t = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_t) +I32[arshift(v_u, 2)] = tobit(F.fuA(v_e, v_A, tobit((v_s + 496)), v_r, v_c)) +F.fL(v_e) +goto L356 +end +::L361:: +I8[tobit((v_s + 512))] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(0) +I32[arshift((v_s + 508), 2)] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_e) +v_A = F.fuA(v_a, v_A, tobit((v_s + 496)), v_r, tobit((v_s + 8))) +I8[tobit((v_s + 512))] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(0) +I32[arshift((v_s + 508), 2)] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[tobit((v_r + 12))], lshift(U8[tobit((v_r + 13))], 8)), lshift(U8[tobit((v_r + 14))], 16)), lshift(U8[tobit((v_r + 15))], 24)) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +I32[arshift((v_s + 508), 2)] = tobit(v_e) +I32[arshift(v_u, 2)] = tobit(F.fuA(v_A, I32[arshift((v_s + 8), 2)], tobit((v_s + 496)), v_r, v_c)) +F.fL(v_A) +goto L356 +end +::L360:: +I8[tobit((v_s + 504))] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +v_t = bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(v_t) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +I32[arshift((v_s + 8), 2)] = tobit(v_t) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +I8[tobit((v_s + 16))] = tobit(0) +v_A = F.fcA(v_a, v_A, tobit((v_s + 8)), tobit((v_s + 496)), tobit((v_s + 28))) +I8[tobit((v_s + 16))] = tobit(0) +v_e = I32[arshift((v_s + 500), 2)] +I32[arshift((v_s + 8), 2)] = tobit(I32[arshift((v_s + 496), 2)]) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +I32[arshift(v_u, 2)] = tobit(F.fcA(v_A, I32[arshift((v_s + 28), 2)], tobit((v_s + 8)), tobit((v_s + 496)), v_c)) +F.fL(v_A) +goto L356 +end +::L359:: +I8[tobit((v_s + 501))] = tobit(0) +I8[tobit((v_s + 502))] = tobit(0) +I8[tobit((v_s + 503))] = tobit(0) +I8[tobit((v_s + 504))] = tobit(0) +I8[tobit((v_s + 505))] = tobit(0) +I8[tobit((v_s + 506))] = tobit(0) +I8[tobit((v_s + 507))] = tobit(0) +I8[tobit((v_s + 508))] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = F.fnA(v_a, v_A, tobit((v_s + 496)), v_r) +I8[tobit((v_s + 501))] = tobit(0) +I8[tobit((v_s + 502))] = tobit(0) +I8[tobit((v_s + 503))] = tobit(0) +I8[tobit((v_s + 504))] = tobit(0) +I8[tobit((v_s + 505))] = tobit(0) +I8[tobit((v_s + 506))] = tobit(0) +I8[tobit((v_s + 507))] = tobit(0) +I8[tobit((v_s + 508))] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +v_t = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_t) +I32[arshift(v_u, 2)] = tobit(F.fnA(v_e, v_A, tobit((v_s + 496)), v_r)) +if (v_c ~= 0) then +I32[arshift(v_c, 2)] = tobit(v_A) +end +F.fL(v_e) +goto L356 +end +::L358:: +I8[tobit((v_s + 501))] = tobit(0) +I8[tobit((v_s + 502))] = tobit(0) +I8[tobit((v_s + 503))] = tobit(0) +I8[tobit((v_s + 504))] = tobit(0) +I8[tobit((v_s + 505))] = tobit(0) +I8[tobit((v_s + 506))] = tobit(0) +I8[tobit((v_s + 507))] = tobit(0) +I8[tobit((v_s + 508))] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +v_e = F.fnA(v_a, v_A, tobit((v_s + 496)), v_r) +I8[tobit((v_s + 16))] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(0) +I32[arshift((v_s + 12), 2)] = tobit(0) +v_t = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 8), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 12), 2)] = tobit(v_t) +I32[arshift(v_u, 2)] = tobit(F.fcA(v_e, v_A, tobit((v_s + 8)), tobit((v_s + 8)), v_c)) +F.fL(v_e) +goto L356 +end +::L357:: +I8[tobit((v_s + 16))] = tobit(0) +I32[arshift((v_s + 8), 2)] = tobit(0) +I32[arshift((v_s + 12), 2)] = tobit(0) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 8), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 12), 2)] = tobit(v_e) +v_A = F.fcA(v_a, v_A, tobit((v_s + 8)), tobit((v_s + 8)), tobit((v_s + 28))) +I8[tobit((v_s + 501))] = tobit(0) +I8[tobit((v_s + 502))] = tobit(0) +I8[tobit((v_s + 503))] = tobit(0) +I8[tobit((v_s + 504))] = tobit(0) +I8[tobit((v_s + 505))] = tobit(0) +I8[tobit((v_s + 506))] = tobit(0) +I8[tobit((v_s + 507))] = tobit(0) +I8[tobit((v_s + 508))] = tobit(0) +I32[arshift((v_s + 496), 2)] = tobit(0) +I32[arshift((v_s + 500), 2)] = tobit(0) +I32[arshift((v_s + 504), 2)] = tobit(bor(bor(bor(U8[tobit((v_r + 8))], lshift(U8[tobit((v_r + 9))], 8)), lshift(U8[tobit((v_r + 10))], 16)), lshift(U8[tobit((v_r + 11))], 24))) +v_e = bor(bor(bor(U8[tobit((v_r + 4))], lshift(U8[tobit((v_r + 5))], 8)), lshift(U8[tobit((v_r + 6))], 16)), lshift(U8[tobit((v_r + 7))], 24)) +I32[arshift((v_s + 496), 2)] = tobit(bor(bor(bor(U8[bor(0, v_r)], lshift(U8[tobit((v_r + 1))], 8)), lshift(U8[tobit((v_r + 2))], 16)), lshift(U8[tobit((v_r + 3))], 24))) +I32[arshift((v_s + 500), 2)] = tobit(v_e) +I32[arshift(v_u, 2)] = tobit(F.fnA(v_A, I32[arshift((v_s + 28), 2)], tobit((v_s + 496)), v_r)) +if (v_c ~= 0) then +I32[arshift(v_c, 2)] = tobit(I32[arshift((v_s + 28), 2)]) +end +F.fL(v_A) +end +::L356:: +F.fL(v_r) +v_k = ((I32[arshift(v_u, 2)] ~= 0) and 0 or (-1)) +end +end +end +end +end +end +end +else +v_k = (-2) +end +end +end +end +B = tobit((v_s + 528)) +do return bor(0, v_k) end +end +UA[56] = function(v_A, v_r, v_e) +local v_t, v_a, v_u, v_c = 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_a = 0 +v_u = 0 +v_c = 0 +do +v_t = tobit((B - 96)) +B = v_t +F.fPA(tobit((v_t + 8)), 0, 84) +v_a = v_t +I32[arshift((v_a + 8), 2)] = tobit(0) +I32[arshift((v_a + 12), 2)] = tobit(0) +I32[arshift((v_a + 72), 2)] = tobit(0) +I32[arshift((v_a + 76), 2)] = tobit(0) +I16[arshift((v_a + 62), 1)] = tobit(0) +I16[arshift((v_a + 64), 1)] = tobit(0) +I16[arshift((v_a + 66), 1)] = tobit(0) +I16[arshift((v_a + 68), 1)] = tobit(0) +I32[arshift((v_a + 56), 2)] = tobit(0) +I32[arshift((v_a + 60), 2)] = tobit(0) +I32[arshift((v_a + 48), 2)] = tobit(0) +I32[arshift((v_a + 52), 2)] = tobit(0) +I32[arshift((v_a + 40), 2)] = tobit(0) +I32[arshift((v_a + 44), 2)] = tobit(0) +I32[arshift((v_a + 32), 2)] = tobit(0) +I32[arshift((v_a + 36), 2)] = tobit(0) +I32[arshift((v_a + 24), 2)] = tobit(0) +I32[arshift((v_a + 28), 2)] = tobit(0) +I32[arshift((v_a + 16), 2)] = tobit(0) +I32[arshift((v_a + 20), 2)] = tobit(0) +I32[arshift((v_a + 80), 2)] = tobit(0) +I32[arshift((v_a + 84), 2)] = tobit(0) +I32[arshift((v_a + 88), 2)] = tobit(0) +v_a = tobit((v_a + 8)) +if (v_r ~= 0) then +do +do +while true do +do +local t412 = v_a +v_c = I32[arshift((v_a + 80), 2)] +local t414 = tobit((tobit((t412 + v_c)) - (-64))) +local t415 = v_A +local t413 = (tobit(v_r) % 4294967296) +v_u = tobit((16 - v_c)) +v_u = ((t413 > (tobit(v_u) % 4294967296)) and v_u or v_r) +F.fTA(t414, t415, v_u) +v_c = tobit((v_u + I32[arshift((v_a + 80), 2)])) +I32[arshift((v_a + 80), 2)] = tobit(v_c) +v_r = tobit((v_r - v_u)) +if (16 == bor(0, v_c)) then +I32[arshift((v_a + 80), 2)] = tobit(0) +F.fS(v_a) +end +v_A = tobit((v_A + v_u)) +if not (v_r ~= 0) then goto B362 end +end +do +end +::C362:: +end +end +::B362:: +end +end +end +do +v_A = tobit((v_t + 8)) +v_r = I32[arshift((80 + v_A), 2)] +if ((tobit(v_r) % 4294967296) <= 15) then +v_a = tobit((tobit((v_A + v_r)) - (-64))) +local t416 = v_a +v_r = tobit((16 - v_r)) +F.fPA(t416, v_r, v_r) +end +F.fS(v_A) +v_r = I32[arshift((v_A + 12), 2)] +I32[arshift((v_A + 72), 2)] = tobit(I32[arshift((v_A + 8), 2)]) +I32[arshift((v_A + 76), 2)] = tobit(v_r) +v_r = I32[arshift((v_A + 4), 2)] +I32[arshift((v_A + 64), 2)] = tobit(I32[arshift(v_A, 2)]) +I32[arshift((v_A + 68), 2)] = tobit(v_r) +F.fS(v_A) +v_r = bor(bor(bor(U8[tobit((v_A + 28))], lshift(U8[tobit((v_A + 29))], 8)), lshift(U8[tobit((v_A + 30))], 16)), lshift(U8[tobit((v_A + 31))], 24)) +v_a = bor(bor(bor(U8[tobit((v_A + 24))], lshift(U8[tobit((v_A + 25))], 8)), lshift(U8[tobit((v_A + 26))], 16)), lshift(U8[tobit((v_A + 27))], 24)) +I8[tobit((v_e + 8))] = tobit(v_a) +I8[tobit((v_e + 9))] = tobit((rshift(v_a, 8) % 4294967296)) +I8[tobit((v_e + 10))] = tobit((rshift(v_a, 16) % 4294967296)) +I8[tobit((v_e + 11))] = tobit((rshift(v_a, 24) % 4294967296)) +I8[tobit((v_e + 12))] = tobit(v_r) +I8[tobit((v_e + 13))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_e + 14))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_e + 15))] = tobit((rshift(v_r, 24) % 4294967296)) +v_r = bor(bor(bor(U8[tobit((v_A + 20))], lshift(U8[tobit((v_A + 21))], 8)), lshift(U8[tobit((v_A + 22))], 16)), lshift(U8[tobit((v_A + 23))], 24)) +v_A = bor(bor(bor(U8[tobit((v_A + 16))], lshift(U8[tobit((v_A + 17))], 8)), lshift(U8[tobit((v_A + 18))], 16)), lshift(U8[tobit((v_A + 19))], 24)) +I8[bor(0, v_e)] = tobit(v_A) +I8[tobit((v_e + 1))] = tobit((rshift(v_A, 8) % 4294967296)) +I8[tobit((v_e + 2))] = tobit((rshift(v_A, 16) % 4294967296)) +I8[tobit((v_e + 3))] = tobit((rshift(v_A, 24) % 4294967296)) +I8[tobit((v_e + 4))] = tobit(v_r) +I8[tobit((v_e + 5))] = tobit((rshift(v_r, 8) % 4294967296)) +I8[tobit((v_e + 6))] = tobit((rshift(v_r, 16) % 4294967296)) +I8[tobit((v_e + 7))] = tobit((rshift(v_r, 24) % 4294967296)) +v_A = tobit((v_t + 8)) +if (v_A ~= 0) then +I8[bor(0, v_A)] = tobit(0) +I8[tobit((v_A + 1))] = tobit(0) +I8[tobit((v_A + 2))] = tobit(0) +I8[tobit((v_A + 3))] = tobit(0) +I8[tobit((v_A + 4))] = tobit(0) +I8[tobit((v_A + 5))] = tobit(0) +I8[tobit((v_A + 6))] = tobit(0) +I8[tobit((v_A + 7))] = tobit(0) +I8[tobit((v_A + 8))] = tobit(0) +I8[tobit((v_A + 9))] = tobit(0) +I8[tobit((v_A + 10))] = tobit(0) +I8[tobit((v_A + 11))] = tobit(0) +I8[tobit((v_A + 12))] = tobit(0) +I8[tobit((v_A + 13))] = tobit(0) +I8[tobit((v_A + 14))] = tobit(0) +I8[tobit((v_A + 15))] = tobit(0) +I8[tobit((v_A + 16))] = tobit(0) +I8[tobit((v_A + 17))] = tobit(0) +I8[tobit((v_A + 18))] = tobit(0) +I8[tobit((v_A + 19))] = tobit(0) +I8[tobit((v_A + 20))] = tobit(0) +I8[tobit((v_A + 21))] = tobit(0) +I8[tobit((v_A + 22))] = tobit(0) +I8[tobit((v_A + 23))] = tobit(0) +I8[tobit((v_A + 24))] = tobit(0) +I8[tobit((v_A + 25))] = tobit(0) +I8[tobit((v_A + 26))] = tobit(0) +I8[tobit((v_A + 27))] = tobit(0) +I8[tobit((v_A + 28))] = tobit(0) +I8[tobit((v_A + 29))] = tobit(0) +I8[tobit((v_A + 30))] = tobit(0) +I8[tobit((v_A + 31))] = tobit(0) +I8[tobit((v_A + 32))] = tobit(0) +I8[tobit((v_A + 33))] = tobit(0) +I8[tobit((v_A + 34))] = tobit(0) +I8[tobit((v_A + 35))] = tobit(0) +I8[tobit((v_A + 36))] = tobit(0) +I8[tobit((v_A + 37))] = tobit(0) +I8[tobit((v_A + 38))] = tobit(0) +I8[tobit((v_A + 39))] = tobit(0) +I8[tobit((v_A + 40))] = tobit(0) +I8[tobit((v_A + 41))] = tobit(0) +I8[tobit((v_A + 42))] = tobit(0) +I8[tobit((v_A + 43))] = tobit(0) +I8[tobit((v_A + 44))] = tobit(0) +I8[tobit((v_A + 45))] = tobit(0) +I8[tobit((v_A + 46))] = tobit(0) +I8[tobit((v_A + 47))] = tobit(0) +I8[tobit((v_A + 48))] = tobit(0) +I8[tobit((v_A + 49))] = tobit(0) +I8[tobit((v_A + 50))] = tobit(0) +I8[tobit((v_A + 51))] = tobit(0) +I8[tobit((v_A + 52))] = tobit(0) +I8[tobit((v_A + 53))] = tobit(0) +I8[tobit((v_A + 54))] = tobit(0) +I8[tobit((v_A + 55))] = tobit(0) +I8[tobit((v_A + 56))] = tobit(0) +I8[tobit((v_A + 57))] = tobit(0) +I8[tobit((v_A + 58))] = tobit(0) +I8[tobit((v_A + 59))] = tobit(0) +I8[tobit((v_A + 60))] = tobit(0) +I8[tobit((v_A + 61))] = tobit(0) +I8[tobit((v_A + 62))] = tobit(0) +I8[tobit((v_A + 63))] = tobit(0) +I8[tobit((v_A + 64))] = tobit(0) +I8[tobit((v_A + 65))] = tobit(0) +I8[tobit((v_A + 66))] = tobit(0) +I8[tobit((v_A + 67))] = tobit(0) +I8[tobit((v_A + 68))] = tobit(0) +I8[tobit((v_A + 69))] = tobit(0) +I8[tobit((v_A + 70))] = tobit(0) +I8[tobit((v_A + 71))] = tobit(0) +I8[tobit((v_A + 72))] = tobit(0) +I8[tobit((v_A + 73))] = tobit(0) +I8[tobit((v_A + 74))] = tobit(0) +I8[tobit((v_A + 75))] = tobit(0) +I8[tobit((v_A + 76))] = tobit(0) +I8[tobit((v_A + 77))] = tobit(0) +I8[tobit((v_A + 78))] = tobit(0) +I8[tobit((v_A + 79))] = tobit(0) +I8[tobit((v_A + 80))] = tobit(0) +I8[tobit((v_A + 81))] = tobit(0) +I8[tobit((v_A + 82))] = tobit(0) +I8[tobit((v_A + 83))] = tobit(0) +end +B = tobit((v_t + 96)) +end +end +UA[57] = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +v_t = tobit((B - 96)) +B = v_t +F.fNA(tobit((v_t + 8))) +F.fjA(tobit((v_t + 8))) +v_u = tobit((v_t + 8)) +if (v_r ~= 0) then +do +do +v_o = I32[arshift(v_u, 2)] +v_a = tobit((v_o + v_r)) +I32[arshift(v_u, 2)] = tobit(v_a) +if ((tobit(v_o) % 4294967296) > (tobit(v_a) % 4294967296)) then +I32[arshift((v_u + 4), 2)] = tobit((I32[arshift((v_u + 4), 2)] + 1)) +end +v_a = 0 +v_o = band(v_o, 63) +if (v_o ~= 0) then +v_c = tobit((64 - v_o)) +if ((tobit(v_c) % 4294967296) > (tobit(v_r) % 4294967296)) then +v_a = v_o +else +local t417 = v_o +v_o = tobit((v_u + 24)) +F.fTA(tobit((t417 + v_o)), v_A, v_c) +F.fK(v_u, v_o) +v_r = tobit((v_r - v_c)) +v_A = tobit((v_A + v_c)) +end +end +if ((tobit(v_r) % 4294967296) >= 64) then +do +while true do +F.fK(v_u, v_A) +v_A = tobit((v_A - (-64))) +v_r = tobit((v_r + (-64))) +if not ((tobit(v_r) % 4294967296) > 63) then goto B363 end +do +end +::C363:: +end +end +::B363:: +end +end +if (v_r ~= 0) then +F.fTA(tobit((24 + tobit((v_u + v_a)))), v_A, v_r) +end +end +end +end +do +v_u = tobit((B - 16)) +B = v_u +v_o = tobit((v_t + 8)) +v_r = I32[arshift(v_o, 2)] +v_c = I32[arshift((v_o + 4), 2)] +I8[tobit((v_u + 15))] = tobit((rshift(v_c, 21) % 4294967296)) +I8[tobit((v_u + 14))] = tobit((rshift(v_c, 13) % 4294967296)) +I8[tobit((v_u + 13))] = tobit((rshift(v_c, 5) % 4294967296)) +I8[tobit((v_u + 11))] = tobit((rshift(v_r, 21) % 4294967296)) +I8[tobit((v_u + 10))] = tobit((rshift(v_r, 13) % 4294967296)) +I8[tobit((v_u + 9))] = tobit((rshift(v_r, 5) % 4294967296)) +I8[tobit((v_u + 8))] = tobit(lshift(v_r, 3)) +I8[tobit((v_u + 12))] = tobit(bor(lshift(v_c, 3), (rshift(v_r, 29) % 4294967296))) +v_A = band(63, v_r) +v_a = tobit(((((tobit(v_A) % 4294967296) < 56) and 56 or 120) - v_A)) +if (v_a ~= 0) then +do +do +v_r = tobit((v_r + v_a)) +I32[arshift(v_o, 2)] = tobit(v_r) +if ((tobit(v_r) % 4294967296) < (tobit(v_a) % 4294967296)) then +I32[arshift((v_o + 4), 2)] = tobit((v_c + 1)) +end +v_r = 0 +v_c = 11760 +if (v_A ~= 0) then +v_s = tobit((64 - v_A)) +if ((tobit(v_s) % 4294967296) > (tobit(v_a) % 4294967296)) then +v_r = v_A +else +local t418 = v_A +v_A = tobit((v_o + 24)) +F.fTA(tobit((t418 + v_A)), 11760, v_s) +F.fK(v_o, v_A) +v_a = tobit((v_a - v_s)) +v_c = tobit((v_s + 11760)) +end +end +if ((tobit(v_a) % 4294967296) >= 64) then +do +while true do +F.fK(v_o, v_c) +v_c = tobit((v_c - (-64))) +v_a = tobit((v_a + (-64))) +if not ((tobit(v_a) % 4294967296) > 63) then goto B364 end +do +end +::C364:: +end +end +::B364:: +end +end +if (v_a ~= 0) then +F.fTA(tobit((24 + tobit((v_r + v_o)))), v_c, v_a) +end +end +end +end +v_A = I32[arshift(v_o, 2)] +I32[arshift(v_o, 2)] = tobit((v_A + 8)) +if ((tobit(v_A) % 4294967296) >= 4294967288) then +I32[arshift((v_o + 4), 2)] = tobit((I32[arshift((v_o + 4), 2)] + 1)) +end +do +do +do +do +v_A = band(v_A, 63) +if (v_A ~= 0) then +do +if ((tobit(v_A) % 4294967296) <= 55) then +v_a = tobit((24 + tobit((v_A + v_o)))) +v_c = 8 +v_A = tobit((v_u + 8)) +else +do +do +local t419 = v_A +v_a = tobit((v_o + 24)) +local t420 = tobit((t419 + v_a)) +local t421 = tobit((v_u + 8)) +v_r = tobit((64 - v_A)) +F.fTA(t420, t421, v_r) +F.fK(v_o, v_a) +v_c = tobit((v_A - 56)) +if (not (v_c ~= 0)) then +goto L365 +end +end +v_A = tobit((v_r + tobit((v_u + 8)))) +end +end +end +else +v_a = tobit((v_o + 24)) +v_c = 8 +v_A = tobit((v_u + 8)) +end +end +F.fTA(v_a, v_A, v_c) +end +end +::L365:: +end +I8[bor(0, v_e)] = tobit(I32[arshift((v_o + 8), 2)]) +I8[tobit((v_e + 1))] = tobit((rshift(I32[arshift((v_o + 8), 2)], 8) % 4294967296)) +I8[tobit((v_e + 2))] = tobit(U16[arshift((v_o + 10), 1)]) +I8[tobit((v_e + 3))] = tobit(U8[tobit((v_o + 11))]) +I8[tobit((v_e + 4))] = tobit(I32[arshift((v_o + 12), 2)]) +I8[tobit((v_e + 5))] = tobit((rshift(I32[arshift((v_o + 12), 2)], 8) % 4294967296)) +I8[tobit((v_e + 6))] = tobit(U16[arshift((v_o + 14), 1)]) +I8[tobit((v_e + 7))] = tobit(U8[tobit((v_o + 15))]) +I8[tobit((v_e + 8))] = tobit(I32[arshift((v_o + 16), 2)]) +I8[tobit((v_e + 9))] = tobit((rshift(I32[arshift((v_o + 16), 2)], 8) % 4294967296)) +I8[tobit((v_e + 10))] = tobit(U16[arshift((v_o + 18), 1)]) +I8[tobit((v_e + 11))] = tobit(U8[tobit((v_o + 19))]) +I8[tobit((v_e + 12))] = tobit(I32[arshift((v_o + 20), 2)]) +I8[tobit((v_e + 13))] = tobit((rshift(I32[arshift((v_o + 20), 2)], 8) % 4294967296)) +I8[tobit((v_e + 14))] = tobit(U16[arshift((v_o + 22), 1)]) +I8[tobit((v_e + 15))] = tobit(U8[tobit((v_o + 23))]) +B = tobit((v_u + 16)) +F.f_(tobit((v_t + 8))) +B = tobit((v_t + 96)) +end +UA[58] = function(v_A, v_r, v_e) +local v_t, v_o, v_a, v_u, v_c, v_s = 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +do +v_t = tobit((B - 96)) +B = v_t +F.fNA(tobit((v_t + 8))) +F.fjA(tobit((v_t + 8))) +v_u = tobit((v_t + 8)) +if (v_r ~= 0) then +do +do +v_o = I32[arshift(v_u, 2)] +v_a = tobit((v_o + v_r)) +I32[arshift(v_u, 2)] = tobit(v_a) +if ((tobit(v_o) % 4294967296) > (tobit(v_a) % 4294967296)) then +I32[arshift((v_u + 4), 2)] = tobit((I32[arshift((v_u + 4), 2)] + 1)) +end +v_a = 0 +v_o = band(v_o, 63) +if (v_o ~= 0) then +v_c = tobit((64 - v_o)) +if ((tobit(v_c) % 4294967296) > (tobit(v_r) % 4294967296)) then +v_a = v_o +else +local t422 = v_o +v_s = tobit((v_u + 24)) +F.fTA(tobit((t422 + v_s)), v_A, v_c) +F.fx(v_u, v_s) +v_r = tobit((v_r - v_c)) +v_A = tobit((v_A + v_c)) +end +end +if ((tobit(v_r) % 4294967296) >= 64) then +do +while true do +F.fx(v_u, v_A) +v_A = tobit((v_A - (-64))) +v_r = tobit((v_r + (-64))) +if not ((tobit(v_r) % 4294967296) > 63) then goto B366 end +do +end +::C366:: +end +end +::B366:: +end +end +if (v_r ~= 0) then +F.fTA(tobit((24 + tobit((v_a + v_u)))), v_A, v_r) +end +end +end +end +do +v_A = tobit((v_t + 8)) +v_r = tobit((24 + v_A)) +v_o = I32[arshift(v_A, 2)] +local t423 = v_r +v_a = band(63, v_o) +I8[tobit((t423 + v_a))] = tobit(128) +v_u = tobit((v_a + 1)) +if ((tobit(v_a) % 4294967296) <= 55) then +F.fPA(tobit((24 + tobit((v_A + v_u)))), 0, tobit((55 - v_a))) +else +F.fPA(tobit((24 + tobit((v_A + v_u)))), 0, bxor(63, v_a)) +F.fx(v_A, v_r) +I32[arshift((v_r + 48), 2)] = tobit(0) +I32[arshift((v_r + 52), 2)] = tobit(0) +I32[arshift((v_r + 40), 2)] = tobit(0) +I32[arshift((v_r + 44), 2)] = tobit(0) +I32[arshift((v_r + 32), 2)] = tobit(0) +I32[arshift((v_r + 36), 2)] = tobit(0) +I32[arshift((v_r + 24), 2)] = tobit(0) +I32[arshift((v_r + 28), 2)] = tobit(0) +I32[arshift((v_r + 16), 2)] = tobit(0) +I32[arshift((v_r + 20), 2)] = tobit(0) +I32[arshift((v_r + 8), 2)] = tobit(0) +I32[arshift((v_r + 12), 2)] = tobit(0) +I32[arshift(v_r, 2)] = tobit(0) +I32[arshift((v_r + 4), 2)] = tobit(0) +v_o = I32[arshift(v_A, 2)] +end +I8[tobit((v_A + 83))] = tobit((rshift(v_o, 21) % 4294967296)) +I8[tobit((v_A + 82))] = tobit((rshift(v_o, 13) % 4294967296)) +I8[tobit((v_A + 81))] = tobit((rshift(v_o, 5) % 4294967296)) +I8[tobit((v_A + 80))] = tobit(lshift(v_o, 3)) +v_a = I32[arshift((v_A + 4), 2)] +I8[tobit((v_A + 87))] = tobit((rshift(v_a, 21) % 4294967296)) +I8[tobit((v_A + 86))] = tobit((rshift(v_a, 13) % 4294967296)) +I8[tobit((v_A + 85))] = tobit((rshift(v_a, 5) % 4294967296)) +I8[tobit((v_A + 84))] = tobit(bor(lshift(v_a, 3), (rshift(v_o, 29) % 4294967296))) +F.fx(v_A, v_r) +I8[bor(0, v_e)] = tobit(I32[arshift((v_A + 8), 2)]) +I8[tobit((v_e + 1))] = tobit((rshift(I32[arshift((v_A + 8), 2)], 8) % 4294967296)) +I8[tobit((v_e + 2))] = tobit(U16[arshift((v_A + 10), 1)]) +I8[tobit((v_e + 3))] = tobit(U8[tobit((v_A + 11))]) +I8[tobit((v_e + 4))] = tobit(I32[arshift((v_A + 12), 2)]) +I8[tobit((v_e + 5))] = tobit((rshift(I32[arshift((v_A + 12), 2)], 8) % 4294967296)) +I8[tobit((v_e + 6))] = tobit(U16[arshift((v_A + 14), 1)]) +I8[tobit((v_e + 7))] = tobit(U8[tobit((v_A + 15))]) +I8[tobit((v_e + 8))] = tobit(I32[arshift((v_A + 16), 2)]) +I8[tobit((v_e + 9))] = tobit((rshift(I32[arshift((v_A + 16), 2)], 8) % 4294967296)) +I8[tobit((v_e + 10))] = tobit(U16[arshift((v_A + 18), 1)]) +I8[tobit((v_e + 11))] = tobit(U8[tobit((v_A + 19))]) +I8[tobit((v_e + 12))] = tobit(I32[arshift((v_A + 20), 2)]) +I8[tobit((v_e + 13))] = tobit((rshift(I32[arshift((v_A + 20), 2)], 8) % 4294967296)) +I8[tobit((v_e + 14))] = tobit(U16[arshift((v_A + 22), 1)]) +I8[tobit((v_e + 15))] = tobit(U8[tobit((v_A + 23))]) +F.f_(tobit((v_t + 8))) +B = tobit((v_t + 96)) +end +end +UA[59] = function() +local v_A, v_r, v_e, v_t, v_o, v_a, v_u, v_c = 0, 0, 0, 0, 0, 0, 0, 0 +v_e = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +do +v_r = tobit((B - 544)) +v_A = v_r +B = v_A +if (not (I32[8020] ~= 0)) then +do +F.fLA(tobit((v_A + 264))) +I8[tobit((v_A + 256))] = tobit(118) +I8[tobit((v_A + 257))] = tobit(56) +I8[tobit((v_A + 258))] = tobit(48) +I8[tobit((v_A + 259))] = tobit(107) +I8[tobit((v_A + 260))] = tobit(103) +I8[tobit((v_A + 261))] = tobit(50) +I8[tobit((v_A + 262))] = tobit(104) +I8[tobit((v_A + 263))] = tobit(54) +I8[tobit((v_A + 248))] = tobit(120) +I8[tobit((v_A + 249))] = tobit(119) +I8[tobit((v_A + 250))] = tobit(110) +I8[tobit((v_A + 251))] = tobit(101) +I8[tobit((v_A + 252))] = tobit(49) +I8[tobit((v_A + 253))] = tobit(53) +I8[tobit((v_A + 254))] = tobit(116) +I8[tobit((v_A + 255))] = tobit(105) +F.fZ(tobit((v_A + 264)), tobit((v_A + 248)), 128) +I8[tobit((v_A + 240))] = tobit(111) +I8[tobit((v_A + 241))] = tobit(100) +I8[tobit((v_A + 242))] = tobit(114) +I8[tobit((v_A + 243))] = tobit(104) +I8[tobit((v_A + 244))] = tobit(54) +I8[tobit((v_A + 245))] = tobit(115) +I8[tobit((v_A + 246))] = tobit(99) +I8[tobit((v_A + 247))] = tobit(101) +I8[tobit((v_A + 232))] = tobit(98) +I8[tobit((v_A + 233))] = tobit(106) +I8[tobit((v_A + 234))] = tobit(49) +I8[tobit((v_A + 235))] = tobit(113) +I8[tobit((v_A + 236))] = tobit(103) +I8[tobit((v_A + 237))] = tobit(121) +I8[tobit((v_A + 238))] = tobit(97) +I8[tobit((v_A + 239))] = tobit(50) +I8[tobit((v_A + 224))] = tobit(203) +I8[tobit((v_A + 225))] = tobit(57) +I8[tobit((v_A + 226))] = tobit(201) +I8[tobit((v_A + 227))] = tobit(73) +I8[tobit((v_A + 228))] = tobit(31) +I8[tobit((v_A + 229))] = tobit(230) +I8[tobit((v_A + 230))] = tobit(245) +I8[tobit((v_A + 231))] = tobit(193) +I8[tobit((v_A + 216))] = tobit(6) +I8[tobit((v_A + 217))] = tobit(118) +I8[tobit((v_A + 218))] = tobit(195) +I8[tobit((v_A + 219))] = tobit(164) +I8[tobit((v_A + 220))] = tobit(197) +I8[tobit((v_A + 221))] = tobit(116) +I8[tobit((v_A + 222))] = tobit(203) +I8[tobit((v_A + 223))] = tobit(88) +v_e = 16 +F.fR(tobit((v_A + 264)), 0, 16, tobit((v_A + 232)), tobit((v_A + 216)), tobit((v_A + 176))) +F.fhA(tobit((v_A + 264))) +do +do +do +v_t = U8[tobit((v_A + 191))] +local t424 = bor(bor((((tobit(v_t) % 4294967296) > 16) and 1 or 0), ((not (v_t ~= 0)) and 1 or 0)), ((16 == bor(0, v_t)) and 1 or 0)) +if t424 == 0 then +v_a = 2 +v_e = 15 +t424 = (((tobit(v_t) % 4294967296) < 2) and 1 or 0) +end +if (not (t424 ~= 0)) then +do +v_e = 14 +while true do +do +if (bor(((bor(0, v_t) ~= U8[tobit((tobit((v_A + 176)) + v_e))]) and 1 or 0), (((tobit(v_t) % 4294967296) <= (tobit(band(255, v_a)) % 4294967296)) and 1 or 0)) ~= 0) then +goto L367 +end +v_a = tobit((v_a + 1)) +v_e = tobit((v_e - 1)) +end +::C368:: +end +end +::B368:: +end +end +end +::L367:: +end +v_t = F.fm(tobit((v_e + 1))) +F.fPA(tobit((v_t + v_e)), 0, (((-1) ~= bor(0, v_e)) and 1 or 0)) +I32[8020] = tobit(F.fTA(v_t, tobit((v_A + 176)), v_e)) +end +end +end +do +if (not (I32[8021] ~= 0)) then +do +F.fLA(tobit((v_A + 264))) +I8[tobit((v_A + 168))] = tobit(116) +I8[tobit((v_A + 169))] = tobit(48) +I8[tobit((v_A + 170))] = tobit(56) +I8[tobit((v_A + 171))] = tobit(98) +I8[tobit((v_A + 172))] = tobit(101) +I8[tobit((v_A + 173))] = tobit(97) +I8[tobit((v_A + 174))] = tobit(100) +I8[tobit((v_A + 175))] = tobit(51) +I8[tobit((v_A + 160))] = tobit(120) +I8[tobit((v_A + 161))] = tobit(103) +I8[tobit((v_A + 162))] = tobit(119) +I8[tobit((v_A + 163))] = tobit(50) +I8[tobit((v_A + 164))] = tobit(52) +I8[tobit((v_A + 165))] = tobit(105) +I8[tobit((v_A + 166))] = tobit(113) +I8[tobit((v_A + 167))] = tobit(106) +F.fZ(tobit((v_A + 264)), tobit((v_A + 160)), 128) +v_e = bor(bor(bor(U8[13592], lshift(U8[13593], 8)), lshift(U8[13594], 16)), lshift(U8[13595], 24)) +I32[arshift((v_A + 120), 2)] = tobit(bor(bor(bor(U8[13588], lshift(U8[13589], 8)), lshift(U8[13590], 16)), lshift(U8[13591], 24))) +I32[arshift((v_A + 124), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[13600], lshift(U8[13601], 8)), lshift(U8[13602], 16)), lshift(U8[13603], 24)) +I32[arshift((v_A + 128), 2)] = tobit(bor(bor(bor(U8[13596], lshift(U8[13597], 8)), lshift(U8[13598], 16)), lshift(U8[13599], 24))) +I32[arshift((v_A + 132), 2)] = tobit(v_e) +v_e = bor(bor(bor(U8[13608], lshift(U8[13609], 8)), lshift(U8[13610], 16)), lshift(U8[13611], 24)) +I32[arshift((v_A + 136), 2)] = tobit(bor(bor(bor(U8[13604], lshift(U8[13605], 8)), lshift(U8[13606], 16)), lshift(U8[13607], 24))) +I32[arshift((v_A + 140), 2)] = tobit(v_e) +I8[tobit((v_A + 152))] = tobit(100) +I8[tobit((v_A + 153))] = tobit(57) +I8[tobit((v_A + 154))] = tobit(120) +I8[tobit((v_A + 155))] = tobit(108) +I8[tobit((v_A + 156))] = tobit(117) +I8[tobit((v_A + 157))] = tobit(121) +I8[tobit((v_A + 158))] = tobit(103) +I8[tobit((v_A + 159))] = tobit(116) +I8[tobit((v_A + 144))] = tobit(122) +I8[tobit((v_A + 145))] = tobit(119) +I8[tobit((v_A + 146))] = tobit(114) +I8[tobit((v_A + 147))] = tobit(104) +I8[tobit((v_A + 148))] = tobit(105) +I8[tobit((v_A + 149))] = tobit(53) +I8[tobit((v_A + 150))] = tobit(102) +I8[tobit((v_A + 151))] = tobit(107) +v_e = bor(bor(bor(U8[13584], lshift(U8[13585], 8)), lshift(U8[13586], 16)), lshift(U8[13587], 24)) +I32[arshift((v_A + 112), 2)] = tobit(bor(bor(bor(U8[13580], lshift(U8[13581], 8)), lshift(U8[13582], 16)), lshift(U8[13583], 24))) +I32[arshift((v_A + 116), 2)] = tobit(v_e) +v_e = 32 +F.fR(tobit((v_A + 264)), 0, 32, tobit((v_A + 144)), tobit((v_A + 112)), tobit((v_A + 176))) +F.fhA(tobit((v_A + 264))) +do +do +do +v_a = U8[tobit((v_A + 207))] +local t425 = (((tobit(band((v_a - 1), 255)) % 4294967296) > 15) and 1 or 0) +if t425 == 0 then +v_t = 2 +v_e = 31 +t425 = (((tobit(v_a) % 4294967296) < 2) and 1 or 0) +end +if (not (t425 ~= 0)) then +do +v_e = 30 +while true do +do +if (bor(((bor(0, v_a) ~= U8[tobit((tobit((v_A + 176)) + v_e))]) and 1 or 0), (((tobit(v_a) % 4294967296) <= (tobit(band(255, v_t)) % 4294967296)) and 1 or 0)) ~= 0) then +goto L369 +end +v_t = tobit((v_t + 1)) +v_e = tobit((v_e - 1)) +end +::C370:: +end +end +::B370:: +end +end +end +::L369:: +end +v_t = F.fm(tobit((v_e + 1))) +F.fPA(tobit((v_t + v_e)), 0, (((-1) ~= bor(0, v_e)) and 1 or 0)) +I32[8021] = tobit(F.fTA(v_t, tobit((v_A + 176)), v_e)) +end +end +end +do +v_a = 0 +v_t = I32[8022] +if (not (v_t ~= 0)) then +do +F.fLA(tobit((v_A + 264))) +I8[tobit((v_A + 104))] = tobit(53) +I8[tobit((v_A + 105))] = tobit(102) +I8[tobit((v_A + 106))] = tobit(55) +I8[tobit((v_A + 107))] = tobit(56) +I8[tobit((v_A + 108))] = tobit(121) +I8[tobit((v_A + 109))] = tobit(120) +I8[tobit((v_A + 110))] = tobit(97) +I8[tobit((v_A + 111))] = tobit(52) +I8[tobit((v_A + 96))] = tobit(100) +I8[tobit((v_A + 97))] = tobit(57) +I8[tobit((v_A + 98))] = tobit(107) +I8[tobit((v_A + 99))] = tobit(98) +I8[tobit((v_A + 100))] = tobit(114) +I8[tobit((v_A + 101))] = tobit(108) +I8[tobit((v_A + 102))] = tobit(112) +I8[tobit((v_A + 103))] = tobit(109) +F.fZ(tobit((v_A + 264)), tobit((v_A + 96)), 128) +I8[tobit((v_A + 88))] = tobit(56) +I8[tobit((v_A + 89))] = tobit(104) +I8[tobit((v_A + 90))] = tobit(97) +I8[tobit((v_A + 91))] = tobit(112) +I8[tobit((v_A + 92))] = tobit(103) +I8[tobit((v_A + 93))] = tobit(100) +I8[tobit((v_A + 94))] = tobit(98) +I8[tobit((v_A + 95))] = tobit(117) +I8[tobit((v_A + 80))] = tobit(111) +I8[tobit((v_A + 81))] = tobit(51) +I8[tobit((v_A + 82))] = tobit(57) +I8[tobit((v_A + 83))] = tobit(115) +I8[tobit((v_A + 84))] = tobit(120) +I8[tobit((v_A + 85))] = tobit(108) +I8[tobit((v_A + 86))] = tobit(49) +I8[tobit((v_A + 87))] = tobit(105) +I8[tobit((v_A + 72))] = tobit(162) +I8[tobit((v_A + 73))] = tobit(195) +I8[tobit((v_A + 74))] = tobit(242) +I8[tobit((v_A + 75))] = tobit(203) +I8[tobit((v_A + 76))] = tobit(143) +I8[tobit((v_A + 77))] = tobit(118) +I8[tobit((v_A + 78))] = tobit(228) +I8[tobit((v_A + 79))] = tobit(164) +I8[tobit((v_A + 64))] = tobit(203) +I8[tobit((v_A + 65))] = tobit(114) +I8[tobit((v_A + 66))] = tobit(130) +I8[tobit((v_A + 67))] = tobit(158) +I8[tobit((v_A + 68))] = tobit(29) +I8[tobit((v_A + 69))] = tobit(195) +I8[tobit((v_A + 70))] = tobit(182) +I8[tobit((v_A + 71))] = tobit(183) +v_e = 16 +F.fR(tobit((v_A + 264)), 0, 16, tobit((v_A + 80)), tobit((v_A - (-64))), tobit((v_A + 176))) +F.fhA(tobit((v_A + 264))) +do +do +do +v_o = U8[tobit((v_A + 191))] +local t426 = bor(bor((((tobit(v_o) % 4294967296) > 16) and 1 or 0), ((not (v_o ~= 0)) and 1 or 0)), ((16 == bor(0, v_o)) and 1 or 0)) +if t426 == 0 then +v_t = 2 +v_e = 15 +t426 = (((tobit(v_o) % 4294967296) < 2) and 1 or 0) +end +if (not (t426 ~= 0)) then +do +v_e = 14 +while true do +do +if (bor(((bor(0, v_o) ~= U8[tobit((tobit((v_A + 176)) + v_e))]) and 1 or 0), (((tobit(v_o) % 4294967296) <= (tobit(band(255, v_t)) % 4294967296)) and 1 or 0)) ~= 0) then +goto L371 +end +v_t = tobit((v_t + 1)) +v_e = tobit((v_e - 1)) +end +::C372:: +end +end +::B372:: +end +end +end +::L371:: +end +v_t = F.fm(tobit((v_e + 1))) +F.fPA(tobit((v_t + v_e)), 0, (((-1) ~= bor(0, v_e)) and 1 or 0)) +I32[8022] = tobit(F.fTA(v_t, tobit((v_A + 176)), v_e)) +end +end +end +do +I8[tobit((v_A + 63))] = tobit(0) +I8[tobit((v_A + 61))] = tobit(105) +I8[tobit((v_A + 62))] = tobit(105) +I32[arshift((v_A + 32), 2)] = tobit(10560) +I32[arshift((v_A + 36), 2)] = tobit(v_t) +local t427 = bor(0, imp_b(14394, tobit((v_A + 61)), tobit((v_A + 32)))) +if t427 == 0 then +I8[tobit((v_A + 57))] = tobit(105) +I8[tobit((v_A + 58))] = tobit(105) +I8[tobit((v_A + 59))] = tobit(105) +I8[tobit((v_A + 60))] = tobit(0) +I32[arshift((v_A + 16), 2)] = tobit(10617) +I32[arshift((v_A + 20), 2)] = tobit(10536) +I32[arshift((v_A + 24), 2)] = tobit(10548) +local t428 = bor(0, imp_b(14449, tobit((v_A + 57)), tobit((v_A + 16)))) +if t428 == 0 then +I8[tobit((v_A + 55))] = tobit(105) +I8[tobit((v_A + 56))] = tobit(0) +I32[arshift(v_A, 2)] = tobit(10636) +t428 = bor(0, imp_b(14875, tobit((v_A + 55)), bor(0, v_A))) +end +t427 = t428 +end +if (not (t427 ~= 0)) then +do +v_c = bor(0, imp_e(I32[8022])) +v_t = v_c +v_e = U8[bor(0, v_t)] +v_o = I32[8020] +do +do +do +local t429 = (not (v_e ~= 0)) +v_u = U8[bor(0, v_o)] +if (not (bor((t429 and 1 or 0), ((bor(0, v_u) ~= bor(0, v_e)) and 1 or 0)) ~= 0)) then +do +while true do +do +v_u = U8[tobit((v_o + 1))] +v_e = U8[tobit((v_t + 1))] +if (not (v_e ~= 0)) then +goto L373 +end +v_o = tobit((v_o + 1)) +v_t = tobit((v_t + 1)) +if (bor(0, v_e) ~= bor(0, v_u)) then +goto B374 +end +end +::C374:: +end +end +::B374:: +end +end +end +::L373:: +end +do +local t432 = (not (tobit((v_e - v_u)) ~= 0)) +if t432 then +F.fL(v_c) +v_e = bor(0, imp_c(10579, 10624)) +v_t = bor(0, imp_c(10579, 10592)) +local t430 = v_t +if t430 ~= 0 then +v_o = F.fpA(v_t) +local t431 = (((tobit(v_o) % 4294967296) < 6) and 1 or 0) +if t431 == 0 then +t431 = F.fwA(tobit((tobit((v_t + v_o)) - 6)), 10648, 6) +end +t430 = ((not (t431 ~= 0)) and 1 or 0) +end +t432 = (t430 ~= 0) +end +if t432 then +do +do +F.fL(v_t) +local t433 = v_r +v_t = I32[8021] +v_o = tobit((t433 - band((F.fpA(v_t) + 16), (-16)))) +B = v_o +end +do +do +do +do +do +do +v_t = F.fV(F.fsA(v_o, v_t)) +if (v_t ~= 0) then +do +if (not (v_e ~= 0)) then +do +while true do +do +if (not (F.fV(0) ~= 0)) then +goto L376 +end +end +::C377:: +end +end +::B377:: +end +do +do +while true do +do +do +do +v_u = F.fpA(v_e) +local t434 = (tobit(v_u) % 4294967296) +v_o = F.fpA(v_t) +local t435 = ((t434 < (tobit(v_o) % 4294967296)) and 1 or 0) +if t435 == 0 then +t435 = F.fwA(tobit((tobit((v_e + v_u)) - v_o)), v_t, v_o) +end +if (not (t435 ~= 0)) then +F.fL(v_e) +v_a = 1 +goto L375 +end +end +v_t = F.fV(0) +if (not (v_t ~= 0)) then +goto B378 +end +end +end +::C378:: +end +end +::B378:: +end +end +end +end +end +::L376:: +end +F.fL(v_e) +end +end +::L375:: +end +end +end +end +end +end +end +B = tobit((v_A + 544)) +do return bor(0, v_a) end +end +UA[60] = function(v_A, v_r, v_e, v_t) +local v_o = 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_t = tobit(v_t) +v_o = tobit((B - 32)) +B = v_o +v_A = bor(0, YA[bxor(32060, I32[8015])](v_A, v_r, v_e, v_t, 0, tobit((v_o + 28)), tobit((v_o + 24)))) +I8[tobit((v_o + 20))] = tobit(105) +I8[tobit((v_o + 21))] = tobit(105) +I8[tobit((v_o + 22))] = tobit(105) +I8[tobit((v_o + 23))] = tobit(0) +I32[arshift(v_o, 2)] = tobit(v_A) +I32[arshift((v_o + 4), 2)] = tobit(I32[arshift((v_o + 28), 2)]) +I32[arshift((v_o + 8), 2)] = tobit(I32[arshift((v_o + 24), 2)]) +imp_b(22685, tobit((v_o + 20)), bor(0, v_o)) +if not (v_A ~= 0) then +F.fL(I32[arshift((v_o + 28), 2)]) +end +B = tobit((v_o + 32)) +end + +local DATA = { + { 1028, "AQAAAAABAAABAQAAAAABAAEAAQAAAQEAAQEBAAAAAAEBAAABAAEAAQEBAAEAAAEBAQABAQABAQEBAQEBAAAAAAAAAAEAAAEAAAABAQABAAAAAQABAAEBAAABAQEBAAAAAQAAAQEAAQABAAEBAQEAAAEBAAEBAQEAAQEBAUAQABAAEAAAAAAEAEAQBBAAAAAQQBAAEEAAAAAAAAAQQAAEAAAABBBAEAQQABAEAAAQBBBAEAQAABAAAEAAAAAAAAQQQAAAEAAQABBAEAAAABAEAEAABABAAAQQABAEEEAQ" }, + { 1260, "QAAEEEAAABAAEAAQQBAEAAAABABAEAQAAAAEAAAQBBAAEAAAQAAAAEAABBAAEAAAQBAEAAAQABBAAAAAQAAAEAAABBBAAAQQAAAAEAAABABAEAAQAAAAAEAQBBBAAAQAQAAAEAAABBAAEAAQQBAAEAAAAABAEAQQABAEAAAQBABAEAAAQBAAAEAABAAAAAAQABAEEBAAACAAAEAgAEAAABBAQCAAAEAgEAAAABBAQCAAAEAAAEAAIBBAQAAAAEAAEAAAIBAAQAAAQAAgAAAAIBBAAAAAAAAAEABAABBAACAAQAAAAEBAABBAACAQAAAAEABAIBAAQCAAAAAAEEBAAABAQCAQQAAAAEBAAABAQCAAAAAgAEAAIBAAAAAQAEAgAEBAABBAQCAAAEAAEEAAABAAACAAAEAAAEAAIAAAACAQQAAAEAAAIBBAQCAAQEAAAABAIBBAQAAAQEAgAAAAABAAQCAQAAAAAEAAAAAAQCAQQEAAAEAAABAAQAAQQAAgAAAAAABAQCAAAAAgEABAABBAACABIIAAgSAAAIEgAACAAAAAgCCAAIEAgAABAIAAASAAAAAAAAAAIIAAACCAAIEggACBAAAAAAAAAIAAgAABAIAAAQAAAAAgAAAAAIAAASCAAIAAAAAAAIAAASAAAIAgAACBAIAAAQAAAIAgAACAAIAAACAAAIAggACBIIAAgQAAAIAAgAABAIAAACCAAIEggACB" }, + { 1821, "IIAAgCAAAIAAgACBAIAAAQAAAAEggACBIAAAgSAAAIAAAACBIIAAgQAAAAEAAAAAIAAAAQCAAAEgAACAIIAAgQCAAAEgAACAIAAAAACAAAEggACAAAAAAACAAAAgAACAIIAAIIAQgACAAIAAgAAAIIAQAAAAEAAgAAAAIAAQgCCAAIAgAACAIIAQgACAEIAAAACAAIAAgAAAEAAgAAAAIAAQgACAEAAgABAAIIAAgAAAAAAAAACAAIAAACCAEAAAABCAIAAQACAAAIAAAAAAAIAQACCAAAAAgBCAAAAQgCCAAAAAAAAAIIAQACAAEIAAABAAIIAAgAAAEIAAgBCAAIAAAAAAEIAAgACAIAAAACCAEIAggBAAIAAAAACAAAAAAACAIIAAAACAEIAAABAAIAAAgCAAEAAggACAIAAAgCAAEAAAgBAAAAAAAACAAIAggAAAAAAAgCAAEIAggBCAAIAQAAAAIAACACAEAggABAAAAAAACAAAAggABAIIIAAACCAEAgggBAAAIAAAAAAAAgAABAIAAAAAAAAEAgAgBAIIAAAACAAEAgggAAIAIAAACAAEAgAABAAAIAQACCAEAgAgAAAAIAQACAAAAggAAAIIIAQACCAAAgAAAAAAAAQACCAAAAAABAAIIAAAACAAAggABAIIAAQCACAEAgAgBAIAAAACACAAAAAABAAIAAQAACAAAAggBAIIAAACCCAAAAggBAIIAAACAAAEAgggBAAAIAQACCAAAAAAAAIAAAACCCAEAAAAAAIIIAAAACAEAAgAAAIAAAQACAAEAAgAAAIAIAAAAQAAAAEIAgAACAIAAQBCAAAIAAABAAAAAABAAAAIAgABCEAAAAgAAAEAAgABCEAAAQBCAAAIQgABCAAAAABAAAAAAgAACEAAAAhAAAAAAAABAEAAAQhCAAEIQgABAAIAAAhCAAEAQAAAAAAAAABCAAEIAgAAAAIAAABCAAEIAAAACAAAAQBCAAEAAAAAAAIAAABAAAAIAgABAEIAAQhAAAEAAgAAAEAAAAhCAAEIAgABCEAAAQAAAAAAAgAACEIAAQhCAAEIAAAAAEIAAQhCAAAIAgAAAAAAAAhAAAAAQgABCAAAAQACAAEAQAAACAAAAAAAAAAIQAABCAIAAQBACAIAAAACAggAAAAACAACCAACAAgAAAAACAICAAACAAgIAAIACAAACAgAAAgAAAIACAICCAgAAgAAAAIICAIAAAAAAAgIAAAAAAICCAACAAAAAgIAAAACCAgAAggIAgIACAIACAACAgAAAAIACAIACAgAAAAIAgIIAAIAAAAAAAgAAgIIAAAACAgAAgAIAgAAAAACAAACAggAAgAIAAAAAAACAAAIAAIACAICCAACAAgIAAAIAAIAAAAAAAAIAAIICAIACAAAAgAAAAAICAICCAgAAAAIAgIAAAICAAgAAAgAAAIICAIACAgCAAAAAAIICAICAAgAAAAIAAIIAAICAAAEAQEAAAAAAAABAAQEAQEEAAEBBAQBAAQAAAAAAAEAAAQAAAAEAQEEBAEBAAQAAAQEAAEEAAEBAAAAAQQAAAAEBAAAAAQAAQAEAAEABAEAAAQBAAAAAQEAAAEBBAQAAQQAAQAEAAABBAAAAQQAAQAAAAAABAQAAAQEAQAAAAABAAABAAQEAQEEAAAAAAABAQAEAQEAAAABAAAAAQAEAAAEAAEBAAABAAAEAQAEAAABAAQAAAQAAAAEBAABBAQBAAQEAQEEAAEAAAABAQQEAAEEAAABBAQAAAQEAQAABAEBBAQAAAAEAAEABAABAAAAAAQAAQAABAEAAAAAAAQAAQGmCzHRrLXfmNty/S+33xrQ7a/huJZ+JmpFkHy6mX8s8UeZoST3bJGz4vIBCBb8joXYIGljaU5XcaP+WKR+PZP0j3SVDVi2jnJYzYtx7koVgh2kVHu1WVrCOdUwnBNg8iojsNHF8IVgKBh5QcrvONu4sNx5jg4YOmCLDp5sPooesMF3FdcnSzG92i+veGBcYFXzJVXmlKtVqmKYSFdAFOhjajnKVbYQqyo0XMy0zuhBEa+GVKGT6XJ8ERTusyq8b2Ndxakr9jEYdBY+XM4ek4ebM7rWr1zPJGyBUzJ6d4aVKJhIjzuvuUtrG+i/xJMhKGbMCdhhkakh+2CsfEgygOxdXV2E77F1hekCIybciBtl64E+iSPFrJbT829tDzlC9IOCRAsuBCCEpErwyGlemx+eQmjGIZps6fZhnAxn8IjTq9KgUWpoL1TYKKcPlqMzUatsC+9u5Dt6E1DwO7qYKvt+HWXxoXYBrzk+WcpmiA5DghmG7oy0n29Fw6WEfb5eizvYdW/gcyDBhZ9EGkCmasFWYqrTTgZ3PzZy3/4bPQKbQiTX0DdIEgrQ0+oP25vA8UnJclMHexuZgNh51CX33uj2GlD+4ztMeba94GyXugbABLZPqcHEYJ9Awp5cXmMkahmvb/totVNsPuuyORNv7FI7H1H8bSyVMJtERYHMCb1erwTQ4779SjPeBygPZrNLLhlXqMvAD3TIRTlfC9Lb+9O5vcB5VQoyYBrGAKHWeXIsQP4ln2fMox/7+OmljvgiMtvfFnU8FWth/cgeUC+rUgWt+rU9MmCHI/1IezFTgt8APrtXXJ6gjG/KLlaHGttpF9/2qELVw/9+KMYyZ6xzVU+MsCdbachYyrtdo//hoBHwuJg9+hC4gyH9bLX8SlvT0S155FOaZUX4trxJjtKQl/tL2vLd4TN+y6RBE/ti6MbkztrKIO8BTHc2/p5+0LQf8StN2tuVmJGQrnGOreqg1ZNr0NGO0OAlx68vWzyOt5R1jvvi9o9kKxLyEriIiBzwDZCgXq1PHMOPaJHxz9GtwaizGCIvL3cXDr7+LXXqoR8Ciw/MoOXodG+11vOsGJniic7gT6i0t+AT/YE7xHzZqK3SZqJfFgV3lYAUc8yTdxQaIWUgreaG+rV39UJUx881nfsMr83roIk+e9MbQdZJfh6uLQ4lAF6zcSC7AGgir+C4V5s2ZCQeuQnwHZFjVaqm31mJQ8F4f1Na2aJbfSDFueUCdgMmg6nPlWJoGcgRQUpzTsotR7NKqRR7UgBRGxUpU5o/Vw/W5MabvHakYCsAdOaBtW+6CB/pG1dr7JbyFdkNKiFlY7a2+bnnLgU0/2RWhcVdLbBToY+fqZlHughqB4Vu6XB6S0Qps7UuCXXbIyYZxLCmbq1936dJuGDunGay7Y9xjKrs/xeaaWxSZFbhnrHCpQI2GSlMCXVAE1mgPjoY5JqYVD9lnUJb1uSPa9Y/95kHnNKh9TDo7+Y4LU3BXSXwhiDdTCbrcITG6YJjXsweAj9raAnJ77o+FBiXPKFwamuENX9ohuKgUgVTnLc3B1CqHIQHPlyu3n/sRH2OuPIWVzfaOrANDFDwBB8c8P+zAAIa9QyusnS1PFh6gyW9IQnc+ROR0fYvqXxzRzKUAUf1IoHl5Trc2sI3NHa1yKfd85pGYUSpDgPQDz7HyOxBHnWkmc044i8O6juhu4AyMbM+GDiLVE4IuW1PAw1Cb78ECvaQErgseXyXJHKweVavia+8H3ea3hAIk9kSrouzLj/P3B9yElUkcWsu5t0aUIfNhJ8YR1h6F9oIdLyan7yMfUvpOux67PodhdtmQwlj0sNkxEcYHO8I2RUyNztD3Ra6wiRDTaESUcRlKgIAlFDd5DoTnvjfcVVOMRDWd6yBmxkRX/FWNQRrx6PXOxgRPAmlJFnt5o/y+vvxlyy/up5uPBUecEXjhrFv6eoKXg6Gsyo+WhznH3f6Bj1OudxlKQ8d55nWiT6AJchmUnjJTC5qsxCcug4Vxnjq4pRTPPyl9C0KHqdO9/I9Kx02DyY5GWB5whkIpyNSthIT927+retmH8PqlUW844PIe6bRN3+xKP+MAe/dMsOlWmy+hSFYZQKYq2gPpc7uO5Uv26197yqEL25bKLYhFXBhByl1R93sEBWfYTCozBOWvWHrHv40A89jA6qQXHO1OaJwTAuentUU3qrLvIbM7qcsYmCrXKucboTzsq8ei2TK8L0ZuWkjoFC7WmUyWmhAs7QqPNXpnjH3uCHAGQtUm5mgX4d+mfeVqH09YpqIN/h3LeOXX5PtEYESaBYpiDUO1h/mx6Hf3paZulh4pYT1V2NyIhv/w4OblkbCGusKs81UMC5T5EjZjygxvG3v8utY6v/GNGHtKP5zPHzu2RRKXeO3ZOgUXRBC4BM+ILbi7kXqq6qjFU9s29BPy/pC9ELHtbtq7x07T2UFIc1Bnnke2MdNhYZqR0vkUGKBPfKhYs9GJo1boIOI/KO2x8HDJBV/knTLaQuKhEeFspJWAL9bCZ1IGa10sWIUAA6CIyqNQljq9VUMPvStHWFwPyOS8HIzQX6TjfHsX9bbOyJsWTfefGB07sun8oVAbjJ3zoSAB6aeUPgZVdjv6DWX2WGqp2mpwgYMxfyrBFrcyguALnpEnoQ0RcMFZ9X9yZ4eDtPbc9vNiFUQedpfZ0BDZ+NlNMTF2Dg+cZ74KD0g/23x5yE+FUo9sI8rn+Pm962D22haPen3QIGUHCZM9jQpaZT3IBVB99QCdi5r9LxoAKLUcSQI1Gr0IDO31LdDr2EAUC72OR5GRSSXdE8hFECIi78d/JVNr5G1ltPd9HBFL6Bm7Am8v4WXvQPQbax/BIXLMbMn65ZBOf1V5kcl2poKyqsleFAo9CkEU9qGLAr7bbbpYhTcaABpSNekwA5o7o2hJ6L+P0+MrYfoBuCMtbbW9Hp8Hs6q7F8305mjeM5CKmtANZ7+ILmF89mr1znui04SO/f6yR1WGG1LMWajJrKX4+p0+m46MkNb3ffnQWj7IHjKTvUK+5ez/tisVkBFJ5VIujo6U1WHjYMgt6lr/kuVltC8Z6hVWJoVoWMpqcwz2+GZVkoqpvklMT8cfvRefDEpkALo+P1wLycEXBW7gOMsKAVIFcGVIm3G5D8TwUjchg/H7sn5Bw8fBEGkeUdAF26IXetRXzLRwJvVj8G88mQ1EUE0eHslYJwqYKPo+N8bbGMfwrQSDp4y4QLRT2avFYHRyuCVI2vhkj4zYgskOyK5vu4OorKFmQ265owMct4o96ItRXgS0P2Ut5ViCH1k8PXM52+jSVT6SH2HJ/2dwx6NPvNBY0cKdP8umatubzo3/fj0YNwSqPjd66FM4RuZDWtu2xBVe8Y3LGdtO9RlJwTo0NzHDSnxo/8AzJIPObUL7Q9p+597Zpx9284Lz5Ggo14V2YgvE7skrVtRv3mUe+vWO3azLjk3eVkRzJfiJoAtMS70p61CaDsrasbMTHUSHPEueDdCEmrnUZK35ruhBlBj+0sYEGsa+u3KEdi9JT3Jw+HiWRZCRIYTEgpu7AzZKuqr1U5nr2RfqIbaiOm/vv7D5GRXgLydhsD38Ph7eGBNYANgRoP90bAfOPYErkV3zPw21zNrQoNxqx7wh0GAsF9eADy+V6B3JK7ovZlCRlVhLli/j/RYTqL93fI473T0wr2Jh8P5ZlN0jrPIVfJ1tLnZ/EZhJut6hN8di3kOaoTilV+RjlluRnBXtCCRVdWMTN4CyeGsC7nQBYK7SGKoEZ6pdHW2GX+3Cdyp4KEJLWYzRjLEAh9a6Iy+8AkloJlKEP5uHR09uRrfpKULD/KGoWnxaCiD2rfc/gY5V5vO4qFSf81PAV4RUPqDBqfEtQKgJ9DmDSeM+JpBhj93Bkxgw7UGqGEoehfw4Ib1wKpYYABifdww157mEWPqOCOU3cJTNBbCwlbuy7vetryQoX3863YdWc4J5AVviAF8Sz0KcjkkfJJ8X3LjhrmdTXK0W8Ea/Lie03hVVO21pfwI03w92MQPrU1e71Ae+OZhsdkUhaI8E1Fs58fVb8RO4VbOvyo2N8jG3TQymtcSgmOSjvoOZ+AAYEA3zjk6z/X60zd3wqsbLcVanmewXEI3o09AJ4LTvpu8mZ2OEdUVcw+/fhwt1nvEAMdrG4y3RZChIb6xbrK0bjZqL6tIV3lulLzSdqPGyMJJZe74D1N93o1GHQpz1cZN0EzbuzkpUEa6qegmlawE416+8NX6oZpRLWrijO9jIu6GmrjCicD2LiRDqgMepaTQ8py6YcCDTWrpm1AV5Y/WW2S6+aImKOE6OqeGlalL6WJV79PvL8fa91L3aW8EP1kK+ncVqeSAAYawh63mCZuT5T47Wv2Q6ZfXNJ7Zt/AsUYsrAjqs1ZZ9pn0B1j7P0SgtfXzPJZ8fm7jyrXK01lpM9Yhacawp4OalGeD9rLBHm/qT7Y3E0+jMVzsoKWbV+CguE3mRAV94VWB17UQOlveMXtPj1G0FFbpt9IglYaEDvfBkBRWe68OiV5A87BonlyoHOqmbbT8b9SFjHvtmnPUZ89wmKNkzdfX9VbGCNFYDuzy6ihF3USj42QrCZ1HMq1+SrcxRF+hNjtwwOGJYnTeR+SCTwpB66s57PvtkziFRMr5Pd37jtqhGPSnDaVPeSIDmE2QQCK6iJLJt3f0thWlmIQcJCkaas93ARWTP3mxYrsggHN33vltAjVgbfwHSzLvjtGt+aqLdRf9ZOkQKNT7VzbS8qM7qcruEZPquEmaNR288v2Pkm9KeXS9UG3fCrnBjTvaNDQ50VxNb53EWcvhdfVOvCMtAQMzitE5qRtI0hK8VASgEsOEdOpiVtJ+4Bkigbs6COz9vgqsgNUsdGgH4J3InsWAVYdw/k+creTq7vSVFNOE5iKBLec5Rt8kyL8m6H6B+yBzg9tHHvMMRAc/HquihSYeQGpq9T9TL3trQONoK1SrDOQNnNpHGfDH5jU8rseC3WZ73Orv1Q/8Z1fKcRdknLCKXvyr85hVx/JEPJRWUm2GT5frrnLbOWWSowtGouhJeB8G2DGoF42VQ0hBCpAPLDm7s4DvbmBa+oJhMZOl4MjKVH5/fktPgKzSg0x7ycYlBdAobjDSjSyBxvsXYMnbDjZ813y4vmZtHbwvmHfHjD1TaTOWR2Noez3lizm9+Ps1msRgWBR0s/cXSj4SZIvv2V/Mj9SN2MqYxNaiTAs3MVmKB8Ky163ValzYWbsxz0oiSYpbe0Em5gRuQUEwUVsZxvcfG5goUejIG0OFFmnvyw/1TqskAD6hi4r8lu/bSvTUFaRJxIgIEsnzPy7YrnHbNwD4RU9PjQBZgvas48K1HJZwgOLp2zkb3xaGvd2BgdSBO/suF2I3oirD5qnp+qvlMXMJIGYyK+wLkasMB+eHr1mn41JCg3lymLSUJP5/mCMIyYU63W+J3zuPfj1fmcsM6iGo/JNMIo4UuihkTRHNwAyI4CaTQMZ8pmPouCIlsTuzmIShFdxPQOM9mVL5sDOk0tymswN1QfMm11YQ/FwlHtdnVFpIb+3mJ" }, + { 7377, "AQIDCAkKCyYnJCUXFBUWG///Gv//////////////////////////BAUGBwwNDg8QERIT/xgZ/x8cHR7//////////////////////////wABAgM9Pj88/////xsYGRojICEi/////wgJCgsQERIT/////yckJSb/////DA0ODzo7ODkfHB0e/////wQFBgdBQkNAFBUWF/////8rKCkqFRYXFP////8SExARCwgJCg8MDQ4ZGhsYHR4fHBITEBH//////////wAAAAAAAAAAcIIs7LMnwOXkhVc16gyuQSPva5NFGaUh7Q5PTh1lkr2GuK+PfOsfzj4w3F9exQsapuE5ytVHXT3ZAVrWUVZsTYsNmmb7zLAtdBIrIPCxhJnfTMvCNH52BW23qTHRFwTXFFg6Yd4bERwyD5wWUxjyIv5Ez7LDtXqRJAjoqGD8aVCq0KB9oYlil1RbHpXg/2TSEMQASKP3dduKA+baCT/dlIdcgwLNSpAzc2f2851/v+JSm9gmyDfGO4GWb0sTvmMu6XmnjJ9uvI4p9fm2L/20WXiYBmrnRnG61CWrQoiijfpyB7lV+O6sCjZJKmg8OPGkQCjTe7vJQ8EV4630d8eAnuAFWNlnToHLyQuuatUYXYJG39YnijJLQtscnpw6yiV7DXFfH/jXPp18YLm+vIsWNE3DcpWrjrp6swK0raKs2JoXGjXM95lhWugkVkDhYwkzv5iXhWj87Arab1Nioy4IryiwdMK9NiI4ZB45LKYw5UT9iJ9lh2v0I0gQ0VHA+dKgVaFB+kMTxC+otjwrwf/IpSCJAJBH7+q3FQbNtRJ+uykPuAcEm5QhZubO7ec7/n/FpDexTJFujXYDLd6WJn3GXNPyTxk/3HkdUuvzbV77abLwMQzUz4zidalKV4QRRRv15A5zqvHdWRRsklTQeHDjSYBQp/Z3k4aDKsdb6e6PAT04QRZ22ZNg8nLCq5p1Blegkfe1yaKM0pD2B6cnjrJJ3kNc18c+9Y9nHxhury/ihQ1T8Jxl6qOunuyALWuoKzamxYZNM/1mWJY6CZUQeNhCzO8m5WEaPzuCttvUmOiLAusKLB2wb42IDhmHTgupDHkRfyLnWeHaPcgSBHRUMH60KFVoUL7QxDHLKq0PynD/MmkIYgAk0fu67UWBc22En+5Kwy7BAeYlSJm5s3v5zr/fcSnNbBNkm2OdwEu3pYlfsRf0vNNGzzdeR5T6/FuX/lqsPEwDNfMjuF1qktUhRFHGfTmD3Kp8d1YFG6QVNB4c+FIgFOm93eSh4Irx1nq740BPcCyzwORX6q4ja0Wl7U8dkoavfB8+3F4LpjnVXdlaUWyLmvuwdCvwhN/LNHZtqdEEFDreETKcU/L+z8N6JOhgaaqgoWJUHuBkEACjdYrmCd2Hg82Qc/adv1LYyMaBbxNj6aefvCn5L7R4Budx1KuIjXK5+Kw2KjzxQNO7QxWtd4CC7CflhTUMQe+TGSEOTmW9uI/rzjBfxRrhykc9AdZWTQ1mzC0SILGZTMJ+BbcxF9dYYRscDxYYIkSytZEIqPxQ0H2Jl1uV/9LESPfbA9o/lFwCSjNn83/imyY3O5ZLvi55jG6O9bb9WZhqRrolQqL6B1XuCkloOKQoe8nB4/THngIAAAABAAAAgAAAAKkp" }, + { 8632, "EAAAAKwpAAADAAAAAQAAAMAAAACpKQ==" }, + { 8664, "EAAAAKwpAAAEAAAAAQAAAAABAACpKQ==" }, + { 8696, "EAAAAKwpAAAFAAAAAgAAAIAAAACpKQAAEAAAAAAAAAAQAAAArCkAAAYAAAACAAAAwAAAAKkpAAAQAAAAAAAAABAAAACsKQAABwAAAAIAAAAAAQAAqSkAABAAAAAAAAAAEAAAAKwpAAAIAAAAAwAAAIAAAACpKQAAEAAAAAAAAAAQAAAArCkAAAkAAAADAAAAwAAAAKkpAAAQAAAAAAAAABAAAACsKQAACgAAAAMAAAAAAQAAqSkAABAAAAAAAAAAEAAAAKwpAAALAAAABQAAAIAAAACpKQAAEAAAAAAAAAAQAAAArCkAAAwAAAAFAAAAwAAAAKkpAAAQAAAAAAAAABAAAACsKQAADQAAAAUAAAAAAQAAqSkAABAAAAAAAAAAEAAAAKwpAAAOAAAABgAAAIAAAACpKQAADAAAAAEAAAAQAAAA1CkAAA8AAAAGAAAAwAAAAKkpAAAMAAAAAQAAABAAAADUKQAAEAAAAAYAAAAAAQAAqSkAAAwAAAABAAAAEAAAANQpAAArAAAACAAAAIAAAACpKQAADAAAAAEAAAAQAAAA/CkAACwAAAAIAAAAwAAAAKkpAAAMAAAAAQAAABAAAAD8KQAALQAAAAgAAAAAAQAAqSkAAAwAAAABAAAAEAAAAPwpAAAqAAAABwAAAIAAAACpKQ==" }, + { 9208, "AQAAACQqAAAmAAAAAQAAAIAAAACpKQAACAAAAAIAAAAIAAAATCoAACcAAAACAAAAgAAAAKkpAAAIAAAAAgAAAAgAAABMKgAAKAAAAAMAAACAAAAAqSkAAAgAAAACAAAACAAAAEwqAAApAAAABQAAAIAAAACpKQAACAAAAAIAAAAIAAAATCoAABEAAAABAAAAgAAAAKkpAAAQAAAAAAAAABAAAAB0KgAAEgAAAAEAAADAAAAAqSkAABAAAAAAAAAAEAAAAHQqAAATAAAAAQAAAAABAACpKQAAEAAAAAAAAAAQAAAAdCoAABQAAAACAAAAgAAAAKkpAAAQAAAAAAAAABAAAAB0KgAAFQAAAAIAAADAAAAAqSkAABAAAAAAAAAAEAAAAHQqAAAWAAAAAgAAAAABAACpKQAAEAAAAAAAAAAQAAAAdCoAABcAAAADAAAAgAAAAKkpAAAQAAAAAAAAABAAAAB0KgAAGAAAAAMAAADAAAAAqSkAABAAAAAAAAAAEAAAAHQqAAAZAAAAAwAAAAABAACpKQAAEAAAAAAAAAAQAAAAdCoAABoAAAAFAAAAgAAAAKkpAAAQAAAAAAAAABAAAAB0KgAAGwAAAAUAAADAAAAAqSkAABAAAAAAAAAAEAAAAHQqAAAcAAAABQAAAAABAACpKQAAEAAAAAAAAAAQAAAAdCoAAB0AAAAGAAAAgAAAAKkpAAAMAAAAAQAAABAAAACcKgAAHgAAAAYAAADAAAAAqSkAAAwAAAABAAAAEAAAAJwqAAAfAAAABgAAAAABAACpKQAADAAAAAEAAAAQAAAAnCoAAC4AAAAIAAAAgAAAAKkpAAAMAAAAAQAAABAAAADEKgAALwAAAAgAAADAAAAAqSkAAAwAAAABAAAAEAAAAMQqAAAwAAAACAAAAAABAACpKQAADAAAAAEAAAAQAAAAxCoAACAAAAABAAAAQAAAAKkpAAAIAAAAAAAAAAgAAADsKgAAIgAAAAEAAACAAAAAqSkAAAgAAAAAAAAACAAAABQrAAAkAAAAAQAAAMAAAACpKQAACAAAAAAAAAAIAAAAPCsAACEAAAACAAAAQAAAAKkpAAAIAAAAAAAAAAgAAADsKgAAIwAAAAIAAACAAAAAqSkAAAgAAAAAAAAACAAAABQrAAAlAAAAAgAAAMAAAACpKQAACAAAAAAAAAAIAAAAPCsAAAIAAACgIQAAAwAAAMAhAAAEAAAA4CEAAAUAAAAAIgAABgAAACAiAAAHAAAAQCIAAAgAAABgIgAACQAAAIAiAAAKAAAAoCIAAAsAAADAIgAADAAAAOAiAAANAAAAACMAAA4AAAAgIwAADwAAAEAjAAAQAAAAYCMAACsAAACAIwAALAAAAKAjAAAtAAAAwCMAACoAAADgIwAAJgAAAAAkAAAnAAAAICQAACgAAABAJAAAKQAAAGAkAAARAAAAgCQAABIAAACgJAAAEwAAAMAkAAAUAAAA4CQAABUAAAAAJQAAFgAAACAlAAAXAAAAQCUAABgAAABgJQAAGQAAAIAlAAAaAAAAoCUAABsAAADAJQAAHAAAAOAlAAAdAAAAACYAAB4AAAAgJgAAHwAAAEAmAAAuAAAAYCYAAC8AAACAJgAAMAAAAKAmAAAgAAAAwCYAACIAAADgJgAAJAAAAAAnAAAhAAAAICcAACMAAABAJwAAJQAAAGAn" }, + { 10496, "JTAyeAAtKyAgIDBYMHgALTBYKzBYIDBYLTB4KzB4IDB4AF8weCV4AG91dGVySGVpZ2h0AGlubmVySGVpZ2h0AG5hdmlnYXRvcgBmdW5jdGlvbgBsb2NhdGlvbgBuYW4AcHJvdG9jb2wAc2V0SW50ZXJ2YWwAaW5mAGNocm9tZQBob3N0bmFtZQAlZABjZGMATkFOAElORgBodHRwczoALgAsAChudWxsKQAAAAIAAAABAAAAAgAAAAMAAAAEAAAAAAAAAAUAAAAGAAAABwAAAAgAAAAC" }, + { 10732, "CQAAAAkAAAAKAAAACwAAAAI=" }, + { 10772, "DAAAAAwAAAANAAAADgAAAAc=" }, + { 10808, "DwAAABAAAAAQAAAAEQAAABIAAAAGAAAAEwAAABQAAAAVAAAAFgAAAAAAAAAXAAAAFwAAABgAAAAZAAAABQAAABoAAAAbAAAAHAAAAB0AAAAAAAAAHgAAAB8AAAAgAAAAIQAAAAU=" }, + { 10932, "IgAAACIAAAAKAAAACwAAAAU=" }, + { 10972, "IwAAACMAAAANAAAADgAAAAMAAAAkAAAAJQ==" }, + { 11012, "JgAAACcAAAAoAAAAKQAAAAMAAAAqAAAAKw==" }, + { 11052, "LAAAAC0AAAAuAAAALwAAAAQAAAAqAAAAKw==" }, + { 11092, "MAAAADEAAAAuAAAALw==" }, + { 11128, "IBwAAAAAAABAOAAAAAAAAGAkAAAAAAAAgHAAAAAAAACgbAAAAAAAAMBIAAAAAAAA4FQAAAAAAAAA4QAAAAAAACD9AAAAAAAAQNkAAAAAAABgxQAAAAAAAICRAAAAAAAAoI0AAAAAAADAqQAAAAAAAOC1AAAAAAAAmC+KQpFEN3HP+8C1pdu16VvCVjnxEfFZpII/ktVeHKuYqgfYAVuDEr6FMSTDfQxVdF2+cv6x3oCnBtybdPGbwcFpm+SGR77vxp3BD8yhDCRvLOktqoR0StypsFzaiPl2UlE+mG3GMajIJwOwx39Zv/ML4MZHkafVUWPKBmcpKRSFCrcnOCEbLvxtLE0TDThTVHMKZbsKanYuycKBhSxykqHov6JLZhqocItLwqNRbMcZ6JLRJAaZ1oU1DvRwoGoQFsGkGQhsNx5Md0gntbywNLMMHDlKqthOT8qcW/NvLmjugo90b2OleBR4yIQIAseM+v++kOtsUKT3o/m+8nhxxikuQ8mi2HwBPTZUoezwBhNipwXzwMdzjJiTK9m8TILKHptXPP3U4BZnQm8YihflEr5OxNbant5JoPv1jrsv7nqpaHmRFbIHP5TCEIkLIl8hgH9dmlqQMic1Psznv/eXA/8ZMLNIpbXR116SKqxWqsZPuDjSlqR9tnb8a+KcdATxRZ1wWWRxhyCGW89l5i2oAhtgJa2usLn2HEZhaTRAfg9VR6Mj3VGvOsNc+c66xeomLFMNboUohAnT3830QYFNUmrcN8hswav6JOF7CAy9sUp4iJWL42PobenL1f47AB058u+3DmZY0OSmd3L463VLCjFEULSP7R8a25mNM58RgxSA" }, + { 11824, "EQAKABEREQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAARAA8KERERAwoHAAEACQsLAAAJBgsAAAsABhEAAAARERE=" }, + { 11905, "CwAAAAAAAAAAEQAKChEREQAKAAACAAkLAAAACQALAAAL" }, + { 11963, "DA==" }, + { 11975, "DAAAAAAMAAAAAAkMAAAAAAAMAAAM" }, + { 12021, "Dg==" }, + { 12033, "DQAAAAQNAAAAAAkOAAAAAAAOAAAO" }, + { 12079, "EA==" }, + { 12091, "DwAAAAAPAAAAAAkQAAAAAAAQAAAQAAASAAAAEhIS" }, + { 12146, "EgAAABISEgAAAAAAAAk=" }, + { 12195, "Cw==" }, + { 12207, "CgAAAAAKAAAAAAkLAAAAAAALAAAL" }, + { 12253, "DA==" }, + { 12265, "DAAAAAAMAAAAAAkMAAAAAAAMAAAMAAAwMTIzNDU2Nzg5QUJDREVG" }, + { 12340, "Ng==" }, + { 12379, "//////8=" }, + { 12448, "MDEyMzQ1Njc4OWFjZGVmZ2hpamtucHFyc3R1dnd4eXpBQkNFRkdISktMTU5QUlNUVVZXWFla" }, + { 12516, "A4Nr8vdwO+H081ATH5eaxxwU8TXo56Em62TK1M9Y2YrM27J4OCjiazuriZnQz0NN00wovye/eKwkPBNeb8deEGxENeKYt2XxmzQOA3BQxNdz068lhyD/NoSjlMSgn4eaoxzsaFfvvHtUbNeJvwgdXbyLdq9IeCa8S/tNTt6OvSDdDdbSKf6GwSp97TPBGSfnwppMFTZpHAY16nf0EdZkqhJVD1jmpl9L5SU0uQ5B/m0NwpWf+THFjPqyrn6xSeMwssqIwkY52NFFurMjrt55961dEgVZrkIWWi0p5H4ROrp9klFIiWEBW4riaqlhhqB9YgXLj5b2m5yVdfBuvB17Qb+eELNLbUCgSO4rUqOK4YagCYp0VPraZ1d5sZVzRaLLcMbJOYQ1mSqHtvLYbNI4DG9RU/6bogPtmCFoH9PaJVHQWU6jJKoesCcpdULMTb+Wz87UZDs9hHc4vu+FHIL82x8Blynr8sc66HGsyAMVZhwAlg3u9GVd/ffmNg9ik8ZhYRCtk5Xj/YCWYJZyfQRcpn6HN1SKdGdHifcMta3LH+uuSHQZWrskClk4T/iyXIUssd/u3kUsvs1Gr9U/DVSYcQ7X84P6JKOQ+afIYhLDArYRQGlE5bM5V+YwUqXCDEH7wY8qCTV8eho2/xHo3ZvbPN4YsM4q6+DdKWiLL3g79oJ7uJ1wj0vNY4zIppFnrGxFZC8Ht5DcV6STXzxWt2MvCLTgRPpAExTpQ5B/G6j0tc+rd949X4SOLlwH5dwX/KiSFH/DYOCMk3PjD/iBCGsyVQvoWaf/Gwm0/JhiRtikcRjbJxrqL9RK+SxXIQvHM+vfxLCALTBD0D4zwLvMprVLoqU2IFBRxXBDUkYbsbki0WW6obqXTlLqhE3RgXZp7ZIoam752p6dqcmdHsI7dnoI73X5Yx2BCjMOgolY/MlyFbLK8X5APgIuUz2BRaHW5Y911WbkhyGVtJQiFt9mBirMOAWpp8rxWvfZ8tmcKxm9Vv8aPj0N7s1tHu1OBuzEJo3Dx6XmMTNWtiIw1d3Q27EXBNgyfPYswSzlL0JHFwt+VEkI/T+7/A5vqP+NBFoU6c6OF2qlfOOZ9W/gGp6dq+HT06hiuCFckegyXxKDwLR2SRS39SLmQwZy9UCFGQdkuQpZZzphq5PJMbiQSlpKey6Qnnit+2yMXqt/j93AjRqoMOMZK1sR7dgLAu5bYPAFP6okBrzB1vJPkcXxzPo31fDpadZzgpsigNKIIQO5espnc67J5BhcPRdITz6UI711b27zduwFAYIfVRKBnD7gavj0NGl7n8adiM/VngukJ7o3t3m5tNyLTUeMmE7E52qloC2+piNGTFLQFl9RU32tOAAAADkAAAA6AAAAWpWvv/d2f3+eJJdQhSN53bNijAzUaj1knBNuDvRNumXybgbWgAuHVAeNMEVoPZ/+6S6CjMiIJLO7py3BKxJ7XA==" }, + { 13612, "cH1Q" }, + { 13788, "GH0=" }, +} + +local exports = {} +exports.g = function() + +I32[8015] = tobit(32011) +end +exports.h = function(v_A, v_r) +local v_e = 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = 0 +if not (I32[8014] ~= 0) then +v_e = F.fm(12) +I32[8014] = tobit(v_e) +I32[arshift(v_e, 2)] = tobit(64) +I32[arshift((v_e + 4), 2)] = tobit(0) +I32[arshift((v_e + 8), 2)] = tobit(F.fOA(64, 16)) +end +v_e = I32[8012] +if (v_e ~= 0) then +F.fL(v_e) +end +I32[8013] = tobit(v_r) +v_e = F.fm(tobit((v_r + 1))) +I32[8012] = tobit(v_e) +F.fPA(tobit((v_r + v_e)), 0, (((-1) ~= bor(0, v_r)) and 1 or 0)) +F.fTA(v_e, v_A, v_r) +do return 0 end +end +exports.i = function(v_A, v_r, v_e) +local v_n, v_t, v_o, v_f = 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_o = 0 +v_f = 0 +v_n = tobit((B - 16)) +B = v_n +v_o = I32[8014] +if not (v_o ~= 0) then +v_o = F.fm(12) +I32[8014] = tobit(v_o) +I32[arshift(v_o, 2)] = tobit(64) +I32[arshift((v_o + 4), 2)] = tobit(0) +I32[arshift((v_o + 8), 2)] = tobit(F.fOA(64, 16)) +end +v_t = F.fm(12) +v_f = F.fm(11) +I32[arshift(v_t, 2)] = tobit(v_f) +v_e = F.fsA(v_f, v_e) +v_f = F.fm(v_r) +I32[arshift((v_t + 4), 2)] = tobit(v_f) +F.fTA(v_f, v_A, v_r) +I32[arshift((v_t + 8), 2)] = tobit(v_r) +do +do +while true do +do +if (not (F.fG(v_o, v_e, 10, tobit((v_n + 12))) ~= 0)) then +if (not (F.ftA(v_o) ~= 0)) then +goto C380 +end +goto L379 +end +goto B380 +end +::C380:: +end +end +::B380:: +v_A = 0 +v_r = tobit((I32[arshift((v_o + 8), 2)] + lshift(I32[arshift((v_n + 12), 2)], 4))) +v_f = I32[arshift((v_r + 8), 2)] +if (1 == bor(0, v_f)) then +v_A = I32[arshift((v_r + 12), 2)] +end +I32[arshift((v_r + 4), 2)] = tobit(10) +I32[arshift(v_r, 2)] = tobit(v_e) +I32[arshift((v_r + 12), 2)] = tobit(v_t) +if not (v_f ~= 0) then +I32[arshift((v_r + 8), 2)] = tobit(1) +I32[arshift((v_o + 4), 2)] = tobit((I32[arshift((v_o + 4), 2)] + 1)) +end +if (v_A ~= 0) then +F.fL(I32[arshift(v_A, 2)]) +F.fL(I32[arshift((v_A + 4), 2)]) +F.fL(v_A) +end +end +::L379:: +B = tobit((v_n + 16)) +end +exports.j = function(v_A, v_r, v_e, v_n) + +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = tobit(v_e) +v_n = tobit(v_n) +YA[bor(0, imul(bxor(32096, I32[8024]), bor(0, YA[bxor(32092, I32[8023])]())))](v_A, v_r, v_e, v_n) +end +exports.k = function(v_A, v_r) +local v_e, v_n, v_t, v_o, v_a, v_u, v_c = 0, 0, 0, 0, 0, 0, 0 +v_r = tobit(v_r) +v_n = 0 +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +do +v_e = tobit((B - 304)) +B = v_e +v_A = tobit(v_A) +if (not (bor(((not (v_A ~= 0)) and 1 or 0), ((not (U8[bor(0, v_A)] ~= 0)) and 1 or 0)) ~= 0)) then +do +do +v_a = v_A +v_u = v_r +v_c = tobit((v_e + 288)) +if (v_r ~= 0) then +do +do +do +v_t = (-1) +while true do +do +v_t = bxor(U8[tobit((v_A + v_n))], v_t) +v_o = tobit((rshift(v_t, 1) % 4294967296)) +local t436 = band((0 - band(1, v_o)), (-306674912)) +v_t = tobit((rshift(bxor(v_o, band((0 - band(1, v_t)), (-306674912))), 1) % 4294967296)) +v_o = tobit((rshift(bxor(t436, v_t), 1) % 4294967296)) +local t437 = band((0 - band(1, v_o)), (-306674912)) +v_t = tobit((rshift(bxor(v_o, band((0 - band(1, v_t)), (-306674912))), 1) % 4294967296)) +v_o = tobit((rshift(bxor(t437, v_t), 1) % 4294967296)) +local t438 = band((0 - band(1, v_o)), (-306674912)) +v_t = tobit((rshift(bxor(v_o, band((0 - band(1, v_t)), (-306674912))), 1) % 4294967296)) +v_o = tobit((rshift(bxor(t438, v_t), 1) % 4294967296)) +v_t = bxor(band((0 - band(1, v_o)), (-306674912)), (rshift(bxor(v_o, band((0 - band(1, v_t)), (-306674912))), 1) % 4294967296)) +v_n = tobit((v_n + 1)) +if not (bor(0, v_n) ~= bor(0, v_r)) then goto B381 end +end +do +end +::C381:: +end +end +::B381:: +end +v_A = bxor((-1), v_t) +end +else +v_A = 0 +end +end +YA[I32[arshift((13536 + lshift(fmod((tobit(v_A) % 4294967296), 3), 2)), 2)]](v_a, v_u, v_c) +v_A = I32[arshift((13536 + lshift(fmod((tobit((rshift(v_A, 8) % 4294967296)) % 4294967296), 3), 2)), 2)] +YA[bor(0, v_A)](tobit((v_e + 288)), 16, tobit((v_e + 272))) +YA[bor(0, v_A)](tobit((v_e + 272)), 16, tobit((v_e + 256))) +v_n = F.fOA(33, 1) +I32[arshift((v_e + 240), 2)] = tobit(U8[tobit((v_e + 256))]) +F.fgA(v_n, 10496, tobit((v_e + 240))) +I32[arshift((v_e + 224), 2)] = tobit(U8[tobit((v_e + 257))]) +F.fgA(tobit((v_n + 2)), 10496, tobit((v_e + 224))) +I32[arshift((v_e + 208), 2)] = tobit(U8[tobit((v_e + 258))]) +F.fgA(tobit((v_n + 4)), 10496, tobit((v_e + 208))) +I32[arshift((v_e + 192), 2)] = tobit(U8[tobit((v_e + 259))]) +F.fgA(tobit((v_n + 6)), 10496, tobit((v_e + 192))) +I32[arshift((v_e + 176), 2)] = tobit(U8[tobit((v_e + 260))]) +F.fgA(tobit((v_n + 8)), 10496, tobit((v_e + 176))) +I32[arshift((v_e + 160), 2)] = tobit(U8[tobit((v_e + 261))]) +F.fgA(tobit((v_n + 10)), 10496, tobit((v_e + 160))) +I32[arshift((v_e + 144), 2)] = tobit(U8[tobit((v_e + 262))]) +F.fgA(tobit((v_n + 12)), 10496, tobit((v_e + 144))) +I32[arshift((v_e + 128), 2)] = tobit(U8[tobit((v_e + 263))]) +F.fgA(tobit((v_n + 14)), 10496, tobit((v_e + 128))) +I32[arshift((v_e + 112), 2)] = tobit(U8[tobit((v_e + 264))]) +F.fgA(tobit((v_n + 16)), 10496, tobit((v_e + 112))) +I32[arshift((v_e + 96), 2)] = tobit(U8[tobit((v_e + 265))]) +F.fgA(tobit((v_n + 18)), 10496, tobit((v_e + 96))) +I32[arshift((v_e + 80), 2)] = tobit(U8[tobit((v_e + 266))]) +F.fgA(tobit((v_n + 20)), 10496, tobit((v_e + 80))) +I32[arshift((v_e + 64), 2)] = tobit(U8[tobit((v_e + 267))]) +F.fgA(tobit((v_n + 22)), 10496, tobit((v_e - (-64)))) +I32[arshift((v_e + 48), 2)] = tobit(U8[tobit((v_e + 268))]) +F.fgA(tobit((v_n + 24)), 10496, tobit((v_e + 48))) +I32[arshift((v_e + 32), 2)] = tobit(U8[tobit((v_e + 269))]) +F.fgA(tobit((v_n + 26)), 10496, tobit((v_e + 32))) +I32[arshift((v_e + 16), 2)] = tobit(U8[tobit((v_e + 270))]) +F.fgA(tobit((v_n + 28)), 10496, tobit((v_e + 16))) +I32[arshift(v_e, 2)] = tobit(U8[tobit((v_e + 271))]) +F.fgA(tobit((v_n + 30)), 10496, v_e) +end +end +end +B = tobit((v_e + 304)) +do return bor(0, v_n) end +end +exports.l = function(v_A, v_r) +local v_e, v_t, v_o, v_a, v_u, v_c, v_s, v_l, v_b, v_v, v_g, v_p, v_d, v_h, v_k = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_t = 0 +v_o = 0 +v_a = 0 +v_u = 0 +v_c = 0 +v_s = 0 +v_l = 0 +v_b = 0 +v_v = 0 +v_g = 0 +v_p = 0 +v_d = 0 +v_h = 0 +v_k = 0 +v_r = F.fOA(64, 1) +v_e = v_r +v_b = tobit((B - 16)) +B = v_b +v_c = v_A +do +v_s = U8[bor(0, v_A)] +if (v_s ~= 0) then +do +do +while true do +do +if (not (F.fRA(arshift(lshift(v_s, 24), 24)) ~= 0)) then +goto L383 +end +v_s = U8[tobit((v_c + 1))] +v_A = tobit((v_c + 1)) +v_c = v_A +if (not (v_s ~= 0)) then +goto B384 +end +end +::C384:: +end +end +::B384:: +v_c = v_A +goto L382 +end +::L383:: +v_A = U8[bor(0, v_c)] +do +local sw385 = tobit((v_A - 43)) +if sw385 == 0 then goto K385_0 +elseif sw385 == 2 then goto K385_1 +else goto K385_2 end +::K385_0:: +do +end +::K385_1:: +do +goto S385 +end +::K385_2:: +do +goto L382 +end +end +::S385:: +v_d = ((45 == bor(0, v_A)) and (-1) or 0) +v_c = tobit((v_c + 1)) +end +end +::L382:: +do +do +v_A = 0 +while true do +do +do +do +do +do +v_t = I8[bor(0, v_c)] +v_s = tobit((v_t - 48)) +if (not ((tobit(band(255, v_s)) % 4294967296) <= 9)) then +if ((tobit(band((v_t - 97), 255)) % 4294967296) <= 25) then +v_s = tobit((v_t - 87)) +else +if ((tobit(band((v_t - 65), 255)) % 4294967296) > 25) then +goto L387 +end +v_s = tobit((v_t - 55)) +end +end +do +if (not (bor(0, v_s) >= 10)) then +do +do +v_t = 0 +v_v = v_t +v_t = F.fCA(v_o, v_t, 0, 0) +v_l = Iv +v_k = F.fCA(v_u, 0, 10, 0) +v_g = tobit((0 + v_t)) +v_t = v_l +v_l = v_g +v_g = (((tobit(v_g) % 4294967296) < 0) and tobit((v_t + 1)) or v_t) +v_a = Iv +v_t = v_a +v_v = tobit((F.fCA(v_o, v_v, 10, 0) + v_t)) +v_a = Iv +v_a = (((tobit(v_t) % 4294967296) > (tobit(v_v) % 4294967296)) and tobit((v_a + 1)) or v_a) +v_t = v_g +v_p = v_l +v_l = v_a +v_a = tobit((v_p + v_a)) +I32[arshift((v_b + 8), 2)] = tobit(v_a) +I32[arshift((v_b + 12), 2)] = tobit((((tobit(v_a) % 4294967296) < (tobit(v_l) % 4294967296)) and tobit((v_t + 1)) or v_t)) +I32[arshift(v_b, 2)] = tobit(v_k) +I32[arshift((v_b + 4), 2)] = tobit(v_v) +v_t = 1 +if not (bor(I32[arshift((v_b + 8), 2)], I32[arshift((v_b + 12), 2)]) ~= 0) then +v_v = F.fCA(v_u, v_o, 10, 0) +v_l = v_s +v_a = Iv +local t440 = bor(0, v_a) +local t439 = (-1) +v_p = arshift(v_s, 31) +v_g = bxor(t439, v_p) +if not (bor(band(((t440 == bor(0, v_g)) and 1 or 0), (((tobit(v_v) % 4294967296) > (tobit(bxor((-1), v_s)) % 4294967296)) and 1 or 0)), (((tobit(v_g) % 4294967296) < (tobit(v_a) % 4294967296)) and 1 or 0)) ~= 0) then +v_t = tobit((v_a + v_p)) +v_o = tobit((v_l + v_v)) +v_u = v_o +v_t = (((tobit(v_o) % 4294967296) < (tobit(v_l) % 4294967296)) and tobit((v_t + 1)) or v_t) +v_o = v_t +v_t = v_A +end +end +v_c = tobit((v_c + 1)) +v_A = v_t +end +goto C386 +end +end +end +end +end +::L387:: +end +goto B386 +end +end +::C386:: +end +end +::B386:: +end +do +do +do +do +if (v_A ~= 0) then +I32[5680] = tobit(68) +v_d = 0 +v_u = (-1) +v_o = (-1) +else +if (bor((((-1) ~= bor(0, v_u)) and 1 or 0), (((-1) ~= bor(0, v_o)) and 1 or 0)) ~= 0) then +goto L389 +end +end +if (not (bor(1, v_d) ~= 0)) then +I32[5680] = tobit(68) +v_u = (-2) +v_o = (-1) +goto L388 +end +end +::L389:: +do +v_A = v_d +v_t = bxor(v_A, v_u) +v_u = tobit((v_t - v_A)) +v_l = v_o +local t441 = v_l +v_o = arshift(v_A, 31) +v_o = tobit((bxor(t441, v_o) - tobit(((((tobit(v_A) % 4294967296) > (tobit(v_t) % 4294967296)) and 1 or 0) + v_o)))) +end +end +end +::L388:: +end +B = tobit((v_b + 16)) +do +do +do +if (bor(v_o, v_u) ~= 0) then +do +do +while true do +v_A = v_h +v_t = F.fS_(v_u, v_o, 54) +v_c = Iv +I8[tobit((v_e + v_A))] = tobit(U8[tobit((12448 + tobit((v_u - F.fCA(v_t, v_c, 54, 0)))))]) +v_h = tobit((v_A + 1)) +v_b = bor(band(((not (v_o ~= 0)) and 1 or 0), (((tobit(v_u) % 4294967296) > 53) and 1 or 0)), ((0 ~= bor(0, v_o)) and 1 or 0)) +v_u = v_t +v_o = v_c +if not (v_b ~= 0) then goto B391 end +do +end +::C391:: +end +end +::B391:: +v_t = 0 +I8[tobit((v_e + v_h))] = tobit(0) +if (not (v_A ~= 0)) then +goto L390 +end +do +do +while true do +do +v_o = tobit((v_t + v_e)) +v_u = U8[bor(0, v_o)] +v_l = v_o +v_o = tobit((v_A + v_e)) +I8[bor(0, v_l)] = tobit(U8[bor(0, v_o)]) +I8[bor(0, v_o)] = tobit(v_u) +v_A = tobit((v_A - 1)) +local t442 = (tobit(v_A) % 4294967296) +v_t = tobit((v_t + 1)) +if not (t442 > (tobit(v_t) % 4294967296)) then goto B392 end +end +do +end +::C392:: +end +end +::B392:: +end +end +else +I8[bor(0, v_e)] = tobit(97) +I8[tobit((v_e + 1))] = tobit(0) +end +end +end +::L390:: +end +do return bor(0, v_r) end +end +exports.m = function(v_A, v_r) +local v_e = 0 +v_A = tobit(v_A) +v_r = tobit(v_r) +v_e = 0 +v_A = tobit((B - 16)) +B = v_A +I8[tobit((v_A + 15))] = tobit(0) +imp_b(22294, tobit((v_A + 15)), 0) +v_r = tobit((B - 672)) +B = v_r +I32[8018] = tobit((bor(0, imp_d(0)) - 1)) +I32[8019] = tobit(0) +v_e = F.fMA() +I32[arshift((v_r + 464), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 464))) +I8[tobit((v_r + 636))] = tobit(0) +I32[arshift((v_r + 632), 2)] = tobit(1768515945) +I32[arshift((v_r + 448), 2)] = tobit(10601) +I32[arshift((v_r + 456), 2)] = tobit(10570) +I32[arshift((v_r + 460), 2)] = tobit(500) +I32[arshift((v_r + 452), 2)] = tobit((v_r + 640)) +imp_b(15204, tobit((v_r + 632)), tobit((v_r + 448))) +I8[tobit((v_r + 628))] = tobit(0) +I32[arshift((v_r + 624), 2)] = tobit(1768515945) +I32[arshift((v_r + 432), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 436), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 444), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 440), 2)] = tobit((v_r + 640)) +imp_b(15372, tobit((v_r + 624)), tobit((v_r + 432))) +v_e = F.fMA() +I32[arshift((v_r + 416), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 416))) +I8[tobit((v_r + 620))] = tobit(0) +I32[arshift((v_r + 616), 2)] = tobit(1768515945) +I32[arshift((v_r + 400), 2)] = tobit(10601) +I32[arshift((v_r + 408), 2)] = tobit(10570) +I32[arshift((v_r + 412), 2)] = tobit(500) +I32[arshift((v_r + 404), 2)] = tobit((v_r + 640)) +imp_b(15913, tobit((v_r + 616)), tobit((v_r + 400))) +I8[tobit((v_r + 612))] = tobit(0) +I32[arshift((v_r + 608), 2)] = tobit(1768515945) +I32[arshift((v_r + 384), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 388), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 396), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 392), 2)] = tobit((v_r + 640)) +imp_b(16081, tobit((v_r + 608)), tobit((v_r + 384))) +v_e = F.fMA() +I32[arshift((v_r + 368), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 368))) +I8[tobit((v_r + 604))] = tobit(0) +I32[arshift((v_r + 600), 2)] = tobit(1768515945) +I32[arshift((v_r + 352), 2)] = tobit(10601) +I32[arshift((v_r + 360), 2)] = tobit(10570) +I32[arshift((v_r + 364), 2)] = tobit(500) +I32[arshift((v_r + 356), 2)] = tobit((v_r + 640)) +imp_b(16622, tobit((v_r + 600)), tobit((v_r + 352))) +I8[tobit((v_r + 596))] = tobit(0) +I32[arshift((v_r + 592), 2)] = tobit(1768515945) +I32[arshift((v_r + 336), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 340), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 348), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 344), 2)] = tobit((v_r + 640)) +imp_b(16790, tobit((v_r + 592)), tobit((v_r + 336))) +v_e = F.fMA() +I32[arshift((v_r + 320), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 320))) +I8[tobit((v_r + 588))] = tobit(0) +I32[arshift((v_r + 584), 2)] = tobit(1768515945) +I32[arshift((v_r + 304), 2)] = tobit(10601) +I32[arshift((v_r + 312), 2)] = tobit(10570) +I32[arshift((v_r + 316), 2)] = tobit(500) +I32[arshift((v_r + 308), 2)] = tobit((v_r + 640)) +imp_b(17331, tobit((v_r + 584)), tobit((v_r + 304))) +I8[tobit((v_r + 580))] = tobit(0) +I32[arshift((v_r + 576), 2)] = tobit(1768515945) +I32[arshift((v_r + 288), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 292), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 300), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 296), 2)] = tobit((v_r + 640)) +imp_b(17499, tobit((v_r + 576)), tobit((v_r + 288))) +v_e = F.fMA() +I32[arshift((v_r + 272), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 272))) +I8[tobit((v_r + 572))] = tobit(0) +I32[arshift((v_r + 568), 2)] = tobit(1768515945) +I32[arshift((v_r + 256), 2)] = tobit(10601) +I32[arshift((v_r + 264), 2)] = tobit(10570) +I32[arshift((v_r + 268), 2)] = tobit(500) +I32[arshift((v_r + 260), 2)] = tobit((v_r + 640)) +imp_b(18040, tobit((v_r + 568)), tobit((v_r + 256))) +I8[tobit((v_r + 564))] = tobit(0) +I32[arshift((v_r + 560), 2)] = tobit(1768515945) +I32[arshift((v_r + 240), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 244), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 252), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 248), 2)] = tobit((v_r + 640)) +imp_b(18208, tobit((v_r + 560)), tobit((v_r + 240))) +v_e = F.fMA() +I32[arshift((v_r + 224), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 224))) +I8[tobit((v_r + 556))] = tobit(0) +I32[arshift((v_r + 552), 2)] = tobit(1768515945) +I32[arshift((v_r + 208), 2)] = tobit(10601) +I32[arshift((v_r + 216), 2)] = tobit(10570) +I32[arshift((v_r + 220), 2)] = tobit(500) +I32[arshift((v_r + 212), 2)] = tobit((v_r + 640)) +imp_b(18749, tobit((v_r + 552)), tobit((v_r + 208))) +I8[tobit((v_r + 548))] = tobit(0) +I32[arshift((v_r + 544), 2)] = tobit(1768515945) +I32[arshift((v_r + 192), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 196), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 204), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 200), 2)] = tobit((v_r + 640)) +imp_b(18917, tobit((v_r + 544)), tobit((v_r + 192))) +v_e = F.fMA() +I32[arshift((v_r + 176), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 176))) +I8[tobit((v_r + 540))] = tobit(0) +I32[arshift((v_r + 536), 2)] = tobit(1768515945) +I32[arshift((v_r + 160), 2)] = tobit(10601) +I32[arshift((v_r + 168), 2)] = tobit(10570) +I32[arshift((v_r + 172), 2)] = tobit(500) +I32[arshift((v_r + 164), 2)] = tobit((v_r + 640)) +imp_b(19458, tobit((v_r + 536)), tobit((v_r + 160))) +I8[tobit((v_r + 532))] = tobit(0) +I32[arshift((v_r + 528), 2)] = tobit(1768515945) +I32[arshift((v_r + 144), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 148), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 156), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 152), 2)] = tobit((v_r + 640)) +imp_b(19626, tobit((v_r + 528)), tobit((v_r + 144))) +v_e = F.fMA() +I32[arshift((v_r + 128), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 128))) +I8[tobit((v_r + 524))] = tobit(0) +I32[arshift((v_r + 520), 2)] = tobit(1768515945) +I32[arshift((v_r + 112), 2)] = tobit(10601) +I32[arshift((v_r + 120), 2)] = tobit(10570) +I32[arshift((v_r + 124), 2)] = tobit(500) +I32[arshift((v_r + 116), 2)] = tobit((v_r + 640)) +imp_b(20167, tobit((v_r + 520)), tobit((v_r + 112))) +I8[tobit((v_r + 516))] = tobit(0) +I32[arshift((v_r + 512), 2)] = tobit(1768515945) +I32[arshift((v_r + 96), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 100), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 108), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 104), 2)] = tobit((v_r + 640)) +imp_b(20335, tobit((v_r + 512)), tobit((v_r + 96))) +v_e = F.fMA() +I32[arshift((v_r + 80), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 80))) +I8[tobit((v_r + 508))] = tobit(0) +I32[arshift((v_r + 504), 2)] = tobit(1768515945) +I32[arshift((v_r + 64), 2)] = tobit(10601) +I32[arshift((v_r + 72), 2)] = tobit(10570) +I32[arshift((v_r + 76), 2)] = tobit(500) +I32[arshift((v_r + 68), 2)] = tobit((v_r + 640)) +imp_b(20876, tobit((v_r + 504)), tobit((v_r - (-64)))) +I8[tobit((v_r + 500))] = tobit(0) +I32[arshift((v_r + 496), 2)] = tobit(1768515945) +I32[arshift((v_r + 48), 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 52), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 60), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 56), 2)] = tobit((v_r + 640)) +imp_b(21044, tobit((v_r + 496)), tobit((v_r + 48))) +v_e = F.fMA() +I32[arshift((v_r + 32), 2)] = tobit(v_e) +F.fgA(tobit((v_r + 640)), 10530, tobit((v_r + 32))) +I8[tobit((v_r + 492))] = tobit(0) +I32[arshift((v_r + 488), 2)] = tobit(1768515945) +I32[arshift((v_r + 16), 2)] = tobit(10601) +I32[arshift((v_r + 24), 2)] = tobit(10570) +I32[arshift((v_r + 28), 2)] = tobit(500) +I32[arshift((v_r + 20), 2)] = tobit((v_r + 640)) +imp_b(21585, tobit((v_r + 488)), tobit((v_r + 16))) +I8[tobit((v_r + 484))] = tobit(0) +I32[arshift((v_r + 480), 2)] = tobit(1768515945) +I32[arshift(v_r, 2)] = tobit(imul(v_e, 27)) +I32[arshift((v_r + 4), 2)] = tobit(imul(v_e, 517)) +I32[arshift((v_r + 12), 2)] = tobit(imul(v_e, 197)) +I32[arshift((v_r + 8), 2)] = tobit((v_r + 640)) +imp_b(21753, tobit((v_r + 480)), bor(0, v_r)) +B = tobit((v_r + 672)) +I32[8023] = tobit(32103) +I32[8024] = tobit(32092) +B = tobit((v_A + 16)) +do return 0 end +end +exports.n = function() + +do return bor(0, B) end +end +exports.o = function(v_A) + +v_A = tobit(v_A) +B = v_A +end +exports.p = function(v_A) + +do +local t443 = B +v_A = tobit(v_A) +v_A = band((t443 - v_A), (-16)) +B = v_A +do return bor(0, v_A) end +end +end +exports.q = F.fm +exports.r = YA +return exports, DATA, function(v) B = v end, function() return B end +end diff --git a/moonsource-qidian.koplugin/moonsource_qidian/l10n/en.lua b/moonsource-qidian.koplugin/moonsource_qidian/l10n/en.lua new file mode 100644 index 0000000..08dcec5 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/l10n/en.lua @@ -0,0 +1,147 @@ +return { + ["起点书友圈响应无效"] = "Invalid Qidian book community response.", + ["书友圈预览(%1/%2)"] = "Book community preview (%1/%2)", + ["书友圈帖子预览"] = "Book community post previews", + ["完结"] = "Completed", + ["起点榜单响应无效"] = "Invalid Qidian ranking response.", + ["排行榜"] = "Rankings", + ["分类书库"] = "Category library", + ["切换账号"] = "Switch account", + ["切换起点账号会清除这台设备上起点的书架、阅读进度、笔记和缓存,包括尚未同步的记录。不会删除远端书架。确定继续?"] = "Switching Qidian accounts clears this device's Qidian shelf, progress, notes and cache, including unsynced records. Your remote shelf will not be deleted. Continue?", + ["刷新验证码"] = "Refresh verification", + ["同意并获取验证码"] = "Agree and send code", + ["子分类"] = "Subcategory", + ["提交"] = "Submit", + ["无法确认旧账号,请先退出旧账号再登录"] = "Cannot identify the previous account. Sign out before signing in again.", + ["本章讨论"] = "Chapter discussion", + ["筛选"] = "Filters", + ["获取验证码前请阅读并同意阅文用户服务协议和隐私政策"] = "Before requesting a code, read and agree to the Yuewen terms of service and privacy policy.", + ["请输入验证码"] = "Enter the verification code.", + ["起点分类响应无效"] = "Invalid Qidian category response.", + ["起点分类条件无效"] = "Invalid Qidian category filters.", + ["起点安全验证"] = "Qidian security verification", + ["起点手机号验证码登录"] = "Qidian SMS sign-in", + ["起点搜索响应无效"] = "Invalid Qidian search response.", + ["起点登录响应无效"] = "Invalid Qidian sign-in response.", + ["起点登录未获取到本站会话"] = "Could not establish a Qidian website session.", + ["起点登录缺少会话兑换凭据"] = "Missing Qidian session exchange credentials.", + ["起点登录跳转地址无效"] = "Invalid Qidian sign-in redirect.", + ["起点登录跳转过多"] = "Too many Qidian sign-in redirects.", + ["起点登录需要未支持的验证"] = "Qidian requires an unsupported verification method.", + ["起点短信会话缺失"] = "Missing Qidian SMS session.", + ["起点账号标识缺失"] = "Missing Qidian account identity.", + ["起点验证码刷新失败"] = "Could not refresh Qidian verification.", + ["起点验证码响应无效"] = "Invalid Qidian verification response.", + ["起点验证码图片无效"] = "Invalid Qidian verification image.", + ["100~200万"] = "1–2 million words", + ["200万以上"] = "Over 2 million words", + ["30~50万"] = "300–500 thousand words", + ["30万以下"] = "Under 300 thousand words", + ["50~100万"] = "500 thousand–1 million words", + ["VIP"] = "VIP", + ["一月内"] = "Within a month", + ["七日内"] = "Within a week", + ["三日内"] = "Within three days", + ["东方玄幻"] = "Eastern fantasy", + ["二级分类"] = "Subcategory", + ["人气"] = "Popularity", + ["仙侠奇缘"] = "Immortal romance", + ["半月内"] = "Within two weeks", + ["古代言情"] = "Historical romance", + ["品质"] = "Quality", + ["完本"] = "Completed", + ["属性"] = "Access", + ["异世大陆"] = "Otherworld fantasy", + ["月票"] = "Monthly votes", + ["浪漫青春"] = "Teen romance", + ["游戏竞技"] = "Gaming and competition", + ["点击"] = "Views", + ["玄幻言情"] = "Fantasy romance", + ["王朝争霸"] = "Dynastic conflict", + ["现代言情"] = "Contemporary romance", + ["现实生活"] = "Everyday life", + ["科幻空间"] = "Sci-fi romance", + ["签约作品"] = "Contracted works", + ["精品小说"] = "Featured novels", + ["连载"] = "Ongoing", + ["高武世界"] = "Martial fantasy", + ["用同一 Wi-Fi 下的手机扫码完成安全验证;手机号、密码和短信码只在设备填写。"] = "Scan with a phone on the same Wi-Fi to complete security verification. Enter your phone number, password and SMS code only on the device.", + ["请完成下方安全验证"] = "Complete the security verification below.", + ["验证已提交,请回到设备查看结果。"] = "Verification submitted. Return to the device to see the result.", + ["国际区号"] = "Country calling code", + ["请输入有效的手机号和国际区号"] = "Enter a valid phone number and country calling code.", + ["请稍后再获取验证码"] = "Please wait before requesting another code.", + ["验证码已发送"] = "Verification code sent", + ["正在获取验证码…"] = "Requesting a verification code…", + ["正在处理,请稍候"] = "Processing, please wait.", + ["请先获取该手机号的验证码,再填写验证码登录"] = "Request a code for this phone number, then enter it to sign in.", + ["频道"] = "Channel", + ["章节评论"] = "Chapter comments", + ["悬疑推理"] = "Detective fiction", + ["获取验证码"] = "Get code", + ["手机号验证码登录"] = "Sign in with an SMS code", + ["请先获取验证码"] = "Request a verification code first", + ["扫码登录"] = "Sign in with QR code", + ["起点扫码登录"] = "Qidian QR sign-in", + ["起点登录已失效,请点「重新登录」,用 QQ阅读或起点 App 扫码。也可在账号设置里粘贴 Cookie。"] = "Qidian sign-in has expired. Tap Sign in again and scan with QQReader or Qidian. You can also paste a Cookie in account settings.", + ["验证已过期,请重新发起验证"] = "Verification expired. Please start again", + ["未登录 · 点此扫码"] = "Not signed in · tap to scan", + ["正在登录…"] = "Signing in…", + ["章节目录保存失败"] = "Failed to save chapter list", + ["缺少起点章节位置"] = "Missing Qidian chapter position", + ["起点段评响应缺少评论列表"] = "Qidian paragraph comments response has no comment list", + ["手机号"] = "Phone number", + ["按键盘 F12,点「网络」,刷新网页,复制请求标头里的整段 Cookie"] = "Press F12, open Network, refresh, and copy the entire Cookie request header", + ["起点账号"] = "Qidian account", + ["起点登录 Cookie"] = "Qidian login cookie", + ["起点 Cookie 缺少登录凭证"] = "Qidian Cookie is missing the sign-in token", + ["确定退出起点账号?"] = "Sign out of Qidian?", + ["未登录起点"] = "Not signed in to Qidian", + ["起点书籍信息为空"] = "Qidian book info is empty", + ["起点章节内容为空"] = "Qidian chapter is empty", + ["起点 VIP 章节未购买"] = "This Qidian VIP chapter is not purchased", + ["起点 VIP 章节正文为空,请退出后重新扫码或改用 Cookie 登录"] = "Qidian VIP chapter body is empty. Sign out, scan again, or paste Cookie instead", + ["起点 VIP 章节解密失败"] = "Failed to decrypt this Qidian VIP chapter", + ["起点 VIP 章节加密方式不受支持"] = "This Qidian VIP chapter uses an unsupported encryption mode", + ["起点 VIP 章节字体下载失败"] = "Failed to download the Qidian VIP chapter font", + ["起点 VIP 章节字体解密失败:缺少字体信息"] = "Failed to restore the Qidian VIP chapter font: font info missing", + ["起点目录为空"] = "Qidian table of contents is empty", + ["起点章节时间缺失"] = "Qidian chapter time is missing", + ["用 QQ阅读或起点 App 扫一扫"] = "Scan with the QQ Reader or Qidian app", + ["起点中文网 → 起点账号"] = "Qidian → Qidian account", + ["仙侠"] = "Xianxia", + ["体育"] = "Sports", + ["全站"] = "All", + ["军事"] = "Military", + ["历史"] = "History", + ["奇幻"] = "Fantasy", + ["女频"] = "Female", + ["悬疑灵异"] = "Mystery & Supernatural", + ["新书榜"] = "New Books", + ["新人榜"] = "Rookies", + ["新作者榜"] = "New Authors", + ["更新榜"] = "Updates", + ["月票榜"] = "Monthly Votes", + ["武侠"] = "Wuxia", + ["玄幻"] = "Xuanhuan", + ["现实"] = "Realistic", + ["男频"] = "Male", + ["畅销榜"] = "Bestsellers", + ["短篇"] = "Short Stories", + ["科幻"] = "Sci-Fi", + ["诸天无限"] = "Infinite Worlds", + ["起点榜单为空"] = "Qidian ranking is empty", + ["轻小说"] = "Light Novels", + ["都市"] = "Urban", + ["阅读指数榜"] = "Reading Index", + ["无法打开远程验证,请先连接 Wi-Fi 并启用远程管理功能"] = "Cannot open remote verification. Connect to Wi-Fi and enable Remote management first.", + ["验证已取消"] = "Verification cancelled", + ["验证凭据无效"] = "Invalid verification proof", + ["正在提交验证…"] = "Submitting verification…", + ["验证失败,请重新验证"] = "Verification failed. Please try again", + ["VIP 章节"] = "VIP chapters", + ["书架同步"] = "Shelf sync", + ["搜索与发现"] = "Search and discover", + ["起点中文网书架与在线阅读"] = "Qidian shelf and online reading", + ["进度同步"] = "Progress sync", +} diff --git a/moonsource-qidian.koplugin/moonsource_qidian/l10n/zh_TW.lua b/moonsource-qidian.koplugin/moonsource_qidian/l10n/zh_TW.lua new file mode 100644 index 0000000..b5f366c --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/l10n/zh_TW.lua @@ -0,0 +1,147 @@ +return { + ["起点书友圈响应无效"] = "起點書友圈回應無效", + ["书友圈预览(%1/%2)"] = "書友圈預覽(%1/%2)", + ["书友圈帖子预览"] = "書友圈帖子預覽", + ["完结"] = "完結", + ["起点榜单响应无效"] = "起點排行榜回應無效", + ["排行榜"] = "排行榜", + ["分类书库"] = "分類書庫", + ["切换账号"] = "切換帳號", + ["切换起点账号会清除这台设备上起点的书架、阅读进度、笔记和缓存,包括尚未同步的记录。不会删除远端书架。确定继续?"] = "切換起點帳號會清除這台裝置上起點的書架、閱讀進度、筆記和快取,包括尚未同步的記錄。不會刪除遠端書架。確定繼續?", + ["刷新验证码"] = "重新整理驗證碼", + ["同意并获取验证码"] = "同意並取得驗證碼", + ["子分类"] = "子分類", + ["提交"] = "送出", + ["无法确认旧账号,请先退出旧账号再登录"] = "無法確認舊帳號,請先登出舊帳號再登入", + ["本章讨论"] = "本章討論", + ["筛选"] = "篩選", + ["获取验证码前请阅读并同意阅文用户服务协议和隐私政策"] = "取得驗證碼前請閱讀並同意閱文使用者服務協議和隱私政策", + ["请输入验证码"] = "請輸入驗證碼", + ["起点分类响应无效"] = "起點分類回應無效", + ["起点分类条件无效"] = "起點分類條件無效", + ["起点安全验证"] = "起點安全驗證", + ["起点手机号验证码登录"] = "起點手機號碼驗證碼登入", + ["起点搜索响应无效"] = "起點搜尋回應無效", + ["起点登录响应无效"] = "起點登入回應無效", + ["起点登录未获取到本站会话"] = "起點登入未取得本站工作階段", + ["起点登录缺少会话兑换凭据"] = "起點登入缺少工作階段兌換憑據", + ["起点登录跳转地址无效"] = "起點登入重新導向位址無效", + ["起点登录跳转过多"] = "起點登入重新導向過多", + ["起点登录需要未支持的验证"] = "起點登入需要尚未支援的驗證", + ["起点短信会话缺失"] = "起點簡訊工作階段缺失", + ["起点账号标识缺失"] = "起點帳號識別缺失", + ["起点验证码刷新失败"] = "起點驗證碼重新整理失敗", + ["起点验证码响应无效"] = "起點驗證碼回應無效", + ["起点验证码图片无效"] = "起點驗證碼圖片無效", + ["100~200万"] = "100~200 萬字", + ["200万以上"] = "200 萬字以上", + ["30~50万"] = "30~50 萬字", + ["30万以下"] = "30 萬字以下", + ["50~100万"] = "50~100 萬字", + ["VIP"] = "VIP", + ["一月内"] = "一個月內", + ["七日内"] = "七日內", + ["三日内"] = "三日內", + ["东方玄幻"] = "東方玄幻", + ["二级分类"] = "次分類", + ["人气"] = "人氣", + ["仙侠奇缘"] = "仙俠奇緣", + ["半月内"] = "半個月內", + ["古代言情"] = "古代言情", + ["品质"] = "品質", + ["完本"] = "完結", + ["属性"] = "屬性", + ["异世大陆"] = "異世大陸", + ["月票"] = "月票", + ["浪漫青春"] = "浪漫青春", + ["游戏竞技"] = "遊戲競技", + ["点击"] = "點擊", + ["玄幻言情"] = "玄幻言情", + ["王朝争霸"] = "王朝爭霸", + ["现代言情"] = "現代言情", + ["现实生活"] = "現實生活", + ["科幻空间"] = "科幻空間", + ["签约作品"] = "簽約作品", + ["精品小说"] = "精品小說", + ["连载"] = "連載", + ["高武世界"] = "高武世界", + ["用同一 Wi-Fi 下的手机扫码完成安全验证;手机号、密码和短信码只在设备填写。"] = "用同一 Wi-Fi 下的手機掃碼完成安全驗證;手機號碼、密碼和簡訊碼只在裝置填寫。", + ["请完成下方安全验证"] = "請完成下方安全驗證", + ["验证已提交,请回到设备查看结果。"] = "驗證已提交,請回到裝置查看結果。", + ["国际区号"] = "國際區碼", + ["请输入有效的手机号和国际区号"] = "請輸入有效的手機號碼和國際區碼", + ["请稍后再获取验证码"] = "請稍後再取得驗證碼", + ["验证码已发送"] = "驗證碼已發送", + ["正在获取验证码…"] = "正在取得驗證碼…", + ["正在处理,请稍候"] = "正在處理,請稍候", + ["请先获取该手机号的验证码,再填写验证码登录"] = "請先取得該手機號碼的驗證碼,再填寫驗證碼登入", + ["频道"] = "頻道", + ["章节评论"] = "章節評論", + ["悬疑推理"] = "懸疑推理", + ["获取验证码"] = "取得驗證碼", + ["手机号验证码登录"] = "手機號碼驗證碼登入", + ["请先获取验证码"] = "請先取得驗證碼", + ["扫码登录"] = "掃碼登入", + ["起点扫码登录"] = "起點掃碼登入", + ["起点登录已失效,请点「重新登录」,用 QQ阅读或起点 App 扫码。也可在账号设置里粘贴 Cookie。"] = "起點登入已失效,請點「重新登入」,用 QQ閱讀或起點 App 掃碼。也可在帳號設定裡貼上 Cookie。", + ["验证已过期,请重新发起验证"] = "驗證已過期,請重新發起驗證", + ["未登录 · 点此扫码"] = "未登入 · 點此掃碼", + ["正在登录…"] = "正在登入…", + ["章节目录保存失败"] = "章節目錄儲存失敗", + ["缺少起点章节位置"] = "缺少起點章節位置", + ["起点段评响应缺少评论列表"] = "起點段評回應缺少評論列表", + ["手机号"] = "手機號碼", + ["按键盘 F12,点「网络」,刷新网页,复制请求标头里的整段 Cookie"] = "按鍵盤 F12,點「網路」,重新整理網頁,複製請求標頭裡的整段 Cookie", + ["起点账号"] = "起點帳號", + ["起点登录 Cookie"] = "起點登入 Cookie", + ["起点 Cookie 缺少登录凭证"] = "起點 Cookie 缺少登入憑證", + ["确定退出起点账号?"] = "確定登出起點帳號?", + ["未登录起点"] = "未登入起點", + ["起点书籍信息为空"] = "起點書籍資訊為空", + ["起点章节内容为空"] = "起點章節內容為空", + ["起点 VIP 章节未购买"] = "此起點 VIP 章節尚未購買", + ["起点 VIP 章节正文为空,请退出后重新扫码或改用 Cookie 登录"] = "起點 VIP 章節正文為空,請登出後重新掃碼或改用 Cookie 登入", + ["起点 VIP 章节解密失败"] = "起點 VIP 章節解密失敗", + ["起点 VIP 章节加密方式不受支持"] = "此起點 VIP 章節使用不支援的加密方式", + ["起点 VIP 章节字体下载失败"] = "起點 VIP 章節字體下載失敗", + ["起点 VIP 章节字体解密失败:缺少字体信息"] = "起點 VIP 章節字體解密失敗:缺少字體資訊", + ["起点目录为空"] = "起點目錄為空", + ["起点章节时间缺失"] = "起點章節時間缺失", + ["用 QQ阅读或起点 App 扫一扫"] = "用 QQ閱讀或起點 App 掃一掃", + ["起点中文网 → 起点账号"] = "起點中文網 → 起點帳號", + ["仙侠"] = "仙俠", + ["体育"] = "體育", + ["全站"] = "全站", + ["军事"] = "軍事", + ["历史"] = "歷史", + ["奇幻"] = "奇幻", + ["女频"] = "女頻", + ["悬疑灵异"] = "懸疑靈異", + ["新书榜"] = "新書榜", + ["新人榜"] = "新人榜", + ["新作者榜"] = "新作者榜", + ["更新榜"] = "更新榜", + ["月票榜"] = "月票榜", + ["武侠"] = "武俠", + ["玄幻"] = "玄幻", + ["现实"] = "現實", + ["男频"] = "男頻", + ["畅销榜"] = "暢銷榜", + ["短篇"] = "短篇", + ["科幻"] = "科幻", + ["诸天无限"] = "諸天無限", + ["起点榜单为空"] = "起點榜單為空", + ["轻小说"] = "輕小說", + ["都市"] = "都市", + ["阅读指数榜"] = "閱讀指數榜", + ["无法打开远程验证,请先连接 Wi-Fi 并启用远程管理功能"] = "無法打開遠端驗證,請先連接 Wi-Fi 並啟用遠端管理功能", + ["验证已取消"] = "驗證已取消", + ["验证凭据无效"] = "驗證憑據無效", + ["正在提交验证…"] = "正在提交驗證…", + ["验证失败,请重新验证"] = "驗證失敗,請重新驗證", + ["VIP 章节"] = "VIP 章節", + ["书架同步"] = "書架同步", + ["搜索与发现"] = "搜尋與發現", + ["起点中文网书架与在线阅读"] = "起點中文網書架與線上閱讀", + ["进度同步"] = "進度同步", +} diff --git a/moonsource-qidian.koplugin/moonsource_qidian/loadmeta.lua b/moonsource-qidian.koplugin/moonsource_qidian/loadmeta.lua new file mode 100644 index 0000000..eab4a29 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/loadmeta.lua @@ -0,0 +1,5 @@ +return function() + local copy = {} + for k, v in pairs(require("moonsource_qidian._meta")) do copy[k] = v end + return copy +end diff --git a/moonsource-qidian.koplugin/moonsource_qidian/login.lua b/moonsource-qidian.koplugin/moonsource_qidian/login.lua new file mode 100644 index 0000000..40af5e6 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/login.lua @@ -0,0 +1,196 @@ +--[[-- +起点官方 Web 短信登录会话。图形验证与短信使用不同 sessionKey,不保存手机号或验证码。 + +@module moonsource_qidian.login +--]] + +local JSON = require("json") +local Request = require("http.request") +local Text = require("utils.text") +local CookieLogin = require("source.cookie_login") +local _ = require("l10n").get("moonsource_qidian") + +local BASE = "https://ptlogin.yuewen.com" +local UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/131.0.0.0 Safari/537.36" +local LOGIN_KEYS = { ywguid = true, ywkey = true, ywopenid = true } +local HOSTS = { ["ptlogin.yuewen.com"] = true, ["passport.yuewen.com"] = true, + ["passport.qidian.com"] = true, ["m.qidian.com"] = true } + +---@class QidianLogin +---@field jar table +---@field webjar table +---@field generation integer +---@field job HttpJob|nil +---@field initialized boolean|nil +---@field challenge_key string|nil +---@field sms_key string|nil +---@field cancelled boolean|nil +local Login = {} +Login.__index = Login + +function Login.new() + return setmetatable({ jar = {}, webjar = {}, generation = 0 }, Login) +end + +function Login:cancel() + self.cancelled = true + self:interrupt() + self.sms_key, self.challenge_key = nil, nil + self.jar, self.webjar = {}, {} +end + +function Login:interrupt() + self.generation = self.generation + 1 + if self.job then self.job.cancel() end + self.job = nil +end + +local function cookies(jar) + local parts = {} + for name, value in pairs(jar) do parts[#parts + 1] = name .. "=" .. value end + return CookieLogin.parse(table.concat(parts, "; ")) +end + +function Login:_get(url, cb) + if self.cancelled then return end + local host = url:match("^https://([^/?#]+)") + if not HOSTS[host] then cb(nil, _("起点登录跳转地址无效")); return end + local headers = { ["User-Agent"] = UA, Referer = "https://passport.qidian.com/mobile/login" } + if host == "ptlogin.yuewen.com" then headers.Cookie = cookies(self.jar) + elseif host == "m.qidian.com" then headers.Cookie = cookies(self.webjar) end + local pending, gen = true, self.generation + local job = Request.request({ + url = url, method = "GET", headers = headers, allow_redirects = false, + timeout = require("http.timeout").net(1), cache_ttl = 0, + }, function(res, err) + pending = false + if self.cancelled or gen ~= self.generation then return end + self.job = nil + if not res or err then cb(nil, err and tostring(err) or _("请求失败")); return end + local status = tonumber(res.code) + if not status or status < 200 or status >= 400 then cb(nil, "HTTP " .. tostring(res.code)); return end + local set_cookies = Request.headerAll(res, "Set-Cookie") + if host == "ptlogin.yuewen.com" then CookieLogin.absorb(self.jar, set_cookies) end + CookieLogin.absorb(self.webjar, set_cookies, LOGIN_KEYS) + cb(res) + end) + if pending then self.job = job end +end + +function Login:baseParams() + return { + appId = "13", areaId = "31", source = "", returnurl = "https://m.qidian.com/", + version = "", imei = "", qimei = "", target = "top", ticket = "1", + autotime = "14", jumpdm = "qidian", ajaxdm = "", auto = self.jar.al or "", sdkversion = "", + format = "json", method = "moonLogin", + } +end + +function Login:_json(path, fields, cb) + local params = self:baseParams() + for key, value in pairs(fields) do params[key] = value end + self:_get(BASE .. path .. "?" .. Text.formEncode(params), function(res, err) + if not res then cb(nil, err); return end + local ok, wire = pcall(JSON.decode, res.body) + if not ok or type(wire) ~= "table" then cb(nil, _("起点登录响应无效")); return end + if tonumber(wire.code) ~= 0 then + cb(nil, wire.message or wire.msg or (_("登录失败") .. ":" .. tostring(wire.code))); return + end + if type(wire.data) ~= "table" then cb(nil, _("起点登录响应无效")); return end + cb(wire.data) + end) +end + +function Login:beginAsync(cb) + self:_json("/userSdk/getvalidatecode", { force = 1 }, function(data, err) + if not data then cb(nil, err); return end + self.initialized = true + if type(data.imgSrc) == "string" and data.imgSrc ~= "" then self.challenge_key = data.sessionKey end + cb(data) + end) +end + +function Login:imageAsync(url, cb) + local target = Text.absoluteUrl(BASE .. "/", url) + if not target then cb(nil, _("起点验证码响应无效")); return end + self:_get(target, function(res, err) + if not res then cb(nil, err); return end + local body = res.body + if type(body) ~= "string" or #body > 1024 * 1024 then cb(nil, _("起点验证码图片无效")); return end + local ext, mime = require("utils.image").ext(body) + if not ext then cb(nil, _("起点验证码图片无效")); return end + cb("data:" .. mime .. ";base64," .. Text.base64Encode(body)) + end) +end + +function Login:sendCodeAsync(country, phone, proof, cb) + self:_json("/userSdk/sendmsgnew", { + phoneIsAbroad = country == "+86" and 0 or 1, inputUserId = country .. phone, + sessionKey = self.challenge_key or "", type = 1, validateCode = proof or "", needRegister = 0, + }, function(data, err) + if not data then cb(nil, err); return end + local action = tonumber(data.nextAction) + if action == 0 then + if type(data.sessionKey) ~= "string" or data.sessionKey == "" then + cb(nil, _("起点短信会话缺失")); return + end + self.sms_key = data.sessionKey + self.challenge_key = nil + elseif action == 8 or action == 11 then + if type(data.sessionKey) ~= "string" or data.sessionKey == "" or type(data.imgSrc) ~= "string" + or data.imgSrc == "" then cb(nil, _("起点验证码响应无效")); return end + self.challenge_key = data.sessionKey + else + cb(nil, _("起点登录需要未支持的验证") .. ":" .. tostring(data.nextAction)); return + end + cb(data) + end) +end + +function Login:_exchange(data, cb) + for name, key in pairs({ ywguid = "ywGuid", ywkey = "ywKey", ywopenid = "ywOpenId" }) do + local value = data[key] + if type(value) == "number" then self.webjar[name] = string.format("%.0f", value) + elseif type(value) == "string" then self.webjar[name] = value end + end + local url = data["302url"] + if not url and type(data.ticket) == "string" and data.ticket ~= "" then + url = "https://m.qidian.com/?" .. Text.formEncode({ + ticket = data.ticket, ywguid = self.webjar.ywguid or "", ywOpenId = self.webjar.ywopenid or "", + }) + end + if type(url) ~= "string" or url == "" then cb(nil, _("起点登录缺少会话兑换凭据")); return end + local function follow(target, hop) + if hop > 5 then cb(nil, _("起点登录跳转过多")); return end + self:_get(target, function(res, err) + if not res then cb(nil, err); return end + local status = tonumber(res.code) + local location = Request.header(res, "Location") + if status >= 300 then + local next_url = Text.absoluteUrl(target, location) + if not next_url then cb(nil, _("起点登录跳转地址无效")); return end + follow(next_url, hop + 1) + elseif target:match("^https://([^/?#]+)") ~= "m.qidian.com" or not self.webjar.ywguid + or not self.webjar.ywkey then + cb(nil, _("起点登录未获取到本站会话")) + else + -- 真 _csrfToken 由 loginCheck 合并书架页 Set-Cookie 后再落盘,这里不要造假。 + cb(cookies(self.webjar)) + end + end) + end + follow(url, 1) +end + +function Login:verifyAsync(phone, code, cb) + if not self.sms_key then cb(nil, _("请先获取验证码")); return end + self:_json("/userSdk/phonecodelogin", { + inputUserId = phone, sessionKey = self.sms_key, validateCode = code, + }, function(data, err) + if not data then cb(nil, err); return end + if tonumber(data.nextAction) ~= 0 then cb(nil, _("起点登录需要未支持的验证")); return end + self:_exchange(data, cb) + end) +end + +return Login diff --git a/moonsource-qidian.koplugin/moonsource_qidian/mapper.lua b/moonsource-qidian.koplugin/moonsource_qidian/mapper.lua new file mode 100644 index 0000000..ec3e8b9 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/mapper.lua @@ -0,0 +1,233 @@ +--[[-- +起点中文网数据映射(纯函数):手机网页 pageContext JSON / 书架行 → 领域对象。 + +@module koplugin.book.moonsource_qidian.mapper +--]] + +local JSON = require("json") +local Text = require("utils.text") + +local Mapper = {} + +local SOURCE_ID = "ext.qidian" +local COVER = "https://bookcover.yuewen.com/qdbimg/349573/%s/180" + +--- 封面走阅文 CDN,书号即路径。实测是 JPEG,不强制 gzip。 +---@param book_id string|number +---@return string +function Mapper.coverUrl(book_id) + return COVER:format(tostring(book_id)) +end + +--- 手机网页 SSR 的 pageContext → pageData;不是起点页面返回 nil。 +---@param html string +---@return table|nil +function Mapper.pageData(html) + local raw = type(html) == "string" + and html:match('id="vite%-plugin%-ssr_pageContext" type="application/json">(.-)') + if not raw then return nil end + local ok, wire = pcall(JSON.decode, raw) + if not ok or type(wire) ~= "table" then return nil end + local props = (wire.pageContext or wire).pageProps + local data = props and props.pageData + return type(data) == "table" and data or nil +end + +--- 详情页 bookInfo → Book。 +---@param info table +---@return Book +function Mapper.book(info) + local id = tostring(info.bookId) + local status = type(info.bookStatus) == "string" and info.bookStatus + or type(info.actionStatus) == "string" and info.actionStatus + or tonumber(info.actionStatus) == 1 and "连载" + or tonumber(info.actionStatus) == 2 and "完结" + or nil + local tags = type(info.tagName) == "string" and info.tagName ~= "" and info.tagName + or type(info.tags) == "string" and info.tags ~= "" and info.tags or nil + if tags then tags = (tags:gsub("[,%s;;|/]+", " · ")) end + return { + source_id = SOURCE_ID, + stable_id = id, + title = info.bookName, + authors = info.authorName, + category = info.chanName, + intro = info.desc and Text.stripHtml(info.desc), + cover = Mapper.coverUrl(id), + meta = { + words = tonumber(info.wordsCnt), + status = status, + tags = tags, + }, + } +end + +--- 搜索页 pageData.bookInfo.records → Book[]。作者名被站点截成「xx...」,不完整就留空等详情补。 +---@param data table +---@return Book[] +function Mapper.search(data) + local out = {} + for _idx, row in ipairs((data.bookInfo or {}).records or {}) do + local id = tostring(row.bid) + local author = row.bAuth + out[#out + 1] = { + source_id = SOURCE_ID, + stable_id = id, + title = row.bName, + authors = type(author) == "string" and not author:find("%.%.%.$") and author or nil, + category = row.cat, + intro = row.desc and Text.stripHtml(row.desc), + cover = Mapper.coverUrl(id), + } + end + return out +end + +--- 榜单页 pageData.records → Book[](行形状同搜索)。 +---@param data table +---@return Book[] +function Mapper.rank(data) + return Mapper.search({ bookInfo = { records = data.records } }) +end + +--- 书架行 → Book。没有简介,封面按书号拼。 +---@param row table +---@return Book +function Mapper.shelfBook(row) + local id = tostring(row.bid) + return { + source_id = SOURCE_ID, + stable_id = id, + title = row.bName, + authors = row.bAuth, + category = row.cateName, + cover = Mapper.coverUrl(id), + } +end + +--- 书架行 → Book。有详情用详情,否则沿用本地完整行,都没有才退回书架行。 +--- 分类口径见 source.category_setting:开 = 只用自定义分组,关 = 只用题材(cateName / chanName)。 +---@param rows table[] +---@return Book[] +function Mapper.shelfList(rows) + local CategorySetting = require("source.category_setting") + local books = {} + for _idx, row in ipairs(rows) do + local book + if row.info then + book = Mapper.book(row.info) + elseif row.local_book then + book = row.local_book + if type(book.cover) ~= "string" or book.cover == "" then + book.cover = Mapper.coverUrl(row.bid or book.stable_id) + end + -- 沿用本地行时 category 可能是上次同步的分组名:先刷回书架题材,再按开关决定。 + if type(row.cateName) == "string" and row.cateName ~= "" then + book.category = row.cateName + end + elseif row.bid then + book = Mapper.shelfBook(row) + end + if book then + book.category = CategorySetting.apply(SOURCE_ID, book.category, row._group_name) + book.category_authoritative = true + books[#books + 1] = book + end + end + return books +end + +--- 目录 uT(东八区 `YYYY-MM-DD HH:MM:SS`)→ unix 秒。上传进度要这个数,日期字符串服务端直接 500。 +---@param text string|nil +---@return integer|nil +function Mapper.chapterTime(text) + if type(text) ~= "string" then return nil end + local year, month, day, hour, minute, second = text:match("^(%d+)%-(%d+)%-(%d+) (%d+):(%d+):(%d+)$") + if not year then + year, month, day, hour, minute = text:match("^(%d+)%-(%d+)%-(%d+) (%d+):(%d+)$") + second = "0" + end + year, month, day = tonumber(year), tonumber(month), tonumber(day) + hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) + if not year or month < 1 or month > 12 or day < 1 or day > 31 then return nil end + -- Howard Hinnant days_from_civil,再减去东八区。 + local y = year - (month <= 2 and 1 or 0) + local era = math.floor((y >= 0 and y or y - 399) / 400) + local yoe = y - era * 400 + local doy = math.floor((153 * (month + (month > 2 and -3 or 9)) + 2) / 5) + day - 1 + local doe = yoe * 365 + math.floor(yoe / 4) - math.floor(yoe / 100) + doy + local days = era * 146097 + doe - 719468 + return days * 86400 + hour * 3600 + minute * 60 + second - 8 * 3600 +end + +--- 书架行里的阅读位置。没有 readCid 就是没读过。 +---@param row table|nil +---@return { uid: string, title: string|nil }|nil +function Mapper.readChapter(row) + if type(row) ~= "table" then return nil end + local uid = row.readCid + if uid == nil or tostring(uid) == "" or tonumber(uid) == 0 then return nil end + local title = row.readCname + return { uid = tostring(uid), title = type(title) == "string" and title or nil } +end + +--- 目录页 vs[].cs[] → 目录。卷名不是章;VIP 章(sS=0)也进目录,打开时再看是否已购买。 +--- updated 是章节更新时间的 unix 秒,进度上传要带上,空字符串会把阅读状态写坏。 +---@param data table|nil +---@return BookChapter[] +function Mapper.toc(data) + local volumes = data and data.vs + local toc = {} + for _idx, volume in ipairs(type(volumes) == "table" and volumes or {}) do + for _ch, row in ipairs(type(volume.cs) == "table" and volume.cs or {}) do + if row.id then + toc[#toc + 1] = { + idx = #toc + 1, + uid = tostring(row.id), + title = row.cN, + words = tonumber(row.cnt), + updated = Mapper.chapterTime(row.uT), + vip = tonumber(row.sS) == 0, + } + end + end + end + return toc +end + +--- 未购买的 VIP 只有预览。免费章 isBuy 也是 0,锁章只看 vipStatus。 +---@param info table|nil +---@return boolean +function Mapper.locked(info) + return type(info) == "table" and tonumber(info.vipStatus) == 1 and tonumber(info.isBuy) ~= 1 +end + +--- 已购 VIP 的正文是 Fock 密文(官方前端 fEnS=1)。 +---@param info table|nil +---@return boolean +function Mapper.fockEncrypted(info) + return type(info) == "table" and (tonumber(info.fEnS) or 0) ~= 0 +end + +--- 已购 VIP 的正文还套了一层字体映射(官方前端 cES=2)。 +--- TTF 画回真字,`` 还要按 CSS 镜像;正文尾部另有一份诱饵副本。 +---@param info table|nil +---@return boolean +function Mapper.fontProtected(info) + return type(info) == "table" and tonumber(info.cES) == 2 +end + +--- 章节 HTML → 纯文本。起点用

分段,且不保证闭合。 +---@param html string|nil +---@return string|nil +function Mapper.chapterText(html) + if type(html) ~= "string" or html == "" then return nil end + local text = Text.xmlDecode((html + :gsub("<[Pp][^>]*>", "\n") + :gsub("", "\n") + :gsub("<[Bb][Rr]%s*/?>", "\n") + :gsub("<[^>]*>", ""))) + return Text.trim(text) ~= "" and text or nil +end + +return Mapper diff --git a/moonsource-qidian.koplugin/moonsource_qidian/phone_login.lua b/moonsource-qidian.koplugin/moonsource_qidian/phone_login.lua new file mode 100644 index 0000000..b3486c9 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/phone_login.lua @@ -0,0 +1,131 @@ +--[[-- +起点手机号短信登录窗口。取消只终止本窗口的候选会话,不影响已保存账号。 + +@module moonsource_qidian.phone_login +--]] + +local Text = require("utils.text") +local _ = require("l10n").get("moonsource_qidian") +---@class QidianPhoneLogin +---@field session QidianLogin +---@field on_cookie fun(cookie: string) +---@field dialog BookThemeInput +---@field verification QidianVerification|nil +---@field phone string|nil +---@field retry_at integer|nil +---@field agreed boolean|nil +---@field busy boolean|nil +---@field closed boolean|nil +local PhoneLogin = {} +PhoneLogin.__index = PhoneLogin + +function PhoneLogin.new(on_cookie) + return setmetatable({ session = require("moonsource_qidian.login").new(), on_cookie = on_cookie }, PhoneLogin) +end + +function PhoneLogin:cancel() + self.closed, self.busy = true, false + if self.verification then self.verification:cancel() end + self.session:cancel() + self.phone = nil +end + +function PhoneLogin:toast(message) + require("ui.themes.widgets.toast"):new{ text = message, timeout = 3 }:show() +end + +function PhoneLogin:available() + if self.closed then return false end + if self.busy then self:toast(_("正在处理,请稍候")); return false end + if not require("ui/network/manager"):isConnected() then + self:toast(_("网络不可用,请先连接 Wi-Fi")); return false + end + return true +end + +function PhoneLogin:_send(country, phone, proof) + self.busy = true + self.session:sendCodeAsync(country, phone, proof, function(data, err) self:_sent(country, phone, data, err) end) +end + +function PhoneLogin:_sent(country, phone, data, err) + if self.closed then return end + self.busy = false + if not data then self:toast(err or _("请求失败")); return end + if tonumber(data.nextAction) == 0 then + self.phone, self.retry_at = country .. phone, os.time() + 60 + self:toast(_("验证码已发送")); return + end + self.busy = true + local verification = require("moonsource_qidian.verify").new(self.session, data, function(proof, done) + self.session:sendCodeAsync(country, phone, proof, done) + end, function(result, reason) + self.verification = nil + self:_sent(country, phone, result, reason) + end) + if not verification.done then self.verification = verification end +end + +function PhoneLogin:send(country, phone) + if not self:available() then return end + country, phone = Text.trim(country), Text.trim(phone) + if not country:match("^%+%d+$") or #country > 5 or not phone:match("^%d+$") or #phone < 6 or #phone > 15 then + self:toast(_("请输入有效的手机号和国际区号")); return + end + if self.retry_at and os.time() < self.retry_at then self:toast(_("请稍后再获取验证码")); return end + if not self.agreed then + require("ui.themes.widgets.confirm"):new{ + text = _("获取验证码前请阅读并同意阅文用户服务协议和隐私政策") + .. "\nhttps://passport.yuewen.com/terms_of_service.html" + .. "\nhttps://passport.yuewen.com/privacy_policy.html", + ok_text = _("同意并获取验证码"), + ok_callback = function() self.agreed = true; self:send(country, phone) end, + }:show() + return + end + self:toast(_("正在获取验证码…")) + if self.session.initialized then self:_send(country, phone); return end + self.busy = true + self.session:beginAsync(function(data, err) + if self.closed then return end + self.busy = false + if not data then self:toast(err or _("登录失败")); return end + self:_send(country, phone) + end) +end + +function PhoneLogin:verify(country, phone, code) + if not self:available() then return end + country, phone, code = Text.trim(country), Text.trim(phone), Text.trim(code) + if country .. phone ~= self.phone or not code:match("^%d+$") then + self:toast(_("请先获取该手机号的验证码,再填写验证码登录")); return + end + self.busy = true + self:toast(_("正在登录…")) + self.session:verifyAsync(phone, code, function(cookie, err) + if self.closed then return end + self.busy = false + if not cookie then self:toast(err or _("登录失败")); return end + self:cancel() + self.dialog:close() + self.on_cookie(cookie) + end) +end + +function PhoneLogin:start() + self.dialog = require("ui.themes.widgets.input"):new{ + title = _("起点手机号验证码登录"), + fields = { + { label = _("国际区号"), text = "+86", hint = "+86" }, + { label = _("手机号"), input_type = "number" }, + { label = _("验证码"), input_type = "number" }, + }, + keep_open = true, ok_text = _("登录"), + actions = { { text = _("获取验证码"), callback = function(country, phone) self:send(country, phone) end } }, + callback = function(country, phone, code) self:verify(country, phone, code) end, + cancel_callback = function() self:cancel() end, + } + self.dialog:show() +end + +return PhoneLogin diff --git a/moonsource-qidian.koplugin/moonsource_qidian/reviews.lua b/moonsource-qidian.koplugin/moonsource_qidian/reviews.lua new file mode 100644 index 0000000..ea694ab --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/reviews.lua @@ -0,0 +1,151 @@ +--[[-- +起点段评:本章每段评论数、某段的评论页、把段落定位到章节 HTML。 + +走手机站接口(m.qidian.com/webcommon/chapterreview/*),匿名可读,见 `Client.reviewSummaryAsync`: +- reviewsummary4m:本章每段评论数;paragraphId 从 1 数,对应章节正文第 n 个

(起点正文每个

都非空),-1 是章末总评。 +- reviewlist4m:某段评论,page 从 1 起。 +章节 HTML 的段落是非空行逐个包成

(Text.textToBody),所以第 n 个

就是 paragraphId = n。 + +@module koplugin.book.moonsource_qidian.reviews +--]] + +local Client = require("moonsource_qidian.client") +local ReviewLocate = require("book.review_locate") +local Text = require("utils.text") +local _ = require("l10n").get("moonsource_qidian") +local T = require("ffi/util").template + +local Reviews = {} + +--- 整书帖子预览,与段评/章评分开;官网只给前三条,不虚构后续页。 +---@param data table +---@return table|nil, string|nil +function Reviews.bookPage(data) + local total = tonumber(data.bookCirclePostCount) + if type(data.bookCirclePostList) ~= "table" or not total then + return nil, _("起点书友圈响应无效") + end + local items = {} + for _idx, row in ipairs(data.bookCirclePostList) do + if type(row) ~= "table" or type(row.title) ~= "string" or type(row.circleReviewDesc) ~= "string" + or (row.userName ~= nil and type(row.userName) ~= "string") then + return nil, _("起点书友圈响应无效") + end + items[#items + 1] = { author = row.userName or "", + text = Text.stripHtml(row.title) .. "\n" .. Text.stripHtml(row.circleReviewDesc) } + end + return { items = items, total = total, title = T(_("书友圈预览(%1/%2)"), #items, total) } +end + +---@class QidianReviewHotspot +---@field range string 段落序号(第几个

) +---@field text string +---@field total integer 本段评论数 + +---- 统计回包 → 有评论的段落与章末(-1);调用方按粒度分开定位。 +---@param data table +---@return QidianReviewHotspot[] +function Reviews.hotspots(data) + local out = {} + for _idx, row in ipairs(data.list or {}) do + local pid, total = tonumber(row.paragraphId), tonumber(row.textCount) or 0 + if pid and (pid > 0 or pid == -1) and total > 0 then + out[#out + 1] = { range = tostring(pid), text = "", total = total } + end + end + table.sort(out, function(a, b) return tonumber(a.range) < tonumber(b.range) end) + return out +end + +--- 表情是「[fn=47]」这样的占位码,没有图可画,去掉。 +---@param row table +---@return WechatReview +local function reviewItem(row) + local body = tostring(row.content or ""):gsub("%[fn=%d+%]", "") + local images = {} + if tonumber(row.hasImage) == 1 and type(row.imagePre) == "string" and row.imagePre ~= "" then + images[1] = { url = row.imagePre, width = 0, height = 0 } + end + return { + id = tostring(row.reviewId or ""), + author = tostring(row.nickName or ""), + content = Text.trim(body), + likes = tonumber(row.likeCount) or 0, + replies = tonumber(row.rootReviewReplyCount) or 0, + images = images, + time = tonumber(row.createTimestamp) or math.floor((tonumber(row.createTime) or 0) / 1000), + reply_to = row.quoteNickName, + } +end + +---@param row table +---@return WechatReview +function Reviews.item(row) + local item = reviewItem(row) + if type(row.replyList) == "table" then + local preview = {} + for _idx, reply in ipairs(row.replyList) do + if type(reply) == "table" and tonumber(reply.status) ~= 0 then + preview[#preview + 1] = reviewItem(reply) + end + end + if #preview > 0 then + item.reply_preview = preview + item.replies = math.max(item.replies, #preview) + end + end + return item +end + +--- 评论回包 → 一页。max_idx 存「已取到第几页」(首页请求带 0),避免依赖每页条数。 +---@param data table +---@param page integer +---@return WechatReviewPage|nil, string|nil +function Reviews.page(data, page) + if type(data.list) ~= "table" then return nil, _("起点段评响应缺少评论列表") end + local items = {} + for _idx, row in ipairs(data.list) do + if type(row) == "table" and tonumber(row.status) ~= 0 then items[#items + 1] = Reviews.item(row) end + end + local total = tonumber(data.total) or #items + return { items = items, total = total, max_idx = page, + more = #data.list > 0 and data.isEnd ~= true and tonumber(data.isEnd) ~= 1 + and tonumber(data.size) ~= 0 and (page > 1 or #data.list < total) } +end + +--- 本章有评论的段落;这本书没开段评(enableReview ≠ 1)当没有。 +---@param book_id string +---@param chapter_id string +---@param cb fun(hotspots: QidianReviewHotspot[]|nil, err: string|nil) +---@return HttpJob +function Reviews.hotspotsAsync(book_id, chapter_id, cb) + return Client.reviewSummaryAsync(book_id, chapter_id, function(data, err) + if not data then cb(nil, err); return end + cb(tonumber(data.enableReview) == 1 and Reviews.hotspots(data) or {}) + end) +end + +--- 某段的一页评论;max_idx 是已取页数(首页 0)。 +---@param book_id string +---@param chapter_id string +---@param paragraph_id integer +---@param max_idx integer +---@param cb fun(page: WechatReviewPage|nil, err: string|nil) +---@return HttpJob +function Reviews.pageAsync(book_id, chapter_id, paragraph_id, max_idx, cb) + local page = max_idx + 1 + return Client.reviewListAsync(book_id, chapter_id, paragraph_id, page, function(data, err) + if not data then cb(nil, err); return end + cb(Reviews.page(data, page)) + end) +end + +--- 把有评论的段落定位到章节 HTML。 +---@param hotspots QidianReviewHotspot[] +---@param html string +---@return table[] +function Reviews.locate(hotspots, html) + return ReviewLocate.locate(ReviewLocate.paragraphs(html), hotspots, html) +end + +return Reviews diff --git a/moonsource-qidian.koplugin/moonsource_qidian/setting.lua b/moonsource-qidian.koplugin/moonsource_qidian/setting.lua new file mode 100644 index 0000000..1bb5934 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/setting.lua @@ -0,0 +1,108 @@ +--[[-- +起点源设置:登录。 + +优先在设备上展示阅文二维码,用起点或 QQ阅读 App 扫码;保留浏览器扩展与手动 Cookie 导入。 +拿到登录态先拉书架页校验,通过才保存。Cookie 里的 _csrfToken 与请求参数同值。 + +@module koplugin.book.moonsource_qidian.setting +--]] + +local _ = require("l10n").get("moonsource_qidian") +local CookieLogin = require("source.cookie_login") + +local SOURCE_ID = "ext.qidian" +local Setting = {} + +---@return boolean +local function loggedIn() + return require("moonsource_qidian.client").cookie() ~= nil +end + +--- 同账号续期不动同步标记;换号保留本地记录并准备上行。 +local function commit(cookie, account, cb, current) + if not account or type(account.id) ~= "string" or not account.id:match("^%d+$") then + cb(false, _("起点账号标识缺失")); return + end + return CookieLogin.commitAccount(SOURCE_ID, cookie, account.id, cb, current) +end + +---@type CookieLoginSpec +local SPEC = { + id = SOURCE_ID, + title = _("起点账号"), + cookie_title = _("起点登录 Cookie"), + cookie_hint = _("按键盘 F12,点「网络」,刷新网页,复制请求标头里的整段 Cookie"), + logout_text = _("确定退出起点账号?"), + loggedIn = loggedIn, + checkAsync = require("moonsource_qidian.client").loginCheckAsync, + commit = commit, + clear = function(cfg) cfg.cookie, cfg.account_id = nil, nil end, +} + +---@return string, boolean +function Setting.rowStatus() + local on = loggedIn() + return on and _("已登录") or _("未登录 · 点此登录"), on +end + +Setting.parseCookie = CookieLogin.parse + +--- 浏览器扩展交来的 payload.cookies → Cookie 请求头;只收起点站点的 Cookie。 +---@param payload table +---@return string +function Setting.fromPayload(payload) + return CookieLogin.fromPayload(payload, "qidian.com") +end + +--- 浏览器扩展登录(features/cookie)。 +Setting.browser = { + domain = "m.qidian.com", + scope = "cookie", + -- 扩展要求 login/check 与 domain 同主机。未登录时书架页自己 302 到 passport,登录完回到本站再采集。 + login = "https://m.qidian.com/bookshelf/my/", + check = "https://m.qidian.com/bookshelf/my/", + icon = "https://imgservices-1252317822.image.myqcloud.com/coco/s03102023/b7b10602.w663ve.ico", + isAuthorized = function() return CookieLogin.authorized(SPEC) end, + apply = function(payload, cb) return CookieLogin.save(SPEC, Setting.fromPayload(payload), cb) end, +} + +local function startQR() + require("ui/network/manager"):runWhenConnected(function() + require("moonsource_qidian.yuewen_qr"):new({ + app_id = "13", area_id = "31", return_url = "https://m.qidian.com/", + ticket = "1", + referer = "https://passport.qidian.com/mobile/login", + title = _("起点扫码登录"), caption = _("用 QQ阅读或起点 App 扫一扫"), + }, function(cookie) + -- 不要造假 _csrfToken:loginCheck 会把书架页 Set-Cookie(真 csrf 等)合并后再保存。 + CookieLogin.verify(SPEC, cookie) + end):start() + end) +end + +---@return table[] +function Setting.rows(plugin) + local rows = { + CookieLogin.accountRow(SPEC, { callback = startQR, off_text = _("未登录 · 点此扫码") }), + function(iw) + return require("ui.themes.widgets.row").widget{ + width = iw, chevron = true, kind = "nav", icon = "sms", + title = _("手机号验证码登录"), + callback = function() + require("moonsource_qidian.phone_login").new(function(cookie) CookieLogin.verify(SPEC, cookie) end):start() + end, + } + end, + CookieLogin.browserRow(), + CookieLogin.pasteRow(SPEC), + require("source.review_setting").row(SOURCE_ID, plugin), + require("source.category_setting").row(SOURCE_ID, plugin), + } + if loggedIn() then rows[#rows + 1] = CookieLogin.logoutRow(SPEC) end + return rows +end + +--- 登录失效提示的「重新登录」直达入口(desktop.sync.promptLogin)。 +Setting.login = startQR + +return Setting diff --git a/moonsource-qidian.koplugin/moonsource_qidian/source.lua b/moonsource-qidian.koplugin/moonsource_qidian/source.lua new file mode 100644 index 0000000..d45e7b8 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/source.lua @@ -0,0 +1,393 @@ +--[[-- +起点中文网数据源。 + +详情 / 目录 / 章节走手机站页面(client.lua)。扫码、短信与浏览器 Cookie 经统一校验保存(setting.lua); +登录后书架双向同步(source.shelf):拉取、本地加入上行、本地删除上行。 +进度只到章:开书从书架行的 readCid 拉,关书经 updReadStatus 推。笔记与统计仅本地记录。 +VIP 章未购买时打开一页临时提示,目录标注已购 / 未购(打开过才知道)。 + +@module moonsource_qidian +--]] + +local Browse = require("source.browse") +local Client = require("moonsource_qidian.client") +local Mapper = require("moonsource_qidian.mapper") +local ReviewCache = require("book.review_cache") +local Shelf = require("source.shelf") +local SourceBase = require("source.base") +local Toc = require("source.toc") +local _ = require("l10n").get("moonsource_qidian") + +local Qidian = {} + +-- 章节页不小,预取与整本缓存逐章间隔请求。 +local FETCH_INTERVAL = 1 + +---@return BookSourceMeta +function Qidian.meta() + return require("moonsource_qidian.loadmeta")() +end + +---@class QidianSource : SourceBase +---@field category_info table[]|nil 官网男频分类目录 +local Source = setmetatable({ shelf_add = true }, { __index = SourceBase }) +Source.__index = Source + +---@return QidianSource +function Qidian.new() + local meta = Qidian.meta() + return setmetatable({ id = meta.id, name = meta.name, type = meta.type }, Source) +end + +---@return boolean +function Source:configured() + return Client.cookie() ~= nil +end + +--- 书架行没有简介。本地没有简介或封面的书逐本补拉详情,拉不到就退回书架行。 +---@param rows table[] +---@param cb fun(rows: table[]) +---@return { cancel: fun() } +local function fillDetails(rows, cb) + local BookDB = require("book.books_db") + local cancelled, job, index = false, nil, 0 + local function nextRow() + if cancelled then return end + index = index + 1 + local row = rows[index] + if not row then cb(rows); return end + row.local_book = BookDB.get(Qidian.meta().id, tostring(row.bid)) + local book = row.local_book + local intro = book and book.intro + local cover = book and book.cover + if intro and intro ~= "" and cover and cover ~= "" then nextRow(); return end + job = Client.detailAsync(row.bid, function(info, err) + if cancelled then return end + if info then + row.info = info + else + require("utils.log").warn("book qidian detail failed", row.bid, err) + end + nextRow() + end) + end + nextRow() + return { cancel = function() + cancelled = true + if job then job.cancel() end + end } +end + +--- 书架远端:Shelf.syncAsync 要的三个冒号方法。 +local Remote = {} + +function Remote:shelfSyncAsync(cb) + local cancelled, job, fill = false, nil, nil + job = Client.shelfAsync(Client.cookie(), function(rows, err) + if cancelled then return end + if not rows then cb(nil, err); return end + fill = fillDetails(rows, cb) + end) + return { cancel = function() + cancelled = true + job.cancel() + if fill then fill.cancel() end + end } +end + +function Remote:addToShelfAsync(stable_id, cb) + return Client.addAsync(stable_id, cb) +end + +function Remote:removeFromShelfAsync(stable_id, cb) + return Client.removeAsync(stable_id, cb) +end + +function Source:syncBooksAsync(opts, cb) + if not self:configured() then return SourceBase.skipped(cb, "qidian not logged in") end + return Shelf.syncAsync(self.id, Remote, Mapper.shelfList, opts, cb) +end + +--- 书架行的 readCid 才是用户看到的进度。getReadStatus 在查询章等于已读章时会把章号省掉。 +function Source:getProgressAsync(identity, cb) + if not self:configured() then return SourceBase.defer(cb, nil, _("未登录起点")) end + local cancelled, job = false, nil + job = Client.shelfAsync(Client.cookie(), function(rows, err) + if cancelled then return end + if not rows then cb(nil, err); return end + local row + for _idx, item in ipairs(rows) do + if tostring(item.bid) == tostring(identity.stable_id) then row = item; break end + end + local read = Mapper.readChapter(row) + if not read then cb(nil, nil, { empty = true }); return end + job = self:loadTocAsync(identity, function(toc, reason) + if cancelled then return end + if not toc or #toc == 0 then cb(nil, reason or _("起点目录为空")); return end + local idx = Toc.index(self.id, identity.stable_id, read.uid) + if not idx then cb(nil, nil, { empty = true }); return end + cb({ + chapter_idx = idx, + chapter_title = read.title, + fraction = (idx - 1) / #toc, + extra = { chapter_uid = read.uid, chapter_idx = idx }, + }) + end) + end) + return { cancel = function() + cancelled = true + if job and job.cancel then job.cancel() end + end } +end + +function Source:putProgressAsync(identity, pos, cb) + if not self:configured() then return SourceBase.defer(cb, nil, _("未登录起点")) end + local cancelled, job = false, nil + local function send(chapter) + if not chapter.updated then + cb(nil, _("起点章节时间缺失")) + return + end + job = Client.updateReadAsync(identity.stable_id, chapter.uid, chapter.title, chapter.vip, chapter.updated, + function(ok, err) + if cancelled then return end + cb(ok and true or nil, err) + end) + end + job = self:loadTocAsync(identity, function(toc, err) + if cancelled then return end + if not toc then cb(nil, err); return end + local idx = tonumber(pos.chapter_idx) or tonumber(identity.chapter_idx) + local chapter = idx and toc[idx] + if not chapter or not chapter.uid then + cb(nil, _("缺少起点章节位置")) + return + end + if chapter.updated then send(chapter); return end + -- 旧目录缓存没有章节更新时间。不带时间上传会把阅读状态写坏,先补拉目录。 + job = Client.catalogAsync(identity.stable_id, function(data, reason) + if cancelled then return end + local fresh = data and Mapper.toc(data) + if fresh and #fresh > 0 then Toc.put(self.id, identity.stable_id, fresh) end + local hit + for _ch, item in ipairs(fresh or {}) do + if item.uid == chapter.uid then hit = item; break end + end + if not hit then cb(nil, reason or _("缺少起点章节位置")); return end + if not hit.updated then cb(nil, _("起点章节时间缺失")); return end + send(hit) + end) + end) + return { cancel = function() + cancelled = true + if job and job.cancel then job.cancel() end + end } +end + +--- 书城搜索:回包形状同 listStoreAsync。 +---@param keyword string +---@param cb fun(res: { data: Book[] }|nil, err: string|nil) +---@return { cancel: fun() }|nil +function Source:searchAsync(keyword, cb) + return Browse.pages(function(page, done) + return Client.searchAsync(keyword, function(data, err) + if not data then done(nil, err); return end + local info = data.bookInfo + done(Mapper.search(data), nil, info.isLast ~= 1 and info.isLast ~= true) + end, page) + end, 200, {}, cb) +end + +local RANKS = { + { key = "yuepiao", title = _("月票榜") }, + { key = "hotsales", title = _("畅销榜") }, + { key = "readindex", title = _("阅读指数榜") }, + { key = "newfans", title = _("新人榜") }, + { key = "update", title = _("更新榜") }, + { key = "newbook", title = _("新书榜") }, + { key = "newauthor", title = _("新作者榜") }, +} +local CATS = { + { id = "-1", title = _("全站") }, { id = "21", title = _("玄幻") }, { id = "1", title = _("奇幻") }, + { id = "2", title = _("武侠") }, { id = "22", title = _("仙侠") }, { id = "4", title = _("都市") }, + { id = "15", title = _("现实") }, { id = "6", title = _("军事") }, { id = "5", title = _("历史") }, + { id = "7", title = _("游戏") }, { id = "8", title = _("体育") }, { id = "9", title = _("科幻") }, + { id = "10", title = _("悬疑灵异") }, { id = "20109", title = _("诸天无限") }, { id = "12", title = _("轻小说") }, +} + +--- 默认分类书库;兼容「榜单键:分类号」旧节点,分类和榜单均聚合后续页。 +---@param opts { node?: string, limit?: integer } +---@param cb fun(res: { data: Book[], groups: StoreChipGroup[] }|nil, err: string|nil) +---@return { cancel: fun() } +function Source:browseAsync(opts, cb) + if not opts.node or opts.node:sub(1, 9) == "category?" then + return require("moonsource_qidian.browse").run(self, opts, cb) + end + local key, cat = (opts.node or RANKS[1].key .. ":-1"):match("^(%w+):(-?%d+)$") + if not key then return SourceBase.defer(cb, nil, _("起点分类条件无效")) end + local ranks, cats = {}, {} + for _idx, rank in ipairs(RANKS) do ranks[#ranks + 1] = { id = rank.key .. ":" .. cat, title = rank.title } end + for _idx, row in ipairs(CATS) do cats[#cats + 1] = { id = key .. ":" .. row.id, title = row.title } end + local node = key .. ":" .. cat + table.insert(ranks, 1, { id = "category?catId=21&gender=male", title = _("分类书库") }) + local groups = { Browse.group(ranks, node), Browse.group(cats, node) } + return Browse.pages(function(page, done) + return Client.rankPageAsync(key, cat, page, function(data, err) + if not data then done(nil, err); return end + done(Mapper.rank(data), nil, data.isLast ~= 1 and data.isLast ~= true) + end) + end, opts.limit or 60, groups, cb) +end + +function Source:getDetailAsync(identity, cb) + return SourceBase.defer(cb, identity.book or require("book.books_db").get(self.id, identity.stable_id)) +end + +---@param identity BookIdentity +---@param cb fun(page: table|nil, err: string|nil) +---@return HttpJob +function Source:bookReviewsAsync(identity, cb) + if not require("ui/network/manager"):isConnected() then + return SourceBase.defer(cb, nil, _("网络不可用,请先连接 Wi-Fi")) + end + return Client.bookCircleAsync(identity.stable_id, function(data, err) + if not data then cb(nil, err); return end + cb(require("moonsource_qidian.reviews").bookPage(data)) + end) +end + +--- 强制拉目录并写回;失败由调用方继续用旧缓存。 +---@param identity BookIdentity +---@param cb fun(toc: BookChapter[]|nil, err: string|nil) +---@return { cancel: fun() } +local function fetchTocAsync(self, identity, cb) + local cancelled, job = false, nil + job = Client.catalogAsync(identity.stable_id, function(data, err) + if cancelled then return end + local toc = data and Mapper.toc(data) + if not toc then cb(nil, err); return end + if #toc == 0 then cb(nil, _("起点目录为空")); return end + if not Toc.put(self.id, identity.stable_id, toc) then cb(nil, _("章节目录保存失败")); return end + cb(toc) + end) + return { cancel = function() + cancelled = true + job.cancel() + end } +end + +---@param identity BookIdentity +---@param cb fun(toc: BookChapter[]|nil, err: string|nil) +---@param force boolean|nil 真=跳过缓存强制拉 +---@return { cancel: fun() } +function Source:loadTocAsync(identity, cb, force) + if not force then + local cached = Toc.read(self.id, identity.stable_id) + if cached and #cached > 0 then + return SourceBase.defer(cb, cached) + end + end + return fetchTocAsync(self, identity, cb) +end + +Source.refreshTocAsync = fetchTocAsync + +function Source:openBookAsync(identity, opts, cb) + local Chapter = require("source.chapter") + local open = opts and opts.chapter_idx and Chapter.openAsync or Chapter.openWithUi + local locate = require("book.review_locate") + local reviews = self:paragraphReviewsEnabled() + return open(self, identity, identity.book, opts, { + loadToc = function(ref, done) return self:loadTocAsync(ref, done) end, + fetchContent = Chapter.vipFetcher(self, Client.contentAsync, true, reviews and locate.prepareChapterEnd or nil), + reuse = reviews and locate.reuseChapterEnd or nil, + }, cb) +end + +function Source:prefetchChaptersAsync(identity, toc, from_idx, count, cb) + local Chapter = require("source.chapter") + local locate = require("book.review_locate") + local reviews = self:paragraphReviewsEnabled() + return Chapter.prefetchAsync(identity, identity.book, toc, from_idx, count, { + fetchContent = Chapter.vipFetcher(self, Client.contentAsync, false, reviews and locate.prepareChapterEnd or nil), + reuse = reviews and locate.reuseChapterEnd or nil, + interval_seconds = FETCH_INTERVAL, + }, cb) +end + +function Source:cacheAllChaptersAsync(identity, on_progress, cb, range) + local Chapter = require("source.chapter") + local prepare = self:paragraphReviewsEnabled() and require("book.review_locate").prepareChapterEnd or nil + return Chapter.cacheAllAsync(self, identity, Chapter.vipFetcher(self, Client.contentAsync, false, prepare), on_progress, cb, + FETCH_INTERVAL, range) +end + +--- 阅读页是否显示他人段评(设置页开关,默认关)。 +---@return boolean +function Source:paragraphReviewsEnabled() + return require("source.review_setting").enabled(self.id) +end + +--- 本章有评论的段落(未定位)。 +---@param identity BookIdentity +---@param cb fun(hotspots: QidianReviewHotspot[]|nil, err: string|nil) +---@return { cancel: fun() } +local function hotspotsAsync(self, identity, cb) + local withUid = require("source.with_chapter_uid") + return ReviewCache.hotspotsAsync(identity, function(done) + return withUid.run(self, identity, _("缺少起点章节位置"), function(uid, finish) + return require("moonsource_qidian.reviews").hotspotsAsync(identity.stable_id, uid, finish) + end, done) + end, cb) +end + +function Source:paragraphHotspotsAsync(identity, cb) + return hotspotsAsync(self, identity, function(list, err) + if not list then cb(nil, err); return end + local paragraphs = {} + for _idx, spot in ipairs(list) do + if tonumber(spot.range) > 0 then paragraphs[#paragraphs + 1] = spot end + end + cb(paragraphs) + end) +end + +function Source:chapterReviewHotspotsAsync(identity, cb) + return hotspotsAsync(self, identity, function(list, err) + if not list then cb(nil, err); return end + local ending = {} + for _idx, spot in ipairs(list) do + if spot.range == "-1" then + ending[#ending + 1] = { range = spot.range, text = _("本章讨论"), total = spot.total, + badge = tostring(spot.total), heading = _("章节评论"), + anchor = require("book.review_locate").CHAPTER_ANCHOR } + end + end + cb(ending) + end) +end + +--- 段落按段序定位到章节 HTML(子进程里跑,不碰实例状态)。 +---@param hotspots QidianReviewHotspot[] +---@param html string +---@return table[] +function Source:locateHotspots(hotspots, html) + return require("moonsource_qidian.reviews").locate(hotspots, html) +end + +--- 某段的一页评论;range 是段落序号,max_idx 是已取页数(首页 0)。 +---@param identity BookIdentity +---@param range string +---@param max_idx integer +---@param cb fun(page: WechatReviewPage|nil, err: string|nil) +---@return { cancel: fun() } +function Source:paragraphReviewPageAsync(identity, range, max_idx, cb) + local withUid = require("source.with_chapter_uid") + return ReviewCache.pageAsync(identity, range, max_idx, function(done) + return withUid.run(self, identity, _("缺少起点章节位置"), function(uid, finish) + return require("moonsource_qidian.reviews").pageAsync(identity.stable_id, uid, tonumber(range), max_idx, finish) + end, done) + end, cb) +end + +return Qidian diff --git a/moonsource-qidian.koplugin/moonsource_qidian/verify.lua b/moonsource-qidian.koplugin/moonsource_qidian/verify.lua new file mode 100644 index 0000000..2ee8303 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/verify.lua @@ -0,0 +1,144 @@ +--[[-- +起点图形 / 腾讯验证码桥。浏览器只提交验证码凭据,匿名会话、手机号、短信码留在设备。 + +@module moonsource_qidian.verify +--]] + +local Ext = require("utils.extension") +local _ = require("l10n").get("moonsource_qidian") +---@class QidianVerification +---@field session QidianLogin +---@field challenge table +---@field submit fun(proof: string, cb: fun(data: table|nil, err: string|nil)) +---@field callback fun(data: table|nil, err: string|nil) +---@field ticket string +---@field expires integer +---@field timeout function +---@field dialog BookThemeQR|nil +---@field done boolean|nil +---@field pending boolean|nil +local Verification = {} +Verification.__index = Verification +local sessions = {} + +function Verification:finish(result, err) + if self.done then return end + self.done = true + sessions[self.ticket] = nil + require("ui/uimanager"):unschedule(self.timeout) + local dialog = self.dialog + self.dialog = nil + if dialog then dialog:close() end + self.callback(result, err) +end + +function Verification:cancel() + if self.done then return end + self.session:interrupt() + self:finish(nil, _("验证已取消")) +end + +function Verification.new(session, challenge, submit, cb) + local self = setmetatable({ + session = session, challenge = challenge, submit = submit, callback = cb, + ticket = require("utils.random").hex(24), expires = os.time() + 300, + }, Verification) + self.timeout = require("ui.guard").wrap("qidian verification timeout", function() + self.session:interrupt() + self:finish(nil, _("验证已过期,请重新发起验证")) + end) + sessions[self.ticket] = self + require("ui/uimanager"):scheduleIn(300, self.timeout) + self.dialog = Ext.call("web.open_page", "/qidian_verify.html#" .. self.ticket, + _("起点安全验证"), _("用同一 Wi-Fi 下的手机扫码完成安全验证;手机号、密码和短信码只在设备填写。"), { + close_callback = function() self:cancel() end, + }) + if not self.dialog then self:finish(nil, _("无法打开远程验证,请先连接 Wi-Fi 并启用远程管理功能")) end + return self +end + +local function handle(method, action, params, cb) + local function reply(status, body) cb(status, body, { "Cache-Control: no-store" }) end + if method ~= "POST" then reply(405, { error = "Method Not Allowed" }); return end + local self = type(params.ticket) == "string" and sessions[params.ticket] + if not self or os.time() >= self.expires then + reply(403, { error = _("验证已过期,请重新发起验证") }); return + end + if self.pending then reply(409, { error = _("正在提交验证…") }); return end + if action == "config" or action == "refresh" then + local function config(challenge, err) + if self.done or os.time() >= self.expires then reply(403, { error = _("验证已过期,请重新发起验证") }); return end + if not challenge then reply(400, { error = err }); return end + local mode = tonumber(challenge.nextAction) == 11 and "tencent" or "image" + local function ready(image, reason) + self.pending = false + if self.done then reply(403, { error = _("验证已取消") }); return end + if mode == "image" and not image then reply(400, { error = reason }); return end + reply(200, { + mode = mode, image = image, + appid = challenge.imgSrc:match("[?&]aid=(%d+)") or "1600000770", + title = _("起点安全验证"), instruction = _("请完成下方安全验证"), + pending = _("正在提交验证…"), success = _("验证已提交,请回到设备查看结果。"), + failure = _("验证失败,请重新验证"), retry = _("刷新验证码"), submit = _("提交"), + }) + end + if mode == "tencent" then + if not challenge.imgSrc:find("TCaptcha.js", 1, true) then + self.pending = false + reply(400, { error = _("起点登录需要未支持的验证") }); return + end + ready(nil) + else + self.pending = true + self.session:imageAsync(challenge.imgSrc, ready) + end + end + if action == "refresh" then + self.pending = true + self.session:beginAsync(function(data, err) + self.pending = false + if not data or type(data.imgSrc) ~= "string" or data.imgSrc == "" then + config(nil, err or _("起点验证码刷新失败")); return + end + data.nextAction = data.imgSrc:find("TCaptcha.js", 1, true) and 11 or 8 + self.challenge = data + config(data) + end) + else config(self.challenge) end + return + end + if action ~= "verify" then reply(404, { error = "Not Found" }); return end + local proof + if tonumber(self.challenge.nextAction) == 11 then + if type(params.captcha_ticket) ~= "string" or params.captcha_ticket == "" or #params.captcha_ticket > 4096 + or params.captcha_ticket:match("^trerror_") or type(params.randstr) ~= "string" + or params.randstr == "" or #params.randstr > 256 then + reply(400, { error = _("验证凭据无效") }); return + end + proof = params.randstr .. ";" .. params.captcha_ticket + else + if type(params.code) ~= "string" or params.code == "" or #params.code > 32 then + reply(400, { error = _("请输入验证码") }); return + end + proof = params.code + end + self.pending = true + self.submit(proof, function(data, err) + if self.done then reply(403, { error = _("验证已取消") }); return end + if os.time() >= self.expires then + self:cancel() + reply(403, { error = _("验证已过期,请重新发起验证") }); return + end + if data and tonumber(data.nextAction) == 0 then reply(200, { ok = true }) + else reply(400, { error = err or _("验证失败,请重新验证") }) end + self:finish(data, err) + end) +end + +Ext.add("web.routes", { + name = "qidian_verify", dir = debug.getinfo(1, "S").source:sub(2):match("(.*/)") .. "web", + assets = { "qidian_verify.html", "qidian_verify.js" }, + public = { config = true, refresh = true, verify = true }, handle = handle, +}) + +return Verification diff --git a/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.html b/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.html new file mode 100644 index 0000000..b2d6cd8 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.html @@ -0,0 +1,25 @@ + + + + + + +月读 + + + + +

+

月读

+
+ +

+
+ + + diff --git a/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.js b/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.js new file mode 100644 index 0000000..7607868 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.js @@ -0,0 +1,91 @@ +(async function () { + 'use strict'; + const ticket = location.hash.slice(1); + const status = document.getElementById('status'); + const retry = document.getElementById('retry'); + let messages, captcha, loading = false, submitting = false, done = false; + async function request(action, fields = {}) { + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), 90000); + try { + const response = await fetch('/api/qidian_verify/' + action, { + method: 'POST', headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ ...fields, ticket }), signal: controller.signal, + }); + const result = await response.json(); + if (!response.ok) throw new Error(result.error || response.statusText); + return result; + } finally { clearTimeout(timer); } + } + async function submit(fields) { + if (submitting || done) return; + submitting = true; + status.textContent = messages.pending; + try { + await request('verify', fields); + done = true; + status.textContent = messages.success; + document.getElementById('captcha').hidden = true; + document.getElementById('image-form').hidden = true; + retry.hidden = true; + } catch (error) { status.textContent = error.message; } + finally { submitting = false; } + } + function captchaResult(result) { + if (!result || result.ret !== 0 || result.errorCode || typeof result.ticket !== 'string' + || !result.ticket || result.ticket.startsWith('trerror_') || typeof result.randstr !== 'string' + || !result.randstr) { + status.textContent = messages.failure; + return; + } + return submit({ captcha_ticket: result.ticket, randstr: result.randstr }); + } + function loadScript() { + if (typeof window.TencentCaptcha === 'function') return Promise.resolve(); + return new Promise((resolve, reject) => { + const script = document.createElement('script'); + const timer = setTimeout(() => finish(false), 20000); + function finish(ok) { + clearTimeout(timer); + script.onload = script.onerror = null; + if (ok) resolve(); + else { script.remove(); reject(new Error(messages.failure)); } + } + script.src = 'https://turing.captcha.qcloud.com/TCaptcha.js'; + script.onload = () => finish(typeof window.TencentCaptcha === 'function'); + script.onerror = () => finish(false); + document.head.appendChild(script); + }); + } + async function load(action) { + if (loading || submitting || done) return; + loading = true; + try { + messages = await request(action); + document.title = document.getElementById('title').textContent = messages.title; + document.getElementById('instruction').textContent = messages.instruction; + retry.textContent = messages.retry; + document.getElementById('submit').textContent = messages.submit; + status.textContent = ''; + if (captcha) { captcha.destroy(); captcha = null; } + const container = document.getElementById('captcha'); + container.innerHTML = ''; + container.hidden = messages.mode !== 'tencent'; + document.getElementById('image-form').hidden = messages.mode !== 'image'; + document.getElementById('code').value = ''; + if (messages.mode === 'image') document.getElementById('image').src = messages.image; + else { + await loadScript(); + captcha = new window.TencentCaptcha(container, messages.appid, captchaResult, { type: 'embed' }); + captcha.show(); + } + } catch (error) { status.textContent = error.message; } + finally { loading = false; } + } + document.getElementById('image-form').onsubmit = event => { + event.preventDefault(); + return submit({ code: document.getElementById('code').value }); + }; + retry.onclick = () => load('refresh'); + await load('config'); +})(); diff --git a/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fock.lua b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fock.lua new file mode 100644 index 0000000..faa2689 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fock.lua @@ -0,0 +1,174 @@ +--[[-- +阅文系(起点 / QQ阅读 / 潇湘)Fock 章节解密的公共宿主。 + +三家网页端用同一段反盗版 wasm(经 wasm2js 成 asm.js)解密正文,只是各自一个构建:导出名、回调码、栈基址、 +宿主探测字符串不同。`tools/gen_fock.js` 把每个构建转译成 `source//fock_wasm.lua`,本模块提供它们共用的 +内存、导入函数与调用顺序(ctors + main,再 set_uid → set_key → decrypt,结果经导入 b 的回调码交回: +三个 int:状态、明文指针、明文长度),源只在 `YuewenFockBuild` 表里填自己那份差异。 + +解密要 16MB 内存且纯 Lua 解释执行,在主进程做会拖慢 UI、抬高 KOReader 内存峰值(设备上可被系统杀掉重启), +`Fock.jobAsync` 把它放进 fork 子进程,主进程只收结果;转译出的巨型函数会让 ARM 上的 LuaJIT 编译器段错误, +`decrypt` 期间关掉 JIT,完事开回来(之后的字形比对要靠它)。 + +@module moonsource_qidian.yuewen_fock +--]]-- + +local ffi = require("ffi") +local Job = require("workers.job") +local Text = require("utils.text") + +---@class YuewenFockBuild +---@field wasm string 转译产物模块名(`source..fock_wasm`) +---@field callback integer 导入 b 交回解密结果的回调码 +---@field stack integer set_stack 的栈基址 +---@field exports { ctors: string, main: string, set_uid: string, set_key: string, decrypt: string, stack_save: string, stack_restore: string, alloc: string, malloc: string } 导出名 +---@field probe fun(code: integer): integer 导入 b 收到非回调码(反调试 / 定时器探测)时的返回值 +---@field imports fun(env: YuewenFockEnv): table 构建特有的导入(宿主字符串探测 c / e / f) + +---@class YuewenFockEnv +---@field mem ffi.cdata* 线性内存 +---@field cstr fun(ptr: integer): string 读内存里的 C 字符串 +---@field malloc_str fun(s: string): integer 用导出 malloc 放一个 C 字符串,返回指针 + +local Fock = {} + +local MEM_SIZE = 16 * 1024 * 1024 + +local factories = {} + +--- `Fock.decrypt` 的本体,不碰 JIT 开关。 +---@param build YuewenFockBuild +---@return string|nil text +---@return string|nil err +local function run(build, content, chapter_id, keypool, version, uid) + local factory = factories[build.wasm] + if not factory then + factory = require(build.wasm) + factories[build.wasm] = factory + end + local names = build.exports + local mem = ffi.new("uint8_t[?]", MEM_SIZE) + local i32 = ffi.cast("int32_t*", mem) + local result, exp + + local function cstr(ptr) + local stop = ptr + while mem[stop] ~= 0 do stop = stop + 1 end + return ffi.string(mem + ptr, stop - ptr) + end + local function malloc_str(s) + local ptr = exp[names.malloc](#s + 1) + ffi.copy(mem + ptr, s, #s) + mem[ptr + #s] = 0 + return ptr + end + + local imp = build.imports({ mem = mem, cstr = cstr, malloc_str = malloc_str }) + imp.abort = function() error("fock abort") end + imp.d = function(ptr) + local now = os.time() + if ptr ~= 0 then i32[ptr / 4] = now end + return now + end + imp.b = function(code, _sig, argptr) + if code == build.callback then + local args = argptr / 4 + result = { i32[args], i32[args + 1], i32[args + 2] } + return 0 + end + return build.probe(code) + end + + local data, set_stack + exp, data, set_stack = factory({ mem = mem, imp = imp }) + for _idx, seg in ipairs(data) do + local bytes = Text.base64Decode(seg[2]) + ffi.copy(mem + seg[1], bytes, #bytes) + end + set_stack(build.stack) + + local function with_stack(fn) + local sp = exp[names.stack_save]() + local ok, err = pcall(fn) + exp[names.stack_restore](sp) + if not ok then error(err, 0) end + end + local function put_bytes(s) + local ptr = exp[names.alloc](#s) + ffi.copy(mem + ptr, s, #s) + return ptr + end + local function put_string(s) + local ptr = exp[names.alloc](#s + 1) + ffi.copy(mem + ptr, s, #s) + mem[ptr + #s] = 0 + return ptr + end + + local ok, err = pcall(function() + exp[names.ctors]() + exp[names.main](0, 0) + with_stack(function() + exp[names.set_uid](put_bytes(uid), #uid) + end) + local pool = Text.base64Decode(keypool) + with_stack(function() + exp[names.set_key](put_bytes(pool), #pool, put_string(version)) + end) + local cipher = Text.base64Decode(content) + local cid = tostring(chapter_id) + with_stack(function() + exp[names.decrypt](put_bytes(cipher), #cipher, put_bytes(cid), #cid) + end) + end) + if not ok then return nil, tostring(err) end + if not result then return nil, "no result" end + if result[1] ~= 0 then return nil, "code " .. result[1] end + return ffi.string(mem + result[2], result[3]) +end + +---@param build YuewenFockBuild +---@param content string base64 密文 +---@param chapter_id string|number +---@param keypool string base64 密钥池(fkp 里 onkeyfocus 的第一个参数) +---@param version string +---@param uid string 用户标识(ywguid / fuid) +---@return string|nil text +---@return string|nil err +function Fock.decrypt(build, content, chapter_id, keypool, version, uid) + local jit_was_on = jit.status() + jit.off() + local text, err = run(build, content, chapter_id, keypool, version, uid) + if jit_was_on then jit.on() end + return text, err +end + +--- 在子进程里跑 worker(解密 / 字体还原),结果 `{ text, err }` 经 cb(text, err) 交回主进程。 +---@param name string 任务名(日志) +---@param worker fun(temp_paths: string[]): { text: string|nil, err: string|nil } +---@param cb fun(text: string|nil, err: string|nil) +---@return BookJob +function Fock.jobAsync(name, worker, cb) + local Paths = require("utils.paths") + local temp_paths = { Paths.tmpname(".font"), Paths.tmpname(".font") } + local job + local function cleanup() + -- SIGKILL 后仍可能在内核里完成创建文件,等子进程退出再收尾。 + if job and job.pid and not require("ffi/util").isSubProcessDone(job.pid) then + require("ui/uimanager"):scheduleIn(job.poll, cleanup) + return + end + for _idx, path in ipairs(temp_paths) do os.remove(path) end + end + job = Job.run(function() return worker(temp_paths) end, { + name = name, + kind = "light", + timeout = 600, + on_done = function(res) cleanup(); cb(res.text, res.err) end, + on_failed = function(err) cleanup(); cb(nil, tostring(err)) end, + on_cancelled = cleanup, + }) + return job +end + +return Fock diff --git a/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fonts.lua b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fonts.lua new file mode 100644 index 0000000..4877326 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fonts.lua @@ -0,0 +1,201 @@ +--[[-- +阅文系 VIP 章节的乱序字体还原(QQ阅读 / 起点共用)。 + +Fock 解出的 HTML 里,常用字码位被换成别的字,靠随章下发的 fixedFont 画回真字; +扩展 A 区的生僻码位再靠 randomFont + CSS 排序/伪元素还原。这里把 +`utils.glyph` 的字形识别和 `moonsource_qidian.yuewen_fonts.scramble` 的 HTML 解析拼起来。 + +字体是随章下发的,写临时文件给 FreeType 读;参考字签名会落盘缓存。 + +@module moonsource_qidian.yuewen_fonts +--]]-- + +local Text = require("utils.text") + +local FontRestore = {} + +local RARE_LIMIT, FIXED_LIMIT = 6763, 3755 + +--- 下载回来的字节是不是字体文件(TTF / OTF / TTC / WOFF 魔数)。CDN 的 HTML 错误页也会 200 回来, +--- 写进缓存会被当字体复用,一章章都解不出来。 +---@param bytes string|nil +---@return boolean +function FontRestore.looksLikeFont(bytes) + if type(bytes) ~= "string" or #bytes < 4 then return false end + local head = bytes:sub(1, 4) + return head == "\0\1\0\0" or head == "OTTO" or head == "true" or head == "ttcf" or head == "wOFF" +end + +local function writeTemp(bytes, path) + local file = assert(io.open(path, "wb")) + local ok, err = file:write(bytes) + local closed, close_err = file:close() + assert(ok, err) + assert(closed, close_err) +end + +local function randomFontBytes(font) + local parts = {} + for idx, byte in ipairs(font and font.data or {}) do parts[idx] = string.char(byte) end + return table.concat(parts) +end + +--- 乱序码位 / 互换字形 → 真字。 +---@param random_font table|nil fontResponse.randomFont({data={...}}) +---@param fixed_font string fixedFontTtf/woff2 下载下来的字节 +---@param rare integer[] 扩展 A 区码位 +---@param han integer[] 常用汉字码位 +---@param opts table { threshold=number, temp_paths=string[]|nil } +---@return table rare_map +---@return table han_map +local function recognize(random_font, fixed_font, rare, han, opts) + local rare_bytes = randomFontBytes(random_font) + local paths, labels, tasks = {}, {}, {} + local function cleanup() + for _idx, path in ipairs(paths) do os.remove(path) end + end + if #rare > 0 and #rare_bytes > 0 then + paths[#paths + 1] = opts.temp_paths and opts.temp_paths[1] or require("utils.paths").tmpname(".font") + writeTemp(rare_bytes, paths[#paths]) + labels[#labels + 1] = "rare" + tasks[#tasks + 1] = { + font_path = paths[#paths], codes = rare, limit = RARE_LIMIT, threshold = opts and opts.threshold, + } + end + if #han > 0 and fixed_font and #fixed_font > 0 then + paths[#paths + 1] = opts.temp_paths and opts.temp_paths[2] or require("utils.paths").tmpname(".font") + writeTemp(fixed_font, paths[#paths]) + labels[#labels + 1] = "han" + tasks[#tasks + 1] = { + font_path = paths[#paths], codes = han, limit = FIXED_LIMIT, threshold = opts and opts.threshold, + } + end + if #tasks == 0 then return {}, {} end + + local ref = require("fontlist").fontdir .. "/noto/NotoSansCJKsc-Regular.otf" + local ref_file, ref_err = io.open(ref, "rb") + if not ref_file then cleanup(); error(ref_err, 0) end + local ref_size = ref_file:seek("end") + ref_file:close() + -- 签名只取决于参考字体和算法参数;参考字体换了(大小变)自动重算。 + -- 兼容旧版缓存名(qqreader_glyph_v1_ / glyph_v1_),避免重新渲染 6763 个参考字。 + local cache_dir = require("utils.paths").cacheDir() + local cache = cache_dir .. "/yuewen_glyph_v1_" .. ref_size .. ".bin" + for _idx, legacy in ipairs({ "yuewen_glyph_v1_", "qqreader_glyph_v1_", "glyph_v1_" }) do + local path = cache_dir .. "/" .. legacy .. ref_size .. ".bin" + local f = io.open(path, "rb") + if f then + f:close() + cache = path + break + end + end + local ok, maps = pcall(require("utils.glyph").recognize, ref, cache, tasks) + cleanup() + if not ok then error(maps, 0) end + local rare_map, han_map = {}, {} + for idx, label in ipairs(labels) do + if label == "rare" then rare_map = maps[idx] else han_map = maps[idx] end + end + return rare_map, han_map +end + +local function utf8len(text) + return #Text.chars(text) +end + +local DECOY_SIMILARITY = 0.8 + +local chars = Text.chars + +--- 起点 cES=2 的正文会把同一章再追加一份改了几个字的诱饵副本。 +--- 前后两半段落字数一一对应、且逐字位置上 ≥80% 相同才丢后一半,避免把真实的对称段落误删。 +---@param paragraphs string[] +---@return string[] +local function dropDecoyHalf(paragraphs) + local n = #paragraphs + if n < 4 or n % 2 ~= 0 then return paragraphs end + local half = n / 2 + local same, total = 0, 0 + for i = 1, half do + local a, b = chars(paragraphs[i]), chars(paragraphs[i + half]) + if #a ~= #b then return paragraphs end + for k = 1, #a do + if a[k] == b[k] then same = same + 1 end + end + total = total + #a + end + if total == 0 or same / total < DECOY_SIMILARITY then return paragraphs end + for i = n, half + 1, -1 do paragraphs[i] = nil end + return paragraphs +end + +local fixConfusions + +--- 解出的 HTML 段落还原成纯文本。 +---@param plain string Fock 解出的正文 +---@param font table { css=string, randomFont=table|nil } +---@param fixed_font string|nil fixedFont 下载下来的字节;没有字体加密的章为 nil +---@param opts table|nil { dedupe=boolean, confusions=boolean, threshold=number, temp_paths=string[]|nil } +---@return string +function FontRestore.restore(plain, font, fixed_font, opts) + opts = opts or {} + local Scramble = require("moonsource_qidian.yuewen_fonts.scramble") + local paragraphs = Scramble.paragraphs(plain, font.css or "") + if #paragraphs == 0 then return plain end + if opts.dedupe then paragraphs = dropDecoyHalf(paragraphs) end + local rare, han = Scramble.codes(paragraphs) + local rare_map, han_map = {}, {} + if #rare + #han > 0 then + rare_map, han_map = recognize(font.randomFont, fixed_font, rare, han, opts) + end + local text = Scramble.text(paragraphs, rare_map, han_map) + if opts.confusions then text = fixConfusions(text) end + return text +end + +FontRestore.dropDecoyHalf = dropDecoyHalf + +-- 起点 fixedFont 里 于/干、责/贵 两组字形太近,16x16 相关度会把“关于/终于/负责” +-- 认成“关干/终干/负贵”。只修这些固定搭配;“对干部/在干活”这类保留干。 +local YU_PREFIX = { + ["关"] = true, ["终"] = true, ["对"] = true, ["等"] = true, ["至"] = true, + ["由"] = true, ["属"] = true, ["便"] = true, ["利"] = true, ["善"] = true, + ["敢"] = true, ["勇"] = true, ["难"] = true, ["易"] = true, ["在"] = true, + ["位"] = true, ["鉴"] = true, +} +local YU_KEEP_NEXT = { + ["部"] = true, ["活"] = true, ["事"] = true, ["劲"] = true, ["什"] = true, ["嘛"] = true, ["啥"] = true, + ["吗"] = true, ["吧"] = true, ["净"] = true, ["脆"] = true, ["燥"] = true, ["旱"] = true, ["扰"] = true, + ["预"] = true, ["练"] = true, ["掉"] = true, ["架"] = true, ["涸"] = true, +} +local ZE_PREFIX = { ["职"] = true, ["担"] = true, ["负"] = true, ["责"] = true, ["贵"] = true } +-- 少数整词在 fixedFont 里稳定认错(“泮”几乎只出现在“泮池”,不会误伤正文)。 +local TEXT_FIXES = { + ["同泮"] = "同伴", + ["泮随"] = "伴随", + ["聚干"] = "聚于", +} + +--- 修正两类固定形近字;只在起点字体层启用。 +--- Lua 的字符类是字节级,不能直接拿“部/活”做 [^...],这里按 UTF-8 单字扫描。 +---@param text string +---@return string +fixConfusions = function(text) + local list = Text.chars(text) + for i = 2, #list do + local ch, prev, nxt = list[i], list[i - 1], list[i + 1] + if ch == "干" and YU_PREFIX[prev] and not (nxt and YU_KEEP_NEXT[nxt]) then + list[i] = "于" + elseif ch == "贵" and (ZE_PREFIX[prev] or nxt == "任") then + list[i] = "责" + end + end + local fixed = table.concat(list) + for from, to in pairs(TEXT_FIXES) do fixed = fixed:gsub(from, to) end + return fixed +end + +FontRestore.fixConfusions = fixConfusions + +return FontRestore diff --git a/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fonts/scramble.lua b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fonts/scramble.lua new file mode 100644 index 0000000..66fa9d7 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_fonts/scramble.lua @@ -0,0 +1,162 @@ +--[[-- +QQ阅读正文乱序还原:Fock 解出的是带反爬样式的 HTML,真正的字序和字形要靠随章下发的 CSS 才能还原。 + +- 有 `pN` 类的段落,子元素 `` 按 `yXX{order:n}` 重排(网页是 flex 容器),每个元素再按 + `.pN yXX::first-letter{font-size:0}`(藏掉原字)与 `::before` / `::after` 的 `content`(字面量或 `attr(x)`)还原; +- `` 是 `font-size:0` 的占位,丢弃;`sy-1` 只是镜像显示,文字照留; +- 其余码位落在 CJK 扩展 A 的字,是 randomFont 画出来的真字,由 `glyph.lua` 认出,这里只负责替换。 + +@module moonsource_qidian.yuewen_fonts.scramble +--]]-- + +local Glyph = require("utils.glyph") + +local Scramble = {} + +local CHAR = require("utils.text").UTF8_CHAR + +local UNKNOWN = "□" +local LOW, HIGH = 0x3400, 0x4DBF + +local function expand(css) + return (css:gsub("TS%-1", "transform:scaleX(-1)"):gsub("::B", "::before"):gsub("::A", "::after") + :gsub("{O:", "{order:"):gsub("{C:", "{content:"):gsub("'''", "'\\''")) +end + +--- content 值:'x' / "x" 字面量或 attr(name)。 +local function contentOf(body, attrs) + local value = body:match("content:%s*(.-)%s*;?%s*$") + if not value then return nil end + local name = value:match("^attr%(([%w_-]+)%)$") + if name then return attrs[name] or "" end + return value:match("^'(.*)'$") or value:match('^"(.*)"$') or "" +end + +--- 解析 CSS:order[tag] 与 rules[class .. " " .. tag][self|first-letter|before|after] = body。 +local function parse(css) + local order, rules = {}, {} + for sel, body in expand(css):gmatch("([^{}]+){([^}]*)}") do + sel = sel:match("^%s*(.-)%s*$") + local tag, n = sel:match("^(y[%w_-]*)$"), body:match("^order:(%d+)") + if tag and n then + order[tag] = tonumber(n) + else + local key, pseudo = sel:match("^%.(p%d+ y[%w_-]*)::([%a-]+)$") + if not key then key, pseudo = sel:match("^%.(p%d+ y[%w_-]*)$"), "self" end + if key then + rules[key] = rules[key] or {} + rules[key][pseudo] = body + end + end + end + return order, rules +end + +local function attributes(raw) + local attrs = {} + for name, value in raw:gmatch('([%w_-]+)="([^"]*)"') do attrs[name] = value end + return attrs +end + +local function dropFirst(text) + return (text:gsub("^" .. CHAR, "", 1)) +end + +local function unescape(text) + return (text:gsub("<", "<"):gsub(">", ">"):gsub(""", '"'):gsub("'", "'"):gsub("&", "&")) +end + +local function scrambled(cls, children, order, rules) + for idx, child in ipairs(children) do child.idx = idx end + table.sort(children, function(a, b) + local oa, ob = order[a.tag] or math.huge, order[b.tag] or math.huge + if oa ~= ob then return oa < ob end + return a.idx < b.idx + end) + local out = {} + for _idx, child in ipairs(children) do + local rule = rules[cls .. " " .. child.tag] or {} + local attrs = attributes(child.attrs) + local text = child.text + if rule["first-letter"] and rule["first-letter"]:find("font%-size:%s*0") then text = dropFirst(text) end + out[#out + 1] = (rule.before and contentOf(rule.before, attrs) or "") .. text + .. (rule.after and contentOf(rule.after, attrs) or "") + end + return table.concat(out) +end + +--- 还原一章的段落文本(字形码位还没替换)。 +---@param html string Fock 明文 +---@param css string 章节下发的 CSS +---@return string[] paragraphs +function Scramble.paragraphs(html, css) + local order, rules = parse(css) + local paragraphs = {} + for open, body in html:gmatch("]*)>(.-)

") do + local cls = open:match('class="(p%d+)"') + local text + if cls then + local children = {} + for tag, attrs, inner in body:gmatch("<(y[%w_-]*)([^>]*)>(.-)") do + children[#children + 1] = { tag = tag, attrs = attrs, text = unescape(inner) } + end + text = scrambled(cls, children, order, rules) + else + text = body:gsub('.-', ""):gsub("<[^>]+>", "") + text = unescape(text) + end + if text ~= "" then paragraphs[#paragraphs + 1] = text end + end + return paragraphs +end + +local function isRare(code) + return (code >= LOW and code <= HIGH) or code == 0xF900 +end + +local function isHan(code) + return code >= 0x4E00 and code <= 0x9FA5 +end + +--- 文本里要查字体的码位(去重):rare 走 randomFont,han 走 fixedFont(该字体没有的码位原样保留)。 +---@param paragraphs string[] +---@return integer[] rare +---@return integer[] han +function Scramble.codes(paragraphs) + local seen, rare, han = {}, {}, {} + for _idx, text in ipairs(paragraphs) do + for ch in text:gmatch(CHAR) do + local code = Glyph.codepoint(ch) + if not seen[code] then + seen[code] = true + if isRare(code) then rare[#rare + 1] = code elseif isHan(code) then han[#han + 1] = code end + end + end + end + table.sort(rare) + table.sort(han) + return rare, han +end + +--- 把码位换成真字,认不出的写 □;返回全文(段落以换行连接)。 +---@param paragraphs string[] +---@param rare_map table randomFont 的识别结果 +---@param han_map table fixedFont 的识别结果 +---@return string +function Scramble.text(paragraphs, rare_map, han_map) + local out = {} + for idx, text in ipairs(paragraphs) do + out[idx] = (text:gsub(CHAR, function(ch) + local code = Glyph.codepoint(ch) + local real + if isRare(code) then real = rare_map[code] or false + elseif isHan(code) then real = han_map[code] + else return nil end + if real == nil then return nil end + return real or UNKNOWN + end)) + end + return table.concat(out, "\n") +end + +return Scramble diff --git a/moonsource-qidian.koplugin/moonsource_qidian/yuewen_qr.lua b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_qr.lua new file mode 100644 index 0000000..7b0b942 --- /dev/null +++ b/moonsource-qidian.koplugin/moonsource_qidian/yuewen_qr.lua @@ -0,0 +1,486 @@ +--[[-- +阅文 App 扫码登录(QQ阅读、起点、潇湘共用)。 + +阅文自己的码,用 QQ阅读或起点 App 扫,不是手机 QQ。 +GET /login/qrcode 拿 sessionKey,二维码内容是固定的 scanlogin URL。 +轮询 /login/qrcodelogin。scanStatus 5 时取 ywguid / ywkey;只有 302url 时跟跳收 Set-Cookie。 +拿到 Cookie 交给 on_cookie,由设置页走现有账号校验再保存。 + +@module koplugin.book.moonsource_qidian.yuewen_qr +--]] + +require("l10n").apply() +local JSON = require("json") +local Request = require("http.request") +local Text = require("utils.text") +local logger = require("utils.log") +local _ = require("gettext") + +local QRLogin = {} +QRLogin.__index = QRLogin + +local BASE = "https://ptlogin.yuewen.com" +local POLL_INTERVAL = 3 +local POLL_MAX = 40 +local DEADLINE = 180 +local MAX_HOPS = 5 +local UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 " + .. "(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" + +local KEEP = { ywguid = true, ywkey = true, ywopenid = true } + +---@param value any +---@return string|nil +local function text(value) + if type(value) == "string" and value ~= "" then return value end + if type(value) == "number" then return tostring(value) end +end + +---@return table +function QRLogin:baseParams() + return { + appId = self.spec.app_id, + areaId = self.spec.area_id, + format = "json", + returnurl = self.spec.return_url, + target = "top", + ticket = self.spec.ticket or "0", + autotime = "14", + auto = "0", + } +end + +--- 二维码内容。和官方图里的 URL 同一组参数,顺序无所谓。 +---@param session_key string +---@return string +function QRLogin:scanUrl(session_key) + return BASE .. "/mobile/scanlogin?" .. Text.formEncode({ + sessionkey = session_key, + appid = self.spec.app_id, + areaid = self.spec.area_id, + bookId = "0", + chapterId = "0", + }) +end + +---@param jar table +---@return string +local function cookieHeader(jar) + local keys = {} + for key, value in pairs(jar) do + if KEEP[key] and value ~= "" then keys[#keys + 1] = key end + end + table.sort(keys) + local parts = {} + for i, key in ipairs(keys) do parts[i] = key .. "=" .. jar[key] end + return table.concat(parts, "; ") +end + +---@param jar table +---@param set_cookie string|table|nil +local function takeCookies(jar, set_cookie) + if type(set_cookie) == "table" then + for _key, value in pairs(set_cookie) do takeCookies(jar, value) end + return + end + if type(set_cookie) ~= "string" or set_cookie == "" then return end + for name, value in set_cookie:gmatch("([%w_]+)=([^;,]*)") do + name = name:lower() + value = value:match("^(.-)%s*$") + if KEEP[name] and value ~= "" then jar[name] = value end + end +end + +---@param data table|nil +---@param jar table +local function takeJson(data, jar) + if type(data) ~= "table" then return end + local value = data.ywGuid or data.ywguid + local guid = type(value) == "number" and string.format("%.0f", value) or text(value) + local key = text(data.ywKey or data.ywkey) + local openid = text(data.ywOpenId or data.ywopenid) + if guid then jar.ywguid = guid end + if key then jar.ywkey = key end + if openid then jar.ywopenid = openid end + if type(data.data) == "table" then takeJson(data.data, jar) end +end + +---@param jar table +---@return boolean +local function ready(jar) + return jar.ywguid ~= nil and jar.ywguid ~= "" and jar.ywkey ~= nil and jar.ywkey ~= "" +end + +---@class YuewenQRSpec +---@field app_id string +---@field area_id string +---@field return_url string +---@field referer string +---@field title string +---@field caption string +---@field ticket string|nil 非 0 时必须兑换本站 Web 会话 + +---@param spec YuewenQRSpec +---@param on_cookie fun(cookie: string) +function QRLogin.new(_class, spec, on_cookie) + local self = setmetatable({}, QRLogin) + self.spec = spec + self.on_cookie = on_cookie + self.generation = 0 + self.jar = {} + self.dialog = nil + self.retry_dialog = nil + self.busy = nil + self.job = nil + self.started = 0 + self.polls = 0 + self.session = nil + self.login_completed = false + self.scanned_notified = false + return self +end + +function QRLogin:toast(text_msg) + require("ui.themes.widgets.toast"):new{ text = tostring(text_msg), timeout = 2 }:show() +end + +function QRLogin:closeBusy() + if self.busy then + self.busy:close() + self.busy = nil + end +end + +function QRLogin:showBusy(text_msg) + self:closeBusy() + self.busy = require("ui.themes.widgets.progress_dialog"):new{ + title = self.spec.title, text = text_msg, dismissable = false, + } + self.busy:show() +end + +function QRLogin:_close_dialog() + if self.dialog then + local dialog = self.dialog + self.dialog = nil + dialog:close() + end +end + +function QRLogin:_close_retry() + if self.retry_dialog then + local dialog = self.retry_dialog + self.retry_dialog = nil + dialog:close() + end +end + +function QRLogin:_cancel_job() + if self.job and self.job.cancel then self.job.cancel() end + self.job = nil +end + +function QRLogin:cancel() + self.generation = self.generation + 1 + self.login_completed = false + self:_cancel_job() + self:_close_dialog() + self:_close_retry() + self:closeBusy() + self.jar = {} + self.session = nil + self.polls = 0 + self.scanned_notified = false +end + +---@param url string +---@param cb fun(res: table|nil, err: string|nil) +function QRLogin:_get(url, cb) + local headers = { + ["User-Agent"] = UA, + Accept = "application/json, text/javascript, */*", + Referer = self.spec.referer, + } + local host = url:match("^https://([^/?#]+)") + if host == self.spec.return_url:match("^https://([^/?#]+)") then + local cookie = cookieHeader(self.jar) + if cookie ~= "" then headers.Cookie = cookie end + end + local pending, gen = true, self.generation + local job = Request.request({ + url = url, + method = "GET", + headers = headers, + timeout = require("http.timeout").net(0.5), + allow_redirects = false, + }, function(res, err) + pending = false + if gen ~= self.generation then return end + self.job = nil + if err or not res then + cb(nil, err and tostring(err) or _("请求失败")) + return + end + local code = tonumber(res.code) + if not code or code < 200 or code >= 400 then + cb(nil, "HTTP " .. tostring(res.code)) + return + end + cb(res) + end) + if pending then self.job = job end +end + +---@param res table|nil +---@return table|nil +local function decode(res) + local body = res and res.body + if type(body) ~= "string" or body == "" then return nil end + local ok, wire = pcall(JSON.decode, body) + if not ok or type(wire) ~= "table" then return nil end + return wire +end + +function QRLogin:_expired() + return self.polls >= POLL_MAX or os.time() - self.started > DEADLINE +end + +---@param gen integer +---@param session string +function QRLogin:_later(gen, session) + require("ui/uimanager"):scheduleIn(POLL_INTERVAL, function() + self:_poll(gen, session) + end) +end + +---@param gen integer +function QRLogin:_show(gen, session) + if gen ~= self.generation then return end + self:closeBusy() + self.session = session + self.polls = 0 + local dialog + dialog = require("ui.themes.widgets.qr"):new{ + title = self.spec.title, + text = self:scanUrl(session), + caption = self.spec.caption, + close_callback = function() + if self.dialog == dialog then self.dialog = nil end + if gen == self.generation and not self.login_completed then + self:cancel() + self:toast(_("已取消登录")) + end + end, + } + self.dialog = dialog + dialog:show() + logger.info("[YuewenQR] 二维码已显示") + self:_later(gen, session) +end + +function QRLogin:start() + self:cancel() + local gen = self.generation + self.started = os.time() + self.jar = {} + self:showBusy(_("获取二维码中...")) + local params = self:baseParams() + self:_get(BASE .. "/login/qrcode?" .. Text.formEncode(params), function(res, err) + if gen ~= self.generation then return end + local wire = decode(res) + local session = wire and type(wire.data) == "table" and text(wire.data.sessionKey) + if not session or tonumber(wire.code) ~= 0 then + self:closeBusy() + logger.warn("[YuewenQR] 获取二维码失败:", err or (wire and wire.message)) + self:show_retry(_("获取二维码失败")) + return + end + self:_show(gen, session) + end) +end + +---@param gen integer +---@param jar table +function QRLogin:_done(gen, jar) + if gen ~= self.generation or self.login_completed then return end + if not ready(jar) then + self:show_retry(_("登录失败:未获取到登录态")) + return + end + self.login_completed = true + self.generation = self.generation + 1 + self:_cancel_job() + self:_close_dialog() + self:_close_retry() + self:closeBusy() + local cookie = cookieHeader(jar) + logger.info("[YuewenQR] 登录态已拿到") + if self.on_cookie then self.on_cookie(cookie) end +end + +---@param gen integer +---@param url string +---@param hop integer +function QRLogin:_follow(gen, url, hop) + if gen ~= self.generation then return end + local host = type(url) == "string" and url:match("^https://([^/?#]+)") + local target = self.spec.return_url:match("^https://([^/?#]+)") + if not host or (host ~= target and host ~= "ptlogin.yuewen.com" + and host ~= "passport.yuewen.com" and host ~= "passport.qidian.com" + and host ~= "login.book.qq.com") or hop > MAX_HOPS then + self:show_retry(_("登录失败:未获取到登录态")) + return + end + self:showBusy(_("正在完成登录...")) + self:_get(url, function(res, err) + if gen ~= self.generation then return end + if not res then + logger.warn("[YuewenQR] 跟跳失败:", err) + self:show_retry(_("登录失败:未获取到登录态")) + return + end + for _idx, value in ipairs(Request.headerAll(res, "Set-Cookie")) do takeCookies(self.jar, value) end + local location = Text.absoluteUrl(url, Request.header(res, "Location")) + if tonumber(res.code) >= 300 then + if not location then + self:show_retry(_("登录失败:未获取到登录态")); return + end + self:_follow(gen, location, hop + 1) + return + end + -- ticket=1 仍要求落到本站 host;本站实际上常常不 Set-Cookie ywkey(只有 abPolicies), + -- 不能把「见到 ywkey Set-Cookie」当成兑换成功条件,否则扫码永远失败。 + if ready(self.jar) and (self.spec.ticket ~= "1" or host == target) then + self:_done(gen, self.jar) + return + end + if not location then + self:show_retry(_("登录失败:未获取到登录态")) + return + end + self:_follow(gen, location, hop + 1) + end) +end + +---@param gen integer +---@param session string +---@param wire table +---@param res table +function QRLogin:_on_poll(gen, session, wire, res) + for _idx, value in ipairs(Request.headerAll(res, "Set-Cookie")) do takeCookies(self.jar, value) end + local data = type(wire.data) == "table" and wire.data or {} + takeJson(data, self.jar) + takeJson(wire, self.jar) + local status = tonumber(wire.scanStatus) + local code = tonumber(wire.code) + if code == -11033 then + self:show_retry(text(wire.message) or _("登录失败")) + return + end + if status == 5 and code == 0 then + local ticket = text(data.ticket) or text(wire.ticket) + local jump = text(data["302url"]) or text(wire["302url"]) + -- 起点 ticket=1:裸 302url(https://m.qidian.com/ 无 ticket)没用,改成本站 ticket 兑换。 + -- 若 302url 走 ptlogin 中转,照跟——那才是会带上完整跳转链的路径。 + if self.spec.ticket == "1" then + local target = self.spec.return_url:match("^https://([^/?#]+)") + local jump_host = jump and jump:match("^https://([^/?#]+)") + local bare_home = jump_host == target and not jump:find("ticket=", 1, true) + if ticket and (not jump or bare_home) then + jump = self.spec.return_url .. (self.spec.return_url:find("?", 1, true) and "&" or "?") + .. Text.formEncode({ + ticket = ticket, + ywguid = self.jar.ywguid or "", + ywOpenId = self.jar.ywopenid or "", + }) + elseif not jump then + self:show_retry(_("登录失败:未获取到登录态")) + return + end + self:_follow(gen, jump, 1) + return + end + if jump then + self:_follow(gen, jump, 1) + return + end + if ready(self.jar) then + self:_done(gen, self.jar) + return + end + self:show_retry(_("登录失败:未获取到登录态")) + return + end + if status == 3 then + logger.info("[YuewenQR] 手机取消,刷新二维码") + self.generation = self.generation + 1 + self:_close_dialog() + self:start() + return + end + if status == 4 or self:_expired() then + self:show_retry(_("二维码已过期")) + return + end + if status == 1 and not self.scanned_notified then + self.scanned_notified = true + self.polls = 0 + self.started = os.time() + self:toast(_("已扫码,请在手机上确认")) + end + self:_later(gen, session) +end + +---@param gen integer +---@param session string +function QRLogin:_poll(gen, session) + if gen ~= self.generation or session ~= self.session then return end + if self:_expired() then + self:show_retry(_("二维码已过期")) + return + end + self.polls = self.polls + 1 + local params = self:baseParams() + params.qrcode = session + self:_get(BASE .. "/login/qrcodelogin?" .. Text.formEncode(params), function(res, err) + if gen ~= self.generation or session ~= self.session then return end + local wire = decode(res) + if not wire then + if self.polls == 1 or self.polls % 5 == 0 then + logger.warn("[YuewenQR] 轮询失败:", err) + end + if self:_expired() then + self:show_retry(_("二维码已过期")) + return + end + self:_later(gen, session) + return + end + self:_on_poll(gen, session, wire, res) + end) +end + +function QRLogin:show_retry(msg) + self.generation = self.generation + 1 + self:_cancel_job() + self:_close_dialog() + self:_close_retry() + self:closeBusy() + local dialog + dialog = require("ui.themes.widgets.confirm"):new{ + text = tostring(msg), + ok_text = _("重新获取"), + ok_callback = function() + if self.retry_dialog == dialog then self.retry_dialog = nil end + self:start() + end, + cancel_callback = function() + if self.retry_dialog == dialog then self.retry_dialog = nil end + self:cancel() + end, + } + self.retry_dialog = dialog + dialog:show() +end + +return QRLogin diff --git a/tests/qidian/browse_spec.lua b/tests/qidian/browse_spec.lua new file mode 100644 index 0000000..08f426e --- /dev/null +++ b/tests/qidian/browse_spec.lua @@ -0,0 +1,115 @@ +--[[-- 起点分类:动态菜单、男 / 女频筛选、去重分页、错误与取消。 @module tests.moonsource_qidian.browse_spec --]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") +local requests, pages, failure, delayed, late, cancelled = {}, {}, nil, false, nil, nil +local metadata = { + orderBy = { items = { { text = "人气", value = "" }, { text = "时间", value = "4" } } }, + filters = { + { key = "subCatId", title = "子分类", items = { { text = "全部", value = "" }, { text = "东方玄幻", value = 8 } } }, + { key = "isvip", title = "资费", items = { { text = "全部", value = "" }, { text = "VIP", value = 1 } } }, + { key = "isfinish", title = "状态", items = { { text = "全部", value = "" }, { text = "完本", value = 1 } } }, + }, +} +package.preload["moonsource_qidian.client"] = function() + return { + categoryAsync = function(cat, cb) + requests[#requests + 1] = cat or "index" + cb(cat and metadata or { info = { { catId = 21, catName = "玄幻" }, { catId = 22, catName = "仙侠" } } }) + return { cancel = function() cancelled = "metadata" end } + end, + categoryListAsync = function(params, cb) + requests[#requests + 1] = params + local function done() + if failure == params.pageNum then cb(nil, "offline") + else cb({ records = pages[params.pageNum] or {}, pageNum = params.pageNum, + isLast = params.pageNum >= #pages and 1 or 0, pageMax = 50 }) end + end + if delayed then late = done else done() end + return { cancel = function() cancelled = "page" end } + end, + } +end +local Library = require("moonsource_qidian.browse") +local function row(id) return { bid = id, bName = "书" .. id } end +local function reset() + requests, failure, delayed, late, cancelled = {}, nil, false, nil, nil + pages = { { row(1), row(2) }, { row(2), row(3) }, { row(4), row(5) } } +end + +do + reset() + local source, result = {}, nil + Library.run(source, { limit = 5 }, function(value) result = value end) + Assert.len(result.data, 5, "合并后续页并按稳定身份去重") + Assert.eq(result.data[3].stable_id, "3") + Assert.eq(requests[1], "index") + Assert.eq(requests[2], "21") + Assert.eq(requests[5].pageNum, 3) + Assert.len(source.category_info, 2, "动态分类归源实例所有") + Assert.len(result.groups, 6, "资费、状态各自成组,不再把选中标记写进标题") + Assert.eq(result.groups[4].title, "子分类") + Assert.eq(result.groups[5].title, "资费") + Assert.eq(result.groups[6].title, "状态") + Assert.eq(result.groups[5].chips[2].title, "VIP") + Assert.eq(result.groups[1].chips[3].id, "yuepiao:-1", "分类页仍可进入原榜单") + Assert.matches(result.groups[2].chips[2].id, "catId=22") +end + +do + reset() + local result + Library.run({}, { node = "category?catId=80&gender=female&isvip=1&isfinish=1&orderBy=4", limit = 2 }, + function(value) result = value end) + Assert.eq(requests[3].gender, "female") + Assert.eq(requests[3].catId, "80") + Assert.eq(requests[3].isvip, "1") + Assert.eq(requests[3].isfinish, "1") + Assert.eq(requests[3].orderBy, "4") + Assert.eq(result.groups[2].chips[1].title, "古代言情") + Assert.matches(result.groups[1].chips[1].id, "catId=21") + Assert.matches(result.groups[1].chips[1].id, "isvip=1", "跨频道保留兼容条件") + Assert.eq(result.groups[5].chips[2].title, "VIP") + Assert.eq(result.groups[5].active, result.groups[5].chips[2].id, "资费用 group.active 标选中") + Assert.eq(result.groups[6].chips[2].title, "完本") + Assert.eq(result.groups[6].active, result.groups[6].chips[2].id) +end + +do + reset() + failure = 2 + local result, err + Library.run({}, { limit = 5 }, function(value, reason) result, err = value, reason end) + Assert.is_nil(result, "中间页失败不能伪装成完整列表") + Assert.eq(err, "offline") +end + +do + reset() + pages = { { row(1) }, { row(1) }, { row(2) } } + local result, err + Library.run({}, { limit = 5 }, function(value, reason) result, err = value, reason end) + Assert.is_nil(result, "源重复整页不能无限循环") + Assert.is_true(err ~= nil) +end + +do + reset() + delayed = true + local called = false + local job = Library.run({}, { limit = 5 }, function() called = true end) + job.cancel() + Assert.eq(cancelled, "page", "同步目录回调不能覆盖在飞分页的句柄") + late() + Assert.is_false(called) + Assert.len(requests, 3) +end + +do + reset() + pages = { {} } + local result + Library.run({}, { limit = 60 }, function(value) result = value end) + Assert.len(result.data, 0) + Assert.len(requests, 3) +end diff --git a/tests/qidian/cache_spec.lua b/tests/qidian/cache_spec.lua new file mode 100644 index 0000000..73f7560 --- /dev/null +++ b/tests/qidian/cache_spec.lua @@ -0,0 +1,39 @@ +--[[-- 起点升级离线缓存不删章节,启用章评时原地追加入口。 @module tests.moonsource_qidian.cache_spec --]] +local Assert = require("support.assert") +local Config = require("support.config") +Config.setupNativePath() +local lfs = require("libs/libkoreader-lfs") +local Paths = require("utils.paths") +local source = require("moonsource_qidian.source").new() +local dir = Config.dir() .. "/qidian-cache-preserve" +lfs.mkdir(dir) +local path = dir .. "/1.html" +local file = assert(io.open(path, "wb")) +file:write("

离线可读正文

") +file:close() +local work_dir = Paths.bookWorkDir +Paths.bookWorkDir = function() return dir end +source.paragraphReviewsEnabled = function() return true end +package.loaded["source.chapter"] = nil +package.preload["source.chapter"] = function() + return { + vipFetcher = function() return function() error("缓存命中不应拉正文") end end, + openAsync = function(_source, _identity, _book, _opts, ops, cb) + Assert.is_true(ops.reuse(path)) + cb(path) + return { cancel = function() end } + end, + } +end +local opened +source:openBookAsync({ source_id = "ext.qidian", stable_id = "fixture" }, { chapter_idx = 1 }, + function(value) opened = value end) +Assert.eq(opened, path) +file = assert(io.open(path, "rb")) +local html = file:read("*a") +file:close() +Assert.matches(html, "

离线可读正文

") +Assert.matches(html, 'id="moon%-chapter%-reviews"') +Paths.bookWorkDir = work_dir +os.remove(path) +lfs.rmdir(dir) diff --git a/tests/qidian/login_spec.lua b/tests/qidian/login_spec.lua new file mode 100644 index 0000000..ad2bdda --- /dev/null +++ b/tests/qidian/login_spec.lua @@ -0,0 +1,119 @@ +--[[-- 起点短信候选会话:图形 / 短信 key、官方兑换、取消与同步回调。 @module tests.moonsource_qidian.login_spec --]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") +local JSON = require("support.json_stub") +local Text = require("utils.text") +package.preload["json"] = function() return JSON end +local responses, requests, cancelled, late = {}, {}, {}, nil +package.preload["http.request"] = function() + return { + request = function(opts, cb) + requests[#requests + 1] = opts + local index, res = #requests, table.remove(responses, 1) + if res.defer then late = function() cb(res, res.err) end else cb(res, res.err) end + return { cancel = function() cancelled[#cancelled + 1] = index end } + end, + header = function(res, key) return (res.headers or {})[key] end, + headerAll = function(res, key) + local value = (res.headers or {})[key] + return type(value) == "table" and value or (value and { value } or {}) + end, + } +end +local Login = require("moonsource_qidian.login") +local function wire(data) + return { code = 200, body = JSON.encode({ code = 0, data = data }) } +end +local function params(index) + local result = {} + for key, value in requests[index].url:match("%?(.*)"):gmatch("([^&=]+)=([^&]*)") do + result[key] = Text.urlDecode(value) + end + return result +end +local function reset() responses, requests, cancelled, late = {}, {}, {}, nil end + +do + reset() + local init = wire({ sessionKey = "image-key", imgSrc = "https://ptlogin.yuewen.com/image" }) + init.headers = { ["Set-Cookie"] = { "al=anonymous; Path=/", "session=anonymous-session; Path=/" } } + responses = { init, wire({ nextAction = 0, sessionKey = "sms-key" }), + wire({ nextAction = 0, ticket = "ticket", ywGuid = "raw-guid", ywKey = "raw-key" }), + { code = 302, headers = { Location = "/done", ["Set-Cookie"] = { "ywguid=321; Path=/", "ywkey=site-key; Path=/" } } }, + { code = 200, body = "OK" } } + local session, cookie = Login.new() + session:beginAsync(function(data) Assert.is_true(data ~= nil) end) + session:sendCodeAsync("+86", "13800000000", "image-code", function(data) Assert.eq(data.nextAction, 0) end) + session:verifyAsync("13800000000", "123456", function(value) cookie = value end) + Assert.eq(params(2).sessionKey, "image-key") + Assert.eq(params(2).validateCode, "image-code") + Assert.eq(params(2).inputUserId, "+8613800000000") + Assert.eq(params(2).phoneIsAbroad, "0") + Assert.eq(params(2).auto, "anonymous") + Assert.eq(params(3).sessionKey, "sms-key") + Assert.eq(params(3).inputUserId, "13800000000", "官方短信提交不带国际区号") + Assert.matches(cookie, "ywguid=321") + Assert.matches(cookie, "ywkey=site%-key") + Assert.is_nil(cookie:find("_csrfToken", 1, true), "短信登录也不造假 csrf,交给 loginCheck 合并") + Assert.is_nil(cookie:find("anonymous", 1, true), "匿名登录域 Cookie 不保存为书源凭据") + Assert.is_nil(requests[1].headers.Cookie:find("ywkey", 1, true), "候选会话不读已保存账号") + Assert.eq(requests[3].allow_redirects, false) +end + +do + reset() + responses = { wire({ nextAction = 11, sessionKey = "captcha-key", + imgSrc = "https://turing.captcha.qcloud.com/TCaptcha.js?aid=1600000770" }), + wire({ nextAction = 0, sessionKey = "sms" }) } + local session = Login.new() + session:sendCodeAsync("+852", "12345678", nil, function(data) Assert.eq(data.nextAction, 11) end) + session:sendCodeAsync("+852", "12345678", "random;proof", function(data) Assert.eq(data.nextAction, 0) end) + Assert.eq(params(2).sessionKey, "captcha-key") + Assert.eq(params(2).validateCode, "random;proof") + Assert.eq(params(1).phoneIsAbroad, "1") + Assert.eq(session.sms_key, "sms") +end + +do + reset() + responses = { { code = 200, body = "not json" }, wire({ nextAction = 99 }) } + local session, err = Login.new() + session:beginAsync(function(value, reason) Assert.is_nil(value); err = reason end) + Assert.matches(err, "响应无效") + session:sendCodeAsync("+86", "13800000000", nil, function(value, reason) Assert.is_nil(value); err = reason end) + Assert.matches(err, "未支持") +end + +do + reset() + responses = { wire({ nextAction = 0, ticket = "ticket", ywGuid = "123", ywKey = "raw" }), + { code = 302, headers = { Location = "/done" } }, { code = 200, body = "OK", defer = true } } + local session, called = Login.new(), false + session.sms_key = "sms" + session:verifyAsync("13800000000", "123456", function() called = true end) + session:cancel() + Assert.eq(cancelled[1], 3, "同步首段回调不能覆盖后续兑换的取消句柄") + late() + Assert.is_false(called) + Assert.is_nil(session.sms_key) + Assert.is_nil(next(session.webjar)) +end + +do + reset() + responses = { wire({ nextAction = 0, ["302url"] = "https://qidian.com.evil.example/x", ywGuid = "1", ywKey = "k" }) } + local session, err = Login.new() + session.sms_key = "sms" + session:verifyAsync("13800000000", "123456", function(value, reason) Assert.is_nil(value); err = reason end) + Assert.matches(err, "跳转地址无效") + Assert.len(requests, 1) +end + +do + reset() + responses = { { code = 200, body = "\137PNG\r\n\26\nimage" } } + local image + Login.new():imageAsync("/image", function(value) image = value end) + Assert.matches(image, "^data:image/png;base64,") +end diff --git a/tests/qidian/phone_login_spec.lua b/tests/qidian/phone_login_spec.lua new file mode 100644 index 0000000..71a76e5 --- /dev/null +++ b/tests/qidian/phone_login_spec.lua @@ -0,0 +1,64 @@ +--[[-- 起点短信窗口:同意协议、断网、冷却、绑定手机号与取消。 @module tests.moonsource_qidian.phone_login_spec --]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") +local Theme = require("support.theme_stubs") +Theme.install() +local connected, begins, sends, verifies, cancelled, deferred, late = true, 0, 0, 0, 0, false, nil +package.preload["ui/network/manager"] = function() return { isConnected = function() return connected end } end +package.preload["moonsource_qidian.login"] = function() + return { new = function() return { + beginAsync = function(self, cb) begins = begins + 1; self.initialized = true; cb({}) end, + sendCodeAsync = function(_self, country, phone, proof, cb) + sends = sends + 1 + Assert.eq(country, "+86"); Assert.eq(phone, "13800000000"); Assert.is_nil(proof) + cb({ nextAction = 0 }) + end, + verifyAsync = function(_self, phone, code, cb) + verifies = verifies + 1 + Assert.eq(phone, "13800000000"); Assert.eq(code, "123456") + if deferred then late = function() cb("candidate") end else cb("candidate") end + end, + cancel = function() cancelled = cancelled + 1 end, + } end } +end +local Phone = require("moonsource_qidian.phone_login") +local cookie +local phone = Phone.new(function(value) cookie = value end) +phone:start() +Assert.eq(Theme.last("input").title, "起点手机号验证码登录") +Assert.is_true(Theme.last("input").keep_open) + +connected = false +phone:send("+86", "13800000000") +Assert.eq(sends, 0) +Assert.matches(Theme.last("toast").text, "网络不可用") +connected = true +phone:send("+86", "invalid") +Assert.eq(sends, 0) +phone:send("+86", "13800000000") +Assert.eq(begins, 0, "同意协议前不初始化或发送短信") +Theme.last("confirm").ok_callback() +Assert.eq(begins, 1) +Assert.eq(sends, 1) +phone:send("+86", "13800000000") +Assert.eq(sends, 1, "冷却期不重复发短信") +phone:verify("+86", "13900000000", "123456") +Assert.eq(verifies, 0, "不能把验证码用于另一个手机号") +phone:verify("+86", "13800000000", "abc") +Assert.eq(verifies, 0) +phone:verify("+86", "13800000000", "123456") +Assert.eq(cookie, "candidate") +Assert.is_true(Theme.last("input").closed) +Assert.eq(cancelled, 1) + +phone = Phone.new(function() Assert.is_true(false, "取消后不得保存迟到候选") end) +phone:start() +phone.agreed = true +phone:send("+86", "13800000000") +deferred = true +phone:verify("+86", "13800000000", "123456") +phone:cancel() +late() +Assert.eq(cancelled, 2) +Assert.is_nil(phone.phone) diff --git a/tests/qidian/qidian_content_spec.lua b/tests/qidian/qidian_content_spec.lua new file mode 100644 index 0000000..b5401f7 --- /dev/null +++ b/tests/qidian/qidian_content_spec.lua @@ -0,0 +1,193 @@ +--[[-- +起点正文流程:cES=2 先下字体再解密,cES=0/fEnS=0 直接出文本。 + +@module tests.source.qidian_content_spec +--]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") +local JSONStub = require("support.json_stub") +local Text = require("utils.text") + +package.preload["json"] = function() + return { decode = JSONStub.decode, encode = JSONStub.encode } +end + +local cfg = { cookie = "ywguid=123; ywkey=k" } +package.preload["utils.settings"] = function() + return { getSource = function() return cfg end } +end + +local replies, deferred, requested_cookie = {}, nil, nil +package.preload["http.request"] = function() + return { + get = function(url, opts, cb) + requested_cookie = opts.headers and opts.headers.Cookie + local reply = table.remove(replies, 1) + if reply and reply.defer then deferred = function() cb(reply.body, reply.err, reply.res) end + else cb(reply and reply.body, reply and reply.err, reply and reply.res) end + return { cancel = function() end } + end, + } +end + +local FONT_BYTES = "\0\1\0\0FONTBYTES" +local fock_calls = {} +package.preload["moonsource_qidian.fock"] = function() + return { + chapterAsync = function(info, font, chapter_id, keypool, version, uid, cb) + fock_calls[#fock_calls + 1] = { + kind = "chapter", font = font, chapter_id = chapter_id, + keypool = keypool, version = version, uid = uid, + } + cb("RESTORED") + return { cancel = function() end } + end, + restoreAsync = function(html, info, font, cb) + fock_calls[#fock_calls + 1] = { kind = "restore", font = font, html = html } + cb("RESTORED") + return { cancel = function() end } + end, + decryptAsync = function(content, chapter_id, keypool, version, uid, cb) + fock_calls[#fock_calls + 1] = { kind = "decrypt", uid = uid } + cb("

甲

") + return { cancel = function() end } + end, + } +end + +package.loaded["moonsource_qidian.client"] = nil +package.loaded["moonsource_qidian.mapper"] = nil +local Client = require("moonsource_qidian.client") + +local function page(info, user) + return '" +end + +local function fkp() + return Text.base64Encode('window.onkeyfocus("KEYPOOL", 1635757421)') +end + +local function info(extra) + local out = { + chapterName = "第一章", chapterId = 9, vipStatus = 1, isBuy = 1, + content = "CIPHER", fkp = fkp(), cES = 0, fEnS = 0, + } + for k, v in pairs(extra or {}) do out[k] = v end + return out +end + +do + -- 扫码 Cookie 的 GUID 不一定是章节响应的解码身份;用响应确认的 GUID。 + local html = page(info({ fEnS = 1 })):gsub('"pageData":{', '"pageData":{"user":{"guid":1234567890123456},') + replies = { { body = html } } + fock_calls = {} + local text + Client.contentAsync("1", "2", function(value) text = value end) + Assert.is_true(text ~= nil) + Assert.eq(fock_calls[1].uid, "1234567890123456", "LuaJIT tostring 会把长整数变成科学计数法") +end + +do + -- 请求发出后换账号,旧响应仍绑定原请求,不重新读新 Cookie。 + cfg.cookie = "ywguid=123; ywkey=old" + replies = { { defer = true, body = page(info({ fEnS = 1 })) } } + fock_calls = {} + Client.contentAsync("1", "2", function() end) + Assert.eq(requested_cookie, cfg.cookie) + cfg.cookie = "ywguid=999; ywkey=new" + deferred() + Assert.eq(fock_calls[1].uid, "123") + cfg.cookie = "ywguid=123; ywkey=k" +end + +do + replies = { { defer = true, body = page(info({ fEnS = 1 })) } } + fock_calls = {} + local called = false + local job = Client.contentAsync("1", "2", function() called = true end) + job.cancel() + deferred() + Assert.is_false(called, "取消后不交付迟到正文") + Assert.len(fock_calls, 0) +end + +do + -- 免费 / 普通章:不走 Fock,也不下字体。 + replies = { { body = page(info({ content = "

甲

" })) } } + fock_calls = {} + local text + Client.contentAsync("1", "2", function(v) text = v end) + Assert.eq(text, "\n甲\n") + Assert.len(fock_calls, 0) +end + +do + -- Fock + cES=2:先拉 fixedFontTtf,再把字节交给解密 + 字体还原。 + replies = { + { body = page(info({ fEnS = 1, cES = 2, fixedFontTtf = "https://font/fixed.ttf", randomFont = "{}", css = "" })) }, + { body = FONT_BYTES }, + } + fock_calls = {} + local text + Client.contentAsync("1", "2", function(v) text = v end) + Assert.eq(text, "RESTORED") + Assert.len(fock_calls, 1) + Assert.eq(fock_calls[1].kind, "chapter") + Assert.eq(fock_calls[1].font, FONT_BYTES) + Assert.eq(fock_calls[1].uid, "123") + Assert.eq(fock_calls[1].keypool, "KEYPOOL") + Assert.eq(fock_calls[1].version, "1635757421") +end + +do + -- 只有字体层(fEnS=0):直接还原 HTML,不做 Fock。 + replies = { + { body = page(info({ fEnS = 0, cES = 2, fixedFontTtf = "https://font/fixed.ttf", randomFont = "{}", css = "" })) }, + { body = FONT_BYTES }, + } + fock_calls = {} + local text + Client.contentAsync("1", "2", function(v) text = v end) + Assert.eq(text, "RESTORED") + Assert.len(fock_calls, 1) + Assert.eq(fock_calls[1].kind, "restore") + Assert.eq(fock_calls[1].font, FONT_BYTES) +end + +do + -- 未识别的 cES 明确报错,不能把密文当正文。 + replies = { { body = page(info({ fEnS = 0, cES = 1 })) } } + fock_calls = {} + local text, err + Client.contentAsync("1", "2", function(v, e) text, err = v, e end) + Assert.is_nil(text) + Assert.is_true(err ~= nil and err:find("不受支持", 1, true) ~= nil) + Assert.len(fock_calls, 0) +end + +do + -- CDN 返回 HTML 错误页而不是字体:按下载失败处理。 + replies = { + { body = page(info({ fEnS = 1, cES = 2, fixedFontTtf = "https://font/fixed.ttf", randomFont = "{}", css = "" })) }, + { body = "403" }, + } + fock_calls = {} + local text, err + Client.contentAsync("1", "2", function(v, e) text, err = v, e end) + Assert.is_nil(text) + Assert.is_true(err ~= nil and err:find("字体下载失败", 1, true) ~= nil) + Assert.len(fock_calls, 0) +end + +do + -- cES=2 但没有字体地址:明确报错,不把错字当正文。 + replies = { { body = page(info({ fEnS = 1, cES = 2, randomFont = "{}", css = "" })) } } + fock_calls = {} + local text, err + Client.contentAsync("1", "2", function(v, e) text, err = v, e end) + Assert.is_nil(text) + Assert.is_true(err ~= nil and err:find("字体", 1, true) ~= nil) + Assert.len(fock_calls, 0) +end diff --git a/tests/qidian/qidian_fock_spec.lua b/tests/qidian/qidian_fock_spec.lua new file mode 100644 index 0000000..01e3b83 --- /dev/null +++ b/tests/qidian/qidian_fock_spec.lua @@ -0,0 +1,120 @@ +--[[-- +起点 VIP 章节解密(Fock 转译版)离线用例。 + +@module tests.source.qidian_fock_spec +--]] +---@diagnostic disable: undefined-field + +local Assert = require("support.assert") +local Sample = require("support.qidian_fock_sample") +local Fock = require("moonsource_qidian.fock") + +local plain, err = Fock.decrypt(Sample.content, Sample.chapter_id, Sample.keypool, Sample.version, Sample.uid) +Assert.is_nil(err) +Assert.eq(#plain, 13654) +Assert.eq(plain:sub(1, 3), "

") +Assert.matches(plain, "光王街") + +-- 子进程任务:worker 结果经 on_done 交回 +local Job = require("workers.job") +local real_run = Job.run +Job.run = function(worker, opts) opts.on_done(worker(function() end)); return {} end +local async_text +Fock.decryptAsync(Sample.content, Sample.chapter_id, Sample.keypool, Sample.version, Sample.uid, + function(text) async_text = text end) +Job.run = real_run +Assert.eq(async_text, plain) + +-- 共用宿主 moonsource_qidian.yuewen_fock:decrypt 期间关 JIT、完事恢复原状;jobAsync 子进程抛错经 cb(nil, err) 交回 +do + local Shared = require("moonsource_qidian.yuewen_fock") + local Text = require("utils.text") + local was_on = jit.status() + local seen_off + local decode = Text.base64Decode + Text.base64Decode = function(...) + seen_off = not jit.status() + return decode(...) + end + + -- 字体路径由主进程持有:取消只清自己的文件,失败 / 成功也清理,退出前不抢删。 + do + local Shared = require("moonsource_qidian.yuewen_fock") + local lfs = require("libs/libkoreader-lfs") + local pending = {} + Job.run = function(worker, opts) + local job = { poll = 0.5 } + pending[#pending + 1] = { worker = worker, opts = opts, job = job } + return job + end + local files = {} + local function worker(paths) + files[#files + 1] = paths + for index, path in ipairs(paths) do + local file = assert(io.open(path, "wb")) + assert(file:write("font-" .. index)) + assert(file:close()) + end + return { text = "restored" } + end + local text, err + local function done(value, reason) text, err = value, reason end + Shared.jobAsync("font_cancel", worker, done) + Shared.jobAsync("font_failed", worker, done) + pending[1].worker() + pending[2].worker() + pending[1].opts.on_cancelled(pending[1].job) + Assert.is_nil(text) + for _idx, path in ipairs(files[1]) do Assert.is_nil(lfs.attributes(path)) end + for _idx, path in ipairs(files[2]) do Assert.eq(lfs.attributes(path, "mode"), "file") end + pending[2].opts.on_failed("timeout") + Assert.is_nil(text) + Assert.eq(err, "timeout") + for _idx, path in ipairs(files[2]) do Assert.is_nil(lfs.attributes(path)) end + + Shared.jobAsync("font_done", worker, done) + pending[3].opts.on_done(pending[3].worker()) + Assert.eq(text, "restored") + Assert.is_nil(err) + for _idx, path in ipairs(files[3]) do Assert.is_nil(lfs.attributes(path)) end + + Shared.jobAsync("font_exiting", worker, done) + pending[4].worker() + pending[4].job.pid = 123 + local ffiUtil = require("ffi/util") + local UIManager = require("ui/uimanager") + local real_done, real_schedule = ffiUtil.isSubProcessDone, UIManager.scheduleIn + local exited, tick = false, nil + ffiUtil.isSubProcessDone = function() return exited end + UIManager.scheduleIn = function(_self, _delay, fn) tick = fn end + pending[4].opts.on_cancelled(pending[4].job) + for _idx, path in ipairs(files[4]) do Assert.eq(lfs.attributes(path, "mode"), "file") end + Assert.eq(type(tick), "function") + exited = true + tick() + for _idx, path in ipairs(files[4]) do Assert.is_nil(lfs.attributes(path)) end + ffiUtil.isSubProcessDone, UIManager.scheduleIn = real_done, real_schedule + Job.run = real_run + end + local text = Fock.decrypt(Sample.content, Sample.chapter_id, Sample.keypool, Sample.version, Sample.uid) + Text.base64Decode = decode + Assert.eq(#text, 13654) + Assert.is_true(seen_off, "解密期间 JIT 关着") + Assert.eq(jit.status(), was_on, "解密完 JIT 开关恢复") + + local Job = require("workers.job") + local real_run = Job.run + Job.run = function(worker, opts) + local ok, res = pcall(worker) + if ok then opts.on_done(res) else opts.on_failed(res) end + return {} + end + local got_text, got_err + Shared.jobAsync("t", function() return { text = "ok" } end, function(t, e) got_text, got_err = t, e end) + Assert.eq(got_text, "ok") + Assert.is_nil(got_err) + Shared.jobAsync("t", function() error("boom", 0) end, function(t, e) got_text, got_err = t, e end) + Assert.is_nil(got_text) + Assert.eq(got_err, "boom") + Job.run = real_run +end diff --git a/tests/qidian/qidian_font_spec.lua b/tests/qidian/qidian_font_spec.lua new file mode 100644 index 0000000..e9da69d --- /dev/null +++ b/tests/qidian/qidian_font_spec.lua @@ -0,0 +1,92 @@ +--[[-- +起点 cES=2 字体层:字段判定、诱饵副本裁剪、无字体时的兜底。 + +@module tests.source.qidian_font_spec +--]] + +local Assert = require("support.assert") +local FontRestore = require("moonsource_qidian.yuewen_fonts") +local Mapper = require("moonsource_qidian.mapper") + +-- Fock 与字体层是两个独立标记,不能再用 cES 非 0 一把抓。 +Assert.is_true(Mapper.fockEncrypted({ fEnS = "1" })) +Assert.is_false(Mapper.fockEncrypted({ fEnS = "0", cES = "2" })) +Assert.is_true(Mapper.fontProtected({ cES = "2" })) +Assert.is_false(Mapper.fontProtected({ cES = "1" })) + +-- 起点把同一章再追加一份同长度的诱饵副本;长度一一对应时丢掉后半。 +local duplicate = { "甲甲乙乙", "乙乙乙乙乙", "甲甲乙乙", "乙乙乙乙丁" } +local trimmed = FontRestore.dropDecoyHalf(duplicate) +Assert.eq(#trimmed, 2) +Assert.eq(trimmed[1], "甲甲乙乙") +Assert.eq(trimmed[2], "乙乙乙乙乙") + +local uneven = { "甲甲", "乙乙乙", "丙丙", "丁丁" } +Assert.eq(#FontRestore.dropDecoyHalf(uneven), 4) + +local odd = { "甲甲", "乙乙乙", "丙丙" } +Assert.eq(#FontRestore.dropDecoyHalf(odd), 3) + +-- 没有 fixedFont 时不进入 FreeType;仍应按 CSS 解析段落并裁剪诱饵。 +local html = "

  甲甲

  乙乙乙

  甲甲

  乙乙乙

" +local text = FontRestore.restore(html, { css = "", randomFont = { data = {} } }, nil, { dedupe = true }) +Assert.eq(text, "  甲甲\n  乙乙乙") + +-- 于/干、责/贵 只修固定搭配;“干部/干活/干事/干劲”保留。 +Assert.eq(FontRestore.fixConfusions("关干《链法总纲》终干敲定了"), + "关于《链法总纲》终于敲定了") +Assert.eq(FontRestore.fixConfusions("对干宗门,对干部,在干活,等干事"), + "对于宗门,对干部,在干活,等干事") +Assert.eq(FontRestore.fixConfusions("职贵、担贵、负贵、贵任"), + "职责、担责、负责、责任") +Assert.eq(FontRestore.fixConfusions("同泮支援,泮随着,汇聚干此"), + "同伴支援,伴随着,汇聚于此") + +-- restore 内部也要能调用到 fixConfusions(不能是未赋值的全局)。 +local text2 = FontRestore.restore("

关干《链法总纲》

", { css = "", randomFont = { data = {} } }, nil, + { confusions = true }) +Assert.eq(text2, "关于《链法总纲》") + +-- 前后半字数相同但内容不同的真实对称段落不能被当诱饵删掉。 +Assert.eq(#FontRestore.dropDecoyHalf({ "春风来", "夏雨至", "秋叶落", "冬雪飘" }), 4) + +-- 常见搭配里的“干”不能被改成“于”。 +Assert.eq(FontRestore.fixConfusions("在干什么,对干净的"), "在干什么,对干净的") + +-- 识别使用主进程交下来的两条路径,正常 / glyph 抛错都及时删除。 +do + local Paths = require("utils.paths") + local lfs = require("libs/libkoreader-lfs") + local dir = Paths.tmpDir() .. "/font_restore_spec" + assert(Paths.ensureDir(dir .. "/noto")) + local ref = dir .. "/noto/NotoSansCJKsc-Regular.otf" + local file = assert(io.open(ref, "wb")) + assert(file:write("reference")) + assert(file:close()) + local old_fontlist, old_glyph = package.loaded["fontlist"], package.loaded["utils.glyph"] + package.loaded["fontlist"] = { fontdir = dir } + local paths = { Paths.tmpname(".font"), Paths.tmpname(".font") } + local fixed = "\0\1\0\0fixed" + package.loaded["utils.glyph"] = { + recognize = function(_ref, _cache, tasks) + Assert.eq(tasks[1].font_path, paths[1]) + Assert.eq(tasks[2].font_path, paths[2]) + local font = assert(io.open(tasks[2].font_path, "rb")) + Assert.eq(font:read("*a"), fixed) + font:close() + return { { [0x4909] = "乙" }, { [0x7532] = "丙" } } + end, + } + local font = { css = "", randomFont = { data = { 0, 1, 0, 0 } } } + Assert.eq(FontRestore.restore("

甲䤉

", font, fixed, { temp_paths = paths }), "丙乙") + for _idx, path in ipairs(paths) do Assert.is_nil(lfs.attributes(path)) end + package.loaded["utils.glyph"].recognize = function() error("glyph failed", 0) end + Assert.errors(function() + FontRestore.restore("

甲䤉

", font, fixed, { temp_paths = paths }) + end, "glyph failed") + for _idx, path in ipairs(paths) do Assert.is_nil(lfs.attributes(path)) end + package.loaded["fontlist"], package.loaded["utils.glyph"] = old_fontlist, old_glyph + os.remove(ref) + lfs.rmdir(dir .. "/noto") + lfs.rmdir(dir) +end diff --git a/tests/qidian/qidian_spec.lua b/tests/qidian/qidian_spec.lua new file mode 100644 index 0000000..689a513 --- /dev/null +++ b/tests/qidian/qidian_spec.lua @@ -0,0 +1,351 @@ +--[[-- +起点书架分页、目录 / 正文映射与 Cookie 解析离线用例。 + +@module tests.source.qidian_spec +--]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") +local JSONStub = require("support.json_stub") + +package.preload["json"] = function() + return { decode = JSONStub.decode, encode = JSONStub.encode } +end + +local cfg = {} +package.preload["utils.settings"] = function() + return { getSource = function() return cfg end } +end + +local expired +package.preload["source.auth"] = function() + return { expire = function(_, msg) expired = msg; return msg end, ok = function() end } +end + +local requests, replies = {}, {} +package.preload["http.request"] = function() + return { + get = function(url, opts, cb) + requests[#requests + 1] = { url = url, opts = opts } + local reply = table.remove(replies, 1) + cb(reply.body, reply.err, reply.res) + return { cancel = function() end } + end, + post = function(url, body, opts, cb) + requests[#requests + 1] = { url = url, body = body, opts = opts } + local reply = table.remove(replies, 1) + cb(reply.body, reply.err, reply.res) + return { cancel = function() end } + end, + headerAll = function(res, key) + if not res or not res.headers then return {} end + local value = res.headers[key] + return type(value) == "table" and value or (value and { value } or {}) + end, + } +end + +package.loaded["moonsource_qidian.client"] = nil +package.loaded["moonsource_qidian.mapper"] = nil +package.loaded["moonsource_qidian.setting"] = nil +local Client = require("moonsource_qidian.client") +local Mapper = require("moonsource_qidian.mapper") +local Setting = require("moonsource_qidian.setting") + +local function page(data) + return '" +end + +do + local data = Mapper.pageData(page({ bookInfo = { bookId = 9 } })) + Assert.eq(data.bookInfo.bookId, 9) + Assert.is_nil(Mapper.pageData("登录")) +end + +do + local book = Mapper.book({ + bookId = 101, bookName = "诡秘", authorName = "乌贼", chanName = "玄幻", + wordsCnt = 100, desc = "  甲
乙", + }) + Assert.eq(book.stable_id, "101") + Assert.eq(book.cover, "https://bookcover.yuewen.com/qdbimg/349573/101/180") + Assert.eq(book.meta.words, 100) + Assert.eq(book.intro, "  甲\n乙") +end + +do + local books = Mapper.shelfList({ + { bid = 1, bName = "短", info = { bookId = 1, bookName = "全名", authorName = "甲", wordsCnt = 3 } }, + { bid = 2, bName = "截断", local_book = { stable_id = "2", title = "本地", cover = "" } }, + { bid = 3, bName = "兜底", bAuth = "乙" }, + }) + Assert.eq(books[1].title, "全名") + Assert.eq(books[2].cover, "https://bookcover.yuewen.com/qdbimg/349573/2/180") + Assert.eq(books[3].title, "兜底") + Assert.eq(books[3].authors, "乙") +end + +-- 分类开关:关 = 题材;开 = 自定义分组(互斥,不混合)。 +do + cfg.category_as_group = false + local off = Mapper.shelfList({ + { bid = 1, cateName = "玄幻", _group_name = "追更", info = { bookId = 1, bookName = "甲", chanName = "玄幻" } }, + { bid = 2, cateName = "都市", info = { bookId = 2, bookName = "乙", chanName = "都市" } }, + }) + Assert.eq(off[1].category, "玄幻", "关:进组仍用题材") + Assert.eq(off[2].category, "都市", "关:没进组用题材") + cfg.category_as_group = true + local on = Mapper.shelfList({ + { bid = 1, cateName = "玄幻", _group_name = "追更", info = { bookId = 1, bookName = "甲", chanName = "玄幻" } }, + { bid = 2, cateName = "都市", info = { bookId = 2, bookName = "乙", chanName = "都市" } }, + }) + Assert.eq(on[1].category, "追更", "开:进组用分组名") + Assert.is_nil(on[2].category, "开:没进组不写题材") + cfg.category_as_group = false +end + +do + local toc = Mapper.toc({ vs = { + { vN = "卷一", cs = { { id = 11, cN = "第一章", cnt = 10, sS = 1, uT = "2022-10-07 10:22:55" } } }, + { vN = "卷二", cs = { { id = 22, cN = "VIP", cnt = 20, sS = 0, uT = "bad" } } }, + } }) + Assert.len(toc, 2) + Assert.eq(toc[1].uid, "11") + Assert.eq(toc[1].updated, 1665109375) + Assert.is_false(toc[1].vip) + Assert.eq(toc[2].idx, 2) + Assert.eq(toc[2].title, "VIP") + Assert.is_nil(toc[2].updated) + Assert.is_true(toc[2].vip) + Assert.eq(Mapper.chapterTime("2022-10-07 10:22"), 1665109320) + Assert.is_nil(Mapper.chapterTime("2022-10-07")) + local read = Mapper.readChapter({ readCid = 730944635, readCname = "第一章" }) + Assert.eq(read.uid, "730944635") + Assert.eq(read.title, "第一章") + Assert.is_nil(Mapper.readChapter({ readCid = 0 })) + Assert.is_nil(Mapper.readChapter({})) +end + +do + Assert.eq(Mapper.chapterText("

  甲

  乙&丙"), "\n  甲\n  乙&丙") + Assert.is_nil(Mapper.chapterText("")) + Assert.is_false(Mapper.locked({ vipStatus = 0, isBuy = 0, content = "

甲" })) + Assert.is_true(Mapper.locked({ vipStatus = 1, isBuy = 0 })) + Assert.is_false(Mapper.locked({ vipStatus = 1, isBuy = 1 })) +end + +do + Assert.eq(Setting.parseCookie("_csrfToken=t; ywkey=k; bad name=1"), "_csrfToken=t; ywkey=k") + Assert.eq(Client.csrf("_csrfToken=t; ywkey=k"), "t") + Assert.is_nil(Client.csrf("ywkey=k")) + Assert.eq(Setting.browser.domain, "m.qidian.com") + Assert.eq(Setting.browser.login:match("^https://([^/]+)"), Setting.browser.domain) + Assert.eq(Setting.browser.check:match("^https://([^/]+)"), Setting.browser.domain) + Assert.eq(Setting.fromPayload({ cookies = { + { domain = ".qidian.com", name = "_csrfToken", value = "t" }, + { domain = "m.qidian.com", name = "ywkey", value = "k" }, + { domain = "evil.com", name = "x", value = "y" }, + } }), "_csrfToken=t; ywkey=k") +end + +-- 默认分组翻完再拉其它分组,请求带 _csrfToken。 +do + cfg.cookie = "ywkey=k; _csrfToken=tok" + requests, replies = {}, { + { body = '{"code":0,"data":{"list":[{"bid":1,"bName":"甲"}],"groups":[{"groupId":-100,"bookCount":1},{"groupId":2,"bookCount":1}],"page":{"isLast":1}}}' }, + { body = '{"code":0,"data":{"list":[{"bid":1,"bName":"甲"},{"bid":2,"bName":"乙"}],"page":{"isLast":1}}}' }, + } + local rows, err + Client.shelfAsync(cfg.cookie, function(v, e) rows, err = v, e end) + Assert.is_nil(err) + Assert.len(rows, 2) + Assert.eq(rows[2].bid, 2) + Assert.len(requests, 2) + Assert.matches(requests[1].url, "gid=%-100") + Assert.matches(requests[1].url, "_csrfToken=tok") + Assert.matches(requests[2].url, "gid=2") +end + +-- 书架页 302:已保存的 Cookie 标失效。 +do + expired = nil + requests, replies = {}, { { body = nil, err = "HTTP 302", res = { code = 302 } } } + local ok, err + Client.loginCheckAsync(cfg.cookie, function(v, e) ok, err = v, e end) + Assert.is_nil(ok) + Assert.matches(err, "QQ阅读或起点 App 扫码") + Assert.eq(expired, err) +end + +-- 扫码只有 ywguid/ywkey:书架页 Set-Cookie 合并成真 csrf 后再回传 account.cookie。 +do + requests, replies = {}, { + { + body = page({ user = { isLogin = true, guid = 12345 } }), + res = { + code = 200, + headers = { + ["Set-Cookie"] = { + "_csrfToken=real-csrf; Path=/", + "newstatisticUUID=uuid-1; Path=/", + "fu=1; Path=/", + }, + }, + }, + }, + } + local ok, err, account + Client.loginCheckAsync("ywguid=12345; ywkey=site-key", function(v, e, a) ok, err, account = v, e, a end) + Assert.is_true(ok) + Assert.is_nil(err) + Assert.eq(account.id, "12345") + Assert.matches(account.cookie, "_csrfToken=real%-csrf") + Assert.matches(account.cookie, "ywguid=12345") + Assert.matches(account.cookie, "ywkey=site%-key") + Assert.matches(account.cookie, "newstatisticUUID=uuid%-1") +end + +-- 登录态在,但书架页没给 csrf:拒绝落盘,免得 VIP 正文一直空。 +do + requests, replies = {}, { + { body = page({ user = { isLogin = true, guid = 9 } }), res = { code = 200, headers = {} } }, + } + local ok, err, account + Client.loginCheckAsync("ywguid=9; ywkey=k", function(v, e, a) ok, err, account = v, e, a end) + Assert.is_nil(ok) + Assert.matches(err, "缺少登录凭证") + Assert.is_nil(account) +end + +-- 书架响应明确删除 csrf:不能保留旧值继续判成功、回传过期凭据。 +do + requests, replies = {}, { + { body = page({ user = { isLogin = true, guid = 9 } }), + res = { code = 200, headers = { ["Set-Cookie"] = "_csrfToken=; Max-Age=0; Path=/" } } }, + } + local ok, err, account + Client.loginCheckAsync("ywguid=9; ywkey=k; _csrfToken=old", function(v, e, a) ok, err, account = v, e, a end) + Assert.is_nil(ok) + Assert.matches(err, "缺少登录凭证") + Assert.is_nil(account) +end + +-- 非 csrf Cookie 删除、覆盖仍保留可用登录态。 +do + requests, replies = {}, { + { body = page({ user = { isLogin = true, guid = 9 } }), + res = { code = 200, headers = { ["Set-Cookie"] = { + "old=; Max-Age=0", "_csrfToken=new; Path=/", + } } } }, + } + local ok, account + Client.loginCheckAsync("ywguid=9; ywkey=k; _csrfToken=old; old=gone", function(v, _err, a) ok, account = v, a end) + Assert.is_true(ok) + Assert.eq(account.cookie, "_csrfToken=new; ywguid=9; ywkey=k") +end + +-- 加入书架走 POST,书号在表单里。 +do + requests, replies = {}, { { body = '{"code":0,"data":{"9":{"code":0,"message":"操作成功"}}}' } } + local ok + Client.addAsync("9", function(v) ok = v end) + Assert.is_true(ok) + Assert.matches(requests[1].url, "/webcommon/bookshelf/addbooks%?") + Assert.eq(requests[1].body, "bookId=9") +end + +-- 进度上传带章节更新时间的 unix 秒。空时间不发请求,避免把阅读状态写坏。 +do + local Stubs = require("support.stubs") + cfg.cookie = "ywkey=k; _csrfToken=tok" + requests, replies = {}, {} + local ok, err + Client.updateReadAsync("9", "11", "c1", false, "", function(v, e) ok, err = v, e end) + Stubs.flush() + Assert.is_nil(ok) + Assert.eq(err, "起点章节时间缺失") + Assert.len(requests, 0) + + requests, replies = {}, { { body = '{"code":0}' } } + Client.updateReadAsync("9", "11", "c1", true, 1665109375, function(v, e) ok, err = v, e end) + Assert.is_true(ok) + Assert.matches(requests[1].url, "/webcommon/chapter/updReadStatus%?") + Assert.matches(requests[1].body, "chapterUpdateTime=1665109375") + Assert.matches(requests[1].body, "isVip=1") + Assert.matches(requests[1].body, "chapterId=11") + + requests, replies, expired = {}, { { body = '{"code":1403,"msg":"登录失效"}' } }, nil + Client.updateReadAsync("9", "11", "c1", 0, "1665109375", function(v, e) ok, err = v, e end) + Assert.is_nil(ok) + Assert.matches(err, "QQ阅读或起点 App 扫码") + Assert.eq(expired, err) +end + +do + requests, replies = {}, { { body = page({ records = { { bid = 7, bName = "甲", bAuth = "乙", cat = "玄幻" } } }) } } + local got + Client.rankAsync("/rank/yuepiao/catid21/", function(v) got = v end) + Assert.matches(requests[1].url, "/rank/yuepiao/catid21/$") + local books = Mapper.rank(got) + Assert.eq(books[1].stable_id, "7") + Assert.eq(books[1].authors, "乙") + + replies = { { body = "nope" } } + local err + Client.rankAsync("/rank/x/", function(v, e) got, err = v, e end) + Assert.is_nil(got) + Assert.is_true(err ~= nil) +end + +do + local books = Mapper.search({ bookInfo = { records = { + { bid = 7, bName = "甲", bAuth = "乙...", cat = "玄幻", desc = "简
介" }, + { bid = 8, bName = "丙", bAuth = "丁" }, + } } }) + Assert.len(books, 2) + Assert.eq(books[1].stable_id, "7") + Assert.is_nil(books[1].authors) + Assert.eq(books[1].intro, "简\n介") + Assert.eq(books[2].authors, "丁") + + requests, replies = {}, { { body = JSONStub.encode({ code = 0, data = { bookInfo = { records = {} } } }) } } + local got + Client.searchAsync("斗罗", function(v) got = v end) + Assert.matches(requests[1].url, "/webcommon/search/list%?") + Assert.matches(requests[1].url, "kw=%%E6%%96%%97%%E7%%BD%%97") + Assert.is_true(got.bookInfo ~= nil) +end + +do + requests, replies = {}, { { body = JSONStub.encode({ code = 0, data = { records = {}, isLast = 0 } }) } } + local got + Client.rankPageAsync("readindex", "21", 2, function(data) got = data end) + Assert.matches(requests[1].url, "/webcommon/rank/readIndexlist%?") + Assert.matches(requests[1].url, "pageNum=2") + Assert.matches(requests[1].url, "catId=21") + Assert.matches(requests[1].url, "gender=male") + Assert.is_false((requests[1].opts.headers.Cookie or ""):find("ywguid", 1, true) ~= nil) + Assert.len(got.records, 0) + + replies = { { body = JSONStub.encode({ code = 0, data = {} }) } } + local err + Client.rankPageAsync("yuepiao", "-1", 1, function(data, reason) got, err = data, reason end) + Assert.is_nil(got) + Assert.eq(err, "起点榜单响应无效") +end + +do + requests, replies = {}, { { body = page({ bookCirclePost = { + bookCirclePostCount = 8, bookCirclePostList = {}, + } }) } } + local got, err + Client.bookCircleAsync("7", function(data, reason) got, err = data, reason end) + Assert.matches(requests[1].url, "/readersCircle/7/$") + Assert.is_true(requests[1].opts.headers.Cookie == nil, "公共整书讨论不发送账号 Cookie") + Assert.eq(got.bookCirclePostCount, 8) + replies = { { body = page({}) } } + Client.bookCircleAsync("7", function(data, reason) got, err = data, reason end) + Assert.is_nil(got) + Assert.eq(err, "起点书友圈响应无效") +end diff --git a/tests/qidian/rank_spec.lua b/tests/qidian/rank_spec.lua new file mode 100644 index 0000000..da363c1 --- /dev/null +++ b/tests/qidian/rank_spec.lua @@ -0,0 +1,35 @@ +--[[-- 起点旧榜单节点的聚合分页与失败。 @module tests.moonsource_qidian.rank_spec --]] +local Assert = require("support.assert") +local pages, fail = {}, false +package.preload["moonsource_qidian.client"] = function() + return { + rankPageAsync = function(key, cat, page, cb) + pages[#pages + 1] = { key = key, cat = cat, page = page } + if fail and page == 2 then cb(nil, "offline") + else + local rows = {} + for i = 1, 20 do rows[i] = { bid = (page - 1) * 20 + i, bName = "测试" .. i } end + cb({ records = rows, isLast = 0 }) + end + return { cancel = function() end } + end, + } +end +local source = require("moonsource_qidian.source").new() +local result, err +source:browseAsync({ node = "yuepiao:-1", limit = 60 }, function(value, reason) result, err = value, reason end) +Assert.is_nil(err) +Assert.len(result.data, 60) +Assert.eq(result.data[60].stable_id, "60") +Assert.len(pages, 3) +Assert.eq(pages[3].page, 3) +Assert.eq(pages[1].cat, "-1") +Assert.eq(result.groups[1].chips[1].title, "分类书库") + +fail, pages = true, {} +source:browseAsync({ node = "readindex:21", limit = 60 }, function(value, reason) result, err = value, reason end) +Assert.is_nil(result, "后续页失败不能把榜单第一页报成完整结果") +Assert.eq(err, "offline") +Assert.len(pages, 2) +Assert.eq(pages[1].key, "readindex") +Assert.eq(pages[1].cat, "21") diff --git a/tests/qidian/reviews_spec.lua b/tests/qidian/reviews_spec.lua new file mode 100644 index 0000000..3fcfe90 --- /dev/null +++ b/tests/qidian/reviews_spec.lua @@ -0,0 +1,129 @@ +--[[-- +起点段评:统计 → 热点、评论页 → 展示项(页码翻页)、段落按段序定位到章节 HTML。 + +@module tests.moonsource_qidian.reviews_spec +--]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") + +local asked +package.preload["moonsource_qidian.client"] = function() + return { + reviewSummaryAsync = function(book, chapter, cb) + asked = { book = book, chapter = chapter } + cb({ enableReview = package.enabled and 1 or 0, list = { + { paragraphId = -1, textCount = 99 }, + { paragraphId = 3, textCount = 7 }, + { paragraphId = 1, textCount = 4942 }, + { paragraphId = 2, textCount = 0 }, + } }) + return { cancel = function() end } + end, + reviewListAsync = function(book, chapter, pid, page, cb) + asked = { book = book, chapter = chapter, pid = pid, page = page } + cb({ total = 25, list = { { reviewId = "9", nickName = "甲", content = "好[fn=47]看", likeCount = 6, + createTimestamp = 1725596312, hasImage = 1, imagePre = "https://x/y.jpg", status = 1 } } }) + return { cancel = function() end } + end, + } +end +package.loaded["moonsource_qidian.reviews"] = nil +local Reviews = require("moonsource_qidian.reviews") + +-- 统计:保留章末总评,0 评论不标,按段序排;没开段评的书当没有 +do + package.enabled = true + local hot + Reviews.hotspotsAsync("1", "2", function(list) hot = list end) + Assert.eq(asked.chapter, "2") + Assert.len(hot, 3) + Assert.eq(hot[1].range, "-1") + Assert.eq(hot[2].range, "1") + Assert.eq(hot[3].range, "3") + Assert.eq(hot[3].total, 7) + + package.enabled = false + Reviews.hotspotsAsync("1", "2", function(list) hot = list end) + Assert.len(hot, 0) +end + +-- 评论页:max_idx 是已取页数,请求页码 = max_idx + 1;表情码去掉;配图带上 +do + local page + Reviews.pageAsync("1", "2", 3, 0, function(p) page = p end) + Assert.eq(asked.page, 1) + Assert.eq(asked.pid, 3) + Assert.eq(page.max_idx, 1) + Assert.eq(page.total, 25) + Assert.is_true(page.more) + Assert.eq(page.items[1].content, "好看") + Assert.eq(page.items[1].author, "甲") + Assert.eq(page.items[1].time, 1725596312) + Assert.eq(page.items[1].images[1].url, "https://x/y.jpg") + + Assert.is_false(Reviews.page({ total = 1, list = { { reviewId = "1", content = "a" } } }, 1).more) + Assert.is_false(Reviews.page({ total = 5, list = {} }, 2).more) + Assert.is_nil((Reviews.page({}, 1))) + Assert.is_false(Reviews.page({ total = 25, isEnd = 1, list = { { reviewId = "1" } } }, 2).more) + Assert.is_true(Reviews.page({ total = 25, isEnd = 0, list = { { reviewId = "1" } } }, 3).more, + "不等长的页不能用页码乘本页条数猜末页") + local primary = Reviews.item({ content = "原评", rootReviewReplyCount = 65, + replyList = { + { reviewId = "r1", nickName = "乙", content = "回复[fn=3]", createTime = "1725596312000", + quoteNickName = "丙", rootReviewReplyCount = 4, + replyList = { { content = "不递归生成三级列表" } } }, + { reviewId = "r2", nickName = "丁", content = "另一条", likeCount = 2 }, + } }) + Assert.eq(primary.content, "原评", "不能把内嵌的两条回复预览拼进主评论") + Assert.eq(primary.replies, 65) + Assert.len(primary.reply_preview, 2) + Assert.eq(primary.reply_preview[1].id, "r1") + Assert.eq(primary.reply_preview[1].content, "回复") + Assert.eq(primary.reply_preview[1].author, "乙") + Assert.eq(primary.reply_preview[1].reply_to, "丙") + Assert.eq(primary.reply_preview[1].time, 1725596312) + Assert.is_nil(primary.reply_preview[1].reply_preview, "二级预览不继续生成三级列表") + Assert.eq(primary.reply_preview[2].likes, 2) + Assert.is_nil(Reviews.item({ rootReviewReplyCount = 65, replyList = {} }).reply_preview) + Assert.is_nil(Reviews.item({ rootReviewReplyCount = 65 }).reply_preview) + Assert.eq(Reviews.item({ replyList = { { content = "已有回复" } } }).replies, 1, + "未给总数时至少显示实际预览数") +end + +-- 定位:第 n 个非空

即 paragraphId = n,xpointer 覆盖整段 +do + local html = '

标题

开头一段话。

\n

第二段里有一句被很多人评论的话。

' + local spots = Reviews.locate({ + { range = "2", text = "", total = 4 }, + { range = "9", text = "", total = 1 }, + }, html) + Assert.len(spots, 1) + Assert.eq(spots[1].range, "2") + Assert.eq(spots[1].badge, "4") + Assert.eq(spots[1].text, "第二段里有一句被很多人评论的话。") +end + +do + local page, err = Reviews.bookPage({ + bookCirclePostCount = 9, bookCirclePostList = { + { title = "帖子标题", circleReviewDesc = "

正文 & 预览

", userName = "测试作者" }, + }, + }) + Assert.is_nil(err) + Assert.len(page.items, 1) + Assert.eq(page.items[1].text, "帖子标题\n正文 & 预览") + Assert.eq(page.items[1].author, "测试作者") + Assert.eq(page.total, 9) + Assert.eq(page.title, "书友圈预览(1/9)") + Assert.is_nil(page.pages, "不捏造官网未提供的整书帖子分页") + page, err = Reviews.bookPage({ bookCirclePostCount = 0, bookCirclePostList = {} }) + Assert.is_nil(err) + Assert.len(page.items, 0) + page, err = Reviews.bookPage({ bookCirclePostCount = 9, + bookCirclePostList = { { title = "坏帖" } } }) + Assert.is_nil(page) + Assert.eq(err, "起点书友圈响应无效") +end + +return true diff --git a/tests/qidian/setting_spec.lua b/tests/qidian/setting_spec.lua new file mode 100644 index 0000000..ee3297b --- /dev/null +++ b/tests/qidian/setting_spec.lua @@ -0,0 +1,95 @@ +--[[-- 起点账号:续期不动同步标记;换号保留记录,不询问、不查询旧账号。 @module tests.moonsource_qidian.setting_spec --]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch +local Assert = require("support.assert") +local Theme = require("support.theme_stubs") +Theme.install() +local Auth = require("source.auth") +local beginLogin = Auth.beginLogin +local cfg, checks, cleared, closed = {}, 0, 0, 0 +local clear_ok, delayed, late = true, false, nil +package.preload["utils.settings"] = function() + return { getSource = function() return cfg end, saveSource = function() end } +end +package.preload["moonsource_qidian.client"] = function() + return { + cookie = function() return cfg.cookie end, + loginCheckAsync = function(cookie, cb) + checks = checks + 1 + Assert.is_true(cookie ~= "old", "换号不能查询旧凭据") + local function done() + cb(cookie ~= "bad", cookie == "bad" and "expired" or nil, + { id = cookie == "same" and "111" or "222" }) + end + if delayed then late = done else done() end + return { cancel = function() end } + end, + } +end +package.loaded["source.auth"] = nil +package.preload["source.auth"] = function() + return { beginLogin = beginLogin, changeAccount = Auth.changeAccount, + ok = function() end, expired = function() return false end } +end +package.preload["source.registry"] = function() + return { reload = function() end, invalidate = function() end, + resolve = function() return { capabilities = function() return { shelf_add = true } end } end } +end +package.preload["book.books_db"] = function() + return { prepareAccountSync = function(id, shelf_add) + Assert.eq(id, "ext.qidian", "只准备当前源") + Assert.is_true(shelf_add) + Assert.not_nil(cfg.cookie, "成功准备同步之后才替换凭据") + cleared = cleared + 1 + return clear_ok + end } +end +package.preload["reader.session"] = function() + return { current = function() return { + identity = { source_id = "ext.qidian" }, ui = { onClose = function() closed = closed + 1 end }, + } end } +end +local CookieLogin = require("source.cookie_login") +CookieLogin.fromPayload = function(payload) return payload.cookie end +local Setting = require("moonsource_qidian.setting") +local function apply(cookie) + local ok, err + local job = Setting.browser.apply({ cookie = cookie }, function(value, reason) ok, err = value, reason end) + return ok, err, job +end + +cfg = { cookie = "old", account_id = "111" } +Assert.is_true(apply("same")) +Assert.eq(cleared, 0, "同账号续期保留本地") +cfg = { cookie = "old", account_id = "111" } +Assert.is_true(apply("new")) +Assert.eq(cfg.cookie, "new") +Assert.eq(cfg.account_id, "222") +Assert.eq(cleared, 1) +Assert.eq(closed, 1) +Assert.is_nil(Theme.last("confirm"), "换号不弹确认") +cfg = { cookie = "old" } +local before = checks +Assert.is_true(apply("same")) +Assert.eq(checks, before + 1, "旧配置缺身份时不多查一次") +Assert.eq(cleared, 2) +cfg = { cookie = "new", account_id = "111" } +Assert.is_true(apply("new")) +Assert.eq(cleared, 3, "账号身份变了,即使 Cookie 字符串相同也准备同步") +cfg, clear_ok = { cookie = "old", account_id = "111" }, false +local ok, err = apply("new") +Assert.is_false(ok) +Assert.eq(err, "准备本地同步失败") +Assert.eq(cfg.cookie, "old", "准备失败仍保留旧凭据") +clear_ok = true +cfg = { cookie = "old", account_id = "111" } +ok, err = apply("bad") +Assert.is_false(ok) +Assert.eq(err, "expired") +Assert.eq(cfg.cookie, "old", "无效新凭据不清旧账号") +delayed = true +local called = false +local job = Setting.browser.apply({ cookie = "same" }, function() called = true end) +job.cancel() +late() +Assert.is_false(called, "取消后的校验回包不提交") +Assert.eq(cfg.cookie, "old") diff --git a/tests/qidian/shelf_spec.lua b/tests/qidian/shelf_spec.lua new file mode 100644 index 0000000..93a8ee4 --- /dev/null +++ b/tests/qidian/shelf_spec.lua @@ -0,0 +1,96 @@ +--[[-- +起点书架分组:拉书架时记住自定义分组(默认分组 -100 不算,一本书多个组取第一个), +开「分组代替分类」时进组书的分类用分组名、没进组不写分类;移出分组后本地旧行也要落回题材。 + +@module tests.moonsource_qidian.shelf_spec +--]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") + +package.loaded["json"] = nil +package.preload["json"] = function() + local stub = require("support.json_stub") + return { decode = stub.decode, encode = stub.encode } +end +package.preload["moonsource_qidian.fock"] = function() return {} end + +local PAGES = { + ["-100"] = '{"code":0,"data":{"count":3,"page":{"isLast":1},' + .. '"groups":[{"groupId":-100,"groupName":"默认分组","bookCount":3},' + .. '{"groupId":7,"groupName":"追更","bookCount":2}],' + .. '"list":[{"bid":1,"bName":"甲","cateName":"玄幻"},{"bid":2,"bName":"乙","cateName":"都市"}]}}', + ["7"] = '{"code":0,"data":{"count":2,"page":{"isLast":1},' + .. '"groups":[{"groupId":7,"groupName":"追更","bookCount":2}],' + .. '"list":[{"bid":2,"bName":"乙","cateName":"都市"},{"bid":3,"bName":"丙","cateName":"科幻"}]}}', +} +package.loaded["http.request"] = nil +package.preload["http.request"] = function() + return { + get = function(url, _opts, cb) + local gid = url:match("gid=([^&]+)") + cb(PAGES[gid] or PAGES["-100"]) + return { cancel = function() end } + end, + } +end +local cfg = { category_as_group = true } +package.loaded["utils.settings"] = nil +package.preload["utils.settings"] = function() + return { getSource = function() return cfg end } +end +package.loaded["moonsource_qidian.client"] = nil +package.loaded["moonsource_qidian.mapper"] = nil +local Client = require("moonsource_qidian.client") +local Mapper = require("moonsource_qidian.mapper") + +do -- 逐组拉取后按 bookId 记组:乙在默认组先出现,进了「追更」仍要记上 + local rows + Client.shelfAsync("_csrfToken=tok; other=1", function(r, err) + rows = r + Assert.is_nil(err) + end) + Assert.len(rows, 3) + Assert.is_nil(rows[1]._group_name, "只在默认组的书不算分组") + Assert.eq(rows[2]._group_name, "追更") + Assert.eq(rows[3]._group_name, "追更") + + local books = Mapper.shelfList(rows) + Assert.is_nil(books[1].category, "开:没进组不写题材") + Assert.eq(books[2].category, "追更") + Assert.eq(books[3].category, "追更") +end + +do -- 移出分组:本地旧行分类是旧分组名,书架行题材要把它刷新回来 + local books = Mapper.shelfList({ + { bid = 9, bName = "丁", cateName = "历史", + local_book = { stable_id = "9", title = "丁", category = "追更", cover = "c" } }, + { bid = 10, bName = "戊", cateName = "游戏", _group_name = "在读", + local_book = { stable_id = "10", title = "戊", category = "历史", cover = "c" } }, + }) + Assert.is_nil(books[1].category, "开:移出分组后不再沿用旧分组名") + Assert.is_true(books[1].category_authoritative, "移出分组要能清掉库里的旧分类") + Assert.eq(books[2].category, "在读", "进了组用分组名覆盖本地旧分类") +end + +do -- 分页没有页数上限:超过 50 页照样翻到末页 + local n = 0 + local list = {} + for i = 1, 20 do list[#list + 1] = ('{"bid":%d,"bName":"书","cateName":"玄幻"}'):format(i) end + package.loaded["http.request"] = nil + package.preload["http.request"] = function() + return { get = function(_url, _opts, cb) + n = n + 1 + cb('{"code":0,"data":{"count":9999,"page":{"isLast":' .. (n > 60 and "1" or "0") + .. '},"groups":[],"list":[' .. table.concat(list, ",") .. "]}}") + return { cancel = function() end } + end } + end + package.loaded["moonsource_qidian.client"] = nil + local Deep = require("moonsource_qidian.client") + local rows, err + Deep.shelfAsync("_csrfToken=tok", function(r, e) rows, err = r, e end) + Assert.is_nil(err) + Assert.len(rows, 20) + Assert.eq(n, 61) +end diff --git a/tests/qidian/verify_spec.lua b/tests/qidian/verify_spec.lua new file mode 100644 index 0000000..0b89efe --- /dev/null +++ b/tests/qidian/verify_spec.lua @@ -0,0 +1,69 @@ +--[[-- 起点验证码桥:仅 proof、时效、取消和候选会话存活。 @module tests.moonsource_qidian.verify_spec --]] +---@diagnostic disable: undefined-field, missing-fields, param-type-mismatch + +local Assert = require("support.assert") +local Ext = require("utils.extension") +local seq, interrupted = 0, 0 +package.preload["utils.random"] = function() return { hex = function() seq = seq + 1; return "ticket" .. seq end } end +package.preload["ui/uimanager"] = function() return { scheduleIn = function() end, unschedule = function() end } end +package.preload["ui.guard"] = function() return { wrap = function(_label, fn) return fn end } end +Ext.add("web.open_page", function(path, _title, _text, opts) + Assert.matches(path, "^/qidian_verify%.html#ticket") + return { close = function() opts.close_callback() end } +end) +local Verification = require("moonsource_qidian.verify") +local route +for _idx, item in ipairs(Ext.list("web.routes")) do if item.name == "qidian_verify" then route = item end end +local session = { + interrupt = function() interrupted = interrupted + 1 end, + imageAsync = function(_self, _url, cb) cb("data:image/png;base64,example") end, +} +local challenge = { nextAction = 11, imgSrc = "https://turing.captcha.qcloud.com/TCaptcha.js?aid=1600000770" } +local submitted, finished, late = nil, false, nil +local verification = Verification.new(session, challenge, function(proof, cb) + submitted, late = proof, cb +end, function(data) finished = data ~= nil end) +local function request(action, fields, method) + fields = fields or {} + fields.ticket = fields.ticket or verification.ticket + local status, data, headers + route.handle(method or "POST", action, fields, function(code, body, extra) status, data, headers = code, body, extra end) + return status, data, headers +end + +Assert.eq((request("config", nil, "GET")), 405) +local status, data, headers = request("config") +Assert.eq(status, 200) +Assert.eq(data.appid, "1600000770") +Assert.eq(headers[1], "Cache-Control: no-store") +Assert.is_nil(data.phone) +Assert.is_nil(data.cookie) +Assert.eq((request("verify", { captcha_ticket = "trerror_invalid", randstr = "random" })), 400) +Assert.is_nil(submitted) +request("verify", { captcha_ticket = "proof", randstr = "random" }) +Assert.eq(submitted, "random;proof", "顺序与官方 randstr + 分号 + ticket 一致") +Assert.eq((request("verify", { captcha_ticket = "proof", randstr = "random" })), 409) +late({ nextAction = 0 }) +Assert.is_true(finished) +Assert.eq(interrupted, 0, "成功后候选会话必须继续用于短信提交") +Assert.eq((request("config")), 403, "验证票据用完即撤销") + +verification = Verification.new(session, challenge, function(_proof, cb) late = cb end, function() end) +request("verify", { captcha_ticket = "proof", randstr = "random" }) +verification:cancel() +late({ nextAction = 0 }) +Assert.eq(interrupted, 1) +Assert.eq((request("config")), 403) + +verification = Verification.new(session, { nextAction = 8, imgSrc = "/image" }, + function(proof, cb) Assert.eq(proof, "abcd"); cb({ nextAction = 0 }) end, function() end) +status, data = request("config") +Assert.eq(status, 200) +Assert.eq(data.mode, "image") +Assert.matches(data.image, "^data:image/png;") +Assert.eq((request("verify", { code = "abcd" })), 200) + +verification = Verification.new(session, challenge, function() end, function() end) +verification.expires = os.time() - 1 +Assert.eq((request("verify", { captcha_ticket = "proof", randstr = "random" })), 403) +verification:cancel() diff --git a/tests/qidian/web_spec.js b/tests/qidian/web_spec.js new file mode 100644 index 0000000..49654ce --- /dev/null +++ b/tests/qidian/web_spec.js @@ -0,0 +1,69 @@ +'use strict'; +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const vm = require('node:vm'); +const source = fs.readFileSync(process.argv[2] + '/moonsource-qidian.koplugin/moonsource_qidian/web/qidian_verify.js', 'utf8'); + +async function page(options = {}) { + const nodes = Object.fromEntries(['title', 'instruction', 'status', 'retry', 'captcha', 'image-form', 'image', 'code', 'submit'] + .map(id => [id, { textContent: '', hidden: false, value: '' }])); + const requests = []; + let callback; + const messages = { mode: options.image ? 'image' : 'tencent', image: 'data:image/png;base64,fixture', + appid: '1600000770', title: 'Qidian', instruction: 'Verify', pending: 'Pending', + success: 'Done', failure: 'Failed', retry: 'Refresh', submit: 'Submit' }; + const context = { + AbortController, setTimeout, clearTimeout, location: { hash: '#fixture' }, window: {}, + document: { + get cookie() { throw new Error('Must not read browser credentials'); }, + getElementById: id => nodes[id], + createElement: () => ({ remove() {} }), + head: { appendChild(script) { + context.window.TencentCaptcha = function(element, appid, cb, opts) { + assert.equal(element, nodes.captcha); + assert.equal(appid, '1600000770'); + assert.equal(opts.type, 'embed'); + callback = cb; + this.destroy = this.show = () => {}; + if (options.auto) cb({ ret: 0, ticket: 'proof', randstr: 'random' }); + }; + script.onload(); + } }, + }, + fetch: async (url, opts) => { + requests.push({ url, body: JSON.parse(opts.body) }); + const config = !url.endsWith('/verify'); + return { ok: config || !options.rejected, json: async () => + config ? messages : options.rejected ? { error: 'Rejected' } : { ok: true } }; + }, + }; + await vm.runInNewContext(source, context); + await new Promise(resolve => setImmediate(resolve)); + return { nodes, requests, get callback() { return callback; } }; +} + +(async () => { + let p = await page(); + await p.callback({ ret: 2 }); + await p.callback({ ret: 0, ticket: 'trerror_fixture', randstr: 'random' }); + await p.callback({ ret: 0, ticket: 'proof', randstr: 'random', errorCode: 1 }); + assert.equal(p.requests.length, 1, 'Invalid challenges never submit proof'); + await p.callback({ ret: 0, ticket: 'proof', randstr: 'random' }); + assert.deepEqual(p.requests[1].body, { ticket: 'fixture', captcha_ticket: 'proof', randstr: 'random' }); + assert.equal(p.nodes.status.textContent, 'Done'); + await p.callback({ ret: 0, ticket: 'late', randstr: 'random' }); + assert.equal(p.requests.length, 2, 'Completed proof cannot be replayed'); + p = await page({ auto: true }); + assert.equal(p.requests.length, 2, 'Synchronous SDK completion is not lost while loading'); + p = await page({ rejected: true }); + await p.callback({ ret: 0, ticket: 'proof', randstr: 'random' }); + assert.equal(p.nodes.status.textContent, 'Rejected'); + await p.nodes.retry.onclick(); + assert.equal(p.requests[2].url, '/api/qidian_verify/refresh'); + p = await page({ image: true }); + assert.equal(p.nodes.image.src, 'data:image/png;base64,fixture'); + p.nodes.code.value = 'abcd'; + await p.nodes['image-form'].onsubmit({ preventDefault() {} }); + assert.deepEqual(p.requests[1].body, { ticket: 'fixture', code: 'abcd' }); + console.log('qidian web: OK'); +})().catch(error => { console.error(error); process.exitCode = 1; }); diff --git a/tests/qidian/web_spec.lua b/tests/qidian/web_spec.lua new file mode 100644 index 0000000..2b6ee8c --- /dev/null +++ b/tests/qidian/web_spec.lua @@ -0,0 +1,8 @@ +--[[-- 起点验证码网页回归,使用已有 Node。 @module tests.moonsource_qidian.web_spec --]] +local Assert = require("support.assert") +local here = debug.getinfo(1, "S").source:match("^@(.+)/[^/]+$") or "." +local root = here .. "/../.." +local pipe = assert(io.popen('node "' .. here .. '/web_spec.js" "' .. root .. '" 2>&1')) +local output = pipe:read("*a") +pipe:close() +Assert.is_true(output:find("qidian web: OK", 1, true) ~= nil, output) diff --git a/tests/qidian/yuewen_qr_setting_spec.lua b/tests/qidian/yuewen_qr_setting_spec.lua new file mode 100644 index 0000000..5b5d837 --- /dev/null +++ b/tests/qidian/yuewen_qr_setting_spec.lua @@ -0,0 +1,102 @@ +--[[-- +阅文三源的设备扫码入口:各用自己的应用参数,先校验再保存。 +起点真 csrf 由 loginCheck 合并书架 Set-Cookie,扫码回调不再造假。 + +@module tests.moonsource_qidian.yuewen_qr_setting_spec +--]] + +local Assert = require("support.assert") +local beginLogin = require("source.auth").beginLogin +local Themed = require("support.theme_stubs") +Themed.install() +package.preload["ui.themes.widgets.row"] = function() + return { widget = function(spec) return spec end } +end +package.preload["ui/network/manager"] = function() + return { runWhenConnected = function(_self, fn) fn() end } +end +package.preload["source.review_setting"] = function() + return { row = function() return function() return {} end end } +end +package.preload["source.category_setting"] = package.preload["source.review_setting"] +local configs, saved_id, authorized, reloads = {}, nil, nil, 0 +package.preload["utils.settings"] = function() + return { + getSource = function(id) configs[id] = configs[id] or {}; return configs[id] end, + saveSource = function(id) saved_id = id end, + } +end +package.loaded["source.auth"] = nil +package.preload["source.auth"] = function() + return { beginLogin = beginLogin, ok = function(id) authorized = id end, expired = function() return false end } +end +package.preload["source.registry"] = function() + return { reload = function() reloads = reloads + 1 end } +end +local options, on_cookie, started, checked, reject +for _idx, name in ipairs({ "qqreader", "qidian", "xiaoxiang" }) do + package.preload["moonsource_" .. name .. ".yuewen_qr"] = function() + return { new = function(_self, spec, cb) + options, on_cookie = spec, cb + return { start = function() started = true end } + end } + end +end +for _idx, name in ipairs({ "qqreader", "qidian", "xiaoxiang" }) do + local id = "ext." .. name + package.preload["moonsource_" .. name .. ".client"] = function() + return { + cookie = function() return configs[id] and configs[id].cookie end, + loginCheckAsync = function(cookie, cb) + checked = cookie + cb(not reject, reject and "rejected" or nil, { id = "123" }) + end, + userAsync = function(cookie, cb) + checked = cookie + cb(not reject and { id = "123" } or nil, reject and "rejected" or nil) + end, + } + end +end + +for _idx, source in ipairs({ + { id = "ext.qqreader", app_id = "1450000220", area_id = "1" }, + { id = "ext.qidian", app_id = "13", area_id = "31" }, + { id = "ext.xiaoxiang", app_id = "57", area_id = "5" }, +}) do + local Setting = require("moonsource_" .. source.id:sub(5) .. ".setting") + started, checked, saved_id, authorized = nil, nil, nil, nil + local rows = Setting.rows() + rows[1](400).callback() + Assert.is_true(started, "账号行直接启动设备扫码") + Assert.eq(options.app_id, source.app_id) + Assert.eq(options.area_id, source.area_id) + Assert.is_nil(saved_id, "仅获取二维码不能保存登录态") + reject = true + on_cookie("ywguid=guid; ywkey=bad") + Assert.is_nil(saved_id, "各源的账号校验失败时不保存") + Assert.is_nil(authorized) + Assert.eq(Themed.last("toast").text, "rejected") + Assert.is_true(Themed.last("progress_dialog").closed) + reject = false + on_cookie("ywguid=guid; ywkey=key") + Assert.eq(saved_id, source.id) + Assert.eq(authorized, source.id) + Assert.eq(configs[source.id].cookie, checked) + Assert.eq(checked, "ywguid=guid; ywkey=key") + Assert.eq(Themed.last("toast").text, "登录成功") + started = nil + Setting.login() + Assert.is_true(started, "登录失效的直达入口也走设备扫码") + if source.id ~= "ext.qqreader" then + local paste + for _idx, factory in ipairs(Setting.rows()) do + local row = factory(400) + if row.title == "粘贴 Cookie" then paste = row; break end + end + Assert.not_nil(paste) + paste.callback() + Assert.eq(Themed.last("input").title, source.id == "ext.qidian" and "起点登录 Cookie" or "潇湘登录 Cookie") + end +end +Assert.eq(reloads, 3) diff --git a/tests/qidian/yuewen_qr_spec.lua b/tests/qidian/yuewen_qr_spec.lua new file mode 100644 index 0000000..0753909 --- /dev/null +++ b/tests/qidian/yuewen_qr_spec.lua @@ -0,0 +1,335 @@ +--[[-- +moonsource_qidian.yuewen_qr:取码 → 轮询 → ywguid/ywkey 或跟跳 Set-Cookie。 +过期、关窗、手机取消刷新不把迟到的登录态交给 on_cookie。 +浏览器扩展绑定仍指向 book.qq.com。 +@module tests.moonsource_qidian.yuewen_qr_spec +--]] + +local Assert = require("support.assert") +local Stubs = require("support.stubs") + +package.preload["json"] = function() + return { decode = require("support.json_stub").decode, encode = function() return "{}" end } +end + +package.preload["http.timeout"] = function() + return { net = function() return 15 end } +end + +local script, requested = {}, {} +local function respond(prefix, res) script[#script + 1] = { prefix = prefix, res = res } end +package.preload["http.request"] = function() + return { + request = function(opts, cb) + requested[#requested + 1] = opts + for i, item in ipairs(script) do + if opts.url:sub(1, #item.prefix) == item.prefix then + table.remove(script, i) + require("ui/uimanager"):nextTick(function() + if item.res.hook then item.res.hook() end + cb(item.res) + end) + return { cancel = function() end } + end + end + require("ui/uimanager"):nextTick(function() cb(nil, "no script") end) + return { cancel = function() end } + end, + header = function(res, name) return res and res.headers and res.headers[name] end, + headerAll = function(res, name) + local value = res and res.headers and res.headers[name] + return type(value) == "table" and value or (value and { value } or {}) + end, + } +end + +local shown = {} +local function widget(kind) + return function() + return { new = function(_, o) + o.kind = kind + function o:show() shown[#shown + 1] = self end + function o:close() + self.closed = true + if self.close_callback then self.close_callback() end + end + return o + end } + end +end +package.preload["ui.themes.widgets.qr"] = widget("qr") +package.preload["ui.themes.widgets.confirm"] = widget("confirm") +package.preload["ui.themes.widgets.toast"] = widget("toast") +package.preload["ui.themes.widgets.progress_dialog"] = widget("busy") + +local QRLogin = require("moonsource_qidian.yuewen_qr") +local SPEC = { + app_id = "1450000220", area_id = "1", return_url = "https://book.qq.com/", + referer = "https://login.book.qq.com/login.html", + title = "QQ阅读扫码登录", caption = "用 QQ阅读或起点 App 扫一扫", +} + +local QR_PREFIX = "https://ptlogin.yuewen.com/login/qrcode?" +local POLL_PREFIX = "https://ptlogin.yuewen.com/login/qrcodelogin?" + +local function reset() + script, requested, shown = {}, {}, {} +end + +local function find(kind) + for i = #shown, 1, -1 do if shown[i].kind == kind then return shown[i] end end +end + +local function toastCount(text) + local n = 0 + for i = 1, #shown do + if shown[i].kind == "toast" and shown[i].text == text then n = n + 1 end + end + return n +end + +local function qrcode(session) + return { code = 200, body = '{"code":0,"data":{"sessionKey":"' .. session .. '"}}' } +end + +local function poll(body, extra) + local res = { code = 200, body = body } + if extra then + for k, v in pairs(extra) do res[k] = v end + end + return res +end + +do -- 扫码 URL 与官方同一组参数,顺序由 formEncode 排定 + Assert.eq(QRLogin:new(SPEC, function() end):scanUrl("sk/1"), + "https://ptlogin.yuewen.com/mobile/scanlogin?appid=1450000220&areaid=1" + .. "&bookId=0&chapterId=0&sessionkey=sk%2F1") +end + +do -- 等待是字符串 "0",成功后 JSON 里的 ywGuid/ywKey 排成 Cookie + reset() + respond(QR_PREFIX, qrcode("sk1")) + respond(POLL_PREFIX, poll('{"code":-11019,"scanStatus":"0"}')) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"5","data":{"ywGuid":"g1","ywKey":"k1","ywOpenId":"o1"}}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(find("qr").text, + "https://ptlogin.yuewen.com/mobile/scanlogin?appid=1450000220&areaid=1" + .. "&bookId=0&chapterId=0&sessionkey=sk1") + Assert.eq(find("qr").caption, "用 QQ阅读或起点 App 扫一扫") + Assert.eq(got, "ywguid=g1; ywkey=k1; ywopenid=o1") + Assert.is_true(find("qr").closed) + Assert.eq(toastCount("已取消登录"), 0) + Assert.is_true(requested[1].allow_redirects == false) + Assert.is_true(requested[2].url:find("qrcode=sk1", 1, true) ~= nil) + Assert.len(script, 0) +end + +do -- 数字 GUID 要完整十进制;LuaJIT tostring 的科学计数法会毁掉 Fock 身份 + reset() + respond(QR_PREFIX, qrcode("long-guid")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":5,"data":{"ywGuid":1234567890123456,"ywKey":"key"}}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=1234567890123456; ywkey=key") +end + +do -- 已扫码只提示一次,确认后仍把登录态交出去 + reset() + respond(QR_PREFIX, qrcode("sk1")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"1"}')) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":1}')) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"5","ywGuid":"g2","ywKey":"k2"}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=g2; ywkey=k2") + Assert.eq(toastCount("已扫码,请在手机上确认"), 1) +end + +do -- 过期:重试框,不交登录态 + reset() + respond(QR_PREFIX, qrcode("sk1")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"4"}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.is_nil(got) + Assert.eq(find("confirm").text, "二维码已过期") + Assert.eq(find("confirm").ok_text, "重新获取") + Assert.eq(#requested, 2) +end + +do -- 用户关掉二维码:迟到的成功不交登录态,也不再轮询 + reset() + respond(QR_PREFIX, qrcode("sk1")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"5","data":{"ywGuid":"late","ywKey":"no"}}', { + hook = function() find("qr"):close() end, + })) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.is_nil(got) + Assert.eq(#requested, 2, "关闭后不再轮询") + Assert.eq(toastCount("已取消登录"), 1) +end + +do -- 只有 302url:跟跳收 Set-Cookie,相对 Location 拼回原 host;属性不当 cookie + reset() + respond(QR_PREFIX, qrcode("sk1")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"5","data":{"302url":"https://ptlogin.yuewen.com/jump"}}')) + respond("https://ptlogin.yuewen.com/jump", { + code = 302, headers = { Location = "/done", ["Set-Cookie"] = "ywguid=g3; Path=/; HttpOnly" }, + }) + respond("https://ptlogin.yuewen.com/done", { + code = 200, headers = { ["Set-Cookie"] = "ywkey=k3; Path=/, ywopenid=o3; Secure" }, + }) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=g3; ywkey=k3; ywopenid=o3") + Assert.is_nil(got and got:find("Path", 1, true)) + Assert.len(script, 0) +end + +do -- 非 https 跳转不跟,不交登录态 + reset() + respond(QR_PREFIX, qrcode("sk1")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"5","data":{"302url":"http://evil.example/x"}}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.is_nil(got) + Assert.eq(find("confirm").text, "登录失败:未获取到登录态") + Assert.eq(#requested, 2) +end + +do -- 已拿到临时凭据仍须走 302url,不能把跨站身份当本站会话保存 + reset() + respond(QR_PREFIX, qrcode("exchange")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":5,"data":{"ywGuid":"temporary","ywKey":"old",' + .. '"302url":"https://ptlogin.yuewen.com/exchange"}}')) + respond("https://ptlogin.yuewen.com/exchange", { + code = 302, headers = { Location = "https://m.qidian.com/finish", + ["Set-Cookie"] = { "ywguid=intermediate; Path=/", "ywkey=intermediate; Path=/" } }, + }) + respond("https://m.qidian.com/finish", { + code = 200, headers = { ["Set-Cookie"] = { "ywguid=321; Path=/", "ywkey=web; Path=/" } }, + }) + local spec = { app_id = "13", area_id = "31", return_url = "https://m.qidian.com/", ticket = "1" } + local got + QRLogin:new(spec, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=321; ywkey=web") + Assert.len(requested, 4) + Assert.is_nil(requested[3].headers.Cookie, "第三方扫码域不带书源 Cookie") + Assert.matches(requested[1].url, "ticket=1") +end + +do -- 官网 ticket 路径必须兑换,本站回包替换扫码 JSON 中的身份 + reset() + respond(QR_PREFIX, qrcode("ticket")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":5,"data":{"ticket":"one-use","ywGuid":"temporary","ywKey":"old"}}')) + respond("https://m.qidian.com/?ticket=", { + code = 200, headers = { ["Set-Cookie"] = { "ywguid=456; Path=/", "ywkey=web; Path=/" } }, + }) + local spec = { app_id = "13", area_id = "31", return_url = "https://m.qidian.com/", ticket = "1" } + local got + QRLogin:new(spec, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=456; ywkey=web") + Assert.len(requested, 3) +end + +do -- ticket=1 时忽略裸 302url,强制带 ticket 兑换;否则会吃到空壳首页却「登录成功」 + reset() + respond(QR_PREFIX, qrcode("bare-home")) + respond(POLL_PREFIX, poll( + '{"code":0,"scanStatus":5,"data":{"ticket":"t1","ywGuid":"temporary","ywKey":"old",' + .. '"302url":"https://m.qidian.com/"}}')) + respond("https://m.qidian.com/?ticket=", { + code = 200, headers = { ["Set-Cookie"] = { "ywguid=789; Path=/", "ywkey=web; Path=/" } }, + }) + local spec = { app_id = "13", area_id = "31", return_url = "https://m.qidian.com/", ticket = "1" } + local got + QRLogin:new(spec, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=789; ywkey=web") + Assert.matches(requested[3].url, "ticket=t1") + Assert.is_nil(requested[3].url:match("^https://m%.qidian%.com/?$")) +end + +do -- 本站常常不 Set-Cookie ywkey(只有 abPolicies);ticket 落到本站且 JSON 身份齐全就算完成 + reset() + respond(QR_PREFIX, qrcode("no-set-cookie")) + respond(POLL_PREFIX, poll( + '{"code":0,"scanStatus":5,"data":{"ticket":"t2","ywGuid":"temporary","ywKey":"old"}}')) + respond("https://m.qidian.com/?ticket=", { + code = 200, body = "shell", + headers = { ["Set-Cookie"] = "abPolicies=%7B%7D; Path=/" }, + }) + local spec = { app_id = "13", area_id = "31", return_url = "https://m.qidian.com/", ticket = "1" } + local got + QRLogin:new(spec, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=temporary; ywkey=old") +end + +do -- 即使临时凭据完整,也不跟陌生 HTTPS 地址 + reset() + respond(QR_PREFIX, qrcode("foreign")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":5,"data":{"ywGuid":"g","ywKey":"k",' + .. '"302url":"https://qidian.com.evil.example/steal"}}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.is_nil(got) + Assert.len(requested, 2) +end + +do -- 手机取消:关掉旧码不提示已取消,再要一张新码 + reset() + respond(QR_PREFIX, qrcode("old")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"3"}')) + respond(QR_PREFIX, qrcode("new")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":"5","data":{"ywGuid":"g4","ywKey":"k4"}}')) + local got + QRLogin:new(SPEC, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(got, "ywguid=g4; ywkey=k4") + Assert.eq(toastCount("已取消登录"), 0) + Assert.eq(requested[1].url:sub(1, #QR_PREFIX), QR_PREFIX) + Assert.eq(requested[3].url:sub(1, #QR_PREFIX), QR_PREFIX) + Assert.is_true(requested[4].url:find("qrcode=new", 1, true) ~= nil) + Assert.len(script, 0) +end + +for _idx, spec in ipairs({ + { app_id = "13", area_id = "31", return_url = "https://m.qidian.com/", + referer = "https://passport.qidian.com/mobile/login", title = "起点扫码登录", caption = SPEC.caption }, + { app_id = "57", area_id = "5", return_url = "https://www.xxsypro.com/", + referer = "https://passport.yuewen.com/yuewen.html", title = "潇湘扫码登录", caption = SPEC.caption }, +}) do + reset() + respond(QR_PREFIX, qrcode("source-session")) + respond(POLL_PREFIX, poll('{"code":0,"scanStatus":5,"data":{"ywGuid":"source-guid","ywKey":"source-key"}}')) + local got + QRLogin:new(spec, function(cookie) got = cookie end):start() + Stubs.flush() + Assert.eq(find("qr").title, spec.title) + Assert.matches(find("qr").text, "appid=" .. spec.app_id .. "&areaid=" .. spec.area_id) + Assert.matches(requested[1].url, "appId=" .. spec.app_id .. "&areaId=" .. spec.area_id) + Assert.matches(requested[2].url, "appId=" .. spec.app_id .. "&areaId=" .. spec.area_id) + Assert.eq(requested[1].headers.Referer, spec.referer) + Assert.eq(got, "ywguid=source-guid; ywkey=source-key") +end + +do -- 浏览器扩展绑定不改到 passport + local Setting = require("moonsource_qqreader.setting") + Assert.eq(Setting.browser.domain, "book.qq.com") + Assert.eq(Setting.browser.login, "https://book.qq.com/book-shelf") + Assert.eq(Setting.browser.check, "https://book.qq.com/book-shelf") + Assert.eq(type(Setting.login), "function") +end diff --git a/tests/support/qidian_fock_sample.lua b/tests/support/qidian_fock_sample.lua new file mode 100644 index 0000000..c44d2e7 --- /dev/null +++ b/tests/support/qidian_fock_sample.lua @@ -0,0 +1,13 @@ +--[[-- +起点已购 VIP 章节的真实密文样本(只有密文,明文不入库)。uid 是样本账号的 ywguid。 + +@module tests.support.qidian_fock_sample +--]] + +return { + content = "QOdN5HBhkkC9/l/IRm0/lSCaOTaNaS/ARorq455Le/+m1mAGa/LUZcu6zIFRiJ7CbeVNRPxins4URdZ4Hc9Rlcwvo+qwxkdPz11mbiAP6givnifuNU+W5OgalHm1/Ww20ldVnoibut1VUEI3JfsEvy8VB6MODPq5Hy1qUsecqKhIMGMwLwp9GjU+Zaqa9ukrMmw/59m6Hh02sLM2Ncnwnlw/HlP8vCWoZuW/BS8OdYjuGn8LaG5/tAf8zS+faeOzpD6K3w6cFQ8i5CMPaMNWVrDyE+VexkQpbyEqScSbc7um8zpAk9wEoT2aE+eztirRpk8NQZEvC7Cf9Do9Gzix8zFcAudcSwmyYzwJkhGZxla1BqEM1mK0Fg6kWAMp0r3MI0Nt92INlp4feH0RinXUz0OTrtoEoinUMnyUPgYiN0BJxvWc5tep6Zng2C+Uz/NcDQytKpF/heioZV7MIyTSD1EEfqflJHlG+TPBNhsKWxukJK36u/azFbgZr45wlfUw0L+KnmdhCXqf+Y7YTytMfWnWxhXIAitzR0y4hpFS+35E1GJREY9Y84dN2AkOwedx0XrGeZLWBoAgcORJwf1Rvq+CpoS+FkoZXBH8FUKOybI/juG4Z9XrUxd/p95OV2BlpefeljTBfrr+X+y1AJiVN1njaVjfLaxAGwqTnimh73S/XtabkluwNx+WlbUNnoYvljs4VgbIhMqcaYOtCBt8XknbzE0dH1tyIWeeoK42jQ9zlLXiBf7KEiXbPiGxoTTK3LYv8kjMTQDIuA7Bq4HsFqbc17qE4d4L8jMdTHywjkP0sC8Ij8S6G+rFQR9rIP1T0vRcMSrZlJv1o5OhfXEs4IYC+X1r85HPah0zwNRF5i69BfU/DEPxzk+kr7oRn+W6+OWdyRk97Z429ykY9IWt8xqgCT9YGrk9INZURSLfeNhj+nzRpT3Z7OjjStlSNvl1/qnalqus3ZDZYd08KMEV3akweIGjBgrq/MeCcD9v8lfHuAjj3ntXnLlDmc/bT8pcMJII7C8ldVxyYIYDI5G1mFUEPFaw7d7yhM03R6t73lbCGqIZgBat2l5RT+q54/GA5YNc49Au17kqSHeCI61OXMAAtKF7JYfHMjGQDbRdyPfZssbLzV9Ga6wq+7IfE7lEtO5Ym4ZIbSVgyM9eu7WuQHNQ6pikZQ9HB9kxRdwx4ZJu8fZRhRfTm3/jBooo1/C+DmnSndoLwgBEaSVU5q3BmQJy5on44F789nHjDf5ZIvwlTeGZdnaxPFYqd+m0jofOTP9Xg0NWT2sShr6C8MnKSMvRijs058E1ceNeKoY33sk4ImvBJHfYkUDst0lZYBeiV+RgILNXKHe61bZ9gPNs+EsfnCz73xafbeK990Y6HiiSfmwJpmHF8C5p16M5C7aNFik+NnPJsPiCXFozNySPMoVah36eK54hyp9Kx7dvp974DRdr+V9w3swUqfBFEV2pUJxw01bSyot5smnqXCYqwrm187Kcr2FAZamszIW25ER+hy1dNljso+jA3XXD9rjv8HHJV/oIhTYf7CVPXSAFVocNJQMZjJn5TlIvx7RiDak3lj9Rbzil1wgDB/1Dh4HDUKPXO3Z6WFi4STsS6NC23KHLygztJXcQDYCM1WTNiG3EL+nbd+sp7oyMd4aVrPNpVz+eAcRxfIXBbVSMpLayqrspydIZ94LkeLxa2ZZoDJuEvD7V2bn6a09ZkKEHCW6D6qaSK8TuxhoM9iK/fYTbEr1fnq0QNvmO/ZBg7CDHTqzelTZWSOJ+nRiqQYaypcVWfRWowXwdUgh+2CrouXMFPUXgZoc3K7qWPtXcH91Nl+LDPNhrbwBJ2lV+/OTFGF3liIxf6kwyiSo6cmjrKarKmBjm3BNtWmMLa/PsxQEUSKZHA72iduoXR8IM88cQNdAdvXhfJ5B21onIgLaD7njhKh1n5i1ePRhZhrt360bz0tqTZwA3kgCCl+BeInURwL+gVHBiALJF7RM2W6RouzU/SeoChIY7VgJeigiI3ZMQEx/ZZRG4S+6jz3S6Nl7b5IXEskOjTBDylTXCaSn130hO4kQud7n+dNxQD4Mr3xjCHT/brdoYjyKRo+hBk35z9m8uxCxUE6ElIqbSmmvvS2PGRqnFS9S3LGxWH17LgLHoMgX99T7mQmbyGWcXBQXnEUeHayDo/PqAecLD/CEAKpk/vLc71Xx6e8XgO6t468y7KdVpESV9s/of1rfu9F2ixRsvarZ9HHFPe1s8P0urplWecV8JlOqWlUJSTuP5NNUn9mm9TDfj9hBMX59BVl7e9GAUWCekpJzC70Fp5AFaM4wFbxttZGQcl9ZlbinAtB9kPwh/RvvU/ws4QcipAljp/8r1SnIheI+ODR+uOunILDfKZCcat6hwYo04fuSVyVet5wUphSstdwwmsMUZ0eCb5wYf12aVBLZQw/ueImLV6uCuOrcCEBpQ4E4opPrF6rmLuasgRhAjvDqbi9HIUFPyZKDoOOtNNEdZwi5aYm+Y4UXrjn7LnMW+kH8DKDR2IVCccW33OWoWY72lg5lH8dn9wkVeNHu+t0Dly6eWZYea3D82RwRilJg6ltc22gHs6gKumecFbVudsOadpjeoHg4Ve1Id9EesWo4i/hAX6CLgeO+sQ+zgeeq5KJt+AGs48Bw7h1xREmZhfHR3GWLmi1jQBllK3Alc91RK9g4b8GB6lE2FFYydsStD50S4tHKTiKsMgcT2xtEcpvsiLMLx4iLhp0V80F3OHw6WiZxym1YVgqDeiC34de5qtff6zbcLoKENyS5EiZc2jVpRGGmI7eGR5FrdsG998KHK402e8Y4j9qfGnI1uQ+ZFArwdUkLmPqLKCQwHTs+U9Esy+/akIm7ViVxlKgvpe8XdqX1P+ZpEDDbi+5sUoDpMsgWzk0Fjum2vdNr6VEBolEkyKKXZOzgJ4PLkY4U+WaCNof9wuG2S8jfAScPL2o86PHBtLBud7x+/uVtADScbgToxeuKZSLAhZ71Th6eH4H1G+sQqHFvKMRFpFtxoDMAYQ9tBZCO45cJIgs98E6jM9jV9+MYtnYv5C7q23VN5J6tT31IlAzTID4Efe3Fvl8jlnzPh3x/qaxZ43uFi4BjpEP5ST6siTjZdExlNyxbxFriF9Qm1NSmlh44TN0l2WzIq7MIRqeAD7qdpZ+FqFkyEu1oV+aFNi7s7z8ZWsYUoj743Xcg9X6c4lM0U86Z45ZfDDSrrMbpwYfSmv9vR0v6p2fSN5/z7MX6HbJThgr3qel/SXU5LfkYPG1BO1TsrHtn1LCKLDAYks3hWkbofed76ZRWy5Y37WKKUV5Khs9HK1mr2t1+/Unt1Vt4Xz3qS40m/qHS0zH7qSnMqSG0Ya58rB8Qt/YcmP8XByyLpPtO9WRWK6cTNi9bRlRFBH9hRBXydJ+DjpUJkXvft4FxjhtQDiJpnH1nZZH/MF4GctUUuy7ALmyouhwstZQIQrxkJgdAfuDlv81ooZW3FaUZeKCK0nfs7BRkk2lyJN4aNXly0hVuOOVSLsiuCIJiC+eHET1Ed6Pjv+1a9uzXv5utB9wr4a/uJDW/LpkMvg1C6x5WvdKY88VNeBOcq3IuPFWchQwsAqogqUzkK3BZUagTXqRKk8IKAFONGTCQzmqOSykLZQYKBt7aPJtptLNfIDdkbVw/ImCj4NkAUwroiT5jXphYDvtA5Evrx+/2zPjbKLIHg2S5Yc3MWdIkbjX/YXs4C/2yFLK1kFTjXd5NL8KIHAML5FSaCWbM4/2hFW5u5HVmjVbW8hiIRtiJ+WuvwAaHNupZcwCZtYyCPKdsimVRSkwwchZ8Y7J4az6pSCCVNee3hpICDf1m3RQ5UmDep+sYumnS6hANpeMroIiT/0h5dZj+/+5F1uHeb/lAKEK9dm9HGOipfH6CTqER7mQdUC3TOYE7ZJFR7kA3EtcrUJZhEy/npJ3hGWlHXwinbwuEiASYdfeXDVd63aV+A3v0K+6Cxq9FYGDw9FkA0Ni0lkRKLNCYvxHOrEYdbMbH56IDqkon4i1jpJegO1fpSgHFcAKEYVlLnlSuDE5IEr88Cne9oez9gQFwaCmBA64NdHK5nlLmQ1ZmhIUAtNXs8coCf0Hs59IGNtYXN2XYPA4HwtDx78vIbv4Iif2Iji5M0DuoSYJVZfos/rVkP8jfvdVYK3s0h4MhlKwFhK8hkeMWShz6Zl5cRCVN5XOyToVIJWIxixk6YhmHpznIofeGLsLKpQVaaKds8PzIBWLdmAqEe6wSSJxwrd6FKJd5a8BhyMc0NXPm5bTBSWRuZfWgG/D6XygGot7OmuwfwfUM3aUloteaiNOYl8l5auY8E5ETJsUjQT+lJkErKl7K6Cb4FYkTsvscMTAXIz4yfcmAg7ezvc+HGY9ooo6sxMsi6Y1jJKXtNmk0zUVMdl0F4ZPAKCig8rp5IwMVq8mEfntUSkA1RIOdtk5BtO+HsTMO9CVmt5ay2zSSkXz/sT81IQs9iRLQuo8AXbVzRmjszRo0yGTIteoNrl6UfCU1wSVZnnXrggSnpD0ok0kOoX5uVNT9XvG9+akVxD6bT7oUZ+0b0w3dvEd9O/mBtlkjbgd7xpP6sT5+BTztUesX6ehD5/gemeVg6Ra/PGiEmv76dbnoYAC998mP9qQZ5C3/e2ZMis5uiYFVxNr12eQ82ML/9NQn7dGiKHR4p5HQByTI27hRUVGRNiePzV5apfok994jPSJ8VMcfOQS67M5qO2yRy7uPr9OtEcqMjvAluQZoyGa8XcDaPYkvPjOfETRqvZU+N7tv2Jx1ogfIvNbd9JIHvzSrEB4rluqD5BjdNoOMJtkrnm/Vkd+TB2Pjl0wCecd/54aCuq/vA866AcqNeppBpq0eVVFpD7XX1sdhihlI1dayBI7znd8O+6LkDwSfo0/4/UrzEp51f2iT3UdQy2CUbxshuSwZvNJWDdnLTZsREX4Bk9kdd8iw9x2z53V+WFyrdVIr4Jv2R7nodVZya2t9EFStqcZSHxPehWf1yTUJm46Dl4yA3sqmvUkpG1pDg+GfUUpo9rkULInGInZHmifLUxb7qvhuq5KzNXg+PM4yXMYUQQK9CeVElJpgG//SXmis2avU0atSpL8HIqfdh88bL8GTKpfLtXDEL+ynII6RlzVNdoMTBDQ2BgpE7omizVpY882I0VDQ9Y3R+IkOjDJrm9QPDuVTEoaBlXm+lDSPv5LhCqJkLWMqM8ZpB2IO3dem6VTQH44z6XDQIC6z3+3jHF4NARb/sSlNTDW3RKZmdAWpTdfo6HiQzan0pHnhCPeIiJ4Zz+rIoWnsaug3fgaBPuwlmfmhBU6IAmevxXQoTj2oKMsYTuH8MKXR/M4/Rsl3SXK5Ukv2lLA52Qu7bI4PlOqUjw7a0M8dlgLO8MjyJwc/gC0fR55r4Kpmy1hKBnEpT4K9eO997rQMOLkcl6LG5zxpPDeBiRx7qAdG/ppAQSKShuYkrZgSzc4/4hlrAvgmzeQnQneNDyfMxxWZxUVl8Q0El0vspwtwtiVXILeeGJ2BbzRk7nWmC1kRRFwd1hXYPVmSTm2uqeNqFuN4GcGkdVtwmCaJNozIwXgHlyNyOHB7XLHCFe0xJv8Bc9pxVyq9fNdgT+AKb7I8FCRhejd1Ufk6RL9DJiMxESGj0FpZFiZx0npPluY4a62bOrCReswFHWDCyMuAwQNnEAuayTvYpmld9+2tL0Ct4bAPgdrjFMPkj2ahbfRjC2DYZuz8EtrVPDsaGMVEZAbXgBoYJQXtAS0jx9MFDWRlKUZ8YUKgypNw0VXqZYk5NavWWL32BKWyM9N+dRPiGZUaOCQIZgXdvkKVRm7Y7kkdDOmAb9U2eZXIx91fJs4flNODjWG1AnldTlUUQJJT/OOHsfM5Y1QS5C+6MdF2ZSVzPvfoMBhRZfpzb72F7wXQ8Cz2kqjW+6mSlNKTLb9cUPxojN2xkTvEsRbJb/CYTE3Od11JEyACPTAFlxWzGC3IN5pKXSCuAyzzTmA4ZE4q3qcJ2v4uznm2Ba1oDlKP+pJ0wh6jY+gqSLcKKX2190zDgchCkNcvb5hqKldcu3uAu3xL9Mpq7h3xAnOyTy6lrU+vsgJiaaWJza282bEnoTGEmhfskvBU64VfOP/qAR6rtJK1KNFPkXvHSLo2uUmew1VL4logpnCMClco6IrQyFC9h0r3wls1+EIwfZMnS3BPlMmKgnSWdl6c8qm5FIp7+HViklRfHHU4bEaVGV+c4KMAyXIOwuVujuDowAIt14XSyapPU/n+cCbaPD0dcJiCM5iI7s8qlPuM0sEuSqW28MahklldWUTDUBT/GMLRQ9W4995J9KlDe1tJCRBO6OZjQT3bKtBkQpppar1qJP32KyBiv9d8E9ED9xzuGd25bnQIKO86c4bkXPZ4l2UDRGURr8ClQ0Bkr4pmnlwuhlZV44ZVNh0ynq/cE2vTX4PcelfRXalJDZxpSn5ny3hxJ+Cc6GJvjGGUJ2p6aU5auH631QoKpLr59xFp5MYL6LilwR0xJ7157RlIfwHAbcaBU5EkqY4wGBB8cT9MS+ux5+pePymdPhQ7sSaJf/D9dgUSljFLu9dCnOFi85gKPwrdaCDPB2Cr/YJAzpTGw6pyUaZPs6Dv2lyITfXFZMGEorpayzbl4zVY8H5FTCg8TWNleWU2OcGZAH4ENkse19x15Ij3eVhyrMMFoUlD575suLjLzbel7TOrSbEFJHdPQMCzuDX6UpdTJGiJRKon5vml5GzIefTrYIiVJYQawYohTL+Olz+aiOvHgIqED+0vTmoTMbhnpGXh6UPmso+NOsV6w4xzU8T+/Qyz/HrHhIHwDWdNp+NwAMPcL48KgDtlwh461Ic+lXvW1psGcj6v+oA1oCdk7U46XCgxoRY6+73GkbkBTKY18UbVVnEzUPBXrIPGzFW3zWSYG6gDo4dq6d2H/S6A457hX7M8/vtlXyV1T9kmnO8i7KTEzsv/ThUhFu8+yVqr/bqz8yQUf7dbOa/oILqaPNm7tiyoFttGg3RlkSv1ymtXPedC8cG5zA3aO59TJiYkMKa8eGd3gcmENZ4auoMNpnPAEaSwCZ/iSpHRc9EkXs760ECDQPwuuCqtjhWMcwOGK17hrFZN9JPEbFDYrGMlm9KsQmW62cg8EAYuY4uBbpCIb5OKlV39RAcsZcg+YJZ5aMrbQBYYZwywrgd/Mzgef9PgEQD8zc9OhPdKc5LdtnOpy38IDMzdRXuHx/WWeBWxcN31HIRJ5hm1SJXYxelhv+ZdoioZ2yl5nYTmc0b+biPXJyEvGsyTUy0+eY+BBmUt+iEidzCxtIhuHBE3rNKZzX4FWG/tb3S5VgDMQXjgp6uJnKxD1X9R/NHNm1ySKQlz5ucibkupdMxsmA9jHgWdoJNpgmMRuVn+yITQzSEvz7PV5b7J5o3mquYrenLGtYjs4H//0ZSKQSWTj4MT2tgrP1VevIZFu+PX6QcKE9SyWdlrvt4tgQQUvzk2a1LdjkHxElSl/hPSMBvKT+tDWyzYtm6DN6vNMU6MSHXIUEKu+lsuh/mB/YVhZPDOTth96wTk4Vez+yrLN4KCxatgKiCDH+UxXPdanvrArq9pgapg8qY+LnSxlYDnj5FFPx19JXz5jTjBYic/MwwbYF4kUiWIGGcFD83zfGEitChjzlHj1CW3QgUqaAOVzWoaVU6gTpWJmbZ9zzS++iaMYKev7XXWqg/l60uxUG7tVHAm2YtiQ3tOczC9IWtj90ElwR71ocCuhyoop4bR+yJ5/mGyiXyY+1PTXyS3L2brLcxGRCpqwviPrgEqijlwJ2cEPeNKxqakIs775dGPivpfJqEvsFw120moSHHSePTNpl2ukXsvgxuYDzZHy8j5JSaWum3qvlIV/2MnOz3H2JX/4dS2+QJkucblEJUDZoHviFEjQkKvYhmKAattvbX2h7fwIxC5tm5FxXdL9B7/Gwu36g03PuDhaGQs5fX8N7qGB738OYiJTy/1Zme/+ov3TnX/jxB8ryhV75rADu3o7CjwifbQKa82a1kwLB0+ZhTf+hDk5VG/n6GmcxYw/E3U2H8tQteD/v4S1cqdsggkZM8vGgDCtOfmZTrUzj5mDQT8Y7eWZVcRk4uyiR80Wtm3M2wPXrR6OHx6BTqK/KShHZ8JLGgos6RogpBfmtmR/0qbd0gQ4Dj+ndkwqH7wFa9Oq/DHLPIf5cad8A/RBcFyl17RkA3llNfU5UmypJv/hsCkQUOnEnjDXkFwd045EixbVfSLTG6oJBpSHPmphB5f5HnoVGl4tS9bXDu0Angp7Egt1k446NtdkbacSPVQzVefNjeFXJKAKbTkex0lmCynt2zH6/VZhnw+tTKzDITtLwRlhiOlLlALG4vuDTfP2hFuB9tLj1hfm8W/U7TRi8xT53WgAxnFVQFbVbOjMMw33GcGiTf3o309umQDOZ3bjuW+sJ+tUCQph+Y7ucyuRIfmianM4Yq2Uzt63vxeolVCvWmAQP0uqrBThRe7GR0K+w250oECu/OnrYxD9zUEvCBA6vo0jU5CU/vELiNrSjauqhN8vUzsdByFbcuDDiCgEonftzc96G96bUl/TeqoldlnJZjHMivTbj3/8B39waW3y5/KH7J0NHV+DQtFBNtR8OjxgZEHjXxy8naXQs0c2xorFs/QtmD/e6zG8PRXSTSrWFBvnrMmfUBwHsIXhEVj15cBYQEduYB9bnBUJ9zj6eHtw6kW6QHTTWbKhu/8m7smqGqdKVKbcq4DLytH59VlcdkR4r49IGOuKZ4a8GvkvMen8hYCj8v4KvFx9JuvZdUG/62zrg1axSVBhFmi9hl1NcIySmViZWNsmOxHBbZPchmxggdH9MQpel+FsDUMrdOsi9iIY/ikdrG4D1MUlIPAEwx1aRu0KcsvuS6fuuXzO31qQMfnpHd/Q0inX4YwhwfjhcuchMvYw2bcqpiKaUYtjQFKUFdgUDvYTCe9EeeuI9oiYT50oZFJx1JsvsH9gCZgyZEP4h53R39WpnAJPKvC49PSpRuOsveDBVpEmo8NPLTrK2eMsVBIuEYnxXw2TIhyohOHzZXNV9DcCHGafqDemxmzJpzn3l0a15okpEgLKlTirflIF4zzPmyTKZ7fL8zETuyVA1Zm2xgijJd+bkG/TiiTPk8zWwhhcnoTPrf9mbAiBD7yFklQ0/UzGXmkKw3Nt6Mxdeulfko2LzS6gazLsjUAFrJL8Q65b/6p551CokyrHqwEr+b1sD4slUIB7YsR7Q3SiRi+sAhuS0NJw6ilmxLfYBqgg4sLsWKIsC4sOT1X0FdQ74faffGdP8OgcIXIBK1lkn1UBDQTCkwUD0e+3khGt99SoTKGbAzAs+w0Xp/uqE/D525fAZ4WclwzKZggHrWwiTD8EBiRsBU4tvieU2PctuVpd0e8m+lXZ/O04jkFdr1kZ2QIzHV7eZq4fSJcKHaNyccUDNln52PS8/uxWkJ/4qdfGKNxs/M6N5tqFSkx8x+Ywz2KjeDU1zImE9tnqLI8uS/sEkCA0VUtQRQUpsFR095sva/SKGUKvN1Bt2vGIAnroXtgRbQC0cytlaKyrRnuLP1X5iId9sA892NlerZU0z85yUCBAvmTF4M9Og3XKSTAt4W1dC2k4EEKyKsU4U5SZbN/wrsqSQtXcNlxWdoZr9nmIAKPdEGon75zmPEWhwdEglNg1eu/3xHXV3jondCzgF9VLC0wp/JTUIWtesgvGbwiweRMlXvl21pKG55UODho7oaFJ1t11YlYjpMoLgCQhKv3jTysr5z5HYlGOiFGxBAU1Sdnp28VX2/WrsyRsO0qM/PyBmjQKwwtw1j+auNE0Hn+L7DHZIRTyqvNTAUnah1jaJTtZxAbYNPUd1gXPwIs6KPeQsWXZjEFdoBPCOxe1psOUClCPyvE9mXMq6lsOvO9eaOumWJhQZSX3WkcuOytFxEZ72ql4M8Uq+2mJsZlsz8wV+ryYntczBdF6E68k4/vuiGON/r05P9HfcSNl0IrRry/beejlIL6nVenV245NwjGi5Znf+nL+f8bUz7FHgbX/PVI0QW5A63uXPaxK1GZh1trFoiF0G/8wI4NVbnZ2McAQUiQ/M8teNgJhGy1/oEgXj0f0lKcQekhq790eZ67L0UIRgdFHh8SGhj9VFe0l7/uEdziQh95uewEfm0RkBKjyGc4hzB/n6P5U2crTuYXHD530ppOgxvg2xYgpoFET7c13paIVpD0zH+VPa9OPZNt2yrXQPu2Rru0Z3+2a23CUywfT5a+Pcwf9wnQVFTh0sZdA3u5OEpnitWEyf7UKUcWGw/QipkLHumuDnk7hIucSYVzH3ncN4Ly2lBh2XT6oY3UXZ6jrwNu8Caq8DpIof70CagTl4RLtbBAkSxGZmsHl8hmYB6+ql9e/mKdYXfWoyCPL5U06g0HP1GjBL3Jm0GfKBwX8SLBZ8xDyyDqoA59J8jqumJM2qqjgd4XqFbywsd9SqMFePdrOfePDsz1f7W2ZBiiv8JtPJwFXRkRAzOZ4ZVcfohKrpG7A37EtG10OAELqUU6DjutWnKnOLqao3qkofVp52DKr1CViqSZD+xwWJH+uefT+obQlAIDtvDi7V7v8cTN3J+stgGWj+lrLVEWMJz8e24vj8l51i4ZPE0biit6CjyN0K429QoFLtKjhvfCykrHypwWMHNalHDcokcmGrUfjuZAh6FpAwMlTe5NXtRKeo2s6K3PqGD6ZMAVe087KBOlhwimqhmMfPI7u0Du8NBZkfM7E3uCDMIRjNUs8J/BgjZ/SMVN944/smdFPVvqxfYp/AXl6llAVcXYKDa0sbNrSckvy//fLPH8uu8CsU8WGdtA/lD7/ujHPQa0QLHB4C/MZi6QC1aBw4KsgRMzvaImQzDxhR45sL2OmRp0GIXuZtC4gHmW8Hcl7F7QgfX4uVDhsCLp+197+Di3aplwPGQ6c+ScdgQpHXzEWLtDg7jccIjPaKuWrZNt61F/Vkwr6J+JHWl84GVMu6pV3c8y4UR8BYSt65Au3k4lQiZeyAzCcJv2QMQhfAV/1k7kEuUEnApZSU61AkJbNBCG2KEBNadrO1xobATfyL7sFjZSOjTlwIhS5TEv882YVjunMj3JbuFxP4Qcia3tXvTnXVzwZ0eAQgNwYpiv7/8qzQNZHQQcvCyRM7EfeEo4cC+on13aDmr/MyU31AHY5F80bF7mGYflqPLU3YduCZddtQL3DisKNiiS7ec5wFBD1BkEGRHuPCMzcM1hL/TjsgHunIbnzeSVT2FeyF+JxqSezZkyECn2FhoxvKl1phl+N75/EOE5Xc6O58yC9sehJiDRU3G5IsPj++4XXophuyvZez+5jBAsG27WjTH8typ0eUmks59whlzYmWsTW0f1muiWnGUBO+umPNl8KOiqPplFilSIhPjHAWqu6Ygm53N6i8vwwxItcDFCRY1ABzL9Z4gYLPWTgF7d6lKZz0uU2cVXNMp/p2rYuvN51V+EDNR8qpO+yUC9LA7U9QnFbluXb3HLj+Wf0noZUbWu/KJtFo/qdxBB8yIuOvfbG3rzkFvmhlMle0v9DoL+e9W7Jpmqy3FLjruyFpRLXtuGpBQrIUVniDBZFe8oRH7eBFAwyL3bsWo64qdXvAQ3y5tVh5MTXXrTjecZKotBLBFcmbfmzeRbTFqdb+9AAUq7Z++gaBwNUyrEX+duYAx2oIE46eqYRBEYLSJN++qxHXio3zue9qtjQcJXG2LTKg/3PJrrikKRkzGK85h2u/ljjdhGvt3SMS6EbPz7v/wTRJbByTyVAmwuHgrDGCgCAQRqz8xwQ8ctTH7lsMTgtMcpBwBfXKiO/9y/Dv4s+D+vDC2bnMeylzMLQ6ET2D2EacCjHNTOadE/hOGA5cR63Sk1xUzrwOPjnWqAdEi+xjg7Ut+tJbFi4dt3LqmoiOR/gDCQQQ5Fif542sZrMOV8iWa37mNCh1cgo6MiupMoJHx2WUb0KKRw7nUTNQNOGFP1EmljKIrkPjSzJSUyrC3CTFakltipW6o3LaylLZJTatBrpeuWjuthjB9NXEjUzPvH+sD1C5wMMzJiAc7PUE0QAB9AjjieMbevbMbqVe4wkh9G1HzTnUtUmiAnrbCO27oiMb7XJCWwNx7emvpmS582MUae4vrGnEo+HWCWX/M90ILN6GVukfyUgqhXbNhaICcNvgK5b/Wp7x8QYf8eo7jdTmkQ4x9r6J/jof56tq3X0geSMJ5i3hBBzzyXoh1Lp8FI+m7dAYj4EklYR1gpWMQalUjzuoKXDu31dKZIWd14CEg1E2EdsQjdCM62Y2yPmyu2xd/nxM9+y+u7y89BTwwLaTfMndrjId9hVKEaV0vc5lEwMNpHZuRV05Qxj3JhdGgsFNCkAh8o1I38VciDMhlNYLBWIylLuNpfQ4PKNvwbTNIGf86vhCS3YbCkLdhPGMGKfa7lXi2Bpn/UaG/fCLfrpVVLA41nms3yPio6cPzB4ZeDVZhnvRAPtq8eB6lR09CrNj3R5IofEHMD32B4XzIBqecrklU7OlY9a3XEmIQJLoMXhv6XZn/mlq34Io4jYhS1yc7G2SNVgUI6AtLGYPUdefjksLd7kJrTQ7Dpxyn6kzT0QVOamKZM2OfRgG19oN+ElL4MH+lTXE9S5NrL5Qzf+bqJ6wgiSgNeg/HICMFNQbLScF55cXdmA9VNnDEfW9XUv/iX4Z1eSfNvA41BBPzIkGhDPiCp2sp++lWm/agKdHGwb6/HuQaYKc1Hhx7B4NUXHQK1PWqxF9U1Y5WwxYpg+D7mlsu0ivuxs921UXgkOko6nDsXrFKCCMDTmnT+e8/3yfFxJdn9NvsaYfEhDMxfOnf50WcfCEXJ59+b1NjRrn+Cxd9oCClsotlVshu5szAL2ixj37rAY9u3Wrys8hl6+mM8bLM5X7cFbi0/tgDPXKk/bBacTK4rPikkPKY3M00gMjP0enlhfKaxccnz67yb+WGD+0fdMWlz0kjtpJC+nbAEzf1ZXwPsLAGdj1zSCDF0QN4QVMlNXxdr+ZU39olgiwhpg+c3d3RCuMrqG4A2fC982aGhWXVRxwNL1UE347SstclTnids/H9SNp7vc8wOsSP4OOPgRoaMzkaNQyIid75IgbbVw3ktIVThDy7enEXkJ9Sd6mMQ67rPrWmC2NYqhKIbmM6F5i6o+DC0Vj9JNFtJnHORm9jLGW2hMMyZfIdRi1/4KCiQMl0PoMePFrz+nIUXOytq3y8mlwp9dYWuxZqS+2gl/PXdB208cMlRRgRjMdbrikR24g1NtulE7HT09csTvPYINRP/6wH4IdMtYl4Q4Vg1Lv4HLt+L+u8KsrXzEYllEMjTCcr7lXXmY2R6QJCH6MiwpflKnJ4fv3BEaJ7I7FYAmM5+cokZJTJCj8RYhwmfvfSRzorF01o/oW6+eXKFV8fsFUiv5/TsChpeYAU6UjBzdKTg9otYFFFlLqAuE1z2PUbW9zUsSKWghEqNzam/vOw1LmOxwmWoDTGkQn5N8XJQZavFZ1hUofw+rXXnqMM3p01805k3CP6WcRn8pS+xRUTimLjcx8QSgxQopmcyplpq6Xc1GZEPzDMIkr+lkOn635HuUxhYs+XRIv9sjRh2WnamLmQvQHnukgKMaIdL44nKfMyK4bl9y/5U5VNfnniT6hB07GZmeG/l8Cfrnw/VTFpjt1qQTpxsbXnjr4pw/0MbqoyM/CuR6I4EXqKI9xVgeV+52TQDmlxoE2f2SsBnxYw6fz6Fw23E3qpgaleYxr6vBOimb5sghTqueknDqCRZjDjthQXC+ZtpcP7wyW9JNNVSVfKq5yH5Kl166qhq/ssi2QS9AsxVuf4t5/T1YRjeZnyuSn0AUPpvrY4YYwA2v+9LtcPnZ/hoUYr7LVp1YbSkPFdtTGKbbouJkxxAep+3Ybm1ACtpgKNNnBVVYwqb6RndtE66lOB/+5ynq36Hb/svvN+VkyCMmGdtjcZlj18zsLMzl8attDlOu7Q0DyHXuaoXrKhKLPqPhMYYNpD94D++6tDuYqACwoqooKg5j3fXEmfyF2UzH7Rb3McG5ufNYa9FPLLOOZjRzdnU2RusKWl+g197K2hF5cmLCGe78WQLR4fMDLwZfHH265pCLvK9+MiwHkilCA6RXlUZU3PyPosF5rPzFCk0W6mRgbgkqOZ2mlfNd2wa5y1cx3VEeEvZwTpx3dM8J9YqxbzMf6Mv5UhnqPM1HI1qzYZxlJTFlvXJ2LlTrEIgf/mWL8bjejmseMJ9XDW9YWuKPMAUAKvb2V26Q0D+3BxK+/ir5/SZCrvweGpa/xuWET7GJoW1W2+fmnFwBfJ+a2NihGDzPhFYh8aA9GX7TIh0koFKNIUfMfmqXYjn7m3e9tCu8zOdBTorQYdTmHd1bv31XJj31x3lmTOqjW6Yb/romwyGGfaU5teOQv8EevMB80xZaQaGbQ747Dn6saT3zaYmQ/MzLkoD9aq3w8M4aoJARziV34xBPWGdsW0ySnvf39YZuj4Qt9Sp4g6Qx3elp8rmEShy2ktWH0IOGPP4zm+TN5p9by2Cb0K8wD2Jq7Zy288P+II3kK2TMbs4alPsSGgnYYqE+kC+TyKk4g33/lU8sJ4+VG0cPMgzwwlPLo96bNOXLe4T/54+KaUbcDy9hKoxtVtiXA8FIIC7Qq4Y6Nckd8nOMxS0Ef3iaeXWEaSH4RVdiYk6fEPO/pgG/JV3AJfmf/HA2Z+l62RBee50rGRwK/1eTJb7YSqKTySYQSTuGA2N3omlgbYGQGTpRtOa2hGKniU16FkrC5bvNYpqK1vLJRDT1P0E/jng8Tx8IGHpevJDSnTxNOVPmxOlSVdiO3Yl+/AAP+buKNPhsAMXknQoEVOIwEn/pSuQPF7XE8+SjsWK6CfIlicM31d4B2And/N0Y9IYAnGIwIgR2q55BZf4hSrcoTi1d5f9sfBInK0ZKaaykd67IcefmwFWzbD0Pi8SvJUSUTnEiFcw7NXR0jJuxu+ESkYOJ+jRrHNkaIoX5+JSxy9THAXwLCc3LvGbnpRwzGdd6BdXByKg7AntcqMijMRVl4mwU3k51AmOFZfTOdTEdmfWfaDKM9ui+Ctjo7pNg0/v/9aoGkIMXMEcLtSuVWLGlcaUme4KVlnIS/KD6Xd03nOVaGTF44M+ULmJbNX8+fukQ+DleBkBw+euhYl290WM2cQBT0VPnVg3HlbbXj+KRS4NIbcvc6bv/sDtukHXmHZDx43Oo4VfnJm224C3rYD8lTArMPT/VWIVm36rFinB5BT0sTjRJboudgPZP0SsZosUxC1yg6zAvn0kQnGn6tTbSKPM8yzQtiGcnnx2nqFPydPXOuciMzzIaDYJXjZWFCHSD2bUsOy52z4AKNzJgKGsHgCChl4Zq+G/aVWw1fnmTaBLA7/F+6shcn124swWZALqiTamCBB/1diuo4XBes0S3NVR6T6T3hB+GazxMXSLzDtte7OvKGAk/yQ7sp6lm7mlB/RjD26p4ZNiPP1Uf7fr51hDkMSRPrGgy1LYU4695Y2fCerquAAQFivJEexuUZseXzPuf0aV7z0zPBR4NoewP+ed14Pjy7BdM+W1Fh9pUbYbsHlEUCa7PxRp7i93dAFMQvMCnEj4ui9OP+o/epRwewsIOLa4wl2jtyiCXBBNfxz7S6Jx1u61nI5AdmDygSs5EIVSSZ75iqZcmO9xNffBgll103DsIY72sqtYRbX0zQbbBChumSIV9qZ9nnv4kpzSJJWigmjEmKZm1kf8iJtlcRi8ub0JtXEzyRKZfEvzimJNGaAQ58Q2hFHE5ba0kNb/ut4mkRnC8V8BqyC3gWGEatDVcwzaNZW23A1LBisrK1XR/yrVPC2ZYCwJ5sUQOGWS5LQRdbfN6nBDklLhxD0QBoYZwEVncIwsOZmb/o/mw+IEQtvCZdiYp2kvS2OeT0t0FPGzEPMLfNcdmezyM2+hjGwEmu4ukRKzzifGZQBrphnhpjdLbpdUDLdrhyEjLu6kNxt2MTxsOAh+szebS/dNeHXYX+q0Lv0X1FAVMPBqRCuRCWn03b4XEDiz8MwHIFMFVDy7yCcQTOtfpyJ/G9h+x1WItkULcmsPVheko8AX2A/PFCv/iWo87yhYa5LZyR7IANdGEEQeLTJoRU/K3ka76RurLYmrDl4kTpzWXp8iudDrX+md3eQVUgaAtAc2GT8QBls0j4BbElrrQDyvzjDDV/L0qw0ZpxD46L0lvhP/t73j5YZq0dQCxL8RrrRJWl2mc5shxON8Nwu0EX/4VdOubhB+Pcv3Cch3SBYAvnOsVWXYppSRAydl2UGAO0Hr62KZPry98hk5AnXoBK4o/jK36WKbeqrQ9r76++w4Bx5wxL3wB9/+ooFSfFX5GctkV0EXkHV4UWpeegZUBCwZUbecWVf6XUiBwqlNCQWJ/vjUzxmlQ55Di2SJu1O3Fpkg3Iue6gkRs2DxJCPB/3pLDzBIkjo7Ps/4NU39GyGjNFLZmxXjV7AxnQFs77GMB5Dh/gzqvObAFvmzN1kq06IpyGg6OdX749cZvkgiT6ZYWaAFIEZcHA7tpwgnx+/q6fMcbZ5i50ybX6znl/UmzJFUyih0WdwZtkYDtL/FMlh5k/ATitSMATWoiKHlDlK8piMO0RoLYyyrioJzavRbnqHPFS6hQMxf0V9Df76CzdLvvfukXmass1H0WAcwQrrCitySe1uPih0B9gv1SI6aqlZJrFndZ2sRRLamX/c5aGIJkvDc/7iVP1pWP1fwD7ZlmuLjS5nWVD34Z0R3/8E8AfNe9jp4j0qDJWsciDTwu/WYzKjOkaOR3nbCTe0ufL62VQEsty4NV9y5y3TQwE8fouiW7poqfv0p3+CJH7newtVa9dQ7tYWgk02hhp3kwXdgLkutDxWfbUKR4y80lVyDK1ObBHQ47X1qFPzaj6W0DU4jFsO+TvmWkpq3GgQJA9/GSi+oD8i7pdvh6k2f1Vv3TUqk7foREEqA73mp1/rXoh84dMNdcpZxZPjyMNc03ZQeqYvMlyaXyeivUYqLH3Bys82rBSzcvyHz4MDWbneG5Y9ipYFDrtSsrZ1HLwIw+h9RBP1ScAVeYzWikM3saJXuKr0vI6yxgJ9gQ4xKZ5gdHKsC/2rMOE3VuyRunh9JBgRe2eLJpKmCxHNaU1UZO2q6k1NitlUK55prDYB3glW6oWdKqlVK8GhpF/pwnaCxuZP5zx0M49dBEIs3dvrjnO5cwa3U/awnhIj7qgwFmeJpY3Ft0TbmY8ofgOwxKgxRxlUaN77v+x74xMjv7fRZwrfVzYp8Ft1e3sZ4VendOQaqPnOGql4nGnxjdbMmW5wIv3CoAfnyXh94iapmYUuW8PEl63r+rVxQiavCtdDvZgcdqmGQGQ22PyKdp2OAlsbkaRX22hsHkN7rm36i/DeZuaJwke/983zjH3WXOl7FFgA+D2/k13acRz2Pzo+HKfzXWF9A4WHo2Unuq6xLzDT6DUNu0pmoseHEFRqjcDIzHTtkumbLAbtqqbdEvxZFiyymWnDQoLcm7MV6wXifr0DJ0U2K8Y77kOK449tGeuk3yGYhy2Axomp0qnSv4qOhkRA6OW4vCMqpUCQ7G2j8xtEzo2/mokNFxg3yFNBWEXiDJtg9S6lsUkK4yl5qWO1ieng0LSVHafXEabnOCTV97/pu21/djYBbY/rGw7gWr9/wnB3C1cN5AMt581mOmMYGpzk9bpqf5XC99sXT8eRwC50eqrvwEL6rE4ZmZTGxQdgWr26DI/0lnFHi54Y6CnCqon1Ts9lKqXvFd9oVYr6X28PO/APgZ8yQPZhORu/Qof+UCW7cd0sfsxj6wLduQvpMS998GPgWlbIdmADEIj+98BZKthW2WzBAp51FL5bX8zOgu49UqO39X9iSTYwwQ5ySbBmUdg3jxEsBV4yB9aP37fcQ7xT2HCfaG1aaRPaQqjIfQ4Y4+Q2Ys0rctJnVXNi+KRJJ7a95Bwv5JrHipIMINdlERcCGGMJU+jVBIagqjyXG9cmGiqm52VsQLYc/5S7MPZSkB/IOSgSDDlk45qQII08GOD+BVZpi0p65RJQHUQvk74V+gUfgUmnLk52eHYJKSjrQlM7Jtr35y2lyWjlEMfZXQmPgkwmHDbltptObI+jEza6cvfwlMhCW4xN0Sb1RKuwhuE8PXxqHeai9vfebBasSJTxoTgQX78N2t8gsimi4+6gKrbBD4TVebmXES1E0ZogvkcrV0H66gFo+ibNUIy8D3pCS/ePTs0guyysNnsp1nbBcZzliGwqEfuIyIko/xvtr6vkk55J3+a5nsJmAojKP7D9/+v4sf0RSpmO7ZBrTUc6PQGG3OLtAI/McLTpKwP2mPLXkp+IGehnVkrA9h+JsM8w==", + chapter_id = "919458235", + keypool = "Kbs29rbPW7ovIu6TZlGonTp7q8otJyw18iho6Sk0EwX43/Twr7ofO3m15ypGgpNGooA4C6GCTB2y+bBSOxY/8Zwtyx7ry34qaxDeHQfTn+5e+mlxaUQ4zWnmuuhOt7lCtFlftvtYv0sKykS8dMM9DPY/zUljbxQiDDM7AGzo/gP64dMPDozys2SzeJ/z3JEEUX2lcdLh/Ohh0J3VbCBwT/ccX5Al7Pa/JO8LjERMyaE=", + version = "1635757421", + uid = "900055953280", +} diff --git a/tools/gen_fock.js b/tools/gen_fock.js new file mode 100644 index 0000000..3c29eb3 --- /dev/null +++ b/tools/gen_fock.js @@ -0,0 +1,666 @@ +#!/usr/bin/env node +/* + * 起点 Fock(wasm2js 产物)→ LuaJIT 转译器。开发期工具,运行时不用。 + * + * 用法:node tools/gen_fock.js <输出.lua> + * 依赖:npm i acorn(仅开发机)。 + * + * 只认 wasm2js 产出的 asm.js 子集:int32 运算、七种堆视图、labeled block / + * switch / for 循环、函数表 call_indirect。表达式里的赋值 / 逗号 / 三目 / 短路 + * 提成语句并按求值顺序落临时变量;break / continue 用 goto。 + */ +"use strict"; +const acorn = require("acorn"); +const fs = require("fs"); + +const [, , srcPath, outPath] = process.argv; +const src = fs.readFileSync(srcPath, "utf8"); +const a = src.indexOf("this.exports=function(A){"); +const e = src.search(/\}\(A\)\}\(\w+\)\},instantiate/); +if (a < 0 || e < 0) throw new Error("找不到 wasm2js 导出函数"); +const code = "(" + src.slice(a + "this.exports=".length, e + "}(A)}".length) + ")"; +const ast = acorn.parse(code, { ecmaVersion: 2020 }); +const outer = ast.body[0].expression; +const inner = outer.body.body.find((n) => n.type === "ReturnStatement").argument.callee; +const top = inner.body.body; + +// 变量名每个构建都不同:从模块头的 var 声明按位置推。顺序固定为 +// 七个堆视图、imul、abs、clz32、abort、导入 b..f、栈指针 B、一个恒 0 的全局 Iv。 +const HEAP_KIND = { Int8Array: "I8", Int16Array: "I16", Int32Array: "I32", Uint8Array: "U8", Uint16Array: "U16", Uint32Array: "U32", Float64Array: "F64" }; +const HEAP = {}; +const TOPVAR = { a: "rf_a", u: "rf_u", c: "rf_c", s: "rf_s" }; +let STACK_INIT = 0; +(function header() { + const decl = top.find((s) => s.type === "VariableDeclaration"); + const plain = []; + for (const d of decl.declarations) { + const init = d.init; + if (init && init.type === "NewExpression" && HEAP_KIND[init.callee.name]) HEAP[d.id.name] = HEAP_KIND[init.callee.name]; + else if (init && init.type === "MemberExpression" && init.object.type === "Identifier" && init.object.name === "A" && init.property.name !== "buffer") TOPVAR[d.id.name] = init.property.name === "abort" ? "abort" : "imp_" + init.property.name; + else if (init && init.type === "MemberExpression" && init.object.name === "Math") TOPVAR[d.id.name] = "math.abs"; + else if (init && init.type === "Identifier") plain.push(d.id.name); + else if (init && init.type === "Literal") plain.push(d); + } + const idents = plain.filter((x) => typeof x === "string"); + TOPVAR[idents[0]] = "imul"; + TOPVAR[idents[1]] = "clz32"; + const lits = plain.filter((x) => typeof x !== "string"); + TOPVAR[lits[0].id.name] = "B"; + STACK_INIT = lits[0].init.value; + TOPVAR[lits[1].id.name] = "Iv"; +})(); +const tableDecl = top.find((s) => s.type === "VariableDeclaration" && s.declarations.length === 2 && !s.declarations[0].init); +const TABLE = new Set(tableDecl.declarations.map((d) => d.id.name)); +const fnNames = new Set(top.filter((s) => s.type === "FunctionDeclaration").map((s) => s.id.name)); +const fnRef = (n) => "F.f" + n.replace(/\$/g, "S_"); + +let tmpCount = 0; +let labelCount = 0; + +function collectVars(fn) { + const names = new Set(fn.params.map((p) => p.name)); + const vars = new Set(); + (function walk(n) { + if (!n || typeof n.type !== "string") return; + if (n !== fn && (n.type === "FunctionExpression" || n.type === "FunctionDeclaration")) return; + if (n.type === "VariableDeclarator") vars.add(n.id.name); + for (const k of Object.keys(n)) { + const v = n[k]; + if (Array.isArray(v)) v.forEach(walk); + else if (v && typeof v.type === "string") walk(v); + } + })(fn.body); + for (const p of names) vars.delete(p); + return { params: [...names], vars: [...vars], all: new Set([...names, ...vars]) }; +} + +class Fn { + constructor(node) { + this.scope = collectVars(node); + this.node = node; + this.out = []; + this.targets = []; + } + + name(id) { + if (this.scope.all.has(id)) return "v_" + id; + if (HEAP[id]) throw new Error("heap view used as value: " + id); + if (TOPVAR[id]) return TOPVAR[id]; + if (TABLE.has(id)) return "UA"; + if (fnNames.has(id)) return fnRef(id); + throw new Error("unresolved identifier " + id); + } + + isHeap(id) { + return HEAP[id] && !this.scope.all.has(id); + } + + tmp() { + return "t" + ++tmpCount; + } + + push(s) { + this.out.push(s); + } + + // ---- 类型转换 ---- + num(r) { + return r.t === "b" ? `(${r.s} and 1 or 0)` : r.s; + } + + cond(r) { + return r.t === "b" ? r.s : `(${r.s} ~= 0)`; + } + + // 带小数的值(除法结果)转 int32 前先截断 + int(r) { + const s = this.num(r); + return r.frac ? `toint(${s})` : s; + } + + // 按顺序求值一组表达式;后面的操作数产生了语句时,把前面的结果落到临时变量里 + operands(nodes, discards) { + const res = []; + for (const node of nodes) { + const mark = this.out.length; + const r = this.emit(node); + if (this.out.length > mark) { + let at = mark; + for (const prev of res) { + if (!prev.lit && !prev.tmp) { + const t = this.tmp(); + this.out.splice(at++, 0, `local ${t} = ${prev.t === "b" ? prev.s : this.num(prev)}`); + prev.s = t; + prev.tmp = true; + prev.frac = prev.frac; + prev.call = false; + } + } + } + res.push(r); + } + return res; + } + + // ---- 表达式 ---- + emit(node, discard) { + switch (node.type) { + case "Literal": + if (typeof node.value !== "number") throw new Error("非数字字面量 " + node.raw); + return { s: String(node.value), t: "n", lit: true }; + case "Identifier": + if (node.name === "undefined") return { s: "nil", t: "u", lit: true }; + return { s: this.name(node.name), t: "n" }; + case "MemberExpression": + return this.member(node); + case "CallExpression": + return this.call(node); + case "UnaryExpression": + return this.unary(node); + case "BinaryExpression": + return this.binary(node); + case "LogicalExpression": + return this.logical(node, discard); + case "ConditionalExpression": + return this.conditional(node, discard); + case "AssignmentExpression": + return this.assign(node, discard); + case "UpdateExpression": + return this.update(node, discard); + case "SequenceExpression": + return this.sequence(node, discard); + default: + throw new Error("不支持的表达式 " + node.type); + } + } + + member(node) { + if (!node.computed) { + if (node.property.name === "byteLength") return { s: "16777216", t: "n" }; + throw new Error("非计算成员访问 " + code.slice(node.start, node.end)); + } + const idx = this.operands([node.property])[0]; + if (node.object.type === "Identifier" && this.isHeap(node.object.name)) { + return { s: `${HEAP[node.object.name]}[${this.int(idx)}]`, t: "n" }; + } + return { s: `${this.emit(node.object).s}[${this.int(idx)}]`, t: "n", call: false }; + } + + call(node) { + let callee; + const argNodes = node.arguments; + if (node.callee.type === "Identifier") { + const n = node.callee.name; + if (this.scope.all.has(n)) throw new Error("调用局部变量 " + n); + callee = this.name(n); + } else if (node.callee.type === "MemberExpression") { + const r = this.operands([node.callee.property, ...argNodes]); + const idx = this.int(r.shift()); + return { s: `${this.emit(node.callee.object).s}[${idx}](${r.map((x) => this.num(x)).join(", ")})`, t: "n", call: true }; + } else { + throw new Error("不支持的调用目标 " + node.callee.type); + } + const r = this.operands(argNodes); + return { s: `${callee}(${r.map((x) => this.num(x)).join(", ")})`, t: "n", call: true }; + } + + unary(node) { + const op = node.operator; + if (op === "void") { + this.flush(this.emit(node.argument, true)); + return { s: "nil", t: "u", lit: true }; + } + const r = this.emit(node.argument); + if (op === "!") return { s: `(not ${this.cond(r)})`, t: "b" }; + if (op === "-") return { s: `(-${this.num(r)})`, t: "n", frac: r.frac }; + if (op === "+") return { s: this.num(r), t: "n", frac: true }; + if (op === "~") return { s: `bnot(${this.int(r)})`, t: "n" }; + throw new Error("不支持的一元运算 " + op); + } + + binary(node) { + const [l, r] = this.operands([node.left, node.right]); + const op = node.operator; + const L = this.num(l); + const R = this.num(r); + switch (op) { + case "+": return { s: `(${L} + ${R})`, t: "n" }; + case "-": return { s: `(${L} - ${R})`, t: "n" }; + case "*": return { s: `(${L} * ${R})`, t: "n" }; + case "/": return { s: `(${L} / ${R})`, t: "n", frac: true }; + case "%": return { s: `fmod(${L}, ${R})`, t: "n" }; + case "|": + if (node.right.type === "Literal" && node.right.value === 0) return { s: `tobit(${this.int(l)})`, t: "n" }; + return { s: `bor(${this.int(l)}, ${this.int(r)})`, t: "n" }; + case "&": return { s: `band(${this.int(l)}, ${this.int(r)})`, t: "n" }; + case "^": return { s: `bxor(${this.int(l)}, ${this.int(r)})`, t: "n" }; + case "<<": return { s: `lshift(${this.int(l)}, ${this.int(r)})`, t: "n" }; + case ">>": return { s: `arshift(${this.int(l)}, ${this.int(r)})`, t: "n" }; + case ">>>": + if (node.right.type === "Literal" && node.right.value === 0) return { s: `(tobit(${this.int(l)}) % 4294967296)`, t: "n" }; + return { s: `(rshift(${this.int(l)}, ${this.int(r)}) % 4294967296)`, t: "n" }; + case "<": case "<=": case ">": case ">=": + return { s: `(${L} ${op} ${R})`, t: "b" }; + case "==": case "===": return { s: `(${L} == ${R})`, t: "b" }; + case "!=": case "!==": return { s: `(${L} ~= ${R})`, t: "b" }; + default: throw new Error("不支持的二元运算 " + op); + } + } + + // 子表达式落到独立缓冲,返回 [语句, 结果] + sub(fn) { + const saved = this.out; + this.out = []; + const r = fn(); + const stmts = this.out; + this.out = saved; + return [stmts, r]; + } + + // 条件上下文:返回 Lua 布尔表达式 + condOf(node) { + if (node.type === "LogicalExpression") { + const l = this.condOf(node.left); + const [stmts, rc] = this.sub(() => this.condOf(node.right)); + const and = node.operator === "&&"; + if (!stmts.length) return `(${l} ${and ? "and" : "or"} ${rc})`; + const t = this.tmp(); + this.push(`local ${t} = ${l}`); + this.push(`if ${and ? t : "not " + t} then`); + this.out.push(...stmts); + this.push(`${t} = ${rc}`); + this.push("end"); + return t; + } + return this.cond(this.emit(node)); + } + + logical(node, discard) { + const and = node.operator === "&&"; + if (discard) { + const l = this.condOf(node.left); + const [stmts] = this.sub(() => this.flush(this.emit(node.right, true))); + this.push(`if ${and ? l : "not " + l} then`); + this.out.push(...stmts); + this.push("end"); + return { s: "nil", t: "u" }; + } + const l = this.emit(node.left); + const t = this.tmp(); + this.push(`local ${t} = ${this.num(l)}`); + const [stmts, r] = this.sub(() => this.emit(node.right)); + this.push(`if ${t} ${and ? "~=" : "=="} 0 then`); + this.out.push(...stmts); + this.push(`${t} = ${this.num(r)}`); + this.push("end"); + return { s: t, t: "n", tmp: true }; + } + + conditional(node, discard) { + const c = this.condOf(node.test); + const [sa, ra] = this.sub(() => this.emit(node.consequent, discard)); + const [sb, rb] = this.sub(() => this.emit(node.alternate, discard)); + if (discard) { + this.push(`if ${c} then`); + this.out.push(...sa); + this.flush(ra); + this.push("else"); + this.out.push(...sb); + this.flush(rb); + this.push("end"); + return { s: "nil", t: "u" }; + } + if (!sa.length && !sb.length) return { s: `(${c} and ${this.num(ra)} or ${this.num(rb)})`, t: "n", frac: ra.frac || rb.frac }; + const t = this.tmp(); + this.push(`local ${t}`); + this.push(`if ${c} then`); + this.out.push(...sa); + this.push(`${t} = ${this.num(ra)}`); + this.push("else"); + this.out.push(...sb); + this.push(`${t} = ${this.num(rb)}`); + this.push("end"); + return { s: t, t: "n", tmp: true }; + } + + sequence(node, discard) { + const list = node.expressions; + for (let k = 0; k < list.length - 1; k++) this.flush(this.emit(list[k], true)); + return this.emit(list[list.length - 1], discard); + } + + // 表达式作为语句:只有调用有副作用 + flush(r) { + if (r && r.call) this.push(r.s); + } + + storeCoerce(view, s) { + return view === "F64" ? s : `tobit(${s})`; + } + + assign(node, discard) { + let op = node.operator; + const left = node.left; + let right = node.right; + if (op !== "=") { + if (left.type !== "Identifier") throw new Error("复合赋值目标不是变量"); + right = { type: "BinaryExpression", operator: op.slice(0, -1), left, right }; + } + if (left.type === "Identifier") { + const target = this.name(left.name); + const r = this.emit(right); + this.push(`${target} = ${this.num(r)}`); + return { s: target, t: "n", frac: r.frac }; + } + const isHeap = left.object.type === "Identifier" && this.isHeap(left.object.name); + const [idx, r] = this.operands([left.property, right]); + const lhsBase = isHeap ? HEAP[left.object.name] : this.emit(left.object).s; + const idxS = this.int(idx); + if (discard) { + this.push(`${lhsBase}[${idxS}] = ${isHeap ? this.storeCoerce(lhsBase, this.int(r)) : this.num(r)}`); + return { s: "nil", t: "u" }; + } + const t = this.tmp(); + const ti = this.tmp(); + this.push(`local ${ti} = ${idxS}`); + this.push(`local ${t} = ${this.num(r)}`); + this.push(`${lhsBase}[${ti}] = ${isHeap ? this.storeCoerce(lhsBase, t) : t}`); + return { s: t, t: "n", tmp: true }; + } + + update(node, discard) { + if (node.argument.type !== "Identifier") throw new Error("自增目标不是变量"); + const target = this.name(node.argument.name); + const delta = node.operator === "++" ? "+" : "-"; + if (discard || node.prefix) { + this.push(`${target} = ${target} ${delta} 1`); + return { s: target, t: "n" }; + } + const t = this.tmp(); + this.push(`local ${t} = ${target}`); + this.push(`${target} = ${target} ${delta} 1`); + return { s: t, t: "n", tmp: true }; + } + + // ---- 语句 ---- + stmt(node) { + const before = tmpCount; + const mark = this.out.length; + this.stmtInner(node); + if (tmpCount !== before) { + this.out.splice(mark, 0, "do"); + this.out.push("end"); + } + } + + stmts(list) { + for (const s of list) this.stmt(s); + } + + stmtInner(node) { + switch (node.type) { + case "EmptyStatement": + return; + case "ExpressionStatement": + this.flush(this.emit(node.expression, true)); + return; + case "VariableDeclaration": + for (const d of node.declarations) { + if (d.init) this.flush(this.emit({ type: "AssignmentExpression", operator: "=", left: d.id, right: d.init }, true)); + } + return; + case "BlockStatement": + this.stmts(node.body); + return; + case "ReturnStatement": { + if (!node.argument) { this.push("do return end"); return; } + const r = this.emit(node.argument); + this.push(r.t === "u" ? "do return end" : `do return ${this.num(r)} end`); + return; + } + case "IfStatement": + this.ifStmt(node); + return; + case "ForStatement": + this.loop(node, null); + return; + case "WhileStatement": + this.loop({ type: "ForStatement", init: null, test: node.test, update: null, body: node.body }, null); + return; + case "LabeledStatement": + this.labeled(node); + return; + case "BreakStatement": + this.jump(node.label ? node.label.name : null, "brk"); + return; + case "ContinueStatement": + this.jump(node.label ? node.label.name : null, "cont"); + return; + case "SwitchStatement": + this.switchStmt(node, null); + return; + default: + throw new Error("不支持的语句 " + node.type); + } + } + + ifStmt(node) { + const c = this.condOf(node.test); + this.push(`if ${c} then`); + this.stmt(node.consequent); + if (node.alternate) { + this.push("else"); + this.stmt(node.alternate); + } + this.push("end"); + } + + jump(label, kind) { + for (let k = this.targets.length - 1; k >= 0; k--) { + const t = this.targets[k]; + let to = null; + if (label) { + if (t.label === label) to = kind === "brk" ? t.brk : t.cont; + } else if (kind === "brk" ? t.loop || t.sw : t.loop) { + to = kind === "brk" ? t.brk : t.cont; + } + if (to) { + this.push(`goto ${to}`); + return; + } + } + throw new Error("找不到跳转目标 " + label + " " + kind); + } + + labeled(node) { + const label = node.label.name; + const body = node.body; + if (body.type === "ForStatement" || body.type === "WhileStatement") { + this.loop(body.type === "WhileStatement" + ? { type: "ForStatement", init: null, test: body.test, update: null, body: body.body } + : body, label); + } else if (body.type === "SwitchStatement") { + this.switchStmt(body, label); + } else { + const brk = "L" + ++labelCount; + this.targets.push({ label, brk }); + this.push("do"); + this.stmt(body); + this.push("end"); + this.targets.pop(); + this.push(`::${brk}::`); + } + } + + loop(node, label) { + const id = ++labelCount; + const t = { label, loop: true, brk: "B" + id, cont: "C" + id }; + this.push("do"); + if (node.init) this.stmt(node.init.type === "VariableDeclaration" ? node.init : { type: "ExpressionStatement", expression: node.init }); + this.push("while true do"); + if (node.test) { + const before = tmpCount; + const mark = this.out.length; + const c = this.condOf(node.test); + this.push(`if not ${c} then goto ${t.brk} end`); + if (tmpCount !== before) { + this.out.splice(mark, 0, "do"); + this.push("end"); + } + } + this.targets.push(t); + this.push("do"); + this.stmt(node.body); + this.push("end"); + this.targets.pop(); + this.push(`::${t.cont}::`); + if (node.update) this.stmt({ type: "ExpressionStatement", expression: node.update }); + this.push("end"); + this.push("end"); + this.push(`::${t.brk}::`); + } + + switchStmt(node, label) { + const id = ++labelCount; + const end = "S" + id; + const d = this.emit(node.discriminant); + const sv = "sw" + id; + this.push("do"); + this.push(`local ${sv} = ${this.int(d)}`); + const cases = node.cases; + let first = true; + let def = null; + cases.forEach((c, k) => { + if (!c.test) { def = k; return; } + const tv = this.emit(c.test); + this.push(`${first ? "if" : "elseif"} ${sv} == ${tv.s} then goto K${id}_${k}`); + first = false; + }); + if (first) this.push(`goto ${def === null ? end : "K" + id + "_" + def}`); + else this.push(`else goto ${def === null ? end : "K" + id + "_" + def} end`); + this.targets.push({ label, sw: true, brk: end }); + cases.forEach((c, k) => { + this.push(`::K${id}_${k}::`); + this.push("do"); + this.stmts(c.consequent); + this.push("end"); + }); + this.targets.pop(); + this.push("end"); + this.push(`::${end}::`); + } + + body() { + this.stmts(this.node.body.body); + return this.out; + } + + render(header) { + const body = this.body(); + const locals = this.scope.vars.length + ? `local ${this.scope.vars.map((v) => "v_" + v).join(", ")} = ${this.scope.vars.map(() => "0").join(", ")}` + : ""; + return `${header}(${this.scope.params.map((p) => "v_" + p).join(", ")})\n${locals}\n${body.join("\n")}\nend`; + } +} + +function fnSource(node, header) { + return new Fn(node).render(header); +} + +const lines = []; +lines.push("-- 由 tools/gen_fock.js 从起点 / QQ阅读的 Fock(wasm2js)转译生成,勿手改。"); +lines.push("-- 运行环境见 fock.lua;env = { mem = ffi uint8_t*, imp = { b, c, d, e, f, abort } }。"); +lines.push("local bit = require(\"bit\")"); +lines.push("local ffi = require(\"ffi\")"); +lines.push("local tobit, band, bor, bxor, bnot = bit.tobit, bit.band, bit.bor, bit.bxor, bit.bnot"); +lines.push("local lshift, rshift, arshift = bit.lshift, bit.rshift, bit.arshift"); +lines.push("local fmod = math.fmod"); +lines.push(""); +lines.push("local function toint(x)"); +lines.push(" return tobit(x >= 0 and math.floor(x) or -math.floor(-x))"); +lines.push("end"); +lines.push(""); +lines.push("local function imul(a, b)"); +lines.push(" a, b = tobit(a), tobit(b)"); +lines.push(" return tobit(band(a, 65535) * b + lshift(tobit(rshift(a, 16) * b), 16))"); +lines.push("end"); +lines.push(""); +lines.push("local function clz32(x)"); +lines.push(" x = tobit(x)"); +lines.push(" if x == 0 then return 32 end"); +lines.push(" if x < 0 then return 0 end"); +lines.push(" local n = 0"); +lines.push(" while x > 0 do x = lshift(x, 1); n = n + 1 end"); +lines.push(" return n"); +lines.push("end"); +lines.push(""); +lines.push("return function(env)"); +lines.push("local mem = env.mem"); +lines.push("local abort, imp_b, imp_c, imp_d, imp_e, imp_f = env.imp.abort, env.imp.b, env.imp.c, env.imp.d, env.imp.e, env.imp.f"); +lines.push("local I8, I16, I32 = ffi.cast(\"int8_t*\", mem), ffi.cast(\"int16_t*\", mem), ffi.cast(\"int32_t*\", mem)"); +lines.push("local U8, U16, U32 = ffi.cast(\"uint8_t*\", mem), ffi.cast(\"uint16_t*\", mem), ffi.cast(\"uint32_t*\", mem)"); +lines.push("local F64 = ffi.cast(\"double*\", mem)"); +lines.push(`local B, Iv = ${STACK_INIT}, 0`); +lines.push("local scratch = ffi.new(\"int32_t[4]\")"); +lines.push("local scratch_f = ffi.cast(\"double*\", scratch)"); +lines.push("local function rf_a(i) return scratch[i] end"); +lines.push("local function rf_u(i, v) scratch[i] = v end"); +lines.push("local function rf_c() return scratch_f[0] end"); +lines.push("local function rf_s(v) scratch_f[0] = v end"); +lines.push("local F = {}"); +lines.push("local UA = { [0] = false }"); +lines.push("local YA = UA"); +lines.push(""); + +for (const s of top) { + if (s.type === "FunctionDeclaration") { + lines.push(fnSource(s, fnRef(s.id.name) + " = function")); + lines.push(""); + } +} + +// 函数表 +let arrayNode = null; +(function find(n) { + if (!n || typeof n.type !== "string" || arrayNode) return; + if (n.type === "ArrayExpression") { arrayNode = n; return; } + for (const k of Object.keys(n)) { + const v = n[k]; + if (Array.isArray(v)) v.forEach(find); + else if (v && typeof v.type === "string") find(v); + } +})(tableDecl.declarations[1].init); +arrayNode.elements.forEach((el, k) => { + if (el === null || el.type === "Literal") return; + if (el.type === "Identifier") lines.push(`UA[${k}] = ${fnRef(el.name)}`); + else lines.push(fnSource(el, `UA[${k}] = function`)); +}); +lines.push(""); + +// 数据段 +const dataStmt = top.find((s) => s.type === "ExpressionStatement" && [].concat(s.expression.type === "SequenceExpression" ? s.expression.expressions : [s.expression]).every((c) => c.type === "CallExpression" && c.arguments.length === 3 && c.arguments[2].type === "Literal" && typeof c.arguments[2].value === "string")); +const calls = dataStmt.expression.type === "SequenceExpression" ? dataStmt.expression.expressions : [dataStmt.expression]; +lines.push("local DATA = {"); +for (const c of calls) { + const off = c.arguments[1].value; + const b64 = c.arguments[2].value; + lines.push(` { ${off}, "${b64}" },`); +} +lines.push("}"); +lines.push(""); + +// 导出 +const ret = top.find((s) => s.type === "ReturnStatement"); +lines.push("local exports = {}"); +for (const p of ret.argument.properties) { + const key = p.key.name; + if (p.value.type === "FunctionExpression") lines.push(fnSource(p.value, `exports.${key} = function`)); + else if (p.value.type === "Identifier" && TABLE.has(p.value.name)) lines.push(`exports.${key} = UA`); + else if (p.value.type === "Identifier") lines.push(`exports.${key} = ${fnRef(p.value.name)}`); + else throw new Error("不支持的导出 " + key); +} +lines.push("return exports, DATA, function(v) B = v end, function() return B end"); +lines.push("end"); +fs.writeFileSync(outPath, lines.join("\n") + "\n"); +console.log("generated", outPath, fs.statSync(outPath).size, "bytes");