From 487ec87e4f95e93f2f63f91cec6993de6793817f Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 21 Mar 2023 23:23:18 +0100 Subject: [PATCH] Matter support simple Relay on Apple Homekit (#18239) --- CHANGELOG.md | 1 + .../src/embedded/Matter_Commissioning.be | 12 +- .../src/embedded/Matter_Device.be | 302 +- .../berry_matter/src/embedded/Matter_IM.be | 4 +- .../src/embedded/Matter_IM_Subscription.be | 6 + .../src/embedded/Matter_Message.be | 4 +- .../src/embedded/Matter_MessageHandler.be | 9 +- .../src/embedded/Matter_Plugin.be | 33 +- .../src/embedded/Matter_Plugin_OnOff.be | 57 +- .../src/embedded/Matter_Plugin_Root.be | 111 +- .../src/embedded/Matter_Session.be | 55 +- .../berry_matter/src/embedded/Matter_TLV.be | 2 +- .../berry_matter/src/embedded/Matter_UI.be | 14 +- .../solidified_Matter_Commissioning.h | 1288 ++--- .../src/solidify/solidified_Matter_Device.h | 4823 +++++++++-------- .../src/solidify/solidified_Matter_IM.h | 29 +- .../solidified_Matter_IM_Subscription.h | 292 +- .../src/solidify/solidified_Matter_Message.h | 4 +- .../solidified_Matter_MessageHandler.h | 508 +- .../src/solidify/solidified_Matter_Plugin.h | 496 +- .../solidify/solidified_Matter_Plugin_OnOff.h | 730 +-- .../solidify/solidified_Matter_Plugin_Root.h | 2507 +++++---- .../src/solidify/solidified_Matter_Session.h | 3149 ++++++----- .../src/solidify/solidified_Matter_TLV.h | 19 +- .../src/solidify/solidified_Matter_UI.h | 487 +- 25 files changed, 8143 insertions(+), 6799 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e2240264..0f1d9338c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - Support for PMSA003I Air Quality Sensor by Jean-Pierre Deschamps (#18214) - Support for DingTian virtual switch/button/relay (#18223) - Berry add `mdns.remove_service()` +- Matter support simple Relay on Apple Homekit ### Breaking Changed diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be index 96cf863d2..9d5fed265 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be @@ -110,8 +110,8 @@ class Matter_Commisioning_Context # generate 32 bytes random pbkdfparamresp.responderRandom = crypto.random(32) pbkdfparamresp.responderSessionId = self.future_local_session_id - pbkdfparamresp.pbkdf_parameters_salt = self.device.salt - pbkdfparamresp.pbkdf_parameters_iterations = self.device.iterations + pbkdfparamresp.pbkdf_parameters_salt = self.device.commissioning_salt + pbkdfparamresp.pbkdf_parameters_iterations = self.device.commissioning_iterations tasmota.log("MTR: pbkdfparamresp: " + str(matter.inspect(pbkdfparamresp)), 4) var pbkdfparamresp_raw = pbkdfparamresp.encode() tasmota.log("MTR: pbkdfparamresp_raw: " + pbkdfparamresp_raw.tohex(), 4) @@ -138,7 +138,8 @@ class Matter_Commisioning_Context tasmota.log("MTR: spake: " + matter.inspect(self.spake), 4) # instanciate SPAKE - self.spake = crypto.SPAKE2P_Matter(self.device.w0, self.device.w1, self.device.L) + # for testing purpose, we don't send `w1` to make sure + self.spake = crypto.SPAKE2P_Matter(self.device.commissioning_w0, nil, self.device.commissioning_L) # compute pB self.spake.compute_pB(self.y) self.pB = self.spake.pB @@ -288,7 +289,7 @@ class Matter_Commisioning_Context session._fabric = fabric end if session == nil || session._fabric == nil raise "valuer_error", "StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS)" end - session.source_node_id = msg.source_node_id + session._source_node_id = msg.source_node_id session.set_mode_CASE() if msg.session != session @@ -559,8 +560,9 @@ class Matter_Commisioning_Context session.close() session.set_keys(i2r, r2i, ac, created) - + # CASE Session completed, persist it + session._breadcrumb = 0 # clear breadcrumb session.set_persist(true) # keep session on flash session.set_no_expiration() # never expire session.persist_to_fabric() diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be index b541c07d4..5d9c8bb8b 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be @@ -26,6 +26,7 @@ class Matter_Device static var VENDOR_ID = 0xFFF1 static var PRODUCT_ID = 0x8000 static var FILENAME = "_matter_device.json" + static var PASE_TIMEOUT = 10*60 # default open commissioning window (10 minutes) var plugins # list of plugins var udp_server # `matter.UDPServer()` object var message_handler # `matter.MessageHandler()` object @@ -33,6 +34,13 @@ class Matter_Device var ui # Commissioning open var commissioning_open # timestamp for timeout of commissioning (millis()) or `nil` if closed + var commissioning_iterations # current PBKDF number of iterations + var commissioning_discriminator # current discriminator + var commissioning_salt # current salt + var commissioning_w0 # current w0 + # var commissioning_w1 # current w1 + var commissioning_L # current L + var commissioning_admin_fabric # the fabric that opened the currint commissioning window, or `nil` for default # information about the device var commissioning_instance_wifi # random instance name for commissioning var commissioning_instance_eth # random instance name for commissioning @@ -40,15 +48,20 @@ class Matter_Device var hostname_eth # MAC-derived hostname for commissioning var vendorid var productid + # MDNS active announces + var mdns_pase_eth # do we have an active PASE mdns announce for eth + var mdns_pase_wifi # do we have an active PASE mdns announce for wifi # saved in parameters - var discriminator - var passcode + var root_discriminator + var root_passcode var ipv4only # advertize only IPv4 addresses (no IPv6) # context for PBKDF - var iterations + var root_iterations # PBKDF information used only during PASE (freed afterwards) - var salt - var w0, w1, L + var root_salt + var root_w0 + # var root_w1 + var root_L ############################################################# def init() @@ -62,9 +75,11 @@ class Matter_Device self.plugins = [] self.vendorid = self.VENDOR_ID self.productid = self.PRODUCT_ID - self.iterations = self.PBKDF_ITERATIONS + self.root_iterations = self.PBKDF_ITERATIONS + self.root_salt = crypto.random(16) # bytes("5350414B453250204B65792053616C74") self.ipv4only = false self.load_param() + self.commissioning_instance_wifi = crypto.random(8).tohex() # 16 characters random hostname self.commissioning_instance_eth = crypto.random(8).tohex() # 16 characters random hostname @@ -74,8 +89,8 @@ class Matter_Device self.ui = matter.UI(self) # add the default plugin - self.plugins.push(matter.Plugin_Root(self)) - self.plugins.push(matter.Plugin_OnOff(self)) + self.plugins.push(matter.Plugin_Root(self), 0) + self.plugins.push(matter.Plugin_OnOff(self), 1, 0 #-tasmota relay 1-#) self.start_mdns_announce_hostnames() @@ -106,23 +121,71 @@ class Matter_Device ############################################################# # Start Basic Commissioning Window def init_basic_commissioning() - # compute PBKDF - self.compute_pbkdf(self.passcode) - # if no fabric is configured, automatically open commissioning at restart if self.sessions.count_active_fabrics() == 0 - self.start_basic_commissioning() + self.start_root_basic_commissioning() end end + def start_root_basic_commissioning(timeout_s) + if timeout_s == nil timeout_s = self.PASE_TIMEOUT end + # compute PBKDF + self.compute_pbkdf(self.root_passcode, self.root_iterations, self.root_salt) + self.start_basic_commissioning(timeout_s, self.root_iterations, self.root_discriminator, self.root_salt, self.root_w0, #-self.root_w1,-# self.root_L, nil) + end + + ##################################################################### + # Remove a fabric and clean all corresponding values and MDNS entries + def remove_fabric(fabric) + self.message_handler.im.subs.remove_by_fabric(fabric) + self.sessions.remove_fabric(fabric) + self.sessions.save_fabrics() + # TODO remove MDNS entries + end + ############################################################# # Start Basic Commissioning Window - def start_basic_commissioning() - self.commissioning_open = tasmota.millis() + 10 * 60 * 1000 + def start_basic_commissioning(timeout_s, iterations, discriminator, salt, w0, #-w1,-# L, admin_fabric) + self.commissioning_open = tasmota.millis() + timeout_s * 1000 + self.commissioning_iterations = iterations + self.commissioning_discriminator = discriminator + self.commissioning_salt = salt + self.commissioning_w0 = w0 + # self.commissioning_w1 = w1 + self.commissioning_L = L + self.commissioning_admin_fabric = admin_fabric + + if tasmota.wifi()['up'] || tasmota.eth()['up'] + self.mdns_announce_PASE() + else + tasmota.add_rule("Wifi#Connected", def () + self.mdns_announce_PASE() + tasmota.remove_rule("Wifi#Connected", "mdns_announce_PASE") + end, "mdns_announce_PASE") + tasmota.add_rule("Eth#Connected", def () + self.mdns_announce_PASE() + tasmota.remove_rule("Eth#Connected", "mdns_announce_PASE") + end, "mdns_announce_PASE") + end + end + + def is_root_commissioning_open() + return self.commissioning_open != nil && self.commissioning_admin_fabric == nil end def stop_basic_commissioning() self.commissioning_open = nil + + self.mdns_remove_PASE() + + # clear any PBKDF information to free memory + self.commissioning_iterations = nil + self.commissioning_discriminator = nil + self.commissioning_salt = nil + self.commissioning_w0 = nil + # self.commissioning_w1 = nil + self.commissioning_L = nil + self.commissioning_admin_fabric = nil end def is_commissioning_open() return self.commissioning_open != nil @@ -133,27 +196,26 @@ class Matter_Device ############################################################# # Compute the PBKDF parameters for SPAKE2+ # - # iterations is set to 1000 which is large enough - def compute_pbkdf(passcode_int) + def compute_pbkdf(passcode_int, iterations, salt) import crypto import string - self.salt = crypto.random(16) # bytes("5350414B453250204B65792053616C74") var passcode = bytes().add(passcode_int, 4) - var tv = crypto.PBKDF2_HMAC_SHA256().derive(passcode, self.salt, self.iterations, 80) + var tv = crypto.PBKDF2_HMAC_SHA256().derive(passcode, salt, iterations, 80) var w0s = tv[0..39] var w1s = tv[40..79] - self.w0 = crypto.EC_P256().mod(w0s) - self.w1 = crypto.EC_P256().mod(w1s) - self.L = crypto.EC_P256().public_key(self.w1) + self.root_w0 = crypto.EC_P256().mod(w0s) + var w1 = crypto.EC_P256().mod(w1s) # w1 is temporarily computed then discarded + # self.root_w1 = crypto.EC_P256().mod(w1s) + self.root_L = crypto.EC_P256().public_key(w1) tasmota.log("MTR: ******************************", 4) - tasmota.log("MTR: salt = " + self.salt.tohex(), 4) + tasmota.log("MTR: salt = " + self.root_salt.tohex(), 4) tasmota.log("MTR: passcode_hex = " + passcode.tohex(), 4) - tasmota.log("MTR: w0 = " + self.w0.tohex(), 4) - tasmota.log("MTR: w1 = " + self.w1.tohex(), 4) - tasmota.log("MTR: L = " + self.L.tohex(), 4) + tasmota.log("MTR: w0 = " + self.root_w0.tohex(), 4) + # tasmota.log("MTR: w1 = " + self.root_w1.tohex(), 4) + tasmota.log("MTR: L = " + self.root_L.tohex(), 4) tasmota.log("MTR: ******************************", 4) # show Manual pairing code in logs @@ -162,7 +224,7 @@ class Matter_Device end ############################################################# - # compute QR Code content + # compute QR Code content - can be done only for root PASE def compute_qrcode_content() var raw = bytes().resize(11) # we don't use TLV Data so it's only 88 bits or 11 bytes # version is `000` dont touch @@ -170,8 +232,8 @@ class Matter_Device raw.setbits(19, 16, self.productid) # custom flow = 0 (offset=35, len=2) raw.setbits(37, 8, 0x04) # already on IP network - raw.setbits(45, 12, self.discriminator & 0xFFF) - raw.setbits(57, 27, self.passcode & 0x7FFFFFF) + raw.setbits(45, 12, self.root_discriminator & 0xFFF) + raw.setbits(57, 27, self.root_passcode & 0x7FFFFFF) # padding (offset=84 len=4) return "MT:" + matter.Base38.encode(raw) end @@ -179,11 +241,12 @@ class Matter_Device ############################################################# # compute the 11 digits manual pairing code (wihout vendorid nor productid) p.223 + # can be done only for root PASE (we need the passcode, but we don't get it with OpenCommissioningWindow command) def compute_manual_pairing_code() import string - var digit_1 = (self.discriminator & 0x0FFF) >> 10 - var digit_2_6 = ((self.discriminator & 0x0300) << 6) | (self.passcode & 0x3FFF) - var digit_7_10 = (self.passcode >> 14) + var digit_1 = (self.root_discriminator & 0x0FFF) >> 10 + var digit_2_6 = ((self.root_discriminator & 0x0300) << 6) | (self.root_passcode & 0x3FFF) + var digit_7_10 = (self.root_passcode >> 14) var ret = string.format("%1i%05i%04i", digit_1, digit_2_6, digit_7_10) ret += matter.Verhoeff.checksum(ret) @@ -198,6 +261,12 @@ class Matter_Device if self.commissioning_open != nil && tasmota.time_reached(self.commissioning_open) # timeout reached, close provisioning self.commissioning_open = nil end + # call all plugins + var idx = 0 + while idx < size(self.plugins) + self.plugins[idx].every_second() + idx += 1 + end end ############################################################# @@ -257,11 +326,11 @@ class Matter_Device import mdns import string + self.stop_basic_commissioning() # close all PASE commissioning information # clear any PBKDF information to free memory - self.salt = nil - self.w0 = nil - self.w1 = nil - self.L = nil + self.root_w0 = nil + # self.root_w1 = nil + self.root_L = nil # we keep the PASE session for 1 minute session.set_expire_in_seconds(60) @@ -456,7 +525,7 @@ class Matter_Device # def save_param() import json - var j = json.dump({'distinguish':self.discriminator, 'passcode':self.passcode, 'ipv4only':self.ipv4only}) + var j = json.dump({'distinguish':self.root_discriminator, 'passcode':self.root_passcode, 'ipv4only':self.ipv4only}) try import string var f = open(self.FILENAME, "w") @@ -482,8 +551,8 @@ class Matter_Device import json var j = json.load(s) - self.discriminator = j.find("distinguish", self.discriminator) - self.passcode = j.find("passcode", self.passcode) + self.root_discriminator = j.find("distinguish", self.root_discriminator) + self.root_passcode = j.find("passcode", self.root_passcode) self.ipv4only = bool(j.find("ipv4only", false)) except .. as e, m if e != "io_error" @@ -492,12 +561,12 @@ class Matter_Device end var dirty = false - if self.discriminator == nil - self.discriminator = crypto.random(2).get(0,2) & 0xFFF + if self.root_discriminator == nil + self.root_discriminator = crypto.random(2).get(0,2) & 0xFFF dirty = true end - if self.passcode == nil - self.passcode = self.PASSCODE_DEFAULT + if self.root_passcode == nil + self.root_passcode = self.PASSCODE_DEFAULT dirty = true end if dirty self.save_param() end @@ -533,112 +602,157 @@ class Matter_Device # are defined def start_mdns_announce_hostnames() if tasmota.wifi()['up'] - self._start_mdns_announce(false) + self._mdns_announce_hostname(false) else tasmota.add_rule("Wifi#Connected", def () - self._start_mdns_announce(false) + self._mdns_announce_hostname(false) tasmota.remove_rule("Wifi#Connected", "matter_mdns_host") end, "matter_mdns_host") end if tasmota.eth()['up'] - self._start_mdns_announce(true) + self._mdns_announce_hostname(true) else tasmota.add_rule("Eth#Connected", def () - self._start_mdns_announce(true) + self._mdns_announce_hostname(true) tasmota.remove_rule("Eth#Connected", "matter_mdns_host") end, "matter_mdns_host") end end ############################################################# - # Start UDP mDNS announcements for commissioning + # Start UDP mDNS announcements hostname + # This announcement is independant from commissioning windows # # eth is `true` if ethernet turned up, `false` is wifi turned up - def _start_mdns_announce(is_eth) + def _mdns_announce_hostname(is_eth) import mdns import string mdns.start() + try + if is_eth + # Add Hostname (based on MAC) with IPv4/IPv6 addresses + var eth = tasmota.eth() + self.hostname_eth = string.replace(eth.find("mac"), ':', '') + if !self.ipv4only + tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')), 3) + mdns.add_hostname(self.hostname_eth, eth.find('ip6local',''), eth.find('ip',''), eth.find('ip6','')) + else + tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, eth.find('ip','')), 3) + mdns.add_hostname(self.hostname_eth, eth.find('ip','')) + end + else + var wifi = tasmota.wifi() + self.hostname_wifi = string.replace(wifi.find("mac"), ':', '') + if !self.ipv4only + tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')), 3) + mdns.add_hostname(self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip',''), wifi.find('ip6','')) + else + tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, wifi.find('ip','')), 3) + mdns.add_hostname(self.hostname_wifi, wifi.find('ip','')) + end + end + tasmota.log(string.format("MTR: start mDNS on %s host '%s.local'", is_eth ? "eth" : "wifi", is_eth ? self.hostname_eth : self.hostname_wifi), 2) + except .. as e, m + tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2) + end + + self.mdns_announce_op_discovery_all_fabrics() + end + + ############################################################# + # Announce MDNS for PASE commissioning + # + # eth is `true` if ethernet turned up, `false` is wifi turned up + def mdns_announce_PASE() + import mdns + import string + var services = { - # "VP":str(self.vendorid) + "+" + str(self.productid), - "D": self.discriminator, + "VP":str(self.vendorid) + "+" + str(self.productid), + "D": self.commissioning_discriminator, "CM":1, # requires passcode "T":0, # no support for TCP "SII":5000, "SAI":300 } - # mdns try - if is_eth - var eth = tasmota.eth() - self.hostname_eth = string.replace(eth.find("mac"), ':', '') - if !self.ipv4only - # mdns.add_hostname(self.hostname_eth, eth.find('ip6local',''), eth.find('ip',''), eth.find('ip6','')) - tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')), 3) - mdns.add_hostname(self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')) - else - tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, eth.find('ip','')), 3) - mdns.add_hostname(self.hostname_eth, eth.find('ip','')) - end + if self.hostname_eth + # Add Matter `_matterc._udp` service tasmota.log(string.format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_eth, self.hostname_eth), 3) mdns.add_service("_matterc", "_udp", 5540, services, self.commissioning_instance_eth, self.hostname_eth) + self.mdns_pase_eth = true - tasmota.log(string.format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", is_eth ? "eth" : "wifi", - is_eth ? self.commissioning_instance_eth : self.commissioning_instance_wifi, - is_eth ? self.hostname_eth : self.hostname_wifi), 2) + tasmota.log(string.format("MTR: announce mDNS on %s '%s' ptr to `%s.local`", "eth", self.commissioning_instance_eth, self.hostname_eth), 2) # `mdns.add_subtype(service:string, proto:string, instance:string, hostname:string, subtype:string) -> nil` - var subtype = "_L" + str(self.discriminator & 0xFFF) - tasmota.log("MTR: adding subtype: "+subtype, 3) + var subtype = "_L" + str(self.commissioning_discriminator & 0xFFF) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype) - subtype = "_S" + str((self.discriminator & 0xF00) >> 8) - tasmota.log("MTR: adding subtype: "+subtype, 3) + subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype) subtype = "_V" + str(self.vendorid) - tasmota.log("MTR: adding subtype: "+subtype, 3) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype) subtype = "_CM1" - tasmota.log("MTR: adding subtype: "+subtype, 3) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype) - else - var wifi = tasmota.wifi() - self.hostname_wifi = string.replace(wifi.find("mac"), ':', '') - if !self.ipv4only - mdns.add_hostname(self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip',''), wifi.find('ip6','')) - tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')), 3) - mdns.add_hostname(self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')) - else - tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, wifi.find('ip','')), 3) - mdns.add_hostname(self.hostname_wifi, wifi.find('ip','')) - end + end + if self.hostname_wifi + tasmota.log(string.format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_wifi, self.hostname_wifi), 3) mdns.add_service("_matterc", "_udp", 5540, services, self.commissioning_instance_wifi, self.hostname_wifi) + self.mdns_pase_wifi = true - tasmota.log(string.format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", is_eth ? "eth" : "wifi", - is_eth ? self.commissioning_instance_eth : self.commissioning_instance_wifi, - is_eth ? self.hostname_eth : self.hostname_wifi), 2) + tasmota.log(string.format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", "wifi", self.commissioning_instance_wifi, self.hostname_wifi), 2) # `mdns.add_subtype(service:string, proto:string, instance:string, hostname:string, subtype:string) -> nil` - var subtype = "_L" + str(self.discriminator & 0xFFF) - tasmota.log("MTR: adding subtype: "+subtype, 3) + var subtype = "_L" + str(self.commissioning_discriminator & 0xFFF) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) - subtype = "_S" + str((self.discriminator & 0xF00) >> 8) - tasmota.log("MTR: adding subtype: "+subtype, 3) + subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8) + tasmota.log("MTR: adding subtype: "+subtype, 2) + mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) + subtype = "_V" + str(self.vendorid) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) - # subtype = "_V" + str(self.vendorid) - # tasmota.log("MTR: adding subtype: "+subtype, 3) - # mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) subtype = "_CM1" - tasmota.log("MTR: adding subtype: "+subtype, 3) + tasmota.log("MTR: adding subtype: "+subtype, 2) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) end except .. as e, m tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2) end - self.mdns_announce_op_discovery_all_fabrics() + end + + ############################################################# + # MDNS remove any PASE announce + # + # eth is `true` if ethernet turned up, `false` is wifi turned up + def mdns_remove_PASE() + import mdns + import string + + try + if self.mdns_pase_eth + tasmota.log(string.format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth), 3) + tasmota.log(string.format("MTR: remove mdns on %s '%s'", "eth", self.commissioning_instance_eth), 2) + self.mdns_pase_eth = false + mdns.remove_service("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth) + end + if self.mdns_pase_wifi + tasmota.log(string.format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi), 3) + tasmota.log(string.format("MTR: remove mdns on %s '%s'", "wifi", self.commissioning_instance_wifi), 2) + self.mdns_pase_wifi = false + mdns.remove_service("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi) + end + except .. as e, m + tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2) + end end ############################################################# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be index 75972787e..29746c6ca 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be @@ -273,8 +273,8 @@ class Matter_IM ) end - tasmota.log("MTR: ReportDataMessage=" + str(ret), 3) - tasmota.log("MTR: ReportDataMessageTLV=" + str(ret.to_TLV()), 3) + # tasmota.log("MTR: ReportDataMessage=" + str(ret), 3) + # tasmota.log("MTR: ReportDataMessageTLV=" + str(ret.to_TLV()), 3) return ret end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be index 5809d380d..8b9022eb9 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be @@ -193,6 +193,12 @@ class Matter_IM_Subscription_Shop end end + def remove_by_fabric(fabric) + for session: fabric._sessions + self.remove_by_session(session) + end + end + ############################################################# # dispatch every 250ms click to sub-objects that need it def every_250ms() diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Message.be b/lib/libesp32/berry_matter/src/embedded/Matter_Message.be index 5728f192e..c0d26621b 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Message.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Message.be @@ -287,7 +287,7 @@ class Matter_Frame resp.message_counter = self.session.counter_snd.next() resp.local_session_id = self.session.initiator_session_id else - resp.message_counter = self.session.__counter_insecure_snd.next() + resp.message_counter = self.session._counter_insecure_snd.next() resp.local_session_id = 0 end @@ -330,7 +330,7 @@ class Matter_Frame resp.message_counter = session.counter_snd.next() resp.local_session_id = session.initiator_session_id else - resp.message_counter = session.__counter_insecure_snd.next() + resp.message_counter = session._counter_insecure_snd.next() resp.local_session_id = 0 end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be index 2f21cba6a..b7fde4077 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be @@ -28,15 +28,12 @@ class Matter_MessageHandler # handlers var commissioning var im # handler for Interaction Model - # counters - var counter_rcv # Global Unencrypted Message Counter incoming ############################################################# def init(device) self.device = device self.commissioning = matter.Commisioning_Context(self) self.im = matter.IM(device) - self.counter_rcv = matter.Counter() end ############################################################# @@ -61,15 +58,15 @@ class Matter_MessageHandler ############################################################# ### unencrypted session, handled by commissioning var session = self.device.sessions.find_session_source_id_unsecure(frame.source_node_id, 90) # 90 seconds max - tasmota.log("MTR: find session by source_node_id = " + str(frame.source_node_id) + "session_id = " + str(session.local_session_id), 3) + tasmota.log("MTR: find session by source_node_id = " + str(frame.source_node_id) + " session_id = " + str(session.local_session_id), 3) if addr session._ip = addr end if port session._port = port end session._message_handler = self frame.session = session # check if it's a duplicate - if !self.counter_rcv.validate(frame.message_counter, false) - tasmota.log(string.format("MTR: rejected duplicate unencrypted message = %i ref = %i", frame.message_counter, self.counter_rcv.val()), 3) + if !session._counter_insecure_rcv.validate(frame.message_counter, false) + tasmota.log(string.format("MTR: rejected duplicate unencrypted message = %i ref = %i", frame.message_counter, session._counter_insecure_rcv.val()), 3) return false end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be index 4d2a856ba..ad01637bc 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be @@ -26,13 +26,21 @@ class Matter_Plugin static var EMPTY_LIST = [] static var EMPTY_MAP = {} var device # reference to the `device` global object - var endpoints # list of supported endpoints + var endpoints # list of supported endpoints TODO refactor + var endpoint # current endpoint var clusters # map from cluster to list of attributes + ############################################################# + # MVC Model + # + # Model linking the plugin to the Tasmota behavior + ############################################################# + ############################################################# # Constructor - def init(device) + def init(device, endpoint) self.device = device + self.endpoint = endpoint self.endpoints = self.EMPTY_LIST self.clusters = self.EMPTY_LIST end @@ -68,6 +76,11 @@ class Matter_Plugin return self.clusters.contains(cluster) && self.endpoints.find(endpoint) != nil end + ############################################################# + # MVC Model + # + # View reading attributes + ############################################################# ############################################################# # read attribute def read_attribute(session, ctx) @@ -95,12 +108,22 @@ class Matter_Plugin return nil end + ############################################################# + # MVC Model + # + # Controller write attributes + ############################################################# ############################################################# # write attribute def write_attribute(session, ctx, write_data) return nil end + ############################################################# + # MVC Model + # + # Controller invoke request + ############################################################# ############################################################# # invoke command def invoke_request(session, val, ctx) @@ -113,5 +136,11 @@ class Matter_Plugin def timed_request(session, val, ctx) return nil end + + ############################################################# + # every_second + def every_second() + end end + matter.Plugin = Matter_Plugin diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be index 1bac296c3..ae7ed0b73 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be @@ -32,19 +32,46 @@ class Matter_Plugin_OnOff : Matter_Plugin 0x0004: [0,0xFFFC,0xFFFD], # Groups 1.3 p.21 0x0005: [0,1,2,3,4,5,0xFFFC,0xFFFD], # Scenes 1.4 p.30 - no writable 0x0006: [0,0xFFFC,0xFFFD], # On/Off 1.5 p.48 - 0x0008: [0,15,17,0xFFFC,0xFFFD] # Level Control 1.6 p.57 + # 0x0008: [0,15,17,0xFFFC,0xFFFD] # Level Control 1.6 p.57 } static var TYPES = { 0x010A: 2 } # On/Off Light - var onoff # fake status for now # TODO + var tasmota_relay_index # Relay number in Tasmota (zero based) + var shadow_onoff # fake status for now # TODO ############################################################# # Constructor - def init(device) - super(self).init(device) + def init(device, endpoint, tasmota_relay_index) + super(self).init(device, endpoint) self.endpoints = self.ENDPOINTS + self.endpoint = self.ENDPOINTS[0] # TODO refactor endpoint management self.clusters = self.CLUSTERS - self.onoff = false # fake status for now # TODO + self.get_onoff() # read actual value + if tasmota_relay_index == nil tasmota_relay_index = 0 end + self.tasmota_relay_index = tasmota_relay_index + end + + ############################################################# + # Model + # + def set_onoff(v) + tasmota.set_power(self.tasmota_relay_index, bool(v)) + self.get_onoff() + end + ############################################################# + # get_onoff + # + # Update shadow and signal any change + def get_onoff() + var state = tasmota.get_power(self.tasmota_relay_index) + if state != nil + if self.shadow_onoff != nil && self.shadow_onoff != bool(state) + self.onoff_changed() # signal any change + end + self.shadow_onoff = state + end + if self.shadow_onoff == nil self.shadow_onoff = false end # avoid any `nil` value when initializing + return self.shadow_onoff end ############################################################# @@ -118,7 +145,7 @@ class Matter_Plugin_OnOff : Matter_Plugin # ==================================================================================================== elif cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== if attribute == 0x0000 # ---------- OnOff / bool ---------- - return TLV.create_TLV(TLV.BOOL, self.onoff) + return TLV.create_TLV(TLV.BOOL, self.get_onoff()) elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- return TLV.create_TLV(TLV.U4, 0) # 0 = no Level Control for Lighting elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- @@ -182,16 +209,13 @@ class Matter_Plugin_OnOff : Matter_Plugin # ==================================================================================================== elif cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== if command == 0x0000 # ---------- Off ---------- - if self.onoff self.onoff_changed(ctx) end - self.onoff = false + self.set_onoff(false) return true elif command == 0x0001 # ---------- On ---------- - if !self.onoff self.onoff_changed(ctx) end - self.onoff = true + self.set_onoff(true) return true elif command == 0x0002 # ---------- Toggle ---------- - self.onoff_changed(ctx) - self.onoff = !self.onoff + self.set_onoff(!self.get_onoff()) return true end # ==================================================================================================== @@ -218,10 +242,15 @@ class Matter_Plugin_OnOff : Matter_Plugin ############################################################# # Signal that onoff attribute changed - def onoff_changed(ctx) - self.attribute_updated(ctx.endpoint, 0x0006, 0x0000) + def onoff_changed() + self.attribute_updated(self.endpoint, 0x0006, 0x0000) end + ############################################################# + # every_second + def every_second() + self.get_onoff() # force reading value and sending subscriptions + end end matter.Plugin_OnOff = Matter_Plugin_OnOff \ No newline at end of file diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be index 36b98b260..9068e91cc 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be @@ -29,7 +29,7 @@ class Matter_Plugin_Root : Matter_Plugin static var CLUSTERS = { 0x001D: [0,1,2,3], # Descriptor Cluster 9.5 p.453 0x001F: [0,2,3,4], # Access Control Cluster, p.461 - 0x0028: [0,1,2,3,4,5,6,7,8,9,0x12,0x13],# Basic Information Cluster cluster 11.1 p.565 + 0x0028: [0,1,2,3,4,5,6,7,8,9,0x0F,0x12,0x13],# Basic Information Cluster cluster 11.1 p.565 # 0x002A: [0,1,2,3], # OTA Software Update Requestor Cluster Definition 11.19.7 p.762 0x002B: [0,1], # Localization Configuration Cluster 11.3 p.580 0x002C: [0,1,2], # Time Format Localization Cluster 11.4 p.581 @@ -39,7 +39,7 @@ class Matter_Plugin_Root : Matter_Plugin 0x0033: [0,1,2,8], # General Diagnostics Cluster 11.11 p.642 0x0034: [], # Software Diagnostics Cluster 11.12 p.654 0x0038: [0,1,7], # Time Synchronization 11.16 p.689 - 0x003C: [], # Administrator Commissioning Cluster 11.18 p.725 + 0x003C: [0,1,2], # Administrator Commissioning Cluster 11.18 p.725 0x003E: [0,1,2,3,4,5], # Node Operational Credentials Cluster 11.17 p.704 0x003F: [] # Group Key Management Cluster 11.2 p.572 } @@ -47,8 +47,8 @@ class Matter_Plugin_Root : Matter_Plugin ############################################################# # Constructor - def init(device) - super(self).init(device) + def init(device, endpoint) + super(self).init(device, endpoint) self.endpoints = self.ENDPOINTS self.clusters = self.CLUSTERS end @@ -157,6 +157,7 @@ class Matter_Plugin_Root : Matter_Plugin var nocs = nocl.add_struct(nil) nocs.add_TLV(1, TLV.B2, loc_fabric.get_noc()) # NOC nocs.add_TLV(2, TLV.B2, loc_fabric.get_icac()) # ICAC + nocs.add_TLV(0xFE, TLV.U2, loc_fabric.get_fabric_index()) # Label end return nocl elif attribute == 0x0001 # ---------- Fabrics / list[FabricDescriptorStruct] ---------- @@ -166,9 +167,10 @@ class Matter_Plugin_Root : Matter_Plugin var fab = fabrics.add_struct(nil) # encoding see p.303 fab.add_TLV(1, TLV.B2, root_ca_tlv.findsubval(9)) # RootPublicKey fab.add_TLV(2, TLV.U2, loc_fabric.get_admin_vendor()) # VendorID - fab.add_TLV(3, TLV.U8, loc_fabric.get_fabric_compressed()) # FabricID + fab.add_TLV(3, TLV.U8, loc_fabric.get_fabric_id()) # FabricID fab.add_TLV(4, TLV.U8, loc_fabric.get_device_id()) # NodeID fab.add_TLV(5, TLV.UTF1, loc_fabric.get_fabric_label()) # Label + fab.add_TLV(0xFE, TLV.U2, loc_fabric.get_fabric_index()) # idx end return fabrics elif attribute == 0x0002 # ---------- SupportedFabrics / u1 ---------- @@ -179,29 +181,36 @@ class Matter_Plugin_Root : Matter_Plugin elif attribute == 0x0004 # ---------- TrustedRootCertificates / list[octstr] ---------- # TODO elif attribute == 0x0005 # ---------- Current­ FabricIndex / u1 ---------- - var fabric_active = session._fabric - var fabric_index = 0 - var found = false - for fab: self.device.sessions.active_fabrics() - if fab == fabric_active - found = true - break - else - fabric_index += 1 - end - end - if !found fabric_index = -1 end - return TLV.create_TLV(TLV.U1, fabric_index + 1) # number of active sessions + return TLV.create_TLV(TLV.U1, session._fabric.get_fabric_index()) # number of active sessions end # ==================================================================================================== elif cluster == 0x003C # ========== Administrator Commissioning Cluster 11.18 p.725 ========== - # TODO - + if attribute == 0x0000 # ---------- WindowStatus / u8 ---------- + var commissioning_open = self.device.is_commissioning_open() + var basic_commissioning = self.device.is_root_commissioning_open() + var val = commissioning_open ? (basic_commissioning ? 2 #-BasicWindowOpen-# : 1 #-EnhancedWindowOpen-#) : 0 #-WindowNotOpen-# + return TLV.create_TLV(TLV.U1, val) + elif attribute == 0x0001 # ---------- AdminFabricIndex / u16 ---------- + var admin_fabric = self.device.commissioning_admin_fabric + if admin_fabric != nil + return TLV.create_TLV(TLV.U2, admin_fabric.get_fabric_index()) + else + return TLV.create_TLV(TLV.NULL, nil) + end + elif attribute == 0x0002 # ---------- AdminVendorId / u16 ---------- + var admin_fabric = self.device.commissioning_admin_fabric + if admin_fabric != nil + return TLV.create_TLV(TLV.U2, admin_fabric.get_admin_vendor()) + else + return TLV.create_TLV(TLV.NULL, nil) + end + end + # ==================================================================================================== elif cluster == 0x0028 # ========== Basic Information Cluster cluster 11.1 p.565 ========== - if attribute == 0x0000 # ---------- DataModelRevision / u16 ---------- + if attribute == 0x0000 # ---------- DataModelRevision / CommissioningWindowStatus ---------- return TLV.create_TLV(TLV.U2, 0) elif attribute == 0x0001 # ---------- VendorName / string ---------- return TLV.create_TLV(TLV.UTF1, "Tasmota") @@ -223,6 +232,8 @@ class Matter_Plugin_Root : Matter_Plugin return TLV.create_TLV(TLV.U2, 1) elif attribute == 0x000A # ---------- SoftwareVersionString / string ---------- return TLV.create_TLV(TLV.UTF1, tasmota.cmd("Status 2", true)['StatusFWR']['Version']) + elif attribute == 0x000F # ---------- SerialNumber / string ---------- + return TLV.create_TLV(TLV.UTF1, tasmota.wifi().find("mac", "")) elif attribute == 0x0012 # ---------- UniqueID / string 32 max ---------- return TLV.create_TLV(TLV.UTF1, tasmota.wifi().find("mac", "")) elif attribute == 0x0013 # ---------- CapabilityMinima / CapabilityMinimaStruct ---------- @@ -323,6 +334,7 @@ class Matter_Plugin_Root : Matter_Plugin # or an `int` to indicate a status def invoke_request(session, val, ctx) import crypto + import string var TLV = matter.TLV var cluster = ctx.cluster var command = ctx.command @@ -520,20 +532,61 @@ class Matter_Plugin_Root : Matter_Plugin elif command == 0x000A # ---------- RemoveFabric ---------- var index = val.findsubval(0) # FabricIndex - var sessions_act = self.device.sessions.sessions_active() - if index >= 1 && index <= size(sessions_act) - var session_deleted = sessions_act[index - 1] - tasmota.log("MTR: removing fabric " + session.get_fabric_id().copy().reverse().tohex()) - self.device.sessions.remove_session() - self.device.sessions.save_fabrics() - else - # TODO return error 11 InvalidFabricIndex + + for fab: self.device.sessions.active_fabrics() + if fab.get_fabric_index() == index + tasmota.log("MTR: removing fabric " + fab.get_fabric_id().copy().reverse().tohex(), 2) + self.device.remove_fabric(fab) + break + end end + tasmota.log("MTR: RemoveFabric fabric("+str(index)+") not found", 2) ctx.status = matter.SUCCESS # OK return nil # trigger a standalone ack end + # ==================================================================================================== + elif cluster == 0x003C # ========== Administrator Commissioning Cluster 11.18 p.725 ========== + + if command == 0x0000 # ---------- OpenCommissioningWindow ---------- + var timeout = val.findsubval(0) # CommissioningTimeout u2 + var passcode_verifier = val.findsubval(1) # PAKEPasscodeVerifier octstr + var discriminator = val.findsubval(2) # Discriminator u2 + var iterations = val.findsubval(3) # Iterations u4 + var salt = val.findsubval(4) # Salt octstr + + tasmota.log(string.format("MTR: OpenCommissioningWindow(timeout=%i, passcode=%s, discriminator=%i, iterations=%i, salt=%s)", + timeout, passcode_verifier.tohex(), discriminator, iterations, salt.tohex()), 2) + + # check values + if timeout == nil || passcode_verifier == nil || discriminator == nil || iterations == nil || salt == nil + ctx.status = matter.INVALID_DATA_TYPE + return nil # trigger a standalone ack + end + if size(passcode_verifier) != 32+65 || size(salt) < 16 || size(salt) > 32 + tasmota.log("MTR: wrong size for PAKE parameters") + ctx.status = matter.CONSTRAINT_ERROR + return nil # trigger a standalone ack + end + + var w0 = passcode_verifier[0..31] + var L = passcode_verifier[32..] + + self.device.start_basic_commissioning(timeout, iterations, discriminator, salt, w0, #-w1,-# L, session.get_fabric()) + # TODO announce in MDNS + return true # OK + elif command == 0x0001 # ---------- OpenBasicCommissioningWindow ---------- + var commissioning_timeout = val.findsubval(0) # CommissioningTimeout + tasmota.log("MTR: OpenBasicCommissioningWindow commissioning_timeout="+str(commissioning_timeout), 2) + self.device.start_root_basic_commissioning(commissioning_timeout) + return true + elif command == 0x0002 # ---------- RevokeCommissioning ---------- + # TODO add checks that the commissioning window was opened by the same fabric + self.device.stop_basic_commissioning() + return true + end + # ==================================================================================================== elif cluster == 0x002A # ========== OTA Software Update Requestor Cluster Definition 11.19.7 p.762 ========== diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be index 75ee9bbde..fcf367d79 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be @@ -45,6 +45,8 @@ class Matter_Fabric : Matter_Expirable var _store # reference back to session store # timestamp var created + # fabric-index + var fabric_index # index number for fabrics, starts with `1` # list of active sessions var _sessions # only active CASE sessions that need to be persisted # our own private key @@ -82,6 +84,9 @@ class Matter_Fabric : Matter_Expirable def get_admin_subject() return self.admin_subject end def get_admin_vendor() return self.admin_vendor end def get_ca() return self.root_ca_certificate end + def get_fabric_index() return self.fabric_index end + + def set_fabric_index(v) self.fabric_index = v end ############################################################# # Operational Group Key Derivation, 4.15.2, p.182 @@ -136,7 +141,7 @@ class Matter_Fabric : Matter_Expirable end ############################################################# - # Fabric::to_json() + # Fabric::tojson() # # convert a single entry as json # returns a JSON string @@ -146,6 +151,7 @@ class Matter_Fabric : Matter_Expirable import string import introspect + self.persist_pre() var keys = [] for k : introspect.members(self) var v = introspect.get(self, k) @@ -171,6 +177,7 @@ class Matter_Fabric : Matter_Expirable r.push('"_sessions":' + s_list) end + self.persist_post() return "{" + r.concat(",") + "}" end @@ -203,7 +210,7 @@ class Matter_Fabric : Matter_Expirable introspect.set(self, k, v) end end - + self.hydrate_post() return self end @@ -231,7 +238,7 @@ class Matter_Session : Matter_Expirable var initiator_session_id # id used to respond to the initiator var created # timestamp (UTC) when the session was created var last_used # timestamp (UTC) when the session was last used - var source_node_id # source node if bytes(8) (opt, used only when session is not established) + var _source_node_id # source node if bytes(8) (opt, used only when session is not established) # session_ids when the session will be active var __future_initiator_session_id var __future_local_session_id @@ -244,8 +251,8 @@ class Matter_Session : Matter_Expirable var _port # port of the last received packet var _message_handler # pointer to the message handler for this session # non-session counters - var __counter_insecure_rcv # counter for incoming messages - var __counter_insecure_snd # counter for outgoing messages + var _counter_insecure_rcv # counter for incoming messages + var _counter_insecure_snd # counter for outgoing messages # encryption keys and challenges var i2rkey # key initiator to receiver (incoming) var r2ikey # key receiver to initiator (outgoing) @@ -275,8 +282,8 @@ class Matter_Session : Matter_Expirable self.initiator_session_id = initiator_session_id self.counter_rcv = matter.Counter() self.counter_snd = matter.Counter() - self.__counter_insecure_rcv = matter.Counter() - self.__counter_insecure_snd = matter.Counter() + self._counter_insecure_rcv = matter.Counter() + self._counter_insecure_snd = matter.Counter() self._breadcrumb = 0 self._exchange_id = crypto.random(2).get(0,2) # generate a random 16 bits number, then increment with rollover @@ -300,6 +307,9 @@ class Matter_Session : Matter_Expirable def fabric_completed() self._fabric.set_no_expiration() self._fabric.set_persist(true) + if (self._fabric.get_fabric_index() == nil) + self._fabric.set_fabric_index(self._store.next_fabric_idx()) + end self._store.add_fabric(self._fabric) end @@ -324,7 +334,6 @@ class Matter_Session : Matter_Expirable # close the PASE session, it will be re-opened with a CASE session self.local_session_id = self.__future_local_session_id self.initiator_session_id = self.__future_initiator_session_id - self.source_node_id = nil self.counter_rcv.reset() self.counter_snd.reset() self.i2rkey = nil @@ -448,6 +457,7 @@ class Matter_Session : Matter_Expirable import string import introspect + self.persist_pre() var keys = [] for k : introspect.members(self) var v = introspect.get(self, k) @@ -468,6 +478,7 @@ class Matter_Session : Matter_Expirable r.push(string.format("%s:%s", json.dump(str(k)), json.dump(v))) end + self.persist_post() return "{" + r.concat(",") + "}" end @@ -501,7 +512,7 @@ class Matter_Session : Matter_Expirable end end end - + self.hydrate_post() return self end @@ -585,6 +596,12 @@ class Matter_Session_Store end end + ############################################################# + # remove fabric + def remove_fabric(fabric) + self.fabrics.remove(self.fabrics.find(fabric)) # fail safe + end + ############################################################# # Remove redudant fabric # @@ -618,6 +635,22 @@ class Matter_Session_Store return self.fabrics.count_persistables() end + ############################################################# + # Next fabric-idx + # + # starts at `1`, computes the next available fabric-idx + def next_fabric_idx() + self.remove_expired() # clean before + var next_idx = 1 + for fab: self.active_fabrics() + var fab_idx = fab.fabric_index + if type(fab_idx) == 'int' && fab_idx >= next_idx + next_idx = fab_idx + 1 + end + end + return next_idx + end + ############################################################# # add session def create_session(local_session_id, initiator_session_id) @@ -661,7 +694,7 @@ class Matter_Session_Store var sessions = self.sessions while i < sz var session = sessions[i] - if session.source_node_id == nodeid + if session._source_node_id == nodeid session.update() return session end @@ -720,7 +753,7 @@ class Matter_Session_Store var session = self.get_session_by_source_node_id(source_node_id) if session == nil session = matter.Session(self, 0, 0) - session.source_node_id = source_node_id + session._source_node_id = source_node_id self.sessions.push(session) end session.set_expire_in_seconds(expire) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be b/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be index 4296e83e0..5b97fef9d 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be @@ -107,7 +107,7 @@ class Matter_TLV ############################################################# # create simple TLV static def create_TLV(t, value) - if value != nil + if value != nil || t == 0x14 #-t == matter.TLV.NULL-# # put the actual number for performance var v = _class() # parent is nil v.typ = t v.val = value diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be index e421cb7df..0ddae333b 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be @@ -158,9 +158,9 @@ class Matter_UI webserver.content_send("
 Matter Passcode 

") webserver.content_send("
") webserver.content_send("

Passcode:

") - webserver.content_send(string.format("", self.device.passcode)) + webserver.content_send(string.format("", self.device.root_passcode)) webserver.content_send("

Distinguish id:

") - webserver.content_send(string.format("", self.device.discriminator)) + webserver.content_send(string.format("", self.device.root_discriminator)) webserver.content_send(string.format("

IPv4 only

", self.device.ipv4only ? " checked" : "")) webserver.content_send("

") webserver.content_send("

") @@ -185,7 +185,7 @@ class Matter_UI if !first webserver.content_send("
") end first = false - webserver.content_send(string.format("
 %s 

", "<No label>")) + webserver.content_send(string.format("
 #%i %s 

", f.get_fabric_index(), "<No label>")) var fabric_rev = f.get_fabric_id().copy().reverse() var deviceid_rev = f.get_device_id().copy().reverse() @@ -247,10 +247,10 @@ class Matter_UI #---------------------------------------------------------------------# if webserver.has_arg("passcode") || webserver.has_arg("discriminator") if webserver.has_arg("passcode") - self.device.passcode = int(webserver.arg("passcode")) + self.device.root_passcode = int(webserver.arg("passcode")) end if webserver.has_arg("discriminator") - self.device.discriminator = int(webserver.arg("discriminator")) + self.device.root_discriminator = int(webserver.arg("discriminator")) end self.device.ipv4only = webserver.arg("ipv4") == 'on' self.device.save_param() @@ -309,7 +309,7 @@ class Matter_UI var matter_enabled = tasmota.get_option(matter.MATTER_OPTION) if matter_enabled - if self.device.commissioning_open + if self.device.is_root_commissioning_open() self.show_commissioning_info() end @@ -337,7 +337,7 @@ class Matter_UI if webserver.has_arg("mtc0") # Close Commissioning self.device.stop_basic_commissioning() elif webserver.has_arg("mtc1") # Open Commissioning - self.device.start_basic_commissioning() + self.device.start_root_basic_commissioning() end end diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h index 6b6044781..2968786f3 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h @@ -52,9 +52,9 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name /* K29 */ be_nested_str_weak(random), /* K30 */ be_nested_str_weak(responderSessionId), /* K31 */ be_nested_str_weak(pbkdf_parameters_salt), - /* K32 */ be_nested_str_weak(salt), + /* K32 */ be_nested_str_weak(commissioning_salt), /* K33 */ be_nested_str_weak(pbkdf_parameters_iterations), - /* K34 */ be_nested_str_weak(iterations), + /* K34 */ be_nested_str_weak(commissioning_iterations), /* K35 */ be_nested_str_weak(MTR_X3A_X20pbkdfparamresp_X3A_X20), /* K36 */ be_nested_str_weak(inspect), /* K37 */ be_nested_str_weak(encode), @@ -248,41 +248,41 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */ /* K19 */ be_nested_str_weak(spake), /* K20 */ be_nested_str_weak(SPAKE2P_Matter), /* K21 */ be_nested_str_weak(device), - /* K22 */ be_nested_str_weak(w0), - /* K23 */ be_nested_str_weak(w1), - /* K24 */ be_nested_str_weak(L), - /* K25 */ be_nested_str_weak(compute_pB), - /* K26 */ be_nested_str_weak(y), - /* K27 */ be_nested_str_weak(pB), - /* K28 */ be_nested_str_weak(MTR_X3A_X20y_X3D), - /* K29 */ be_nested_str_weak(MTR_X3A_X20pb_X3D), - /* K30 */ be_nested_str_weak(compute_ZV_verifier), - /* K31 */ be_nested_str_weak(MTR_X3A_X20Z_X3D), - /* K32 */ be_nested_str_weak(Z), - /* K33 */ be_nested_str_weak(MTR_X3A_X20V_X3D), - /* K34 */ be_nested_str_weak(V), - /* K35 */ be_nested_str_weak(SHA256), - /* K36 */ be_nested_str_weak(update), - /* K37 */ be_nested_str_weak(fromstring), - /* K38 */ be_nested_str_weak(Matter_Context_Prefix), - /* K39 */ be_nested_str_weak(PBKDFParamRequest), - /* K40 */ be_nested_str_weak(PBKDFParamResponse), - /* K41 */ be_nested_str_weak(out), - /* K42 */ be_nested_str_weak(MTR_X3A_X20Context_X3D), - /* K43 */ be_nested_str_weak(set_context), - /* K44 */ be_nested_str_weak(compute_TT_hash), - /* K45 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D), - /* K46 */ be_nested_str_weak(MTR_X3A_X20Context_X20_X3D_X20), - /* K47 */ be_nested_str_weak(Context), - /* K48 */ be_nested_str_weak(MTR_X3A_X20M_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K49 */ be_nested_str_weak(M), - /* K50 */ be_nested_str_weak(MTR_X3A_X20N_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K51 */ be_nested_str_weak(N), - /* K52 */ be_nested_str_weak(MTR_X3A_X20pA_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K53 */ be_nested_str_weak(MTR_X3A_X20pB_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K54 */ be_nested_str_weak(MTR_X3A_X20Z_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K55 */ be_nested_str_weak(MTR_X3A_X20V_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K56 */ be_nested_str_weak(MTR_X3A_X20w0_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K22 */ be_nested_str_weak(commissioning_w0), + /* K23 */ be_nested_str_weak(commissioning_L), + /* K24 */ be_nested_str_weak(compute_pB), + /* K25 */ be_nested_str_weak(y), + /* K26 */ be_nested_str_weak(pB), + /* K27 */ be_nested_str_weak(MTR_X3A_X20y_X3D), + /* K28 */ be_nested_str_weak(MTR_X3A_X20pb_X3D), + /* K29 */ be_nested_str_weak(compute_ZV_verifier), + /* K30 */ be_nested_str_weak(MTR_X3A_X20Z_X3D), + /* K31 */ be_nested_str_weak(Z), + /* K32 */ be_nested_str_weak(MTR_X3A_X20V_X3D), + /* K33 */ be_nested_str_weak(V), + /* K34 */ be_nested_str_weak(SHA256), + /* K35 */ be_nested_str_weak(update), + /* K36 */ be_nested_str_weak(fromstring), + /* K37 */ be_nested_str_weak(Matter_Context_Prefix), + /* K38 */ be_nested_str_weak(PBKDFParamRequest), + /* K39 */ be_nested_str_weak(PBKDFParamResponse), + /* K40 */ be_nested_str_weak(out), + /* K41 */ be_nested_str_weak(MTR_X3A_X20Context_X3D), + /* K42 */ be_nested_str_weak(set_context), + /* K43 */ be_nested_str_weak(compute_TT_hash), + /* K44 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D), + /* K45 */ be_nested_str_weak(MTR_X3A_X20Context_X20_X3D_X20), + /* K46 */ be_nested_str_weak(Context), + /* K47 */ be_nested_str_weak(MTR_X3A_X20M_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K48 */ be_nested_str_weak(M), + /* K49 */ be_nested_str_weak(MTR_X3A_X20N_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K50 */ be_nested_str_weak(N), + /* K51 */ be_nested_str_weak(MTR_X3A_X20pA_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K52 */ be_nested_str_weak(MTR_X3A_X20pB_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K53 */ be_nested_str_weak(MTR_X3A_X20Z_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K54 */ be_nested_str_weak(MTR_X3A_X20V_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K55 */ be_nested_str_weak(MTR_X3A_X20w0_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K56 */ be_nested_str_weak(w0), /* K57 */ be_nested_str_weak(MTR_X3A_X20Kmain_X20_X20_X20_X3D), /* K58 */ be_nested_str_weak(Kmain), /* K59 */ be_nested_str_weak(MTR_X3A_X20KcA_X20_X20_X20_X20_X20_X3D), @@ -308,7 +308,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */ }), be_str_weak(parse_Pake1), &be_const_str_solidified, - ( &(const binstruction[308]) { /* code */ + ( &(const binstruction[307]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0x880C0301, // 0001 GETMBR R3 R1 K1 0x54120021, // 0002 LDINT R4 34 @@ -350,273 +350,272 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */ 0x8C100514, // 0026 GETMET R4 R2 K20 0x88180115, // 0027 GETMBR R6 R0 K21 0x88180D16, // 0028 GETMBR R6 R6 K22 - 0x881C0115, // 0029 GETMBR R7 R0 K21 - 0x881C0F17, // 002A GETMBR R7 R7 K23 - 0x88200115, // 002B GETMBR R8 R0 K21 - 0x88201118, // 002C GETMBR R8 R8 K24 - 0x7C100800, // 002D CALL R4 4 - 0x90022604, // 002E SETMBR R0 K19 R4 - 0x88100113, // 002F GETMBR R4 R0 K19 - 0x8C100919, // 0030 GETMET R4 R4 K25 - 0x8818011A, // 0031 GETMBR R6 R0 K26 - 0x7C100400, // 0032 CALL R4 2 - 0x88100113, // 0033 GETMBR R4 R0 K19 - 0x8810091B, // 0034 GETMBR R4 R4 K27 - 0x90023604, // 0035 SETMBR R0 K27 R4 - 0xB8121A00, // 0036 GETNGBL R4 K13 - 0x8C10090E, // 0037 GETMET R4 R4 K14 - 0x8818011A, // 0038 GETMBR R6 R0 K26 - 0x8C180D10, // 0039 GETMET R6 R6 K16 - 0x7C180200, // 003A CALL R6 1 - 0x001A3806, // 003B ADD R6 K28 R6 - 0x541E0003, // 003C LDINT R7 4 - 0x7C100600, // 003D CALL R4 3 - 0xB8121A00, // 003E GETNGBL R4 K13 - 0x8C10090E, // 003F GETMET R4 R4 K14 - 0x8818011B, // 0040 GETMBR R6 R0 K27 - 0x8C180D10, // 0041 GETMET R6 R6 K16 - 0x7C180200, // 0042 CALL R6 1 - 0x001A3A06, // 0043 ADD R6 K29 R6 - 0x541E0003, // 0044 LDINT R7 4 - 0x7C100600, // 0045 CALL R4 3 - 0x88100113, // 0046 GETMBR R4 R0 K19 - 0x8C10091E, // 0047 GETMET R4 R4 K30 - 0x8818010C, // 0048 GETMBR R6 R0 K12 - 0x7C100400, // 0049 CALL R4 2 - 0xB8121A00, // 004A GETNGBL R4 K13 - 0x8C10090E, // 004B GETMET R4 R4 K14 - 0x88180113, // 004C GETMBR R6 R0 K19 - 0x88180D20, // 004D GETMBR R6 R6 K32 - 0x8C180D10, // 004E GETMET R6 R6 K16 - 0x7C180200, // 004F CALL R6 1 - 0x001A3E06, // 0050 ADD R6 K31 R6 - 0x541E0003, // 0051 LDINT R7 4 - 0x7C100600, // 0052 CALL R4 3 - 0xB8121A00, // 0053 GETNGBL R4 K13 - 0x8C10090E, // 0054 GETMET R4 R4 K14 - 0x88180113, // 0055 GETMBR R6 R0 K19 - 0x88180D22, // 0056 GETMBR R6 R6 K34 - 0x8C180D10, // 0057 GETMET R6 R6 K16 - 0x7C180200, // 0058 CALL R6 1 - 0x001A4206, // 0059 ADD R6 K33 R6 - 0x541E0003, // 005A LDINT R7 4 - 0x7C100600, // 005B CALL R4 3 - 0x8C100523, // 005C GETMET R4 R2 K35 - 0x7C100200, // 005D CALL R4 1 - 0x8C140924, // 005E GETMET R5 R4 K36 - 0x601C0015, // 005F GETGBL R7 G21 - 0x7C1C0000, // 0060 CALL R7 0 - 0x8C1C0F25, // 0061 GETMET R7 R7 K37 - 0x88240126, // 0062 GETMBR R9 R0 K38 - 0x7C1C0400, // 0063 CALL R7 2 - 0x7C140400, // 0064 CALL R5 2 - 0x8C140924, // 0065 GETMET R5 R4 K36 - 0x881C0127, // 0066 GETMBR R7 R0 K39 - 0x7C140400, // 0067 CALL R5 2 - 0x8C140924, // 0068 GETMET R5 R4 K36 - 0x881C0128, // 0069 GETMBR R7 R0 K40 - 0x7C140400, // 006A CALL R5 2 - 0x8C140929, // 006B GETMET R5 R4 K41 - 0x7C140200, // 006C CALL R5 1 - 0xB81A1A00, // 006D GETNGBL R6 K13 - 0x8C180D0E, // 006E GETMET R6 R6 K14 - 0x8C200B10, // 006F GETMET R8 R5 K16 - 0x7C200200, // 0070 CALL R8 1 - 0x00225408, // 0071 ADD R8 K42 R8 - 0x54260003, // 0072 LDINT R9 4 - 0x7C180600, // 0073 CALL R6 3 - 0x88180113, // 0074 GETMBR R6 R0 K19 - 0x881C010C, // 0075 GETMBR R7 R0 K12 - 0x901A1807, // 0076 SETMBR R6 K12 R7 - 0x88180113, // 0077 GETMBR R6 R0 K19 - 0x8C180D2B, // 0078 GETMET R6 R6 K43 - 0x5C200A00, // 0079 MOVE R8 R5 - 0x7C180400, // 007A CALL R6 2 - 0x88180113, // 007B GETMBR R6 R0 K19 - 0x8C180D2C, // 007C GETMET R6 R6 K44 - 0x50200200, // 007D LDBOOL R8 1 0 - 0x7C180400, // 007E CALL R6 2 - 0xB81A1A00, // 007F GETNGBL R6 K13 - 0x8C180D0E, // 0080 GETMET R6 R6 K14 - 0x5820002D, // 0081 LDCONST R8 K45 - 0x54260003, // 0082 LDINT R9 4 - 0x7C180600, // 0083 CALL R6 3 - 0xB81A1A00, // 0084 GETNGBL R6 K13 - 0x8C180D0E, // 0085 GETMET R6 R6 K14 - 0x88200113, // 0086 GETMBR R8 R0 K19 - 0x8820112F, // 0087 GETMBR R8 R8 K47 - 0x8C201110, // 0088 GETMET R8 R8 K16 - 0x7C200200, // 0089 CALL R8 1 - 0x00225C08, // 008A ADD R8 K46 R8 - 0x54260003, // 008B LDINT R9 4 - 0x7C180600, // 008C CALL R6 3 - 0xB81A1A00, // 008D GETNGBL R6 K13 - 0x8C180D0E, // 008E GETMET R6 R6 K14 - 0x88200113, // 008F GETMBR R8 R0 K19 - 0x88201131, // 0090 GETMBR R8 R8 K49 - 0x8C201110, // 0091 GETMET R8 R8 K16 - 0x7C200200, // 0092 CALL R8 1 - 0x00226008, // 0093 ADD R8 K48 R8 - 0x54260003, // 0094 LDINT R9 4 - 0x7C180600, // 0095 CALL R6 3 - 0xB81A1A00, // 0096 GETNGBL R6 K13 - 0x8C180D0E, // 0097 GETMET R6 R6 K14 - 0x88200113, // 0098 GETMBR R8 R0 K19 - 0x88201133, // 0099 GETMBR R8 R8 K51 - 0x8C201110, // 009A GETMET R8 R8 K16 - 0x7C200200, // 009B CALL R8 1 - 0x00226408, // 009C ADD R8 K50 R8 - 0x54260003, // 009D LDINT R9 4 - 0x7C180600, // 009E CALL R6 3 - 0xB81A1A00, // 009F GETNGBL R6 K13 - 0x8C180D0E, // 00A0 GETMET R6 R6 K14 - 0x88200113, // 00A1 GETMBR R8 R0 K19 - 0x8820110C, // 00A2 GETMBR R8 R8 K12 - 0x8C201110, // 00A3 GETMET R8 R8 K16 - 0x7C200200, // 00A4 CALL R8 1 - 0x00226808, // 00A5 ADD R8 K52 R8 - 0x54260003, // 00A6 LDINT R9 4 - 0x7C180600, // 00A7 CALL R6 3 - 0xB81A1A00, // 00A8 GETNGBL R6 K13 - 0x8C180D0E, // 00A9 GETMET R6 R6 K14 - 0x88200113, // 00AA GETMBR R8 R0 K19 - 0x8820111B, // 00AB GETMBR R8 R8 K27 - 0x8C201110, // 00AC GETMET R8 R8 K16 - 0x7C200200, // 00AD CALL R8 1 - 0x00226A08, // 00AE ADD R8 K53 R8 - 0x54260003, // 00AF LDINT R9 4 - 0x7C180600, // 00B0 CALL R6 3 - 0xB81A1A00, // 00B1 GETNGBL R6 K13 - 0x8C180D0E, // 00B2 GETMET R6 R6 K14 - 0x88200113, // 00B3 GETMBR R8 R0 K19 - 0x88201120, // 00B4 GETMBR R8 R8 K32 - 0x8C201110, // 00B5 GETMET R8 R8 K16 - 0x7C200200, // 00B6 CALL R8 1 - 0x00226C08, // 00B7 ADD R8 K54 R8 - 0x54260003, // 00B8 LDINT R9 4 - 0x7C180600, // 00B9 CALL R6 3 - 0xB81A1A00, // 00BA GETNGBL R6 K13 - 0x8C180D0E, // 00BB GETMET R6 R6 K14 - 0x88200113, // 00BC GETMBR R8 R0 K19 - 0x88201122, // 00BD GETMBR R8 R8 K34 - 0x8C201110, // 00BE GETMET R8 R8 K16 - 0x7C200200, // 00BF CALL R8 1 - 0x00226E08, // 00C0 ADD R8 K55 R8 - 0x54260003, // 00C1 LDINT R9 4 - 0x7C180600, // 00C2 CALL R6 3 - 0xB81A1A00, // 00C3 GETNGBL R6 K13 - 0x8C180D0E, // 00C4 GETMET R6 R6 K14 - 0x88200113, // 00C5 GETMBR R8 R0 K19 - 0x88201116, // 00C6 GETMBR R8 R8 K22 - 0x8C201110, // 00C7 GETMET R8 R8 K16 - 0x7C200200, // 00C8 CALL R8 1 - 0x00227008, // 00C9 ADD R8 K56 R8 - 0x54260003, // 00CA LDINT R9 4 - 0x7C180600, // 00CB CALL R6 3 - 0xB81A1A00, // 00CC GETNGBL R6 K13 - 0x8C180D0E, // 00CD GETMET R6 R6 K14 - 0x5820002D, // 00CE LDCONST R8 K45 - 0x54260003, // 00CF LDINT R9 4 - 0x7C180600, // 00D0 CALL R6 3 - 0xB81A1A00, // 00D1 GETNGBL R6 K13 - 0x8C180D0E, // 00D2 GETMET R6 R6 K14 - 0x88200113, // 00D3 GETMBR R8 R0 K19 - 0x8820113A, // 00D4 GETMBR R8 R8 K58 - 0x8C201110, // 00D5 GETMET R8 R8 K16 - 0x7C200200, // 00D6 CALL R8 1 - 0x00227208, // 00D7 ADD R8 K57 R8 - 0x54260003, // 00D8 LDINT R9 4 - 0x7C180600, // 00D9 CALL R6 3 - 0xB81A1A00, // 00DA GETNGBL R6 K13 - 0x8C180D0E, // 00DB GETMET R6 R6 K14 - 0x88200113, // 00DC GETMBR R8 R0 K19 - 0x8820113C, // 00DD GETMBR R8 R8 K60 - 0x8C201110, // 00DE GETMET R8 R8 K16 - 0x7C200200, // 00DF CALL R8 1 - 0x00227608, // 00E0 ADD R8 K59 R8 - 0x54260003, // 00E1 LDINT R9 4 - 0x7C180600, // 00E2 CALL R6 3 - 0xB81A1A00, // 00E3 GETNGBL R6 K13 - 0x8C180D0E, // 00E4 GETMET R6 R6 K14 - 0x88200113, // 00E5 GETMBR R8 R0 K19 - 0x8820113E, // 00E6 GETMBR R8 R8 K62 - 0x8C201110, // 00E7 GETMET R8 R8 K16 - 0x7C200200, // 00E8 CALL R8 1 - 0x00227A08, // 00E9 ADD R8 K61 R8 - 0x54260003, // 00EA LDINT R9 4 - 0x7C180600, // 00EB CALL R6 3 - 0xB81A1A00, // 00EC GETNGBL R6 K13 - 0x8C180D0E, // 00ED GETMET R6 R6 K14 - 0x88200113, // 00EE GETMBR R8 R0 K19 - 0x88201140, // 00EF GETMBR R8 R8 K64 - 0x8C201110, // 00F0 GETMET R8 R8 K16 - 0x7C200200, // 00F1 CALL R8 1 - 0x00227E08, // 00F2 ADD R8 K63 R8 - 0x54260003, // 00F3 LDINT R9 4 - 0x7C180600, // 00F4 CALL R6 3 - 0xB81A1A00, // 00F5 GETNGBL R6 K13 - 0x8C180D0E, // 00F6 GETMET R6 R6 K14 - 0x88200113, // 00F7 GETMBR R8 R0 K19 - 0x88201142, // 00F8 GETMBR R8 R8 K66 - 0x8C201110, // 00F9 GETMET R8 R8 K16 - 0x7C200200, // 00FA CALL R8 1 - 0x00228208, // 00FB ADD R8 K65 R8 - 0x54260003, // 00FC LDINT R9 4 - 0x7C180600, // 00FD CALL R6 3 - 0x88180113, // 00FE GETMBR R6 R0 K19 - 0x88180D43, // 00FF GETMBR R6 R6 K67 - 0x90028606, // 0100 SETMBR R0 K67 R6 - 0x88180113, // 0101 GETMBR R6 R0 K19 - 0x88180D42, // 0102 GETMBR R6 R6 K66 - 0x90028406, // 0103 SETMBR R0 K66 R6 - 0xB81A1A00, // 0104 GETNGBL R6 K13 - 0x8C180D0E, // 0105 GETMET R6 R6 K14 - 0x88200143, // 0106 GETMBR R8 R0 K67 - 0x8C201110, // 0107 GETMET R8 R8 K16 - 0x7C200200, // 0108 CALL R8 1 - 0x00228808, // 0109 ADD R8 K68 R8 - 0x54260003, // 010A LDINT R9 4 - 0x7C180600, // 010B CALL R6 3 - 0xB81A0E00, // 010C GETNGBL R6 K7 - 0x8C180D45, // 010D GETMET R6 R6 K69 - 0x7C180200, // 010E CALL R6 1 - 0x881C011B, // 010F GETMBR R7 R0 K27 - 0x901A3607, // 0110 SETMBR R6 K27 R7 - 0x881C0143, // 0111 GETMBR R7 R0 K67 - 0x901A8607, // 0112 SETMBR R6 K67 R7 - 0xB81E1A00, // 0113 GETNGBL R7 K13 - 0x8C1C0F0E, // 0114 GETMET R7 R7 K14 - 0xB8260E00, // 0115 GETNGBL R9 K7 - 0x8C241312, // 0116 GETMET R9 R9 K18 - 0x5C2C0C00, // 0117 MOVE R11 R6 - 0x7C240400, // 0118 CALL R9 2 - 0x00268C09, // 0119 ADD R9 K70 R9 - 0x542A0003, // 011A LDINT R10 4 - 0x7C1C0600, // 011B CALL R7 3 - 0x8C1C0D47, // 011C GETMET R7 R6 K71 - 0x7C1C0200, // 011D CALL R7 1 - 0xB8221A00, // 011E GETNGBL R8 K13 - 0x8C20110E, // 011F GETMET R8 R8 K14 - 0x8C280F10, // 0120 GETMET R10 R7 K16 - 0x7C280200, // 0121 CALL R10 1 - 0x002A900A, // 0122 ADD R10 K72 R10 - 0x542E0003, // 0123 LDINT R11 4 - 0x7C200600, // 0124 CALL R8 3 - 0x8C200349, // 0125 GETMET R8 R1 K73 - 0x542A0022, // 0126 LDINT R10 35 - 0x502C0200, // 0127 LDBOOL R11 1 0 - 0x7C200600, // 0128 CALL R8 3 - 0x8C241147, // 0129 GETMET R9 R8 K71 - 0x5C2C0E00, // 012A MOVE R11 R7 - 0x7C240400, // 012B CALL R9 2 - 0x8828014A, // 012C GETMBR R10 R0 K74 - 0x8C28154B, // 012D GETMET R10 R10 K75 - 0x5C301200, // 012E MOVE R12 R9 - 0x8834034C, // 012F GETMBR R13 R1 K76 - 0x8838034D, // 0130 GETMBR R14 R1 K77 - 0x883C114E, // 0131 GETMBR R15 R8 K78 - 0x7C280A00, // 0132 CALL R10 5 - 0x80000000, // 0133 RET 0 + 0x4C1C0000, // 0029 LDNIL R7 + 0x88200115, // 002A GETMBR R8 R0 K21 + 0x88201117, // 002B GETMBR R8 R8 K23 + 0x7C100800, // 002C CALL R4 4 + 0x90022604, // 002D SETMBR R0 K19 R4 + 0x88100113, // 002E GETMBR R4 R0 K19 + 0x8C100918, // 002F GETMET R4 R4 K24 + 0x88180119, // 0030 GETMBR R6 R0 K25 + 0x7C100400, // 0031 CALL R4 2 + 0x88100113, // 0032 GETMBR R4 R0 K19 + 0x8810091A, // 0033 GETMBR R4 R4 K26 + 0x90023404, // 0034 SETMBR R0 K26 R4 + 0xB8121A00, // 0035 GETNGBL R4 K13 + 0x8C10090E, // 0036 GETMET R4 R4 K14 + 0x88180119, // 0037 GETMBR R6 R0 K25 + 0x8C180D10, // 0038 GETMET R6 R6 K16 + 0x7C180200, // 0039 CALL R6 1 + 0x001A3606, // 003A ADD R6 K27 R6 + 0x541E0003, // 003B LDINT R7 4 + 0x7C100600, // 003C CALL R4 3 + 0xB8121A00, // 003D GETNGBL R4 K13 + 0x8C10090E, // 003E GETMET R4 R4 K14 + 0x8818011A, // 003F GETMBR R6 R0 K26 + 0x8C180D10, // 0040 GETMET R6 R6 K16 + 0x7C180200, // 0041 CALL R6 1 + 0x001A3806, // 0042 ADD R6 K28 R6 + 0x541E0003, // 0043 LDINT R7 4 + 0x7C100600, // 0044 CALL R4 3 + 0x88100113, // 0045 GETMBR R4 R0 K19 + 0x8C10091D, // 0046 GETMET R4 R4 K29 + 0x8818010C, // 0047 GETMBR R6 R0 K12 + 0x7C100400, // 0048 CALL R4 2 + 0xB8121A00, // 0049 GETNGBL R4 K13 + 0x8C10090E, // 004A GETMET R4 R4 K14 + 0x88180113, // 004B GETMBR R6 R0 K19 + 0x88180D1F, // 004C GETMBR R6 R6 K31 + 0x8C180D10, // 004D GETMET R6 R6 K16 + 0x7C180200, // 004E CALL R6 1 + 0x001A3C06, // 004F ADD R6 K30 R6 + 0x541E0003, // 0050 LDINT R7 4 + 0x7C100600, // 0051 CALL R4 3 + 0xB8121A00, // 0052 GETNGBL R4 K13 + 0x8C10090E, // 0053 GETMET R4 R4 K14 + 0x88180113, // 0054 GETMBR R6 R0 K19 + 0x88180D21, // 0055 GETMBR R6 R6 K33 + 0x8C180D10, // 0056 GETMET R6 R6 K16 + 0x7C180200, // 0057 CALL R6 1 + 0x001A4006, // 0058 ADD R6 K32 R6 + 0x541E0003, // 0059 LDINT R7 4 + 0x7C100600, // 005A CALL R4 3 + 0x8C100522, // 005B GETMET R4 R2 K34 + 0x7C100200, // 005C CALL R4 1 + 0x8C140923, // 005D GETMET R5 R4 K35 + 0x601C0015, // 005E GETGBL R7 G21 + 0x7C1C0000, // 005F CALL R7 0 + 0x8C1C0F24, // 0060 GETMET R7 R7 K36 + 0x88240125, // 0061 GETMBR R9 R0 K37 + 0x7C1C0400, // 0062 CALL R7 2 + 0x7C140400, // 0063 CALL R5 2 + 0x8C140923, // 0064 GETMET R5 R4 K35 + 0x881C0126, // 0065 GETMBR R7 R0 K38 + 0x7C140400, // 0066 CALL R5 2 + 0x8C140923, // 0067 GETMET R5 R4 K35 + 0x881C0127, // 0068 GETMBR R7 R0 K39 + 0x7C140400, // 0069 CALL R5 2 + 0x8C140928, // 006A GETMET R5 R4 K40 + 0x7C140200, // 006B CALL R5 1 + 0xB81A1A00, // 006C GETNGBL R6 K13 + 0x8C180D0E, // 006D GETMET R6 R6 K14 + 0x8C200B10, // 006E GETMET R8 R5 K16 + 0x7C200200, // 006F CALL R8 1 + 0x00225208, // 0070 ADD R8 K41 R8 + 0x54260003, // 0071 LDINT R9 4 + 0x7C180600, // 0072 CALL R6 3 + 0x88180113, // 0073 GETMBR R6 R0 K19 + 0x881C010C, // 0074 GETMBR R7 R0 K12 + 0x901A1807, // 0075 SETMBR R6 K12 R7 + 0x88180113, // 0076 GETMBR R6 R0 K19 + 0x8C180D2A, // 0077 GETMET R6 R6 K42 + 0x5C200A00, // 0078 MOVE R8 R5 + 0x7C180400, // 0079 CALL R6 2 + 0x88180113, // 007A GETMBR R6 R0 K19 + 0x8C180D2B, // 007B GETMET R6 R6 K43 + 0x50200200, // 007C LDBOOL R8 1 0 + 0x7C180400, // 007D CALL R6 2 + 0xB81A1A00, // 007E GETNGBL R6 K13 + 0x8C180D0E, // 007F GETMET R6 R6 K14 + 0x5820002C, // 0080 LDCONST R8 K44 + 0x54260003, // 0081 LDINT R9 4 + 0x7C180600, // 0082 CALL R6 3 + 0xB81A1A00, // 0083 GETNGBL R6 K13 + 0x8C180D0E, // 0084 GETMET R6 R6 K14 + 0x88200113, // 0085 GETMBR R8 R0 K19 + 0x8820112E, // 0086 GETMBR R8 R8 K46 + 0x8C201110, // 0087 GETMET R8 R8 K16 + 0x7C200200, // 0088 CALL R8 1 + 0x00225A08, // 0089 ADD R8 K45 R8 + 0x54260003, // 008A LDINT R9 4 + 0x7C180600, // 008B CALL R6 3 + 0xB81A1A00, // 008C GETNGBL R6 K13 + 0x8C180D0E, // 008D GETMET R6 R6 K14 + 0x88200113, // 008E GETMBR R8 R0 K19 + 0x88201130, // 008F GETMBR R8 R8 K48 + 0x8C201110, // 0090 GETMET R8 R8 K16 + 0x7C200200, // 0091 CALL R8 1 + 0x00225E08, // 0092 ADD R8 K47 R8 + 0x54260003, // 0093 LDINT R9 4 + 0x7C180600, // 0094 CALL R6 3 + 0xB81A1A00, // 0095 GETNGBL R6 K13 + 0x8C180D0E, // 0096 GETMET R6 R6 K14 + 0x88200113, // 0097 GETMBR R8 R0 K19 + 0x88201132, // 0098 GETMBR R8 R8 K50 + 0x8C201110, // 0099 GETMET R8 R8 K16 + 0x7C200200, // 009A CALL R8 1 + 0x00226208, // 009B ADD R8 K49 R8 + 0x54260003, // 009C LDINT R9 4 + 0x7C180600, // 009D CALL R6 3 + 0xB81A1A00, // 009E GETNGBL R6 K13 + 0x8C180D0E, // 009F GETMET R6 R6 K14 + 0x88200113, // 00A0 GETMBR R8 R0 K19 + 0x8820110C, // 00A1 GETMBR R8 R8 K12 + 0x8C201110, // 00A2 GETMET R8 R8 K16 + 0x7C200200, // 00A3 CALL R8 1 + 0x00226608, // 00A4 ADD R8 K51 R8 + 0x54260003, // 00A5 LDINT R9 4 + 0x7C180600, // 00A6 CALL R6 3 + 0xB81A1A00, // 00A7 GETNGBL R6 K13 + 0x8C180D0E, // 00A8 GETMET R6 R6 K14 + 0x88200113, // 00A9 GETMBR R8 R0 K19 + 0x8820111A, // 00AA GETMBR R8 R8 K26 + 0x8C201110, // 00AB GETMET R8 R8 K16 + 0x7C200200, // 00AC CALL R8 1 + 0x00226808, // 00AD ADD R8 K52 R8 + 0x54260003, // 00AE LDINT R9 4 + 0x7C180600, // 00AF CALL R6 3 + 0xB81A1A00, // 00B0 GETNGBL R6 K13 + 0x8C180D0E, // 00B1 GETMET R6 R6 K14 + 0x88200113, // 00B2 GETMBR R8 R0 K19 + 0x8820111F, // 00B3 GETMBR R8 R8 K31 + 0x8C201110, // 00B4 GETMET R8 R8 K16 + 0x7C200200, // 00B5 CALL R8 1 + 0x00226A08, // 00B6 ADD R8 K53 R8 + 0x54260003, // 00B7 LDINT R9 4 + 0x7C180600, // 00B8 CALL R6 3 + 0xB81A1A00, // 00B9 GETNGBL R6 K13 + 0x8C180D0E, // 00BA GETMET R6 R6 K14 + 0x88200113, // 00BB GETMBR R8 R0 K19 + 0x88201121, // 00BC GETMBR R8 R8 K33 + 0x8C201110, // 00BD GETMET R8 R8 K16 + 0x7C200200, // 00BE CALL R8 1 + 0x00226C08, // 00BF ADD R8 K54 R8 + 0x54260003, // 00C0 LDINT R9 4 + 0x7C180600, // 00C1 CALL R6 3 + 0xB81A1A00, // 00C2 GETNGBL R6 K13 + 0x8C180D0E, // 00C3 GETMET R6 R6 K14 + 0x88200113, // 00C4 GETMBR R8 R0 K19 + 0x88201138, // 00C5 GETMBR R8 R8 K56 + 0x8C201110, // 00C6 GETMET R8 R8 K16 + 0x7C200200, // 00C7 CALL R8 1 + 0x00226E08, // 00C8 ADD R8 K55 R8 + 0x54260003, // 00C9 LDINT R9 4 + 0x7C180600, // 00CA CALL R6 3 + 0xB81A1A00, // 00CB GETNGBL R6 K13 + 0x8C180D0E, // 00CC GETMET R6 R6 K14 + 0x5820002C, // 00CD LDCONST R8 K44 + 0x54260003, // 00CE LDINT R9 4 + 0x7C180600, // 00CF CALL R6 3 + 0xB81A1A00, // 00D0 GETNGBL R6 K13 + 0x8C180D0E, // 00D1 GETMET R6 R6 K14 + 0x88200113, // 00D2 GETMBR R8 R0 K19 + 0x8820113A, // 00D3 GETMBR R8 R8 K58 + 0x8C201110, // 00D4 GETMET R8 R8 K16 + 0x7C200200, // 00D5 CALL R8 1 + 0x00227208, // 00D6 ADD R8 K57 R8 + 0x54260003, // 00D7 LDINT R9 4 + 0x7C180600, // 00D8 CALL R6 3 + 0xB81A1A00, // 00D9 GETNGBL R6 K13 + 0x8C180D0E, // 00DA GETMET R6 R6 K14 + 0x88200113, // 00DB GETMBR R8 R0 K19 + 0x8820113C, // 00DC GETMBR R8 R8 K60 + 0x8C201110, // 00DD GETMET R8 R8 K16 + 0x7C200200, // 00DE CALL R8 1 + 0x00227608, // 00DF ADD R8 K59 R8 + 0x54260003, // 00E0 LDINT R9 4 + 0x7C180600, // 00E1 CALL R6 3 + 0xB81A1A00, // 00E2 GETNGBL R6 K13 + 0x8C180D0E, // 00E3 GETMET R6 R6 K14 + 0x88200113, // 00E4 GETMBR R8 R0 K19 + 0x8820113E, // 00E5 GETMBR R8 R8 K62 + 0x8C201110, // 00E6 GETMET R8 R8 K16 + 0x7C200200, // 00E7 CALL R8 1 + 0x00227A08, // 00E8 ADD R8 K61 R8 + 0x54260003, // 00E9 LDINT R9 4 + 0x7C180600, // 00EA CALL R6 3 + 0xB81A1A00, // 00EB GETNGBL R6 K13 + 0x8C180D0E, // 00EC GETMET R6 R6 K14 + 0x88200113, // 00ED GETMBR R8 R0 K19 + 0x88201140, // 00EE GETMBR R8 R8 K64 + 0x8C201110, // 00EF GETMET R8 R8 K16 + 0x7C200200, // 00F0 CALL R8 1 + 0x00227E08, // 00F1 ADD R8 K63 R8 + 0x54260003, // 00F2 LDINT R9 4 + 0x7C180600, // 00F3 CALL R6 3 + 0xB81A1A00, // 00F4 GETNGBL R6 K13 + 0x8C180D0E, // 00F5 GETMET R6 R6 K14 + 0x88200113, // 00F6 GETMBR R8 R0 K19 + 0x88201142, // 00F7 GETMBR R8 R8 K66 + 0x8C201110, // 00F8 GETMET R8 R8 K16 + 0x7C200200, // 00F9 CALL R8 1 + 0x00228208, // 00FA ADD R8 K65 R8 + 0x54260003, // 00FB LDINT R9 4 + 0x7C180600, // 00FC CALL R6 3 + 0x88180113, // 00FD GETMBR R6 R0 K19 + 0x88180D43, // 00FE GETMBR R6 R6 K67 + 0x90028606, // 00FF SETMBR R0 K67 R6 + 0x88180113, // 0100 GETMBR R6 R0 K19 + 0x88180D42, // 0101 GETMBR R6 R6 K66 + 0x90028406, // 0102 SETMBR R0 K66 R6 + 0xB81A1A00, // 0103 GETNGBL R6 K13 + 0x8C180D0E, // 0104 GETMET R6 R6 K14 + 0x88200143, // 0105 GETMBR R8 R0 K67 + 0x8C201110, // 0106 GETMET R8 R8 K16 + 0x7C200200, // 0107 CALL R8 1 + 0x00228808, // 0108 ADD R8 K68 R8 + 0x54260003, // 0109 LDINT R9 4 + 0x7C180600, // 010A CALL R6 3 + 0xB81A0E00, // 010B GETNGBL R6 K7 + 0x8C180D45, // 010C GETMET R6 R6 K69 + 0x7C180200, // 010D CALL R6 1 + 0x881C011A, // 010E GETMBR R7 R0 K26 + 0x901A3407, // 010F SETMBR R6 K26 R7 + 0x881C0143, // 0110 GETMBR R7 R0 K67 + 0x901A8607, // 0111 SETMBR R6 K67 R7 + 0xB81E1A00, // 0112 GETNGBL R7 K13 + 0x8C1C0F0E, // 0113 GETMET R7 R7 K14 + 0xB8260E00, // 0114 GETNGBL R9 K7 + 0x8C241312, // 0115 GETMET R9 R9 K18 + 0x5C2C0C00, // 0116 MOVE R11 R6 + 0x7C240400, // 0117 CALL R9 2 + 0x00268C09, // 0118 ADD R9 K70 R9 + 0x542A0003, // 0119 LDINT R10 4 + 0x7C1C0600, // 011A CALL R7 3 + 0x8C1C0D47, // 011B GETMET R7 R6 K71 + 0x7C1C0200, // 011C CALL R7 1 + 0xB8221A00, // 011D GETNGBL R8 K13 + 0x8C20110E, // 011E GETMET R8 R8 K14 + 0x8C280F10, // 011F GETMET R10 R7 K16 + 0x7C280200, // 0120 CALL R10 1 + 0x002A900A, // 0121 ADD R10 K72 R10 + 0x542E0003, // 0122 LDINT R11 4 + 0x7C200600, // 0123 CALL R8 3 + 0x8C200349, // 0124 GETMET R8 R1 K73 + 0x542A0022, // 0125 LDINT R10 35 + 0x502C0200, // 0126 LDBOOL R11 1 0 + 0x7C200600, // 0127 CALL R8 3 + 0x8C241147, // 0128 GETMET R9 R8 K71 + 0x5C2C0E00, // 0129 MOVE R11 R7 + 0x7C240400, // 012A CALL R9 2 + 0x8828014A, // 012B GETMBR R10 R0 K74 + 0x8C28154B, // 012C GETMET R10 R10 K75 + 0x5C301200, // 012D MOVE R12 R9 + 0x8834034C, // 012E GETMBR R13 R1 K76 + 0x8838034D, // 012F GETMBR R14 R1 K77 + 0x883C114E, // 0130 GETMBR R15 R8 K78 + 0x7C280A00, // 0131 CALL R10 5 + 0x80000000, // 0132 RET 0 }) ) ); @@ -852,7 +851,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[95]) { /* constants */ + ( &(const bvalue[96]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(opcode), /* K2 */ be_nested_str_weak(local_session_id), @@ -944,14 +943,15 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ /* K88 */ be_nested_str_weak(message_counter), /* K89 */ be_nested_str_weak(close), /* K90 */ be_nested_str_weak(set_keys), - /* K91 */ be_nested_str_weak(set_persist), - /* K92 */ be_nested_str_weak(set_no_expiration), - /* K93 */ be_nested_str_weak(persist_to_fabric), - /* K94 */ be_nested_str_weak(save), + /* K91 */ be_nested_str_weak(_breadcrumb), + /* K92 */ be_nested_str_weak(set_persist), + /* K93 */ be_nested_str_weak(set_no_expiration), + /* K94 */ be_nested_str_weak(persist_to_fabric), + /* K95 */ be_nested_str_weak(save), }), be_str_weak(parse_Sigma3), &be_const_str_solidified, - ( &(const binstruction[449]) { /* code */ + ( &(const binstruction[450]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0x880C0301, // 0001 GETMBR R3 R1 K1 0x54120031, // 0002 LDINT R4 50 @@ -1390,17 +1390,18 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x5C903600, // 01B3 MOVE R36 R27 0x5C943800, // 01B4 MOVE R37 R28 0x7C800A00, // 01B5 CALL R32 5 - 0x8C80075B, // 01B6 GETMET R32 R3 K91 - 0x50880200, // 01B7 LDBOOL R34 1 0 - 0x7C800400, // 01B8 CALL R32 2 - 0x8C80075C, // 01B9 GETMET R32 R3 K92 - 0x7C800200, // 01BA CALL R32 1 - 0x8C80075D, // 01BB GETMET R32 R3 K93 - 0x7C800200, // 01BC CALL R32 1 - 0x8C80075E, // 01BD GETMET R32 R3 K94 - 0x7C800200, // 01BE CALL R32 1 - 0x50800200, // 01BF LDBOOL R32 1 0 - 0x80044000, // 01C0 RET 1 R32 + 0x900EB703, // 01B6 SETMBR R3 K91 K3 + 0x8C80075C, // 01B7 GETMET R32 R3 K92 + 0x50880200, // 01B8 LDBOOL R34 1 0 + 0x7C800400, // 01B9 CALL R32 2 + 0x8C80075D, // 01BA GETMET R32 R3 K93 + 0x7C800200, // 01BB CALL R32 1 + 0x8C80075E, // 01BC GETMET R32 R3 K94 + 0x7C800200, // 01BD CALL R32 1 + 0x8C80075F, // 01BE GETMET R32 R3 K95 + 0x7C800200, // 01BF CALL R32 1 + 0x50800200, // 01C0 LDBOOL R32 1 0 + 0x80044000, // 01C1 RET 1 R32 }) ) ); @@ -1444,7 +1445,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[115]) { /* constants */ + ( &(const bvalue[116]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(opcode), /* K2 */ be_nested_str_weak(local_session_id), @@ -1471,95 +1472,96 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ /* K23 */ be_nested_str_weak(_fabric), /* K24 */ be_nested_str_weak(valuer_error), /* K25 */ be_nested_str_weak(StatusReport_X28GeneralCode_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20NO_SHARED_TRUST_ROOTS_X29), - /* K26 */ be_nested_str_weak(source_node_id), - /* K27 */ be_nested_str_weak(set_mode_CASE), - /* K28 */ be_nested_str_weak(remove_session), - /* K29 */ be_nested_str_weak(__future_initiator_session_id), - /* K30 */ be_nested_str_weak(initiator_session_id), - /* K31 */ be_nested_str_weak(__future_local_session_id), - /* K32 */ be_nested_str_weak(gen_local_session_id), - /* K33 */ be_nested_str_weak(future_local_session_id), - /* K34 */ be_nested_str_weak(tasmota), - /* K35 */ be_nested_str_weak(log), - /* K36 */ be_nested_str_weak(MTR_X3A_X20Loc_session_X3D), - /* K37 */ be_nested_str_weak(fromstring), - /* K38 */ be_nested_str_weak(Sigma1_Resume), - /* K39 */ be_nested_str_weak(HKDF_SHA256), - /* K40 */ be_nested_str_weak(derive), - /* K41 */ be_nested_str_weak(shared_secret), - /* K42 */ be_nested_str_weak(NCASE_SigmaR1), - /* K43 */ be_const_int(2147483647), - /* K44 */ be_nested_str_weak(AES_CCM), - /* K45 */ be_nested_str_weak(decrypt), - /* K46 */ be_nested_str_weak(tag), - /* K47 */ be_nested_str_weak(_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), - /* K48 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s1rk_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K49 */ be_nested_str_weak(tohex), - /* K50 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20tag_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K51 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20Resume1MICPayload_X20_X3D_X20), - /* K52 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20decrypted_tag_X20_X20_X20_X20_X20_X3D_X20), - /* K53 */ be_nested_str_weak(resumption_id), - /* K54 */ be_nested_str_weak(random), - /* K55 */ be_nested_str_weak(Sigma2_Resume), - /* K56 */ be_nested_str_weak(NCASE_SigmaR2), - /* K57 */ be_nested_str_weak(Sigma2Resume), - /* K58 */ be_nested_str_weak(responderSessionID), - /* K59 */ be_nested_str_weak(sigma2ResumeMIC), - /* K60 */ be_nested_str_weak(SessionResumptionKeys), - /* K61 */ be_nested_str_weak(rtc), - /* K62 */ be_nested_str_weak(utc), - /* K63 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), - /* K64 */ be_nested_str_weak(MTR_X3A_X20I2RKey_X20_X20_X20_X20_X20_X20_X3D), - /* K65 */ be_nested_str_weak(MTR_X3A_X20R2IKey_X20_X20_X20_X20_X20_X20_X3D), - /* K66 */ be_nested_str_weak(MTR_X3A_X20AC_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D), - /* K67 */ be_nested_str_weak(encode), - /* K68 */ be_nested_str_weak(__Msg1), - /* K69 */ be_nested_str_weak(MTR_X3A_X20sigma2resume_raw_X3A_X20), - /* K70 */ be_nested_str_weak(build_response), - /* K71 */ be_nested_str_weak(responder), - /* K72 */ be_nested_str_weak(send_response), - /* K73 */ be_nested_str_weak(remote_ip), - /* K74 */ be_nested_str_weak(remote_port), - /* K75 */ be_nested_str_weak(message_counter), - /* K76 */ be_nested_str_weak(set_keys), - /* K77 */ be_nested_str_weak(ResponderEph_priv), - /* K78 */ be_nested_str_weak(ResponderEph_pub), - /* K79 */ be_nested_str_weak(EC_P256), - /* K80 */ be_nested_str_weak(public_key), - /* K81 */ be_nested_str_weak(shared_key), - /* K82 */ be_nested_str_weak(TLV), - /* K83 */ be_nested_str_weak(Matter_TLV_struct), - /* K84 */ be_nested_str_weak(add_TLV), - /* K85 */ be_const_int(1), - /* K86 */ be_nested_str_weak(B2), - /* K87 */ be_nested_str_weak(get_noc), - /* K88 */ be_const_int(2), - /* K89 */ be_nested_str_weak(get_icac), - /* K90 */ be_const_int(3), - /* K91 */ be_nested_str_weak(ecdsa_sign_sha256), - /* K92 */ be_nested_str_weak(get_pk), - /* K93 */ be_nested_str_weak(Msg1), - /* K94 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20MSG1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K95 */ be_nested_str_weak(SHA256), - /* K96 */ be_nested_str_weak(update), - /* K97 */ be_nested_str_weak(out), - /* K98 */ be_nested_str_weak(S2K_Info), - /* K99 */ be_nested_str_weak(get_ipk_group_key), - /* K100 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20SharedSecret_X20_X20_X3D_X20), - /* K101 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_salt_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K102 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K103 */ be_nested_str_weak(TBEData2_Nonce), - /* K104 */ be_nested_str_weak(encrypt), - /* K105 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Enc_X20_X20_X20_X3D_X20), - /* K106 */ be_nested_str_weak(Sigma2), - /* K107 */ be_nested_str_weak(responderRandom), - /* K108 */ be_nested_str_weak(responderSessionId), - /* K109 */ be_nested_str_weak(responderEphPubKey), - /* K110 */ be_nested_str_weak(encrypted2), - /* K111 */ be_nested_str_weak(MTR_X3A_X20sigma2_X3A_X20), - /* K112 */ be_nested_str_weak(inspect), - /* K113 */ be_nested_str_weak(__Msg2), - /* K114 */ be_nested_str_weak(MTR_X3A_X20sigma2_raw_X3A_X20), + /* K26 */ be_nested_str_weak(_source_node_id), + /* K27 */ be_nested_str_weak(source_node_id), + /* K28 */ be_nested_str_weak(set_mode_CASE), + /* K29 */ be_nested_str_weak(remove_session), + /* K30 */ be_nested_str_weak(__future_initiator_session_id), + /* K31 */ be_nested_str_weak(initiator_session_id), + /* K32 */ be_nested_str_weak(__future_local_session_id), + /* K33 */ be_nested_str_weak(gen_local_session_id), + /* K34 */ be_nested_str_weak(future_local_session_id), + /* K35 */ be_nested_str_weak(tasmota), + /* K36 */ be_nested_str_weak(log), + /* K37 */ be_nested_str_weak(MTR_X3A_X20Loc_session_X3D), + /* K38 */ be_nested_str_weak(fromstring), + /* K39 */ be_nested_str_weak(Sigma1_Resume), + /* K40 */ be_nested_str_weak(HKDF_SHA256), + /* K41 */ be_nested_str_weak(derive), + /* K42 */ be_nested_str_weak(shared_secret), + /* K43 */ be_nested_str_weak(NCASE_SigmaR1), + /* K44 */ be_const_int(2147483647), + /* K45 */ be_nested_str_weak(AES_CCM), + /* K46 */ be_nested_str_weak(decrypt), + /* K47 */ be_nested_str_weak(tag), + /* K48 */ be_nested_str_weak(_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), + /* K49 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s1rk_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K50 */ be_nested_str_weak(tohex), + /* K51 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20tag_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K52 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20Resume1MICPayload_X20_X3D_X20), + /* K53 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20decrypted_tag_X20_X20_X20_X20_X20_X3D_X20), + /* K54 */ be_nested_str_weak(resumption_id), + /* K55 */ be_nested_str_weak(random), + /* K56 */ be_nested_str_weak(Sigma2_Resume), + /* K57 */ be_nested_str_weak(NCASE_SigmaR2), + /* K58 */ be_nested_str_weak(Sigma2Resume), + /* K59 */ be_nested_str_weak(responderSessionID), + /* K60 */ be_nested_str_weak(sigma2ResumeMIC), + /* K61 */ be_nested_str_weak(SessionResumptionKeys), + /* K62 */ be_nested_str_weak(rtc), + /* K63 */ be_nested_str_weak(utc), + /* K64 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), + /* K65 */ be_nested_str_weak(MTR_X3A_X20I2RKey_X20_X20_X20_X20_X20_X20_X3D), + /* K66 */ be_nested_str_weak(MTR_X3A_X20R2IKey_X20_X20_X20_X20_X20_X20_X3D), + /* K67 */ be_nested_str_weak(MTR_X3A_X20AC_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D), + /* K68 */ be_nested_str_weak(encode), + /* K69 */ be_nested_str_weak(__Msg1), + /* K70 */ be_nested_str_weak(MTR_X3A_X20sigma2resume_raw_X3A_X20), + /* K71 */ be_nested_str_weak(build_response), + /* K72 */ be_nested_str_weak(responder), + /* K73 */ be_nested_str_weak(send_response), + /* K74 */ be_nested_str_weak(remote_ip), + /* K75 */ be_nested_str_weak(remote_port), + /* K76 */ be_nested_str_weak(message_counter), + /* K77 */ be_nested_str_weak(set_keys), + /* K78 */ be_nested_str_weak(ResponderEph_priv), + /* K79 */ be_nested_str_weak(ResponderEph_pub), + /* K80 */ be_nested_str_weak(EC_P256), + /* K81 */ be_nested_str_weak(public_key), + /* K82 */ be_nested_str_weak(shared_key), + /* K83 */ be_nested_str_weak(TLV), + /* K84 */ be_nested_str_weak(Matter_TLV_struct), + /* K85 */ be_nested_str_weak(add_TLV), + /* K86 */ be_const_int(1), + /* K87 */ be_nested_str_weak(B2), + /* K88 */ be_nested_str_weak(get_noc), + /* K89 */ be_const_int(2), + /* K90 */ be_nested_str_weak(get_icac), + /* K91 */ be_const_int(3), + /* K92 */ be_nested_str_weak(ecdsa_sign_sha256), + /* K93 */ be_nested_str_weak(get_pk), + /* K94 */ be_nested_str_weak(Msg1), + /* K95 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20MSG1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K96 */ be_nested_str_weak(SHA256), + /* K97 */ be_nested_str_weak(update), + /* K98 */ be_nested_str_weak(out), + /* K99 */ be_nested_str_weak(S2K_Info), + /* K100 */ be_nested_str_weak(get_ipk_group_key), + /* K101 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20SharedSecret_X20_X20_X3D_X20), + /* K102 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_salt_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K103 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K104 */ be_nested_str_weak(TBEData2_Nonce), + /* K105 */ be_nested_str_weak(encrypt), + /* K106 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Enc_X20_X20_X20_X3D_X20), + /* K107 */ be_nested_str_weak(Sigma2), + /* K108 */ be_nested_str_weak(responderRandom), + /* K109 */ be_nested_str_weak(responderSessionId), + /* K110 */ be_nested_str_weak(responderEphPubKey), + /* K111 */ be_nested_str_weak(encrypted2), + /* K112 */ be_nested_str_weak(MTR_X3A_X20sigma2_X3A_X20), + /* K113 */ be_nested_str_weak(inspect), + /* K114 */ be_nested_str_weak(__Msg2), + /* K115 */ be_nested_str_weak(MTR_X3A_X20sigma2_raw_X3A_X20), }), be_str_weak(parse_Sigma1), &be_const_str_solidified, @@ -1617,34 +1619,34 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x1C180C07, // 0032 EQ R6 R6 R7 0x781A0000, // 0033 JMPF R6 #0035 0xB0063119, // 0034 RAISE 1 K24 K25 - 0x8818031A, // 0035 GETMBR R6 R1 K26 + 0x8818031B, // 0035 GETMBR R6 R1 K27 0x90163406, // 0036 SETMBR R5 K26 R6 - 0x8C180B1B, // 0037 GETMET R6 R5 K27 + 0x8C180B1C, // 0037 GETMET R6 R5 K28 0x7C180200, // 0038 CALL R6 1 0x88180310, // 0039 GETMBR R6 R1 K16 0x20180C05, // 003A NE R6 R6 R5 0x781A0004, // 003B JMPF R6 #0041 0x88180111, // 003C GETMBR R6 R0 K17 0x88180D12, // 003D GETMBR R6 R6 K18 - 0x8C180D1C, // 003E GETMET R6 R6 K28 + 0x8C180D1D, // 003E GETMET R6 R6 K29 0x88200310, // 003F GETMBR R8 R1 K16 0x7C180400, // 0040 CALL R6 2 0x90062005, // 0041 SETMBR R1 K16 R5 - 0x8818071E, // 0042 GETMBR R6 R3 K30 - 0x90163A06, // 0043 SETMBR R5 K29 R6 + 0x8818071F, // 0042 GETMBR R6 R3 K31 + 0x90163C06, // 0043 SETMBR R5 K30 R6 0x88180111, // 0044 GETMBR R6 R0 K17 0x88180D12, // 0045 GETMBR R6 R6 K18 - 0x8C180D20, // 0046 GETMET R6 R6 K32 + 0x8C180D21, // 0046 GETMET R6 R6 K33 0x7C180200, // 0047 CALL R6 1 - 0x90163E06, // 0048 SETMBR R5 K31 R6 - 0x88180B1F, // 0049 GETMBR R6 R5 K31 - 0x90024206, // 004A SETMBR R0 K33 R6 - 0xB81A4400, // 004B GETNGBL R6 K34 - 0x8C180D23, // 004C GETMET R6 R6 K35 + 0x90164006, // 0048 SETMBR R5 K32 R6 + 0x88180B20, // 0049 GETMBR R6 R5 K32 + 0x90024406, // 004A SETMBR R0 K34 R6 + 0xB81A4600, // 004B GETNGBL R6 K35 + 0x8C180D24, // 004C GETMET R6 R6 K36 0x60200008, // 004D GETGBL R8 G8 - 0x88240121, // 004E GETMBR R9 R0 K33 + 0x88240122, // 004E GETMBR R9 R0 K34 0x7C200200, // 004F CALL R8 1 - 0x00224808, // 0050 ADD R8 K36 R8 + 0x00224A08, // 0050 ADD R8 K37 R8 0x7C180400, // 0051 CALL R6 2 0x781200E1, // 0052 JMPF R4 #0135 0x88180716, // 0053 GETMBR R6 R3 K22 @@ -1652,31 +1654,31 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x00180C07, // 0055 ADD R6 R6 R7 0x601C0015, // 0056 GETGBL R7 G21 0x7C1C0000, // 0057 CALL R7 0 - 0x8C1C0F25, // 0058 GETMET R7 R7 K37 - 0x58240026, // 0059 LDCONST R9 K38 + 0x8C1C0F26, // 0058 GETMET R7 R7 K38 + 0x58240027, // 0059 LDCONST R9 K39 0x7C1C0400, // 005A CALL R7 2 - 0x8C200527, // 005B GETMET R8 R2 K39 + 0x8C200528, // 005B GETMET R8 R2 K40 0x7C200200, // 005C CALL R8 1 - 0x8C201128, // 005D GETMET R8 R8 K40 - 0x88280B29, // 005E GETMBR R10 R5 K41 + 0x8C201129, // 005D GETMET R8 R8 K41 + 0x88280B2A, // 005E GETMBR R10 R5 K42 0x5C2C0C00, // 005F MOVE R11 R6 0x5C300E00, // 0060 MOVE R12 R7 0x5436000F, // 0061 LDINT R13 16 0x7C200A00, // 0062 CALL R8 5 0x60240015, // 0063 GETGBL R9 G21 0x7C240000, // 0064 CALL R9 0 - 0x8C241325, // 0065 GETMET R9 R9 K37 - 0x582C002A, // 0066 LDCONST R11 K42 + 0x8C241326, // 0065 GETMET R9 R9 K38 + 0x582C002B, // 0066 LDCONST R11 K43 0x7C240400, // 0067 CALL R9 2 0x5429FFEE, // 0068 LDINT R10 -17 0x402A060A, // 0069 CONNECT R10 K3 R10 0x882C070F, // 006A GETMBR R11 R3 K15 0x9428160A, // 006B GETIDX R10 R11 R10 0x5431FFEF, // 006C LDINT R12 -16 - 0x4030192B, // 006D CONNECT R12 R12 K43 + 0x4030192C, // 006D CONNECT R12 R12 K44 0x8834070F, // 006E GETMBR R13 R3 K15 0x942C1A0C, // 006F GETIDX R11 R13 R12 - 0x8C38052C, // 0070 GETMET R14 R2 K44 + 0x8C38052D, // 0070 GETMET R14 R2 K45 0x5C401000, // 0071 MOVE R16 R8 0x5C441200, // 0072 MOVE R17 R9 0x60480015, // 0073 GETGBL R18 G21 @@ -1687,107 +1689,107 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x5452000F, // 0078 LDINT R20 16 0x7C380C00, // 0079 CALL R14 6 0x5C301C00, // 007A MOVE R12 R14 - 0x8C38192D, // 007B GETMET R14 R12 K45 + 0x8C38192E, // 007B GETMET R14 R12 K46 0x5C401400, // 007C MOVE R16 R10 0x7C380400, // 007D CALL R14 2 0x5C341C00, // 007E MOVE R13 R14 - 0x8C38192E, // 007F GETMET R14 R12 K46 + 0x8C38192F, // 007F GETMET R14 R12 K47 0x7C380200, // 0080 CALL R14 1 - 0xB83E4400, // 0081 GETNGBL R15 K34 - 0x8C3C1F23, // 0082 GETMET R15 R15 K35 - 0x5844002F, // 0083 LDCONST R17 K47 + 0xB83E4600, // 0081 GETNGBL R15 K35 + 0x8C3C1F24, // 0082 GETMET R15 R15 K36 + 0x58440030, // 0083 LDCONST R17 K48 0x544A0003, // 0084 LDINT R18 4 0x7C3C0600, // 0085 CALL R15 3 - 0xB83E4400, // 0086 GETNGBL R15 K34 - 0x8C3C1F23, // 0087 GETMET R15 R15 K35 - 0x8C441131, // 0088 GETMET R17 R8 K49 + 0xB83E4600, // 0086 GETNGBL R15 K35 + 0x8C3C1F24, // 0087 GETMET R15 R15 K36 + 0x8C441132, // 0088 GETMET R17 R8 K50 0x7C440200, // 0089 CALL R17 1 - 0x00466011, // 008A ADD R17 K48 R17 + 0x00466211, // 008A ADD R17 K49 R17 0x544A0003, // 008B LDINT R18 4 0x7C3C0600, // 008C CALL R15 3 - 0xB83E4400, // 008D GETNGBL R15 K34 - 0x8C3C1F23, // 008E GETMET R15 R15 K35 - 0x8C441731, // 008F GETMET R17 R11 K49 + 0xB83E4600, // 008D GETNGBL R15 K35 + 0x8C3C1F24, // 008E GETMET R15 R15 K36 + 0x8C441732, // 008F GETMET R17 R11 K50 0x7C440200, // 0090 CALL R17 1 - 0x00466411, // 0091 ADD R17 K50 R17 + 0x00466611, // 0091 ADD R17 K51 R17 0x544A0003, // 0092 LDINT R18 4 0x7C3C0600, // 0093 CALL R15 3 - 0xB83E4400, // 0094 GETNGBL R15 K34 - 0x8C3C1F23, // 0095 GETMET R15 R15 K35 - 0x8C441B31, // 0096 GETMET R17 R13 K49 + 0xB83E4600, // 0094 GETNGBL R15 K35 + 0x8C3C1F24, // 0095 GETMET R15 R15 K36 + 0x8C441B32, // 0096 GETMET R17 R13 K50 0x7C440200, // 0097 CALL R17 1 - 0x00466611, // 0098 ADD R17 K51 R17 + 0x00466811, // 0098 ADD R17 K52 R17 0x544A0003, // 0099 LDINT R18 4 0x7C3C0600, // 009A CALL R15 3 - 0xB83E4400, // 009B GETNGBL R15 K34 - 0x8C3C1F23, // 009C GETMET R15 R15 K35 - 0x8C441D31, // 009D GETMET R17 R14 K49 + 0xB83E4600, // 009B GETNGBL R15 K35 + 0x8C3C1F24, // 009C GETMET R15 R15 K36 + 0x8C441D32, // 009D GETMET R17 R14 K50 0x7C440200, // 009E CALL R17 1 - 0x00466811, // 009F ADD R17 K52 R17 + 0x00466A11, // 009F ADD R17 K53 R17 0x544A0003, // 00A0 LDINT R18 4 0x7C3C0600, // 00A1 CALL R15 3 - 0xB83E4400, // 00A2 GETNGBL R15 K34 - 0x8C3C1F23, // 00A3 GETMET R15 R15 K35 - 0x5844002F, // 00A4 LDCONST R17 K47 + 0xB83E4600, // 00A2 GETNGBL R15 K35 + 0x8C3C1F24, // 00A3 GETMET R15 R15 K36 + 0x58440030, // 00A4 LDCONST R17 K48 0x544A0003, // 00A5 LDINT R18 4 0x7C3C0600, // 00A6 CALL R15 3 0x1C3C160E, // 00A7 EQ R15 R11 R14 0x783E0089, // 00A8 JMPF R15 #0133 - 0x8C3C0536, // 00A9 GETMET R15 R2 K54 + 0x8C3C0537, // 00A9 GETMET R15 R2 K55 0x5446000F, // 00AA LDINT R17 16 0x7C3C0400, // 00AB CALL R15 2 - 0x90166A0F, // 00AC SETMBR R5 K53 R15 + 0x90166C0F, // 00AC SETMBR R5 K54 R15 0x603C0015, // 00AD GETGBL R15 G21 0x7C3C0000, // 00AE CALL R15 0 - 0x8C3C1F25, // 00AF GETMET R15 R15 K37 - 0x58440037, // 00B0 LDCONST R17 K55 + 0x8C3C1F26, // 00AF GETMET R15 R15 K38 + 0x58440038, // 00B0 LDCONST R17 K56 0x7C3C0400, // 00B1 CALL R15 2 - 0x88400B35, // 00B2 GETMBR R16 R5 K53 + 0x88400B36, // 00B2 GETMBR R16 R5 K54 0x003C1E10, // 00B3 ADD R15 R15 R16 0x88400716, // 00B4 GETMBR R16 R3 K22 0x8844070E, // 00B5 GETMBR R17 R3 K14 0x00402011, // 00B6 ADD R16 R16 R17 - 0x8C440527, // 00B7 GETMET R17 R2 K39 + 0x8C440528, // 00B7 GETMET R17 R2 K40 0x7C440200, // 00B8 CALL R17 1 - 0x8C442328, // 00B9 GETMET R17 R17 K40 - 0x884C0B29, // 00BA GETMBR R19 R5 K41 + 0x8C442329, // 00B9 GETMET R17 R17 K41 + 0x884C0B2A, // 00BA GETMBR R19 R5 K42 0x5C502000, // 00BB MOVE R20 R16 0x5C541E00, // 00BC MOVE R21 R15 0x545A000F, // 00BD LDINT R22 16 0x7C440A00, // 00BE CALL R17 5 - 0x8C48052C, // 00BF GETMET R18 R2 K44 + 0x8C48052D, // 00BF GETMET R18 R2 K45 0x5C502200, // 00C0 MOVE R20 R17 0x60540015, // 00C1 GETGBL R21 G21 0x7C540000, // 00C2 CALL R21 0 - 0x8C542B25, // 00C3 GETMET R21 R21 K37 - 0x585C0038, // 00C4 LDCONST R23 K56 + 0x8C542B26, // 00C3 GETMET R21 R21 K38 + 0x585C0039, // 00C4 LDCONST R23 K57 0x7C540400, // 00C5 CALL R21 2 0x60580015, // 00C6 GETGBL R22 G21 0x7C580000, // 00C7 CALL R22 0 0x585C0003, // 00C8 LDCONST R23 K3 0x5462000F, // 00C9 LDINT R24 16 0x7C480C00, // 00CA CALL R18 6 - 0x8C4C252E, // 00CB GETMET R19 R18 K46 + 0x8C4C252F, // 00CB GETMET R19 R18 K47 0x7C4C0200, // 00CC CALL R19 1 0xB8520E00, // 00CD GETNGBL R20 K7 - 0x8C502939, // 00CE GETMET R20 R20 K57 + 0x8C50293A, // 00CE GETMET R20 R20 K58 0x7C500200, // 00CF CALL R20 1 - 0x88540B35, // 00D0 GETMBR R21 R5 K53 + 0x88540B36, // 00D0 GETMBR R21 R5 K54 0x90521C15, // 00D1 SETMBR R20 K14 R21 - 0x88540B1F, // 00D2 GETMBR R21 R5 K31 - 0x90527415, // 00D3 SETMBR R20 K58 R21 - 0x90527613, // 00D4 SETMBR R20 K59 R19 - 0x8C540527, // 00D5 GETMET R21 R2 K39 + 0x88540B20, // 00D2 GETMBR R21 R5 K32 + 0x90527615, // 00D3 SETMBR R20 K59 R21 + 0x90527813, // 00D4 SETMBR R20 K60 R19 + 0x8C540528, // 00D5 GETMET R21 R2 K40 0x7C540200, // 00D6 CALL R21 1 - 0x8C542B28, // 00D7 GETMET R21 R21 K40 - 0x885C0B29, // 00D8 GETMBR R23 R5 K41 + 0x8C542B29, // 00D7 GETMET R21 R21 K41 + 0x885C0B2A, // 00D8 GETMBR R23 R5 K42 0x88600716, // 00D9 GETMBR R24 R3 K22 0x8864070E, // 00DA GETMBR R25 R3 K14 0x00603019, // 00DB ADD R24 R24 R25 0x60640015, // 00DC GETGBL R25 G21 0x7C640000, // 00DD CALL R25 0 - 0x8C643325, // 00DE GETMET R25 R25 K37 - 0x586C003C, // 00DF LDCONST R27 K60 + 0x8C643326, // 00DE GETMET R25 R25 K38 + 0x586C003D, // 00DF LDCONST R27 K61 0x7C640400, // 00E0 CALL R25 2 0x546A002F, // 00E1 LDINT R26 48 0x7C540A00, // 00E2 CALL R21 5 @@ -1802,67 +1804,67 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x5466002E, // 00EB LDINT R25 47 0x40603019, // 00EC CONNECT R24 R24 R25 0x94602A18, // 00ED GETIDX R24 R21 R24 - 0xB8664400, // 00EE GETNGBL R25 K34 - 0x8C64333D, // 00EF GETMET R25 R25 K61 + 0xB8664600, // 00EE GETNGBL R25 K35 + 0x8C64333E, // 00EF GETMET R25 R25 K62 0x7C640200, // 00F0 CALL R25 1 - 0x9464333E, // 00F1 GETIDX R25 R25 K62 - 0xB86A4400, // 00F2 GETNGBL R26 K34 - 0x8C683523, // 00F3 GETMET R26 R26 K35 - 0x5870003F, // 00F4 LDCONST R28 K63 + 0x9464333F, // 00F1 GETIDX R25 R25 K63 + 0xB86A4600, // 00F2 GETNGBL R26 K35 + 0x8C683524, // 00F3 GETMET R26 R26 K36 + 0x58700040, // 00F4 LDCONST R28 K64 0x54760003, // 00F5 LDINT R29 4 0x7C680600, // 00F6 CALL R26 3 - 0xB86A4400, // 00F7 GETNGBL R26 K34 - 0x8C683523, // 00F8 GETMET R26 R26 K35 - 0x8C702D31, // 00F9 GETMET R28 R22 K49 + 0xB86A4600, // 00F7 GETNGBL R26 K35 + 0x8C683524, // 00F8 GETMET R26 R26 K36 + 0x8C702D32, // 00F9 GETMET R28 R22 K50 0x7C700200, // 00FA CALL R28 1 - 0x0072801C, // 00FB ADD R28 K64 R28 + 0x0072821C, // 00FB ADD R28 K65 R28 0x54760003, // 00FC LDINT R29 4 0x7C680600, // 00FD CALL R26 3 - 0xB86A4400, // 00FE GETNGBL R26 K34 - 0x8C683523, // 00FF GETMET R26 R26 K35 - 0x8C702F31, // 0100 GETMET R28 R23 K49 + 0xB86A4600, // 00FE GETNGBL R26 K35 + 0x8C683524, // 00FF GETMET R26 R26 K36 + 0x8C702F32, // 0100 GETMET R28 R23 K50 0x7C700200, // 0101 CALL R28 1 - 0x0072821C, // 0102 ADD R28 K65 R28 + 0x0072841C, // 0102 ADD R28 K66 R28 0x54760003, // 0103 LDINT R29 4 0x7C680600, // 0104 CALL R26 3 - 0xB86A4400, // 0105 GETNGBL R26 K34 - 0x8C683523, // 0106 GETMET R26 R26 K35 - 0x8C703131, // 0107 GETMET R28 R24 K49 + 0xB86A4600, // 0105 GETNGBL R26 K35 + 0x8C683524, // 0106 GETMET R26 R26 K36 + 0x8C703132, // 0107 GETMET R28 R24 K50 0x7C700200, // 0108 CALL R28 1 - 0x0072841C, // 0109 ADD R28 K66 R28 + 0x0072861C, // 0109 ADD R28 K67 R28 0x54760003, // 010A LDINT R29 4 0x7C680600, // 010B CALL R26 3 - 0xB86A4400, // 010C GETNGBL R26 K34 - 0x8C683523, // 010D GETMET R26 R26 K35 - 0x5870003F, // 010E LDCONST R28 K63 + 0xB86A4600, // 010C GETNGBL R26 K35 + 0x8C683524, // 010D GETMET R26 R26 K36 + 0x58700040, // 010E LDCONST R28 K64 0x54760003, // 010F LDINT R29 4 0x7C680600, // 0110 CALL R26 3 - 0x8C682943, // 0111 GETMET R26 R20 K67 + 0x8C682944, // 0111 GETMET R26 R20 K68 0x7C680200, // 0112 CALL R26 1 0x4C6C0000, // 0113 LDNIL R27 - 0x9016881B, // 0114 SETMBR R5 K68 R27 - 0xB86E4400, // 0115 GETNGBL R27 K34 - 0x8C6C3723, // 0116 GETMET R27 R27 K35 - 0x8C743531, // 0117 GETMET R29 R26 K49 + 0x90168A1B, // 0114 SETMBR R5 K69 R27 + 0xB86E4600, // 0115 GETNGBL R27 K35 + 0x8C6C3724, // 0116 GETMET R27 R27 K36 + 0x8C743532, // 0117 GETMET R29 R26 K50 0x7C740200, // 0118 CALL R29 1 - 0x00768A1D, // 0119 ADD R29 K69 R29 + 0x00768C1D, // 0119 ADD R29 K70 R29 0x547A0003, // 011A LDINT R30 4 0x7C6C0600, // 011B CALL R27 3 - 0x8C6C0346, // 011C GETMET R27 R1 K70 + 0x8C6C0347, // 011C GETMET R27 R1 K71 0x54760032, // 011D LDINT R29 51 0x50780200, // 011E LDBOOL R30 1 0 0x7C6C0600, // 011F CALL R27 3 - 0x8C703743, // 0120 GETMET R28 R27 K67 + 0x8C703744, // 0120 GETMET R28 R27 K68 0x5C783400, // 0121 MOVE R30 R26 0x7C700400, // 0122 CALL R28 2 - 0x88740147, // 0123 GETMBR R29 R0 K71 - 0x8C743B48, // 0124 GETMET R29 R29 K72 + 0x88740148, // 0123 GETMBR R29 R0 K72 + 0x8C743B49, // 0124 GETMET R29 R29 K73 0x5C7C3800, // 0125 MOVE R31 R28 - 0x88800349, // 0126 GETMBR R32 R1 K73 - 0x8884034A, // 0127 GETMBR R33 R1 K74 - 0x8888374B, // 0128 GETMBR R34 R27 K75 + 0x8880034A, // 0126 GETMBR R32 R1 K74 + 0x8884034B, // 0127 GETMBR R33 R1 K75 + 0x8888374C, // 0128 GETMBR R34 R27 K76 0x7C740A00, // 0129 CALL R29 5 - 0x8C740B4C, // 012A GETMET R29 R5 K76 + 0x8C740B4D, // 012A GETMET R29 R5 K77 0x5C7C2C00, // 012B MOVE R31 R22 0x5C802E00, // 012C MOVE R32 R23 0x5C843000, // 012D MOVE R33 R24 @@ -1881,177 +1883,177 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x4C1C0000, // 013A LDNIL R7 0x1C180C07, // 013B EQ R6 R6 R7 0x781A00F0, // 013C JMPF R6 #022E - 0x8C180536, // 013D GETMET R6 R2 K54 + 0x8C180537, // 013D GETMET R6 R2 K55 0x5422000F, // 013E LDINT R8 16 0x7C180400, // 013F CALL R6 2 - 0x90166A06, // 0140 SETMBR R5 K53 R6 - 0x8C180536, // 0141 GETMET R6 R2 K54 + 0x90166C06, // 0140 SETMBR R5 K54 R6 + 0x8C180537, // 0141 GETMET R6 R2 K55 0x5422001F, // 0142 LDINT R8 32 0x7C180400, // 0143 CALL R6 2 - 0x90029A06, // 0144 SETMBR R0 K77 R6 - 0x8C18054F, // 0145 GETMET R6 R2 K79 + 0x90029C06, // 0144 SETMBR R0 K78 R6 + 0x8C180550, // 0145 GETMET R6 R2 K80 0x7C180200, // 0146 CALL R6 1 - 0x8C180D50, // 0147 GETMET R6 R6 K80 - 0x8820014D, // 0148 GETMBR R8 R0 K77 + 0x8C180D51, // 0147 GETMET R6 R6 K81 + 0x8820014E, // 0148 GETMBR R8 R0 K78 0x7C180400, // 0149 CALL R6 2 - 0x90029C06, // 014A SETMBR R0 K78 R6 - 0x8C180536, // 014B GETMET R6 R2 K54 + 0x90029E06, // 014A SETMBR R0 K79 R6 + 0x8C180537, // 014B GETMET R6 R2 K55 0x5422001F, // 014C LDINT R8 32 0x7C180400, // 014D CALL R6 2 - 0x8C1C054F, // 014E GETMET R7 R2 K79 + 0x8C1C0550, // 014E GETMET R7 R2 K80 0x7C1C0200, // 014F CALL R7 1 - 0x8C1C0F51, // 0150 GETMET R7 R7 K81 - 0x8824014D, // 0151 GETMBR R9 R0 K77 + 0x8C1C0F52, // 0150 GETMET R7 R7 K82 + 0x8824014E, // 0151 GETMBR R9 R0 K78 0x8828070D, // 0152 GETMBR R10 R3 K13 0x7C1C0600, // 0153 CALL R7 3 - 0x90165207, // 0154 SETMBR R5 K41 R7 + 0x90165407, // 0154 SETMBR R5 K42 R7 0xB81E0E00, // 0155 GETNGBL R7 K7 - 0x881C0F52, // 0156 GETMBR R7 R7 K82 - 0x8C1C0F53, // 0157 GETMET R7 R7 K83 + 0x881C0F53, // 0156 GETMBR R7 R7 K83 + 0x8C1C0F54, // 0157 GETMET R7 R7 K84 0x7C1C0200, // 0158 CALL R7 1 - 0x8C200F54, // 0159 GETMET R8 R7 K84 - 0x58280055, // 015A LDCONST R10 K85 + 0x8C200F55, // 0159 GETMET R8 R7 K85 + 0x58280056, // 015A LDCONST R10 K86 0xB82E0E00, // 015B GETNGBL R11 K7 - 0x882C1752, // 015C GETMBR R11 R11 K82 - 0x882C1756, // 015D GETMBR R11 R11 K86 - 0x8C300B57, // 015E GETMET R12 R5 K87 + 0x882C1753, // 015C GETMBR R11 R11 K83 + 0x882C1757, // 015D GETMBR R11 R11 K87 + 0x8C300B58, // 015E GETMET R12 R5 K88 0x7C300200, // 015F CALL R12 1 0x7C200800, // 0160 CALL R8 4 - 0x8C200F54, // 0161 GETMET R8 R7 K84 - 0x58280058, // 0162 LDCONST R10 K88 + 0x8C200F55, // 0161 GETMET R8 R7 K85 + 0x58280059, // 0162 LDCONST R10 K89 0xB82E0E00, // 0163 GETNGBL R11 K7 - 0x882C1752, // 0164 GETMBR R11 R11 K82 - 0x882C1756, // 0165 GETMBR R11 R11 K86 - 0x8C300B59, // 0166 GETMET R12 R5 K89 + 0x882C1753, // 0164 GETMBR R11 R11 K83 + 0x882C1757, // 0165 GETMBR R11 R11 K87 + 0x8C300B5A, // 0166 GETMET R12 R5 K90 0x7C300200, // 0167 CALL R12 1 0x7C200800, // 0168 CALL R8 4 - 0x8C200F54, // 0169 GETMET R8 R7 K84 - 0x5828005A, // 016A LDCONST R10 K90 + 0x8C200F55, // 0169 GETMET R8 R7 K85 + 0x5828005B, // 016A LDCONST R10 K91 0xB82E0E00, // 016B GETNGBL R11 K7 - 0x882C1752, // 016C GETMBR R11 R11 K82 - 0x882C1756, // 016D GETMBR R11 R11 K86 - 0x8830014E, // 016E GETMBR R12 R0 K78 + 0x882C1753, // 016C GETMBR R11 R11 K83 + 0x882C1757, // 016D GETMBR R11 R11 K87 + 0x8830014F, // 016E GETMBR R12 R0 K79 0x7C200800, // 016F CALL R8 4 - 0x8C200F54, // 0170 GETMET R8 R7 K84 + 0x8C200F55, // 0170 GETMET R8 R7 K85 0x542A0003, // 0171 LDINT R10 4 0xB82E0E00, // 0172 GETNGBL R11 K7 - 0x882C1752, // 0173 GETMBR R11 R11 K82 - 0x882C1756, // 0174 GETMBR R11 R11 K86 + 0x882C1753, // 0173 GETMBR R11 R11 K83 + 0x882C1757, // 0174 GETMBR R11 R11 K87 0x8830070D, // 0175 GETMBR R12 R3 K13 0x7C200800, // 0176 CALL R8 4 - 0x8C20054F, // 0177 GETMET R8 R2 K79 + 0x8C200550, // 0177 GETMET R8 R2 K80 0x7C200200, // 0178 CALL R8 1 - 0x8C20115B, // 0179 GETMET R8 R8 K91 - 0x8C280B5C, // 017A GETMET R10 R5 K92 + 0x8C20115C, // 0179 GETMET R8 R8 K92 + 0x8C280B5D, // 017A GETMET R10 R5 K93 0x7C280200, // 017B CALL R10 1 - 0x8C2C0F43, // 017C GETMET R11 R7 K67 + 0x8C2C0F44, // 017C GETMET R11 R7 K68 0x7C2C0200, // 017D CALL R11 1 0x7C200600, // 017E CALL R8 3 0xB8260E00, // 017F GETNGBL R9 K7 - 0x88241352, // 0180 GETMBR R9 R9 K82 - 0x8C241353, // 0181 GETMET R9 R9 K83 + 0x88241353, // 0180 GETMBR R9 R9 K83 + 0x8C241354, // 0181 GETMET R9 R9 K84 0x7C240200, // 0182 CALL R9 1 - 0x8C281354, // 0183 GETMET R10 R9 K84 - 0x58300055, // 0184 LDCONST R12 K85 + 0x8C281355, // 0183 GETMET R10 R9 K85 + 0x58300056, // 0184 LDCONST R12 K86 0xB8360E00, // 0185 GETNGBL R13 K7 - 0x88341B52, // 0186 GETMBR R13 R13 K82 - 0x88341B56, // 0187 GETMBR R13 R13 K86 - 0x8C380B57, // 0188 GETMET R14 R5 K87 + 0x88341B53, // 0186 GETMBR R13 R13 K83 + 0x88341B57, // 0187 GETMBR R13 R13 K87 + 0x8C380B58, // 0188 GETMET R14 R5 K88 0x7C380200, // 0189 CALL R14 1 0x7C280800, // 018A CALL R10 4 - 0x8C281354, // 018B GETMET R10 R9 K84 - 0x58300058, // 018C LDCONST R12 K88 + 0x8C281355, // 018B GETMET R10 R9 K85 + 0x58300059, // 018C LDCONST R12 K89 0xB8360E00, // 018D GETNGBL R13 K7 - 0x88341B52, // 018E GETMBR R13 R13 K82 - 0x88341B56, // 018F GETMBR R13 R13 K86 - 0x8C380B59, // 0190 GETMET R14 R5 K89 + 0x88341B53, // 018E GETMBR R13 R13 K83 + 0x88341B57, // 018F GETMBR R13 R13 K87 + 0x8C380B5A, // 0190 GETMET R14 R5 K90 0x7C380200, // 0191 CALL R14 1 0x7C280800, // 0192 CALL R10 4 - 0x8C281354, // 0193 GETMET R10 R9 K84 - 0x5830005A, // 0194 LDCONST R12 K90 + 0x8C281355, // 0193 GETMET R10 R9 K85 + 0x5830005B, // 0194 LDCONST R12 K91 0xB8360E00, // 0195 GETNGBL R13 K7 - 0x88341B52, // 0196 GETMBR R13 R13 K82 - 0x88341B56, // 0197 GETMBR R13 R13 K86 + 0x88341B53, // 0196 GETMBR R13 R13 K83 + 0x88341B57, // 0197 GETMBR R13 R13 K87 0x5C381000, // 0198 MOVE R14 R8 0x7C280800, // 0199 CALL R10 4 - 0x8C281354, // 019A GETMET R10 R9 K84 + 0x8C281355, // 019A GETMET R10 R9 K85 0x54320003, // 019B LDINT R12 4 0xB8360E00, // 019C GETNGBL R13 K7 - 0x88341B52, // 019D GETMBR R13 R13 K82 - 0x88341B56, // 019E GETMBR R13 R13 K86 - 0x88380B35, // 019F GETMBR R14 R5 K53 + 0x88341B53, // 019D GETMBR R13 R13 K83 + 0x88341B57, // 019E GETMBR R13 R13 K87 + 0x88380B36, // 019F GETMBR R14 R5 K54 0x7C280800, // 01A0 CALL R10 4 - 0xB82A4400, // 01A1 GETNGBL R10 K34 - 0x8C281523, // 01A2 GETMET R10 R10 K35 - 0x5830002F, // 01A3 LDCONST R12 K47 + 0xB82A4600, // 01A1 GETNGBL R10 K35 + 0x8C281524, // 01A2 GETMET R10 R10 K36 + 0x58300030, // 01A3 LDCONST R12 K48 0x54360003, // 01A4 LDINT R13 4 0x7C280600, // 01A5 CALL R10 3 - 0x8828075D, // 01A6 GETMBR R10 R3 K93 - 0x9016880A, // 01A7 SETMBR R5 K68 R10 - 0xB82A4400, // 01A8 GETNGBL R10 K34 - 0x8C281523, // 01A9 GETMET R10 R10 K35 - 0x88300B44, // 01AA GETMBR R12 R5 K68 - 0x8C301931, // 01AB GETMET R12 R12 K49 + 0x8828075E, // 01A6 GETMBR R10 R3 K94 + 0x90168A0A, // 01A7 SETMBR R5 K69 R10 + 0xB82A4600, // 01A8 GETNGBL R10 K35 + 0x8C281524, // 01A9 GETMET R10 R10 K36 + 0x88300B45, // 01AA GETMBR R12 R5 K69 + 0x8C301932, // 01AB GETMET R12 R12 K50 0x7C300200, // 01AC CALL R12 1 - 0x0032BC0C, // 01AD ADD R12 K94 R12 + 0x0032BE0C, // 01AD ADD R12 K95 R12 0x54360003, // 01AE LDINT R13 4 0x7C280600, // 01AF CALL R10 3 - 0x8C28055F, // 01B0 GETMET R10 R2 K95 + 0x8C280560, // 01B0 GETMET R10 R2 K96 0x7C280200, // 01B1 CALL R10 1 - 0x8C281560, // 01B2 GETMET R10 R10 K96 - 0x88300B44, // 01B3 GETMBR R12 R5 K68 + 0x8C281561, // 01B2 GETMET R10 R10 K97 + 0x88300B45, // 01B3 GETMBR R12 R5 K69 0x7C280400, // 01B4 CALL R10 2 - 0x8C281561, // 01B5 GETMET R10 R10 K97 + 0x8C281562, // 01B5 GETMET R10 R10 K98 0x7C280200, // 01B6 CALL R10 1 0x602C0015, // 01B7 GETGBL R11 G21 0x7C2C0000, // 01B8 CALL R11 0 - 0x8C2C1725, // 01B9 GETMET R11 R11 K37 - 0x88340162, // 01BA GETMBR R13 R0 K98 + 0x8C2C1726, // 01B9 GETMET R11 R11 K38 + 0x88340163, // 01BA GETMBR R13 R0 K99 0x7C2C0400, // 01BB CALL R11 2 - 0x8C300B63, // 01BC GETMET R12 R5 K99 + 0x8C300B64, // 01BC GETMET R12 R5 K100 0x7C300200, // 01BD CALL R12 1 0x00301806, // 01BE ADD R12 R12 R6 - 0x8834014E, // 01BF GETMBR R13 R0 K78 + 0x8834014F, // 01BF GETMBR R13 R0 K79 0x0030180D, // 01C0 ADD R12 R12 R13 0x0030180A, // 01C1 ADD R12 R12 R10 - 0x8C340527, // 01C2 GETMET R13 R2 K39 + 0x8C340528, // 01C2 GETMET R13 R2 K40 0x7C340200, // 01C3 CALL R13 1 - 0x8C341B28, // 01C4 GETMET R13 R13 K40 - 0x883C0B29, // 01C5 GETMBR R15 R5 K41 + 0x8C341B29, // 01C4 GETMET R13 R13 K41 + 0x883C0B2A, // 01C5 GETMBR R15 R5 K42 0x5C401800, // 01C6 MOVE R16 R12 0x5C441600, // 01C7 MOVE R17 R11 0x544A000F, // 01C8 LDINT R18 16 0x7C340A00, // 01C9 CALL R13 5 - 0xB83A4400, // 01CA GETNGBL R14 K34 - 0x8C381D23, // 01CB GETMET R14 R14 K35 - 0x88400B29, // 01CC GETMBR R16 R5 K41 - 0x8C402131, // 01CD GETMET R16 R16 K49 + 0xB83A4600, // 01CA GETNGBL R14 K35 + 0x8C381D24, // 01CB GETMET R14 R14 K36 + 0x88400B2A, // 01CC GETMBR R16 R5 K42 + 0x8C402132, // 01CD GETMET R16 R16 K50 0x7C400200, // 01CE CALL R16 1 - 0x0042C810, // 01CF ADD R16 K100 R16 + 0x0042CA10, // 01CF ADD R16 K101 R16 0x54460003, // 01D0 LDINT R17 4 0x7C380600, // 01D1 CALL R14 3 - 0xB83A4400, // 01D2 GETNGBL R14 K34 - 0x8C381D23, // 01D3 GETMET R14 R14 K35 - 0x8C401931, // 01D4 GETMET R16 R12 K49 + 0xB83A4600, // 01D2 GETNGBL R14 K35 + 0x8C381D24, // 01D3 GETMET R14 R14 K36 + 0x8C401932, // 01D4 GETMET R16 R12 K50 0x7C400200, // 01D5 CALL R16 1 - 0x0042CA10, // 01D6 ADD R16 K101 R16 + 0x0042CC10, // 01D6 ADD R16 K102 R16 0x54460003, // 01D7 LDINT R17 4 0x7C380600, // 01D8 CALL R14 3 - 0xB83A4400, // 01D9 GETNGBL R14 K34 - 0x8C381D23, // 01DA GETMET R14 R14 K35 - 0x8C401B31, // 01DB GETMET R16 R13 K49 + 0xB83A4600, // 01D9 GETNGBL R14 K35 + 0x8C381D24, // 01DA GETMET R14 R14 K36 + 0x8C401B32, // 01DB GETMET R16 R13 K50 0x7C400200, // 01DC CALL R16 1 - 0x0042CC10, // 01DD ADD R16 K102 R16 + 0x0042CE10, // 01DD ADD R16 K103 R16 0x54460003, // 01DE LDINT R17 4 0x7C380600, // 01DF CALL R14 3 - 0x8C381343, // 01E0 GETMET R14 R9 K67 + 0x8C381344, // 01E0 GETMET R14 R9 K68 0x7C380200, // 01E1 CALL R14 1 - 0x8C3C052C, // 01E2 GETMET R15 R2 K44 + 0x8C3C052D, // 01E2 GETMET R15 R2 K45 0x5C441A00, // 01E3 MOVE R17 R13 0x60480015, // 01E4 GETGBL R18 G21 0x7C480000, // 01E5 CALL R18 0 - 0x8C482525, // 01E6 GETMET R18 R18 K37 - 0x88500167, // 01E7 GETMBR R20 R0 K103 + 0x8C482526, // 01E6 GETMET R18 R18 K38 + 0x88500168, // 01E7 GETMBR R20 R0 K104 0x7C480400, // 01E8 CALL R18 2 0x604C0015, // 01E9 GETGBL R19 G21 0x7C4C0000, // 01EA CALL R19 0 @@ -2060,65 +2062,65 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x7C500200, // 01ED CALL R20 1 0x5456000F, // 01EE LDINT R21 16 0x7C3C0C00, // 01EF CALL R15 6 - 0x8C401F68, // 01F0 GETMET R16 R15 K104 + 0x8C401F69, // 01F0 GETMET R16 R15 K105 0x5C481C00, // 01F1 MOVE R18 R14 0x7C400400, // 01F2 CALL R16 2 - 0x8C441F2E, // 01F3 GETMET R17 R15 K46 + 0x8C441F2F, // 01F3 GETMET R17 R15 K47 0x7C440200, // 01F4 CALL R17 1 0x00402011, // 01F5 ADD R16 R16 R17 - 0xB8464400, // 01F6 GETNGBL R17 K34 - 0x8C442323, // 01F7 GETMET R17 R17 K35 - 0x8C4C2131, // 01F8 GETMET R19 R16 K49 + 0xB8464600, // 01F6 GETNGBL R17 K35 + 0x8C442324, // 01F7 GETMET R17 R17 K36 + 0x8C4C2132, // 01F8 GETMET R19 R16 K50 0x7C4C0200, // 01F9 CALL R19 1 - 0x004ED213, // 01FA ADD R19 K105 R19 + 0x004ED413, // 01FA ADD R19 K106 R19 0x54520003, // 01FB LDINT R20 4 0x7C440600, // 01FC CALL R17 3 - 0xB8464400, // 01FD GETNGBL R17 K34 - 0x8C442323, // 01FE GETMET R17 R17 K35 - 0x584C002F, // 01FF LDCONST R19 K47 + 0xB8464600, // 01FD GETNGBL R17 K35 + 0x8C442324, // 01FE GETMET R17 R17 K36 + 0x584C0030, // 01FF LDCONST R19 K48 0x54520003, // 0200 LDINT R20 4 0x7C440600, // 0201 CALL R17 3 0xB8460E00, // 0202 GETNGBL R17 K7 - 0x8C44236A, // 0203 GETMET R17 R17 K106 + 0x8C44236B, // 0203 GETMET R17 R17 K107 0x7C440200, // 0204 CALL R17 1 - 0x9046D606, // 0205 SETMBR R17 K107 R6 - 0x88480121, // 0206 GETMBR R18 R0 K33 - 0x9046D812, // 0207 SETMBR R17 K108 R18 - 0x8848014E, // 0208 GETMBR R18 R0 K78 - 0x9046DA12, // 0209 SETMBR R17 K109 R18 - 0x9046DC10, // 020A SETMBR R17 K110 R16 - 0xB84A4400, // 020B GETNGBL R18 K34 - 0x8C482523, // 020C GETMET R18 R18 K35 + 0x9046D806, // 0205 SETMBR R17 K108 R6 + 0x88480122, // 0206 GETMBR R18 R0 K34 + 0x9046DA12, // 0207 SETMBR R17 K109 R18 + 0x8848014F, // 0208 GETMBR R18 R0 K79 + 0x9046DC12, // 0209 SETMBR R17 K110 R18 + 0x9046DE10, // 020A SETMBR R17 K111 R16 + 0xB84A4600, // 020B GETNGBL R18 K35 + 0x8C482524, // 020C GETMET R18 R18 K36 0xB8520E00, // 020D GETNGBL R20 K7 - 0x8C502970, // 020E GETMET R20 R20 K112 + 0x8C502971, // 020E GETMET R20 R20 K113 0x5C582200, // 020F MOVE R22 R17 0x7C500400, // 0210 CALL R20 2 - 0x0052DE14, // 0211 ADD R20 K111 R20 + 0x0052E014, // 0211 ADD R20 K112 R20 0x54560003, // 0212 LDINT R21 4 0x7C480600, // 0213 CALL R18 3 - 0x8C482343, // 0214 GETMET R18 R17 K67 + 0x8C482344, // 0214 GETMET R18 R17 K68 0x7C480200, // 0215 CALL R18 1 - 0x9016E212, // 0216 SETMBR R5 K113 R18 - 0xB84E4400, // 0217 GETNGBL R19 K34 - 0x8C4C2723, // 0218 GETMET R19 R19 K35 - 0x8C542531, // 0219 GETMET R21 R18 K49 + 0x9016E412, // 0216 SETMBR R5 K114 R18 + 0xB84E4600, // 0217 GETNGBL R19 K35 + 0x8C4C2724, // 0218 GETMET R19 R19 K36 + 0x8C542532, // 0219 GETMET R21 R18 K50 0x7C540200, // 021A CALL R21 1 - 0x0056E415, // 021B ADD R21 K114 R21 + 0x0056E615, // 021B ADD R21 K115 R21 0x545A0003, // 021C LDINT R22 4 0x7C4C0600, // 021D CALL R19 3 - 0x8C4C0346, // 021E GETMET R19 R1 K70 + 0x8C4C0347, // 021E GETMET R19 R1 K71 0x54560030, // 021F LDINT R21 49 0x50580200, // 0220 LDBOOL R22 1 0 0x7C4C0600, // 0221 CALL R19 3 - 0x8C502743, // 0222 GETMET R20 R19 K67 + 0x8C502744, // 0222 GETMET R20 R19 K68 0x5C582400, // 0223 MOVE R22 R18 0x7C500400, // 0224 CALL R20 2 - 0x88540147, // 0225 GETMBR R21 R0 K71 - 0x8C542B48, // 0226 GETMET R21 R21 K72 + 0x88540148, // 0225 GETMBR R21 R0 K72 + 0x8C542B49, // 0226 GETMET R21 R21 K73 0x5C5C2800, // 0227 MOVE R23 R20 - 0x88600349, // 0228 GETMBR R24 R1 K73 - 0x8864034A, // 0229 GETMBR R25 R1 K74 - 0x8868274B, // 022A GETMBR R26 R19 K75 + 0x8860034A, // 0228 GETMBR R24 R1 K74 + 0x8864034B, // 0229 GETMBR R25 R1 K75 + 0x8868274C, // 022A GETMBR R26 R19 K76 0x7C540A00, // 022B CALL R21 5 0x50540200, // 022C LDBOOL R21 1 0 0x80042A00, // 022D RET 1 R21 diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h index 1fc3bfed2..3d388913c 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h @@ -7,166 +7,366 @@ extern const bclass be_class_Matter_Device; /******************************************************************** -** Solidified function: compute_pbkdf +** Solidified function: compute_manual_pairing_code ********************************************************************/ -be_local_closure(Matter_Device_compute_pbkdf, /* name */ +be_local_closure(Matter_Device_compute_manual_pairing_code, /* name */ be_nested_proto( - 17, /* nstack */ - 2, /* argc */ + 11, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[30]) { /* constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(root_discriminator), + /* K2 */ be_nested_str_weak(root_passcode), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(_X251i_X2505i_X2504i), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(Verhoeff), + /* K7 */ be_nested_str_weak(checksum), + }), + be_str_weak(compute_manual_pairing_code), + &be_const_str_solidified, + ( &(const binstruction[31]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x540E0FFE, // 0002 LDINT R3 4095 + 0x2C080403, // 0003 AND R2 R2 R3 + 0x540E0009, // 0004 LDINT R3 10 + 0x3C080403, // 0005 SHR R2 R2 R3 + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x541202FF, // 0007 LDINT R4 768 + 0x2C0C0604, // 0008 AND R3 R3 R4 + 0x54120005, // 0009 LDINT R4 6 + 0x380C0604, // 000A SHL R3 R3 R4 + 0x88100102, // 000B GETMBR R4 R0 K2 + 0x54163FFE, // 000C LDINT R5 16383 + 0x2C100805, // 000D AND R4 R4 R5 + 0x300C0604, // 000E OR R3 R3 R4 + 0x88100102, // 000F GETMBR R4 R0 K2 + 0x5416000D, // 0010 LDINT R5 14 + 0x3C100805, // 0011 SHR R4 R4 R5 + 0x8C140303, // 0012 GETMET R5 R1 K3 + 0x581C0004, // 0013 LDCONST R7 K4 + 0x5C200400, // 0014 MOVE R8 R2 + 0x5C240600, // 0015 MOVE R9 R3 + 0x5C280800, // 0016 MOVE R10 R4 + 0x7C140A00, // 0017 CALL R5 5 + 0xB81A0A00, // 0018 GETNGBL R6 K5 + 0x88180D06, // 0019 GETMBR R6 R6 K6 + 0x8C180D07, // 001A GETMET R6 R6 K7 + 0x5C200A00, // 001B MOVE R8 R5 + 0x7C180400, // 001C CALL R6 2 + 0x00140A06, // 001D ADD R5 R5 R6 + 0x80040A00, // 001E RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: stop_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(mdns_remove_PASE), + /* K2 */ be_nested_str_weak(commissioning_iterations), + /* K3 */ be_nested_str_weak(commissioning_discriminator), + /* K4 */ be_nested_str_weak(commissioning_salt), + /* K5 */ be_nested_str_weak(commissioning_w0), + /* K6 */ be_nested_str_weak(commissioning_L), + /* K7 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(stop_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x4C040000, // 0000 LDNIL R1 + 0x90020001, // 0001 SETMBR R0 K0 R1 + 0x8C040101, // 0002 GETMET R1 R0 K1 + 0x7C040200, // 0003 CALL R1 1 + 0x4C040000, // 0004 LDNIL R1 + 0x90020401, // 0005 SETMBR R0 K2 R1 + 0x4C040000, // 0006 LDNIL R1 + 0x90020601, // 0007 SETMBR R0 K3 R1 + 0x4C040000, // 0008 LDNIL R1 + 0x90020801, // 0009 SETMBR R0 K4 R1 + 0x4C040000, // 000A LDNIL R1 + 0x90020A01, // 000B SETMBR R0 K5 R1 + 0x4C040000, // 000C LDNIL R1 + 0x90020C01, // 000D SETMBR R0 K6 R1 + 0x4C040000, // 000E LDNIL R1 + 0x90020E01, // 000F SETMBR R0 K7 R1 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Device_init, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(start_udp), + /* K1 */ be_nested_str_weak(UDP_PORT), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(remove_rule), + /* K4 */ be_nested_str_weak(Wifi_X23Connected), + /* K5 */ be_nested_str_weak(matter_device_udp), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080000, // 0002 GETUPV R2 U0 + 0x88080501, // 0003 GETMBR R2 R2 K1 + 0x7C000400, // 0004 CALL R0 2 + 0xB8020400, // 0005 GETNGBL R0 K2 + 0x8C000103, // 0006 GETMET R0 R0 K3 + 0x58080004, // 0007 LDCONST R2 K4 + 0x580C0005, // 0008 LDCONST R3 K5 + 0x7C000600, // 0009 CALL R0 3 + 0x80000000, // 000A RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(start_udp), + /* K1 */ be_nested_str_weak(UDP_PORT), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(remove_rule), + /* K4 */ be_nested_str_weak(Eth_X23Connected), + /* K5 */ be_nested_str_weak(matter_device_udp), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080000, // 0002 GETUPV R2 U0 + 0x88080501, // 0003 GETMBR R2 R2 K1 + 0x7C000400, // 0004 CALL R0 2 + 0xB8020400, // 0005 GETNGBL R0 K2 + 0x8C000103, // 0006 GETMET R0 R0 K3 + 0x58080004, // 0007 LDCONST R2 K4 + 0x580C0005, // 0008 LDCONST R3 K5 + 0x7C000600, // 0009 CALL R0 3 + 0x80000000, // 000A RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[44]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(salt), - /* K3 */ be_nested_str_weak(random), - /* K4 */ be_nested_str_weak(add), - /* K5 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), - /* K6 */ be_nested_str_weak(derive), - /* K7 */ be_nested_str_weak(iterations), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(w0), - /* K10 */ be_nested_str_weak(EC_P256), - /* K11 */ be_nested_str_weak(mod), - /* K12 */ be_nested_str_weak(w1), - /* K13 */ be_nested_str_weak(L), - /* K14 */ be_nested_str_weak(public_key), - /* K15 */ be_nested_str_weak(tasmota), - /* K16 */ be_nested_str_weak(log), - /* K17 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), - /* K18 */ be_nested_str_weak(MTR_X3A_X20salt_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(get_option), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(MATTER_OPTION), + /* K6 */ be_nested_str_weak(UI), + /* K7 */ be_nested_str_weak(plugins), + /* K8 */ be_nested_str_weak(vendorid), + /* K9 */ be_nested_str_weak(VENDOR_ID), + /* K10 */ be_nested_str_weak(productid), + /* K11 */ be_nested_str_weak(PRODUCT_ID), + /* K12 */ be_nested_str_weak(root_iterations), + /* K13 */ be_nested_str_weak(PBKDF_ITERATIONS), + /* K14 */ be_nested_str_weak(root_salt), + /* K15 */ be_nested_str_weak(random), + /* K16 */ be_nested_str_weak(ipv4only), + /* K17 */ be_nested_str_weak(load_param), + /* K18 */ be_nested_str_weak(commissioning_instance_wifi), /* K19 */ be_nested_str_weak(tohex), - /* K20 */ be_nested_str_weak(MTR_X3A_X20passcode_hex_X20_X20_X3D_X20), - /* K21 */ be_nested_str_weak(MTR_X3A_X20w0_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K22 */ be_nested_str_weak(MTR_X3A_X20w1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K23 */ be_nested_str_weak(MTR_X3A_X20L_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K24 */ be_nested_str_weak(compute_manual_pairing_code), - /* K25 */ be_nested_str_weak(format), - /* K26 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), - /* K27 */ be_const_int(3), - /* K28 */ be_const_int(2147483647), - /* K29 */ be_const_int(2), + /* K20 */ be_nested_str_weak(commissioning_instance_eth), + /* K21 */ be_nested_str_weak(sessions), + /* K22 */ be_nested_str_weak(Session_Store), + /* K23 */ be_nested_str_weak(load_fabrics), + /* K24 */ be_nested_str_weak(message_handler), + /* K25 */ be_nested_str_weak(MessageHandler), + /* K26 */ be_nested_str_weak(ui), + /* K27 */ be_nested_str_weak(push), + /* K28 */ be_nested_str_weak(Plugin_Root), + /* K29 */ be_const_int(0), + /* K30 */ be_nested_str_weak(Plugin_OnOff), + /* K31 */ be_const_int(1), + /* K32 */ be_nested_str_weak(start_mdns_announce_hostnames), + /* K33 */ be_nested_str_weak(wifi), + /* K34 */ be_nested_str_weak(up), + /* K35 */ be_nested_str_weak(start_udp), + /* K36 */ be_nested_str_weak(UDP_PORT), + /* K37 */ be_nested_str_weak(add_rule), + /* K38 */ be_nested_str_weak(Wifi_X23Connected), + /* K39 */ be_nested_str_weak(matter_device_udp), + /* K40 */ be_nested_str_weak(eth), + /* K41 */ be_nested_str_weak(Eth_X23Connected), + /* K42 */ be_nested_str_weak(init_basic_commissioning), + /* K43 */ be_nested_str_weak(add_driver), }), - be_str_weak(compute_pbkdf), + be_str_weak(init), &be_const_str_solidified, - ( &(const binstruction[113]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100503, // 0002 GETMET R4 R2 K3 - 0x541A000F, // 0003 LDINT R6 16 - 0x7C100400, // 0004 CALL R4 2 - 0x90020404, // 0005 SETMBR R0 K2 R4 - 0x60100015, // 0006 GETGBL R4 G21 - 0x7C100000, // 0007 CALL R4 0 - 0x8C100904, // 0008 GETMET R4 R4 K4 - 0x5C180200, // 0009 MOVE R6 R1 - 0x541E0003, // 000A LDINT R7 4 - 0x7C100600, // 000B CALL R4 3 - 0x8C140505, // 000C GETMET R5 R2 K5 - 0x7C140200, // 000D CALL R5 1 - 0x8C140B06, // 000E GETMET R5 R5 K6 - 0x5C1C0800, // 000F MOVE R7 R4 - 0x88200102, // 0010 GETMBR R8 R0 K2 - 0x88240107, // 0011 GETMBR R9 R0 K7 - 0x542A004F, // 0012 LDINT R10 80 - 0x7C140A00, // 0013 CALL R5 5 - 0x541A0026, // 0014 LDINT R6 39 - 0x401A1006, // 0015 CONNECT R6 K8 R6 - 0x94180A06, // 0016 GETIDX R6 R5 R6 - 0x541E0027, // 0017 LDINT R7 40 - 0x5422004E, // 0018 LDINT R8 79 - 0x401C0E08, // 0019 CONNECT R7 R7 R8 - 0x941C0A07, // 001A GETIDX R7 R5 R7 - 0x8C20050A, // 001B GETMET R8 R2 K10 - 0x7C200200, // 001C CALL R8 1 - 0x8C20110B, // 001D GETMET R8 R8 K11 - 0x5C280C00, // 001E MOVE R10 R6 - 0x7C200400, // 001F CALL R8 2 - 0x90021208, // 0020 SETMBR R0 K9 R8 - 0x8C20050A, // 0021 GETMET R8 R2 K10 - 0x7C200200, // 0022 CALL R8 1 - 0x8C20110B, // 0023 GETMET R8 R8 K11 - 0x5C280E00, // 0024 MOVE R10 R7 - 0x7C200400, // 0025 CALL R8 2 - 0x90021808, // 0026 SETMBR R0 K12 R8 - 0x8C20050A, // 0027 GETMET R8 R2 K10 - 0x7C200200, // 0028 CALL R8 1 - 0x8C20110E, // 0029 GETMET R8 R8 K14 - 0x8828010C, // 002A GETMBR R10 R0 K12 - 0x7C200400, // 002B CALL R8 2 - 0x90021A08, // 002C SETMBR R0 K13 R8 - 0xB8221E00, // 002D GETNGBL R8 K15 - 0x8C201110, // 002E GETMET R8 R8 K16 - 0x58280011, // 002F LDCONST R10 K17 - 0x542E0003, // 0030 LDINT R11 4 - 0x7C200600, // 0031 CALL R8 3 - 0xB8221E00, // 0032 GETNGBL R8 K15 - 0x8C201110, // 0033 GETMET R8 R8 K16 - 0x88280102, // 0034 GETMBR R10 R0 K2 - 0x8C281513, // 0035 GETMET R10 R10 K19 - 0x7C280200, // 0036 CALL R10 1 - 0x002A240A, // 0037 ADD R10 K18 R10 - 0x542E0003, // 0038 LDINT R11 4 - 0x7C200600, // 0039 CALL R8 3 - 0xB8221E00, // 003A GETNGBL R8 K15 - 0x8C201110, // 003B GETMET R8 R8 K16 - 0x8C280913, // 003C GETMET R10 R4 K19 - 0x7C280200, // 003D CALL R10 1 - 0x002A280A, // 003E ADD R10 K20 R10 - 0x542E0003, // 003F LDINT R11 4 - 0x7C200600, // 0040 CALL R8 3 - 0xB8221E00, // 0041 GETNGBL R8 K15 - 0x8C201110, // 0042 GETMET R8 R8 K16 - 0x88280109, // 0043 GETMBR R10 R0 K9 - 0x8C281513, // 0044 GETMET R10 R10 K19 - 0x7C280200, // 0045 CALL R10 1 - 0x002A2A0A, // 0046 ADD R10 K21 R10 - 0x542E0003, // 0047 LDINT R11 4 - 0x7C200600, // 0048 CALL R8 3 - 0xB8221E00, // 0049 GETNGBL R8 K15 - 0x8C201110, // 004A GETMET R8 R8 K16 - 0x8828010C, // 004B GETMBR R10 R0 K12 - 0x8C281513, // 004C GETMET R10 R10 K19 - 0x7C280200, // 004D CALL R10 1 - 0x002A2C0A, // 004E ADD R10 K22 R10 - 0x542E0003, // 004F LDINT R11 4 - 0x7C200600, // 0050 CALL R8 3 - 0xB8221E00, // 0051 GETNGBL R8 K15 - 0x8C201110, // 0052 GETMET R8 R8 K16 - 0x8828010D, // 0053 GETMBR R10 R0 K13 - 0x8C281513, // 0054 GETMET R10 R10 K19 - 0x7C280200, // 0055 CALL R10 1 - 0x002A2E0A, // 0056 ADD R10 K23 R10 - 0x542E0003, // 0057 LDINT R11 4 - 0x7C200600, // 0058 CALL R8 3 - 0xB8221E00, // 0059 GETNGBL R8 K15 - 0x8C201110, // 005A GETMET R8 R8 K16 - 0x58280011, // 005B LDCONST R10 K17 - 0x542E0003, // 005C LDINT R11 4 - 0x7C200600, // 005D CALL R8 3 - 0x8C200118, // 005E GETMET R8 R0 K24 - 0x7C200200, // 005F CALL R8 1 - 0xB8261E00, // 0060 GETNGBL R9 K15 - 0x8C241310, // 0061 GETMET R9 R9 K16 - 0x8C2C0719, // 0062 GETMET R11 R3 K25 - 0x5834001A, // 0063 LDCONST R13 K26 - 0x403A111B, // 0064 CONNECT R14 K8 K27 - 0x9438100E, // 0065 GETIDX R14 R8 R14 - 0x543E0003, // 0066 LDINT R15 4 - 0x54420005, // 0067 LDINT R16 6 - 0x403C1E10, // 0068 CONNECT R15 R15 R16 - 0x943C100F, // 0069 GETIDX R15 R8 R15 - 0x54420006, // 006A LDINT R16 7 - 0x4040211C, // 006B CONNECT R16 R16 K28 - 0x94401010, // 006C GETIDX R16 R8 R16 - 0x7C2C0A00, // 006D CALL R11 5 - 0x5830001D, // 006E LDCONST R12 K29 - 0x7C240600, // 006F CALL R9 3 - 0x80000000, // 0070 RET 0 + ( &(const binstruction[116]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xB80E0400, // 0002 GETNGBL R3 K2 + 0x8C0C0703, // 0003 GETMET R3 R3 K3 + 0xB8160800, // 0004 GETNGBL R5 K4 + 0x88140B05, // 0005 GETMBR R5 R5 K5 + 0x7C0C0400, // 0006 CALL R3 2 + 0x740E0004, // 0007 JMPT R3 #000D + 0xB80E0800, // 0008 GETNGBL R3 K4 + 0x8C0C0706, // 0009 GETMET R3 R3 K6 + 0x5C140000, // 000A MOVE R5 R0 + 0x7C0C0400, // 000B CALL R3 2 + 0x80000600, // 000C RET 0 + 0x600C0012, // 000D GETGBL R3 G18 + 0x7C0C0000, // 000E CALL R3 0 + 0x90020E03, // 000F SETMBR R0 K7 R3 + 0x880C0109, // 0010 GETMBR R3 R0 K9 + 0x90021003, // 0011 SETMBR R0 K8 R3 + 0x880C010B, // 0012 GETMBR R3 R0 K11 + 0x90021403, // 0013 SETMBR R0 K10 R3 + 0x880C010D, // 0014 GETMBR R3 R0 K13 + 0x90021803, // 0015 SETMBR R0 K12 R3 + 0x8C0C030F, // 0016 GETMET R3 R1 K15 + 0x5416000F, // 0017 LDINT R5 16 + 0x7C0C0400, // 0018 CALL R3 2 + 0x90021C03, // 0019 SETMBR R0 K14 R3 + 0x500C0000, // 001A LDBOOL R3 0 0 + 0x90022003, // 001B SETMBR R0 K16 R3 + 0x8C0C0111, // 001C GETMET R3 R0 K17 + 0x7C0C0200, // 001D CALL R3 1 + 0x8C0C030F, // 001E GETMET R3 R1 K15 + 0x54160007, // 001F LDINT R5 8 + 0x7C0C0400, // 0020 CALL R3 2 + 0x8C0C0713, // 0021 GETMET R3 R3 K19 + 0x7C0C0200, // 0022 CALL R3 1 + 0x90022403, // 0023 SETMBR R0 K18 R3 + 0x8C0C030F, // 0024 GETMET R3 R1 K15 + 0x54160007, // 0025 LDINT R5 8 + 0x7C0C0400, // 0026 CALL R3 2 + 0x8C0C0713, // 0027 GETMET R3 R3 K19 + 0x7C0C0200, // 0028 CALL R3 1 + 0x90022803, // 0029 SETMBR R0 K20 R3 + 0xB80E0800, // 002A GETNGBL R3 K4 + 0x8C0C0716, // 002B GETMET R3 R3 K22 + 0x7C0C0200, // 002C CALL R3 1 + 0x90022A03, // 002D SETMBR R0 K21 R3 + 0x880C0115, // 002E GETMBR R3 R0 K21 + 0x8C0C0717, // 002F GETMET R3 R3 K23 + 0x7C0C0200, // 0030 CALL R3 1 + 0xB80E0800, // 0031 GETNGBL R3 K4 + 0x8C0C0719, // 0032 GETMET R3 R3 K25 + 0x5C140000, // 0033 MOVE R5 R0 + 0x7C0C0400, // 0034 CALL R3 2 + 0x90023003, // 0035 SETMBR R0 K24 R3 + 0xB80E0800, // 0036 GETNGBL R3 K4 + 0x8C0C0706, // 0037 GETMET R3 R3 K6 + 0x5C140000, // 0038 MOVE R5 R0 + 0x7C0C0400, // 0039 CALL R3 2 + 0x90023403, // 003A SETMBR R0 K26 R3 + 0x880C0107, // 003B GETMBR R3 R0 K7 + 0x8C0C071B, // 003C GETMET R3 R3 K27 + 0xB8160800, // 003D GETNGBL R5 K4 + 0x8C140B1C, // 003E GETMET R5 R5 K28 + 0x5C1C0000, // 003F MOVE R7 R0 + 0x7C140400, // 0040 CALL R5 2 + 0x5818001D, // 0041 LDCONST R6 K29 + 0x7C0C0600, // 0042 CALL R3 3 + 0x880C0107, // 0043 GETMBR R3 R0 K7 + 0x8C0C071B, // 0044 GETMET R3 R3 K27 + 0xB8160800, // 0045 GETNGBL R5 K4 + 0x8C140B1E, // 0046 GETMET R5 R5 K30 + 0x5C1C0000, // 0047 MOVE R7 R0 + 0x7C140400, // 0048 CALL R5 2 + 0x5818001F, // 0049 LDCONST R6 K31 + 0x581C001D, // 004A LDCONST R7 K29 + 0x7C0C0800, // 004B CALL R3 4 + 0x8C0C0120, // 004C GETMET R3 R0 K32 + 0x7C0C0200, // 004D CALL R3 1 + 0xB80E0400, // 004E GETNGBL R3 K2 + 0x8C0C0721, // 004F GETMET R3 R3 K33 + 0x7C0C0200, // 0050 CALL R3 1 + 0x940C0722, // 0051 GETIDX R3 R3 K34 + 0x780E0003, // 0052 JMPF R3 #0057 + 0x8C0C0123, // 0053 GETMET R3 R0 K35 + 0x88140124, // 0054 GETMBR R5 R0 K36 + 0x7C0C0400, // 0055 CALL R3 2 + 0x70020005, // 0056 JMP #005D + 0xB80E0400, // 0057 GETNGBL R3 K2 + 0x8C0C0725, // 0058 GETMET R3 R3 K37 + 0x58140026, // 0059 LDCONST R5 K38 + 0x84180000, // 005A CLOSURE R6 P0 + 0x581C0027, // 005B LDCONST R7 K39 + 0x7C0C0800, // 005C CALL R3 4 + 0xB80E0400, // 005D GETNGBL R3 K2 + 0x8C0C0728, // 005E GETMET R3 R3 K40 + 0x7C0C0200, // 005F CALL R3 1 + 0x940C0722, // 0060 GETIDX R3 R3 K34 + 0x780E0003, // 0061 JMPF R3 #0066 + 0x8C0C0123, // 0062 GETMET R3 R0 K35 + 0x88140124, // 0063 GETMBR R5 R0 K36 + 0x7C0C0400, // 0064 CALL R3 2 + 0x70020005, // 0065 JMP #006C + 0xB80E0400, // 0066 GETNGBL R3 K2 + 0x8C0C0725, // 0067 GETMET R3 R3 K37 + 0x58140029, // 0068 LDCONST R5 K41 + 0x84180001, // 0069 CLOSURE R6 P1 + 0x581C0027, // 006A LDCONST R7 K39 + 0x7C0C0800, // 006B CALL R3 4 + 0x8C0C012A, // 006C GETMET R3 R0 K42 + 0x7C0C0200, // 006D CALL R3 1 + 0xB80E0400, // 006E GETNGBL R3 K2 + 0x8C0C072B, // 006F GETMET R3 R3 K43 + 0x5C140000, // 0070 MOVE R5 R0 + 0x7C0C0400, // 0071 CALL R3 2 + 0xA0000000, // 0072 CLOSE R0 + 0x80000000, // 0073 RET 0 }) ) ); @@ -186,40 +386,37 @@ be_local_closure(Matter_Device_start_operational_discovery, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ + ( &(const bvalue[ 9]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(mdns), /* K2 */ be_nested_str_weak(string), - /* K3 */ be_nested_str_weak(salt), - /* K4 */ be_nested_str_weak(w0), - /* K5 */ be_nested_str_weak(w1), - /* K6 */ be_nested_str_weak(L), - /* K7 */ be_nested_str_weak(set_expire_in_seconds), - /* K8 */ be_nested_str_weak(mdns_announce_op_discovery), - /* K9 */ be_nested_str_weak(get_fabric), + /* K3 */ be_nested_str_weak(stop_basic_commissioning), + /* K4 */ be_nested_str_weak(root_w0), + /* K5 */ be_nested_str_weak(root_L), + /* K6 */ be_nested_str_weak(set_expire_in_seconds), + /* K7 */ be_nested_str_weak(mdns_announce_op_discovery), + /* K8 */ be_nested_str_weak(get_fabric), }), be_str_weak(start_operational_discovery), &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ + ( &(const binstruction[17]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0xA4120400, // 0002 IMPORT R4 K2 - 0x4C140000, // 0003 LDNIL R5 - 0x90020605, // 0004 SETMBR R0 K3 R5 + 0x8C140103, // 0003 GETMET R5 R0 K3 + 0x7C140200, // 0004 CALL R5 1 0x4C140000, // 0005 LDNIL R5 0x90020805, // 0006 SETMBR R0 K4 R5 0x4C140000, // 0007 LDNIL R5 0x90020A05, // 0008 SETMBR R0 K5 R5 - 0x4C140000, // 0009 LDNIL R5 - 0x90020C05, // 000A SETMBR R0 K6 R5 - 0x8C140307, // 000B GETMET R5 R1 K7 - 0x541E003B, // 000C LDINT R7 60 - 0x7C140400, // 000D CALL R5 2 - 0x8C140108, // 000E GETMET R5 R0 K8 - 0x8C1C0309, // 000F GETMET R7 R1 K9 - 0x7C1C0200, // 0010 CALL R7 1 - 0x7C140400, // 0011 CALL R5 2 - 0x80000000, // 0012 RET 0 + 0x8C140306, // 0009 GETMET R5 R1 K6 + 0x541E003B, // 000A LDINT R7 60 + 0x7C140400, // 000B CALL R5 2 + 0x8C140107, // 000C GETMET R5 R0 K7 + 0x8C1C0308, // 000D GETMET R7 R1 K8 + 0x7C1C0200, // 000E CALL R7 1 + 0x7C140400, // 000F CALL R5 2 + 0x80000000, // 0010 RET 0 }) ) ); @@ -227,451 +424,215 @@ be_local_closure(Matter_Device_start_operational_discovery, /* name */ /******************************************************************** -** Solidified function: _start_mdns_announce +** Solidified function: start_udp ********************************************************************/ -be_local_closure(Matter_Device__start_mdns_announce, /* name */ +be_local_closure(Matter_Device_start_udp, /* name */ be_nested_proto( - 17, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(msg_received), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x680C0000, // 0000 GETUPV R3 U0 + 0x8C0C0700, // 0001 GETMET R3 R3 K0 + 0x5C140000, // 0002 MOVE R5 R0 + 0x5C180200, // 0003 MOVE R6 R1 + 0x5C1C0400, // 0004 MOVE R7 R2 + 0x7C0C0800, // 0005 CALL R3 4 + 0x80040600, // 0006 RET 1 R3 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), + /* K4 */ be_const_int(2), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(UDPServer), + /* K7 */ be_nested_str_weak(), + /* K8 */ be_nested_str_weak(start), + }), + be_str_weak(start_udp), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x780A0000, // 0001 JMPF R2 #0003 + 0x80000400, // 0002 RET 0 + 0x4C080000, // 0003 LDNIL R2 + 0x1C080202, // 0004 EQ R2 R1 R2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x540615A3, // 0006 LDINT R1 5540 + 0xB80A0200, // 0007 GETNGBL R2 K1 + 0x8C080502, // 0008 GETMET R2 R2 K2 + 0x60100008, // 0009 GETGBL R4 G8 + 0x5C140200, // 000A MOVE R5 R1 + 0x7C100200, // 000B CALL R4 1 + 0x00120604, // 000C ADD R4 K3 R4 + 0x58140004, // 000D LDCONST R5 K4 + 0x7C080600, // 000E CALL R2 3 + 0xB80A0A00, // 000F GETNGBL R2 K5 + 0x8C080506, // 0010 GETMET R2 R2 K6 + 0x58100007, // 0011 LDCONST R4 K7 + 0x5C140200, // 0012 MOVE R5 R1 + 0x7C080600, // 0013 CALL R2 3 + 0x90020002, // 0014 SETMBR R0 K0 R2 + 0x88080100, // 0015 GETMBR R2 R0 K0 + 0x8C080508, // 0016 GETMET R2 R2 K8 + 0x84100000, // 0017 CLOSURE R4 P0 + 0x7C080400, // 0018 CALL R2 2 + 0xA0000000, // 0019 CLOSE R0 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_remove_PASE +********************************************************************/ +be_local_closure(Matter_Device_mdns_remove_PASE, /* name */ + be_nested_proto( + 12, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[49]) { /* constants */ + ( &(const bvalue[22]) { /* constants */ /* K0 */ be_nested_str_weak(mdns), /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(start), - /* K3 */ be_nested_str_weak(D), - /* K4 */ be_nested_str_weak(discriminator), - /* K5 */ be_nested_str_weak(CM), - /* K6 */ be_const_int(1), - /* K7 */ be_nested_str_weak(T), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(SII), - /* K10 */ be_nested_str_weak(SAI), - /* K11 */ be_nested_str_weak(tasmota), - /* K12 */ be_nested_str_weak(eth), - /* K13 */ be_nested_str_weak(hostname_eth), - /* K14 */ be_nested_str_weak(replace), - /* K15 */ be_nested_str_weak(find), - /* K16 */ be_nested_str_weak(mac), - /* K17 */ be_nested_str_weak(_X3A), - /* K18 */ be_nested_str_weak(), - /* K19 */ be_nested_str_weak(ipv4only), - /* K20 */ be_nested_str_weak(log), - /* K21 */ be_nested_str_weak(format), - /* K22 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K23 */ be_nested_str_weak(ip6local), - /* K24 */ be_nested_str_weak(ip), - /* K25 */ be_const_int(3), - /* K26 */ be_nested_str_weak(add_hostname), - /* K27 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), - /* K28 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25i_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K29 */ be_nested_str_weak(_matterc), - /* K30 */ be_nested_str_weak(_udp), - /* K31 */ be_nested_str_weak(commissioning_instance_eth), - /* K32 */ be_nested_str_weak(add_service), - /* K33 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K34 */ be_nested_str_weak(wifi), - /* K35 */ be_nested_str_weak(commissioning_instance_wifi), - /* K36 */ be_nested_str_weak(hostname_wifi), - /* K37 */ be_const_int(2), - /* K38 */ be_nested_str_weak(_L), - /* K39 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K40 */ be_nested_str_weak(add_subtype), - /* K41 */ be_nested_str_weak(_S), - /* K42 */ be_nested_str_weak(_V), - /* K43 */ be_nested_str_weak(vendorid), - /* K44 */ be_nested_str_weak(_CM1), - /* K45 */ be_nested_str_weak(ip6), - /* K46 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K47 */ be_nested_str_weak(_X7C), - /* K48 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), + /* K2 */ be_nested_str_weak(mdns_pase_eth), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(log), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K7 */ be_nested_str_weak(_matterc), + /* K8 */ be_nested_str_weak(_udp), + /* K9 */ be_nested_str_weak(commissioning_instance_eth), + /* K10 */ be_nested_str_weak(hostname_eth), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mdns_X20on_X20_X25s_X20_X27_X25s_X27), + /* K13 */ be_nested_str_weak(eth), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(remove_service), + /* K16 */ be_nested_str_weak(mdns_pase_wifi), + /* K17 */ be_nested_str_weak(commissioning_instance_wifi), + /* K18 */ be_nested_str_weak(hostname_wifi), + /* K19 */ be_nested_str_weak(wifi), + /* K20 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K21 */ be_nested_str_weak(_X7C), }), - be_str_weak(_start_mdns_announce), + be_str_weak(mdns_remove_PASE), &be_const_str_solidified, - ( &(const binstruction[379]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100502, // 0002 GETMET R4 R2 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x60100013, // 0004 GETGBL R4 G19 - 0x7C100000, // 0005 CALL R4 0 - 0x88140104, // 0006 GETMBR R5 R0 K4 - 0x98120605, // 0007 SETIDX R4 K3 R5 - 0x98120B06, // 0008 SETIDX R4 K5 K6 - 0x98120F08, // 0009 SETIDX R4 K7 K8 - 0x54161387, // 000A LDINT R5 5000 - 0x98121205, // 000B SETIDX R4 K9 R5 - 0x5416012B, // 000C LDINT R5 300 - 0x98121405, // 000D SETIDX R4 K10 R5 - 0xA8020157, // 000E EXBLK 0 #0167 - 0x780600AB, // 000F JMPF R1 #00BC - 0xB8161600, // 0010 GETNGBL R5 K11 - 0x8C140B0C, // 0011 GETMET R5 R5 K12 - 0x7C140200, // 0012 CALL R5 1 - 0x8C18070E, // 0013 GETMET R6 R3 K14 - 0x8C200B0F, // 0014 GETMET R8 R5 K15 - 0x58280010, // 0015 LDCONST R10 K16 - 0x7C200400, // 0016 CALL R8 2 - 0x58240011, // 0017 LDCONST R9 K17 - 0x58280012, // 0018 LDCONST R10 K18 - 0x7C180800, // 0019 CALL R6 4 - 0x90021A06, // 001A SETMBR R0 K13 R6 - 0x88180113, // 001B GETMBR R6 R0 K19 - 0x741A001B, // 001C JMPT R6 #0039 - 0xB81A1600, // 001D GETNGBL R6 K11 - 0x8C180D14, // 001E GETMET R6 R6 K20 - 0x8C200715, // 001F GETMET R8 R3 K21 - 0x58280016, // 0020 LDCONST R10 K22 - 0x882C010D, // 0021 GETMBR R11 R0 K13 - 0x8C300B0F, // 0022 GETMET R12 R5 K15 - 0x58380017, // 0023 LDCONST R14 K23 - 0x583C0012, // 0024 LDCONST R15 K18 - 0x7C300600, // 0025 CALL R12 3 - 0x8C340B0F, // 0026 GETMET R13 R5 K15 - 0x583C0018, // 0027 LDCONST R15 K24 - 0x58400012, // 0028 LDCONST R16 K18 - 0x7C340600, // 0029 CALL R13 3 - 0x7C200A00, // 002A CALL R8 5 - 0x58240019, // 002B LDCONST R9 K25 - 0x7C180600, // 002C CALL R6 3 - 0x8C18051A, // 002D GETMET R6 R2 K26 - 0x8820010D, // 002E GETMBR R8 R0 K13 - 0x8C240B0F, // 002F GETMET R9 R5 K15 - 0x582C0017, // 0030 LDCONST R11 K23 - 0x58300012, // 0031 LDCONST R12 K18 - 0x7C240600, // 0032 CALL R9 3 - 0x8C280B0F, // 0033 GETMET R10 R5 K15 - 0x58300018, // 0034 LDCONST R12 K24 - 0x58340012, // 0035 LDCONST R13 K18 - 0x7C280600, // 0036 CALL R10 3 - 0x7C180800, // 0037 CALL R6 4 - 0x70020012, // 0038 JMP #004C - 0xB81A1600, // 0039 GETNGBL R6 K11 - 0x8C180D14, // 003A GETMET R6 R6 K20 - 0x8C200715, // 003B GETMET R8 R3 K21 - 0x5828001B, // 003C LDCONST R10 K27 - 0x882C010D, // 003D GETMBR R11 R0 K13 - 0x8C300B0F, // 003E GETMET R12 R5 K15 - 0x58380018, // 003F LDCONST R14 K24 - 0x583C0012, // 0040 LDCONST R15 K18 - 0x7C300600, // 0041 CALL R12 3 - 0x7C200800, // 0042 CALL R8 4 - 0x58240019, // 0043 LDCONST R9 K25 - 0x7C180600, // 0044 CALL R6 3 - 0x8C18051A, // 0045 GETMET R6 R2 K26 - 0x8820010D, // 0046 GETMBR R8 R0 K13 - 0x8C240B0F, // 0047 GETMET R9 R5 K15 - 0x582C0018, // 0048 LDCONST R11 K24 - 0x58300012, // 0049 LDCONST R12 K18 - 0x7C240600, // 004A CALL R9 3 - 0x7C180600, // 004B CALL R6 3 - 0xB81A1600, // 004C GETNGBL R6 K11 - 0x8C180D14, // 004D GETMET R6 R6 K20 - 0x8C200715, // 004E GETMET R8 R3 K21 - 0x5828001C, // 004F LDCONST R10 K28 - 0x582C001D, // 0050 LDCONST R11 K29 - 0x5830001E, // 0051 LDCONST R12 K30 - 0x543615A3, // 0052 LDINT R13 5540 - 0x60380008, // 0053 GETGBL R14 G8 - 0x5C3C0800, // 0054 MOVE R15 R4 - 0x7C380200, // 0055 CALL R14 1 - 0x883C011F, // 0056 GETMBR R15 R0 K31 - 0x8840010D, // 0057 GETMBR R16 R0 K13 - 0x7C201000, // 0058 CALL R8 8 - 0x58240019, // 0059 LDCONST R9 K25 - 0x7C180600, // 005A CALL R6 3 - 0x8C180520, // 005B GETMET R6 R2 K32 - 0x5820001D, // 005C LDCONST R8 K29 - 0x5824001E, // 005D LDCONST R9 K30 - 0x542A15A3, // 005E LDINT R10 5540 - 0x5C2C0800, // 005F MOVE R11 R4 - 0x8830011F, // 0060 GETMBR R12 R0 K31 - 0x8834010D, // 0061 GETMBR R13 R0 K13 - 0x7C180E00, // 0062 CALL R6 7 - 0xB81A1600, // 0063 GETNGBL R6 K11 - 0x8C180D14, // 0064 GETMET R6 R6 K20 - 0x8C200715, // 0065 GETMET R8 R3 K21 - 0x58280021, // 0066 LDCONST R10 K33 - 0x78060001, // 0067 JMPF R1 #006A - 0x582C000C, // 0068 LDCONST R11 K12 - 0x70020000, // 0069 JMP #006B - 0x582C0022, // 006A LDCONST R11 K34 - 0x78060001, // 006B JMPF R1 #006E - 0x8830011F, // 006C GETMBR R12 R0 K31 - 0x70020000, // 006D JMP #006F - 0x88300123, // 006E GETMBR R12 R0 K35 - 0x78060001, // 006F JMPF R1 #0072 - 0x8834010D, // 0070 GETMBR R13 R0 K13 - 0x70020000, // 0071 JMP #0073 - 0x88340124, // 0072 GETMBR R13 R0 K36 - 0x7C200A00, // 0073 CALL R8 5 - 0x58240025, // 0074 LDCONST R9 K37 - 0x7C180600, // 0075 CALL R6 3 - 0x60180008, // 0076 GETGBL R6 G8 - 0x881C0104, // 0077 GETMBR R7 R0 K4 - 0x54220FFE, // 0078 LDINT R8 4095 - 0x2C1C0E08, // 0079 AND R7 R7 R8 - 0x7C180200, // 007A CALL R6 1 - 0x001A4C06, // 007B ADD R6 K38 R6 - 0xB81E1600, // 007C GETNGBL R7 K11 - 0x8C1C0F14, // 007D GETMET R7 R7 K20 - 0x00264E06, // 007E ADD R9 K39 R6 - 0x58280019, // 007F LDCONST R10 K25 - 0x7C1C0600, // 0080 CALL R7 3 - 0x8C1C0528, // 0081 GETMET R7 R2 K40 - 0x5824001D, // 0082 LDCONST R9 K29 - 0x5828001E, // 0083 LDCONST R10 K30 - 0x882C011F, // 0084 GETMBR R11 R0 K31 - 0x8830010D, // 0085 GETMBR R12 R0 K13 - 0x5C340C00, // 0086 MOVE R13 R6 - 0x7C1C0C00, // 0087 CALL R7 6 - 0x601C0008, // 0088 GETGBL R7 G8 - 0x88200104, // 0089 GETMBR R8 R0 K4 - 0x54260EFF, // 008A LDINT R9 3840 - 0x2C201009, // 008B AND R8 R8 R9 - 0x54260007, // 008C LDINT R9 8 - 0x3C201009, // 008D SHR R8 R8 R9 - 0x7C1C0200, // 008E CALL R7 1 - 0x001E5207, // 008F ADD R7 K41 R7 - 0x5C180E00, // 0090 MOVE R6 R7 - 0xB81E1600, // 0091 GETNGBL R7 K11 - 0x8C1C0F14, // 0092 GETMET R7 R7 K20 - 0x00264E06, // 0093 ADD R9 K39 R6 - 0x58280019, // 0094 LDCONST R10 K25 - 0x7C1C0600, // 0095 CALL R7 3 - 0x8C1C0528, // 0096 GETMET R7 R2 K40 - 0x5824001D, // 0097 LDCONST R9 K29 - 0x5828001E, // 0098 LDCONST R10 K30 - 0x882C011F, // 0099 GETMBR R11 R0 K31 - 0x8830010D, // 009A GETMBR R12 R0 K13 - 0x5C340C00, // 009B MOVE R13 R6 - 0x7C1C0C00, // 009C CALL R7 6 - 0x601C0008, // 009D GETGBL R7 G8 - 0x8820012B, // 009E GETMBR R8 R0 K43 - 0x7C1C0200, // 009F CALL R7 1 - 0x001E5407, // 00A0 ADD R7 K42 R7 - 0x5C180E00, // 00A1 MOVE R6 R7 - 0xB81E1600, // 00A2 GETNGBL R7 K11 - 0x8C1C0F14, // 00A3 GETMET R7 R7 K20 - 0x00264E06, // 00A4 ADD R9 K39 R6 - 0x58280019, // 00A5 LDCONST R10 K25 - 0x7C1C0600, // 00A6 CALL R7 3 - 0x8C1C0528, // 00A7 GETMET R7 R2 K40 - 0x5824001D, // 00A8 LDCONST R9 K29 - 0x5828001E, // 00A9 LDCONST R10 K30 - 0x882C011F, // 00AA GETMBR R11 R0 K31 - 0x8830010D, // 00AB GETMBR R12 R0 K13 - 0x5C340C00, // 00AC MOVE R13 R6 - 0x7C1C0C00, // 00AD CALL R7 6 - 0x5818002C, // 00AE LDCONST R6 K44 - 0xB81E1600, // 00AF GETNGBL R7 K11 - 0x8C1C0F14, // 00B0 GETMET R7 R7 K20 - 0x00264E06, // 00B1 ADD R9 K39 R6 - 0x58280019, // 00B2 LDCONST R10 K25 - 0x7C1C0600, // 00B3 CALL R7 3 - 0x8C1C0528, // 00B4 GETMET R7 R2 K40 - 0x5824001D, // 00B5 LDCONST R9 K29 - 0x5828001E, // 00B6 LDCONST R10 K30 - 0x882C011F, // 00B7 GETMBR R11 R0 K31 - 0x8830010D, // 00B8 GETMBR R12 R0 K13 - 0x5C340C00, // 00B9 MOVE R13 R6 - 0x7C1C0C00, // 00BA CALL R7 6 - 0x700200A8, // 00BB JMP #0165 - 0xB8161600, // 00BC GETNGBL R5 K11 - 0x8C140B22, // 00BD GETMET R5 R5 K34 - 0x7C140200, // 00BE CALL R5 1 - 0x8C18070E, // 00BF GETMET R6 R3 K14 - 0x8C200B0F, // 00C0 GETMET R8 R5 K15 - 0x58280010, // 00C1 LDCONST R10 K16 - 0x7C200400, // 00C2 CALL R8 2 - 0x58240011, // 00C3 LDCONST R9 K17 - 0x58280012, // 00C4 LDCONST R10 K18 - 0x7C180800, // 00C5 CALL R6 4 - 0x90024806, // 00C6 SETMBR R0 K36 R6 - 0x88180113, // 00C7 GETMBR R6 R0 K19 - 0x741A002A, // 00C8 JMPT R6 #00F4 - 0x8C18051A, // 00C9 GETMET R6 R2 K26 - 0x88200124, // 00CA GETMBR R8 R0 K36 - 0x8C240B0F, // 00CB GETMET R9 R5 K15 - 0x582C0017, // 00CC LDCONST R11 K23 - 0x58300012, // 00CD LDCONST R12 K18 - 0x7C240600, // 00CE CALL R9 3 - 0x8C280B0F, // 00CF GETMET R10 R5 K15 - 0x58300018, // 00D0 LDCONST R12 K24 - 0x58340012, // 00D1 LDCONST R13 K18 - 0x7C280600, // 00D2 CALL R10 3 - 0x8C2C0B0F, // 00D3 GETMET R11 R5 K15 - 0x5834002D, // 00D4 LDCONST R13 K45 - 0x58380012, // 00D5 LDCONST R14 K18 - 0x7C2C0600, // 00D6 CALL R11 3 - 0x7C180A00, // 00D7 CALL R6 5 - 0xB81A1600, // 00D8 GETNGBL R6 K11 - 0x8C180D14, // 00D9 GETMET R6 R6 K20 - 0x8C200715, // 00DA GETMET R8 R3 K21 - 0x58280016, // 00DB LDCONST R10 K22 - 0x882C0124, // 00DC GETMBR R11 R0 K36 - 0x8C300B0F, // 00DD GETMET R12 R5 K15 - 0x58380017, // 00DE LDCONST R14 K23 - 0x583C0012, // 00DF LDCONST R15 K18 - 0x7C300600, // 00E0 CALL R12 3 - 0x8C340B0F, // 00E1 GETMET R13 R5 K15 - 0x583C0018, // 00E2 LDCONST R15 K24 - 0x58400012, // 00E3 LDCONST R16 K18 - 0x7C340600, // 00E4 CALL R13 3 - 0x7C200A00, // 00E5 CALL R8 5 - 0x58240019, // 00E6 LDCONST R9 K25 - 0x7C180600, // 00E7 CALL R6 3 - 0x8C18051A, // 00E8 GETMET R6 R2 K26 - 0x88200124, // 00E9 GETMBR R8 R0 K36 - 0x8C240B0F, // 00EA GETMET R9 R5 K15 - 0x582C0017, // 00EB LDCONST R11 K23 - 0x58300012, // 00EC LDCONST R12 K18 - 0x7C240600, // 00ED CALL R9 3 - 0x8C280B0F, // 00EE GETMET R10 R5 K15 - 0x58300018, // 00EF LDCONST R12 K24 - 0x58340012, // 00F0 LDCONST R13 K18 - 0x7C280600, // 00F1 CALL R10 3 - 0x7C180800, // 00F2 CALL R6 4 - 0x70020012, // 00F3 JMP #0107 - 0xB81A1600, // 00F4 GETNGBL R6 K11 - 0x8C180D14, // 00F5 GETMET R6 R6 K20 - 0x8C200715, // 00F6 GETMET R8 R3 K21 - 0x5828001B, // 00F7 LDCONST R10 K27 - 0x882C010D, // 00F8 GETMBR R11 R0 K13 - 0x8C300B0F, // 00F9 GETMET R12 R5 K15 - 0x58380018, // 00FA LDCONST R14 K24 - 0x583C0012, // 00FB LDCONST R15 K18 - 0x7C300600, // 00FC CALL R12 3 - 0x7C200800, // 00FD CALL R8 4 - 0x58240019, // 00FE LDCONST R9 K25 - 0x7C180600, // 00FF CALL R6 3 - 0x8C18051A, // 0100 GETMET R6 R2 K26 - 0x88200124, // 0101 GETMBR R8 R0 K36 - 0x8C240B0F, // 0102 GETMET R9 R5 K15 - 0x582C0018, // 0103 LDCONST R11 K24 - 0x58300012, // 0104 LDCONST R12 K18 - 0x7C240600, // 0105 CALL R9 3 - 0x7C180600, // 0106 CALL R6 3 - 0xB81A1600, // 0107 GETNGBL R6 K11 - 0x8C180D14, // 0108 GETMET R6 R6 K20 - 0x8C200715, // 0109 GETMET R8 R3 K21 - 0x5828001C, // 010A LDCONST R10 K28 - 0x582C001D, // 010B LDCONST R11 K29 - 0x5830001E, // 010C LDCONST R12 K30 - 0x543615A3, // 010D LDINT R13 5540 - 0x60380008, // 010E GETGBL R14 G8 - 0x5C3C0800, // 010F MOVE R15 R4 - 0x7C380200, // 0110 CALL R14 1 - 0x883C0123, // 0111 GETMBR R15 R0 K35 - 0x88400124, // 0112 GETMBR R16 R0 K36 - 0x7C201000, // 0113 CALL R8 8 - 0x58240019, // 0114 LDCONST R9 K25 - 0x7C180600, // 0115 CALL R6 3 - 0x8C180520, // 0116 GETMET R6 R2 K32 - 0x5820001D, // 0117 LDCONST R8 K29 - 0x5824001E, // 0118 LDCONST R9 K30 - 0x542A15A3, // 0119 LDINT R10 5540 - 0x5C2C0800, // 011A MOVE R11 R4 - 0x88300123, // 011B GETMBR R12 R0 K35 - 0x88340124, // 011C GETMBR R13 R0 K36 - 0x7C180E00, // 011D CALL R6 7 - 0xB81A1600, // 011E GETNGBL R6 K11 - 0x8C180D14, // 011F GETMET R6 R6 K20 - 0x8C200715, // 0120 GETMET R8 R3 K21 - 0x58280021, // 0121 LDCONST R10 K33 - 0x78060001, // 0122 JMPF R1 #0125 - 0x582C000C, // 0123 LDCONST R11 K12 - 0x70020000, // 0124 JMP #0126 - 0x582C0022, // 0125 LDCONST R11 K34 - 0x78060001, // 0126 JMPF R1 #0129 - 0x8830011F, // 0127 GETMBR R12 R0 K31 - 0x70020000, // 0128 JMP #012A - 0x88300123, // 0129 GETMBR R12 R0 K35 - 0x78060001, // 012A JMPF R1 #012D - 0x8834010D, // 012B GETMBR R13 R0 K13 - 0x70020000, // 012C JMP #012E - 0x88340124, // 012D GETMBR R13 R0 K36 - 0x7C200A00, // 012E CALL R8 5 - 0x58240025, // 012F LDCONST R9 K37 - 0x7C180600, // 0130 CALL R6 3 - 0x60180008, // 0131 GETGBL R6 G8 - 0x881C0104, // 0132 GETMBR R7 R0 K4 - 0x54220FFE, // 0133 LDINT R8 4095 - 0x2C1C0E08, // 0134 AND R7 R7 R8 - 0x7C180200, // 0135 CALL R6 1 - 0x001A4C06, // 0136 ADD R6 K38 R6 - 0xB81E1600, // 0137 GETNGBL R7 K11 - 0x8C1C0F14, // 0138 GETMET R7 R7 K20 - 0x00264E06, // 0139 ADD R9 K39 R6 - 0x58280019, // 013A LDCONST R10 K25 - 0x7C1C0600, // 013B CALL R7 3 - 0x8C1C0528, // 013C GETMET R7 R2 K40 - 0x5824001D, // 013D LDCONST R9 K29 - 0x5828001E, // 013E LDCONST R10 K30 - 0x882C0123, // 013F GETMBR R11 R0 K35 - 0x88300124, // 0140 GETMBR R12 R0 K36 - 0x5C340C00, // 0141 MOVE R13 R6 - 0x7C1C0C00, // 0142 CALL R7 6 - 0x601C0008, // 0143 GETGBL R7 G8 - 0x88200104, // 0144 GETMBR R8 R0 K4 - 0x54260EFF, // 0145 LDINT R9 3840 - 0x2C201009, // 0146 AND R8 R8 R9 - 0x54260007, // 0147 LDINT R9 8 - 0x3C201009, // 0148 SHR R8 R8 R9 - 0x7C1C0200, // 0149 CALL R7 1 - 0x001E5207, // 014A ADD R7 K41 R7 - 0x5C180E00, // 014B MOVE R6 R7 - 0xB81E1600, // 014C GETNGBL R7 K11 - 0x8C1C0F14, // 014D GETMET R7 R7 K20 - 0x00264E06, // 014E ADD R9 K39 R6 - 0x58280019, // 014F LDCONST R10 K25 - 0x7C1C0600, // 0150 CALL R7 3 - 0x8C1C0528, // 0151 GETMET R7 R2 K40 - 0x5824001D, // 0152 LDCONST R9 K29 - 0x5828001E, // 0153 LDCONST R10 K30 - 0x882C0123, // 0154 GETMBR R11 R0 K35 - 0x88300124, // 0155 GETMBR R12 R0 K36 - 0x5C340C00, // 0156 MOVE R13 R6 - 0x7C1C0C00, // 0157 CALL R7 6 - 0x5818002C, // 0158 LDCONST R6 K44 - 0xB81E1600, // 0159 GETNGBL R7 K11 - 0x8C1C0F14, // 015A GETMET R7 R7 K20 - 0x00264E06, // 015B ADD R9 K39 R6 - 0x58280019, // 015C LDCONST R10 K25 - 0x7C1C0600, // 015D CALL R7 3 - 0x8C1C0528, // 015E GETMET R7 R2 K40 - 0x5824001D, // 015F LDCONST R9 K29 - 0x5828001E, // 0160 LDCONST R10 K30 - 0x882C0123, // 0161 GETMBR R11 R0 K35 - 0x88300124, // 0162 GETMBR R12 R0 K36 - 0x5C340C00, // 0163 MOVE R13 R6 - 0x7C1C0C00, // 0164 CALL R7 6 - 0xA8040001, // 0165 EXBLK 1 1 - 0x70020010, // 0166 JMP #0178 - 0xAC140002, // 0167 CATCH R5 0 2 - 0x7002000D, // 0168 JMP #0177 - 0xB81E1600, // 0169 GETNGBL R7 K11 - 0x8C1C0F14, // 016A GETMET R7 R7 K20 - 0x60240008, // 016B GETGBL R9 G8 - 0x5C280A00, // 016C MOVE R10 R5 - 0x7C240200, // 016D CALL R9 1 - 0x00265C09, // 016E ADD R9 K46 R9 - 0x0024132F, // 016F ADD R9 R9 K47 - 0x60280008, // 0170 GETGBL R10 G8 - 0x5C2C0C00, // 0171 MOVE R11 R6 - 0x7C280200, // 0172 CALL R10 1 - 0x0024120A, // 0173 ADD R9 R9 R10 - 0x58280025, // 0174 LDCONST R10 K37 - 0x7C1C0600, // 0175 CALL R7 3 - 0x70020000, // 0176 JMP #0178 - 0xB0080000, // 0177 RAISE 2 R0 R0 - 0x8C140130, // 0178 GETMET R5 R0 K48 - 0x7C140200, // 0179 CALL R5 1 - 0x80000000, // 017A RET 0 + ( &(const binstruction[83]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA802003D, // 0002 EXBLK 0 #0041 + 0x880C0102, // 0003 GETMBR R3 R0 K2 + 0x780E001B, // 0004 JMPF R3 #0021 + 0xB80E0600, // 0005 GETNGBL R3 K3 + 0x8C0C0704, // 0006 GETMET R3 R3 K4 + 0x8C140505, // 0007 GETMET R5 R2 K5 + 0x581C0006, // 0008 LDCONST R7 K6 + 0x58200007, // 0009 LDCONST R8 K7 + 0x58240008, // 000A LDCONST R9 K8 + 0x88280109, // 000B GETMBR R10 R0 K9 + 0x882C010A, // 000C GETMBR R11 R0 K10 + 0x7C140C00, // 000D CALL R5 6 + 0x5818000B, // 000E LDCONST R6 K11 + 0x7C0C0600, // 000F CALL R3 3 + 0xB80E0600, // 0010 GETNGBL R3 K3 + 0x8C0C0704, // 0011 GETMET R3 R3 K4 + 0x8C140505, // 0012 GETMET R5 R2 K5 + 0x581C000C, // 0013 LDCONST R7 K12 + 0x5820000D, // 0014 LDCONST R8 K13 + 0x88240109, // 0015 GETMBR R9 R0 K9 + 0x7C140800, // 0016 CALL R5 4 + 0x5818000E, // 0017 LDCONST R6 K14 + 0x7C0C0600, // 0018 CALL R3 3 + 0x500C0000, // 0019 LDBOOL R3 0 0 + 0x90020403, // 001A SETMBR R0 K2 R3 + 0x8C0C030F, // 001B GETMET R3 R1 K15 + 0x58140007, // 001C LDCONST R5 K7 + 0x58180008, // 001D LDCONST R6 K8 + 0x881C0109, // 001E GETMBR R7 R0 K9 + 0x8820010A, // 001F GETMBR R8 R0 K10 + 0x7C0C0A00, // 0020 CALL R3 5 + 0x880C0110, // 0021 GETMBR R3 R0 K16 + 0x780E001B, // 0022 JMPF R3 #003F + 0xB80E0600, // 0023 GETNGBL R3 K3 + 0x8C0C0704, // 0024 GETMET R3 R3 K4 + 0x8C140505, // 0025 GETMET R5 R2 K5 + 0x581C0006, // 0026 LDCONST R7 K6 + 0x58200007, // 0027 LDCONST R8 K7 + 0x58240008, // 0028 LDCONST R9 K8 + 0x88280111, // 0029 GETMBR R10 R0 K17 + 0x882C0112, // 002A GETMBR R11 R0 K18 + 0x7C140C00, // 002B CALL R5 6 + 0x5818000B, // 002C LDCONST R6 K11 + 0x7C0C0600, // 002D CALL R3 3 + 0xB80E0600, // 002E GETNGBL R3 K3 + 0x8C0C0704, // 002F GETMET R3 R3 K4 + 0x8C140505, // 0030 GETMET R5 R2 K5 + 0x581C000C, // 0031 LDCONST R7 K12 + 0x58200013, // 0032 LDCONST R8 K19 + 0x88240111, // 0033 GETMBR R9 R0 K17 + 0x7C140800, // 0034 CALL R5 4 + 0x5818000E, // 0035 LDCONST R6 K14 + 0x7C0C0600, // 0036 CALL R3 3 + 0x500C0000, // 0037 LDBOOL R3 0 0 + 0x90022003, // 0038 SETMBR R0 K16 R3 + 0x8C0C030F, // 0039 GETMET R3 R1 K15 + 0x58140007, // 003A LDCONST R5 K7 + 0x58180008, // 003B LDCONST R6 K8 + 0x881C0111, // 003C GETMBR R7 R0 K17 + 0x88200112, // 003D GETMBR R8 R0 K18 + 0x7C0C0A00, // 003E CALL R3 5 + 0xA8040001, // 003F EXBLK 1 1 + 0x70020010, // 0040 JMP #0052 + 0xAC0C0002, // 0041 CATCH R3 0 2 + 0x7002000D, // 0042 JMP #0051 + 0xB8160600, // 0043 GETNGBL R5 K3 + 0x8C140B04, // 0044 GETMET R5 R5 K4 + 0x601C0008, // 0045 GETGBL R7 G8 + 0x5C200600, // 0046 MOVE R8 R3 + 0x7C1C0200, // 0047 CALL R7 1 + 0x001E2807, // 0048 ADD R7 K20 R7 + 0x001C0F15, // 0049 ADD R7 R7 K21 + 0x60200008, // 004A GETGBL R8 G8 + 0x5C240800, // 004B MOVE R9 R4 + 0x7C200200, // 004C CALL R8 1 + 0x001C0E08, // 004D ADD R7 R7 R8 + 0x5820000E, // 004E LDCONST R8 K14 + 0x7C140600, // 004F CALL R5 3 + 0x70020000, // 0050 JMP #0052 + 0xB0080000, // 0051 RAISE 2 R0 R0 + 0x80000000, // 0052 RET 0 }) ) ); @@ -679,12 +640,12 @@ be_local_closure(Matter_Device__start_mdns_announce, /* name */ /******************************************************************** -** Solidified function: packet_ack +** Solidified function: is_root_commissioning_open ********************************************************************/ -be_local_closure(Matter_Device_packet_ack, /* name */ +be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ be_nested_proto( - 5, /* nstack */ - 2, /* argc */ + 3, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -692,17 +653,233 @@ be_local_closure(Matter_Device_packet_ack, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(packet_ack), + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(commissioning_admin_fabric), }), - be_str_weak(packet_ack), + be_str_weak(is_root_commissioning_open), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 + ( &(const binstruction[11]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x78060003, // 0003 JMPF R1 #0008 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x4C080000, // 0005 LDNIL R2 + 0x1C040202, // 0006 EQ R1 R1 R2 + 0x74060000, // 0007 JMPT R1 #0009 + 0x50040001, // 0008 LDBOOL R1 0 1 + 0x50040200, // 0009 LDBOOL R1 1 0 + 0x80040200, // 000A RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_operational_discovery_deferred +********************************************************************/ +be_local_closure(Matter_Device_start_operational_discovery_deferred, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 3, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 2]) { /* upvals */ + be_local_const_upval(1, 0), + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(start_operational_discovery), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080001, // 0002 GETUPV R2 U1 + 0x7C000400, // 0003 CALL R0 2 + 0x80040000, // 0004 RET 1 R0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_operational_discovery_deferred), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_pbkdf +********************************************************************/ +be_local_closure(Matter_Device_compute_pbkdf, /* name */ + be_nested_proto( + 20, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[26]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(add), + /* K3 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), + /* K4 */ be_nested_str_weak(derive), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(root_w0), + /* K7 */ be_nested_str_weak(EC_P256), + /* K8 */ be_nested_str_weak(mod), + /* K9 */ be_nested_str_weak(root_L), + /* K10 */ be_nested_str_weak(public_key), + /* K11 */ be_nested_str_weak(tasmota), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), + /* K14 */ be_nested_str_weak(MTR_X3A_X20salt_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K15 */ be_nested_str_weak(root_salt), + /* K16 */ be_nested_str_weak(tohex), + /* K17 */ be_nested_str_weak(MTR_X3A_X20passcode_hex_X20_X20_X3D_X20), + /* K18 */ be_nested_str_weak(MTR_X3A_X20w0_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K19 */ be_nested_str_weak(MTR_X3A_X20L_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K20 */ be_nested_str_weak(compute_manual_pairing_code), + /* K21 */ be_nested_str_weak(format), + /* K22 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), + /* K23 */ be_const_int(3), + /* K24 */ be_const_int(2147483647), + /* K25 */ be_const_int(2), + }), + be_str_weak(compute_pbkdf), + &be_const_str_solidified, + ( &(const binstruction[100]) { /* code */ + 0xA4120000, // 0000 IMPORT R4 K0 + 0xA4160200, // 0001 IMPORT R5 K1 + 0x60180015, // 0002 GETGBL R6 G21 + 0x7C180000, // 0003 CALL R6 0 + 0x8C180D02, // 0004 GETMET R6 R6 K2 + 0x5C200200, // 0005 MOVE R8 R1 + 0x54260003, // 0006 LDINT R9 4 + 0x7C180600, // 0007 CALL R6 3 + 0x8C1C0903, // 0008 GETMET R7 R4 K3 + 0x7C1C0200, // 0009 CALL R7 1 + 0x8C1C0F04, // 000A GETMET R7 R7 K4 + 0x5C240C00, // 000B MOVE R9 R6 + 0x5C280600, // 000C MOVE R10 R3 + 0x5C2C0400, // 000D MOVE R11 R2 + 0x5432004F, // 000E LDINT R12 80 + 0x7C1C0A00, // 000F CALL R7 5 + 0x54220026, // 0010 LDINT R8 39 + 0x40220A08, // 0011 CONNECT R8 K5 R8 + 0x94200E08, // 0012 GETIDX R8 R7 R8 + 0x54260027, // 0013 LDINT R9 40 + 0x542A004E, // 0014 LDINT R10 79 + 0x4024120A, // 0015 CONNECT R9 R9 R10 + 0x94240E09, // 0016 GETIDX R9 R7 R9 + 0x8C280907, // 0017 GETMET R10 R4 K7 + 0x7C280200, // 0018 CALL R10 1 + 0x8C281508, // 0019 GETMET R10 R10 K8 + 0x5C301000, // 001A MOVE R12 R8 + 0x7C280400, // 001B CALL R10 2 + 0x90020C0A, // 001C SETMBR R0 K6 R10 + 0x8C280907, // 001D GETMET R10 R4 K7 + 0x7C280200, // 001E CALL R10 1 + 0x8C281508, // 001F GETMET R10 R10 K8 + 0x5C301200, // 0020 MOVE R12 R9 + 0x7C280400, // 0021 CALL R10 2 + 0x8C2C0907, // 0022 GETMET R11 R4 K7 + 0x7C2C0200, // 0023 CALL R11 1 + 0x8C2C170A, // 0024 GETMET R11 R11 K10 + 0x5C341400, // 0025 MOVE R13 R10 + 0x7C2C0400, // 0026 CALL R11 2 + 0x9002120B, // 0027 SETMBR R0 K9 R11 + 0xB82E1600, // 0028 GETNGBL R11 K11 + 0x8C2C170C, // 0029 GETMET R11 R11 K12 + 0x5834000D, // 002A LDCONST R13 K13 + 0x543A0003, // 002B LDINT R14 4 + 0x7C2C0600, // 002C CALL R11 3 + 0xB82E1600, // 002D GETNGBL R11 K11 + 0x8C2C170C, // 002E GETMET R11 R11 K12 + 0x8834010F, // 002F GETMBR R13 R0 K15 + 0x8C341B10, // 0030 GETMET R13 R13 K16 + 0x7C340200, // 0031 CALL R13 1 + 0x00361C0D, // 0032 ADD R13 K14 R13 + 0x543A0003, // 0033 LDINT R14 4 + 0x7C2C0600, // 0034 CALL R11 3 + 0xB82E1600, // 0035 GETNGBL R11 K11 + 0x8C2C170C, // 0036 GETMET R11 R11 K12 + 0x8C340D10, // 0037 GETMET R13 R6 K16 + 0x7C340200, // 0038 CALL R13 1 + 0x0036220D, // 0039 ADD R13 K17 R13 + 0x543A0003, // 003A LDINT R14 4 + 0x7C2C0600, // 003B CALL R11 3 + 0xB82E1600, // 003C GETNGBL R11 K11 + 0x8C2C170C, // 003D GETMET R11 R11 K12 + 0x88340106, // 003E GETMBR R13 R0 K6 + 0x8C341B10, // 003F GETMET R13 R13 K16 + 0x7C340200, // 0040 CALL R13 1 + 0x0036240D, // 0041 ADD R13 K18 R13 + 0x543A0003, // 0042 LDINT R14 4 + 0x7C2C0600, // 0043 CALL R11 3 + 0xB82E1600, // 0044 GETNGBL R11 K11 + 0x8C2C170C, // 0045 GETMET R11 R11 K12 + 0x88340109, // 0046 GETMBR R13 R0 K9 + 0x8C341B10, // 0047 GETMET R13 R13 K16 + 0x7C340200, // 0048 CALL R13 1 + 0x0036260D, // 0049 ADD R13 K19 R13 + 0x543A0003, // 004A LDINT R14 4 + 0x7C2C0600, // 004B CALL R11 3 + 0xB82E1600, // 004C GETNGBL R11 K11 + 0x8C2C170C, // 004D GETMET R11 R11 K12 + 0x5834000D, // 004E LDCONST R13 K13 + 0x543A0003, // 004F LDINT R14 4 + 0x7C2C0600, // 0050 CALL R11 3 + 0x8C2C0114, // 0051 GETMET R11 R0 K20 + 0x7C2C0200, // 0052 CALL R11 1 + 0xB8321600, // 0053 GETNGBL R12 K11 + 0x8C30190C, // 0054 GETMET R12 R12 K12 + 0x8C380B15, // 0055 GETMET R14 R5 K21 + 0x58400016, // 0056 LDCONST R16 K22 + 0x40460B17, // 0057 CONNECT R17 K5 K23 + 0x94441611, // 0058 GETIDX R17 R11 R17 + 0x544A0003, // 0059 LDINT R18 4 + 0x544E0005, // 005A LDINT R19 6 + 0x40482413, // 005B CONNECT R18 R18 R19 + 0x94481612, // 005C GETIDX R18 R11 R18 + 0x544E0006, // 005D LDINT R19 7 + 0x404C2718, // 005E CONNECT R19 R19 K24 + 0x944C1613, // 005F GETIDX R19 R11 R19 + 0x7C380A00, // 0060 CALL R14 5 + 0x583C0019, // 0061 LDCONST R15 K25 + 0x7C300600, // 0062 CALL R12 3 + 0x80000000, // 0063 RET 0 }) ) ); @@ -741,6 +918,1288 @@ be_local_closure(Matter_Device_stop, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: start_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_basic_commissioning, /* name */ + be_nested_proto( + 13, /* nstack */ + 8, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(millis), + /* K3 */ be_nested_str_weak(commissioning_iterations), + /* K4 */ be_nested_str_weak(commissioning_discriminator), + /* K5 */ be_nested_str_weak(commissioning_salt), + /* K6 */ be_nested_str_weak(commissioning_w0), + /* K7 */ be_nested_str_weak(commissioning_L), + /* K8 */ be_nested_str_weak(commissioning_admin_fabric), + /* K9 */ be_nested_str_weak(wifi), + /* K10 */ be_nested_str_weak(up), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(mdns_announce_PASE), + /* K13 */ be_nested_str_weak(add_rule), + /* K14 */ be_nested_str_weak(Wifi_X23Connected), + /* K15 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0xB8220200, // 0000 GETNGBL R8 K1 + 0x8C201102, // 0001 GETMET R8 R8 K2 + 0x7C200200, // 0002 CALL R8 1 + 0x542603E7, // 0003 LDINT R9 1000 + 0x08240209, // 0004 MUL R9 R1 R9 + 0x00201009, // 0005 ADD R8 R8 R9 + 0x90020008, // 0006 SETMBR R0 K0 R8 + 0x90020602, // 0007 SETMBR R0 K3 R2 + 0x90020803, // 0008 SETMBR R0 K4 R3 + 0x90020A04, // 0009 SETMBR R0 K5 R4 + 0x90020C05, // 000A SETMBR R0 K6 R5 + 0x90020E06, // 000B SETMBR R0 K7 R6 + 0x90021007, // 000C SETMBR R0 K8 R7 + 0xB8220200, // 000D GETNGBL R8 K1 + 0x8C201109, // 000E GETMET R8 R8 K9 + 0x7C200200, // 000F CALL R8 1 + 0x9420110A, // 0010 GETIDX R8 R8 K10 + 0x74220004, // 0011 JMPT R8 #0017 + 0xB8220200, // 0012 GETNGBL R8 K1 + 0x8C20110B, // 0013 GETMET R8 R8 K11 + 0x7C200200, // 0014 CALL R8 1 + 0x9420110A, // 0015 GETIDX R8 R8 K10 + 0x78220002, // 0016 JMPF R8 #001A + 0x8C20010C, // 0017 GETMET R8 R0 K12 + 0x7C200200, // 0018 CALL R8 1 + 0x7002000B, // 0019 JMP #0026 + 0xB8220200, // 001A GETNGBL R8 K1 + 0x8C20110D, // 001B GETMET R8 R8 K13 + 0x5828000E, // 001C LDCONST R10 K14 + 0x842C0000, // 001D CLOSURE R11 P0 + 0x5830000C, // 001E LDCONST R12 K12 + 0x7C200800, // 001F CALL R8 4 + 0xB8220200, // 0020 GETNGBL R8 K1 + 0x8C20110D, // 0021 GETMET R8 R8 K13 + 0x5828000F, // 0022 LDCONST R10 K15 + 0x842C0001, // 0023 CLOSURE R11 P1 + 0x5830000C, // 0024 LDCONST R12 K12 + 0x7C200800, // 0025 CALL R8 4 + 0xA0000000, // 0026 CLOSE R0 + 0x80000000, // 0027 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_qrcode_content +********************************************************************/ +be_local_closure(Matter_Device_compute_qrcode_content, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(resize), + /* K1 */ be_nested_str_weak(setbits), + /* K2 */ be_const_int(3), + /* K3 */ be_nested_str_weak(vendorid), + /* K4 */ be_nested_str_weak(productid), + /* K5 */ be_nested_str_weak(root_discriminator), + /* K6 */ be_nested_str_weak(root_passcode), + /* K7 */ be_const_int(134217727), + /* K8 */ be_nested_str_weak(MT_X3A), + /* K9 */ be_nested_str_weak(matter), + /* K10 */ be_nested_str_weak(Base38), + /* K11 */ be_nested_str_weak(encode), + }), + be_str_weak(compute_qrcode_content), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0x60040015, // 0000 GETGBL R1 G21 + 0x7C040000, // 0001 CALL R1 0 + 0x8C040300, // 0002 GETMET R1 R1 K0 + 0x540E000A, // 0003 LDINT R3 11 + 0x7C040400, // 0004 CALL R1 2 + 0x8C080301, // 0005 GETMET R2 R1 K1 + 0x58100002, // 0006 LDCONST R4 K2 + 0x5416000F, // 0007 LDINT R5 16 + 0x88180103, // 0008 GETMBR R6 R0 K3 + 0x7C080800, // 0009 CALL R2 4 + 0x8C080301, // 000A GETMET R2 R1 K1 + 0x54120012, // 000B LDINT R4 19 + 0x5416000F, // 000C LDINT R5 16 + 0x88180104, // 000D GETMBR R6 R0 K4 + 0x7C080800, // 000E CALL R2 4 + 0x8C080301, // 000F GETMET R2 R1 K1 + 0x54120024, // 0010 LDINT R4 37 + 0x54160007, // 0011 LDINT R5 8 + 0x541A0003, // 0012 LDINT R6 4 + 0x7C080800, // 0013 CALL R2 4 + 0x8C080301, // 0014 GETMET R2 R1 K1 + 0x5412002C, // 0015 LDINT R4 45 + 0x5416000B, // 0016 LDINT R5 12 + 0x88180105, // 0017 GETMBR R6 R0 K5 + 0x541E0FFE, // 0018 LDINT R7 4095 + 0x2C180C07, // 0019 AND R6 R6 R7 + 0x7C080800, // 001A CALL R2 4 + 0x8C080301, // 001B GETMET R2 R1 K1 + 0x54120038, // 001C LDINT R4 57 + 0x5416001A, // 001D LDINT R5 27 + 0x88180106, // 001E GETMBR R6 R0 K6 + 0x2C180D07, // 001F AND R6 R6 K7 + 0x7C080800, // 0020 CALL R2 4 + 0xB80A1200, // 0021 GETNGBL R2 K9 + 0x8808050A, // 0022 GETMBR R2 R2 K10 + 0x8C08050B, // 0023 GETMET R2 R2 K11 + 0x5C100200, // 0024 MOVE R4 R1 + 0x7C080400, // 0025 CALL R2 2 + 0x000A1002, // 0026 ADD R2 K8 R2 + 0x80040400, // 0027 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: sort_distinct +********************************************************************/ +be_local_closure(Matter_Device_sort_distinct, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_const_int(1), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_nested_str_weak(remove), + }), + be_str_weak(sort_distinct), + &be_const_str_solidified, + ( &(const binstruction[53]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080010, // 0001 GETGBL R2 G16 + 0x600C000C, // 0002 GETGBL R3 G12 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C0C0200, // 0004 CALL R3 1 + 0x040C0701, // 0005 SUB R3 R3 K1 + 0x400E0203, // 0006 CONNECT R3 K1 R3 + 0x7C080200, // 0007 CALL R2 1 + 0xA8020010, // 0008 EXBLK 0 #001A + 0x5C0C0400, // 0009 MOVE R3 R2 + 0x7C0C0000, // 000A CALL R3 0 + 0x94100003, // 000B GETIDX R4 R0 R3 + 0x5C140600, // 000C MOVE R5 R3 + 0x24180B02, // 000D GT R6 R5 K2 + 0x781A0008, // 000E JMPF R6 #0018 + 0x04180B01, // 000F SUB R6 R5 K1 + 0x94180006, // 0010 GETIDX R6 R0 R6 + 0x24180C04, // 0011 GT R6 R6 R4 + 0x781A0004, // 0012 JMPF R6 #0018 + 0x04180B01, // 0013 SUB R6 R5 K1 + 0x94180006, // 0014 GETIDX R6 R0 R6 + 0x98000A06, // 0015 SETIDX R0 R5 R6 + 0x04140B01, // 0016 SUB R5 R5 K1 + 0x7001FFF4, // 0017 JMP #000D + 0x98000A04, // 0018 SETIDX R0 R5 R4 + 0x7001FFEE, // 0019 JMP #0009 + 0x58080003, // 001A LDCONST R2 K3 + 0xAC080200, // 001B CATCH R2 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x58080001, // 001D LDCONST R2 K1 + 0x600C000C, // 001E GETGBL R3 G12 + 0x5C100000, // 001F MOVE R4 R0 + 0x7C0C0200, // 0020 CALL R3 1 + 0x180C0701, // 0021 LE R3 R3 K1 + 0x780E0000, // 0022 JMPF R3 #0024 + 0x80040000, // 0023 RET 1 R0 + 0x940C0102, // 0024 GETIDX R3 R0 K2 + 0x6010000C, // 0025 GETGBL R4 G12 + 0x5C140000, // 0026 MOVE R5 R0 + 0x7C100200, // 0027 CALL R4 1 + 0x14100404, // 0028 LT R4 R2 R4 + 0x78120009, // 0029 JMPF R4 #0034 + 0x94100002, // 002A GETIDX R4 R0 R2 + 0x1C100803, // 002B EQ R4 R4 R3 + 0x78120003, // 002C JMPF R4 #0031 + 0x8C100104, // 002D GETMET R4 R0 K4 + 0x5C180400, // 002E MOVE R6 R2 + 0x7C100400, // 002F CALL R4 2 + 0x70020001, // 0030 JMP #0033 + 0x940C0002, // 0031 GETIDX R3 R0 R2 + 0x00080501, // 0032 ADD R2 R2 K1 + 0x7001FFF0, // 0033 JMP #0025 + 0x80040000, // 0034 RET 1 R0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: finish_commissioning +********************************************************************/ +be_local_closure(Matter_Device_finish_commissioning, /* name */ + be_nested_proto( + 1, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(finish_commissioning), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: packet_ack +********************************************************************/ +be_local_closure(Matter_Device_packet_ack, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(packet_ack), + }), + be_str_weak(packet_ack), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: remove_fabric +********************************************************************/ +be_local_closure(Matter_Device_remove_fabric, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(im), + /* K2 */ be_nested_str_weak(subs), + /* K3 */ be_nested_str_weak(remove_by_fabric), + /* K4 */ be_nested_str_weak(sessions), + /* K5 */ be_nested_str_weak(remove_fabric), + /* K6 */ be_nested_str_weak(save_fabrics), + }), + be_str_weak(remove_fabric), + &be_const_str_solidified, + ( &(const binstruction[14]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x88080501, // 0001 GETMBR R2 R2 K1 + 0x88080502, // 0002 GETMBR R2 R2 K2 + 0x8C080503, // 0003 GETMET R2 R2 K3 + 0x5C100200, // 0004 MOVE R4 R1 + 0x7C080400, // 0005 CALL R2 2 + 0x88080104, // 0006 GETMBR R2 R0 K4 + 0x8C080505, // 0007 GETMET R2 R2 K5 + 0x5C100200, // 0008 MOVE R4 R1 + 0x7C080400, // 0009 CALL R2 2 + 0x88080104, // 000A GETMBR R2 R0 K4 + 0x8C080506, // 000B GETMET R2 R2 K6 + 0x7C080200, // 000C CALL R2 1 + 0x80000000, // 000D RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: save_param +********************************************************************/ +be_local_closure(Matter_Device_save_param, /* name */ + be_nested_proto( + 10, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(dump), + /* K2 */ be_nested_str_weak(distinguish), + /* K3 */ be_nested_str_weak(root_discriminator), + /* K4 */ be_nested_str_weak(passcode), + /* K5 */ be_nested_str_weak(root_passcode), + /* K6 */ be_nested_str_weak(ipv4only), + /* K7 */ be_nested_str_weak(string), + /* K8 */ be_nested_str_weak(FILENAME), + /* K9 */ be_nested_str_weak(w), + /* K10 */ be_nested_str_weak(write), + /* K11 */ be_nested_str_weak(close), + /* K12 */ be_nested_str_weak(tasmota), + /* K13 */ be_nested_str_weak(log), + /* K14 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), + /* K15 */ be_nested_str_weak(_X7C), + /* K16 */ be_const_int(2), + }), + be_str_weak(save_param), + &be_const_str_solidified, + ( &(const binstruction[45]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x60100013, // 0002 GETGBL R4 G19 + 0x7C100000, // 0003 CALL R4 0 + 0x88140103, // 0004 GETMBR R5 R0 K3 + 0x98120405, // 0005 SETIDX R4 K2 R5 + 0x88140105, // 0006 GETMBR R5 R0 K5 + 0x98120805, // 0007 SETIDX R4 K4 R5 + 0x88140106, // 0008 GETMBR R5 R0 K6 + 0x98120C05, // 0009 SETIDX R4 K6 R5 + 0x7C080400, // 000A CALL R2 2 + 0xA802000D, // 000B EXBLK 0 #001A + 0xA40E0E00, // 000C IMPORT R3 K7 + 0x60100011, // 000D GETGBL R4 G17 + 0x88140108, // 000E GETMBR R5 R0 K8 + 0x58180009, // 000F LDCONST R6 K9 + 0x7C100400, // 0010 CALL R4 2 + 0x8C14090A, // 0011 GETMET R5 R4 K10 + 0x5C1C0400, // 0012 MOVE R7 R2 + 0x7C140400, // 0013 CALL R5 2 + 0x8C14090B, // 0014 GETMET R5 R4 K11 + 0x7C140200, // 0015 CALL R5 1 + 0xA8040001, // 0016 EXBLK 1 1 + 0x80040400, // 0017 RET 1 R2 + 0xA8040001, // 0018 EXBLK 1 1 + 0x70020011, // 0019 JMP #002C + 0xAC0C0002, // 001A CATCH R3 0 2 + 0x7002000E, // 001B JMP #002B + 0xB8161800, // 001C GETNGBL R5 K12 + 0x8C140B0D, // 001D GETMET R5 R5 K13 + 0x601C0008, // 001E GETGBL R7 G8 + 0x5C200600, // 001F MOVE R8 R3 + 0x7C1C0200, // 0020 CALL R7 1 + 0x001E1C07, // 0021 ADD R7 K14 R7 + 0x001C0F0F, // 0022 ADD R7 R7 K15 + 0x60200008, // 0023 GETGBL R8 G8 + 0x5C240800, // 0024 MOVE R9 R4 + 0x7C200200, // 0025 CALL R8 1 + 0x001C0E08, // 0026 ADD R7 R7 R8 + 0x58200010, // 0027 LDCONST R8 K16 + 0x7C140600, // 0028 CALL R5 3 + 0x80040400, // 0029 RET 1 R2 + 0x70020000, // 002A JMP #002C + 0xB0080000, // 002B RAISE 2 R0 R0 + 0x80000000, // 002C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_root_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_root_basic_commissioning, /* name */ + be_nested_proto( + 11, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(PASE_TIMEOUT), + /* K1 */ be_nested_str_weak(compute_pbkdf), + /* K2 */ be_nested_str_weak(root_passcode), + /* K3 */ be_nested_str_weak(root_iterations), + /* K4 */ be_nested_str_weak(root_salt), + /* K5 */ be_nested_str_weak(start_basic_commissioning), + /* K6 */ be_nested_str_weak(root_discriminator), + /* K7 */ be_nested_str_weak(root_w0), + /* K8 */ be_nested_str_weak(root_L), + }), + be_str_weak(start_root_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[19]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x780A0000, // 0002 JMPF R2 #0004 + 0x88040100, // 0003 GETMBR R1 R0 K0 + 0x8C080101, // 0004 GETMET R2 R0 K1 + 0x88100102, // 0005 GETMBR R4 R0 K2 + 0x88140103, // 0006 GETMBR R5 R0 K3 + 0x88180104, // 0007 GETMBR R6 R0 K4 + 0x7C080800, // 0008 CALL R2 4 + 0x8C080105, // 0009 GETMET R2 R0 K5 + 0x5C100200, // 000A MOVE R4 R1 + 0x88140103, // 000B GETMBR R5 R0 K3 + 0x88180106, // 000C GETMBR R6 R0 K6 + 0x881C0104, // 000D GETMBR R7 R0 K4 + 0x88200107, // 000E GETMBR R8 R0 K7 + 0x88240108, // 000F GETMBR R9 R0 K8 + 0x4C280000, // 0010 LDNIL R10 + 0x7C081000, // 0011 CALL R2 8 + 0x80000000, // 0012 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: load_param +********************************************************************/ +be_local_closure(Matter_Device_load_param, /* name */ + be_nested_proto( + 12, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[24]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(crypto), + /* K2 */ be_nested_str_weak(FILENAME), + /* K3 */ be_nested_str_weak(read), + /* K4 */ be_nested_str_weak(close), + /* K5 */ be_nested_str_weak(json), + /* K6 */ be_nested_str_weak(load), + /* K7 */ be_nested_str_weak(root_discriminator), + /* K8 */ be_nested_str_weak(find), + /* K9 */ be_nested_str_weak(distinguish), + /* K10 */ be_nested_str_weak(root_passcode), + /* K11 */ be_nested_str_weak(passcode), + /* K12 */ be_nested_str_weak(ipv4only), + /* K13 */ be_nested_str_weak(io_error), + /* K14 */ be_nested_str_weak(tasmota), + /* K15 */ be_nested_str_weak(log), + /* K16 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), + /* K17 */ be_nested_str_weak(_X7C), + /* K18 */ be_const_int(2), + /* K19 */ be_nested_str_weak(random), + /* K20 */ be_nested_str_weak(get), + /* K21 */ be_const_int(0), + /* K22 */ be_nested_str_weak(PASSCODE_DEFAULT), + /* K23 */ be_nested_str_weak(save_param), + }), + be_str_weak(load_param), + &be_const_str_solidified, + ( &(const binstruction[79]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA802001D, // 0002 EXBLK 0 #0021 + 0x600C0011, // 0003 GETGBL R3 G17 + 0x88100102, // 0004 GETMBR R4 R0 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C100703, // 0006 GETMET R4 R3 K3 + 0x7C100200, // 0007 CALL R4 1 + 0x8C140704, // 0008 GETMET R5 R3 K4 + 0x7C140200, // 0009 CALL R5 1 + 0xA4160A00, // 000A IMPORT R5 K5 + 0x8C180B06, // 000B GETMET R6 R5 K6 + 0x5C200800, // 000C MOVE R8 R4 + 0x7C180400, // 000D CALL R6 2 + 0x8C1C0D08, // 000E GETMET R7 R6 K8 + 0x58240009, // 000F LDCONST R9 K9 + 0x88280107, // 0010 GETMBR R10 R0 K7 + 0x7C1C0600, // 0011 CALL R7 3 + 0x90020E07, // 0012 SETMBR R0 K7 R7 + 0x8C1C0D08, // 0013 GETMET R7 R6 K8 + 0x5824000B, // 0014 LDCONST R9 K11 + 0x8828010A, // 0015 GETMBR R10 R0 K10 + 0x7C1C0600, // 0016 CALL R7 3 + 0x90021407, // 0017 SETMBR R0 K10 R7 + 0x601C0017, // 0018 GETGBL R7 G23 + 0x8C200D08, // 0019 GETMET R8 R6 K8 + 0x5828000C, // 001A LDCONST R10 K12 + 0x502C0000, // 001B LDBOOL R11 0 0 + 0x7C200600, // 001C CALL R8 3 + 0x7C1C0200, // 001D CALL R7 1 + 0x90021807, // 001E SETMBR R0 K12 R7 + 0xA8040001, // 001F EXBLK 1 1 + 0x70020012, // 0020 JMP #0034 + 0xAC0C0002, // 0021 CATCH R3 0 2 + 0x7002000F, // 0022 JMP #0033 + 0x2014070D, // 0023 NE R5 R3 K13 + 0x7816000C, // 0024 JMPF R5 #0032 + 0xB8161C00, // 0025 GETNGBL R5 K14 + 0x8C140B0F, // 0026 GETMET R5 R5 K15 + 0x601C0008, // 0027 GETGBL R7 G8 + 0x5C200600, // 0028 MOVE R8 R3 + 0x7C1C0200, // 0029 CALL R7 1 + 0x001E2007, // 002A ADD R7 K16 R7 + 0x001C0F11, // 002B ADD R7 R7 K17 + 0x60200008, // 002C GETGBL R8 G8 + 0x5C240800, // 002D MOVE R9 R4 + 0x7C200200, // 002E CALL R8 1 + 0x001C0E08, // 002F ADD R7 R7 R8 + 0x58200012, // 0030 LDCONST R8 K18 + 0x7C140600, // 0031 CALL R5 3 + 0x70020000, // 0032 JMP #0034 + 0xB0080000, // 0033 RAISE 2 R0 R0 + 0x500C0000, // 0034 LDBOOL R3 0 0 + 0x88100107, // 0035 GETMBR R4 R0 K7 + 0x4C140000, // 0036 LDNIL R5 + 0x1C100805, // 0037 EQ R4 R4 R5 + 0x7812000A, // 0038 JMPF R4 #0044 + 0x8C100513, // 0039 GETMET R4 R2 K19 + 0x58180012, // 003A LDCONST R6 K18 + 0x7C100400, // 003B CALL R4 2 + 0x8C100914, // 003C GETMET R4 R4 K20 + 0x58180015, // 003D LDCONST R6 K21 + 0x581C0012, // 003E LDCONST R7 K18 + 0x7C100600, // 003F CALL R4 3 + 0x54160FFE, // 0040 LDINT R5 4095 + 0x2C100805, // 0041 AND R4 R4 R5 + 0x90020E04, // 0042 SETMBR R0 K7 R4 + 0x500C0200, // 0043 LDBOOL R3 1 0 + 0x8810010A, // 0044 GETMBR R4 R0 K10 + 0x4C140000, // 0045 LDNIL R5 + 0x1C100805, // 0046 EQ R4 R4 R5 + 0x78120002, // 0047 JMPF R4 #004B + 0x88100116, // 0048 GETMBR R4 R0 K22 + 0x90021404, // 0049 SETMBR R0 K10 R4 + 0x500C0200, // 004A LDBOOL R3 1 0 + 0x780E0001, // 004B JMPF R3 #004E + 0x8C100117, // 004C GETMET R4 R0 K23 + 0x7C100200, // 004D CALL R4 1 + 0x80000000, // 004E RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: attribute_updated +********************************************************************/ +be_local_closure(Matter_Device_attribute_updated, /* name */ + be_nested_proto( + 10, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(Path), + /* K2 */ be_nested_str_weak(endpoint), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_nested_str_weak(message_handler), + /* K6 */ be_nested_str_weak(im), + /* K7 */ be_nested_str_weak(subs), + /* K8 */ be_nested_str_weak(attribute_updated_ctx), + }), + be_str_weak(attribute_updated), + &be_const_str_solidified, + ( &(const binstruction[18]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x1C140805, // 0001 EQ R5 R4 R5 + 0x78160000, // 0002 JMPF R5 #0004 + 0x50100000, // 0003 LDBOOL R4 0 0 + 0xB8160000, // 0004 GETNGBL R5 K0 + 0x8C140B01, // 0005 GETMET R5 R5 K1 + 0x7C140200, // 0006 CALL R5 1 + 0x90160401, // 0007 SETMBR R5 K2 R1 + 0x90160602, // 0008 SETMBR R5 K3 R2 + 0x90160803, // 0009 SETMBR R5 K4 R3 + 0x88180105, // 000A GETMBR R6 R0 K5 + 0x88180D06, // 000B GETMBR R6 R6 K6 + 0x88180D07, // 000C GETMBR R6 R6 K7 + 0x8C180D08, // 000D GETMET R6 R6 K8 + 0x5C200A00, // 000E MOVE R8 R5 + 0x5C240800, // 000F MOVE R9 R4 + 0x7C180600, // 0010 CALL R6 3 + 0x80000000, // 0011 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_PASE +********************************************************************/ +be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ + be_nested_proto( + 15, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[41]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(VP), + /* K3 */ be_nested_str_weak(vendorid), + /* K4 */ be_nested_str_weak(_X2B), + /* K5 */ be_nested_str_weak(productid), + /* K6 */ be_nested_str_weak(D), + /* K7 */ be_nested_str_weak(commissioning_discriminator), + /* K8 */ be_nested_str_weak(CM), + /* K9 */ be_const_int(1), + /* K10 */ be_nested_str_weak(T), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(SII), + /* K13 */ be_nested_str_weak(SAI), + /* K14 */ be_nested_str_weak(hostname_eth), + /* K15 */ be_nested_str_weak(tasmota), + /* K16 */ be_nested_str_weak(log), + /* K17 */ be_nested_str_weak(format), + /* K18 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25i_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K19 */ be_nested_str_weak(_matterc), + /* K20 */ be_nested_str_weak(_udp), + /* K21 */ be_nested_str_weak(commissioning_instance_eth), + /* K22 */ be_const_int(3), + /* K23 */ be_nested_str_weak(add_service), + /* K24 */ be_nested_str_weak(mdns_pase_eth), + /* K25 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K26 */ be_nested_str_weak(eth), + /* K27 */ be_const_int(2), + /* K28 */ be_nested_str_weak(_L), + /* K29 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K30 */ be_nested_str_weak(add_subtype), + /* K31 */ be_nested_str_weak(_S), + /* K32 */ be_nested_str_weak(_V), + /* K33 */ be_nested_str_weak(_CM1), + /* K34 */ be_nested_str_weak(hostname_wifi), + /* K35 */ be_nested_str_weak(commissioning_instance_wifi), + /* K36 */ be_nested_str_weak(mdns_pase_wifi), + /* K37 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K38 */ be_nested_str_weak(wifi), + /* K39 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K40 */ be_nested_str_weak(_X7C), + }), + be_str_weak(mdns_announce_PASE), + &be_const_str_solidified, + ( &(const binstruction[254]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x600C0013, // 0002 GETGBL R3 G19 + 0x7C0C0000, // 0003 CALL R3 0 + 0x60100008, // 0004 GETGBL R4 G8 + 0x88140103, // 0005 GETMBR R5 R0 K3 + 0x7C100200, // 0006 CALL R4 1 + 0x00100904, // 0007 ADD R4 R4 K4 + 0x60140008, // 0008 GETGBL R5 G8 + 0x88180105, // 0009 GETMBR R6 R0 K5 + 0x7C140200, // 000A CALL R5 1 + 0x00100805, // 000B ADD R4 R4 R5 + 0x980E0404, // 000C SETIDX R3 K2 R4 + 0x88100107, // 000D GETMBR R4 R0 K7 + 0x980E0C04, // 000E SETIDX R3 K6 R4 + 0x980E1109, // 000F SETIDX R3 K8 K9 + 0x980E150B, // 0010 SETIDX R3 K10 K11 + 0x54121387, // 0011 LDINT R4 5000 + 0x980E1804, // 0012 SETIDX R3 K12 R4 + 0x5412012B, // 0013 LDINT R4 300 + 0x980E1A04, // 0014 SETIDX R3 K13 R4 + 0xA80200D5, // 0015 EXBLK 0 #00EC + 0x8810010E, // 0016 GETMBR R4 R0 K14 + 0x78120067, // 0017 JMPF R4 #0080 + 0xB8121E00, // 0018 GETNGBL R4 K15 + 0x8C100910, // 0019 GETMET R4 R4 K16 + 0x8C180511, // 001A GETMET R6 R2 K17 + 0x58200012, // 001B LDCONST R8 K18 + 0x58240013, // 001C LDCONST R9 K19 + 0x58280014, // 001D LDCONST R10 K20 + 0x542E15A3, // 001E LDINT R11 5540 + 0x60300008, // 001F GETGBL R12 G8 + 0x5C340600, // 0020 MOVE R13 R3 + 0x7C300200, // 0021 CALL R12 1 + 0x88340115, // 0022 GETMBR R13 R0 K21 + 0x8838010E, // 0023 GETMBR R14 R0 K14 + 0x7C181000, // 0024 CALL R6 8 + 0x581C0016, // 0025 LDCONST R7 K22 + 0x7C100600, // 0026 CALL R4 3 + 0x8C100317, // 0027 GETMET R4 R1 K23 + 0x58180013, // 0028 LDCONST R6 K19 + 0x581C0014, // 0029 LDCONST R7 K20 + 0x542215A3, // 002A LDINT R8 5540 + 0x5C240600, // 002B MOVE R9 R3 + 0x88280115, // 002C GETMBR R10 R0 K21 + 0x882C010E, // 002D GETMBR R11 R0 K14 + 0x7C100E00, // 002E CALL R4 7 + 0x50100200, // 002F LDBOOL R4 1 0 + 0x90023004, // 0030 SETMBR R0 K24 R4 + 0xB8121E00, // 0031 GETNGBL R4 K15 + 0x8C100910, // 0032 GETMET R4 R4 K16 + 0x8C180511, // 0033 GETMET R6 R2 K17 + 0x58200019, // 0034 LDCONST R8 K25 + 0x5824001A, // 0035 LDCONST R9 K26 + 0x88280115, // 0036 GETMBR R10 R0 K21 + 0x882C010E, // 0037 GETMBR R11 R0 K14 + 0x7C180A00, // 0038 CALL R6 5 + 0x581C001B, // 0039 LDCONST R7 K27 + 0x7C100600, // 003A CALL R4 3 + 0x60100008, // 003B GETGBL R4 G8 + 0x88140107, // 003C GETMBR R5 R0 K7 + 0x541A0FFE, // 003D LDINT R6 4095 + 0x2C140A06, // 003E AND R5 R5 R6 + 0x7C100200, // 003F CALL R4 1 + 0x00123804, // 0040 ADD R4 K28 R4 + 0xB8161E00, // 0041 GETNGBL R5 K15 + 0x8C140B10, // 0042 GETMET R5 R5 K16 + 0x001E3A04, // 0043 ADD R7 K29 R4 + 0x5820001B, // 0044 LDCONST R8 K27 + 0x7C140600, // 0045 CALL R5 3 + 0x8C14031E, // 0046 GETMET R5 R1 K30 + 0x581C0013, // 0047 LDCONST R7 K19 + 0x58200014, // 0048 LDCONST R8 K20 + 0x88240115, // 0049 GETMBR R9 R0 K21 + 0x8828010E, // 004A GETMBR R10 R0 K14 + 0x5C2C0800, // 004B MOVE R11 R4 + 0x7C140C00, // 004C CALL R5 6 + 0x60140008, // 004D GETGBL R5 G8 + 0x88180107, // 004E GETMBR R6 R0 K7 + 0x541E0EFF, // 004F LDINT R7 3840 + 0x2C180C07, // 0050 AND R6 R6 R7 + 0x541E0007, // 0051 LDINT R7 8 + 0x3C180C07, // 0052 SHR R6 R6 R7 + 0x7C140200, // 0053 CALL R5 1 + 0x00163E05, // 0054 ADD R5 K31 R5 + 0x5C100A00, // 0055 MOVE R4 R5 + 0xB8161E00, // 0056 GETNGBL R5 K15 + 0x8C140B10, // 0057 GETMET R5 R5 K16 + 0x001E3A04, // 0058 ADD R7 K29 R4 + 0x5820001B, // 0059 LDCONST R8 K27 + 0x7C140600, // 005A CALL R5 3 + 0x8C14031E, // 005B GETMET R5 R1 K30 + 0x581C0013, // 005C LDCONST R7 K19 + 0x58200014, // 005D LDCONST R8 K20 + 0x88240115, // 005E GETMBR R9 R0 K21 + 0x8828010E, // 005F GETMBR R10 R0 K14 + 0x5C2C0800, // 0060 MOVE R11 R4 + 0x7C140C00, // 0061 CALL R5 6 + 0x60140008, // 0062 GETGBL R5 G8 + 0x88180103, // 0063 GETMBR R6 R0 K3 + 0x7C140200, // 0064 CALL R5 1 + 0x00164005, // 0065 ADD R5 K32 R5 + 0x5C100A00, // 0066 MOVE R4 R5 + 0xB8161E00, // 0067 GETNGBL R5 K15 + 0x8C140B10, // 0068 GETMET R5 R5 K16 + 0x001E3A04, // 0069 ADD R7 K29 R4 + 0x5820001B, // 006A LDCONST R8 K27 + 0x7C140600, // 006B CALL R5 3 + 0x8C14031E, // 006C GETMET R5 R1 K30 + 0x581C0013, // 006D LDCONST R7 K19 + 0x58200014, // 006E LDCONST R8 K20 + 0x88240115, // 006F GETMBR R9 R0 K21 + 0x8828010E, // 0070 GETMBR R10 R0 K14 + 0x5C2C0800, // 0071 MOVE R11 R4 + 0x7C140C00, // 0072 CALL R5 6 + 0x58100021, // 0073 LDCONST R4 K33 + 0xB8161E00, // 0074 GETNGBL R5 K15 + 0x8C140B10, // 0075 GETMET R5 R5 K16 + 0x001E3A04, // 0076 ADD R7 K29 R4 + 0x5820001B, // 0077 LDCONST R8 K27 + 0x7C140600, // 0078 CALL R5 3 + 0x8C14031E, // 0079 GETMET R5 R1 K30 + 0x581C0013, // 007A LDCONST R7 K19 + 0x58200014, // 007B LDCONST R8 K20 + 0x88240115, // 007C GETMBR R9 R0 K21 + 0x8828010E, // 007D GETMBR R10 R0 K14 + 0x5C2C0800, // 007E MOVE R11 R4 + 0x7C140C00, // 007F CALL R5 6 + 0x88100122, // 0080 GETMBR R4 R0 K34 + 0x78120067, // 0081 JMPF R4 #00EA + 0xB8121E00, // 0082 GETNGBL R4 K15 + 0x8C100910, // 0083 GETMET R4 R4 K16 + 0x8C180511, // 0084 GETMET R6 R2 K17 + 0x58200012, // 0085 LDCONST R8 K18 + 0x58240013, // 0086 LDCONST R9 K19 + 0x58280014, // 0087 LDCONST R10 K20 + 0x542E15A3, // 0088 LDINT R11 5540 + 0x60300008, // 0089 GETGBL R12 G8 + 0x5C340600, // 008A MOVE R13 R3 + 0x7C300200, // 008B CALL R12 1 + 0x88340123, // 008C GETMBR R13 R0 K35 + 0x88380122, // 008D GETMBR R14 R0 K34 + 0x7C181000, // 008E CALL R6 8 + 0x581C0016, // 008F LDCONST R7 K22 + 0x7C100600, // 0090 CALL R4 3 + 0x8C100317, // 0091 GETMET R4 R1 K23 + 0x58180013, // 0092 LDCONST R6 K19 + 0x581C0014, // 0093 LDCONST R7 K20 + 0x542215A3, // 0094 LDINT R8 5540 + 0x5C240600, // 0095 MOVE R9 R3 + 0x88280123, // 0096 GETMBR R10 R0 K35 + 0x882C0122, // 0097 GETMBR R11 R0 K34 + 0x7C100E00, // 0098 CALL R4 7 + 0x50100200, // 0099 LDBOOL R4 1 0 + 0x90024804, // 009A SETMBR R0 K36 R4 + 0xB8121E00, // 009B GETNGBL R4 K15 + 0x8C100910, // 009C GETMET R4 R4 K16 + 0x8C180511, // 009D GETMET R6 R2 K17 + 0x58200025, // 009E LDCONST R8 K37 + 0x58240026, // 009F LDCONST R9 K38 + 0x88280123, // 00A0 GETMBR R10 R0 K35 + 0x882C0122, // 00A1 GETMBR R11 R0 K34 + 0x7C180A00, // 00A2 CALL R6 5 + 0x581C001B, // 00A3 LDCONST R7 K27 + 0x7C100600, // 00A4 CALL R4 3 + 0x60100008, // 00A5 GETGBL R4 G8 + 0x88140107, // 00A6 GETMBR R5 R0 K7 + 0x541A0FFE, // 00A7 LDINT R6 4095 + 0x2C140A06, // 00A8 AND R5 R5 R6 + 0x7C100200, // 00A9 CALL R4 1 + 0x00123804, // 00AA ADD R4 K28 R4 + 0xB8161E00, // 00AB GETNGBL R5 K15 + 0x8C140B10, // 00AC GETMET R5 R5 K16 + 0x001E3A04, // 00AD ADD R7 K29 R4 + 0x5820001B, // 00AE LDCONST R8 K27 + 0x7C140600, // 00AF CALL R5 3 + 0x8C14031E, // 00B0 GETMET R5 R1 K30 + 0x581C0013, // 00B1 LDCONST R7 K19 + 0x58200014, // 00B2 LDCONST R8 K20 + 0x88240123, // 00B3 GETMBR R9 R0 K35 + 0x88280122, // 00B4 GETMBR R10 R0 K34 + 0x5C2C0800, // 00B5 MOVE R11 R4 + 0x7C140C00, // 00B6 CALL R5 6 + 0x60140008, // 00B7 GETGBL R5 G8 + 0x88180107, // 00B8 GETMBR R6 R0 K7 + 0x541E0EFF, // 00B9 LDINT R7 3840 + 0x2C180C07, // 00BA AND R6 R6 R7 + 0x541E0007, // 00BB LDINT R7 8 + 0x3C180C07, // 00BC SHR R6 R6 R7 + 0x7C140200, // 00BD CALL R5 1 + 0x00163E05, // 00BE ADD R5 K31 R5 + 0x5C100A00, // 00BF MOVE R4 R5 + 0xB8161E00, // 00C0 GETNGBL R5 K15 + 0x8C140B10, // 00C1 GETMET R5 R5 K16 + 0x001E3A04, // 00C2 ADD R7 K29 R4 + 0x5820001B, // 00C3 LDCONST R8 K27 + 0x7C140600, // 00C4 CALL R5 3 + 0x8C14031E, // 00C5 GETMET R5 R1 K30 + 0x581C0013, // 00C6 LDCONST R7 K19 + 0x58200014, // 00C7 LDCONST R8 K20 + 0x88240123, // 00C8 GETMBR R9 R0 K35 + 0x88280122, // 00C9 GETMBR R10 R0 K34 + 0x5C2C0800, // 00CA MOVE R11 R4 + 0x7C140C00, // 00CB CALL R5 6 + 0x60140008, // 00CC GETGBL R5 G8 + 0x88180103, // 00CD GETMBR R6 R0 K3 + 0x7C140200, // 00CE CALL R5 1 + 0x00164005, // 00CF ADD R5 K32 R5 + 0x5C100A00, // 00D0 MOVE R4 R5 + 0xB8161E00, // 00D1 GETNGBL R5 K15 + 0x8C140B10, // 00D2 GETMET R5 R5 K16 + 0x001E3A04, // 00D3 ADD R7 K29 R4 + 0x5820001B, // 00D4 LDCONST R8 K27 + 0x7C140600, // 00D5 CALL R5 3 + 0x8C14031E, // 00D6 GETMET R5 R1 K30 + 0x581C0013, // 00D7 LDCONST R7 K19 + 0x58200014, // 00D8 LDCONST R8 K20 + 0x88240123, // 00D9 GETMBR R9 R0 K35 + 0x88280122, // 00DA GETMBR R10 R0 K34 + 0x5C2C0800, // 00DB MOVE R11 R4 + 0x7C140C00, // 00DC CALL R5 6 + 0x58100021, // 00DD LDCONST R4 K33 + 0xB8161E00, // 00DE GETNGBL R5 K15 + 0x8C140B10, // 00DF GETMET R5 R5 K16 + 0x001E3A04, // 00E0 ADD R7 K29 R4 + 0x5820001B, // 00E1 LDCONST R8 K27 + 0x7C140600, // 00E2 CALL R5 3 + 0x8C14031E, // 00E3 GETMET R5 R1 K30 + 0x581C0013, // 00E4 LDCONST R7 K19 + 0x58200014, // 00E5 LDCONST R8 K20 + 0x88240123, // 00E6 GETMBR R9 R0 K35 + 0x88280122, // 00E7 GETMBR R10 R0 K34 + 0x5C2C0800, // 00E8 MOVE R11 R4 + 0x7C140C00, // 00E9 CALL R5 6 + 0xA8040001, // 00EA EXBLK 1 1 + 0x70020010, // 00EB JMP #00FD + 0xAC100002, // 00EC CATCH R4 0 2 + 0x7002000D, // 00ED JMP #00FC + 0xB81A1E00, // 00EE GETNGBL R6 K15 + 0x8C180D10, // 00EF GETMET R6 R6 K16 + 0x60200008, // 00F0 GETGBL R8 G8 + 0x5C240800, // 00F1 MOVE R9 R4 + 0x7C200200, // 00F2 CALL R8 1 + 0x00224E08, // 00F3 ADD R8 K39 R8 + 0x00201128, // 00F4 ADD R8 R8 K40 + 0x60240008, // 00F5 GETGBL R9 G8 + 0x5C280A00, // 00F6 MOVE R10 R5 + 0x7C240200, // 00F7 CALL R9 1 + 0x00201009, // 00F8 ADD R8 R8 R9 + 0x5824001B, // 00F9 LDCONST R9 K27 + 0x7C180600, // 00FA CALL R6 3 + 0x70020000, // 00FB JMP #00FD + 0xB0080000, // 00FC RAISE 2 R0 R0 + 0x80000000, // 00FD RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_commissioning_complete +********************************************************************/ +be_local_closure(Matter_Device_start_commissioning_complete, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(log), + /* K2 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20Commissioning_X20complete_X20_X2A_X2A_X2A), + /* K3 */ be_const_int(2), + /* K4 */ be_nested_str_weak(stop_basic_commissioning), + }), + be_str_weak(start_commissioning_complete), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C080600, // 0004 CALL R2 3 + 0x8C080104, // 0005 GETMET R2 R0 K4 + 0x7C080200, // 0006 CALL R2 1 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: msg_send +********************************************************************/ +be_local_closure(Matter_Device_msg_send, /* name */ + be_nested_proto( + 11, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(send_response), + }), + be_str_weak(msg_send), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88140100, // 0000 GETMBR R5 R0 K0 + 0x8C140B01, // 0001 GETMET R5 R5 K1 + 0x5C1C0200, // 0002 MOVE R7 R1 + 0x5C200400, // 0003 MOVE R8 R2 + 0x5C240600, // 0004 MOVE R9 R3 + 0x5C280800, // 0005 MOVE R10 R4 + 0x7C140A00, // 0006 CALL R5 5 + 0x80040A00, // 0007 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_op_discovery +********************************************************************/ +be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ + be_nested_proto( + 15, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[29]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(copy), + /* K4 */ be_nested_str_weak(reverse), + /* K5 */ be_nested_str_weak(get_fabric_compressed), + /* K6 */ be_nested_str_weak(tohex), + /* K7 */ be_nested_str_weak(_X2D), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(log), + /* K10 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), + /* K11 */ be_const_int(2), + /* K12 */ be_nested_str_weak(eth), + /* K13 */ be_nested_str_weak(find), + /* K14 */ be_nested_str_weak(up), + /* K15 */ be_nested_str_weak(format), + /* K16 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K17 */ be_nested_str_weak(hostname_eth), + /* K18 */ be_const_int(3), + /* K19 */ be_nested_str_weak(add_service), + /* K20 */ be_nested_str_weak(_matter), + /* K21 */ be_nested_str_weak(_tcp), + /* K22 */ be_nested_str_weak(_I), + /* K23 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K24 */ be_nested_str_weak(add_subtype), + /* K25 */ be_nested_str_weak(wifi), + /* K26 */ be_nested_str_weak(hostname_wifi), + /* K27 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K28 */ be_nested_str_weak(_X7C), + }), + be_str_weak(mdns_announce_op_discovery), + &be_const_str_solidified, + ( &(const binstruction[122]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA8020064, // 0002 EXBLK 0 #0068 + 0x8C100302, // 0003 GETMET R4 R1 K2 + 0x7C100200, // 0004 CALL R4 1 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x7C100200, // 0006 CALL R4 1 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140305, // 0009 GETMET R5 R1 K5 + 0x7C140200, // 000A CALL R5 1 + 0x8C180B06, // 000B GETMET R6 R5 K6 + 0x7C180200, // 000C CALL R6 1 + 0x00180D07, // 000D ADD R6 R6 K7 + 0x8C1C0906, // 000E GETMET R7 R4 K6 + 0x7C1C0200, // 000F CALL R7 1 + 0x00180C07, // 0010 ADD R6 R6 R7 + 0xB81E1000, // 0011 GETNGBL R7 K8 + 0x8C1C0F09, // 0012 GETMET R7 R7 K9 + 0x00261406, // 0013 ADD R9 K10 R6 + 0x5828000B, // 0014 LDCONST R10 K11 + 0x7C1C0600, // 0015 CALL R7 3 + 0xB81E1000, // 0016 GETNGBL R7 K8 + 0x8C1C0F0C, // 0017 GETMET R7 R7 K12 + 0x7C1C0200, // 0018 CALL R7 1 + 0x8C1C0F0D, // 0019 GETMET R7 R7 K13 + 0x5824000E, // 001A LDCONST R9 K14 + 0x7C1C0400, // 001B CALL R7 2 + 0x781E0020, // 001C JMPF R7 #003E + 0xB81E1000, // 001D GETNGBL R7 K8 + 0x8C1C0F09, // 001E GETMET R7 R7 K9 + 0x8C24070F, // 001F GETMET R9 R3 K15 + 0x582C0010, // 0020 LDCONST R11 K16 + 0x5830000C, // 0021 LDCONST R12 K12 + 0x5C340C00, // 0022 MOVE R13 R6 + 0x88380111, // 0023 GETMBR R14 R0 K17 + 0x7C240A00, // 0024 CALL R9 5 + 0x58280012, // 0025 LDCONST R10 K18 + 0x7C1C0600, // 0026 CALL R7 3 + 0x8C1C0513, // 0027 GETMET R7 R2 K19 + 0x58240014, // 0028 LDCONST R9 K20 + 0x58280015, // 0029 LDCONST R10 K21 + 0x542E15A3, // 002A LDINT R11 5540 + 0x4C300000, // 002B LDNIL R12 + 0x5C340C00, // 002C MOVE R13 R6 + 0x88380111, // 002D GETMBR R14 R0 K17 + 0x7C1C0E00, // 002E CALL R7 7 + 0x8C1C0B06, // 002F GETMET R7 R5 K6 + 0x7C1C0200, // 0030 CALL R7 1 + 0x001E2C07, // 0031 ADD R7 K22 R7 + 0xB8221000, // 0032 GETNGBL R8 K8 + 0x8C201109, // 0033 GETMET R8 R8 K9 + 0x002A2E07, // 0034 ADD R10 K23 R7 + 0x582C0012, // 0035 LDCONST R11 K18 + 0x7C200600, // 0036 CALL R8 3 + 0x8C200518, // 0037 GETMET R8 R2 K24 + 0x58280014, // 0038 LDCONST R10 K20 + 0x582C0015, // 0039 LDCONST R11 K21 + 0x5C300C00, // 003A MOVE R12 R6 + 0x88340111, // 003B GETMBR R13 R0 K17 + 0x5C380E00, // 003C MOVE R14 R7 + 0x7C200C00, // 003D CALL R8 6 + 0xB81E1000, // 003E GETNGBL R7 K8 + 0x8C1C0F19, // 003F GETMET R7 R7 K25 + 0x7C1C0200, // 0040 CALL R7 1 + 0x8C1C0F0D, // 0041 GETMET R7 R7 K13 + 0x5824000E, // 0042 LDCONST R9 K14 + 0x7C1C0400, // 0043 CALL R7 2 + 0x781E0020, // 0044 JMPF R7 #0066 + 0xB81E1000, // 0045 GETNGBL R7 K8 + 0x8C1C0F09, // 0046 GETMET R7 R7 K9 + 0x8C24070F, // 0047 GETMET R9 R3 K15 + 0x582C0010, // 0048 LDCONST R11 K16 + 0x58300019, // 0049 LDCONST R12 K25 + 0x5C340C00, // 004A MOVE R13 R6 + 0x8838011A, // 004B GETMBR R14 R0 K26 + 0x7C240A00, // 004C CALL R9 5 + 0x58280012, // 004D LDCONST R10 K18 + 0x7C1C0600, // 004E CALL R7 3 + 0x8C1C0513, // 004F GETMET R7 R2 K19 + 0x58240014, // 0050 LDCONST R9 K20 + 0x58280015, // 0051 LDCONST R10 K21 + 0x542E15A3, // 0052 LDINT R11 5540 + 0x4C300000, // 0053 LDNIL R12 + 0x5C340C00, // 0054 MOVE R13 R6 + 0x8838011A, // 0055 GETMBR R14 R0 K26 + 0x7C1C0E00, // 0056 CALL R7 7 + 0x8C1C0B06, // 0057 GETMET R7 R5 K6 + 0x7C1C0200, // 0058 CALL R7 1 + 0x001E2C07, // 0059 ADD R7 K22 R7 + 0xB8221000, // 005A GETNGBL R8 K8 + 0x8C201109, // 005B GETMET R8 R8 K9 + 0x002A2E07, // 005C ADD R10 K23 R7 + 0x582C0012, // 005D LDCONST R11 K18 + 0x7C200600, // 005E CALL R8 3 + 0x8C200518, // 005F GETMET R8 R2 K24 + 0x58280014, // 0060 LDCONST R10 K20 + 0x582C0015, // 0061 LDCONST R11 K21 + 0x5C300C00, // 0062 MOVE R12 R6 + 0x8834011A, // 0063 GETMBR R13 R0 K26 + 0x5C380E00, // 0064 MOVE R14 R7 + 0x7C200C00, // 0065 CALL R8 6 + 0xA8040001, // 0066 EXBLK 1 1 + 0x70020010, // 0067 JMP #0079 + 0xAC100002, // 0068 CATCH R4 0 2 + 0x7002000D, // 0069 JMP #0078 + 0xB81A1000, // 006A GETNGBL R6 K8 + 0x8C180D09, // 006B GETMET R6 R6 K9 + 0x60200008, // 006C GETGBL R8 G8 + 0x5C240800, // 006D MOVE R9 R4 + 0x7C200200, // 006E CALL R8 1 + 0x00223608, // 006F ADD R8 K27 R8 + 0x0020111C, // 0070 ADD R8 R8 K28 + 0x60240008, // 0071 GETGBL R9 G8 + 0x5C280A00, // 0072 MOVE R10 R5 + 0x7C240200, // 0073 CALL R9 1 + 0x00201009, // 0074 ADD R8 R8 R9 + 0x5824000B, // 0075 LDCONST R9 K11 + 0x7C180600, // 0076 CALL R6 3 + 0x70020000, // 0077 JMP #0079 + 0xB0080000, // 0078 RAISE 2 R0 R0 + 0x80000000, // 0079 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: every_second ********************************************************************/ @@ -754,17 +2213,20 @@ be_local_closure(Matter_Device_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ + ( &(const bvalue[ 9]) { /* constants */ /* K0 */ be_nested_str_weak(sessions), /* K1 */ be_nested_str_weak(every_second), /* K2 */ be_nested_str_weak(message_handler), /* K3 */ be_nested_str_weak(commissioning_open), /* K4 */ be_nested_str_weak(tasmota), /* K5 */ be_nested_str_weak(time_reached), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(plugins), + /* K8 */ be_const_int(1), }), be_str_weak(every_second), &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ + ( &(const binstruction[30]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 0x8C040301, // 0001 GETMET R1 R1 K1 0x7C040200, // 0002 CALL R1 1 @@ -782,7 +2244,306 @@ be_local_closure(Matter_Device_every_second, /* name */ 0x78060001, // 000E JMPF R1 #0011 0x4C040000, // 000F LDNIL R1 0x90020601, // 0010 SETMBR R0 K3 R1 - 0x80000000, // 0011 RET 0 + 0x58040006, // 0011 LDCONST R1 K6 + 0x6008000C, // 0012 GETGBL R2 G12 + 0x880C0107, // 0013 GETMBR R3 R0 K7 + 0x7C080200, // 0014 CALL R2 1 + 0x14080202, // 0015 LT R2 R1 R2 + 0x780A0005, // 0016 JMPF R2 #001D + 0x88080107, // 0017 GETMBR R2 R0 K7 + 0x94080401, // 0018 GETIDX R2 R2 R1 + 0x8C080501, // 0019 GETMET R2 R2 K1 + 0x7C080200, // 001A CALL R2 1 + 0x00040308, // 001B ADD R1 R1 K8 + 0x7001FFF4, // 001C JMP #0012 + 0x80000000, // 001D RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_init_basic_commissioning, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(start_root_basic_commissioning), + }), + be_str_weak(init_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x1C040302, // 0003 EQ R1 R1 K2 + 0x78060001, // 0004 JMPF R1 #0007 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x7C040200, // 0006 CALL R1 1 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Device_invoke_request, /* name */ + be_nested_proto( + 11, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(invoke_request), + /* K3 */ be_nested_str_weak(status), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(UNSUPPORTED_COMMAND), + /* K6 */ be_const_int(1), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0x58100000, // 0000 LDCONST R4 K0 + 0x6014000C, // 0001 GETGBL R5 G12 + 0x88180101, // 0002 GETMBR R6 R0 K1 + 0x7C140200, // 0003 CALL R5 1 + 0x14140805, // 0004 LT R5 R4 R5 + 0x78160011, // 0005 JMPF R5 #0018 + 0x88140101, // 0006 GETMBR R5 R0 K1 + 0x94140A04, // 0007 GETIDX R5 R5 R4 + 0x8C180B02, // 0008 GETMET R6 R5 K2 + 0x5C200200, // 0009 MOVE R8 R1 + 0x5C240400, // 000A MOVE R9 R2 + 0x5C280600, // 000B MOVE R10 R3 + 0x7C180800, // 000C CALL R6 4 + 0x4C1C0000, // 000D LDNIL R7 + 0x201C0C07, // 000E NE R7 R6 R7 + 0x741E0004, // 000F JMPT R7 #0015 + 0x881C0703, // 0010 GETMBR R7 R3 K3 + 0xB8220800, // 0011 GETNGBL R8 K4 + 0x88201105, // 0012 GETMBR R8 R8 K5 + 0x201C0E08, // 0013 NE R7 R7 R8 + 0x781E0000, // 0014 JMPF R7 #0016 + 0x80040C00, // 0015 RET 1 R6 + 0x00100906, // 0016 ADD R4 R4 K6 + 0x7001FFE8, // 0017 JMP #0001 + 0x80000000, // 0018 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_mdns_announce_hostnames +********************************************************************/ +be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080000, // 0002 LDBOOL R2 0 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080200, // 0002 LDBOOL R2 1 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(wifi), + /* K2 */ be_nested_str_weak(up), + /* K3 */ be_nested_str_weak(_mdns_announce_hostname), + /* K4 */ be_nested_str_weak(add_rule), + /* K5 */ be_nested_str_weak(Wifi_X23Connected), + /* K6 */ be_nested_str_weak(matter_mdns_host), + /* K7 */ be_nested_str_weak(eth), + /* K8 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_mdns_announce_hostnames), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x94040302, // 0003 GETIDX R1 R1 K2 + 0x78060003, // 0004 JMPF R1 #0009 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x500C0000, // 0006 LDBOOL R3 0 0 + 0x7C040400, // 0007 CALL R1 2 + 0x70020005, // 0008 JMP #000F + 0xB8060000, // 0009 GETNGBL R1 K0 + 0x8C040304, // 000A GETMET R1 R1 K4 + 0x580C0005, // 000B LDCONST R3 K5 + 0x84100000, // 000C CLOSURE R4 P0 + 0x58140006, // 000D LDCONST R5 K6 + 0x7C040800, // 000E CALL R1 4 + 0xB8060000, // 000F GETNGBL R1 K0 + 0x8C040307, // 0010 GETMET R1 R1 K7 + 0x7C040200, // 0011 CALL R1 1 + 0x94040302, // 0012 GETIDX R1 R1 K2 + 0x78060003, // 0013 JMPF R1 #0018 + 0x8C040103, // 0014 GETMET R1 R0 K3 + 0x500C0200, // 0015 LDBOOL R3 1 0 + 0x7C040400, // 0016 CALL R1 2 + 0x70020005, // 0017 JMP #001E + 0xB8060000, // 0018 GETNGBL R1 K0 + 0x8C040304, // 0019 GETMET R1 R1 K4 + 0x580C0008, // 001A LDCONST R3 K8 + 0x84100001, // 001B CLOSURE R4 P1 + 0x58140006, // 001C LDCONST R5 K6 + 0x7C040800, // 001D CALL R1 4 + 0xA0000000, // 001E CLOSE R0 + 0x80000000, // 001F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_250ms +********************************************************************/ +be_local_closure(Matter_Device_every_250ms, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(every_250ms), + }), + be_str_weak(every_250ms), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: msg_received +********************************************************************/ +be_local_closure(Matter_Device_msg_received, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(msg_received), + }), + be_str_weak(msg_received), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0x5C180200, // 0002 MOVE R6 R1 + 0x5C1C0400, // 0003 MOVE R7 R2 + 0x5C200600, // 0004 MOVE R8 R3 + 0x7C100800, // 0005 CALL R4 4 + 0x80040800, // 0006 RET 1 R4 }) ) ); @@ -1201,35 +2962,6 @@ be_local_closure(Matter_Device_process_attribute_expansion, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: is_commissioning_open -********************************************************************/ -be_local_closure(Matter_Device_is_commissioning_open, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - }), - be_str_weak(is_commissioning_open), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: start_commissioning_complete_deferred ********************************************************************/ @@ -1291,219 +3023,223 @@ be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name /******************************************************************** -** Solidified function: load_param +** Solidified function: _mdns_announce_hostname ********************************************************************/ -be_local_closure(Matter_Device_load_param, /* name */ +be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ be_nested_proto( - 12, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[23]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(crypto), - /* K2 */ be_nested_str_weak(FILENAME), - /* K3 */ be_nested_str_weak(read), - /* K4 */ be_nested_str_weak(close), - /* K5 */ be_nested_str_weak(json), - /* K6 */ be_nested_str_weak(load), - /* K7 */ be_nested_str_weak(discriminator), - /* K8 */ be_nested_str_weak(find), - /* K9 */ be_nested_str_weak(distinguish), - /* K10 */ be_nested_str_weak(passcode), - /* K11 */ be_nested_str_weak(ipv4only), - /* K12 */ be_nested_str_weak(io_error), - /* K13 */ be_nested_str_weak(tasmota), - /* K14 */ be_nested_str_weak(log), - /* K15 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), - /* K16 */ be_nested_str_weak(_X7C), - /* K17 */ be_const_int(2), - /* K18 */ be_nested_str_weak(random), - /* K19 */ be_nested_str_weak(get), - /* K20 */ be_const_int(0), - /* K21 */ be_nested_str_weak(PASSCODE_DEFAULT), - /* K22 */ be_nested_str_weak(save_param), - }), - be_str_weak(load_param), - &be_const_str_solidified, - ( &(const binstruction[79]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA802001D, // 0002 EXBLK 0 #0021 - 0x600C0011, // 0003 GETGBL R3 G17 - 0x88100102, // 0004 GETMBR R4 R0 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C100703, // 0006 GETMET R4 R3 K3 - 0x7C100200, // 0007 CALL R4 1 - 0x8C140704, // 0008 GETMET R5 R3 K4 - 0x7C140200, // 0009 CALL R5 1 - 0xA4160A00, // 000A IMPORT R5 K5 - 0x8C180B06, // 000B GETMET R6 R5 K6 - 0x5C200800, // 000C MOVE R8 R4 - 0x7C180400, // 000D CALL R6 2 - 0x8C1C0D08, // 000E GETMET R7 R6 K8 - 0x58240009, // 000F LDCONST R9 K9 - 0x88280107, // 0010 GETMBR R10 R0 K7 - 0x7C1C0600, // 0011 CALL R7 3 - 0x90020E07, // 0012 SETMBR R0 K7 R7 - 0x8C1C0D08, // 0013 GETMET R7 R6 K8 - 0x5824000A, // 0014 LDCONST R9 K10 - 0x8828010A, // 0015 GETMBR R10 R0 K10 - 0x7C1C0600, // 0016 CALL R7 3 - 0x90021407, // 0017 SETMBR R0 K10 R7 - 0x601C0017, // 0018 GETGBL R7 G23 - 0x8C200D08, // 0019 GETMET R8 R6 K8 - 0x5828000B, // 001A LDCONST R10 K11 - 0x502C0000, // 001B LDBOOL R11 0 0 - 0x7C200600, // 001C CALL R8 3 - 0x7C1C0200, // 001D CALL R7 1 - 0x90021607, // 001E SETMBR R0 K11 R7 - 0xA8040001, // 001F EXBLK 1 1 - 0x70020012, // 0020 JMP #0034 - 0xAC0C0002, // 0021 CATCH R3 0 2 - 0x7002000F, // 0022 JMP #0033 - 0x2014070C, // 0023 NE R5 R3 K12 - 0x7816000C, // 0024 JMPF R5 #0032 - 0xB8161A00, // 0025 GETNGBL R5 K13 - 0x8C140B0E, // 0026 GETMET R5 R5 K14 - 0x601C0008, // 0027 GETGBL R7 G8 - 0x5C200600, // 0028 MOVE R8 R3 - 0x7C1C0200, // 0029 CALL R7 1 - 0x001E1E07, // 002A ADD R7 K15 R7 - 0x001C0F10, // 002B ADD R7 R7 K16 - 0x60200008, // 002C GETGBL R8 G8 - 0x5C240800, // 002D MOVE R9 R4 - 0x7C200200, // 002E CALL R8 1 - 0x001C0E08, // 002F ADD R7 R7 R8 - 0x58200011, // 0030 LDCONST R8 K17 - 0x7C140600, // 0031 CALL R5 3 - 0x70020000, // 0032 JMP #0034 - 0xB0080000, // 0033 RAISE 2 R0 R0 - 0x500C0000, // 0034 LDBOOL R3 0 0 - 0x88100107, // 0035 GETMBR R4 R0 K7 - 0x4C140000, // 0036 LDNIL R5 - 0x1C100805, // 0037 EQ R4 R4 R5 - 0x7812000A, // 0038 JMPF R4 #0044 - 0x8C100512, // 0039 GETMET R4 R2 K18 - 0x58180011, // 003A LDCONST R6 K17 - 0x7C100400, // 003B CALL R4 2 - 0x8C100913, // 003C GETMET R4 R4 K19 - 0x58180014, // 003D LDCONST R6 K20 - 0x581C0011, // 003E LDCONST R7 K17 - 0x7C100600, // 003F CALL R4 3 - 0x54160FFE, // 0040 LDINT R5 4095 - 0x2C100805, // 0041 AND R4 R4 R5 - 0x90020E04, // 0042 SETMBR R0 K7 R4 - 0x500C0200, // 0043 LDBOOL R3 1 0 - 0x8810010A, // 0044 GETMBR R4 R0 K10 - 0x4C140000, // 0045 LDNIL R5 - 0x1C100805, // 0046 EQ R4 R4 R5 - 0x78120002, // 0047 JMPF R4 #004B - 0x88100115, // 0048 GETMBR R4 R0 K21 - 0x90021404, // 0049 SETMBR R0 K10 R4 - 0x500C0200, // 004A LDBOOL R3 1 0 - 0x780E0001, // 004B JMPF R3 #004E - 0x8C100116, // 004C GETMET R4 R0 K22 - 0x7C100200, // 004D CALL R4 1 - 0x80000000, // 004E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_operational_discovery_deferred -********************************************************************/ -be_local_closure(Matter_Device_start_operational_discovery_deferred, /* name */ - be_nested_proto( - 6, /* nstack */ + 16, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ - be_local_const_upval(1, 0), - be_local_const_upval(1, 1), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_operational_discovery), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), - }), - be_str_weak(start_operational_discovery_deferred), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: msg_send -********************************************************************/ -be_local_closure(Matter_Device_msg_send, /* name */ - be_nested_proto( - 11, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(send_response), + ( &(const bvalue[28]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(start), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(eth), + /* K5 */ be_nested_str_weak(hostname_eth), + /* K6 */ be_nested_str_weak(replace), + /* K7 */ be_nested_str_weak(find), + /* K8 */ be_nested_str_weak(mac), + /* K9 */ be_nested_str_weak(_X3A), + /* K10 */ be_nested_str_weak(), + /* K11 */ be_nested_str_weak(ipv4only), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K15 */ be_nested_str_weak(ip6local), + /* K16 */ be_nested_str_weak(ip), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(add_hostname), + /* K19 */ be_nested_str_weak(ip6), + /* K20 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), + /* K21 */ be_nested_str_weak(wifi), + /* K22 */ be_nested_str_weak(hostname_wifi), + /* K23 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), + /* K24 */ be_const_int(2), + /* K25 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K26 */ be_nested_str_weak(_X7C), + /* K27 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), }), - be_str_weak(msg_send), + be_str_weak(_mdns_announce_hostname), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88140100, // 0000 GETMBR R5 R0 K0 - 0x8C140B01, // 0001 GETMET R5 R5 K1 - 0x5C1C0200, // 0002 MOVE R7 R1 - 0x5C200400, // 0003 MOVE R8 R2 - 0x5C240600, // 0004 MOVE R9 R3 - 0x5C280800, // 0005 MOVE R10 R4 - 0x7C140A00, // 0006 CALL R5 5 - 0x80040A00, // 0007 RET 1 R5 + ( &(const binstruction[172]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0x8C100502, // 0002 GETMET R4 R2 K2 + 0x7C100200, // 0003 CALL R4 1 + 0xA8020092, // 0004 EXBLK 0 #0098 + 0x78060040, // 0005 JMPF R1 #0047 + 0xB8120600, // 0006 GETNGBL R4 K3 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140706, // 0009 GETMET R5 R3 K6 + 0x8C1C0907, // 000A GETMET R7 R4 K7 + 0x58240008, // 000B LDCONST R9 K8 + 0x7C1C0400, // 000C CALL R7 2 + 0x58200009, // 000D LDCONST R8 K9 + 0x5824000A, // 000E LDCONST R9 K10 + 0x7C140800, // 000F CALL R5 4 + 0x90020A05, // 0010 SETMBR R0 K5 R5 + 0x8814010B, // 0011 GETMBR R5 R0 K11 + 0x7416001F, // 0012 JMPT R5 #0033 + 0xB8160600, // 0013 GETNGBL R5 K3 + 0x8C140B0C, // 0014 GETMET R5 R5 K12 + 0x8C1C070D, // 0015 GETMET R7 R3 K13 + 0x5824000E, // 0016 LDCONST R9 K14 + 0x88280105, // 0017 GETMBR R10 R0 K5 + 0x8C2C0907, // 0018 GETMET R11 R4 K7 + 0x5834000F, // 0019 LDCONST R13 K15 + 0x5838000A, // 001A LDCONST R14 K10 + 0x7C2C0600, // 001B CALL R11 3 + 0x8C300907, // 001C GETMET R12 R4 K7 + 0x58380010, // 001D LDCONST R14 K16 + 0x583C000A, // 001E LDCONST R15 K10 + 0x7C300600, // 001F CALL R12 3 + 0x7C1C0A00, // 0020 CALL R7 5 + 0x58200011, // 0021 LDCONST R8 K17 + 0x7C140600, // 0022 CALL R5 3 + 0x8C140512, // 0023 GETMET R5 R2 K18 + 0x881C0105, // 0024 GETMBR R7 R0 K5 + 0x8C200907, // 0025 GETMET R8 R4 K7 + 0x5828000F, // 0026 LDCONST R10 K15 + 0x582C000A, // 0027 LDCONST R11 K10 + 0x7C200600, // 0028 CALL R8 3 + 0x8C240907, // 0029 GETMET R9 R4 K7 + 0x582C0010, // 002A LDCONST R11 K16 + 0x5830000A, // 002B LDCONST R12 K10 + 0x7C240600, // 002C CALL R9 3 + 0x8C280907, // 002D GETMET R10 R4 K7 + 0x58300013, // 002E LDCONST R12 K19 + 0x5834000A, // 002F LDCONST R13 K10 + 0x7C280600, // 0030 CALL R10 3 + 0x7C140A00, // 0031 CALL R5 5 + 0x70020012, // 0032 JMP #0046 + 0xB8160600, // 0033 GETNGBL R5 K3 + 0x8C140B0C, // 0034 GETMET R5 R5 K12 + 0x8C1C070D, // 0035 GETMET R7 R3 K13 + 0x58240014, // 0036 LDCONST R9 K20 + 0x88280105, // 0037 GETMBR R10 R0 K5 + 0x8C2C0907, // 0038 GETMET R11 R4 K7 + 0x58340010, // 0039 LDCONST R13 K16 + 0x5838000A, // 003A LDCONST R14 K10 + 0x7C2C0600, // 003B CALL R11 3 + 0x7C1C0800, // 003C CALL R7 4 + 0x58200011, // 003D LDCONST R8 K17 + 0x7C140600, // 003E CALL R5 3 + 0x8C140512, // 003F GETMET R5 R2 K18 + 0x881C0105, // 0040 GETMBR R7 R0 K5 + 0x8C200907, // 0041 GETMET R8 R4 K7 + 0x58280010, // 0042 LDCONST R10 K16 + 0x582C000A, // 0043 LDCONST R11 K10 + 0x7C200600, // 0044 CALL R8 3 + 0x7C140600, // 0045 CALL R5 3 + 0x7002003F, // 0046 JMP #0087 + 0xB8120600, // 0047 GETNGBL R4 K3 + 0x8C100915, // 0048 GETMET R4 R4 K21 + 0x7C100200, // 0049 CALL R4 1 + 0x8C140706, // 004A GETMET R5 R3 K6 + 0x8C1C0907, // 004B GETMET R7 R4 K7 + 0x58240008, // 004C LDCONST R9 K8 + 0x7C1C0400, // 004D CALL R7 2 + 0x58200009, // 004E LDCONST R8 K9 + 0x5824000A, // 004F LDCONST R9 K10 + 0x7C140800, // 0050 CALL R5 4 + 0x90022C05, // 0051 SETMBR R0 K22 R5 + 0x8814010B, // 0052 GETMBR R5 R0 K11 + 0x7416001F, // 0053 JMPT R5 #0074 + 0xB8160600, // 0054 GETNGBL R5 K3 + 0x8C140B0C, // 0055 GETMET R5 R5 K12 + 0x8C1C070D, // 0056 GETMET R7 R3 K13 + 0x5824000E, // 0057 LDCONST R9 K14 + 0x88280116, // 0058 GETMBR R10 R0 K22 + 0x8C2C0907, // 0059 GETMET R11 R4 K7 + 0x5834000F, // 005A LDCONST R13 K15 + 0x5838000A, // 005B LDCONST R14 K10 + 0x7C2C0600, // 005C CALL R11 3 + 0x8C300907, // 005D GETMET R12 R4 K7 + 0x58380010, // 005E LDCONST R14 K16 + 0x583C000A, // 005F LDCONST R15 K10 + 0x7C300600, // 0060 CALL R12 3 + 0x7C1C0A00, // 0061 CALL R7 5 + 0x58200011, // 0062 LDCONST R8 K17 + 0x7C140600, // 0063 CALL R5 3 + 0x8C140512, // 0064 GETMET R5 R2 K18 + 0x881C0116, // 0065 GETMBR R7 R0 K22 + 0x8C200907, // 0066 GETMET R8 R4 K7 + 0x5828000F, // 0067 LDCONST R10 K15 + 0x582C000A, // 0068 LDCONST R11 K10 + 0x7C200600, // 0069 CALL R8 3 + 0x8C240907, // 006A GETMET R9 R4 K7 + 0x582C0010, // 006B LDCONST R11 K16 + 0x5830000A, // 006C LDCONST R12 K10 + 0x7C240600, // 006D CALL R9 3 + 0x8C280907, // 006E GETMET R10 R4 K7 + 0x58300013, // 006F LDCONST R12 K19 + 0x5834000A, // 0070 LDCONST R13 K10 + 0x7C280600, // 0071 CALL R10 3 + 0x7C140A00, // 0072 CALL R5 5 + 0x70020012, // 0073 JMP #0087 + 0xB8160600, // 0074 GETNGBL R5 K3 + 0x8C140B0C, // 0075 GETMET R5 R5 K12 + 0x8C1C070D, // 0076 GETMET R7 R3 K13 + 0x58240014, // 0077 LDCONST R9 K20 + 0x88280105, // 0078 GETMBR R10 R0 K5 + 0x8C2C0907, // 0079 GETMET R11 R4 K7 + 0x58340010, // 007A LDCONST R13 K16 + 0x5838000A, // 007B LDCONST R14 K10 + 0x7C2C0600, // 007C CALL R11 3 + 0x7C1C0800, // 007D CALL R7 4 + 0x58200011, // 007E LDCONST R8 K17 + 0x7C140600, // 007F CALL R5 3 + 0x8C140512, // 0080 GETMET R5 R2 K18 + 0x881C0116, // 0081 GETMBR R7 R0 K22 + 0x8C200907, // 0082 GETMET R8 R4 K7 + 0x58280010, // 0083 LDCONST R10 K16 + 0x582C000A, // 0084 LDCONST R11 K10 + 0x7C200600, // 0085 CALL R8 3 + 0x7C140600, // 0086 CALL R5 3 + 0xB8120600, // 0087 GETNGBL R4 K3 + 0x8C10090C, // 0088 GETMET R4 R4 K12 + 0x8C18070D, // 0089 GETMET R6 R3 K13 + 0x58200017, // 008A LDCONST R8 K23 + 0x78060001, // 008B JMPF R1 #008E + 0x58240004, // 008C LDCONST R9 K4 + 0x70020000, // 008D JMP #008F + 0x58240015, // 008E LDCONST R9 K21 + 0x78060001, // 008F JMPF R1 #0092 + 0x88280105, // 0090 GETMBR R10 R0 K5 + 0x70020000, // 0091 JMP #0093 + 0x88280116, // 0092 GETMBR R10 R0 K22 + 0x7C180800, // 0093 CALL R6 4 + 0x581C0018, // 0094 LDCONST R7 K24 + 0x7C100600, // 0095 CALL R4 3 + 0xA8040001, // 0096 EXBLK 1 1 + 0x70020010, // 0097 JMP #00A9 + 0xAC100002, // 0098 CATCH R4 0 2 + 0x7002000D, // 0099 JMP #00A8 + 0xB81A0600, // 009A GETNGBL R6 K3 + 0x8C180D0C, // 009B GETMET R6 R6 K12 + 0x60200008, // 009C GETGBL R8 G8 + 0x5C240800, // 009D MOVE R9 R4 + 0x7C200200, // 009E CALL R8 1 + 0x00223208, // 009F ADD R8 K25 R8 + 0x0020111A, // 00A0 ADD R8 R8 K26 + 0x60240008, // 00A1 GETGBL R9 G8 + 0x5C280A00, // 00A2 MOVE R10 R5 + 0x7C240200, // 00A3 CALL R9 1 + 0x00201009, // 00A4 ADD R8 R8 R9 + 0x58240018, // 00A5 LDCONST R9 K24 + 0x7C180600, // 00A6 CALL R6 3 + 0x70020000, // 00A7 JMP #00A9 + 0xB0080000, // 00A8 RAISE 2 R0 R0 + 0x8C10011B, // 00A9 GETMET R4 R0 K27 + 0x7C100200, // 00AA CALL R4 1 + 0x80000000, // 00AB RET 0 }) ) ); @@ -1511,157 +3247,9 @@ be_local_closure(Matter_Device_msg_send, /* name */ /******************************************************************** -** Solidified function: invoke_request +** Solidified function: is_commissioning_open ********************************************************************/ -be_local_closure(Matter_Device_invoke_request, /* name */ - be_nested_proto( - 11, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(invoke_request), - /* K3 */ be_nested_str_weak(status), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(UNSUPPORTED_COMMAND), - /* K6 */ be_const_int(1), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x58100000, // 0000 LDCONST R4 K0 - 0x6014000C, // 0001 GETGBL R5 G12 - 0x88180101, // 0002 GETMBR R6 R0 K1 - 0x7C140200, // 0003 CALL R5 1 - 0x14140805, // 0004 LT R5 R4 R5 - 0x78160011, // 0005 JMPF R5 #0018 - 0x88140101, // 0006 GETMBR R5 R0 K1 - 0x94140A04, // 0007 GETIDX R5 R5 R4 - 0x8C180B02, // 0008 GETMET R6 R5 K2 - 0x5C200200, // 0009 MOVE R8 R1 - 0x5C240400, // 000A MOVE R9 R2 - 0x5C280600, // 000B MOVE R10 R3 - 0x7C180800, // 000C CALL R6 4 - 0x4C1C0000, // 000D LDNIL R7 - 0x201C0C07, // 000E NE R7 R6 R7 - 0x741E0004, // 000F JMPT R7 #0015 - 0x881C0703, // 0010 GETMBR R7 R3 K3 - 0xB8220800, // 0011 GETNGBL R8 K4 - 0x88201105, // 0012 GETMBR R8 R8 K5 - 0x201C0E08, // 0013 NE R7 R7 R8 - 0x781E0000, // 0014 JMPF R7 #0016 - 0x80040C00, // 0015 RET 1 R6 - 0x00100906, // 0016 ADD R4 R4 K6 - 0x7001FFE8, // 0017 JMP #0001 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_init_basic_commissioning, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(compute_pbkdf), - /* K1 */ be_nested_str_weak(passcode), - /* K2 */ be_nested_str_weak(sessions), - /* K3 */ be_nested_str_weak(count_active_fabrics), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(start_basic_commissioning), - }), - be_str_weak(init_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x7C040400, // 0002 CALL R1 2 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x8C040303, // 0004 GETMET R1 R1 K3 - 0x7C040200, // 0005 CALL R1 1 - 0x1C040304, // 0006 EQ R1 R1 K4 - 0x78060001, // 0007 JMPF R1 #000A - 0x8C040105, // 0008 GETMET R1 R0 K5 - 0x7C040200, // 0009 CALL R1 1 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: attribute_updated -********************************************************************/ -be_local_closure(Matter_Device_attribute_updated, /* name */ - be_nested_proto( - 10, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(Path), - /* K2 */ be_nested_str_weak(endpoint), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_nested_str_weak(message_handler), - /* K6 */ be_nested_str_weak(im), - /* K7 */ be_nested_str_weak(subs), - /* K8 */ be_nested_str_weak(attribute_updated_ctx), - }), - be_str_weak(attribute_updated), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140805, // 0001 EQ R5 R4 R5 - 0x78160000, // 0002 JMPF R5 #0004 - 0x50100000, // 0003 LDBOOL R4 0 0 - 0xB8160000, // 0004 GETNGBL R5 K0 - 0x8C140B01, // 0005 GETMET R5 R5 K1 - 0x7C140200, // 0006 CALL R5 1 - 0x90160401, // 0007 SETMBR R5 K2 R1 - 0x90160602, // 0008 SETMBR R5 K3 R2 - 0x90160803, // 0009 SETMBR R5 K4 R3 - 0x88180105, // 000A GETMBR R6 R0 K5 - 0x88180D06, // 000B GETMBR R6 R6 K6 - 0x88180D07, // 000C GETMBR R6 R6 K7 - 0x8C180D08, // 000D GETMET R6 R6 K8 - 0x5C200A00, // 000E MOVE R8 R5 - 0x5C240800, // 000F MOVE R9 R4 - 0x7C180600, // 0010 CALL R6 3 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_250ms -********************************************************************/ -be_local_closure(Matter_Device_every_250ms, /* name */ +be_local_closure(Matter_Device_is_commissioning_open, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -1671,268 +3259,16 @@ be_local_closure(Matter_Device_every_250ms, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(every_250ms), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), }), - be_str_weak(every_250ms), + be_str_weak(is_commissioning_open), &be_const_str_solidified, ( &(const binstruction[ 4]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_qrcode_content -********************************************************************/ -be_local_closure(Matter_Device_compute_qrcode_content, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(resize), - /* K1 */ be_nested_str_weak(setbits), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(vendorid), - /* K4 */ be_nested_str_weak(productid), - /* K5 */ be_nested_str_weak(discriminator), - /* K6 */ be_nested_str_weak(passcode), - /* K7 */ be_const_int(134217727), - /* K8 */ be_nested_str_weak(MT_X3A), - /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(Base38), - /* K11 */ be_nested_str_weak(encode), - }), - be_str_weak(compute_qrcode_content), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0x60040015, // 0000 GETGBL R1 G21 - 0x7C040000, // 0001 CALL R1 0 - 0x8C040300, // 0002 GETMET R1 R1 K0 - 0x540E000A, // 0003 LDINT R3 11 - 0x7C040400, // 0004 CALL R1 2 - 0x8C080301, // 0005 GETMET R2 R1 K1 - 0x58100002, // 0006 LDCONST R4 K2 - 0x5416000F, // 0007 LDINT R5 16 - 0x88180103, // 0008 GETMBR R6 R0 K3 - 0x7C080800, // 0009 CALL R2 4 - 0x8C080301, // 000A GETMET R2 R1 K1 - 0x54120012, // 000B LDINT R4 19 - 0x5416000F, // 000C LDINT R5 16 - 0x88180104, // 000D GETMBR R6 R0 K4 - 0x7C080800, // 000E CALL R2 4 - 0x8C080301, // 000F GETMET R2 R1 K1 - 0x54120024, // 0010 LDINT R4 37 - 0x54160007, // 0011 LDINT R5 8 - 0x541A0003, // 0012 LDINT R6 4 - 0x7C080800, // 0013 CALL R2 4 - 0x8C080301, // 0014 GETMET R2 R1 K1 - 0x5412002C, // 0015 LDINT R4 45 - 0x5416000B, // 0016 LDINT R5 12 - 0x88180105, // 0017 GETMBR R6 R0 K5 - 0x541E0FFE, // 0018 LDINT R7 4095 - 0x2C180C07, // 0019 AND R6 R6 R7 - 0x7C080800, // 001A CALL R2 4 - 0x8C080301, // 001B GETMET R2 R1 K1 - 0x54120038, // 001C LDINT R4 57 - 0x5416001A, // 001D LDINT R5 27 - 0x88180106, // 001E GETMBR R6 R0 K6 - 0x2C180D07, // 001F AND R6 R6 K7 - 0x7C080800, // 0020 CALL R2 4 - 0xB80A1200, // 0021 GETNGBL R2 K9 - 0x8808050A, // 0022 GETMBR R2 R2 K10 - 0x8C08050B, // 0023 GETMET R2 R2 K11 - 0x5C100200, // 0024 MOVE R4 R1 - 0x7C080400, // 0025 CALL R2 2 - 0x000A1002, // 0026 ADD R2 K8 R2 - 0x80040400, // 0027 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_announce_op_discovery -********************************************************************/ -be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ - be_nested_proto( - 15, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[29]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(copy), - /* K4 */ be_nested_str_weak(reverse), - /* K5 */ be_nested_str_weak(get_fabric_compressed), - /* K6 */ be_nested_str_weak(tohex), - /* K7 */ be_nested_str_weak(_X2D), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(log), - /* K10 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), - /* K11 */ be_const_int(2), - /* K12 */ be_nested_str_weak(eth), - /* K13 */ be_nested_str_weak(find), - /* K14 */ be_nested_str_weak(up), - /* K15 */ be_nested_str_weak(format), - /* K16 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K17 */ be_nested_str_weak(hostname_eth), - /* K18 */ be_const_int(3), - /* K19 */ be_nested_str_weak(add_service), - /* K20 */ be_nested_str_weak(_matter), - /* K21 */ be_nested_str_weak(_tcp), - /* K22 */ be_nested_str_weak(_I), - /* K23 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K24 */ be_nested_str_weak(add_subtype), - /* K25 */ be_nested_str_weak(wifi), - /* K26 */ be_nested_str_weak(hostname_wifi), - /* K27 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K28 */ be_nested_str_weak(_X7C), - }), - be_str_weak(mdns_announce_op_discovery), - &be_const_str_solidified, - ( &(const binstruction[122]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xA8020064, // 0002 EXBLK 0 #0068 - 0x8C100302, // 0003 GETMET R4 R1 K2 - 0x7C100200, // 0004 CALL R4 1 - 0x8C100903, // 0005 GETMET R4 R4 K3 - 0x7C100200, // 0006 CALL R4 1 - 0x8C100904, // 0007 GETMET R4 R4 K4 - 0x7C100200, // 0008 CALL R4 1 - 0x8C140305, // 0009 GETMET R5 R1 K5 - 0x7C140200, // 000A CALL R5 1 - 0x8C180B06, // 000B GETMET R6 R5 K6 - 0x7C180200, // 000C CALL R6 1 - 0x00180D07, // 000D ADD R6 R6 K7 - 0x8C1C0906, // 000E GETMET R7 R4 K6 - 0x7C1C0200, // 000F CALL R7 1 - 0x00180C07, // 0010 ADD R6 R6 R7 - 0xB81E1000, // 0011 GETNGBL R7 K8 - 0x8C1C0F09, // 0012 GETMET R7 R7 K9 - 0x00261406, // 0013 ADD R9 K10 R6 - 0x5828000B, // 0014 LDCONST R10 K11 - 0x7C1C0600, // 0015 CALL R7 3 - 0xB81E1000, // 0016 GETNGBL R7 K8 - 0x8C1C0F0C, // 0017 GETMET R7 R7 K12 - 0x7C1C0200, // 0018 CALL R7 1 - 0x8C1C0F0D, // 0019 GETMET R7 R7 K13 - 0x5824000E, // 001A LDCONST R9 K14 - 0x7C1C0400, // 001B CALL R7 2 - 0x781E0020, // 001C JMPF R7 #003E - 0xB81E1000, // 001D GETNGBL R7 K8 - 0x8C1C0F09, // 001E GETMET R7 R7 K9 - 0x8C24070F, // 001F GETMET R9 R3 K15 - 0x582C0010, // 0020 LDCONST R11 K16 - 0x5830000C, // 0021 LDCONST R12 K12 - 0x5C340C00, // 0022 MOVE R13 R6 - 0x88380111, // 0023 GETMBR R14 R0 K17 - 0x7C240A00, // 0024 CALL R9 5 - 0x58280012, // 0025 LDCONST R10 K18 - 0x7C1C0600, // 0026 CALL R7 3 - 0x8C1C0513, // 0027 GETMET R7 R2 K19 - 0x58240014, // 0028 LDCONST R9 K20 - 0x58280015, // 0029 LDCONST R10 K21 - 0x542E15A3, // 002A LDINT R11 5540 - 0x4C300000, // 002B LDNIL R12 - 0x5C340C00, // 002C MOVE R13 R6 - 0x88380111, // 002D GETMBR R14 R0 K17 - 0x7C1C0E00, // 002E CALL R7 7 - 0x8C1C0B06, // 002F GETMET R7 R5 K6 - 0x7C1C0200, // 0030 CALL R7 1 - 0x001E2C07, // 0031 ADD R7 K22 R7 - 0xB8221000, // 0032 GETNGBL R8 K8 - 0x8C201109, // 0033 GETMET R8 R8 K9 - 0x002A2E07, // 0034 ADD R10 K23 R7 - 0x582C0012, // 0035 LDCONST R11 K18 - 0x7C200600, // 0036 CALL R8 3 - 0x8C200518, // 0037 GETMET R8 R2 K24 - 0x58280014, // 0038 LDCONST R10 K20 - 0x582C0015, // 0039 LDCONST R11 K21 - 0x5C300C00, // 003A MOVE R12 R6 - 0x88340111, // 003B GETMBR R13 R0 K17 - 0x5C380E00, // 003C MOVE R14 R7 - 0x7C200C00, // 003D CALL R8 6 - 0xB81E1000, // 003E GETNGBL R7 K8 - 0x8C1C0F19, // 003F GETMET R7 R7 K25 - 0x7C1C0200, // 0040 CALL R7 1 - 0x8C1C0F0D, // 0041 GETMET R7 R7 K13 - 0x5824000E, // 0042 LDCONST R9 K14 - 0x7C1C0400, // 0043 CALL R7 2 - 0x781E0020, // 0044 JMPF R7 #0066 - 0xB81E1000, // 0045 GETNGBL R7 K8 - 0x8C1C0F09, // 0046 GETMET R7 R7 K9 - 0x8C24070F, // 0047 GETMET R9 R3 K15 - 0x582C0010, // 0048 LDCONST R11 K16 - 0x58300019, // 0049 LDCONST R12 K25 - 0x5C340C00, // 004A MOVE R13 R6 - 0x8838011A, // 004B GETMBR R14 R0 K26 - 0x7C240A00, // 004C CALL R9 5 - 0x58280012, // 004D LDCONST R10 K18 - 0x7C1C0600, // 004E CALL R7 3 - 0x8C1C0513, // 004F GETMET R7 R2 K19 - 0x58240014, // 0050 LDCONST R9 K20 - 0x58280015, // 0051 LDCONST R10 K21 - 0x542E15A3, // 0052 LDINT R11 5540 - 0x4C300000, // 0053 LDNIL R12 - 0x5C340C00, // 0054 MOVE R13 R6 - 0x8838011A, // 0055 GETMBR R14 R0 K26 - 0x7C1C0E00, // 0056 CALL R7 7 - 0x8C1C0B06, // 0057 GETMET R7 R5 K6 - 0x7C1C0200, // 0058 CALL R7 1 - 0x001E2C07, // 0059 ADD R7 K22 R7 - 0xB8221000, // 005A GETNGBL R8 K8 - 0x8C201109, // 005B GETMET R8 R8 K9 - 0x002A2E07, // 005C ADD R10 K23 R7 - 0x582C0012, // 005D LDCONST R11 K18 - 0x7C200600, // 005E CALL R8 3 - 0x8C200518, // 005F GETMET R8 R2 K24 - 0x58280014, // 0060 LDCONST R10 K20 - 0x582C0015, // 0061 LDCONST R11 K21 - 0x5C300C00, // 0062 MOVE R12 R6 - 0x8834011A, // 0063 GETMBR R13 R0 K26 - 0x5C380E00, // 0064 MOVE R14 R7 - 0x7C200C00, // 0065 CALL R8 6 - 0xA8040001, // 0066 EXBLK 1 1 - 0x70020010, // 0067 JMP #0079 - 0xAC100002, // 0068 CATCH R4 0 2 - 0x7002000D, // 0069 JMP #0078 - 0xB81A1000, // 006A GETNGBL R6 K8 - 0x8C180D09, // 006B GETMET R6 R6 K9 - 0x60200008, // 006C GETGBL R8 G8 - 0x5C240800, // 006D MOVE R9 R4 - 0x7C200200, // 006E CALL R8 1 - 0x00223608, // 006F ADD R8 K27 R8 - 0x0020111C, // 0070 ADD R8 R8 K28 - 0x60240008, // 0071 GETGBL R9 G8 - 0x5C280A00, // 0072 MOVE R10 R5 - 0x7C240200, // 0073 CALL R9 1 - 0x00201009, // 0074 ADD R8 R8 R9 - 0x5824000B, // 0075 LDCONST R9 K11 - 0x7C180600, // 0076 CALL R6 3 - 0x70020000, // 0077 JMP #0079 - 0xB0080000, // 0078 RAISE 2 R0 R0 - 0x80000000, // 0079 RET 0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x80040200, // 0003 RET 1 R1 }) ) ); @@ -2007,373 +3343,6 @@ be_local_closure(Matter_Device_get_active_endpoints, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: sort_distinct -********************************************************************/ -be_local_closure(Matter_Device_sort_distinct, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_const_int(1), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_nested_str_weak(remove), - }), - be_str_weak(sort_distinct), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080010, // 0001 GETGBL R2 G16 - 0x600C000C, // 0002 GETGBL R3 G12 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x040C0701, // 0005 SUB R3 R3 K1 - 0x400E0203, // 0006 CONNECT R3 K1 R3 - 0x7C080200, // 0007 CALL R2 1 - 0xA8020010, // 0008 EXBLK 0 #001A - 0x5C0C0400, // 0009 MOVE R3 R2 - 0x7C0C0000, // 000A CALL R3 0 - 0x94100003, // 000B GETIDX R4 R0 R3 - 0x5C140600, // 000C MOVE R5 R3 - 0x24180B02, // 000D GT R6 R5 K2 - 0x781A0008, // 000E JMPF R6 #0018 - 0x04180B01, // 000F SUB R6 R5 K1 - 0x94180006, // 0010 GETIDX R6 R0 R6 - 0x24180C04, // 0011 GT R6 R6 R4 - 0x781A0004, // 0012 JMPF R6 #0018 - 0x04180B01, // 0013 SUB R6 R5 K1 - 0x94180006, // 0014 GETIDX R6 R0 R6 - 0x98000A06, // 0015 SETIDX R0 R5 R6 - 0x04140B01, // 0016 SUB R5 R5 K1 - 0x7001FFF4, // 0017 JMP #000D - 0x98000A04, // 0018 SETIDX R0 R5 R4 - 0x7001FFEE, // 0019 JMP #0009 - 0x58080003, // 001A LDCONST R2 K3 - 0xAC080200, // 001B CATCH R2 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x58080001, // 001D LDCONST R2 K1 - 0x600C000C, // 001E GETGBL R3 G12 - 0x5C100000, // 001F MOVE R4 R0 - 0x7C0C0200, // 0020 CALL R3 1 - 0x180C0701, // 0021 LE R3 R3 K1 - 0x780E0000, // 0022 JMPF R3 #0024 - 0x80040000, // 0023 RET 1 R0 - 0x940C0102, // 0024 GETIDX R3 R0 K2 - 0x6010000C, // 0025 GETGBL R4 G12 - 0x5C140000, // 0026 MOVE R5 R0 - 0x7C100200, // 0027 CALL R4 1 - 0x14100404, // 0028 LT R4 R2 R4 - 0x78120009, // 0029 JMPF R4 #0034 - 0x94100002, // 002A GETIDX R4 R0 R2 - 0x1C100803, // 002B EQ R4 R4 R3 - 0x78120003, // 002C JMPF R4 #0031 - 0x8C100104, // 002D GETMET R4 R0 K4 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x70020001, // 0030 JMP #0033 - 0x940C0002, // 0031 GETIDX R3 R0 R2 - 0x00080501, // 0032 ADD R2 R2 K1 - 0x7001FFF0, // 0033 JMP #0025 - 0x80040000, // 0034 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: finish_commissioning -********************************************************************/ -be_local_closure(Matter_Device_finish_commissioning, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(finish_commissioning), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_start_basic_commissioning, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(millis), - }), - be_str_weak(start_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0xB8060200, // 0000 GETNGBL R1 K1 - 0x8C040302, // 0001 GETMET R1 R1 K2 - 0x7C040200, // 0002 CALL R1 1 - 0x540A0009, // 0003 LDINT R2 10 - 0x540E003B, // 0004 LDINT R3 60 - 0x08080403, // 0005 MUL R2 R2 R3 - 0x540E03E7, // 0006 LDINT R3 1000 - 0x08080403, // 0007 MUL R2 R2 R3 - 0x00040202, // 0008 ADD R1 R1 R2 - 0x90020001, // 0009 SETMBR R0 K0 R1 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_mdns_announce_hostnames -********************************************************************/ -be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_start_mdns_announce), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080000, // 0002 LDBOOL R2 0 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_start_mdns_announce), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080200, // 0002 LDBOOL R2 1 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(wifi), - /* K2 */ be_nested_str_weak(up), - /* K3 */ be_nested_str_weak(_start_mdns_announce), - /* K4 */ be_nested_str_weak(add_rule), - /* K5 */ be_nested_str_weak(Wifi_X23Connected), - /* K6 */ be_nested_str_weak(matter_mdns_host), - /* K7 */ be_nested_str_weak(eth), - /* K8 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_mdns_announce_hostnames), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x94040302, // 0003 GETIDX R1 R1 K2 - 0x78060003, // 0004 JMPF R1 #0009 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x500C0000, // 0006 LDBOOL R3 0 0 - 0x7C040400, // 0007 CALL R1 2 - 0x70020005, // 0008 JMP #000F - 0xB8060000, // 0009 GETNGBL R1 K0 - 0x8C040304, // 000A GETMET R1 R1 K4 - 0x580C0005, // 000B LDCONST R3 K5 - 0x84100000, // 000C CLOSURE R4 P0 - 0x58140006, // 000D LDCONST R5 K6 - 0x7C040800, // 000E CALL R1 4 - 0xB8060000, // 000F GETNGBL R1 K0 - 0x8C040307, // 0010 GETMET R1 R1 K7 - 0x7C040200, // 0011 CALL R1 1 - 0x94040302, // 0012 GETIDX R1 R1 K2 - 0x78060003, // 0013 JMPF R1 #0018 - 0x8C040103, // 0014 GETMET R1 R0 K3 - 0x500C0200, // 0015 LDBOOL R3 1 0 - 0x7C040400, // 0016 CALL R1 2 - 0x70020005, // 0017 JMP #001E - 0xB8060000, // 0018 GETNGBL R1 K0 - 0x8C040304, // 0019 GETMET R1 R1 K4 - 0x580C0008, // 001A LDCONST R3 K8 - 0x84100001, // 001B CLOSURE R4 P1 - 0x58140006, // 001C LDCONST R5 K6 - 0x7C040800, // 001D CALL R1 4 - 0xA0000000, // 001E CLOSE R0 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_manual_pairing_code -********************************************************************/ -be_local_closure(Matter_Device_compute_manual_pairing_code, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(discriminator), - /* K2 */ be_nested_str_weak(passcode), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(_X251i_X2505i_X2504i), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(Verhoeff), - /* K7 */ be_nested_str_weak(checksum), - }), - be_str_weak(compute_manual_pairing_code), - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x540E0FFE, // 0002 LDINT R3 4095 - 0x2C080403, // 0003 AND R2 R2 R3 - 0x540E0009, // 0004 LDINT R3 10 - 0x3C080403, // 0005 SHR R2 R2 R3 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x541202FF, // 0007 LDINT R4 768 - 0x2C0C0604, // 0008 AND R3 R3 R4 - 0x54120005, // 0009 LDINT R4 6 - 0x380C0604, // 000A SHL R3 R3 R4 - 0x88100102, // 000B GETMBR R4 R0 K2 - 0x54163FFE, // 000C LDINT R5 16383 - 0x2C100805, // 000D AND R4 R4 R5 - 0x300C0604, // 000E OR R3 R3 R4 - 0x88100102, // 000F GETMBR R4 R0 K2 - 0x5416000D, // 0010 LDINT R5 14 - 0x3C100805, // 0011 SHR R4 R4 R5 - 0x8C140303, // 0012 GETMET R5 R1 K3 - 0x581C0004, // 0013 LDCONST R7 K4 - 0x5C200400, // 0014 MOVE R8 R2 - 0x5C240600, // 0015 MOVE R9 R3 - 0x5C280800, // 0016 MOVE R10 R4 - 0x7C140A00, // 0017 CALL R5 5 - 0xB81A0A00, // 0018 GETNGBL R6 K5 - 0x88180D06, // 0019 GETMBR R6 R6 K6 - 0x8C180D07, // 001A GETMET R6 R6 K7 - 0x5C200A00, // 001B MOVE R8 R5 - 0x7C180400, // 001C CALL R6 2 - 0x00140A06, // 001D ADD R5 R5 R6 - 0x80040A00, // 001E RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: stop_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - }), - be_str_weak(stop_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0x90020001, // 0001 SETMBR R0 K0 R1 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: mdns_announce_op_discovery_all_fabrics ********************************************************************/ @@ -2426,558 +3395,84 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name /*******************************************************************/ -/******************************************************************** -** Solidified function: start_commissioning_complete -********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(log), - /* K2 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20Commissioning_X20complete_X20_X2A_X2A_X2A), - /* K3 */ be_const_int(2), - /* K4 */ be_nested_str_weak(stop_basic_commissioning), - }), - be_str_weak(start_commissioning_complete), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C080600, // 0004 CALL R2 3 - 0x8C080104, // 0005 GETMET R2 R0 K4 - 0x7C080200, // 0006 CALL R2 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Device_init, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(start_udp), - /* K1 */ be_nested_str_weak(UDP_PORT), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(remove_rule), - /* K4 */ be_nested_str_weak(Wifi_X23Connected), - /* K5 */ be_nested_str_weak(matter_device_udp), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080000, // 0002 GETUPV R2 U0 - 0x88080501, // 0003 GETMBR R2 R2 K1 - 0x7C000400, // 0004 CALL R0 2 - 0xB8020400, // 0005 GETNGBL R0 K2 - 0x8C000103, // 0006 GETMET R0 R0 K3 - 0x58080004, // 0007 LDCONST R2 K4 - 0x580C0005, // 0008 LDCONST R3 K5 - 0x7C000600, // 0009 CALL R0 3 - 0x80000000, // 000A RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(start_udp), - /* K1 */ be_nested_str_weak(UDP_PORT), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(remove_rule), - /* K4 */ be_nested_str_weak(Eth_X23Connected), - /* K5 */ be_nested_str_weak(matter_device_udp), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080000, // 0002 GETUPV R2 U0 - 0x88080501, // 0003 GETMBR R2 R2 K1 - 0x7C000400, // 0004 CALL R0 2 - 0xB8020400, // 0005 GETNGBL R0 K2 - 0x8C000103, // 0006 GETMET R0 R0 K3 - 0x58080004, // 0007 LDCONST R2 K4 - 0x580C0005, // 0008 LDCONST R3 K5 - 0x7C000600, // 0009 CALL R0 3 - 0x80000000, // 000A RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[41]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(get_option), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(MATTER_OPTION), - /* K6 */ be_nested_str_weak(UI), - /* K7 */ be_nested_str_weak(plugins), - /* K8 */ be_nested_str_weak(vendorid), - /* K9 */ be_nested_str_weak(VENDOR_ID), - /* K10 */ be_nested_str_weak(productid), - /* K11 */ be_nested_str_weak(PRODUCT_ID), - /* K12 */ be_nested_str_weak(iterations), - /* K13 */ be_nested_str_weak(PBKDF_ITERATIONS), - /* K14 */ be_nested_str_weak(ipv4only), - /* K15 */ be_nested_str_weak(load_param), - /* K16 */ be_nested_str_weak(commissioning_instance_wifi), - /* K17 */ be_nested_str_weak(random), - /* K18 */ be_nested_str_weak(tohex), - /* K19 */ be_nested_str_weak(commissioning_instance_eth), - /* K20 */ be_nested_str_weak(sessions), - /* K21 */ be_nested_str_weak(Session_Store), - /* K22 */ be_nested_str_weak(load_fabrics), - /* K23 */ be_nested_str_weak(message_handler), - /* K24 */ be_nested_str_weak(MessageHandler), - /* K25 */ be_nested_str_weak(ui), - /* K26 */ be_nested_str_weak(push), - /* K27 */ be_nested_str_weak(Plugin_Root), - /* K28 */ be_nested_str_weak(Plugin_OnOff), - /* K29 */ be_nested_str_weak(start_mdns_announce_hostnames), - /* K30 */ be_nested_str_weak(wifi), - /* K31 */ be_nested_str_weak(up), - /* K32 */ be_nested_str_weak(start_udp), - /* K33 */ be_nested_str_weak(UDP_PORT), - /* K34 */ be_nested_str_weak(add_rule), - /* K35 */ be_nested_str_weak(Wifi_X23Connected), - /* K36 */ be_nested_str_weak(matter_device_udp), - /* K37 */ be_nested_str_weak(eth), - /* K38 */ be_nested_str_weak(Eth_X23Connected), - /* K39 */ be_nested_str_weak(init_basic_commissioning), - /* K40 */ be_nested_str_weak(add_driver), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[109]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xB80E0400, // 0002 GETNGBL R3 K2 - 0x8C0C0703, // 0003 GETMET R3 R3 K3 - 0xB8160800, // 0004 GETNGBL R5 K4 - 0x88140B05, // 0005 GETMBR R5 R5 K5 - 0x7C0C0400, // 0006 CALL R3 2 - 0x740E0004, // 0007 JMPT R3 #000D - 0xB80E0800, // 0008 GETNGBL R3 K4 - 0x8C0C0706, // 0009 GETMET R3 R3 K6 - 0x5C140000, // 000A MOVE R5 R0 - 0x7C0C0400, // 000B CALL R3 2 - 0x80000600, // 000C RET 0 - 0x600C0012, // 000D GETGBL R3 G18 - 0x7C0C0000, // 000E CALL R3 0 - 0x90020E03, // 000F SETMBR R0 K7 R3 - 0x880C0109, // 0010 GETMBR R3 R0 K9 - 0x90021003, // 0011 SETMBR R0 K8 R3 - 0x880C010B, // 0012 GETMBR R3 R0 K11 - 0x90021403, // 0013 SETMBR R0 K10 R3 - 0x880C010D, // 0014 GETMBR R3 R0 K13 - 0x90021803, // 0015 SETMBR R0 K12 R3 - 0x500C0000, // 0016 LDBOOL R3 0 0 - 0x90021C03, // 0017 SETMBR R0 K14 R3 - 0x8C0C010F, // 0018 GETMET R3 R0 K15 - 0x7C0C0200, // 0019 CALL R3 1 - 0x8C0C0311, // 001A GETMET R3 R1 K17 - 0x54160007, // 001B LDINT R5 8 - 0x7C0C0400, // 001C CALL R3 2 - 0x8C0C0712, // 001D GETMET R3 R3 K18 - 0x7C0C0200, // 001E CALL R3 1 - 0x90022003, // 001F SETMBR R0 K16 R3 - 0x8C0C0311, // 0020 GETMET R3 R1 K17 - 0x54160007, // 0021 LDINT R5 8 - 0x7C0C0400, // 0022 CALL R3 2 - 0x8C0C0712, // 0023 GETMET R3 R3 K18 - 0x7C0C0200, // 0024 CALL R3 1 - 0x90022603, // 0025 SETMBR R0 K19 R3 - 0xB80E0800, // 0026 GETNGBL R3 K4 - 0x8C0C0715, // 0027 GETMET R3 R3 K21 - 0x7C0C0200, // 0028 CALL R3 1 - 0x90022803, // 0029 SETMBR R0 K20 R3 - 0x880C0114, // 002A GETMBR R3 R0 K20 - 0x8C0C0716, // 002B GETMET R3 R3 K22 - 0x7C0C0200, // 002C CALL R3 1 - 0xB80E0800, // 002D GETNGBL R3 K4 - 0x8C0C0718, // 002E GETMET R3 R3 K24 - 0x5C140000, // 002F MOVE R5 R0 - 0x7C0C0400, // 0030 CALL R3 2 - 0x90022E03, // 0031 SETMBR R0 K23 R3 - 0xB80E0800, // 0032 GETNGBL R3 K4 - 0x8C0C0706, // 0033 GETMET R3 R3 K6 - 0x5C140000, // 0034 MOVE R5 R0 - 0x7C0C0400, // 0035 CALL R3 2 - 0x90023203, // 0036 SETMBR R0 K25 R3 - 0x880C0107, // 0037 GETMBR R3 R0 K7 - 0x8C0C071A, // 0038 GETMET R3 R3 K26 - 0xB8160800, // 0039 GETNGBL R5 K4 - 0x8C140B1B, // 003A GETMET R5 R5 K27 - 0x5C1C0000, // 003B MOVE R7 R0 - 0x7C140400, // 003C CALL R5 2 - 0x7C0C0400, // 003D CALL R3 2 - 0x880C0107, // 003E GETMBR R3 R0 K7 - 0x8C0C071A, // 003F GETMET R3 R3 K26 - 0xB8160800, // 0040 GETNGBL R5 K4 - 0x8C140B1C, // 0041 GETMET R5 R5 K28 - 0x5C1C0000, // 0042 MOVE R7 R0 - 0x7C140400, // 0043 CALL R5 2 - 0x7C0C0400, // 0044 CALL R3 2 - 0x8C0C011D, // 0045 GETMET R3 R0 K29 - 0x7C0C0200, // 0046 CALL R3 1 - 0xB80E0400, // 0047 GETNGBL R3 K2 - 0x8C0C071E, // 0048 GETMET R3 R3 K30 - 0x7C0C0200, // 0049 CALL R3 1 - 0x940C071F, // 004A GETIDX R3 R3 K31 - 0x780E0003, // 004B JMPF R3 #0050 - 0x8C0C0120, // 004C GETMET R3 R0 K32 - 0x88140121, // 004D GETMBR R5 R0 K33 - 0x7C0C0400, // 004E CALL R3 2 - 0x70020005, // 004F JMP #0056 - 0xB80E0400, // 0050 GETNGBL R3 K2 - 0x8C0C0722, // 0051 GETMET R3 R3 K34 - 0x58140023, // 0052 LDCONST R5 K35 - 0x84180000, // 0053 CLOSURE R6 P0 - 0x581C0024, // 0054 LDCONST R7 K36 - 0x7C0C0800, // 0055 CALL R3 4 - 0xB80E0400, // 0056 GETNGBL R3 K2 - 0x8C0C0725, // 0057 GETMET R3 R3 K37 - 0x7C0C0200, // 0058 CALL R3 1 - 0x940C071F, // 0059 GETIDX R3 R3 K31 - 0x780E0003, // 005A JMPF R3 #005F - 0x8C0C0120, // 005B GETMET R3 R0 K32 - 0x88140121, // 005C GETMBR R5 R0 K33 - 0x7C0C0400, // 005D CALL R3 2 - 0x70020005, // 005E JMP #0065 - 0xB80E0400, // 005F GETNGBL R3 K2 - 0x8C0C0722, // 0060 GETMET R3 R3 K34 - 0x58140026, // 0061 LDCONST R5 K38 - 0x84180001, // 0062 CLOSURE R6 P1 - 0x581C0024, // 0063 LDCONST R7 K36 - 0x7C0C0800, // 0064 CALL R3 4 - 0x8C0C0127, // 0065 GETMET R3 R0 K39 - 0x7C0C0200, // 0066 CALL R3 1 - 0xB80E0400, // 0067 GETNGBL R3 K2 - 0x8C0C0728, // 0068 GETMET R3 R3 K40 - 0x5C140000, // 0069 MOVE R5 R0 - 0x7C0C0400, // 006A CALL R3 2 - 0xA0000000, // 006B CLOSE R0 - 0x80000000, // 006C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: msg_received -********************************************************************/ -be_local_closure(Matter_Device_msg_received, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(msg_received), - }), - be_str_weak(msg_received), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x8C100901, // 0001 GETMET R4 R4 K1 - 0x5C180200, // 0002 MOVE R6 R1 - 0x5C1C0400, // 0003 MOVE R7 R2 - 0x5C200600, // 0004 MOVE R8 R3 - 0x7C100800, // 0005 CALL R4 4 - 0x80040800, // 0006 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: save_param -********************************************************************/ -be_local_closure(Matter_Device_save_param, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(dump), - /* K2 */ be_nested_str_weak(distinguish), - /* K3 */ be_nested_str_weak(discriminator), - /* K4 */ be_nested_str_weak(passcode), - /* K5 */ be_nested_str_weak(ipv4only), - /* K6 */ be_nested_str_weak(string), - /* K7 */ be_nested_str_weak(FILENAME), - /* K8 */ be_nested_str_weak(w), - /* K9 */ be_nested_str_weak(write), - /* K10 */ be_nested_str_weak(close), - /* K11 */ be_nested_str_weak(tasmota), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), - /* K14 */ be_nested_str_weak(_X7C), - /* K15 */ be_const_int(2), - }), - be_str_weak(save_param), - &be_const_str_solidified, - ( &(const binstruction[45]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x60100013, // 0002 GETGBL R4 G19 - 0x7C100000, // 0003 CALL R4 0 - 0x88140103, // 0004 GETMBR R5 R0 K3 - 0x98120405, // 0005 SETIDX R4 K2 R5 - 0x88140104, // 0006 GETMBR R5 R0 K4 - 0x98120805, // 0007 SETIDX R4 K4 R5 - 0x88140105, // 0008 GETMBR R5 R0 K5 - 0x98120A05, // 0009 SETIDX R4 K5 R5 - 0x7C080400, // 000A CALL R2 2 - 0xA802000D, // 000B EXBLK 0 #001A - 0xA40E0C00, // 000C IMPORT R3 K6 - 0x60100011, // 000D GETGBL R4 G17 - 0x88140107, // 000E GETMBR R5 R0 K7 - 0x58180008, // 000F LDCONST R6 K8 - 0x7C100400, // 0010 CALL R4 2 - 0x8C140909, // 0011 GETMET R5 R4 K9 - 0x5C1C0400, // 0012 MOVE R7 R2 - 0x7C140400, // 0013 CALL R5 2 - 0x8C14090A, // 0014 GETMET R5 R4 K10 - 0x7C140200, // 0015 CALL R5 1 - 0xA8040001, // 0016 EXBLK 1 1 - 0x80040400, // 0017 RET 1 R2 - 0xA8040001, // 0018 EXBLK 1 1 - 0x70020011, // 0019 JMP #002C - 0xAC0C0002, // 001A CATCH R3 0 2 - 0x7002000E, // 001B JMP #002B - 0xB8161600, // 001C GETNGBL R5 K11 - 0x8C140B0C, // 001D GETMET R5 R5 K12 - 0x601C0008, // 001E GETGBL R7 G8 - 0x5C200600, // 001F MOVE R8 R3 - 0x7C1C0200, // 0020 CALL R7 1 - 0x001E1A07, // 0021 ADD R7 K13 R7 - 0x001C0F0E, // 0022 ADD R7 R7 K14 - 0x60200008, // 0023 GETGBL R8 G8 - 0x5C240800, // 0024 MOVE R9 R4 - 0x7C200200, // 0025 CALL R8 1 - 0x001C0E08, // 0026 ADD R7 R7 R8 - 0x5820000F, // 0027 LDCONST R8 K15 - 0x7C140600, // 0028 CALL R5 3 - 0x80040400, // 0029 RET 1 R2 - 0x70020000, // 002A JMP #002C - 0xB0080000, // 002B RAISE 2 R0 R0 - 0x80000000, // 002C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_udp -********************************************************************/ -be_local_closure(Matter_Device_start_udp, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(msg_received), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x680C0000, // 0000 GETUPV R3 U0 - 0x8C0C0700, // 0001 GETMET R3 R3 K0 - 0x5C140000, // 0002 MOVE R5 R0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x7C0C0800, // 0005 CALL R3 4 - 0x80040600, // 0006 RET 1 R3 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), - /* K4 */ be_const_int(2), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(UDPServer), - /* K7 */ be_nested_str_weak(), - /* K8 */ be_nested_str_weak(start), - }), - be_str_weak(start_udp), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x80000400, // 0002 RET 0 - 0x4C080000, // 0003 LDNIL R2 - 0x1C080202, // 0004 EQ R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540615A3, // 0006 LDINT R1 5540 - 0xB80A0200, // 0007 GETNGBL R2 K1 - 0x8C080502, // 0008 GETMET R2 R2 K2 - 0x60100008, // 0009 GETGBL R4 G8 - 0x5C140200, // 000A MOVE R5 R1 - 0x7C100200, // 000B CALL R4 1 - 0x00120604, // 000C ADD R4 K3 R4 - 0x58140004, // 000D LDCONST R5 K4 - 0x7C080600, // 000E CALL R2 3 - 0xB80A0A00, // 000F GETNGBL R2 K5 - 0x8C080506, // 0010 GETMET R2 R2 K6 - 0x58100007, // 0011 LDCONST R4 K7 - 0x5C140200, // 0012 MOVE R5 R1 - 0x7C080600, // 0013 CALL R2 3 - 0x90020002, // 0014 SETMBR R0 K0 R2 - 0x88080100, // 0015 GETMBR R2 R0 K0 - 0x8C080508, // 0016 GETMET R2 R2 K8 - 0x84100000, // 0017 CLOSURE R4 P0 - 0x7C080400, // 0018 CALL R2 2 - 0xA0000000, // 0019 CLOSE R0 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified class: Matter_Device ********************************************************************/ be_local_class(Matter_Device, - 20, + 27, NULL, - be_nested_map(57, + be_nested_map(70, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(PRODUCT_ID, 50), be_const_int(32768) }, - { be_const_key_weak(compute_pbkdf, -1), be_const_closure(Matter_Device_compute_pbkdf_closure) }, - { be_const_key_weak(commissioning_instance_eth, -1), be_const_var(7) }, - { be_const_key_weak(message_handler, -1), be_const_var(2) }, - { be_const_key_weak(_start_mdns_announce, 41), be_const_closure(Matter_Device__start_mdns_announce_closure) }, - { be_const_key_weak(start_operational_discovery_deferred, 3), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, - { be_const_key_weak(salt, 46), be_const_var(16) }, - { be_const_key_weak(w1, -1), be_const_var(18) }, - { be_const_key_weak(vendorid, 33), be_const_var(10) }, - { be_const_key_weak(udp_server, -1), be_const_var(1) }, - { be_const_key_weak(sessions, -1), be_const_var(3) }, - { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, - { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, - { be_const_key_weak(UDP_PORT, -1), be_const_int(5540) }, - { be_const_key_weak(passcode, -1), be_const_var(13) }, - { be_const_key_weak(save_param, -1), be_const_closure(Matter_Device_save_param_closure) }, - { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, - { be_const_key_weak(is_commissioning_open, -1), be_const_closure(Matter_Device_is_commissioning_open_closure) }, - { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, - { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, - { be_const_key_weak(start_operational_discovery, 5), be_const_closure(Matter_Device_start_operational_discovery_closure) }, - { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, - { be_const_key_weak(init_basic_commissioning, -1), be_const_closure(Matter_Device_init_basic_commissioning_closure) }, - { be_const_key_weak(FILENAME, 22), be_nested_str_weak(_matter_device_X2Ejson) }, - { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Device_every_250ms_closure) }, - { be_const_key_weak(msg_send, -1), be_const_closure(Matter_Device_msg_send_closure) }, - { be_const_key_weak(commissioning_open, -1), be_const_var(5) }, - { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(6) }, - { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, - { be_const_key_weak(packet_ack, 40), be_const_closure(Matter_Device_packet_ack_closure) }, - { be_const_key_weak(start_commissioning_complete, 24), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, - { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Device_attribute_updated_closure) }, - { be_const_key_weak(ui, 30), be_const_var(4) }, - { be_const_key_weak(hostname_eth, -1), be_const_var(9) }, - { be_const_key_weak(ipv4only, 49), be_const_var(14) }, - { be_const_key_weak(get_active_endpoints, 45), be_const_closure(Matter_Device_get_active_endpoints_closure) }, - { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(finish_commissioning, -1), be_const_closure(Matter_Device_finish_commissioning_closure) }, - { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, - { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Device_invoke_request_closure) }, - { be_const_key_weak(PASSCODE_DEFAULT, -1), be_const_int(20202021) }, - { be_const_key_weak(stop_basic_commissioning, 44), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, - { be_const_key_weak(L, -1), be_const_var(19) }, - { be_const_key_weak(plugins, -1), be_const_var(0) }, - { be_const_key_weak(sort_distinct, -1), be_const_static_closure(Matter_Device_sort_distinct_closure) }, { be_const_key_weak(compute_manual_pairing_code, -1), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, - { be_const_key_weak(productid, -1), be_const_var(11) }, - { be_const_key_weak(iterations, 36), be_const_var(15) }, - { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, - { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(PRODUCT_ID, -1), be_const_int(32768) }, + { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, + { be_const_key_weak(get_active_endpoints, -1), be_const_closure(Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(stop_basic_commissioning, 1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, { be_const_key_weak(init, -1), be_const_closure(Matter_Device_init_closure) }, + { be_const_key_weak(compute_pbkdf, -1), be_const_closure(Matter_Device_compute_pbkdf_closure) }, + { be_const_key_weak(start_udp, 47), be_const_closure(Matter_Device_start_udp_closure) }, + { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, + { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, + { be_const_key_weak(is_root_commissioning_open, 58), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(root_salt, 35), be_const_var(24) }, + { be_const_key_weak(commissioning_discriminator, 52), be_const_var(7) }, + { be_const_key_weak(save_param, -1), be_const_closure(Matter_Device_save_param_closure) }, + { be_const_key_weak(root_w0, -1), be_const_var(25) }, + { be_const_key_weak(root_iterations, 6), be_const_var(23) }, + { be_const_key_weak(start_operational_discovery, 51), be_const_closure(Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(start_basic_commissioning, 30), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_open, -1), be_const_var(5) }, + { be_const_key_weak(ipv4only, -1), be_const_var(22) }, + { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_instance_eth, 63), be_const_var(13) }, + { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(11) }, + { be_const_key_weak(finish_commissioning, -1), be_const_closure(Matter_Device_finish_commissioning_closure) }, + { be_const_key_weak(mdns_pase_wifi, 26), be_const_var(19) }, + { be_const_key_weak(attribute_updated, 21), be_const_closure(Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(sessions, 36), be_const_var(3) }, + { be_const_key_weak(load_param, 2), be_const_closure(Matter_Device_load_param_closure) }, + { be_const_key_weak(_mdns_announce_hostname, 41), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(plugins, -1), be_const_var(0) }, + { be_const_key_weak(FILENAME, 54), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(12) }, + { be_const_key_weak(hostname_eth, -1), be_const_var(15) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(9) }, + { be_const_key_weak(UDP_PORT, 14), be_const_int(5540) }, + { be_const_key_weak(start_operational_discovery_deferred, 57), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, + { be_const_key_weak(root_L, -1), be_const_var(26) }, + { be_const_key_weak(PASSCODE_DEFAULT, -1), be_const_int(20202021) }, + { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, { be_const_key_weak(msg_received, -1), be_const_closure(Matter_Device_msg_received_closure) }, - { be_const_key_weak(w0, 15), be_const_var(17) }, - { be_const_key_weak(discriminator, -1), be_const_var(12) }, - { be_const_key_weak(start_udp, -1), be_const_closure(Matter_Device_start_udp_closure) }, - { be_const_key_weak(hostname_wifi, 2), be_const_var(8) }, + { be_const_key_weak(vendorid, -1), be_const_var(16) }, + { be_const_key_weak(msg_send, 44), be_const_closure(Matter_Device_msg_send_closure) }, + { be_const_key_weak(commissioning_salt, -1), be_const_var(8) }, + { be_const_key_weak(start_commissioning_complete, 13), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(init_basic_commissioning, -1), be_const_closure(Matter_Device_init_basic_commissioning_closure) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Device_invoke_request_closure) }, + { be_const_key_weak(start_mdns_announce_hostnames, 29), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, + { be_const_key_weak(commissioning_L, 48), be_const_var(10) }, + { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Device_every_250ms_closure) }, + { be_const_key_weak(ui, 8), be_const_var(4) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, + { be_const_key_weak(packet_ack, 40), be_const_closure(Matter_Device_packet_ack_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, + { be_const_key_weak(PASE_TIMEOUT, 33), be_const_int(600) }, + { be_const_key_weak(mdns_announce_PASE, 9), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, + { be_const_key_weak(message_handler, -1), be_const_var(2) }, + { be_const_key_weak(udp_server, 23), be_const_var(1) }, + { be_const_key_weak(productid, -1), be_const_var(17) }, + { be_const_key_weak(root_discriminator, -1), be_const_var(20) }, + { be_const_key_weak(sort_distinct, -1), be_const_static_closure(Matter_Device_sort_distinct_closure) }, + { be_const_key_weak(is_commissioning_open, -1), be_const_closure(Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(mdns_pase_eth, -1), be_const_var(18) }, + { be_const_key_weak(hostname_wifi, -1), be_const_var(14) }, + { be_const_key_weak(commissioning_iterations, 3), be_const_var(6) }, + { be_const_key_weak(root_passcode, -1), be_const_var(21) }, + { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, })), be_str_weak(Matter_Device) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h index 8a984f3b9..b998d6599 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h @@ -1977,7 +1977,7 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ ), }), 1, /* has constants */ - ( &(const bvalue[26]) { /* constants */ + ( &(const bvalue[22]) { /* constants */ /* K0 */ be_nested_str_weak(device), /* K1 */ be_nested_str_weak(get_active_endpoints), /* K2 */ be_nested_str_weak(matter), @@ -2000,14 +2000,10 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ /* K19 */ be_const_int(2), /* K20 */ be_nested_str_weak(process_attribute_expansion), /* K21 */ be_nested_str_weak(stop_iteration), - /* K22 */ be_nested_str_weak(MTR_X3A_X20ReportDataMessage_X3D), - /* K23 */ be_const_int(3), - /* K24 */ be_nested_str_weak(MTR_X3A_X20ReportDataMessageTLV_X3D), - /* K25 */ be_nested_str_weak(to_TLV), }), be_str_weak(_inner_process_read_request), &be_const_str_solidified, - ( &(const binstruction[104]) { /* code */ + ( &(const binstruction[87]) { /* code */ 0x840C0000, // 0000 CLOSURE R3 P0 0x88100100, // 0001 GETMBR R4 R0 K0 0x8C100901, // 0002 GETMET R4 R4 K1 @@ -2093,25 +2089,8 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ 0x581C0015, // 0052 LDCONST R7 K21 0xAC1C0200, // 0053 CATCH R7 1 0 0xB0080000, // 0054 RAISE 2 R0 R0 - 0xB81E1A00, // 0055 GETNGBL R7 K13 - 0x8C1C0F0E, // 0056 GETMET R7 R7 K14 - 0x60240008, // 0057 GETGBL R9 G8 - 0x5C280C00, // 0058 MOVE R10 R6 - 0x7C240200, // 0059 CALL R9 1 - 0x00262C09, // 005A ADD R9 K22 R9 - 0x58280017, // 005B LDCONST R10 K23 - 0x7C1C0600, // 005C CALL R7 3 - 0xB81E1A00, // 005D GETNGBL R7 K13 - 0x8C1C0F0E, // 005E GETMET R7 R7 K14 - 0x60240008, // 005F GETGBL R9 G8 - 0x8C280D19, // 0060 GETMET R10 R6 K25 - 0x7C280200, // 0061 CALL R10 1 - 0x7C240200, // 0062 CALL R9 1 - 0x00263009, // 0063 ADD R9 K24 R9 - 0x58280017, // 0064 LDCONST R10 K23 - 0x7C1C0600, // 0065 CALL R7 3 - 0xA0000000, // 0066 CLOSE R0 - 0x80040C00, // 0067 RET 1 R6 + 0xA0000000, // 0055 CLOSE R0 + 0x80040C00, // 0056 RET 1 R6 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h index 2a18dac30..52cd50138 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h @@ -382,51 +382,6 @@ void be_load_Matter_IM_Subscription_class(bvm *vm) { extern const bclass be_class_Matter_IM_Subscription_Shop; -/******************************************************************** -** Solidified function: get_by_id -********************************************************************/ -be_local_closure(Matter_IM_Subscription_Shop_get_by_id, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(subs), - /* K2 */ be_nested_str_weak(subscription_id), - /* K3 */ be_const_int(1), - }), - be_str_weak(get_by_id), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x600C000C, // 0001 GETGBL R3 G12 - 0x88100101, // 0002 GETMBR R4 R0 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x140C0403, // 0004 LT R3 R2 R3 - 0x780E0009, // 0005 JMPF R3 #0010 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x940C0602, // 0007 GETIDX R3 R3 R2 - 0x880C0702, // 0008 GETMBR R3 R3 K2 - 0x1C0C0601, // 0009 EQ R3 R3 R1 - 0x780E0002, // 000A JMPF R3 #000E - 0x880C0101, // 000B GETMBR R3 R0 K1 - 0x940C0602, // 000C GETIDX R3 R3 R2 - 0x80040600, // 000D RET 1 R3 - 0x00080503, // 000E ADD R2 R2 K3 - 0x7001FFF0, // 000F JMP #0001 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: every_250ms ********************************************************************/ @@ -510,6 +465,51 @@ be_local_closure(Matter_IM_Subscription_Shop_every_250ms, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: get_by_id +********************************************************************/ +be_local_closure(Matter_IM_Subscription_Shop_get_by_id, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(subs), + /* K2 */ be_nested_str_weak(subscription_id), + /* K3 */ be_const_int(1), + }), + be_str_weak(get_by_id), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x58080000, // 0000 LDCONST R2 K0 + 0x600C000C, // 0001 GETGBL R3 G12 + 0x88100101, // 0002 GETMBR R4 R0 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x140C0403, // 0004 LT R3 R2 R3 + 0x780E0009, // 0005 JMPF R3 #0010 + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x940C0602, // 0007 GETIDX R3 R3 R2 + 0x880C0702, // 0008 GETMBR R3 R3 K2 + 0x1C0C0601, // 0009 EQ R3 R3 R1 + 0x780E0002, // 000A JMPF R3 #000E + 0x880C0101, // 000B GETMBR R3 R0 K1 + 0x940C0602, // 000C GETIDX R3 R3 R2 + 0x80040600, // 000D RET 1 R3 + 0x00080503, // 000E ADD R2 R2 K3 + 0x7001FFF0, // 000F JMP #0001 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: new_subscription ********************************************************************/ @@ -577,80 +577,6 @@ be_local_closure(Matter_IM_Subscription_Shop_new_subscription, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: attribute_updated_ctx -********************************************************************/ -be_local_closure(Matter_IM_Subscription_Shop_attribute_updated_ctx, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(subs), - /* K2 */ be_nested_str_weak(attribute_updated_ctx), - /* K3 */ be_const_int(1), - }), - be_str_weak(attribute_updated_ctx), - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x580C0000, // 0000 LDCONST R3 K0 - 0x6010000C, // 0001 GETGBL R4 G12 - 0x88140101, // 0002 GETMBR R5 R0 K1 - 0x7C100200, // 0003 CALL R4 1 - 0x14100604, // 0004 LT R4 R3 R4 - 0x78120007, // 0005 JMPF R4 #000E - 0x88100101, // 0006 GETMBR R4 R0 K1 - 0x94100803, // 0007 GETIDX R4 R4 R3 - 0x8C100902, // 0008 GETMET R4 R4 K2 - 0x5C180200, // 0009 MOVE R6 R1 - 0x5C1C0400, // 000A MOVE R7 R2 - 0x7C100600, // 000B CALL R4 3 - 0x000C0703, // 000C ADD R3 R3 K3 - 0x7001FFF2, // 000D JMP #0001 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_IM_Subscription_Shop_init, /* name */ - be_nested_proto( - 3, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(im), - /* K1 */ be_nested_str_weak(subs), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x90020202, // 0003 SETMBR R0 K1 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: remove_sub ********************************************************************/ @@ -697,6 +623,49 @@ be_local_closure(Matter_IM_Subscription_Shop_remove_sub, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: attribute_updated_ctx +********************************************************************/ +be_local_closure(Matter_IM_Subscription_Shop_attribute_updated_ctx, /* name */ + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(subs), + /* K2 */ be_nested_str_weak(attribute_updated_ctx), + /* K3 */ be_const_int(1), + }), + be_str_weak(attribute_updated_ctx), + &be_const_str_solidified, + ( &(const binstruction[15]) { /* code */ + 0x580C0000, // 0000 LDCONST R3 K0 + 0x6010000C, // 0001 GETGBL R4 G12 + 0x88140101, // 0002 GETMBR R5 R0 K1 + 0x7C100200, // 0003 CALL R4 1 + 0x14100604, // 0004 LT R4 R3 R4 + 0x78120007, // 0005 JMPF R4 #000E + 0x88100101, // 0006 GETMBR R4 R0 K1 + 0x94100803, // 0007 GETIDX R4 R4 R3 + 0x8C100902, // 0008 GETMET R4 R4 K2 + 0x5C180200, // 0009 MOVE R6 R1 + 0x5C1C0400, // 000A MOVE R7 R2 + 0x7C100600, // 000B CALL R4 3 + 0x000C0703, // 000C ADD R3 R3 K3 + 0x7001FFF2, // 000D JMP #0001 + 0x80000000, // 000E RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: remove_by_session ********************************************************************/ @@ -745,23 +714,96 @@ be_local_closure(Matter_IM_Subscription_Shop_remove_by_session, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_IM_Subscription_Shop_init, /* name */ + be_nested_proto( + 3, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(im), + /* K1 */ be_nested_str_weak(subs), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x90020202, // 0003 SETMBR R0 K1 R2 + 0x80000000, // 0004 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: remove_by_fabric +********************************************************************/ +be_local_closure(Matter_IM_Subscription_Shop_remove_by_fabric, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(_sessions), + /* K1 */ be_nested_str_weak(remove_by_session), + /* K2 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(remove_by_fabric), + &be_const_str_solidified, + ( &(const binstruction[14]) { /* code */ + 0x60080010, // 0000 GETGBL R2 G16 + 0x880C0300, // 0001 GETMBR R3 R1 K0 + 0x7C080200, // 0002 CALL R2 1 + 0xA8020005, // 0003 EXBLK 0 #000A + 0x5C0C0400, // 0004 MOVE R3 R2 + 0x7C0C0000, // 0005 CALL R3 0 + 0x8C100101, // 0006 GETMET R4 R0 K1 + 0x5C180600, // 0007 MOVE R6 R3 + 0x7C100400, // 0008 CALL R4 2 + 0x7001FFF9, // 0009 JMP #0004 + 0x58080002, // 000A LDCONST R2 K2 + 0xAC080200, // 000B CATCH R2 1 0 + 0xB0080000, // 000C RAISE 2 R0 R0 + 0x80000000, // 000D RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_IM_Subscription_Shop ********************************************************************/ be_local_class(Matter_IM_Subscription_Shop, 2, NULL, - be_nested_map(9, + be_nested_map(10, ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_IM_Subscription_Shop_every_250ms_closure) }, { be_const_key_weak(get_by_id, -1), be_const_closure(Matter_IM_Subscription_Shop_get_by_id_closure) }, { be_const_key_weak(attribute_updated_ctx, -1), be_const_closure(Matter_IM_Subscription_Shop_attribute_updated_ctx_closure) }, - { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_IM_Subscription_Shop_every_250ms_closure) }, - { be_const_key_weak(remove_sub, 1), be_const_closure(Matter_IM_Subscription_Shop_remove_sub_closure) }, + { be_const_key_weak(init, 2), be_const_closure(Matter_IM_Subscription_Shop_init_closure) }, + { be_const_key_weak(remove_sub, -1), be_const_closure(Matter_IM_Subscription_Shop_remove_sub_closure) }, { be_const_key_weak(new_subscription, 3), be_const_closure(Matter_IM_Subscription_Shop_new_subscription_closure) }, - { be_const_key_weak(subs, -1), be_const_var(0) }, - { be_const_key_weak(im, 7), be_const_var(1) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_IM_Subscription_Shop_init_closure) }, + { be_const_key_weak(subs, 8), be_const_var(0) }, + { be_const_key_weak(im, -1), be_const_var(1) }, { be_const_key_weak(remove_by_session, -1), be_const_closure(Matter_IM_Subscription_Shop_remove_by_session_closure) }, + { be_const_key_weak(remove_by_fabric, -1), be_const_closure(Matter_IM_Subscription_Shop_remove_by_fabric_closure) }, })), be_str_weak(Matter_IM_Subscription_Shop) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h index 37a55eaef..50a6f6be3 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h @@ -404,7 +404,7 @@ be_local_closure(Matter_Frame_build_response, /* name */ /* K13 */ be_nested_str_weak(message_counter), /* K14 */ be_nested_str_weak(counter_snd), /* K15 */ be_nested_str_weak(next), - /* K16 */ be_nested_str_weak(__counter_insecure_snd), + /* K16 */ be_nested_str_weak(_counter_insecure_snd), /* K17 */ be_nested_str_weak(x_flag_i), /* K18 */ be_nested_str_weak(opcode), /* K19 */ be_nested_str_weak(exchange_id), @@ -551,7 +551,7 @@ be_local_closure(Matter_Frame_initiate_response, /* name */ /* K13 */ be_nested_str_weak(counter_snd), /* K14 */ be_nested_str_weak(next), /* K15 */ be_nested_str_weak(local_session_id), - /* K16 */ be_nested_str_weak(__counter_insecure_snd), + /* K16 */ be_nested_str_weak(_counter_insecure_snd), /* K17 */ be_nested_str_weak(x_flag_i), /* K18 */ be_const_int(1), /* K19 */ be_nested_str_weak(opcode), diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h index 2a21b48c1..b5fc66f85 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h @@ -6,179 +6,6 @@ extern const bclass be_class_Matter_MessageHandler; -/******************************************************************** -** Solidified function: send_response -********************************************************************/ -be_local_closure(Matter_MessageHandler_send_response, /* name */ - be_nested_proto( - 11, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(msg_send), - }), - be_str_weak(send_response), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88140100, // 0000 GETMBR R5 R0 K0 - 0x8C140B01, // 0001 GETMET R5 R5 K1 - 0x5C1C0200, // 0002 MOVE R7 R1 - 0x5C200400, // 0003 MOVE R8 R2 - 0x5C240600, // 0004 MOVE R9 R3 - 0x5C280800, // 0005 MOVE R10 R4 - 0x7C140A00, // 0006 CALL R5 5 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_MessageHandler_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(commissioning), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(Commisioning_Context), - /* K4 */ be_nested_str_weak(im), - /* K5 */ be_nested_str_weak(IM), - /* K6 */ be_nested_str_weak(counter_rcv), - /* K7 */ be_nested_str_weak(Counter), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0xB80A0400, // 0001 GETNGBL R2 K2 - 0x8C080503, // 0002 GETMET R2 R2 K3 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C080400, // 0004 CALL R2 2 - 0x90020202, // 0005 SETMBR R0 K1 R2 - 0xB80A0400, // 0006 GETNGBL R2 K2 - 0x8C080505, // 0007 GETMET R2 R2 K5 - 0x5C100200, // 0008 MOVE R4 R1 - 0x7C080400, // 0009 CALL R2 2 - 0x90020802, // 000A SETMBR R0 K4 R2 - 0xB80A0400, // 000B GETNGBL R2 K2 - 0x8C080507, // 000C GETMET R2 R2 K7 - 0x7C080200, // 000D CALL R2 1 - 0x90020C02, // 000E SETMBR R0 K6 R2 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -be_local_closure(Matter_MessageHandler_every_second, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning), - /* K1 */ be_nested_str_weak(every_second), - /* K2 */ be_nested_str_weak(im), - }), - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x8C040301, // 0004 GETMET R1 R1 K1 - 0x7C040200, // 0005 CALL R1 1 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_session -********************************************************************/ -be_local_closure(Matter_MessageHandler_add_session, /* name */ - be_nested_proto( - 15, /* nstack */ - 7, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(MTR_X3A_X20add_session_X20local_session_id_X3D_X25i_X20initiator_session_id_X3D_X25i), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(device), - /* K7 */ be_nested_str_weak(sessions), - /* K8 */ be_nested_str_weak(create_session), - /* K9 */ be_nested_str_weak(set_keys), - }), - be_str_weak(add_session), - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0xA41E0000, // 0000 IMPORT R7 K0 - 0xB8220200, // 0001 GETNGBL R8 K1 - 0x8C201102, // 0002 GETMET R8 R8 K2 - 0x8C280F03, // 0003 GETMET R10 R7 K3 - 0x58300004, // 0004 LDCONST R12 K4 - 0x5C340200, // 0005 MOVE R13 R1 - 0x5C380400, // 0006 MOVE R14 R2 - 0x7C280800, // 0007 CALL R10 4 - 0x582C0005, // 0008 LDCONST R11 K5 - 0x7C200600, // 0009 CALL R8 3 - 0x88200106, // 000A GETMBR R8 R0 K6 - 0x88201107, // 000B GETMBR R8 R8 K7 - 0x8C201108, // 000C GETMET R8 R8 K8 - 0x5C280200, // 000D MOVE R10 R1 - 0x5C2C0400, // 000E MOVE R11 R2 - 0x7C200600, // 000F CALL R8 3 - 0x8C241109, // 0010 GETMET R9 R8 K9 - 0x5C2C0600, // 0011 MOVE R11 R3 - 0x5C300800, // 0012 MOVE R12 R4 - 0x5C340A00, // 0013 MOVE R13 R5 - 0x5C380C00, // 0014 MOVE R14 R6 - 0x7C240A00, // 0015 CALL R9 5 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: msg_received ********************************************************************/ @@ -192,7 +19,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[71]) { /* constants */ + ( &(const bvalue[72]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(tasmota), /* K2 */ be_nested_str_weak(log), @@ -209,13 +36,13 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ /* K13 */ be_nested_str_weak(find_session_source_id_unsecure), /* K14 */ be_nested_str_weak(source_node_id), /* K15 */ be_nested_str_weak(MTR_X3A_X20find_X20session_X20by_X20source_node_id_X20_X3D_X20), - /* K16 */ be_nested_str_weak(session_id_X20_X3D_X20), + /* K16 */ be_nested_str_weak(_X20session_id_X20_X3D_X20), /* K17 */ be_const_int(3), /* K18 */ be_nested_str_weak(_ip), /* K19 */ be_nested_str_weak(_port), /* K20 */ be_nested_str_weak(_message_handler), /* K21 */ be_nested_str_weak(session), - /* K22 */ be_nested_str_weak(counter_rcv), + /* K22 */ be_nested_str_weak(_counter_insecure_rcv), /* K23 */ be_nested_str_weak(validate), /* K24 */ be_nested_str_weak(message_counter), /* K25 */ be_nested_str_weak(format), @@ -236,34 +63,35 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ /* K40 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), /* K41 */ be_nested_str_weak(MTR_X3A_X20frame_X3D), /* K42 */ be_nested_str_weak(inspect), - /* K43 */ be_nested_str_weak(MTR_X3A_X20rejected_X20duplicate_X20encrypted_X20message_X20_X3D_X20), - /* K44 */ be_nested_str_weak(_X20counter_X3D), - /* K45 */ be_nested_str_weak(decrypt), - /* K46 */ be_nested_str_weak(raw), - /* K47 */ be_nested_str_weak(payload_idx), - /* K48 */ be_const_int(1), - /* K49 */ be_nested_str_weak(MTR_X3A_X20idx_X3D_X25i_X20clear_X3D_X25s), - /* K50 */ be_nested_str_weak(MTR_X3A_X20decrypted_X20message_X3A_X20protocol_id_X3A), - /* K51 */ be_nested_str_weak(protocol_id), - /* K52 */ be_nested_str_weak(_X20opcode_X3D), - /* K53 */ be_nested_str_weak(_X20exchange_id_X3D), - /* K54 */ be_nested_str_weak(exchange_id), - /* K55 */ be_nested_str_weak(MTR_X3A_X20PROTOCOL_ID_SECURE_CHANNEL_X20), - /* K56 */ be_nested_str_weak(im), - /* K57 */ be_nested_str_weak(process_incoming_ack), - /* K58 */ be_nested_str_weak(send_enqueued), - /* K59 */ be_nested_str_weak(x_flag_r), - /* K60 */ be_nested_str_weak(build_standalone_ack), - /* K61 */ be_nested_str_weak(encode), - /* K62 */ be_nested_str_weak(encrypt), - /* K63 */ be_nested_str_weak(send_response), - /* K64 */ be_nested_str_weak(remote_ip), - /* K65 */ be_nested_str_weak(remote_port), - /* K66 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), - /* K67 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), - /* K68 */ be_nested_str_weak(_X3B), - /* K69 */ be_nested_str_weak(debug), - /* K70 */ be_nested_str_weak(traceback), + /* K43 */ be_nested_str_weak(counter_rcv), + /* K44 */ be_nested_str_weak(MTR_X3A_X20rejected_X20duplicate_X20encrypted_X20message_X20_X3D_X20), + /* K45 */ be_nested_str_weak(_X20counter_X3D), + /* K46 */ be_nested_str_weak(decrypt), + /* K47 */ be_nested_str_weak(raw), + /* K48 */ be_nested_str_weak(payload_idx), + /* K49 */ be_const_int(1), + /* K50 */ be_nested_str_weak(MTR_X3A_X20idx_X3D_X25i_X20clear_X3D_X25s), + /* K51 */ be_nested_str_weak(MTR_X3A_X20decrypted_X20message_X3A_X20protocol_id_X3A), + /* K52 */ be_nested_str_weak(protocol_id), + /* K53 */ be_nested_str_weak(_X20opcode_X3D), + /* K54 */ be_nested_str_weak(_X20exchange_id_X3D), + /* K55 */ be_nested_str_weak(exchange_id), + /* K56 */ be_nested_str_weak(MTR_X3A_X20PROTOCOL_ID_SECURE_CHANNEL_X20), + /* K57 */ be_nested_str_weak(im), + /* K58 */ be_nested_str_weak(process_incoming_ack), + /* K59 */ be_nested_str_weak(send_enqueued), + /* K60 */ be_nested_str_weak(x_flag_r), + /* K61 */ be_nested_str_weak(build_standalone_ack), + /* K62 */ be_nested_str_weak(encode), + /* K63 */ be_nested_str_weak(encrypt), + /* K64 */ be_nested_str_weak(send_response), + /* K65 */ be_nested_str_weak(remote_ip), + /* K66 */ be_nested_str_weak(remote_port), + /* K67 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), + /* K68 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), + /* K69 */ be_nested_str_weak(_X3B), + /* K70 */ be_nested_str_weak(debug), + /* K71 */ be_nested_str_weak(traceback), }), be_str_weak(msg_received), &be_const_str_solidified, @@ -323,7 +151,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x90222603, // 0034 SETMBR R8 K19 R3 0x90222800, // 0035 SETMBR R8 K20 R0 0x901A2A08, // 0036 SETMBR R6 K21 R8 - 0x88240116, // 0037 GETMBR R9 R0 K22 + 0x88241116, // 0037 GETMBR R9 R8 K22 0x8C241317, // 0038 GETMET R9 R9 K23 0x882C0D18, // 0039 GETMBR R11 R6 K24 0x50300000, // 003A LDBOOL R12 0 0 @@ -334,7 +162,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x8C2C0919, // 003F GETMET R11 R4 K25 0x5834001A, // 0040 LDCONST R13 K26 0x88380D18, // 0041 GETMBR R14 R6 K24 - 0x883C0116, // 0042 GETMBR R15 R0 K22 + 0x883C1116, // 0042 GETMBR R15 R8 K22 0x8C3C1F1B, // 0043 GETMET R15 R15 K27 0x7C3C0200, // 0044 CALL R15 1 0x7C2C0800, // 0045 CALL R11 4 @@ -429,7 +257,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x90222603, // 009E SETMBR R8 K19 R3 0x90222800, // 009F SETMBR R8 K20 R0 0x901A2A08, // 00A0 SETMBR R6 K21 R8 - 0x88241116, // 00A1 GETMBR R9 R8 K22 + 0x8824112B, // 00A1 GETMBR R9 R8 K43 0x8C241317, // 00A2 GETMET R9 R9 K23 0x882C0D18, // 00A3 GETMBR R11 R6 K24 0x50300200, // 00A4 LDBOOL R12 1 0 @@ -440,10 +268,10 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x602C0008, // 00A9 GETGBL R11 G8 0x88300D18, // 00AA GETMBR R12 R6 K24 0x7C2C0200, // 00AB CALL R11 1 - 0x002E560B, // 00AC ADD R11 K43 R11 - 0x002C172C, // 00AD ADD R11 R11 K44 + 0x002E580B, // 00AC ADD R11 K44 R11 + 0x002C172D, // 00AD ADD R11 R11 K45 0x60300008, // 00AE GETGBL R12 G8 - 0x88341116, // 00AF GETMBR R13 R8 K22 + 0x8834112B, // 00AF GETMBR R13 R8 K43 0x8C341B1B, // 00B0 GETMET R13 R13 K27 0x7C340200, // 00B1 CALL R13 1 0x7C300200, // 00B2 CALL R12 1 @@ -453,27 +281,27 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x50240000, // 00B6 LDBOOL R9 0 0 0xA8040001, // 00B7 EXBLK 1 1 0x80041200, // 00B8 RET 1 R9 - 0x8C240D2D, // 00B9 GETMET R9 R6 K45 + 0x8C240D2E, // 00B9 GETMET R9 R6 K46 0x7C240200, // 00BA CALL R9 1 0x5C281200, // 00BB MOVE R10 R9 0x742A0002, // 00BC JMPT R10 #00C0 0x50280000, // 00BD LDBOOL R10 0 0 0xA8040001, // 00BE EXBLK 1 1 0x80041400, // 00BF RET 1 R10 - 0x88280D2F, // 00C0 GETMBR R10 R6 K47 - 0x04281530, // 00C1 SUB R10 R10 K48 + 0x88280D30, // 00C0 GETMBR R10 R6 K48 + 0x04281531, // 00C1 SUB R10 R10 K49 0x402A120A, // 00C2 CONNECT R10 K9 R10 - 0x882C0D2E, // 00C3 GETMBR R11 R6 K46 + 0x882C0D2F, // 00C3 GETMBR R11 R6 K47 0x9428160A, // 00C4 GETIDX R10 R11 R10 - 0x901A5C0A, // 00C5 SETMBR R6 K46 R10 - 0x88280D2E, // 00C6 GETMBR R10 R6 K46 + 0x901A5E0A, // 00C5 SETMBR R6 K47 R10 + 0x88280D2F, // 00C6 GETMBR R10 R6 K47 0x40281409, // 00C7 CONNECT R10 R10 R9 0xB82A0200, // 00C8 GETNGBL R10 K1 0x8C281502, // 00C9 GETMET R10 R10 K2 0x8C300919, // 00CA GETMET R12 R4 K25 - 0x58380031, // 00CB LDCONST R14 K49 - 0x883C0D2F, // 00CC GETMBR R15 R6 K47 - 0x88400D2E, // 00CD GETMBR R16 R6 K46 + 0x58380032, // 00CB LDCONST R14 K50 + 0x883C0D30, // 00CC GETMBR R15 R6 K48 + 0x88400D2F, // 00CD GETMBR R16 R6 K47 0x8C402104, // 00CE GETMET R16 R16 K4 0x7C400200, // 00CF CALL R16 1 0x7C300800, // 00D0 CALL R12 4 @@ -484,17 +312,17 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0xB82A0200, // 00D5 GETNGBL R10 K1 0x8C281502, // 00D6 GETMET R10 R10 K2 0x60300008, // 00D7 GETGBL R12 G8 - 0x88340D33, // 00D8 GETMBR R13 R6 K51 + 0x88340D34, // 00D8 GETMBR R13 R6 K52 0x7C300200, // 00D9 CALL R12 1 - 0x0032640C, // 00DA ADD R12 K50 R12 - 0x00301934, // 00DB ADD R12 R12 K52 + 0x0032660C, // 00DA ADD R12 K51 R12 + 0x00301935, // 00DB ADD R12 R12 K53 0x60340008, // 00DC GETGBL R13 G8 0x88380D1F, // 00DD GETMBR R14 R6 K31 0x7C340200, // 00DE CALL R13 1 0x0030180D, // 00DF ADD R12 R12 R13 - 0x00301935, // 00E0 ADD R12 R12 K53 + 0x00301936, // 00E0 ADD R12 R12 K54 0x60340008, // 00E1 GETGBL R13 G8 - 0x88380D36, // 00E2 GETMBR R14 R6 K54 + 0x88380D37, // 00E2 GETMBR R14 R6 K55 0x543EFFFE, // 00E3 LDINT R15 65535 0x2C381C0F, // 00E4 AND R14 R14 R15 0x7C340200, // 00E5 CALL R13 1 @@ -505,7 +333,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x8C28151D, // 00EA GETMET R10 R10 K29 0x88300D1E, // 00EB GETMBR R12 R6 K30 0x7C280400, // 00EC CALL R10 2 - 0x88280D33, // 00ED GETMBR R10 R6 K51 + 0x88280D34, // 00ED GETMBR R10 R6 K52 0x1C2C1509, // 00EE EQ R11 R10 K9 0x782E0018, // 00EF JMPF R11 #0109 0xB82E0200, // 00F0 GETNGBL R11 K1 @@ -514,50 +342,50 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x8C341B2A, // 00F3 GETMET R13 R13 K42 0x5C3C0C00, // 00F4 MOVE R15 R6 0x7C340400, // 00F5 CALL R13 2 - 0x00366E0D, // 00F6 ADD R13 K55 R13 + 0x0036700D, // 00F6 ADD R13 K56 R13 0x58380011, // 00F7 LDCONST R14 K17 0x7C2C0600, // 00F8 CALL R11 3 0x882C0D1F, // 00F9 GETMBR R11 R6 K31 0x5432000F, // 00FA LDINT R12 16 0x1C2C160C, // 00FB EQ R11 R11 R12 0x782E0009, // 00FC JMPF R11 #0107 - 0x882C0138, // 00FD GETMBR R11 R0 K56 - 0x8C2C1739, // 00FE GETMET R11 R11 K57 + 0x882C0139, // 00FD GETMBR R11 R0 K57 + 0x8C2C173A, // 00FE GETMET R11 R11 K58 0x5C340C00, // 00FF MOVE R13 R6 0x7C2C0400, // 0100 CALL R11 2 0x5C141600, // 0101 MOVE R5 R11 0x78160003, // 0102 JMPF R5 #0107 - 0x882C0138, // 0103 GETMBR R11 R0 K56 - 0x8C2C173A, // 0104 GETMET R11 R11 K58 + 0x882C0139, // 0103 GETMBR R11 R0 K57 + 0x8C2C173B, // 0104 GETMET R11 R11 K59 0x5C340000, // 0105 MOVE R13 R0 0x7C2C0400, // 0106 CALL R11 2 0x50140200, // 0107 LDBOOL R5 1 0 0x70020024, // 0108 JMP #012E - 0x1C2C1530, // 0109 EQ R11 R10 K48 + 0x1C2C1531, // 0109 EQ R11 R10 K49 0x782E001A, // 010A JMPF R11 #0126 - 0x882C0138, // 010B GETMBR R11 R0 K56 + 0x882C0139, // 010B GETMBR R11 R0 K57 0x8C2C1725, // 010C GETMET R11 R11 K37 0x5C340C00, // 010D MOVE R13 R6 0x7C2C0400, // 010E CALL R11 2 0x5C141600, // 010F MOVE R5 R11 0x78160004, // 0110 JMPF R5 #0116 - 0x882C0138, // 0111 GETMBR R11 R0 K56 - 0x8C2C173A, // 0112 GETMET R11 R11 K58 + 0x882C0139, // 0111 GETMBR R11 R0 K57 + 0x8C2C173B, // 0112 GETMET R11 R11 K59 0x5C340000, // 0113 MOVE R13 R0 0x7C2C0400, // 0114 CALL R11 2 0x7002000D, // 0115 JMP #0124 - 0x882C0D3B, // 0116 GETMBR R11 R6 K59 + 0x882C0D3C, // 0116 GETMBR R11 R6 K60 0x782E000B, // 0117 JMPF R11 #0124 - 0x8C2C0D3C, // 0118 GETMET R11 R6 K60 + 0x8C2C0D3D, // 0118 GETMET R11 R6 K61 0x7C2C0200, // 0119 CALL R11 1 - 0x8C30173D, // 011A GETMET R12 R11 K61 + 0x8C30173E, // 011A GETMET R12 R11 K62 0x7C300200, // 011B CALL R12 1 - 0x8C30173E, // 011C GETMET R12 R11 K62 + 0x8C30173F, // 011C GETMET R12 R11 K63 0x7C300200, // 011D CALL R12 1 - 0x8C30013F, // 011E GETMET R12 R0 K63 - 0x8838172E, // 011F GETMBR R14 R11 K46 - 0x883C1740, // 0120 GETMBR R15 R11 K64 - 0x88401741, // 0121 GETMBR R16 R11 K65 + 0x8C300140, // 011E GETMET R12 R0 K64 + 0x8838172F, // 011F GETMBR R14 R11 K47 + 0x883C1741, // 0120 GETMBR R15 R11 K65 + 0x88401742, // 0121 GETMBR R16 R11 K66 0x88441718, // 0122 GETMBR R17 R11 K24 0x7C300A00, // 0123 CALL R12 5 0x50140200, // 0124 LDBOOL R5 1 0 @@ -567,7 +395,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x60340008, // 0128 GETGBL R13 G8 0x5C381400, // 0129 MOVE R14 R10 0x7C340200, // 012A CALL R13 1 - 0x0036840D, // 012B ADD R13 K66 R13 + 0x0036860D, // 012B ADD R13 K67 R13 0x58380011, // 012C LDCONST R14 K17 0x7C2C0600, // 012D CALL R11 3 0xA8040001, // 012E EXBLK 1 1 @@ -581,15 +409,15 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x60280008, // 0136 GETGBL R10 G8 0x5C2C0C00, // 0137 MOVE R11 R6 0x7C280200, // 0138 CALL R10 1 - 0x002A860A, // 0139 ADD R10 K67 R10 - 0x00281544, // 013A ADD R10 R10 K68 + 0x002A880A, // 0139 ADD R10 K68 R10 + 0x00281545, // 013A ADD R10 R10 K69 0x602C0008, // 013B GETGBL R11 G8 0x5C300E00, // 013C MOVE R12 R7 0x7C2C0200, // 013D CALL R11 1 0x0028140B, // 013E ADD R10 R10 R11 0x7C200400, // 013F CALL R8 2 - 0xA4228A00, // 0140 IMPORT R8 K69 - 0x8C241146, // 0141 GETMET R9 R8 K70 + 0xA4228C00, // 0140 IMPORT R8 K70 + 0x8C241147, // 0141 GETMET R9 R8 K71 0x7C240200, // 0142 CALL R9 1 0x50240000, // 0143 LDBOOL R9 0 0 0x80041200, // 0144 RET 1 R9 @@ -632,23 +460,189 @@ be_local_closure(Matter_MessageHandler_every_250ms, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: every_second +********************************************************************/ +be_local_closure(Matter_MessageHandler_every_second, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning), + /* K1 */ be_nested_str_weak(every_second), + /* K2 */ be_nested_str_weak(im), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x88040102, // 0003 GETMBR R1 R0 K2 + 0x8C040301, // 0004 GETMET R1 R1 K1 + 0x7C040200, // 0005 CALL R1 1 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_MessageHandler_init, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(commissioning), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(Commisioning_Context), + /* K4 */ be_nested_str_weak(im), + /* K5 */ be_nested_str_weak(IM), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0xB80A0400, // 0001 GETNGBL R2 K2 + 0x8C080503, // 0002 GETMET R2 R2 K3 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C080400, // 0004 CALL R2 2 + 0x90020202, // 0005 SETMBR R0 K1 R2 + 0xB80A0400, // 0006 GETNGBL R2 K2 + 0x8C080505, // 0007 GETMET R2 R2 K5 + 0x5C100200, // 0008 MOVE R4 R1 + 0x7C080400, // 0009 CALL R2 2 + 0x90020802, // 000A SETMBR R0 K4 R2 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: add_session +********************************************************************/ +be_local_closure(Matter_MessageHandler_add_session, /* name */ + be_nested_proto( + 15, /* nstack */ + 7, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[10]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20add_session_X20local_session_id_X3D_X25i_X20initiator_session_id_X3D_X25i), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(device), + /* K7 */ be_nested_str_weak(sessions), + /* K8 */ be_nested_str_weak(create_session), + /* K9 */ be_nested_str_weak(set_keys), + }), + be_str_weak(add_session), + &be_const_str_solidified, + ( &(const binstruction[23]) { /* code */ + 0xA41E0000, // 0000 IMPORT R7 K0 + 0xB8220200, // 0001 GETNGBL R8 K1 + 0x8C201102, // 0002 GETMET R8 R8 K2 + 0x8C280F03, // 0003 GETMET R10 R7 K3 + 0x58300004, // 0004 LDCONST R12 K4 + 0x5C340200, // 0005 MOVE R13 R1 + 0x5C380400, // 0006 MOVE R14 R2 + 0x7C280800, // 0007 CALL R10 4 + 0x582C0005, // 0008 LDCONST R11 K5 + 0x7C200600, // 0009 CALL R8 3 + 0x88200106, // 000A GETMBR R8 R0 K6 + 0x88201107, // 000B GETMBR R8 R8 K7 + 0x8C201108, // 000C GETMET R8 R8 K8 + 0x5C280200, // 000D MOVE R10 R1 + 0x5C2C0400, // 000E MOVE R11 R2 + 0x7C200600, // 000F CALL R8 3 + 0x8C241109, // 0010 GETMET R9 R8 K9 + 0x5C2C0600, // 0011 MOVE R11 R3 + 0x5C300800, // 0012 MOVE R12 R4 + 0x5C340A00, // 0013 MOVE R13 R5 + 0x5C380C00, // 0014 MOVE R14 R6 + 0x7C240A00, // 0015 CALL R9 5 + 0x80000000, // 0016 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_response +********************************************************************/ +be_local_closure(Matter_MessageHandler_send_response, /* name */ + be_nested_proto( + 11, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(msg_send), + }), + be_str_weak(send_response), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88140100, // 0000 GETMBR R5 R0 K0 + 0x8C140B01, // 0001 GETMET R5 R5 K1 + 0x5C1C0200, // 0002 MOVE R7 R1 + 0x5C200400, // 0003 MOVE R8 R2 + 0x5C240600, // 0004 MOVE R9 R3 + 0x5C280800, // 0005 MOVE R10 R4 + 0x7C140A00, // 0006 CALL R5 5 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_MessageHandler ********************************************************************/ be_local_class(Matter_MessageHandler, - 4, + 3, NULL, - be_nested_map(10, + be_nested_map(9, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(commissioning, 2), be_const_var(1) }, - { be_const_key_weak(device, -1), be_const_var(0) }, - { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_MessageHandler_every_250ms_closure) }, - { be_const_key_weak(counter_rcv, -1), be_const_var(3) }, - { be_const_key_weak(add_session, -1), be_const_closure(Matter_MessageHandler_add_session_closure) }, - { be_const_key_weak(init, 9), be_const_closure(Matter_MessageHandler_init_closure) }, - { be_const_key_weak(im, 4), be_const_var(2) }, - { be_const_key_weak(send_response, 6), be_const_closure(Matter_MessageHandler_send_response_closure) }, + { be_const_key_weak(send_response, 5), be_const_closure(Matter_MessageHandler_send_response_closure) }, { be_const_key_weak(msg_received, -1), be_const_closure(Matter_MessageHandler_msg_received_closure) }, + { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_MessageHandler_every_250ms_closure) }, + { be_const_key_weak(commissioning, 8), be_const_var(1) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_MessageHandler_init_closure) }, + { be_const_key_weak(device, 4), be_const_var(0) }, + { be_const_key_weak(im, 0), be_const_var(2) }, + { be_const_key_weak(add_session, -1), be_const_closure(Matter_MessageHandler_add_session_closure) }, { be_const_key_weak(every_second, -1), be_const_closure(Matter_MessageHandler_every_second_closure) }, })), be_str_weak(Matter_MessageHandler) diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h index fc8cae2c1..6ac42080d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h @@ -32,33 +32,24 @@ be_local_closure(Matter_Plugin_read_attribute, /* name */ /******************************************************************** -** Solidified function: attribute_updated +** Solidified function: invoke_request ********************************************************************/ -be_local_closure(Matter_Plugin_attribute_updated, /* name */ +be_local_closure(Matter_Plugin_invoke_request, /* name */ be_nested_proto( - 11, /* nstack */ - 5, /* argc */ + 5, /* nstack */ + 4, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(attribute_updated), - }), - be_str_weak(attribute_updated), + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88140100, // 0000 GETMBR R5 R0 K0 - 0x8C140B01, // 0001 GETMET R5 R5 K1 - 0x5C1C0200, // 0002 MOVE R7 R1 - 0x5C200400, // 0003 MOVE R8 R2 - 0x5C240600, // 0004 MOVE R9 R3 - 0x5C280800, // 0005 MOVE R10 R4 - 0x7C140A00, // 0006 CALL R5 5 - 0x80000000, // 0007 RET 0 + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 }) ) ); @@ -66,33 +57,23 @@ be_local_closure(Matter_Plugin_attribute_updated, /* name */ /******************************************************************** -** Solidified function: init +** Solidified function: every_second ********************************************************************/ -be_local_closure(Matter_Plugin_init, /* name */ +be_local_closure(Matter_Plugin_every_second, /* name */ be_nested_proto( - 3, /* nstack */ - 2, /* argc */ + 1, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(endpoints), - /* K2 */ be_nested_str_weak(EMPTY_LIST), - /* K3 */ be_nested_str_weak(clusters), - }), - be_str_weak(init), + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(every_second), &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x88080102, // 0001 GETMBR R2 R0 K2 - 0x90020202, // 0002 SETMBR R0 K1 R2 - 0x88080102, // 0003 GETMBR R2 R0 K2 - 0x90020602, // 0004 SETMBR R0 K3 R2 - 0x80000000, // 0005 RET 0 + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 }) ) ); @@ -124,6 +105,212 @@ be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: subscribe_event +********************************************************************/ +be_local_closure(Matter_Plugin_subscribe_event, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(subscribe_event), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: read_event +********************************************************************/ +be_local_closure(Matter_Plugin_read_event, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(read_event), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: has +********************************************************************/ +be_local_closure(Matter_Plugin_has, /* name */ + be_nested_proto( + 6, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(clusters), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(endpoints), + /* K3 */ be_nested_str_weak(find), + }), + be_str_weak(has), + &be_const_str_solidified, + ( &(const binstruction[15]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0x780E0006, // 0004 JMPF R3 #000C + 0x880C0102, // 0005 GETMBR R3 R0 K2 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x5C140400, // 0007 MOVE R5 R2 + 0x7C0C0400, // 0008 CALL R3 2 + 0x4C100000, // 0009 LDNIL R4 + 0x200C0604, // 000A NE R3 R3 R4 + 0x740E0000, // 000B JMPT R3 #000D + 0x500C0001, // 000C LDBOOL R3 0 1 + 0x500C0200, // 000D LDBOOL R3 1 0 + 0x80040600, // 000E RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_init, /* name */ + be_nested_proto( + 4, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(endpoints), + /* K3 */ be_nested_str_weak(EMPTY_LIST), + /* K4 */ be_nested_str_weak(clusters), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x90020202, // 0001 SETMBR R0 K1 R2 + 0x880C0103, // 0002 GETMBR R3 R0 K3 + 0x90020403, // 0003 SETMBR R0 K2 R3 + 0x880C0103, // 0004 GETMBR R3 R0 K3 + 0x90020803, // 0005 SETMBR R0 K4 R3 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: write_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_write_attribute, /* name */ + be_nested_proto( + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(write_attribute), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: timed_request +********************************************************************/ +be_local_closure(Matter_Plugin_timed_request, /* name */ + be_nested_proto( + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(timed_request), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_endpoints +********************************************************************/ +be_local_closure(Matter_Plugin_get_endpoints, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(endpoints), + }), + be_str_weak(get_endpoints), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_cluster_list ********************************************************************/ @@ -198,194 +385,33 @@ be_local_closure(Matter_Plugin_get_cluster_map, /* name */ /******************************************************************** -** Solidified function: invoke_request +** Solidified function: attribute_updated ********************************************************************/ -be_local_closure(Matter_Plugin_invoke_request, /* name */ +be_local_closure(Matter_Plugin_attribute_updated, /* name */ be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_endpoints -********************************************************************/ -be_local_closure(Matter_Plugin_get_endpoints, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoints), - }), - be_str_weak(get_endpoints), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subscribe_event -********************************************************************/ -be_local_closure(Matter_Plugin_subscribe_event, /* name */ - be_nested_proto( - 6, /* nstack */ + 11, /* nstack */ 5, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(subscribe_event), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_write_attribute, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(write_attribute), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: has -********************************************************************/ -be_local_closure(Matter_Plugin_has, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(clusters), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(endpoints), - /* K3 */ be_nested_str_weak(find), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(attribute_updated), }), - be_str_weak(has), + be_str_weak(attribute_updated), &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x780E0006, // 0004 JMPF R3 #000C - 0x880C0102, // 0005 GETMBR R3 R0 K2 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x5C140400, // 0007 MOVE R5 R2 - 0x7C0C0400, // 0008 CALL R3 2 - 0x4C100000, // 0009 LDNIL R4 - 0x200C0604, // 000A NE R3 R3 R4 - 0x740E0000, // 000B JMPT R3 #000D - 0x500C0001, // 000C LDBOOL R3 0 1 - 0x500C0200, // 000D LDBOOL R3 1 0 - 0x80040600, // 000E RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read_event -********************************************************************/ -be_local_closure(Matter_Plugin_read_event, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(read_event), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: timed_request -********************************************************************/ -be_local_closure(Matter_Plugin_timed_request, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(timed_request), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 + ( &(const binstruction[ 8]) { /* code */ + 0x88140100, // 0000 GETMBR R5 R0 K0 + 0x8C140B01, // 0001 GETMET R5 R5 K1 + 0x5C1C0200, // 0002 MOVE R7 R1 + 0x5C200400, // 0003 MOVE R8 R2 + 0x5C240600, // 0004 MOVE R9 R3 + 0x5C280800, // 0005 MOVE R10 R4 + 0x7C140A00, // 0006 CALL R5 5 + 0x80000000, // 0007 RET 0 }) ) ); @@ -429,35 +455,37 @@ be_local_closure(Matter_Plugin_get_attribute_list, /* name */ ** Solidified class: Matter_Plugin ********************************************************************/ be_local_class(Matter_Plugin, - 3, + 4, NULL, - be_nested_map(19, + be_nested_map(21, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_read_attribute_closure) }, + { be_const_key_weak(get_attribute_list, 13), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, + { be_const_key_weak(write_attribute, -1), be_const_closure(Matter_Plugin_write_attribute_closure) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Plugin_every_second_closure) }, + { be_const_key_weak(subscribe_attribute, 9), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, + { be_const_key_weak(subscribe_event, -1), be_const_closure(Matter_Plugin_subscribe_event_closure) }, + { be_const_key_weak(device, -1), be_const_var(0) }, + { be_const_key_weak(endpoint, 20), be_const_var(2) }, { be_const_key_weak(EMPTY_LIST, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(0, ( (struct bvalue*) &(const bvalue[]) { })) ) } )) }, - { be_const_key_weak(clusters, 9), be_const_var(2) }, - { be_const_key_weak(get_endpoints, -1), be_const_closure(Matter_Plugin_get_endpoints_closure) }, - { be_const_key_weak(subscribe_attribute, -1), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, - { be_const_key_weak(get_cluster_list, 3), be_const_closure(Matter_Plugin_get_cluster_list_closure) }, - { be_const_key_weak(timed_request, -1), be_const_closure(Matter_Plugin_timed_request_closure) }, - { be_const_key_weak(EMPTY_MAP, 8), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(attribute_updated, 2), be_const_closure(Matter_Plugin_attribute_updated_closure) }, + { be_const_key_weak(has, -1), be_const_closure(Matter_Plugin_has_closure) }, + { be_const_key_weak(EMPTY_MAP, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(0, ( (struct bmapnode*) &(const bmapnode[]) { })) ) } )) }, - { be_const_key_weak(subscribe_event, -1), be_const_closure(Matter_Plugin_subscribe_event_closure) }, - { be_const_key_weak(endpoints, 18), be_const_var(1) }, - { be_const_key_weak(invoke_request, 7), be_const_closure(Matter_Plugin_invoke_request_closure) }, - { be_const_key_weak(write_attribute, -1), be_const_closure(Matter_Plugin_write_attribute_closure) }, - { be_const_key_weak(attribute_updated, 14), be_const_closure(Matter_Plugin_attribute_updated_closure) }, - { be_const_key_weak(init, 2), be_const_closure(Matter_Plugin_init_closure) }, - { be_const_key_weak(has, -1), be_const_closure(Matter_Plugin_has_closure) }, - { be_const_key_weak(device, -1), be_const_var(0) }, - { be_const_key_weak(read_event, 6), be_const_closure(Matter_Plugin_read_event_closure) }, - { be_const_key_weak(get_attribute_list, -1), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, - { be_const_key_weak(get_cluster_map, -1), be_const_closure(Matter_Plugin_get_cluster_map_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_init_closure) }, + { be_const_key_weak(get_cluster_map, 17), be_const_closure(Matter_Plugin_get_cluster_map_closure) }, + { be_const_key_weak(invoke_request, 18), be_const_closure(Matter_Plugin_invoke_request_closure) }, + { be_const_key_weak(read_event, 1), be_const_closure(Matter_Plugin_read_event_closure) }, + { be_const_key_weak(get_cluster_list, -1), be_const_closure(Matter_Plugin_get_cluster_list_closure) }, + { be_const_key_weak(get_endpoints, -1), be_const_closure(Matter_Plugin_get_endpoints_closure) }, + { be_const_key_weak(timed_request, -1), be_const_closure(Matter_Plugin_timed_request_closure) }, + { be_const_key_weak(clusters, -1), be_const_var(3) }, + { be_const_key_weak(endpoints, -1), be_const_var(1) }, })), be_str_weak(Matter_Plugin) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h index 70eb83576..e56d42c56 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h @@ -11,8 +11,8 @@ extern const bclass be_class_Matter_Plugin_OnOff; ********************************************************************/ be_local_closure(Matter_Plugin_OnOff_onoff_changed, /* name */ be_nested_proto( - 7, /* nstack */ - 2, /* argc */ + 6, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -27,11 +27,11 @@ be_local_closure(Matter_Plugin_OnOff_onoff_changed, /* name */ be_str_weak(onoff_changed), &be_const_str_solidified, ( &(const binstruction[ 6]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x88100301, // 0001 GETMBR R4 R1 K1 - 0x54160005, // 0002 LDINT R5 6 - 0x58180002, // 0003 LDCONST R6 K2 - 0x7C080800, // 0004 CALL R2 4 + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x880C0101, // 0001 GETMBR R3 R0 K1 + 0x54120005, // 0002 LDINT R4 6 + 0x58140002, // 0003 LDCONST R5 K2 + 0x7C040800, // 0004 CALL R1 4 0x80000000, // 0005 RET 0 }) ) @@ -39,177 +39,67 @@ be_local_closure(Matter_Plugin_OnOff_onoff_changed, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_invoke_request, /* name */ - be_nested_proto( - 13, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(TLV), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(command), - /* K4 */ be_const_int(3), - /* K5 */ be_const_int(0), - /* K6 */ be_const_int(1), - /* K7 */ be_nested_str_weak(Matter_TLV_struct), - /* K8 */ be_nested_str_weak(add_TLV), - /* K9 */ be_nested_str_weak(U2), - /* K10 */ be_nested_str_weak(onoff), - /* K11 */ be_nested_str_weak(onoff_changed), - /* K12 */ be_const_int(2), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[128]) { /* code */ - 0xB8120000, // 0000 GETNGBL R4 K0 - 0x88100901, // 0001 GETMBR R4 R4 K1 - 0x88140702, // 0002 GETMBR R5 R3 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 - 0x1C1C0B04, // 0004 EQ R7 R5 K4 - 0x781E0016, // 0005 JMPF R7 #001D - 0x1C1C0D05, // 0006 EQ R7 R6 K5 - 0x781E0002, // 0007 JMPF R7 #000B - 0x501C0200, // 0008 LDBOOL R7 1 0 - 0x80040E00, // 0009 RET 1 R7 - 0x70020010, // 000A JMP #001C - 0x1C1C0D06, // 000B EQ R7 R6 K6 - 0x781E0009, // 000C JMPF R7 #0017 - 0x8C1C0907, // 000D GETMET R7 R4 K7 - 0x7C1C0200, // 000E CALL R7 1 - 0x8C200F08, // 000F GETMET R8 R7 K8 - 0x58280005, // 0010 LDCONST R10 K5 - 0x882C0909, // 0011 GETMBR R11 R4 K9 - 0x58300005, // 0012 LDCONST R12 K5 - 0x7C200800, // 0013 CALL R8 4 - 0x900E0705, // 0014 SETMBR R3 K3 K5 - 0x80040E00, // 0015 RET 1 R7 - 0x70020004, // 0016 JMP #001C - 0x541E003F, // 0017 LDINT R7 64 - 0x1C1C0C07, // 0018 EQ R7 R6 R7 - 0x781E0001, // 0019 JMPF R7 #001C - 0x501C0200, // 001A LDBOOL R7 1 0 - 0x80040E00, // 001B RET 1 R7 - 0x70020061, // 001C JMP #007F - 0x541E0003, // 001D LDINT R7 4 - 0x1C1C0A07, // 001E EQ R7 R5 R7 - 0x781E0002, // 001F JMPF R7 #0023 - 0x501C0200, // 0020 LDBOOL R7 1 0 - 0x80040E00, // 0021 RET 1 R7 - 0x7002005B, // 0022 JMP #007F - 0x541E0004, // 0023 LDINT R7 5 - 0x1C1C0A07, // 0024 EQ R7 R5 R7 - 0x781E0002, // 0025 JMPF R7 #0029 - 0x501C0200, // 0026 LDBOOL R7 1 0 - 0x80040E00, // 0027 RET 1 R7 - 0x70020055, // 0028 JMP #007F - 0x541E0005, // 0029 LDINT R7 6 - 0x1C1C0A07, // 002A EQ R7 R5 R7 - 0x781E0024, // 002B JMPF R7 #0051 - 0x1C1C0D05, // 002C EQ R7 R6 K5 - 0x781E0009, // 002D JMPF R7 #0038 - 0x881C010A, // 002E GETMBR R7 R0 K10 - 0x781E0002, // 002F JMPF R7 #0033 - 0x8C1C010B, // 0030 GETMET R7 R0 K11 - 0x5C240600, // 0031 MOVE R9 R3 - 0x7C1C0400, // 0032 CALL R7 2 - 0x501C0000, // 0033 LDBOOL R7 0 0 - 0x90021407, // 0034 SETMBR R0 K10 R7 - 0x501C0200, // 0035 LDBOOL R7 1 0 - 0x80040E00, // 0036 RET 1 R7 - 0x70020017, // 0037 JMP #0050 - 0x1C1C0D06, // 0038 EQ R7 R6 K6 - 0x781E0009, // 0039 JMPF R7 #0044 - 0x881C010A, // 003A GETMBR R7 R0 K10 - 0x741E0002, // 003B JMPT R7 #003F - 0x8C1C010B, // 003C GETMET R7 R0 K11 - 0x5C240600, // 003D MOVE R9 R3 - 0x7C1C0400, // 003E CALL R7 2 - 0x501C0200, // 003F LDBOOL R7 1 0 - 0x90021407, // 0040 SETMBR R0 K10 R7 - 0x501C0200, // 0041 LDBOOL R7 1 0 - 0x80040E00, // 0042 RET 1 R7 - 0x7002000B, // 0043 JMP #0050 - 0x1C1C0D0C, // 0044 EQ R7 R6 K12 - 0x781E0009, // 0045 JMPF R7 #0050 - 0x8C1C010B, // 0046 GETMET R7 R0 K11 - 0x5C240600, // 0047 MOVE R9 R3 - 0x7C1C0400, // 0048 CALL R7 2 - 0x881C010A, // 0049 GETMBR R7 R0 K10 - 0x781E0000, // 004A JMPF R7 #004C - 0x501C0001, // 004B LDBOOL R7 0 1 - 0x501C0200, // 004C LDBOOL R7 1 0 - 0x90021407, // 004D SETMBR R0 K10 R7 - 0x501C0200, // 004E LDBOOL R7 1 0 - 0x80040E00, // 004F RET 1 R7 - 0x7002002D, // 0050 JMP #007F - 0x541E0007, // 0051 LDINT R7 8 - 0x1C1C0A07, // 0052 EQ R7 R5 R7 - 0x781E002A, // 0053 JMPF R7 #007F - 0x1C1C0D05, // 0054 EQ R7 R6 K5 - 0x781E0002, // 0055 JMPF R7 #0059 - 0x501C0200, // 0056 LDBOOL R7 1 0 - 0x80040E00, // 0057 RET 1 R7 - 0x70020025, // 0058 JMP #007F - 0x1C1C0D06, // 0059 EQ R7 R6 K6 - 0x781E0002, // 005A JMPF R7 #005E - 0x501C0200, // 005B LDBOOL R7 1 0 - 0x80040E00, // 005C RET 1 R7 - 0x70020020, // 005D JMP #007F - 0x1C1C0D0C, // 005E EQ R7 R6 K12 - 0x781E0002, // 005F JMPF R7 #0063 - 0x501C0200, // 0060 LDBOOL R7 1 0 - 0x80040E00, // 0061 RET 1 R7 - 0x7002001B, // 0062 JMP #007F - 0x1C1C0D04, // 0063 EQ R7 R6 K4 - 0x781E0002, // 0064 JMPF R7 #0068 - 0x501C0200, // 0065 LDBOOL R7 1 0 - 0x80040E00, // 0066 RET 1 R7 - 0x70020016, // 0067 JMP #007F - 0x541E0003, // 0068 LDINT R7 4 - 0x1C1C0C07, // 0069 EQ R7 R6 R7 - 0x781E0002, // 006A JMPF R7 #006E - 0x501C0200, // 006B LDBOOL R7 1 0 - 0x80040E00, // 006C RET 1 R7 - 0x70020010, // 006D JMP #007F - 0x541E0004, // 006E LDINT R7 5 - 0x1C1C0C07, // 006F EQ R7 R6 R7 - 0x781E0002, // 0070 JMPF R7 #0074 - 0x501C0200, // 0071 LDBOOL R7 1 0 - 0x80040E00, // 0072 RET 1 R7 - 0x7002000A, // 0073 JMP #007F - 0x541E0005, // 0074 LDINT R7 6 - 0x1C1C0C07, // 0075 EQ R7 R6 R7 - 0x781E0002, // 0076 JMPF R7 #007A - 0x501C0200, // 0077 LDBOOL R7 1 0 - 0x80040E00, // 0078 RET 1 R7 - 0x70020004, // 0079 JMP #007F - 0x541E0006, // 007A LDINT R7 7 - 0x1C1C0C07, // 007B EQ R7 R6 R7 - 0x781E0001, // 007C JMPF R7 #007F - 0x501C0200, // 007D LDBOOL R7 1 0 - 0x80040E00, // 007E RET 1 R7 - 0x80000000, // 007F RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: init ********************************************************************/ be_local_closure(Matter_Plugin_OnOff_init, /* name */ be_nested_proto( - 5, /* nstack */ + 8, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(endpoints), + /* K2 */ be_nested_str_weak(ENDPOINTS), + /* K3 */ be_nested_str_weak(endpoint), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(clusters), + /* K6 */ be_nested_str_weak(CLUSTERS), + /* K7 */ be_nested_str_weak(get_onoff), + /* K8 */ be_nested_str_weak(tasmota_relay_index), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x7C100600, // 0006 CALL R4 3 + 0x88100102, // 0007 GETMBR R4 R0 K2 + 0x90020204, // 0008 SETMBR R0 K1 R4 + 0x88100102, // 0009 GETMBR R4 R0 K2 + 0x94100904, // 000A GETIDX R4 R4 K4 + 0x90020604, // 000B SETMBR R0 K3 R4 + 0x88100106, // 000C GETMBR R4 R0 K6 + 0x90020A04, // 000D SETMBR R0 K5 R4 + 0x8C100107, // 000E GETMET R4 R0 K7 + 0x7C100200, // 000F CALL R4 1 + 0x4C100000, // 0010 LDNIL R4 + 0x1C100604, // 0011 EQ R4 R3 R4 + 0x78120000, // 0012 JMPF R4 #0014 + 0x580C0004, // 0013 LDCONST R3 K4 + 0x90021003, // 0014 SETMBR R0 K8 R3 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_onoff +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_set_onoff, /* name */ + be_nested_proto( + 7, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -217,30 +107,82 @@ be_local_closure(Matter_Plugin_OnOff_init, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(endpoints), - /* K2 */ be_nested_str_weak(ENDPOINTS), - /* K3 */ be_nested_str_weak(clusters), - /* K4 */ be_nested_str_weak(CLUSTERS), - /* K5 */ be_nested_str_weak(onoff), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_power), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(get_onoff), }), - be_str_weak(init), + be_str_weak(set_onoff), &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080500, // 0003 GETMET R2 R2 K0 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x88080102, // 0006 GETMBR R2 R0 K2 - 0x90020202, // 0007 SETMBR R0 K1 R2 - 0x88080104, // 0008 GETMBR R2 R0 K4 - 0x90020602, // 0009 SETMBR R0 K3 R2 - 0x50080000, // 000A LDBOOL R2 0 0 - 0x90020A02, // 000B SETMBR R0 K5 R2 - 0x80000000, // 000C RET 0 + ( &(const binstruction[10]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x88100102, // 0002 GETMBR R4 R0 K2 + 0x60140017, // 0003 GETGBL R5 G23 + 0x5C180200, // 0004 MOVE R6 R1 + 0x7C140200, // 0005 CALL R5 1 + 0x7C080600, // 0006 CALL R2 3 + 0x8C080103, // 0007 GETMET R2 R0 K3 + 0x7C080200, // 0008 CALL R2 1 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_onoff +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(get_power), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(shadow_onoff), + /* K4 */ be_nested_str_weak(onoff_changed), + }), + be_str_weak(get_onoff), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x7C040400, // 0003 CALL R1 2 + 0x4C080000, // 0004 LDNIL R2 + 0x20080202, // 0005 NE R2 R1 R2 + 0x780A000C, // 0006 JMPF R2 #0014 + 0x88080103, // 0007 GETMBR R2 R0 K3 + 0x4C0C0000, // 0008 LDNIL R3 + 0x20080403, // 0009 NE R2 R2 R3 + 0x780A0007, // 000A JMPF R2 #0013 + 0x88080103, // 000B GETMBR R2 R0 K3 + 0x600C0017, // 000C GETGBL R3 G23 + 0x5C100200, // 000D MOVE R4 R1 + 0x7C0C0200, // 000E CALL R3 1 + 0x20080403, // 000F NE R2 R2 R3 + 0x780A0001, // 0010 JMPF R2 #0013 + 0x8C080104, // 0011 GETMET R2 R0 K4 + 0x7C080200, // 0012 CALL R2 1 + 0x90020601, // 0013 SETMBR R0 K3 R1 + 0x88080103, // 0014 GETMBR R2 R0 K3 + 0x4C0C0000, // 0015 LDNIL R3 + 0x1C080403, // 0016 EQ R2 R2 R3 + 0x780A0001, // 0017 JMPF R2 #001A + 0x50080000, // 0018 LDBOOL R2 0 0 + 0x90020602, // 0019 SETMBR R0 K3 R2 + 0x88080103, // 001A GETMBR R2 R0 K3 + 0x80040400, // 001B RET 1 R2 }) ) ); @@ -282,11 +224,11 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ /* K18 */ be_nested_str_weak(create_TLV), /* K19 */ be_nested_str_weak(U1), /* K20 */ be_nested_str_weak(BOOL), - /* K21 */ be_nested_str_weak(onoff), + /* K21 */ be_nested_str_weak(get_onoff), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[255]) { /* code */ + ( &(const binstruction[256]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x88100902, // 0002 GETMBR R4 R4 K2 @@ -382,7 +324,7 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ 0x5828000C, // 005C LDCONST R10 K12 0x7C1C0600, // 005D CALL R7 3 0x80040E00, // 005E RET 1 R7 - 0x7002009D, // 005F JMP #00FE + 0x7002009E, // 005F JMP #00FF 0x1C1C0B11, // 0060 EQ R7 R5 K17 0x781E0021, // 0061 JMPF R7 #0084 0x1C1C0D05, // 0062 EQ R7 R6 K5 @@ -418,7 +360,7 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ 0x542A0003, // 0080 LDINT R10 4 0x7C1C0600, // 0081 CALL R7 3 0x80040E00, // 0082 RET 1 R7 - 0x70020079, // 0083 JMP #00FE + 0x7002007A, // 0083 JMP #00FF 0x541E0003, // 0084 LDINT R7 4 0x1C1C0A07, // 0085 EQ R7 R5 R7 0x781E0016, // 0086 JMPF R7 #009E @@ -444,7 +386,7 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ 0x542A0003, // 009A LDINT R10 4 0x7C1C0600, // 009B CALL R7 3 0x80040E00, // 009C RET 1 R7 - 0x7002005F, // 009D JMP #00FE + 0x70020060, // 009D JMP #00FF 0x541E0004, // 009E LDINT R7 5 0x1C1C0A07, // 009F EQ R7 R5 R7 0x781E0011, // 00A0 JMPF R7 #00B3 @@ -465,83 +407,268 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ 0x542A0003, // 00AF LDINT R10 4 0x7C1C0600, // 00B0 CALL R7 3 0x80040E00, // 00B1 RET 1 R7 - 0x7002004A, // 00B2 JMP #00FE + 0x7002004B, // 00B2 JMP #00FF 0x541E0005, // 00B3 LDINT R7 6 0x1C1C0A07, // 00B4 EQ R7 R5 R7 - 0x781E0019, // 00B5 JMPF R7 #00D0 + 0x781E001A, // 00B5 JMPF R7 #00D1 0x1C1C0D05, // 00B6 EQ R7 R6 K5 - 0x781E0005, // 00B7 JMPF R7 #00BE + 0x781E0006, // 00B7 JMPF R7 #00BF 0x8C1C0912, // 00B8 GETMET R7 R4 K18 0x88240914, // 00B9 GETMBR R9 R4 K20 - 0x88280115, // 00BA GETMBR R10 R0 K21 - 0x7C1C0600, // 00BB CALL R7 3 - 0x80040E00, // 00BC RET 1 R7 - 0x70020010, // 00BD JMP #00CF - 0x541EFFFB, // 00BE LDINT R7 65532 - 0x1C1C0C07, // 00BF EQ R7 R6 R7 - 0x781E0005, // 00C0 JMPF R7 #00C7 - 0x8C1C0912, // 00C1 GETMET R7 R4 K18 - 0x8824090F, // 00C2 GETMBR R9 R4 K15 - 0x58280005, // 00C3 LDCONST R10 K5 - 0x7C1C0600, // 00C4 CALL R7 3 - 0x80040E00, // 00C5 RET 1 R7 - 0x70020007, // 00C6 JMP #00CF - 0x541EFFFC, // 00C7 LDINT R7 65533 - 0x1C1C0C07, // 00C8 EQ R7 R6 R7 - 0x781E0004, // 00C9 JMPF R7 #00CF - 0x8C1C0912, // 00CA GETMET R7 R4 K18 - 0x8824090F, // 00CB GETMBR R9 R4 K15 - 0x542A0003, // 00CC LDINT R10 4 - 0x7C1C0600, // 00CD CALL R7 3 - 0x80040E00, // 00CE RET 1 R7 - 0x7002002D, // 00CF JMP #00FE - 0x541E0007, // 00D0 LDINT R7 8 - 0x1C1C0A07, // 00D1 EQ R7 R5 R7 - 0x781E002A, // 00D2 JMPF R7 #00FE - 0x1C1C0D05, // 00D3 EQ R7 R6 K5 - 0x781E0005, // 00D4 JMPF R7 #00DB - 0x8C1C0912, // 00D5 GETMET R7 R4 K18 - 0x88240913, // 00D6 GETMBR R9 R4 K19 - 0x542A0087, // 00D7 LDINT R10 136 - 0x7C1C0600, // 00D8 CALL R7 3 - 0x80040E00, // 00D9 RET 1 R7 - 0x70020022, // 00DA JMP #00FE - 0x541E000E, // 00DB LDINT R7 15 - 0x1C1C0C07, // 00DC EQ R7 R6 R7 - 0x781E0005, // 00DD JMPF R7 #00E4 - 0x8C1C0912, // 00DE GETMET R7 R4 K18 - 0x88240913, // 00DF GETMBR R9 R4 K19 - 0x58280005, // 00E0 LDCONST R10 K5 - 0x7C1C0600, // 00E1 CALL R7 3 - 0x80040E00, // 00E2 RET 1 R7 - 0x70020019, // 00E3 JMP #00FE - 0x541E000F, // 00E4 LDINT R7 16 - 0x1C1C0C07, // 00E5 EQ R7 R6 R7 - 0x781E0005, // 00E6 JMPF R7 #00ED - 0x8C1C0912, // 00E7 GETMET R7 R4 K18 - 0x88240913, // 00E8 GETMBR R9 R4 K19 - 0x5828000C, // 00E9 LDCONST R10 K12 - 0x7C1C0600, // 00EA CALL R7 3 - 0x80040E00, // 00EB RET 1 R7 - 0x70020010, // 00EC JMP #00FE - 0x541EFFFB, // 00ED LDINT R7 65532 - 0x1C1C0C07, // 00EE EQ R7 R6 R7 - 0x781E0005, // 00EF JMPF R7 #00F6 - 0x8C1C0912, // 00F0 GETMET R7 R4 K18 - 0x8824090F, // 00F1 GETMBR R9 R4 K15 - 0x58280005, // 00F2 LDCONST R10 K5 - 0x7C1C0600, // 00F3 CALL R7 3 - 0x80040E00, // 00F4 RET 1 R7 - 0x70020007, // 00F5 JMP #00FE - 0x541EFFFC, // 00F6 LDINT R7 65533 - 0x1C1C0C07, // 00F7 EQ R7 R6 R7 - 0x781E0004, // 00F8 JMPF R7 #00FE - 0x8C1C0912, // 00F9 GETMET R7 R4 K18 - 0x8824090F, // 00FA GETMBR R9 R4 K15 - 0x542A0003, // 00FB LDINT R10 4 - 0x7C1C0600, // 00FC CALL R7 3 - 0x80040E00, // 00FD RET 1 R7 - 0x80000000, // 00FE RET 0 + 0x8C280115, // 00BA GETMET R10 R0 K21 + 0x7C280200, // 00BB CALL R10 1 + 0x7C1C0600, // 00BC CALL R7 3 + 0x80040E00, // 00BD RET 1 R7 + 0x70020010, // 00BE JMP #00D0 + 0x541EFFFB, // 00BF LDINT R7 65532 + 0x1C1C0C07, // 00C0 EQ R7 R6 R7 + 0x781E0005, // 00C1 JMPF R7 #00C8 + 0x8C1C0912, // 00C2 GETMET R7 R4 K18 + 0x8824090F, // 00C3 GETMBR R9 R4 K15 + 0x58280005, // 00C4 LDCONST R10 K5 + 0x7C1C0600, // 00C5 CALL R7 3 + 0x80040E00, // 00C6 RET 1 R7 + 0x70020007, // 00C7 JMP #00D0 + 0x541EFFFC, // 00C8 LDINT R7 65533 + 0x1C1C0C07, // 00C9 EQ R7 R6 R7 + 0x781E0004, // 00CA JMPF R7 #00D0 + 0x8C1C0912, // 00CB GETMET R7 R4 K18 + 0x8824090F, // 00CC GETMBR R9 R4 K15 + 0x542A0003, // 00CD LDINT R10 4 + 0x7C1C0600, // 00CE CALL R7 3 + 0x80040E00, // 00CF RET 1 R7 + 0x7002002D, // 00D0 JMP #00FF + 0x541E0007, // 00D1 LDINT R7 8 + 0x1C1C0A07, // 00D2 EQ R7 R5 R7 + 0x781E002A, // 00D3 JMPF R7 #00FF + 0x1C1C0D05, // 00D4 EQ R7 R6 K5 + 0x781E0005, // 00D5 JMPF R7 #00DC + 0x8C1C0912, // 00D6 GETMET R7 R4 K18 + 0x88240913, // 00D7 GETMBR R9 R4 K19 + 0x542A0087, // 00D8 LDINT R10 136 + 0x7C1C0600, // 00D9 CALL R7 3 + 0x80040E00, // 00DA RET 1 R7 + 0x70020022, // 00DB JMP #00FF + 0x541E000E, // 00DC LDINT R7 15 + 0x1C1C0C07, // 00DD EQ R7 R6 R7 + 0x781E0005, // 00DE JMPF R7 #00E5 + 0x8C1C0912, // 00DF GETMET R7 R4 K18 + 0x88240913, // 00E0 GETMBR R9 R4 K19 + 0x58280005, // 00E1 LDCONST R10 K5 + 0x7C1C0600, // 00E2 CALL R7 3 + 0x80040E00, // 00E3 RET 1 R7 + 0x70020019, // 00E4 JMP #00FF + 0x541E000F, // 00E5 LDINT R7 16 + 0x1C1C0C07, // 00E6 EQ R7 R6 R7 + 0x781E0005, // 00E7 JMPF R7 #00EE + 0x8C1C0912, // 00E8 GETMET R7 R4 K18 + 0x88240913, // 00E9 GETMBR R9 R4 K19 + 0x5828000C, // 00EA LDCONST R10 K12 + 0x7C1C0600, // 00EB CALL R7 3 + 0x80040E00, // 00EC RET 1 R7 + 0x70020010, // 00ED JMP #00FF + 0x541EFFFB, // 00EE LDINT R7 65532 + 0x1C1C0C07, // 00EF EQ R7 R6 R7 + 0x781E0005, // 00F0 JMPF R7 #00F7 + 0x8C1C0912, // 00F1 GETMET R7 R4 K18 + 0x8824090F, // 00F2 GETMBR R9 R4 K15 + 0x58280005, // 00F3 LDCONST R10 K5 + 0x7C1C0600, // 00F4 CALL R7 3 + 0x80040E00, // 00F5 RET 1 R7 + 0x70020007, // 00F6 JMP #00FF + 0x541EFFFC, // 00F7 LDINT R7 65533 + 0x1C1C0C07, // 00F8 EQ R7 R6 R7 + 0x781E0004, // 00F9 JMPF R7 #00FF + 0x8C1C0912, // 00FA GETMET R7 R4 K18 + 0x8824090F, // 00FB GETMBR R9 R4 K15 + 0x542A0003, // 00FC LDINT R10 4 + 0x7C1C0600, // 00FD CALL R7 3 + 0x80040E00, // 00FE RET 1 R7 + 0x80000000, // 00FF RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_second +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_every_second, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(get_onoff), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x80000000, // 0002 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_invoke_request, /* name */ + be_nested_proto( + 13, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(TLV), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(command), + /* K4 */ be_const_int(3), + /* K5 */ be_const_int(0), + /* K6 */ be_const_int(1), + /* K7 */ be_nested_str_weak(Matter_TLV_struct), + /* K8 */ be_nested_str_weak(add_TLV), + /* K9 */ be_nested_str_weak(U2), + /* K10 */ be_nested_str_weak(set_onoff), + /* K11 */ be_const_int(2), + /* K12 */ be_nested_str_weak(get_onoff), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[119]) { /* code */ + 0xB8120000, // 0000 GETNGBL R4 K0 + 0x88100901, // 0001 GETMBR R4 R4 K1 + 0x88140702, // 0002 GETMBR R5 R3 K2 + 0x88180703, // 0003 GETMBR R6 R3 K3 + 0x1C1C0B04, // 0004 EQ R7 R5 K4 + 0x781E0016, // 0005 JMPF R7 #001D + 0x1C1C0D05, // 0006 EQ R7 R6 K5 + 0x781E0002, // 0007 JMPF R7 #000B + 0x501C0200, // 0008 LDBOOL R7 1 0 + 0x80040E00, // 0009 RET 1 R7 + 0x70020010, // 000A JMP #001C + 0x1C1C0D06, // 000B EQ R7 R6 K6 + 0x781E0009, // 000C JMPF R7 #0017 + 0x8C1C0907, // 000D GETMET R7 R4 K7 + 0x7C1C0200, // 000E CALL R7 1 + 0x8C200F08, // 000F GETMET R8 R7 K8 + 0x58280005, // 0010 LDCONST R10 K5 + 0x882C0909, // 0011 GETMBR R11 R4 K9 + 0x58300005, // 0012 LDCONST R12 K5 + 0x7C200800, // 0013 CALL R8 4 + 0x900E0705, // 0014 SETMBR R3 K3 K5 + 0x80040E00, // 0015 RET 1 R7 + 0x70020004, // 0016 JMP #001C + 0x541E003F, // 0017 LDINT R7 64 + 0x1C1C0C07, // 0018 EQ R7 R6 R7 + 0x781E0001, // 0019 JMPF R7 #001C + 0x501C0200, // 001A LDBOOL R7 1 0 + 0x80040E00, // 001B RET 1 R7 + 0x70020058, // 001C JMP #0076 + 0x541E0003, // 001D LDINT R7 4 + 0x1C1C0A07, // 001E EQ R7 R5 R7 + 0x781E0002, // 001F JMPF R7 #0023 + 0x501C0200, // 0020 LDBOOL R7 1 0 + 0x80040E00, // 0021 RET 1 R7 + 0x70020052, // 0022 JMP #0076 + 0x541E0004, // 0023 LDINT R7 5 + 0x1C1C0A07, // 0024 EQ R7 R5 R7 + 0x781E0002, // 0025 JMPF R7 #0029 + 0x501C0200, // 0026 LDBOOL R7 1 0 + 0x80040E00, // 0027 RET 1 R7 + 0x7002004C, // 0028 JMP #0076 + 0x541E0005, // 0029 LDINT R7 6 + 0x1C1C0A07, // 002A EQ R7 R5 R7 + 0x781E001B, // 002B JMPF R7 #0048 + 0x1C1C0D05, // 002C EQ R7 R6 K5 + 0x781E0005, // 002D JMPF R7 #0034 + 0x8C1C010A, // 002E GETMET R7 R0 K10 + 0x50240000, // 002F LDBOOL R9 0 0 + 0x7C1C0400, // 0030 CALL R7 2 + 0x501C0200, // 0031 LDBOOL R7 1 0 + 0x80040E00, // 0032 RET 1 R7 + 0x70020012, // 0033 JMP #0047 + 0x1C1C0D06, // 0034 EQ R7 R6 K6 + 0x781E0005, // 0035 JMPF R7 #003C + 0x8C1C010A, // 0036 GETMET R7 R0 K10 + 0x50240200, // 0037 LDBOOL R9 1 0 + 0x7C1C0400, // 0038 CALL R7 2 + 0x501C0200, // 0039 LDBOOL R7 1 0 + 0x80040E00, // 003A RET 1 R7 + 0x7002000A, // 003B JMP #0047 + 0x1C1C0D0B, // 003C EQ R7 R6 K11 + 0x781E0008, // 003D JMPF R7 #0047 + 0x8C1C010A, // 003E GETMET R7 R0 K10 + 0x8C24010C, // 003F GETMET R9 R0 K12 + 0x7C240200, // 0040 CALL R9 1 + 0x78260000, // 0041 JMPF R9 #0043 + 0x50240001, // 0042 LDBOOL R9 0 1 + 0x50240200, // 0043 LDBOOL R9 1 0 + 0x7C1C0400, // 0044 CALL R7 2 + 0x501C0200, // 0045 LDBOOL R7 1 0 + 0x80040E00, // 0046 RET 1 R7 + 0x7002002D, // 0047 JMP #0076 + 0x541E0007, // 0048 LDINT R7 8 + 0x1C1C0A07, // 0049 EQ R7 R5 R7 + 0x781E002A, // 004A JMPF R7 #0076 + 0x1C1C0D05, // 004B EQ R7 R6 K5 + 0x781E0002, // 004C JMPF R7 #0050 + 0x501C0200, // 004D LDBOOL R7 1 0 + 0x80040E00, // 004E RET 1 R7 + 0x70020025, // 004F JMP #0076 + 0x1C1C0D06, // 0050 EQ R7 R6 K6 + 0x781E0002, // 0051 JMPF R7 #0055 + 0x501C0200, // 0052 LDBOOL R7 1 0 + 0x80040E00, // 0053 RET 1 R7 + 0x70020020, // 0054 JMP #0076 + 0x1C1C0D0B, // 0055 EQ R7 R6 K11 + 0x781E0002, // 0056 JMPF R7 #005A + 0x501C0200, // 0057 LDBOOL R7 1 0 + 0x80040E00, // 0058 RET 1 R7 + 0x7002001B, // 0059 JMP #0076 + 0x1C1C0D04, // 005A EQ R7 R6 K4 + 0x781E0002, // 005B JMPF R7 #005F + 0x501C0200, // 005C LDBOOL R7 1 0 + 0x80040E00, // 005D RET 1 R7 + 0x70020016, // 005E JMP #0076 + 0x541E0003, // 005F LDINT R7 4 + 0x1C1C0C07, // 0060 EQ R7 R6 R7 + 0x781E0002, // 0061 JMPF R7 #0065 + 0x501C0200, // 0062 LDBOOL R7 1 0 + 0x80040E00, // 0063 RET 1 R7 + 0x70020010, // 0064 JMP #0076 + 0x541E0004, // 0065 LDINT R7 5 + 0x1C1C0C07, // 0066 EQ R7 R6 R7 + 0x781E0002, // 0067 JMPF R7 #006B + 0x501C0200, // 0068 LDBOOL R7 1 0 + 0x80040E00, // 0069 RET 1 R7 + 0x7002000A, // 006A JMP #0076 + 0x541E0005, // 006B LDINT R7 6 + 0x1C1C0C07, // 006C EQ R7 R6 R7 + 0x781E0002, // 006D JMPF R7 #0071 + 0x501C0200, // 006E LDBOOL R7 1 0 + 0x80040E00, // 006F RET 1 R7 + 0x70020004, // 0070 JMP #0076 + 0x541E0006, // 0071 LDINT R7 7 + 0x1C1C0C07, // 0072 EQ R7 R6 R7 + 0x781E0001, // 0073 JMPF R7 #0076 + 0x501C0200, // 0074 LDBOOL R7 1 0 + 0x80040E00, // 0075 RET 1 R7 + 0x80000000, // 0076 RET 0 }) ) ); @@ -553,28 +680,40 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ ********************************************************************/ extern const bclass be_class_Matter_Plugin; be_local_class(Matter_Plugin_OnOff, - 1, + 2, &be_class_Matter_Plugin, - be_nested_map(8, + be_nested_map(12, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(read_attribute, 6), be_const_closure(Matter_Plugin_OnOff_read_attribute_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_OnOff_init_closure) }, - { be_const_key_weak(TYPES, 0), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(266, -1), be_const_int(2) }, })) ) } )) }, - { be_const_key_weak(invoke_request, 1), be_const_closure(Matter_Plugin_OnOff_invoke_request_closure) }, - { be_const_key_weak(onoff, -1), be_const_var(0) }, - { be_const_key_weak(ENDPOINTS, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + { be_const_key_weak(ENDPOINTS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(1, ( (struct bvalue*) &(const bvalue[]) { be_const_int(1), })) ) } )) }, - { be_const_key_weak(onoff_changed, 7), be_const_closure(Matter_Plugin_OnOff_onoff_changed_closure) }, + { be_const_key_weak(onoff_changed, 0), be_const_closure(Matter_Plugin_OnOff_onoff_changed_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_OnOff_init_closure) }, + { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, + { be_const_key_weak(tasmota_relay_index, -1), be_const_var(0) }, + { be_const_key_weak(set_onoff, 8), be_const_closure(Matter_Plugin_OnOff_set_onoff_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(6, + be_const_map( * be_nested_map(5, ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(5, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(8, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(2), + be_const_int(3), + be_const_int(4), + be_const_int(5), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, { be_const_key_int(6, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(3, ( (struct bvalue*) &(const bvalue[]) { @@ -591,15 +730,6 @@ be_local_class(Matter_Plugin_OnOff, be_const_int(3), be_const_int(65532), be_const_int(65533), - })) ) } )) }, - { be_const_key_int(8, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(5, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(15), - be_const_int(17), - be_const_int(65532), - be_const_int(65533), })) ) } )) }, { be_const_key_int(3, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(4, @@ -609,26 +739,18 @@ be_local_class(Matter_Plugin_OnOff, be_const_int(65532), be_const_int(65533), })) ) } )) }, - { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + { be_const_key_int(4, 2), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(3, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), be_const_int(65532), be_const_int(65533), - })) ) } )) }, - { be_const_key_int(5, 1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(8, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(2), - be_const_int(3), - be_const_int(4), - be_const_int(5), - be_const_int(65532), - be_const_int(65533), })) ) } )) }, })) ) } )) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_OnOff_read_attribute_closure) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Plugin_OnOff_every_second_closure) }, + { be_const_key_weak(get_onoff, 7), be_const_closure(Matter_Plugin_OnOff_get_onoff_closure) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_OnOff_invoke_request_closure) }, })), be_str_weak(Matter_Plugin_OnOff) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h index a19f10c78..2a886bf7c 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h @@ -19,7 +19,7 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[86]) { /* constants */ + ( &(const bvalue[90]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(TLV), @@ -77,39 +77,43 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ /* K54 */ be_nested_str_weak(B2), /* K55 */ be_nested_str_weak(get_noc), /* K56 */ be_nested_str_weak(get_icac), - /* K57 */ be_nested_str_weak(stop_iteration), - /* K58 */ be_nested_str_weak(parse), - /* K59 */ be_nested_str_weak(get_ca), - /* K60 */ be_nested_str_weak(findsubval), - /* K61 */ be_nested_str_weak(get_admin_vendor), - /* K62 */ be_nested_str_weak(get_fabric_compressed), - /* K63 */ be_nested_str_weak(get_device_id), - /* K64 */ be_nested_str_weak(get_fabric_label), - /* K65 */ be_nested_str_weak(Fabric), - /* K66 */ be_nested_str_weak(_MAX_CASE), - /* K67 */ be_nested_str_weak(count_active_fabrics), - /* K68 */ be_nested_str_weak(_fabric), - /* K69 */ be_nested_str_weak(Tasmota), - /* K70 */ be_nested_str_weak(vendorid), - /* K71 */ be_nested_str_weak(DeviceName), - /* K72 */ be_nested_str_weak(FriendlyName), - /* K73 */ be_nested_str_weak(FriendlyName1), - /* K74 */ be_nested_str_weak(XX), - /* K75 */ be_nested_str_weak(Status_X202), - /* K76 */ be_nested_str_weak(StatusFWR), - /* K77 */ be_nested_str_weak(Hardware), - /* K78 */ be_nested_str_weak(Version), - /* K79 */ be_nested_str_weak(locale), - /* K80 */ be_nested_str_weak(TYPES), - /* K81 */ be_nested_str_weak(keys), - /* K82 */ be_nested_str_weak(get_cluster_list), - /* K83 */ be_nested_str_weak(get_active_endpoints), - /* K84 */ be_nested_str_weak(status), - /* K85 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), + /* K57 */ be_nested_str_weak(get_fabric_index), + /* K58 */ be_nested_str_weak(stop_iteration), + /* K59 */ be_nested_str_weak(parse), + /* K60 */ be_nested_str_weak(get_ca), + /* K61 */ be_nested_str_weak(findsubval), + /* K62 */ be_nested_str_weak(get_admin_vendor), + /* K63 */ be_nested_str_weak(get_fabric_id), + /* K64 */ be_nested_str_weak(get_device_id), + /* K65 */ be_nested_str_weak(get_fabric_label), + /* K66 */ be_nested_str_weak(Fabric), + /* K67 */ be_nested_str_weak(_MAX_CASE), + /* K68 */ be_nested_str_weak(count_active_fabrics), + /* K69 */ be_nested_str_weak(_fabric), + /* K70 */ be_nested_str_weak(is_commissioning_open), + /* K71 */ be_nested_str_weak(is_root_commissioning_open), + /* K72 */ be_nested_str_weak(commissioning_admin_fabric), + /* K73 */ be_nested_str_weak(Tasmota), + /* K74 */ be_nested_str_weak(vendorid), + /* K75 */ be_nested_str_weak(DeviceName), + /* K76 */ be_nested_str_weak(FriendlyName), + /* K77 */ be_nested_str_weak(FriendlyName1), + /* K78 */ be_nested_str_weak(XX), + /* K79 */ be_nested_str_weak(Status_X202), + /* K80 */ be_nested_str_weak(StatusFWR), + /* K81 */ be_nested_str_weak(Hardware), + /* K82 */ be_nested_str_weak(Version), + /* K83 */ be_nested_str_weak(locale), + /* K84 */ be_nested_str_weak(TYPES), + /* K85 */ be_nested_str_weak(keys), + /* K86 */ be_nested_str_weak(get_cluster_list), + /* K87 */ be_nested_str_weak(get_active_endpoints), + /* K88 */ be_nested_str_weak(status), + /* K89 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[856]) { /* code */ + ( &(const binstruction[918]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x88100902, // 0002 GETMBR R4 R4 K2 @@ -166,11 +170,11 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ 0x50280000, // 0035 LDBOOL R10 0 0 0x7C1C0600, // 0036 CALL R7 3 0x80040E00, // 0037 RET 1 R7 - 0x7002031D, // 0038 JMP #0357 + 0x7002035B, // 0038 JMP #0395 0x541E0031, // 0039 LDINT R7 50 0x1C1C0A07, // 003A EQ R7 R5 R7 0x781E0000, // 003B JMPF R7 #003D - 0x70020319, // 003C JMP #0357 + 0x70020357, // 003C JMP #0395 0x541E0032, // 003D LDINT R7 51 0x1C1C0A07, // 003E EQ R7 R5 R7 0x781E00DC, // 003F JMPF R7 #011D @@ -394,11 +398,11 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ 0x50280000, // 0119 LDBOOL R10 0 0 0x7C1C0600, // 011A CALL R7 3 0x80040E00, // 011B RET 1 R7 - 0x70020239, // 011C JMP #0357 + 0x70020277, // 011C JMP #0395 0x541E0033, // 011D LDINT R7 52 0x1C1C0A07, // 011E EQ R7 R5 R7 0x781E0000, // 011F JMPF R7 #0121 - 0x70020235, // 0120 JMP #0357 + 0x70020273, // 0120 JMP #0395 0x541E0037, // 0121 LDINT R7 56 0x1C1C0A07, // 0122 EQ R7 R5 R7 0x781E002C, // 0123 JMPF R7 #0151 @@ -446,12 +450,12 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ 0x5C2C0E00, // 014D MOVE R11 R7 0x7C200600, // 014E CALL R8 3 0x80041000, // 014F RET 1 R8 - 0x70020205, // 0150 JMP #0357 + 0x70020243, // 0150 JMP #0395 0x541E003D, // 0151 LDINT R7 62 0x1C1C0A07, // 0152 EQ R7 R5 R7 - 0x781E0098, // 0153 JMPF R7 #01ED + 0x781E008B, // 0153 JMPF R7 #01E0 0x1C1C0D05, // 0154 EQ R7 R6 K5 - 0x781E001F, // 0155 JMPF R7 #0176 + 0x781E0025, // 0155 JMPF R7 #017C 0x8C1C0911, // 0156 GETMET R7 R4 K17 0x7C1C0200, // 0157 CALL R7 1 0x60200010, // 0158 GETGBL R8 G16 @@ -460,7 +464,7 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ 0x8C241335, // 015B GETMET R9 R9 K53 0x7C240200, // 015C CALL R9 1 0x7C200200, // 015D CALL R8 1 - 0xA8020011, // 015E EXBLK 0 #0171 + 0xA8020017, // 015E EXBLK 0 #0177 0x5C241000, // 015F MOVE R9 R8 0x7C240000, // 0160 CALL R9 0 0x8C280F15, // 0161 GETMET R10 R7 K21 @@ -478,494 +482,556 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ 0x8C3C1338, // 016D GETMET R15 R9 K56 0x7C3C0200, // 016E CALL R15 1 0x7C2C0800, // 016F CALL R11 4 - 0x7001FFED, // 0170 JMP #015F - 0x58200039, // 0171 LDCONST R8 K57 - 0xAC200200, // 0172 CATCH R8 1 0 - 0xB0080000, // 0173 RAISE 2 R0 R0 - 0x80040E00, // 0174 RET 1 R7 - 0x70020075, // 0175 JMP #01EC - 0x1C1C0D09, // 0176 EQ R7 R6 K9 - 0x781E0036, // 0177 JMPF R7 #01AF - 0x8C1C0911, // 0178 GETMET R7 R4 K17 - 0x7C1C0200, // 0179 CALL R7 1 - 0x60200010, // 017A GETGBL R8 G16 - 0x88240133, // 017B GETMBR R9 R0 K51 - 0x88241334, // 017C GETMBR R9 R9 K52 - 0x8C241335, // 017D GETMET R9 R9 K53 - 0x7C240200, // 017E CALL R9 1 - 0x7C200200, // 017F CALL R8 1 - 0xA8020028, // 0180 EXBLK 0 #01AA - 0x5C241000, // 0181 MOVE R9 R8 - 0x7C240000, // 0182 CALL R9 0 - 0x8C28093A, // 0183 GETMET R10 R4 K58 - 0x8C30133B, // 0184 GETMET R12 R9 K59 - 0x7C300200, // 0185 CALL R12 1 - 0x7C280400, // 0186 CALL R10 2 - 0x8C2C0F15, // 0187 GETMET R11 R7 K21 - 0x4C340000, // 0188 LDNIL R13 - 0x7C2C0400, // 0189 CALL R11 2 - 0x8C30170B, // 018A GETMET R12 R11 K11 - 0x58380009, // 018B LDCONST R14 K9 - 0x883C0936, // 018C GETMBR R15 R4 K54 - 0x8C40153C, // 018D GETMET R16 R10 K60 - 0x544A0008, // 018E LDINT R18 9 - 0x7C400400, // 018F CALL R16 2 - 0x7C300800, // 0190 CALL R12 4 - 0x8C30170B, // 0191 GETMET R12 R11 K11 - 0x5838000D, // 0192 LDCONST R14 K13 - 0x883C090C, // 0193 GETMBR R15 R4 K12 - 0x8C40133D, // 0194 GETMET R16 R9 K61 - 0x7C400200, // 0195 CALL R16 1 + 0x8C2C150B, // 0170 GETMET R11 R10 K11 + 0x543600FD, // 0171 LDINT R13 254 + 0x8838090C, // 0172 GETMBR R14 R4 K12 + 0x8C3C1339, // 0173 GETMET R15 R9 K57 + 0x7C3C0200, // 0174 CALL R15 1 + 0x7C2C0800, // 0175 CALL R11 4 + 0x7001FFE7, // 0176 JMP #015F + 0x5820003A, // 0177 LDCONST R8 K58 + 0xAC200200, // 0178 CATCH R8 1 0 + 0xB0080000, // 0179 RAISE 2 R0 R0 + 0x80040E00, // 017A RET 1 R7 + 0x70020062, // 017B JMP #01DF + 0x1C1C0D09, // 017C EQ R7 R6 K9 + 0x781E003C, // 017D JMPF R7 #01BB + 0x8C1C0911, // 017E GETMET R7 R4 K17 + 0x7C1C0200, // 017F CALL R7 1 + 0x60200010, // 0180 GETGBL R8 G16 + 0x88240133, // 0181 GETMBR R9 R0 K51 + 0x88241334, // 0182 GETMBR R9 R9 K52 + 0x8C241335, // 0183 GETMET R9 R9 K53 + 0x7C240200, // 0184 CALL R9 1 + 0x7C200200, // 0185 CALL R8 1 + 0xA802002E, // 0186 EXBLK 0 #01B6 + 0x5C241000, // 0187 MOVE R9 R8 + 0x7C240000, // 0188 CALL R9 0 + 0x8C28093B, // 0189 GETMET R10 R4 K59 + 0x8C30133C, // 018A GETMET R12 R9 K60 + 0x7C300200, // 018B CALL R12 1 + 0x7C280400, // 018C CALL R10 2 + 0x8C2C0F15, // 018D GETMET R11 R7 K21 + 0x4C340000, // 018E LDNIL R13 + 0x7C2C0400, // 018F CALL R11 2 + 0x8C30170B, // 0190 GETMET R12 R11 K11 + 0x58380009, // 0191 LDCONST R14 K9 + 0x883C0936, // 0192 GETMBR R15 R4 K54 + 0x8C40153D, // 0193 GETMET R16 R10 K61 + 0x544A0008, // 0194 LDINT R18 9 + 0x7C400400, // 0195 CALL R16 2 0x7C300800, // 0196 CALL R12 4 0x8C30170B, // 0197 GETMET R12 R11 K11 - 0x5838000F, // 0198 LDCONST R14 K15 - 0x883C0907, // 0199 GETMBR R15 R4 K7 + 0x5838000D, // 0198 LDCONST R14 K13 + 0x883C090C, // 0199 GETMBR R15 R4 K12 0x8C40133E, // 019A GETMET R16 R9 K62 0x7C400200, // 019B CALL R16 1 0x7C300800, // 019C CALL R12 4 0x8C30170B, // 019D GETMET R12 R11 K11 - 0x543A0003, // 019E LDINT R14 4 + 0x5838000F, // 019E LDCONST R14 K15 0x883C0907, // 019F GETMBR R15 R4 K7 0x8C40133F, // 01A0 GETMET R16 R9 K63 0x7C400200, // 01A1 CALL R16 1 0x7C300800, // 01A2 CALL R12 4 0x8C30170B, // 01A3 GETMET R12 R11 K11 - 0x543A0004, // 01A4 LDINT R14 5 - 0x883C0916, // 01A5 GETMBR R15 R4 K22 + 0x543A0003, // 01A4 LDINT R14 4 + 0x883C0907, // 01A5 GETMBR R15 R4 K7 0x8C401340, // 01A6 GETMET R16 R9 K64 0x7C400200, // 01A7 CALL R16 1 0x7C300800, // 01A8 CALL R12 4 - 0x7001FFD6, // 01A9 JMP #0181 - 0x58200039, // 01AA LDCONST R8 K57 - 0xAC200200, // 01AB CATCH R8 1 0 - 0xB0080000, // 01AC RAISE 2 R0 R0 - 0x80040E00, // 01AD RET 1 R7 - 0x7002003C, // 01AE JMP #01EC - 0x1C1C0D0D, // 01AF EQ R7 R6 K13 - 0x781E0007, // 01B0 JMPF R7 #01B9 - 0x8C1C0906, // 01B1 GETMET R7 R4 K6 - 0x8824090E, // 01B2 GETMBR R9 R4 K14 - 0xB82A0200, // 01B3 GETNGBL R10 K1 - 0x88281541, // 01B4 GETMBR R10 R10 K65 - 0x88281542, // 01B5 GETMBR R10 R10 K66 - 0x7C1C0600, // 01B6 CALL R7 3 - 0x80040E00, // 01B7 RET 1 R7 - 0x70020032, // 01B8 JMP #01EC - 0x1C1C0D0F, // 01B9 EQ R7 R6 K15 - 0x781E0009, // 01BA JMPF R7 #01C5 - 0x881C0133, // 01BB GETMBR R7 R0 K51 - 0x881C0F34, // 01BC GETMBR R7 R7 K52 - 0x8C1C0F43, // 01BD GETMET R7 R7 K67 - 0x7C1C0200, // 01BE CALL R7 1 - 0x8C200906, // 01BF GETMET R8 R4 K6 - 0x8828090E, // 01C0 GETMBR R10 R4 K14 - 0x5C2C0E00, // 01C1 MOVE R11 R7 - 0x7C200600, // 01C2 CALL R8 3 - 0x80041000, // 01C3 RET 1 R8 - 0x70020026, // 01C4 JMP #01EC - 0x541E0003, // 01C5 LDINT R7 4 - 0x1C1C0C07, // 01C6 EQ R7 R6 R7 - 0x781E0000, // 01C7 JMPF R7 #01C9 - 0x70020022, // 01C8 JMP #01EC - 0x541E0004, // 01C9 LDINT R7 5 - 0x1C1C0C07, // 01CA EQ R7 R6 R7 - 0x781E001F, // 01CB JMPF R7 #01EC - 0x881C0344, // 01CC GETMBR R7 R1 K68 - 0x58200005, // 01CD LDCONST R8 K5 - 0x50240000, // 01CE LDBOOL R9 0 0 - 0x60280010, // 01CF GETGBL R10 G16 - 0x882C0133, // 01D0 GETMBR R11 R0 K51 - 0x882C1734, // 01D1 GETMBR R11 R11 K52 - 0x8C2C1735, // 01D2 GETMET R11 R11 K53 - 0x7C2C0200, // 01D3 CALL R11 1 - 0x7C280200, // 01D4 CALL R10 1 - 0xA802000A, // 01D5 EXBLK 0 #01E1 - 0x5C2C1400, // 01D6 MOVE R11 R10 - 0x7C2C0000, // 01D7 CALL R11 0 - 0x1C301607, // 01D8 EQ R12 R11 R7 - 0x78320002, // 01D9 JMPF R12 #01DD - 0x50240200, // 01DA LDBOOL R9 1 0 - 0x70020002, // 01DB JMP #01DF - 0x70020000, // 01DC JMP #01DE - 0x00201109, // 01DD ADD R8 R8 K9 - 0x7001FFF6, // 01DE JMP #01D6 - 0xA8040001, // 01DF EXBLK 1 1 - 0x70020002, // 01E0 JMP #01E4 - 0x58280039, // 01E1 LDCONST R10 K57 - 0xAC280200, // 01E2 CATCH R10 1 0 - 0xB0080000, // 01E3 RAISE 2 R0 R0 - 0x5C281200, // 01E4 MOVE R10 R9 - 0x742A0000, // 01E5 JMPT R10 #01E7 - 0x5421FFFE, // 01E6 LDINT R8 -1 - 0x8C280906, // 01E7 GETMET R10 R4 K6 - 0x8830090E, // 01E8 GETMBR R12 R4 K14 - 0x00341109, // 01E9 ADD R13 R8 K9 - 0x7C280600, // 01EA CALL R10 3 - 0x80041400, // 01EB RET 1 R10 - 0x70020169, // 01EC JMP #0357 - 0x541E003B, // 01ED LDINT R7 60 - 0x1C1C0A07, // 01EE EQ R7 R5 R7 - 0x781E0000, // 01EF JMPF R7 #01F1 - 0x70020165, // 01F0 JMP #0357 - 0x541E0027, // 01F1 LDINT R7 40 - 0x1C1C0A07, // 01F2 EQ R7 R5 R7 - 0x781E0095, // 01F3 JMPF R7 #028A - 0x1C1C0D05, // 01F4 EQ R7 R6 K5 - 0x781E0005, // 01F5 JMPF R7 #01FC - 0x8C1C0906, // 01F6 GETMET R7 R4 K6 - 0x8824090C, // 01F7 GETMBR R9 R4 K12 - 0x58280005, // 01F8 LDCONST R10 K5 - 0x7C1C0600, // 01F9 CALL R7 3 - 0x80040E00, // 01FA RET 1 R7 - 0x7002008C, // 01FB JMP #0289 - 0x1C1C0D09, // 01FC EQ R7 R6 K9 - 0x781E0005, // 01FD JMPF R7 #0204 - 0x8C1C0906, // 01FE GETMET R7 R4 K6 - 0x88240916, // 01FF GETMBR R9 R4 K22 - 0x58280045, // 0200 LDCONST R10 K69 - 0x7C1C0600, // 0201 CALL R7 3 - 0x80040E00, // 0202 RET 1 R7 - 0x70020084, // 0203 JMP #0289 - 0x1C1C0D0D, // 0204 EQ R7 R6 K13 - 0x781E0006, // 0205 JMPF R7 #020D - 0x8C1C0906, // 0206 GETMET R7 R4 K6 - 0x8824090C, // 0207 GETMBR R9 R4 K12 - 0x88280133, // 0208 GETMBR R10 R0 K51 - 0x88281546, // 0209 GETMBR R10 R10 K70 - 0x7C1C0600, // 020A CALL R7 3 - 0x80040E00, // 020B RET 1 R7 - 0x7002007B, // 020C JMP #0289 - 0x1C1C0D0F, // 020D EQ R7 R6 K15 - 0x781E000A, // 020E JMPF R7 #021A - 0x8C1C0906, // 020F GETMET R7 R4 K6 - 0x88240916, // 0210 GETMBR R9 R4 K22 - 0xB82A2400, // 0211 GETNGBL R10 K18 - 0x8C281526, // 0212 GETMET R10 R10 K38 - 0x58300047, // 0213 LDCONST R12 K71 - 0x50340200, // 0214 LDBOOL R13 1 0 - 0x7C280600, // 0215 CALL R10 3 - 0x94281547, // 0216 GETIDX R10 R10 K71 - 0x7C1C0600, // 0217 CALL R7 3 - 0x80040E00, // 0218 RET 1 R7 - 0x7002006E, // 0219 JMP #0289 - 0x541E0003, // 021A LDINT R7 4 - 0x1C1C0C07, // 021B EQ R7 R6 R7 - 0x781E0005, // 021C JMPF R7 #0223 - 0x8C1C0906, // 021D GETMET R7 R4 K6 - 0x8824090C, // 021E GETMBR R9 R4 K12 - 0x542A7FFF, // 021F LDINT R10 32768 - 0x7C1C0600, // 0220 CALL R7 3 - 0x80040E00, // 0221 RET 1 R7 - 0x70020065, // 0222 JMP #0289 - 0x541E0004, // 0223 LDINT R7 5 - 0x1C1C0C07, // 0224 EQ R7 R6 R7 - 0x781E000A, // 0225 JMPF R7 #0231 - 0x8C1C0906, // 0226 GETMET R7 R4 K6 - 0x88240916, // 0227 GETMBR R9 R4 K22 - 0xB82A2400, // 0228 GETNGBL R10 K18 - 0x8C281526, // 0229 GETMET R10 R10 K38 - 0x58300048, // 022A LDCONST R12 K72 - 0x50340200, // 022B LDBOOL R13 1 0 - 0x7C280600, // 022C CALL R10 3 - 0x94281549, // 022D GETIDX R10 R10 K73 - 0x7C1C0600, // 022E CALL R7 3 - 0x80040E00, // 022F RET 1 R7 - 0x70020057, // 0230 JMP #0289 - 0x541E0005, // 0231 LDINT R7 6 - 0x1C1C0C07, // 0232 EQ R7 R6 R7 - 0x781E0005, // 0233 JMPF R7 #023A - 0x8C1C0906, // 0234 GETMET R7 R4 K6 - 0x88240916, // 0235 GETMBR R9 R4 K22 - 0x5828004A, // 0236 LDCONST R10 K74 - 0x7C1C0600, // 0237 CALL R7 3 - 0x80040E00, // 0238 RET 1 R7 - 0x7002004E, // 0239 JMP #0289 - 0x541E0006, // 023A LDINT R7 7 - 0x1C1C0C07, // 023B EQ R7 R6 R7 - 0x781E0005, // 023C JMPF R7 #0243 - 0x8C1C0906, // 023D GETMET R7 R4 K6 - 0x8824090C, // 023E GETMBR R9 R4 K12 - 0x58280005, // 023F LDCONST R10 K5 - 0x7C1C0600, // 0240 CALL R7 3 - 0x80040E00, // 0241 RET 1 R7 - 0x70020045, // 0242 JMP #0289 - 0x541E0007, // 0243 LDINT R7 8 - 0x1C1C0C07, // 0244 EQ R7 R6 R7 - 0x781E000B, // 0245 JMPF R7 #0252 - 0x8C1C0906, // 0246 GETMET R7 R4 K6 - 0x88240916, // 0247 GETMBR R9 R4 K22 - 0xB82A2400, // 0248 GETNGBL R10 K18 - 0x8C281526, // 0249 GETMET R10 R10 K38 - 0x5830004B, // 024A LDCONST R12 K75 - 0x50340200, // 024B LDBOOL R13 1 0 - 0x7C280600, // 024C CALL R10 3 - 0x9428154C, // 024D GETIDX R10 R10 K76 - 0x9428154D, // 024E GETIDX R10 R10 K77 + 0x8C30170B, // 01A9 GETMET R12 R11 K11 + 0x543A0004, // 01AA LDINT R14 5 + 0x883C0916, // 01AB GETMBR R15 R4 K22 + 0x8C401341, // 01AC GETMET R16 R9 K65 + 0x7C400200, // 01AD CALL R16 1 + 0x7C300800, // 01AE CALL R12 4 + 0x8C30170B, // 01AF GETMET R12 R11 K11 + 0x543A00FD, // 01B0 LDINT R14 254 + 0x883C090C, // 01B1 GETMBR R15 R4 K12 + 0x8C401339, // 01B2 GETMET R16 R9 K57 + 0x7C400200, // 01B3 CALL R16 1 + 0x7C300800, // 01B4 CALL R12 4 + 0x7001FFD0, // 01B5 JMP #0187 + 0x5820003A, // 01B6 LDCONST R8 K58 + 0xAC200200, // 01B7 CATCH R8 1 0 + 0xB0080000, // 01B8 RAISE 2 R0 R0 + 0x80040E00, // 01B9 RET 1 R7 + 0x70020023, // 01BA JMP #01DF + 0x1C1C0D0D, // 01BB EQ R7 R6 K13 + 0x781E0007, // 01BC JMPF R7 #01C5 + 0x8C1C0906, // 01BD GETMET R7 R4 K6 + 0x8824090E, // 01BE GETMBR R9 R4 K14 + 0xB82A0200, // 01BF GETNGBL R10 K1 + 0x88281542, // 01C0 GETMBR R10 R10 K66 + 0x88281543, // 01C1 GETMBR R10 R10 K67 + 0x7C1C0600, // 01C2 CALL R7 3 + 0x80040E00, // 01C3 RET 1 R7 + 0x70020019, // 01C4 JMP #01DF + 0x1C1C0D0F, // 01C5 EQ R7 R6 K15 + 0x781E0009, // 01C6 JMPF R7 #01D1 + 0x881C0133, // 01C7 GETMBR R7 R0 K51 + 0x881C0F34, // 01C8 GETMBR R7 R7 K52 + 0x8C1C0F44, // 01C9 GETMET R7 R7 K68 + 0x7C1C0200, // 01CA CALL R7 1 + 0x8C200906, // 01CB GETMET R8 R4 K6 + 0x8828090E, // 01CC GETMBR R10 R4 K14 + 0x5C2C0E00, // 01CD MOVE R11 R7 + 0x7C200600, // 01CE CALL R8 3 + 0x80041000, // 01CF RET 1 R8 + 0x7002000D, // 01D0 JMP #01DF + 0x541E0003, // 01D1 LDINT R7 4 + 0x1C1C0C07, // 01D2 EQ R7 R6 R7 + 0x781E0000, // 01D3 JMPF R7 #01D5 + 0x70020009, // 01D4 JMP #01DF + 0x541E0004, // 01D5 LDINT R7 5 + 0x1C1C0C07, // 01D6 EQ R7 R6 R7 + 0x781E0006, // 01D7 JMPF R7 #01DF + 0x8C1C0906, // 01D8 GETMET R7 R4 K6 + 0x8824090E, // 01D9 GETMBR R9 R4 K14 + 0x88280345, // 01DA GETMBR R10 R1 K69 + 0x8C281539, // 01DB GETMET R10 R10 K57 + 0x7C280200, // 01DC CALL R10 1 + 0x7C1C0600, // 01DD CALL R7 3 + 0x80040E00, // 01DE RET 1 R7 + 0x700201B4, // 01DF JMP #0395 + 0x541E003B, // 01E0 LDINT R7 60 + 0x1C1C0A07, // 01E1 EQ R7 R5 R7 + 0x781E003C, // 01E2 JMPF R7 #0220 + 0x1C1C0D05, // 01E3 EQ R7 R6 K5 + 0x781E0012, // 01E4 JMPF R7 #01F8 + 0x881C0133, // 01E5 GETMBR R7 R0 K51 + 0x8C1C0F46, // 01E6 GETMET R7 R7 K70 + 0x7C1C0200, // 01E7 CALL R7 1 + 0x88200133, // 01E8 GETMBR R8 R0 K51 + 0x8C201147, // 01E9 GETMET R8 R8 K71 + 0x7C200200, // 01EA CALL R8 1 + 0x781E0004, // 01EB JMPF R7 #01F1 + 0x78220001, // 01EC JMPF R8 #01EF + 0x5824000D, // 01ED LDCONST R9 K13 + 0x70020000, // 01EE JMP #01F0 + 0x58240009, // 01EF LDCONST R9 K9 + 0x70020000, // 01F0 JMP #01F2 + 0x58240005, // 01F1 LDCONST R9 K5 + 0x8C280906, // 01F2 GETMET R10 R4 K6 + 0x8830090E, // 01F3 GETMBR R12 R4 K14 + 0x5C341200, // 01F4 MOVE R13 R9 + 0x7C280600, // 01F5 CALL R10 3 + 0x80041400, // 01F6 RET 1 R10 + 0x70020026, // 01F7 JMP #021F + 0x1C1C0D09, // 01F8 EQ R7 R6 K9 + 0x781E0011, // 01F9 JMPF R7 #020C + 0x881C0133, // 01FA GETMBR R7 R0 K51 + 0x881C0F48, // 01FB GETMBR R7 R7 K72 + 0x4C200000, // 01FC LDNIL R8 + 0x20200E08, // 01FD NE R8 R7 R8 + 0x78220006, // 01FE JMPF R8 #0206 + 0x8C200906, // 01FF GETMET R8 R4 K6 + 0x8828090C, // 0200 GETMBR R10 R4 K12 + 0x8C2C0F39, // 0201 GETMET R11 R7 K57 + 0x7C2C0200, // 0202 CALL R11 1 + 0x7C200600, // 0203 CALL R8 3 + 0x80041000, // 0204 RET 1 R8 + 0x70020004, // 0205 JMP #020B + 0x8C200906, // 0206 GETMET R8 R4 K6 + 0x88280918, // 0207 GETMBR R10 R4 K24 + 0x4C2C0000, // 0208 LDNIL R11 + 0x7C200600, // 0209 CALL R8 3 + 0x80041000, // 020A RET 1 R8 + 0x70020012, // 020B JMP #021F + 0x1C1C0D0D, // 020C EQ R7 R6 K13 + 0x781E0010, // 020D JMPF R7 #021F + 0x881C0133, // 020E GETMBR R7 R0 K51 + 0x881C0F48, // 020F GETMBR R7 R7 K72 + 0x4C200000, // 0210 LDNIL R8 + 0x20200E08, // 0211 NE R8 R7 R8 + 0x78220006, // 0212 JMPF R8 #021A + 0x8C200906, // 0213 GETMET R8 R4 K6 + 0x8828090C, // 0214 GETMBR R10 R4 K12 + 0x8C2C0F3E, // 0215 GETMET R11 R7 K62 + 0x7C2C0200, // 0216 CALL R11 1 + 0x7C200600, // 0217 CALL R8 3 + 0x80041000, // 0218 RET 1 R8 + 0x70020004, // 0219 JMP #021F + 0x8C200906, // 021A GETMET R8 R4 K6 + 0x88280918, // 021B GETMBR R10 R4 K24 + 0x4C2C0000, // 021C LDNIL R11 + 0x7C200600, // 021D CALL R8 3 + 0x80041000, // 021E RET 1 R8 + 0x70020174, // 021F JMP #0395 + 0x541E0027, // 0220 LDINT R7 40 + 0x1C1C0A07, // 0221 EQ R7 R5 R7 + 0x781E00A4, // 0222 JMPF R7 #02C8 + 0x1C1C0D05, // 0223 EQ R7 R6 K5 + 0x781E0005, // 0224 JMPF R7 #022B + 0x8C1C0906, // 0225 GETMET R7 R4 K6 + 0x8824090C, // 0226 GETMBR R9 R4 K12 + 0x58280005, // 0227 LDCONST R10 K5 + 0x7C1C0600, // 0228 CALL R7 3 + 0x80040E00, // 0229 RET 1 R7 + 0x7002009B, // 022A JMP #02C7 + 0x1C1C0D09, // 022B EQ R7 R6 K9 + 0x781E0005, // 022C JMPF R7 #0233 + 0x8C1C0906, // 022D GETMET R7 R4 K6 + 0x88240916, // 022E GETMBR R9 R4 K22 + 0x58280049, // 022F LDCONST R10 K73 + 0x7C1C0600, // 0230 CALL R7 3 + 0x80040E00, // 0231 RET 1 R7 + 0x70020093, // 0232 JMP #02C7 + 0x1C1C0D0D, // 0233 EQ R7 R6 K13 + 0x781E0006, // 0234 JMPF R7 #023C + 0x8C1C0906, // 0235 GETMET R7 R4 K6 + 0x8824090C, // 0236 GETMBR R9 R4 K12 + 0x88280133, // 0237 GETMBR R10 R0 K51 + 0x8828154A, // 0238 GETMBR R10 R10 K74 + 0x7C1C0600, // 0239 CALL R7 3 + 0x80040E00, // 023A RET 1 R7 + 0x7002008A, // 023B JMP #02C7 + 0x1C1C0D0F, // 023C EQ R7 R6 K15 + 0x781E000A, // 023D JMPF R7 #0249 + 0x8C1C0906, // 023E GETMET R7 R4 K6 + 0x88240916, // 023F GETMBR R9 R4 K22 + 0xB82A2400, // 0240 GETNGBL R10 K18 + 0x8C281526, // 0241 GETMET R10 R10 K38 + 0x5830004B, // 0242 LDCONST R12 K75 + 0x50340200, // 0243 LDBOOL R13 1 0 + 0x7C280600, // 0244 CALL R10 3 + 0x9428154B, // 0245 GETIDX R10 R10 K75 + 0x7C1C0600, // 0246 CALL R7 3 + 0x80040E00, // 0247 RET 1 R7 + 0x7002007D, // 0248 JMP #02C7 + 0x541E0003, // 0249 LDINT R7 4 + 0x1C1C0C07, // 024A EQ R7 R6 R7 + 0x781E0005, // 024B JMPF R7 #0252 + 0x8C1C0906, // 024C GETMET R7 R4 K6 + 0x8824090C, // 024D GETMBR R9 R4 K12 + 0x542A7FFF, // 024E LDINT R10 32768 0x7C1C0600, // 024F CALL R7 3 0x80040E00, // 0250 RET 1 R7 - 0x70020036, // 0251 JMP #0289 - 0x541E0008, // 0252 LDINT R7 9 + 0x70020074, // 0251 JMP #02C7 + 0x541E0004, // 0252 LDINT R7 5 0x1C1C0C07, // 0253 EQ R7 R6 R7 - 0x781E0005, // 0254 JMPF R7 #025B + 0x781E000A, // 0254 JMPF R7 #0260 0x8C1C0906, // 0255 GETMET R7 R4 K6 - 0x8824090C, // 0256 GETMBR R9 R4 K12 - 0x58280009, // 0257 LDCONST R10 K9 - 0x7C1C0600, // 0258 CALL R7 3 - 0x80040E00, // 0259 RET 1 R7 - 0x7002002D, // 025A JMP #0289 - 0x541E0009, // 025B LDINT R7 10 - 0x1C1C0C07, // 025C EQ R7 R6 R7 - 0x781E000B, // 025D JMPF R7 #026A - 0x8C1C0906, // 025E GETMET R7 R4 K6 - 0x88240916, // 025F GETMBR R9 R4 K22 - 0xB82A2400, // 0260 GETNGBL R10 K18 - 0x8C281526, // 0261 GETMET R10 R10 K38 - 0x5830004B, // 0262 LDCONST R12 K75 - 0x50340200, // 0263 LDBOOL R13 1 0 - 0x7C280600, // 0264 CALL R10 3 - 0x9428154C, // 0265 GETIDX R10 R10 K76 - 0x9428154E, // 0266 GETIDX R10 R10 K78 - 0x7C1C0600, // 0267 CALL R7 3 - 0x80040E00, // 0268 RET 1 R7 - 0x7002001E, // 0269 JMP #0289 - 0x541E0011, // 026A LDINT R7 18 - 0x1C1C0C07, // 026B EQ R7 R6 R7 - 0x781E000B, // 026C JMPF R7 #0279 - 0x8C1C0906, // 026D GETMET R7 R4 K6 - 0x88240916, // 026E GETMBR R9 R4 K22 - 0xB82A2400, // 026F GETNGBL R10 K18 - 0x8C281525, // 0270 GETMET R10 R10 K37 - 0x7C280200, // 0271 CALL R10 1 - 0x8C28151B, // 0272 GETMET R10 R10 K27 - 0x5830001C, // 0273 LDCONST R12 K28 - 0x5834001D, // 0274 LDCONST R13 K29 - 0x7C280600, // 0275 CALL R10 3 - 0x7C1C0600, // 0276 CALL R7 3 - 0x80040E00, // 0277 RET 1 R7 - 0x7002000F, // 0278 JMP #0289 - 0x541E0012, // 0279 LDINT R7 19 - 0x1C1C0C07, // 027A EQ R7 R6 R7 - 0x781E000C, // 027B JMPF R7 #0289 - 0x8C1C090A, // 027C GETMET R7 R4 K10 - 0x7C1C0200, // 027D CALL R7 1 - 0x8C200F0B, // 027E GETMET R8 R7 K11 - 0x58280005, // 027F LDCONST R10 K5 - 0x882C090C, // 0280 GETMBR R11 R4 K12 - 0x5830000F, // 0281 LDCONST R12 K15 - 0x7C200800, // 0282 CALL R8 4 - 0x8C200F0B, // 0283 GETMET R8 R7 K11 - 0x58280009, // 0284 LDCONST R10 K9 - 0x882C090C, // 0285 GETMBR R11 R4 K12 - 0x5830000F, // 0286 LDCONST R12 K15 - 0x7C200800, // 0287 CALL R8 4 + 0x88240916, // 0256 GETMBR R9 R4 K22 + 0xB82A2400, // 0257 GETNGBL R10 K18 + 0x8C281526, // 0258 GETMET R10 R10 K38 + 0x5830004C, // 0259 LDCONST R12 K76 + 0x50340200, // 025A LDBOOL R13 1 0 + 0x7C280600, // 025B CALL R10 3 + 0x9428154D, // 025C GETIDX R10 R10 K77 + 0x7C1C0600, // 025D CALL R7 3 + 0x80040E00, // 025E RET 1 R7 + 0x70020066, // 025F JMP #02C7 + 0x541E0005, // 0260 LDINT R7 6 + 0x1C1C0C07, // 0261 EQ R7 R6 R7 + 0x781E0005, // 0262 JMPF R7 #0269 + 0x8C1C0906, // 0263 GETMET R7 R4 K6 + 0x88240916, // 0264 GETMBR R9 R4 K22 + 0x5828004E, // 0265 LDCONST R10 K78 + 0x7C1C0600, // 0266 CALL R7 3 + 0x80040E00, // 0267 RET 1 R7 + 0x7002005D, // 0268 JMP #02C7 + 0x541E0006, // 0269 LDINT R7 7 + 0x1C1C0C07, // 026A EQ R7 R6 R7 + 0x781E0005, // 026B JMPF R7 #0272 + 0x8C1C0906, // 026C GETMET R7 R4 K6 + 0x8824090C, // 026D GETMBR R9 R4 K12 + 0x58280005, // 026E LDCONST R10 K5 + 0x7C1C0600, // 026F CALL R7 3 + 0x80040E00, // 0270 RET 1 R7 + 0x70020054, // 0271 JMP #02C7 + 0x541E0007, // 0272 LDINT R7 8 + 0x1C1C0C07, // 0273 EQ R7 R6 R7 + 0x781E000B, // 0274 JMPF R7 #0281 + 0x8C1C0906, // 0275 GETMET R7 R4 K6 + 0x88240916, // 0276 GETMBR R9 R4 K22 + 0xB82A2400, // 0277 GETNGBL R10 K18 + 0x8C281526, // 0278 GETMET R10 R10 K38 + 0x5830004F, // 0279 LDCONST R12 K79 + 0x50340200, // 027A LDBOOL R13 1 0 + 0x7C280600, // 027B CALL R10 3 + 0x94281550, // 027C GETIDX R10 R10 K80 + 0x94281551, // 027D GETIDX R10 R10 K81 + 0x7C1C0600, // 027E CALL R7 3 + 0x80040E00, // 027F RET 1 R7 + 0x70020045, // 0280 JMP #02C7 + 0x541E0008, // 0281 LDINT R7 9 + 0x1C1C0C07, // 0282 EQ R7 R6 R7 + 0x781E0005, // 0283 JMPF R7 #028A + 0x8C1C0906, // 0284 GETMET R7 R4 K6 + 0x8824090C, // 0285 GETMBR R9 R4 K12 + 0x58280009, // 0286 LDCONST R10 K9 + 0x7C1C0600, // 0287 CALL R7 3 0x80040E00, // 0288 RET 1 R7 - 0x700200CC, // 0289 JMP #0357 - 0x541E003E, // 028A LDINT R7 63 - 0x1C1C0A07, // 028B EQ R7 R5 R7 - 0x781E0000, // 028C JMPF R7 #028E - 0x700200C8, // 028D JMP #0357 - 0x541E0029, // 028E LDINT R7 42 - 0x1C1C0A07, // 028F EQ R7 R5 R7 - 0x781E001D, // 0290 JMPF R7 #02AF - 0x1C1C0D05, // 0291 EQ R7 R6 K5 - 0x781E0003, // 0292 JMPF R7 #0297 - 0x8C1C0911, // 0293 GETMET R7 R4 K17 - 0x7C1C0200, // 0294 CALL R7 1 - 0x80040E00, // 0295 RET 1 R7 - 0x70020016, // 0296 JMP #02AE - 0x1C1C0D09, // 0297 EQ R7 R6 K9 - 0x781E0005, // 0298 JMPF R7 #029F - 0x8C1C0906, // 0299 GETMET R7 R4 K6 - 0x88240910, // 029A GETMBR R9 R4 K16 - 0x58280005, // 029B LDCONST R10 K5 - 0x7C1C0600, // 029C CALL R7 3 - 0x80040E00, // 029D RET 1 R7 - 0x7002000E, // 029E JMP #02AE - 0x1C1C0D0D, // 029F EQ R7 R6 K13 - 0x781E0005, // 02A0 JMPF R7 #02A7 - 0x8C1C0906, // 02A1 GETMET R7 R4 K6 - 0x8824090E, // 02A2 GETMBR R9 R4 K14 - 0x58280009, // 02A3 LDCONST R10 K9 - 0x7C1C0600, // 02A4 CALL R7 3 - 0x80040E00, // 02A5 RET 1 R7 - 0x70020006, // 02A6 JMP #02AE - 0x1C1C0D0F, // 02A7 EQ R7 R6 K15 - 0x781E0004, // 02A8 JMPF R7 #02AE - 0x8C1C0906, // 02A9 GETMET R7 R4 K6 - 0x88240918, // 02AA GETMBR R9 R4 K24 - 0x4C280000, // 02AB LDNIL R10 - 0x7C1C0600, // 02AC CALL R7 3 - 0x80040E00, // 02AD RET 1 R7 - 0x700200A7, // 02AE JMP #0357 - 0x541E002A, // 02AF LDINT R7 43 - 0x1C1C0A07, // 02B0 EQ R7 R5 R7 - 0x781E0016, // 02B1 JMPF R7 #02C9 - 0x1C1C0D05, // 02B2 EQ R7 R6 K5 - 0x781E0007, // 02B3 JMPF R7 #02BC - 0x8C1C0906, // 02B4 GETMET R7 R4 K6 - 0x88240916, // 02B5 GETMBR R9 R4 K22 - 0xB82A2400, // 02B6 GETNGBL R10 K18 - 0x8C28154F, // 02B7 GETMET R10 R10 K79 - 0x7C280200, // 02B8 CALL R10 1 - 0x7C1C0600, // 02B9 CALL R7 3 - 0x80040E00, // 02BA RET 1 R7 - 0x7002000B, // 02BB JMP #02C8 - 0x1C1C0D09, // 02BC EQ R7 R6 K9 - 0x781E0009, // 02BD JMPF R7 #02C8 - 0x8C1C0911, // 02BE GETMET R7 R4 K17 - 0x7C1C0200, // 02BF CALL R7 1 - 0x8C200F0B, // 02C0 GETMET R8 R7 K11 - 0x4C280000, // 02C1 LDNIL R10 - 0x882C0916, // 02C2 GETMBR R11 R4 K22 - 0xB8322400, // 02C3 GETNGBL R12 K18 - 0x8C30194F, // 02C4 GETMET R12 R12 K79 - 0x7C300200, // 02C5 CALL R12 1 - 0x7C200800, // 02C6 CALL R8 4 - 0x80040E00, // 02C7 RET 1 R7 - 0x7002008D, // 02C8 JMP #0357 - 0x541E002B, // 02C9 LDINT R7 44 - 0x1C1C0A07, // 02CA EQ R7 R5 R7 - 0x781E001C, // 02CB JMPF R7 #02E9 - 0x1C1C0D05, // 02CC EQ R7 R6 K5 - 0x781E0005, // 02CD JMPF R7 #02D4 - 0x8C1C0906, // 02CE GETMET R7 R4 K6 - 0x8824090E, // 02CF GETMBR R9 R4 K14 - 0x58280009, // 02D0 LDCONST R10 K9 - 0x7C1C0600, // 02D1 CALL R7 3 - 0x80040E00, // 02D2 RET 1 R7 - 0x70020013, // 02D3 JMP #02E8 - 0x1C1C0D09, // 02D4 EQ R7 R6 K9 - 0x781E0005, // 02D5 JMPF R7 #02DC - 0x8C1C0906, // 02D6 GETMET R7 R4 K6 - 0x8824090E, // 02D7 GETMBR R9 R4 K14 - 0x542A0003, // 02D8 LDINT R10 4 - 0x7C1C0600, // 02D9 CALL R7 3 - 0x80040E00, // 02DA RET 1 R7 - 0x7002000B, // 02DB JMP #02E8 - 0x1C1C0D0D, // 02DC EQ R7 R6 K13 - 0x781E0009, // 02DD JMPF R7 #02E8 - 0x8C1C0911, // 02DE GETMET R7 R4 K17 - 0x7C1C0200, // 02DF CALL R7 1 - 0x8C200F0B, // 02E0 GETMET R8 R7 K11 - 0x4C280000, // 02E1 LDNIL R10 - 0x8C2C0906, // 02E2 GETMET R11 R4 K6 - 0x8834090E, // 02E3 GETMBR R13 R4 K14 - 0x543A0003, // 02E4 LDINT R14 4 - 0x7C2C0600, // 02E5 CALL R11 3 - 0x7C200600, // 02E6 CALL R8 3 - 0x80040E00, // 02E7 RET 1 R7 - 0x7002006D, // 02E8 JMP #0357 - 0x541E0030, // 02E9 LDINT R7 49 - 0x1C1C0A07, // 02EA EQ R7 R5 R7 - 0x781E0010, // 02EB JMPF R7 #02FD - 0x1C1C0D0F, // 02EC EQ R7 R6 K15 - 0x781E0005, // 02ED JMPF R7 #02F4 - 0x8C1C0906, // 02EE GETMET R7 R4 K6 - 0x8824090E, // 02EF GETMBR R9 R4 K14 - 0x542A001D, // 02F0 LDINT R10 30 - 0x7C1C0600, // 02F1 CALL R7 3 - 0x80040E00, // 02F2 RET 1 R7 - 0x70020007, // 02F3 JMP #02FC - 0x541EFFFB, // 02F4 LDINT R7 65532 - 0x1C1C0C07, // 02F5 EQ R7 R6 R7 - 0x781E0004, // 02F6 JMPF R7 #02FC - 0x8C1C0906, // 02F7 GETMET R7 R4 K6 - 0x8824092A, // 02F8 GETMBR R9 R4 K42 - 0x542A0003, // 02F9 LDINT R10 4 - 0x7C1C0600, // 02FA CALL R7 3 - 0x80040E00, // 02FB RET 1 R7 - 0x70020059, // 02FC JMP #0357 - 0x541E001C, // 02FD LDINT R7 29 - 0x1C1C0A07, // 02FE EQ R7 R5 R7 - 0x781E0053, // 02FF JMPF R7 #0354 - 0x1C1C0D05, // 0300 EQ R7 R6 K5 - 0x781E001C, // 0301 JMPF R7 #031F - 0x8C1C0911, // 0302 GETMET R7 R4 K17 - 0x7C1C0200, // 0303 CALL R7 1 - 0x60200010, // 0304 GETGBL R8 G16 - 0x88240150, // 0305 GETMBR R9 R0 K80 - 0x8C241351, // 0306 GETMET R9 R9 K81 - 0x7C240200, // 0307 CALL R9 1 - 0x7C200200, // 0308 CALL R8 1 - 0xA802000F, // 0309 EXBLK 0 #031A - 0x5C241000, // 030A MOVE R9 R8 - 0x7C240000, // 030B CALL R9 0 - 0x8C280F15, // 030C GETMET R10 R7 K21 - 0x7C280200, // 030D CALL R10 1 - 0x8C2C150B, // 030E GETMET R11 R10 K11 - 0x58340005, // 030F LDCONST R13 K5 - 0x8838090C, // 0310 GETMBR R14 R4 K12 - 0x5C3C1200, // 0311 MOVE R15 R9 - 0x7C2C0800, // 0312 CALL R11 4 - 0x8C2C150B, // 0313 GETMET R11 R10 K11 - 0x58340009, // 0314 LDCONST R13 K9 - 0x8838090C, // 0315 GETMBR R14 R4 K12 - 0x883C0150, // 0316 GETMBR R15 R0 K80 - 0x943C1E09, // 0317 GETIDX R15 R15 R9 - 0x7C2C0800, // 0318 CALL R11 4 - 0x7001FFEF, // 0319 JMP #030A - 0x58200039, // 031A LDCONST R8 K57 - 0xAC200200, // 031B CATCH R8 1 0 - 0xB0080000, // 031C RAISE 2 R0 R0 - 0x80040E00, // 031D RET 1 R7 - 0x70020033, // 031E JMP #0353 - 0x1C1C0D09, // 031F EQ R7 R6 K9 - 0x781E0013, // 0320 JMPF R7 #0335 - 0x8C1C0911, // 0321 GETMET R7 R4 K17 - 0x7C1C0200, // 0322 CALL R7 1 - 0x60200010, // 0323 GETGBL R8 G16 - 0x8C240152, // 0324 GETMET R9 R0 K82 - 0x7C240200, // 0325 CALL R9 1 - 0x7C200200, // 0326 CALL R8 1 - 0xA8020007, // 0327 EXBLK 0 #0330 - 0x5C241000, // 0328 MOVE R9 R8 - 0x7C240000, // 0329 CALL R9 0 - 0x8C280F0B, // 032A GETMET R10 R7 K11 - 0x4C300000, // 032B LDNIL R12 - 0x8834092A, // 032C GETMBR R13 R4 K42 - 0x5C381200, // 032D MOVE R14 R9 - 0x7C280800, // 032E CALL R10 4 - 0x7001FFF7, // 032F JMP #0328 - 0x58200039, // 0330 LDCONST R8 K57 - 0xAC200200, // 0331 CATCH R8 1 0 - 0xB0080000, // 0332 RAISE 2 R0 R0 - 0x80040E00, // 0333 RET 1 R7 - 0x7002001D, // 0334 JMP #0353 - 0x1C1C0D0D, // 0335 EQ R7 R6 K13 - 0x781E0003, // 0336 JMPF R7 #033B - 0x8C1C0911, // 0337 GETMET R7 R4 K17 - 0x7C1C0200, // 0338 CALL R7 1 + 0x7002003C, // 0289 JMP #02C7 + 0x541E0009, // 028A LDINT R7 10 + 0x1C1C0C07, // 028B EQ R7 R6 R7 + 0x781E000B, // 028C JMPF R7 #0299 + 0x8C1C0906, // 028D GETMET R7 R4 K6 + 0x88240916, // 028E GETMBR R9 R4 K22 + 0xB82A2400, // 028F GETNGBL R10 K18 + 0x8C281526, // 0290 GETMET R10 R10 K38 + 0x5830004F, // 0291 LDCONST R12 K79 + 0x50340200, // 0292 LDBOOL R13 1 0 + 0x7C280600, // 0293 CALL R10 3 + 0x94281550, // 0294 GETIDX R10 R10 K80 + 0x94281552, // 0295 GETIDX R10 R10 K82 + 0x7C1C0600, // 0296 CALL R7 3 + 0x80040E00, // 0297 RET 1 R7 + 0x7002002D, // 0298 JMP #02C7 + 0x541E000E, // 0299 LDINT R7 15 + 0x1C1C0C07, // 029A EQ R7 R6 R7 + 0x781E000B, // 029B JMPF R7 #02A8 + 0x8C1C0906, // 029C GETMET R7 R4 K6 + 0x88240916, // 029D GETMBR R9 R4 K22 + 0xB82A2400, // 029E GETNGBL R10 K18 + 0x8C281525, // 029F GETMET R10 R10 K37 + 0x7C280200, // 02A0 CALL R10 1 + 0x8C28151B, // 02A1 GETMET R10 R10 K27 + 0x5830001C, // 02A2 LDCONST R12 K28 + 0x5834001D, // 02A3 LDCONST R13 K29 + 0x7C280600, // 02A4 CALL R10 3 + 0x7C1C0600, // 02A5 CALL R7 3 + 0x80040E00, // 02A6 RET 1 R7 + 0x7002001E, // 02A7 JMP #02C7 + 0x541E0011, // 02A8 LDINT R7 18 + 0x1C1C0C07, // 02A9 EQ R7 R6 R7 + 0x781E000B, // 02AA JMPF R7 #02B7 + 0x8C1C0906, // 02AB GETMET R7 R4 K6 + 0x88240916, // 02AC GETMBR R9 R4 K22 + 0xB82A2400, // 02AD GETNGBL R10 K18 + 0x8C281525, // 02AE GETMET R10 R10 K37 + 0x7C280200, // 02AF CALL R10 1 + 0x8C28151B, // 02B0 GETMET R10 R10 K27 + 0x5830001C, // 02B1 LDCONST R12 K28 + 0x5834001D, // 02B2 LDCONST R13 K29 + 0x7C280600, // 02B3 CALL R10 3 + 0x7C1C0600, // 02B4 CALL R7 3 + 0x80040E00, // 02B5 RET 1 R7 + 0x7002000F, // 02B6 JMP #02C7 + 0x541E0012, // 02B7 LDINT R7 19 + 0x1C1C0C07, // 02B8 EQ R7 R6 R7 + 0x781E000C, // 02B9 JMPF R7 #02C7 + 0x8C1C090A, // 02BA GETMET R7 R4 K10 + 0x7C1C0200, // 02BB CALL R7 1 + 0x8C200F0B, // 02BC GETMET R8 R7 K11 + 0x58280005, // 02BD LDCONST R10 K5 + 0x882C090C, // 02BE GETMBR R11 R4 K12 + 0x5830000F, // 02BF LDCONST R12 K15 + 0x7C200800, // 02C0 CALL R8 4 + 0x8C200F0B, // 02C1 GETMET R8 R7 K11 + 0x58280009, // 02C2 LDCONST R10 K9 + 0x882C090C, // 02C3 GETMBR R11 R4 K12 + 0x5830000F, // 02C4 LDCONST R12 K15 + 0x7C200800, // 02C5 CALL R8 4 + 0x80040E00, // 02C6 RET 1 R7 + 0x700200CC, // 02C7 JMP #0395 + 0x541E003E, // 02C8 LDINT R7 63 + 0x1C1C0A07, // 02C9 EQ R7 R5 R7 + 0x781E0000, // 02CA JMPF R7 #02CC + 0x700200C8, // 02CB JMP #0395 + 0x541E0029, // 02CC LDINT R7 42 + 0x1C1C0A07, // 02CD EQ R7 R5 R7 + 0x781E001D, // 02CE JMPF R7 #02ED + 0x1C1C0D05, // 02CF EQ R7 R6 K5 + 0x781E0003, // 02D0 JMPF R7 #02D5 + 0x8C1C0911, // 02D1 GETMET R7 R4 K17 + 0x7C1C0200, // 02D2 CALL R7 1 + 0x80040E00, // 02D3 RET 1 R7 + 0x70020016, // 02D4 JMP #02EC + 0x1C1C0D09, // 02D5 EQ R7 R6 K9 + 0x781E0005, // 02D6 JMPF R7 #02DD + 0x8C1C0906, // 02D7 GETMET R7 R4 K6 + 0x88240910, // 02D8 GETMBR R9 R4 K16 + 0x58280005, // 02D9 LDCONST R10 K5 + 0x7C1C0600, // 02DA CALL R7 3 + 0x80040E00, // 02DB RET 1 R7 + 0x7002000E, // 02DC JMP #02EC + 0x1C1C0D0D, // 02DD EQ R7 R6 K13 + 0x781E0005, // 02DE JMPF R7 #02E5 + 0x8C1C0906, // 02DF GETMET R7 R4 K6 + 0x8824090E, // 02E0 GETMBR R9 R4 K14 + 0x58280009, // 02E1 LDCONST R10 K9 + 0x7C1C0600, // 02E2 CALL R7 3 + 0x80040E00, // 02E3 RET 1 R7 + 0x70020006, // 02E4 JMP #02EC + 0x1C1C0D0F, // 02E5 EQ R7 R6 K15 + 0x781E0004, // 02E6 JMPF R7 #02EC + 0x8C1C0906, // 02E7 GETMET R7 R4 K6 + 0x88240918, // 02E8 GETMBR R9 R4 K24 + 0x4C280000, // 02E9 LDNIL R10 + 0x7C1C0600, // 02EA CALL R7 3 + 0x80040E00, // 02EB RET 1 R7 + 0x700200A7, // 02EC JMP #0395 + 0x541E002A, // 02ED LDINT R7 43 + 0x1C1C0A07, // 02EE EQ R7 R5 R7 + 0x781E0016, // 02EF JMPF R7 #0307 + 0x1C1C0D05, // 02F0 EQ R7 R6 K5 + 0x781E0007, // 02F1 JMPF R7 #02FA + 0x8C1C0906, // 02F2 GETMET R7 R4 K6 + 0x88240916, // 02F3 GETMBR R9 R4 K22 + 0xB82A2400, // 02F4 GETNGBL R10 K18 + 0x8C281553, // 02F5 GETMET R10 R10 K83 + 0x7C280200, // 02F6 CALL R10 1 + 0x7C1C0600, // 02F7 CALL R7 3 + 0x80040E00, // 02F8 RET 1 R7 + 0x7002000B, // 02F9 JMP #0306 + 0x1C1C0D09, // 02FA EQ R7 R6 K9 + 0x781E0009, // 02FB JMPF R7 #0306 + 0x8C1C0911, // 02FC GETMET R7 R4 K17 + 0x7C1C0200, // 02FD CALL R7 1 + 0x8C200F0B, // 02FE GETMET R8 R7 K11 + 0x4C280000, // 02FF LDNIL R10 + 0x882C0916, // 0300 GETMBR R11 R4 K22 + 0xB8322400, // 0301 GETNGBL R12 K18 + 0x8C301953, // 0302 GETMET R12 R12 K83 + 0x7C300200, // 0303 CALL R12 1 + 0x7C200800, // 0304 CALL R8 4 + 0x80040E00, // 0305 RET 1 R7 + 0x7002008D, // 0306 JMP #0395 + 0x541E002B, // 0307 LDINT R7 44 + 0x1C1C0A07, // 0308 EQ R7 R5 R7 + 0x781E001C, // 0309 JMPF R7 #0327 + 0x1C1C0D05, // 030A EQ R7 R6 K5 + 0x781E0005, // 030B JMPF R7 #0312 + 0x8C1C0906, // 030C GETMET R7 R4 K6 + 0x8824090E, // 030D GETMBR R9 R4 K14 + 0x58280009, // 030E LDCONST R10 K9 + 0x7C1C0600, // 030F CALL R7 3 + 0x80040E00, // 0310 RET 1 R7 + 0x70020013, // 0311 JMP #0326 + 0x1C1C0D09, // 0312 EQ R7 R6 K9 + 0x781E0005, // 0313 JMPF R7 #031A + 0x8C1C0906, // 0314 GETMET R7 R4 K6 + 0x8824090E, // 0315 GETMBR R9 R4 K14 + 0x542A0003, // 0316 LDINT R10 4 + 0x7C1C0600, // 0317 CALL R7 3 + 0x80040E00, // 0318 RET 1 R7 + 0x7002000B, // 0319 JMP #0326 + 0x1C1C0D0D, // 031A EQ R7 R6 K13 + 0x781E0009, // 031B JMPF R7 #0326 + 0x8C1C0911, // 031C GETMET R7 R4 K17 + 0x7C1C0200, // 031D CALL R7 1 + 0x8C200F0B, // 031E GETMET R8 R7 K11 + 0x4C280000, // 031F LDNIL R10 + 0x8C2C0906, // 0320 GETMET R11 R4 K6 + 0x8834090E, // 0321 GETMBR R13 R4 K14 + 0x543A0003, // 0322 LDINT R14 4 + 0x7C2C0600, // 0323 CALL R11 3 + 0x7C200600, // 0324 CALL R8 3 + 0x80040E00, // 0325 RET 1 R7 + 0x7002006D, // 0326 JMP #0395 + 0x541E0030, // 0327 LDINT R7 49 + 0x1C1C0A07, // 0328 EQ R7 R5 R7 + 0x781E0010, // 0329 JMPF R7 #033B + 0x1C1C0D0F, // 032A EQ R7 R6 K15 + 0x781E0005, // 032B JMPF R7 #0332 + 0x8C1C0906, // 032C GETMET R7 R4 K6 + 0x8824090E, // 032D GETMBR R9 R4 K14 + 0x542A001D, // 032E LDINT R10 30 + 0x7C1C0600, // 032F CALL R7 3 + 0x80040E00, // 0330 RET 1 R7 + 0x70020007, // 0331 JMP #033A + 0x541EFFFB, // 0332 LDINT R7 65532 + 0x1C1C0C07, // 0333 EQ R7 R6 R7 + 0x781E0004, // 0334 JMPF R7 #033A + 0x8C1C0906, // 0335 GETMET R7 R4 K6 + 0x8824092A, // 0336 GETMBR R9 R4 K42 + 0x542A0003, // 0337 LDINT R10 4 + 0x7C1C0600, // 0338 CALL R7 3 0x80040E00, // 0339 RET 1 R7 - 0x70020017, // 033A JMP #0353 - 0x1C1C0D0F, // 033B EQ R7 R6 K15 - 0x781E0015, // 033C JMPF R7 #0353 - 0x881C0133, // 033D GETMBR R7 R0 K51 - 0x8C1C0F53, // 033E GETMET R7 R7 K83 - 0x50240200, // 033F LDBOOL R9 1 0 - 0x7C1C0400, // 0340 CALL R7 2 - 0x8C200911, // 0341 GETMET R8 R4 K17 - 0x7C200200, // 0342 CALL R8 1 - 0x60240010, // 0343 GETGBL R9 G16 - 0x5C280E00, // 0344 MOVE R10 R7 + 0x70020059, // 033A JMP #0395 + 0x541E001C, // 033B LDINT R7 29 + 0x1C1C0A07, // 033C EQ R7 R5 R7 + 0x781E0053, // 033D JMPF R7 #0392 + 0x1C1C0D05, // 033E EQ R7 R6 K5 + 0x781E001C, // 033F JMPF R7 #035D + 0x8C1C0911, // 0340 GETMET R7 R4 K17 + 0x7C1C0200, // 0341 CALL R7 1 + 0x60200010, // 0342 GETGBL R8 G16 + 0x88240154, // 0343 GETMBR R9 R0 K84 + 0x8C241355, // 0344 GETMET R9 R9 K85 0x7C240200, // 0345 CALL R9 1 - 0xA8020007, // 0346 EXBLK 0 #034F - 0x5C281200, // 0347 MOVE R10 R9 - 0x7C280000, // 0348 CALL R10 0 - 0x8C2C110B, // 0349 GETMET R11 R8 K11 - 0x4C340000, // 034A LDNIL R13 - 0x8838090C, // 034B GETMBR R14 R4 K12 - 0x5C3C1400, // 034C MOVE R15 R10 - 0x7C2C0800, // 034D CALL R11 4 - 0x7001FFF7, // 034E JMP #0347 - 0x58240039, // 034F LDCONST R9 K57 - 0xAC240200, // 0350 CATCH R9 1 0 - 0xB0080000, // 0351 RAISE 2 R0 R0 - 0x80041000, // 0352 RET 1 R8 - 0x70020002, // 0353 JMP #0357 - 0xB81E0200, // 0354 GETNGBL R7 K1 - 0x881C0F55, // 0355 GETMBR R7 R7 K85 - 0x900AA807, // 0356 SETMBR R2 K84 R7 - 0x80000000, // 0357 RET 0 + 0x7C200200, // 0346 CALL R8 1 + 0xA802000F, // 0347 EXBLK 0 #0358 + 0x5C241000, // 0348 MOVE R9 R8 + 0x7C240000, // 0349 CALL R9 0 + 0x8C280F15, // 034A GETMET R10 R7 K21 + 0x7C280200, // 034B CALL R10 1 + 0x8C2C150B, // 034C GETMET R11 R10 K11 + 0x58340005, // 034D LDCONST R13 K5 + 0x8838090C, // 034E GETMBR R14 R4 K12 + 0x5C3C1200, // 034F MOVE R15 R9 + 0x7C2C0800, // 0350 CALL R11 4 + 0x8C2C150B, // 0351 GETMET R11 R10 K11 + 0x58340009, // 0352 LDCONST R13 K9 + 0x8838090C, // 0353 GETMBR R14 R4 K12 + 0x883C0154, // 0354 GETMBR R15 R0 K84 + 0x943C1E09, // 0355 GETIDX R15 R15 R9 + 0x7C2C0800, // 0356 CALL R11 4 + 0x7001FFEF, // 0357 JMP #0348 + 0x5820003A, // 0358 LDCONST R8 K58 + 0xAC200200, // 0359 CATCH R8 1 0 + 0xB0080000, // 035A RAISE 2 R0 R0 + 0x80040E00, // 035B RET 1 R7 + 0x70020033, // 035C JMP #0391 + 0x1C1C0D09, // 035D EQ R7 R6 K9 + 0x781E0013, // 035E JMPF R7 #0373 + 0x8C1C0911, // 035F GETMET R7 R4 K17 + 0x7C1C0200, // 0360 CALL R7 1 + 0x60200010, // 0361 GETGBL R8 G16 + 0x8C240156, // 0362 GETMET R9 R0 K86 + 0x7C240200, // 0363 CALL R9 1 + 0x7C200200, // 0364 CALL R8 1 + 0xA8020007, // 0365 EXBLK 0 #036E + 0x5C241000, // 0366 MOVE R9 R8 + 0x7C240000, // 0367 CALL R9 0 + 0x8C280F0B, // 0368 GETMET R10 R7 K11 + 0x4C300000, // 0369 LDNIL R12 + 0x8834092A, // 036A GETMBR R13 R4 K42 + 0x5C381200, // 036B MOVE R14 R9 + 0x7C280800, // 036C CALL R10 4 + 0x7001FFF7, // 036D JMP #0366 + 0x5820003A, // 036E LDCONST R8 K58 + 0xAC200200, // 036F CATCH R8 1 0 + 0xB0080000, // 0370 RAISE 2 R0 R0 + 0x80040E00, // 0371 RET 1 R7 + 0x7002001D, // 0372 JMP #0391 + 0x1C1C0D0D, // 0373 EQ R7 R6 K13 + 0x781E0003, // 0374 JMPF R7 #0379 + 0x8C1C0911, // 0375 GETMET R7 R4 K17 + 0x7C1C0200, // 0376 CALL R7 1 + 0x80040E00, // 0377 RET 1 R7 + 0x70020017, // 0378 JMP #0391 + 0x1C1C0D0F, // 0379 EQ R7 R6 K15 + 0x781E0015, // 037A JMPF R7 #0391 + 0x881C0133, // 037B GETMBR R7 R0 K51 + 0x8C1C0F57, // 037C GETMET R7 R7 K87 + 0x50240200, // 037D LDBOOL R9 1 0 + 0x7C1C0400, // 037E CALL R7 2 + 0x8C200911, // 037F GETMET R8 R4 K17 + 0x7C200200, // 0380 CALL R8 1 + 0x60240010, // 0381 GETGBL R9 G16 + 0x5C280E00, // 0382 MOVE R10 R7 + 0x7C240200, // 0383 CALL R9 1 + 0xA8020007, // 0384 EXBLK 0 #038D + 0x5C281200, // 0385 MOVE R10 R9 + 0x7C280000, // 0386 CALL R10 0 + 0x8C2C110B, // 0387 GETMET R11 R8 K11 + 0x4C340000, // 0388 LDNIL R13 + 0x8838090C, // 0389 GETMBR R14 R4 K12 + 0x5C3C1400, // 038A MOVE R15 R10 + 0x7C2C0800, // 038B CALL R11 4 + 0x7001FFF7, // 038C JMP #0385 + 0x5824003A, // 038D LDCONST R9 K58 + 0xAC240200, // 038E CATCH R9 1 0 + 0xB0080000, // 038F RAISE 2 R0 R0 + 0x80041000, // 0390 RET 1 R8 + 0x70020002, // 0391 JMP #0395 + 0xB81E0200, // 0392 GETNGBL R7 K1 + 0x881C0F59, // 0393 GETMBR R7 R7 K89 + 0x900AB007, // 0394 SETMBR R2 K88 R7 + 0x80000000, // 0395 RET 0 }) ) ); @@ -1118,8 +1184,8 @@ be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_Root_init, /* name */ be_nested_proto( - 5, /* nstack */ - 2, /* argc */ + 7, /* nstack */ + 3, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -1135,18 +1201,19 @@ be_local_closure(Matter_Plugin_Root_init, /* name */ }), be_str_weak(init), &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080500, // 0003 GETMET R2 R2 K0 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x88080102, // 0006 GETMBR R2 R0 K2 - 0x90020202, // 0007 SETMBR R0 K1 R2 - 0x88080104, // 0008 GETMBR R2 R0 K4 - 0x90020602, // 0009 SETMBR R0 K3 R2 - 0x80000000, // 000A RET 0 + ( &(const binstruction[12]) { /* code */ + 0x600C0003, // 0000 GETGBL R3 G3 + 0x5C100000, // 0001 MOVE R4 R0 + 0x7C0C0200, // 0002 CALL R3 1 + 0x8C0C0700, // 0003 GETMET R3 R3 K0 + 0x5C140200, // 0004 MOVE R5 R1 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C0C0600, // 0006 CALL R3 3 + 0x880C0102, // 0007 GETMBR R3 R0 K2 + 0x90020203, // 0008 SETMBR R0 K1 R3 + 0x880C0104, // 0009 GETMBR R3 R0 K4 + 0x90020603, // 000A SETMBR R0 K3 R3 + 0x80000000, // 000B RET 0 }) ) ); @@ -1158,7 +1225,7 @@ be_local_closure(Matter_Plugin_Root_init, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ be_nested_proto( - 28, /* nstack */ + 29, /* nstack */ 4, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1166,631 +1233,789 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[80]) { /* constants */ + ( &(const bvalue[94]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(command), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(findsubval), - /* K7 */ be_const_int(1), - /* K8 */ be_nested_str_weak(_breadcrumb), - /* K9 */ be_nested_str_weak(Matter_TLV_struct), - /* K10 */ be_nested_str_weak(add_TLV), - /* K11 */ be_nested_str_weak(U1), - /* K12 */ be_nested_str_weak(UTF1), - /* K13 */ be_nested_str_weak(), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(XX), - /* K16 */ be_const_int(3), - /* K17 */ be_nested_str_weak(fabric_completed), - /* K18 */ be_nested_str_weak(set_no_expiration), - /* K19 */ be_nested_str_weak(save), - /* K20 */ be_nested_str_weak(device), - /* K21 */ be_nested_str_weak(start_commissioning_complete_deferred), - /* K22 */ be_nested_str_weak(status), - /* K23 */ be_nested_str_weak(UNSUPPORTED_COMMAND), - /* K24 */ be_nested_str_weak(B2), - /* K25 */ be_nested_str_weak(DAC_Cert_FFF1_8000), - /* K26 */ be_nested_str_weak(PAI_Cert_FFF1), - /* K27 */ be_nested_str_weak(CD_FFF1_8000), - /* K28 */ be_nested_str_weak(B1), - /* K29 */ be_nested_str_weak(U4), - /* K30 */ be_nested_str_weak(tasmota), - /* K31 */ be_nested_str_weak(rtc), - /* K32 */ be_nested_str_weak(utc), - /* K33 */ be_nested_str_weak(encode), - /* K34 */ be_nested_str_weak(get_ac), - /* K35 */ be_nested_str_weak(log), - /* K36 */ be_nested_str_weak(MTR_X3A_X20attestation_tbs_X3D), - /* K37 */ be_nested_str_weak(tohex), - /* K38 */ be_nested_str_weak(EC_P256), - /* K39 */ be_nested_str_weak(ecdsa_sign_sha256), - /* K40 */ be_nested_str_weak(DAC_Priv_FFF1_8000), - /* K41 */ be_nested_str_weak(gen_CSR), - /* K42 */ be_nested_str_weak(MTR_X3A_X20nocsr_tbs_X3D), - /* K43 */ be_nested_str_weak(set_ca), - /* K44 */ be_nested_str_weak(MTR_X3A_X20received_X20ca_root_X3D), - /* K45 */ be_nested_str_weak(SUCCESS), - /* K46 */ be_nested_str_weak(get_ca), - /* K47 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20AdNOC_X20without_X20CA), - /* K48 */ be_nested_str_weak(set_noc), - /* K49 */ be_nested_str_weak(set_ipk_epoch_key), - /* K50 */ be_nested_str_weak(set_admin_subject_vendor), - /* K51 */ be_nested_str_weak(parse), - /* K52 */ be_nested_str_weak(findsub), - /* K53 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20no_X20fabricid_X20nor_X20deviceid_X20in_X20NOC_X20certificate), - /* K54 */ be_nested_str_weak(int), - /* K55 */ be_nested_str_weak(int64), - /* K56 */ be_nested_str_weak(fromu32), - /* K57 */ be_nested_str_weak(tobytes), - /* K58 */ be_const_int(2147483647), - /* K59 */ be_nested_str_weak(fromstring), - /* K60 */ be_nested_str_weak(CompressedFabric), - /* K61 */ be_nested_str_weak(HKDF_SHA256), - /* K62 */ be_nested_str_weak(copy), - /* K63 */ be_nested_str_weak(reverse), - /* K64 */ be_nested_str_weak(derive), - /* K65 */ be_nested_str_weak(set_fabric_device), - /* K66 */ be_nested_str_weak(persist_to_fabric), - /* K67 */ be_nested_str_weak(fabric_candidate), - /* K68 */ be_nested_str_weak(start_operational_discovery_deferred), - /* K69 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D), - /* K70 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D), - /* K71 */ be_nested_str_weak(inspect), - /* K72 */ be_nested_str_weak(_fabric), - /* K73 */ be_nested_str_weak(set_fabric_label), - /* K74 */ be_nested_str_weak(sessions), - /* K75 */ be_nested_str_weak(sessions_active), - /* K76 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), - /* K77 */ be_nested_str_weak(get_fabric_id), - /* K78 */ be_nested_str_weak(remove_session), - /* K79 */ be_nested_str_weak(save_fabrics), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(TLV), + /* K4 */ be_nested_str_weak(cluster), + /* K5 */ be_nested_str_weak(command), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(findsubval), + /* K8 */ be_const_int(1), + /* K9 */ be_nested_str_weak(_breadcrumb), + /* K10 */ be_nested_str_weak(Matter_TLV_struct), + /* K11 */ be_nested_str_weak(add_TLV), + /* K12 */ be_nested_str_weak(U1), + /* K13 */ be_nested_str_weak(UTF1), + /* K14 */ be_nested_str_weak(), + /* K15 */ be_const_int(2), + /* K16 */ be_nested_str_weak(XX), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(fabric_completed), + /* K19 */ be_nested_str_weak(set_no_expiration), + /* K20 */ be_nested_str_weak(save), + /* K21 */ be_nested_str_weak(device), + /* K22 */ be_nested_str_weak(start_commissioning_complete_deferred), + /* K23 */ be_nested_str_weak(status), + /* K24 */ be_nested_str_weak(UNSUPPORTED_COMMAND), + /* K25 */ be_nested_str_weak(B2), + /* K26 */ be_nested_str_weak(DAC_Cert_FFF1_8000), + /* K27 */ be_nested_str_weak(PAI_Cert_FFF1), + /* K28 */ be_nested_str_weak(CD_FFF1_8000), + /* K29 */ be_nested_str_weak(B1), + /* K30 */ be_nested_str_weak(U4), + /* K31 */ be_nested_str_weak(tasmota), + /* K32 */ be_nested_str_weak(rtc), + /* K33 */ be_nested_str_weak(utc), + /* K34 */ be_nested_str_weak(encode), + /* K35 */ be_nested_str_weak(get_ac), + /* K36 */ be_nested_str_weak(log), + /* K37 */ be_nested_str_weak(MTR_X3A_X20attestation_tbs_X3D), + /* K38 */ be_nested_str_weak(tohex), + /* K39 */ be_nested_str_weak(EC_P256), + /* K40 */ be_nested_str_weak(ecdsa_sign_sha256), + /* K41 */ be_nested_str_weak(DAC_Priv_FFF1_8000), + /* K42 */ be_nested_str_weak(gen_CSR), + /* K43 */ be_nested_str_weak(MTR_X3A_X20nocsr_tbs_X3D), + /* K44 */ be_nested_str_weak(set_ca), + /* K45 */ be_nested_str_weak(MTR_X3A_X20received_X20ca_root_X3D), + /* K46 */ be_nested_str_weak(SUCCESS), + /* K47 */ be_nested_str_weak(get_ca), + /* K48 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20AdNOC_X20without_X20CA), + /* K49 */ be_nested_str_weak(set_noc), + /* K50 */ be_nested_str_weak(set_ipk_epoch_key), + /* K51 */ be_nested_str_weak(set_admin_subject_vendor), + /* K52 */ be_nested_str_weak(parse), + /* K53 */ be_nested_str_weak(findsub), + /* K54 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20no_X20fabricid_X20nor_X20deviceid_X20in_X20NOC_X20certificate), + /* K55 */ be_nested_str_weak(int), + /* K56 */ be_nested_str_weak(int64), + /* K57 */ be_nested_str_weak(fromu32), + /* K58 */ be_nested_str_weak(tobytes), + /* K59 */ be_const_int(2147483647), + /* K60 */ be_nested_str_weak(fromstring), + /* K61 */ be_nested_str_weak(CompressedFabric), + /* K62 */ be_nested_str_weak(HKDF_SHA256), + /* K63 */ be_nested_str_weak(copy), + /* K64 */ be_nested_str_weak(reverse), + /* K65 */ be_nested_str_weak(derive), + /* K66 */ be_nested_str_weak(set_fabric_device), + /* K67 */ be_nested_str_weak(persist_to_fabric), + /* K68 */ be_nested_str_weak(fabric_candidate), + /* K69 */ be_nested_str_weak(start_operational_discovery_deferred), + /* K70 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D_X2D), + /* K71 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D), + /* K72 */ be_nested_str_weak(inspect), + /* K73 */ be_nested_str_weak(_fabric), + /* K74 */ be_nested_str_weak(set_fabric_label), + /* K75 */ be_nested_str_weak(sessions), + /* K76 */ be_nested_str_weak(active_fabrics), + /* K77 */ be_nested_str_weak(get_fabric_index), + /* K78 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), + /* K79 */ be_nested_str_weak(get_fabric_id), + /* K80 */ be_nested_str_weak(remove_fabric), + /* K81 */ be_nested_str_weak(stop_iteration), + /* K82 */ be_nested_str_weak(MTR_X3A_X20RemoveFabric_X20fabric_X28), + /* K83 */ be_nested_str_weak(_X29_X20not_X20found), + /* K84 */ be_nested_str_weak(format), + /* K85 */ be_nested_str_weak(MTR_X3A_X20OpenCommissioningWindow_X28timeout_X3D_X25i_X2C_X20passcode_X3D_X25s_X2C_X20discriminator_X3D_X25i_X2C_X20iterations_X3D_X25i_X2C_X20salt_X3D_X25s_X29), + /* K86 */ be_nested_str_weak(INVALID_DATA_TYPE), + /* K87 */ be_nested_str_weak(MTR_X3A_X20wrong_X20size_X20for_X20PAKE_X20parameters), + /* K88 */ be_nested_str_weak(CONSTRAINT_ERROR), + /* K89 */ be_nested_str_weak(start_basic_commissioning), + /* K90 */ be_nested_str_weak(get_fabric), + /* K91 */ be_nested_str_weak(MTR_X3A_X20OpenBasicCommissioningWindow_X20commissioning_timeout_X3D), + /* K92 */ be_nested_str_weak(start_root_basic_commissioning), + /* K93 */ be_nested_str_weak(stop_basic_commissioning), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[540]) { /* code */ + ( &(const binstruction[684]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 - 0xB8160200, // 0001 GETNGBL R5 K1 - 0x88140B02, // 0002 GETMBR R5 R5 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 + 0xA4160200, // 0001 IMPORT R5 K1 + 0xB81A0400, // 0002 GETNGBL R6 K2 + 0x88180D03, // 0003 GETMBR R6 R6 K3 0x881C0704, // 0004 GETMBR R7 R3 K4 - 0x5422002F, // 0005 LDINT R8 48 - 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x78220054, // 0007 JMPF R8 #005D - 0x1C200F05, // 0008 EQ R8 R7 K5 - 0x78220017, // 0009 JMPF R8 #0022 - 0x8C200506, // 000A GETMET R8 R2 K6 - 0x58280005, // 000B LDCONST R10 K5 - 0x542E0383, // 000C LDINT R11 900 - 0x7C200600, // 000D CALL R8 3 - 0x8C240506, // 000E GETMET R9 R2 K6 - 0x582C0007, // 000F LDCONST R11 K7 - 0x58300005, // 0010 LDCONST R12 K5 - 0x7C240600, // 0011 CALL R9 3 - 0x90061009, // 0012 SETMBR R1 K8 R9 - 0x8C280B09, // 0013 GETMET R10 R5 K9 - 0x7C280200, // 0014 CALL R10 1 - 0x8C2C150A, // 0015 GETMET R11 R10 K10 - 0x58340005, // 0016 LDCONST R13 K5 - 0x88380B0B, // 0017 GETMBR R14 R5 K11 - 0x583C0005, // 0018 LDCONST R15 K5 - 0x7C2C0800, // 0019 CALL R11 4 - 0x8C2C150A, // 001A GETMET R11 R10 K10 - 0x58340007, // 001B LDCONST R13 K7 - 0x88380B0C, // 001C GETMBR R14 R5 K12 - 0x583C000D, // 001D LDCONST R15 K13 - 0x7C2C0800, // 001E CALL R11 4 - 0x900E0907, // 001F SETMBR R3 K4 K7 - 0x80041400, // 0020 RET 1 R10 - 0x70020039, // 0021 JMP #005C - 0x1C200F0E, // 0022 EQ R8 R7 K14 - 0x7822001A, // 0023 JMPF R8 #003F - 0x8C200506, // 0024 GETMET R8 R2 K6 - 0x58280005, // 0025 LDCONST R10 K5 - 0x7C200400, // 0026 CALL R8 2 - 0x8C240506, // 0027 GETMET R9 R2 K6 - 0x582C0007, // 0028 LDCONST R11 K7 - 0x5830000F, // 0029 LDCONST R12 K15 - 0x7C240600, // 002A CALL R9 3 - 0x8C280506, // 002B GETMET R10 R2 K6 - 0x5830000E, // 002C LDCONST R12 K14 - 0x58340005, // 002D LDCONST R13 K5 - 0x7C280600, // 002E CALL R10 3 - 0x9006100A, // 002F SETMBR R1 K8 R10 - 0x8C2C0B09, // 0030 GETMET R11 R5 K9 - 0x7C2C0200, // 0031 CALL R11 1 - 0x8C30170A, // 0032 GETMET R12 R11 K10 - 0x58380005, // 0033 LDCONST R14 K5 - 0x883C0B0B, // 0034 GETMBR R15 R5 K11 - 0x58400005, // 0035 LDCONST R16 K5 - 0x7C300800, // 0036 CALL R12 4 - 0x8C30170A, // 0037 GETMET R12 R11 K10 - 0x58380007, // 0038 LDCONST R14 K7 - 0x883C0B0C, // 0039 GETMBR R15 R5 K12 - 0x5840000D, // 003A LDCONST R16 K13 - 0x7C300800, // 003B CALL R12 4 - 0x900E0910, // 003C SETMBR R3 K4 K16 - 0x80041600, // 003D RET 1 R11 - 0x7002001C, // 003E JMP #005C - 0x54220003, // 003F LDINT R8 4 - 0x1C200E08, // 0040 EQ R8 R7 R8 - 0x78220019, // 0041 JMPF R8 #005C - 0x90061105, // 0042 SETMBR R1 K8 K5 - 0x8C200311, // 0043 GETMET R8 R1 K17 - 0x7C200200, // 0044 CALL R8 1 - 0x8C200312, // 0045 GETMET R8 R1 K18 - 0x7C200200, // 0046 CALL R8 1 - 0x8C200313, // 0047 GETMET R8 R1 K19 - 0x7C200200, // 0048 CALL R8 1 - 0x8C200B09, // 0049 GETMET R8 R5 K9 - 0x7C200200, // 004A CALL R8 1 - 0x8C24110A, // 004B GETMET R9 R8 K10 - 0x582C0005, // 004C LDCONST R11 K5 - 0x88300B0B, // 004D GETMBR R12 R5 K11 - 0x58340005, // 004E LDCONST R13 K5 - 0x7C240800, // 004F CALL R9 4 - 0x8C24110A, // 0050 GETMET R9 R8 K10 - 0x582C0007, // 0051 LDCONST R11 K7 - 0x88300B0C, // 0052 GETMBR R12 R5 K12 - 0x5834000D, // 0053 LDCONST R13 K13 - 0x7C240800, // 0054 CALL R9 4 - 0x54260004, // 0055 LDINT R9 5 - 0x900E0809, // 0056 SETMBR R3 K4 R9 - 0x88240114, // 0057 GETMBR R9 R0 K20 - 0x8C241315, // 0058 GETMET R9 R9 K21 - 0x5C2C0200, // 0059 MOVE R11 R1 - 0x7C240400, // 005A CALL R9 2 - 0x80041000, // 005B RET 1 R8 - 0x700201BD, // 005C JMP #021B - 0x5422003D, // 005D LDINT R8 62 - 0x1C200C08, // 005E EQ R8 R6 R8 - 0x782201B3, // 005F JMPF R8 #0214 - 0x1C200F0E, // 0060 EQ R8 R7 K14 - 0x7822001D, // 0061 JMPF R8 #0080 - 0x8C200506, // 0062 GETMET R8 R2 K6 - 0x58280005, // 0063 LDCONST R10 K5 - 0x7C200400, // 0064 CALL R8 2 - 0x20241107, // 0065 NE R9 R8 K7 - 0x78260006, // 0066 JMPF R9 #006E - 0x2024110E, // 0067 NE R9 R8 K14 - 0x78260004, // 0068 JMPF R9 #006E - 0xB8260200, // 0069 GETNGBL R9 K1 - 0x88241317, // 006A GETMBR R9 R9 K23 - 0x900E2C09, // 006B SETMBR R3 K22 R9 - 0x4C240000, // 006C LDNIL R9 - 0x80041200, // 006D RET 1 R9 - 0x8C240B09, // 006E GETMET R9 R5 K9 - 0x7C240200, // 006F CALL R9 1 - 0x8C28130A, // 0070 GETMET R10 R9 K10 - 0x58300005, // 0071 LDCONST R12 K5 - 0x88340B18, // 0072 GETMBR R13 R5 K24 - 0x1C381107, // 0073 EQ R14 R8 K7 - 0x783A0003, // 0074 JMPF R14 #0079 - 0xB83A0200, // 0075 GETNGBL R14 K1 - 0x8C381D19, // 0076 GETMET R14 R14 K25 - 0x7C380200, // 0077 CALL R14 1 - 0x70020002, // 0078 JMP #007C - 0xB83A0200, // 0079 GETNGBL R14 K1 - 0x8C381D1A, // 007A GETMET R14 R14 K26 - 0x7C380200, // 007B CALL R14 1 - 0x7C280800, // 007C CALL R10 4 - 0x900E0910, // 007D SETMBR R3 K4 K16 - 0x80041200, // 007E RET 1 R9 - 0x70020192, // 007F JMP #0213 - 0x1C200F05, // 0080 EQ R8 R7 K5 - 0x78220044, // 0081 JMPF R8 #00C7 - 0x8C200506, // 0082 GETMET R8 R2 K6 - 0x58280005, // 0083 LDCONST R10 K5 - 0x7C200400, // 0084 CALL R8 2 - 0x6024000C, // 0085 GETGBL R9 G12 - 0x5C281000, // 0086 MOVE R10 R8 - 0x7C240200, // 0087 CALL R9 1 - 0x542A001F, // 0088 LDINT R10 32 - 0x2024120A, // 0089 NE R9 R9 R10 - 0x78260001, // 008A JMPF R9 #008D - 0x4C240000, // 008B LDNIL R9 - 0x80041200, // 008C RET 1 R9 - 0x900E0907, // 008D SETMBR R3 K4 K7 - 0x8C240B09, // 008E GETMET R9 R5 K9 - 0x7C240200, // 008F CALL R9 1 - 0x8C28130A, // 0090 GETMET R10 R9 K10 - 0x58300007, // 0091 LDCONST R12 K7 - 0x88340B18, // 0092 GETMBR R13 R5 K24 - 0xB83A0200, // 0093 GETNGBL R14 K1 - 0x8C381D1B, // 0094 GETMET R14 R14 K27 - 0x7C380200, // 0095 CALL R14 1 - 0x7C280800, // 0096 CALL R10 4 - 0x8C28130A, // 0097 GETMET R10 R9 K10 - 0x5830000E, // 0098 LDCONST R12 K14 - 0x88340B1C, // 0099 GETMBR R13 R5 K28 - 0x5C381000, // 009A MOVE R14 R8 - 0x7C280800, // 009B CALL R10 4 - 0x8C28130A, // 009C GETMET R10 R9 K10 - 0x58300010, // 009D LDCONST R12 K16 - 0x88340B1D, // 009E GETMBR R13 R5 K29 - 0xB83A3C00, // 009F GETNGBL R14 K30 - 0x8C381D1F, // 00A0 GETMET R14 R14 K31 - 0x7C380200, // 00A1 CALL R14 1 - 0x94381D20, // 00A2 GETIDX R14 R14 K32 - 0x7C280800, // 00A3 CALL R10 4 - 0x8C281321, // 00A4 GETMET R10 R9 K33 - 0x7C280200, // 00A5 CALL R10 1 - 0x8C2C0322, // 00A6 GETMET R11 R1 K34 - 0x7C2C0200, // 00A7 CALL R11 1 - 0x0030140B, // 00A8 ADD R12 R10 R11 - 0xB8363C00, // 00A9 GETNGBL R13 K30 - 0x8C341B23, // 00AA GETMET R13 R13 K35 - 0x8C3C1925, // 00AB GETMET R15 R12 K37 - 0x7C3C0200, // 00AC CALL R15 1 - 0x003E480F, // 00AD ADD R15 K36 R15 - 0x58400010, // 00AE LDCONST R16 K16 - 0x7C340600, // 00AF CALL R13 3 - 0x8C340926, // 00B0 GETMET R13 R4 K38 - 0x7C340200, // 00B1 CALL R13 1 - 0x8C341B27, // 00B2 GETMET R13 R13 K39 - 0xB83E0200, // 00B3 GETNGBL R15 K1 - 0x8C3C1F28, // 00B4 GETMET R15 R15 K40 - 0x7C3C0200, // 00B5 CALL R15 1 - 0x5C401800, // 00B6 MOVE R16 R12 - 0x7C340600, // 00B7 CALL R13 3 - 0x8C380B09, // 00B8 GETMET R14 R5 K9 - 0x7C380200, // 00B9 CALL R14 1 - 0x8C3C1D0A, // 00BA GETMET R15 R14 K10 - 0x58440005, // 00BB LDCONST R17 K5 - 0x88480B18, // 00BC GETMBR R18 R5 K24 - 0x5C4C1400, // 00BD MOVE R19 R10 - 0x7C3C0800, // 00BE CALL R15 4 - 0x8C3C1D0A, // 00BF GETMET R15 R14 K10 - 0x58440007, // 00C0 LDCONST R17 K7 - 0x88480B1C, // 00C1 GETMBR R18 R5 K28 - 0x5C4C1A00, // 00C2 MOVE R19 R13 - 0x7C3C0800, // 00C3 CALL R15 4 - 0x900E0907, // 00C4 SETMBR R3 K4 K7 - 0x80041C00, // 00C5 RET 1 R14 - 0x7002014B, // 00C6 JMP #0213 - 0x54220003, // 00C7 LDINT R8 4 - 0x1C200E08, // 00C8 EQ R8 R7 R8 - 0x78220040, // 00C9 JMPF R8 #010B - 0x8C200506, // 00CA GETMET R8 R2 K6 - 0x58280005, // 00CB LDCONST R10 K5 - 0x7C200400, // 00CC CALL R8 2 - 0x6024000C, // 00CD GETGBL R9 G12 - 0x5C281000, // 00CE MOVE R10 R8 - 0x7C240200, // 00CF CALL R9 1 - 0x542A001F, // 00D0 LDINT R10 32 - 0x2024120A, // 00D1 NE R9 R9 R10 - 0x78260001, // 00D2 JMPF R9 #00D5 - 0x4C240000, // 00D3 LDNIL R9 - 0x80041200, // 00D4 RET 1 R9 - 0x8C240506, // 00D5 GETMET R9 R2 K6 - 0x582C0007, // 00D6 LDCONST R11 K7 - 0x50300000, // 00D7 LDBOOL R12 0 0 - 0x7C240600, // 00D8 CALL R9 3 - 0x8C280329, // 00D9 GETMET R10 R1 K41 - 0x7C280200, // 00DA CALL R10 1 - 0x8C2C0B09, // 00DB GETMET R11 R5 K9 - 0x7C2C0200, // 00DC CALL R11 1 - 0x8C30170A, // 00DD GETMET R12 R11 K10 - 0x58380007, // 00DE LDCONST R14 K7 - 0x883C0B18, // 00DF GETMBR R15 R5 K24 - 0x5C401400, // 00E0 MOVE R16 R10 - 0x7C300800, // 00E1 CALL R12 4 - 0x8C30170A, // 00E2 GETMET R12 R11 K10 - 0x5838000E, // 00E3 LDCONST R14 K14 - 0x883C0B1C, // 00E4 GETMBR R15 R5 K28 - 0x5C401000, // 00E5 MOVE R16 R8 - 0x7C300800, // 00E6 CALL R12 4 - 0x8C301721, // 00E7 GETMET R12 R11 K33 - 0x7C300200, // 00E8 CALL R12 1 - 0x8C340322, // 00E9 GETMET R13 R1 K34 - 0x7C340200, // 00EA CALL R13 1 - 0x0034180D, // 00EB ADD R13 R12 R13 - 0xB83A3C00, // 00EC GETNGBL R14 K30 - 0x8C381D23, // 00ED GETMET R14 R14 K35 - 0x8C401B25, // 00EE GETMET R16 R13 K37 - 0x7C400200, // 00EF CALL R16 1 - 0x00425410, // 00F0 ADD R16 K42 R16 - 0x58440010, // 00F1 LDCONST R17 K16 - 0x7C380600, // 00F2 CALL R14 3 - 0x8C380926, // 00F3 GETMET R14 R4 K38 - 0x7C380200, // 00F4 CALL R14 1 - 0x8C381D27, // 00F5 GETMET R14 R14 K39 - 0xB8420200, // 00F6 GETNGBL R16 K1 - 0x8C402128, // 00F7 GETMET R16 R16 K40 - 0x7C400200, // 00F8 CALL R16 1 - 0x5C441A00, // 00F9 MOVE R17 R13 - 0x7C380600, // 00FA CALL R14 3 - 0x8C3C0B09, // 00FB GETMET R15 R5 K9 - 0x7C3C0200, // 00FC CALL R15 1 - 0x8C401F0A, // 00FD GETMET R16 R15 K10 - 0x58480005, // 00FE LDCONST R18 K5 - 0x884C0B18, // 00FF GETMBR R19 R5 K24 - 0x5C501800, // 0100 MOVE R20 R12 - 0x7C400800, // 0101 CALL R16 4 - 0x8C401F0A, // 0102 GETMET R16 R15 K10 - 0x58480007, // 0103 LDCONST R18 K7 - 0x884C0B1C, // 0104 GETMBR R19 R5 K28 - 0x5C501C00, // 0105 MOVE R20 R14 - 0x7C400800, // 0106 CALL R16 4 - 0x54420004, // 0107 LDINT R16 5 - 0x900E0810, // 0108 SETMBR R3 K4 R16 - 0x80041E00, // 0109 RET 1 R15 - 0x70020107, // 010A JMP #0213 - 0x5422000A, // 010B LDINT R8 11 - 0x1C200E08, // 010C EQ R8 R7 R8 - 0x78220012, // 010D JMPF R8 #0121 - 0x8C200506, // 010E GETMET R8 R2 K6 - 0x58280005, // 010F LDCONST R10 K5 - 0x7C200400, // 0110 CALL R8 2 - 0x8C24032B, // 0111 GETMET R9 R1 K43 - 0x5C2C1000, // 0112 MOVE R11 R8 - 0x7C240400, // 0113 CALL R9 2 - 0xB8263C00, // 0114 GETNGBL R9 K30 - 0x8C241323, // 0115 GETMET R9 R9 K35 - 0x8C2C1125, // 0116 GETMET R11 R8 K37 - 0x7C2C0200, // 0117 CALL R11 1 - 0x002E580B, // 0118 ADD R11 K44 R11 - 0x58300010, // 0119 LDCONST R12 K16 - 0x7C240600, // 011A CALL R9 3 - 0xB8260200, // 011B GETNGBL R9 K1 - 0x8824132D, // 011C GETMBR R9 R9 K45 - 0x900E2C09, // 011D SETMBR R3 K22 R9 - 0x4C240000, // 011E LDNIL R9 - 0x80041200, // 011F RET 1 R9 - 0x700200F1, // 0120 JMP #0213 - 0x54220005, // 0121 LDINT R8 6 - 0x1C200E08, // 0122 EQ R8 R7 R8 - 0x782200B2, // 0123 JMPF R8 #01D7 - 0x8C200506, // 0124 GETMET R8 R2 K6 - 0x58280005, // 0125 LDCONST R10 K5 - 0x7C200400, // 0126 CALL R8 2 - 0x8C240506, // 0127 GETMET R9 R2 K6 - 0x582C0007, // 0128 LDCONST R11 K7 - 0x7C240400, // 0129 CALL R9 2 - 0x6028000C, // 012A GETGBL R10 G12 - 0x5C2C1200, // 012B MOVE R11 R9 - 0x7C280200, // 012C CALL R10 1 - 0x1C281505, // 012D EQ R10 R10 K5 - 0x782A0000, // 012E JMPF R10 #0130 - 0x4C240000, // 012F LDNIL R9 - 0x8C280506, // 0130 GETMET R10 R2 K6 - 0x5830000E, // 0131 LDCONST R12 K14 - 0x7C280400, // 0132 CALL R10 2 - 0x8C2C0506, // 0133 GETMET R11 R2 K6 - 0x58340010, // 0134 LDCONST R13 K16 - 0x7C2C0400, // 0135 CALL R11 2 - 0x8C300506, // 0136 GETMET R12 R2 K6 - 0x543A0003, // 0137 LDINT R14 4 - 0x7C300400, // 0138 CALL R12 2 - 0x8C34032E, // 0139 GETMET R13 R1 K46 - 0x7C340200, // 013A CALL R13 1 - 0x4C380000, // 013B LDNIL R14 - 0x1C341A0E, // 013C EQ R13 R13 R14 - 0x78360006, // 013D JMPF R13 #0145 - 0xB8363C00, // 013E GETNGBL R13 K30 - 0x8C341B23, // 013F GETMET R13 R13 K35 - 0x583C002F, // 0140 LDCONST R15 K47 - 0x5840000E, // 0141 LDCONST R16 K14 - 0x7C340600, // 0142 CALL R13 3 - 0x4C340000, // 0143 LDNIL R13 - 0x80041A00, // 0144 RET 1 R13 - 0x8C340330, // 0145 GETMET R13 R1 K48 - 0x5C3C1000, // 0146 MOVE R15 R8 + 0x88200705, // 0005 GETMBR R8 R3 K5 + 0x5426002F, // 0006 LDINT R9 48 + 0x1C240E09, // 0007 EQ R9 R7 R9 + 0x78260054, // 0008 JMPF R9 #005E + 0x1C241106, // 0009 EQ R9 R8 K6 + 0x78260017, // 000A JMPF R9 #0023 + 0x8C240507, // 000B GETMET R9 R2 K7 + 0x582C0006, // 000C LDCONST R11 K6 + 0x54320383, // 000D LDINT R12 900 + 0x7C240600, // 000E CALL R9 3 + 0x8C280507, // 000F GETMET R10 R2 K7 + 0x58300008, // 0010 LDCONST R12 K8 + 0x58340006, // 0011 LDCONST R13 K6 + 0x7C280600, // 0012 CALL R10 3 + 0x9006120A, // 0013 SETMBR R1 K9 R10 + 0x8C2C0D0A, // 0014 GETMET R11 R6 K10 + 0x7C2C0200, // 0015 CALL R11 1 + 0x8C30170B, // 0016 GETMET R12 R11 K11 + 0x58380006, // 0017 LDCONST R14 K6 + 0x883C0D0C, // 0018 GETMBR R15 R6 K12 + 0x58400006, // 0019 LDCONST R16 K6 + 0x7C300800, // 001A CALL R12 4 + 0x8C30170B, // 001B GETMET R12 R11 K11 + 0x58380008, // 001C LDCONST R14 K8 + 0x883C0D0D, // 001D GETMBR R15 R6 K13 + 0x5840000E, // 001E LDCONST R16 K14 + 0x7C300800, // 001F CALL R12 4 + 0x900E0B08, // 0020 SETMBR R3 K5 K8 + 0x80041600, // 0021 RET 1 R11 + 0x70020039, // 0022 JMP #005D + 0x1C24110F, // 0023 EQ R9 R8 K15 + 0x7826001A, // 0024 JMPF R9 #0040 + 0x8C240507, // 0025 GETMET R9 R2 K7 + 0x582C0006, // 0026 LDCONST R11 K6 + 0x7C240400, // 0027 CALL R9 2 + 0x8C280507, // 0028 GETMET R10 R2 K7 + 0x58300008, // 0029 LDCONST R12 K8 + 0x58340010, // 002A LDCONST R13 K16 + 0x7C280600, // 002B CALL R10 3 + 0x8C2C0507, // 002C GETMET R11 R2 K7 + 0x5834000F, // 002D LDCONST R13 K15 + 0x58380006, // 002E LDCONST R14 K6 + 0x7C2C0600, // 002F CALL R11 3 + 0x9006120B, // 0030 SETMBR R1 K9 R11 + 0x8C300D0A, // 0031 GETMET R12 R6 K10 + 0x7C300200, // 0032 CALL R12 1 + 0x8C34190B, // 0033 GETMET R13 R12 K11 + 0x583C0006, // 0034 LDCONST R15 K6 + 0x88400D0C, // 0035 GETMBR R16 R6 K12 + 0x58440006, // 0036 LDCONST R17 K6 + 0x7C340800, // 0037 CALL R13 4 + 0x8C34190B, // 0038 GETMET R13 R12 K11 + 0x583C0008, // 0039 LDCONST R15 K8 + 0x88400D0D, // 003A GETMBR R16 R6 K13 + 0x5844000E, // 003B LDCONST R17 K14 + 0x7C340800, // 003C CALL R13 4 + 0x900E0B11, // 003D SETMBR R3 K5 K17 + 0x80041800, // 003E RET 1 R12 + 0x7002001C, // 003F JMP #005D + 0x54260003, // 0040 LDINT R9 4 + 0x1C241009, // 0041 EQ R9 R8 R9 + 0x78260019, // 0042 JMPF R9 #005D + 0x90061306, // 0043 SETMBR R1 K9 K6 + 0x8C240312, // 0044 GETMET R9 R1 K18 + 0x7C240200, // 0045 CALL R9 1 + 0x8C240313, // 0046 GETMET R9 R1 K19 + 0x7C240200, // 0047 CALL R9 1 + 0x8C240314, // 0048 GETMET R9 R1 K20 + 0x7C240200, // 0049 CALL R9 1 + 0x8C240D0A, // 004A GETMET R9 R6 K10 + 0x7C240200, // 004B CALL R9 1 + 0x8C28130B, // 004C GETMET R10 R9 K11 + 0x58300006, // 004D LDCONST R12 K6 + 0x88340D0C, // 004E GETMBR R13 R6 K12 + 0x58380006, // 004F LDCONST R14 K6 + 0x7C280800, // 0050 CALL R10 4 + 0x8C28130B, // 0051 GETMET R10 R9 K11 + 0x58300008, // 0052 LDCONST R12 K8 + 0x88340D0D, // 0053 GETMBR R13 R6 K13 + 0x5838000E, // 0054 LDCONST R14 K14 + 0x7C280800, // 0055 CALL R10 4 + 0x542A0004, // 0056 LDINT R10 5 + 0x900E0A0A, // 0057 SETMBR R3 K5 R10 + 0x88280115, // 0058 GETMBR R10 R0 K21 + 0x8C281516, // 0059 GETMET R10 R10 K22 + 0x5C300200, // 005A MOVE R12 R1 + 0x7C280400, // 005B CALL R10 2 + 0x80041200, // 005C RET 1 R9 + 0x7002024C, // 005D JMP #02AB + 0x5426003D, // 005E LDINT R9 62 + 0x1C240E09, // 005F EQ R9 R7 R9 + 0x782601BF, // 0060 JMPF R9 #0221 + 0x1C24110F, // 0061 EQ R9 R8 K15 + 0x7826001D, // 0062 JMPF R9 #0081 + 0x8C240507, // 0063 GETMET R9 R2 K7 + 0x582C0006, // 0064 LDCONST R11 K6 + 0x7C240400, // 0065 CALL R9 2 + 0x20281308, // 0066 NE R10 R9 K8 + 0x782A0006, // 0067 JMPF R10 #006F + 0x2028130F, // 0068 NE R10 R9 K15 + 0x782A0004, // 0069 JMPF R10 #006F + 0xB82A0400, // 006A GETNGBL R10 K2 + 0x88281518, // 006B GETMBR R10 R10 K24 + 0x900E2E0A, // 006C SETMBR R3 K23 R10 + 0x4C280000, // 006D LDNIL R10 + 0x80041400, // 006E RET 1 R10 + 0x8C280D0A, // 006F GETMET R10 R6 K10 + 0x7C280200, // 0070 CALL R10 1 + 0x8C2C150B, // 0071 GETMET R11 R10 K11 + 0x58340006, // 0072 LDCONST R13 K6 + 0x88380D19, // 0073 GETMBR R14 R6 K25 + 0x1C3C1308, // 0074 EQ R15 R9 K8 + 0x783E0003, // 0075 JMPF R15 #007A + 0xB83E0400, // 0076 GETNGBL R15 K2 + 0x8C3C1F1A, // 0077 GETMET R15 R15 K26 + 0x7C3C0200, // 0078 CALL R15 1 + 0x70020002, // 0079 JMP #007D + 0xB83E0400, // 007A GETNGBL R15 K2 + 0x8C3C1F1B, // 007B GETMET R15 R15 K27 + 0x7C3C0200, // 007C CALL R15 1 + 0x7C2C0800, // 007D CALL R11 4 + 0x900E0B11, // 007E SETMBR R3 K5 K17 + 0x80041400, // 007F RET 1 R10 + 0x7002019E, // 0080 JMP #0220 + 0x1C241106, // 0081 EQ R9 R8 K6 + 0x78260044, // 0082 JMPF R9 #00C8 + 0x8C240507, // 0083 GETMET R9 R2 K7 + 0x582C0006, // 0084 LDCONST R11 K6 + 0x7C240400, // 0085 CALL R9 2 + 0x6028000C, // 0086 GETGBL R10 G12 + 0x5C2C1200, // 0087 MOVE R11 R9 + 0x7C280200, // 0088 CALL R10 1 + 0x542E001F, // 0089 LDINT R11 32 + 0x2028140B, // 008A NE R10 R10 R11 + 0x782A0001, // 008B JMPF R10 #008E + 0x4C280000, // 008C LDNIL R10 + 0x80041400, // 008D RET 1 R10 + 0x900E0B08, // 008E SETMBR R3 K5 K8 + 0x8C280D0A, // 008F GETMET R10 R6 K10 + 0x7C280200, // 0090 CALL R10 1 + 0x8C2C150B, // 0091 GETMET R11 R10 K11 + 0x58340008, // 0092 LDCONST R13 K8 + 0x88380D19, // 0093 GETMBR R14 R6 K25 + 0xB83E0400, // 0094 GETNGBL R15 K2 + 0x8C3C1F1C, // 0095 GETMET R15 R15 K28 + 0x7C3C0200, // 0096 CALL R15 1 + 0x7C2C0800, // 0097 CALL R11 4 + 0x8C2C150B, // 0098 GETMET R11 R10 K11 + 0x5834000F, // 0099 LDCONST R13 K15 + 0x88380D1D, // 009A GETMBR R14 R6 K29 + 0x5C3C1200, // 009B MOVE R15 R9 + 0x7C2C0800, // 009C CALL R11 4 + 0x8C2C150B, // 009D GETMET R11 R10 K11 + 0x58340011, // 009E LDCONST R13 K17 + 0x88380D1E, // 009F GETMBR R14 R6 K30 + 0xB83E3E00, // 00A0 GETNGBL R15 K31 + 0x8C3C1F20, // 00A1 GETMET R15 R15 K32 + 0x7C3C0200, // 00A2 CALL R15 1 + 0x943C1F21, // 00A3 GETIDX R15 R15 K33 + 0x7C2C0800, // 00A4 CALL R11 4 + 0x8C2C1522, // 00A5 GETMET R11 R10 K34 + 0x7C2C0200, // 00A6 CALL R11 1 + 0x8C300323, // 00A7 GETMET R12 R1 K35 + 0x7C300200, // 00A8 CALL R12 1 + 0x0034160C, // 00A9 ADD R13 R11 R12 + 0xB83A3E00, // 00AA GETNGBL R14 K31 + 0x8C381D24, // 00AB GETMET R14 R14 K36 + 0x8C401B26, // 00AC GETMET R16 R13 K38 + 0x7C400200, // 00AD CALL R16 1 + 0x00424A10, // 00AE ADD R16 K37 R16 + 0x58440011, // 00AF LDCONST R17 K17 + 0x7C380600, // 00B0 CALL R14 3 + 0x8C380927, // 00B1 GETMET R14 R4 K39 + 0x7C380200, // 00B2 CALL R14 1 + 0x8C381D28, // 00B3 GETMET R14 R14 K40 + 0xB8420400, // 00B4 GETNGBL R16 K2 + 0x8C402129, // 00B5 GETMET R16 R16 K41 + 0x7C400200, // 00B6 CALL R16 1 + 0x5C441A00, // 00B7 MOVE R17 R13 + 0x7C380600, // 00B8 CALL R14 3 + 0x8C3C0D0A, // 00B9 GETMET R15 R6 K10 + 0x7C3C0200, // 00BA CALL R15 1 + 0x8C401F0B, // 00BB GETMET R16 R15 K11 + 0x58480006, // 00BC LDCONST R18 K6 + 0x884C0D19, // 00BD GETMBR R19 R6 K25 + 0x5C501600, // 00BE MOVE R20 R11 + 0x7C400800, // 00BF CALL R16 4 + 0x8C401F0B, // 00C0 GETMET R16 R15 K11 + 0x58480008, // 00C1 LDCONST R18 K8 + 0x884C0D1D, // 00C2 GETMBR R19 R6 K29 + 0x5C501C00, // 00C3 MOVE R20 R14 + 0x7C400800, // 00C4 CALL R16 4 + 0x900E0B08, // 00C5 SETMBR R3 K5 K8 + 0x80041E00, // 00C6 RET 1 R15 + 0x70020157, // 00C7 JMP #0220 + 0x54260003, // 00C8 LDINT R9 4 + 0x1C241009, // 00C9 EQ R9 R8 R9 + 0x78260040, // 00CA JMPF R9 #010C + 0x8C240507, // 00CB GETMET R9 R2 K7 + 0x582C0006, // 00CC LDCONST R11 K6 + 0x7C240400, // 00CD CALL R9 2 + 0x6028000C, // 00CE GETGBL R10 G12 + 0x5C2C1200, // 00CF MOVE R11 R9 + 0x7C280200, // 00D0 CALL R10 1 + 0x542E001F, // 00D1 LDINT R11 32 + 0x2028140B, // 00D2 NE R10 R10 R11 + 0x782A0001, // 00D3 JMPF R10 #00D6 + 0x4C280000, // 00D4 LDNIL R10 + 0x80041400, // 00D5 RET 1 R10 + 0x8C280507, // 00D6 GETMET R10 R2 K7 + 0x58300008, // 00D7 LDCONST R12 K8 + 0x50340000, // 00D8 LDBOOL R13 0 0 + 0x7C280600, // 00D9 CALL R10 3 + 0x8C2C032A, // 00DA GETMET R11 R1 K42 + 0x7C2C0200, // 00DB CALL R11 1 + 0x8C300D0A, // 00DC GETMET R12 R6 K10 + 0x7C300200, // 00DD CALL R12 1 + 0x8C34190B, // 00DE GETMET R13 R12 K11 + 0x583C0008, // 00DF LDCONST R15 K8 + 0x88400D19, // 00E0 GETMBR R16 R6 K25 + 0x5C441600, // 00E1 MOVE R17 R11 + 0x7C340800, // 00E2 CALL R13 4 + 0x8C34190B, // 00E3 GETMET R13 R12 K11 + 0x583C000F, // 00E4 LDCONST R15 K15 + 0x88400D1D, // 00E5 GETMBR R16 R6 K29 + 0x5C441200, // 00E6 MOVE R17 R9 + 0x7C340800, // 00E7 CALL R13 4 + 0x8C341922, // 00E8 GETMET R13 R12 K34 + 0x7C340200, // 00E9 CALL R13 1 + 0x8C380323, // 00EA GETMET R14 R1 K35 + 0x7C380200, // 00EB CALL R14 1 + 0x00381A0E, // 00EC ADD R14 R13 R14 + 0xB83E3E00, // 00ED GETNGBL R15 K31 + 0x8C3C1F24, // 00EE GETMET R15 R15 K36 + 0x8C441D26, // 00EF GETMET R17 R14 K38 + 0x7C440200, // 00F0 CALL R17 1 + 0x00465611, // 00F1 ADD R17 K43 R17 + 0x58480011, // 00F2 LDCONST R18 K17 + 0x7C3C0600, // 00F3 CALL R15 3 + 0x8C3C0927, // 00F4 GETMET R15 R4 K39 + 0x7C3C0200, // 00F5 CALL R15 1 + 0x8C3C1F28, // 00F6 GETMET R15 R15 K40 + 0xB8460400, // 00F7 GETNGBL R17 K2 + 0x8C442329, // 00F8 GETMET R17 R17 K41 + 0x7C440200, // 00F9 CALL R17 1 + 0x5C481C00, // 00FA MOVE R18 R14 + 0x7C3C0600, // 00FB CALL R15 3 + 0x8C400D0A, // 00FC GETMET R16 R6 K10 + 0x7C400200, // 00FD CALL R16 1 + 0x8C44210B, // 00FE GETMET R17 R16 K11 + 0x584C0006, // 00FF LDCONST R19 K6 + 0x88500D19, // 0100 GETMBR R20 R6 K25 + 0x5C541A00, // 0101 MOVE R21 R13 + 0x7C440800, // 0102 CALL R17 4 + 0x8C44210B, // 0103 GETMET R17 R16 K11 + 0x584C0008, // 0104 LDCONST R19 K8 + 0x88500D1D, // 0105 GETMBR R20 R6 K29 + 0x5C541E00, // 0106 MOVE R21 R15 + 0x7C440800, // 0107 CALL R17 4 + 0x54460004, // 0108 LDINT R17 5 + 0x900E0A11, // 0109 SETMBR R3 K5 R17 + 0x80042000, // 010A RET 1 R16 + 0x70020113, // 010B JMP #0220 + 0x5426000A, // 010C LDINT R9 11 + 0x1C241009, // 010D EQ R9 R8 R9 + 0x78260012, // 010E JMPF R9 #0122 + 0x8C240507, // 010F GETMET R9 R2 K7 + 0x582C0006, // 0110 LDCONST R11 K6 + 0x7C240400, // 0111 CALL R9 2 + 0x8C28032C, // 0112 GETMET R10 R1 K44 + 0x5C301200, // 0113 MOVE R12 R9 + 0x7C280400, // 0114 CALL R10 2 + 0xB82A3E00, // 0115 GETNGBL R10 K31 + 0x8C281524, // 0116 GETMET R10 R10 K36 + 0x8C301326, // 0117 GETMET R12 R9 K38 + 0x7C300200, // 0118 CALL R12 1 + 0x00325A0C, // 0119 ADD R12 K45 R12 + 0x58340011, // 011A LDCONST R13 K17 + 0x7C280600, // 011B CALL R10 3 + 0xB82A0400, // 011C GETNGBL R10 K2 + 0x8828152E, // 011D GETMBR R10 R10 K46 + 0x900E2E0A, // 011E SETMBR R3 K23 R10 + 0x4C280000, // 011F LDNIL R10 + 0x80041400, // 0120 RET 1 R10 + 0x700200FD, // 0121 JMP #0220 + 0x54260005, // 0122 LDINT R9 6 + 0x1C241009, // 0123 EQ R9 R8 R9 + 0x782600B2, // 0124 JMPF R9 #01D8 + 0x8C240507, // 0125 GETMET R9 R2 K7 + 0x582C0006, // 0126 LDCONST R11 K6 + 0x7C240400, // 0127 CALL R9 2 + 0x8C280507, // 0128 GETMET R10 R2 K7 + 0x58300008, // 0129 LDCONST R12 K8 + 0x7C280400, // 012A CALL R10 2 + 0x602C000C, // 012B GETGBL R11 G12 + 0x5C301400, // 012C MOVE R12 R10 + 0x7C2C0200, // 012D CALL R11 1 + 0x1C2C1706, // 012E EQ R11 R11 K6 + 0x782E0000, // 012F JMPF R11 #0131 + 0x4C280000, // 0130 LDNIL R10 + 0x8C2C0507, // 0131 GETMET R11 R2 K7 + 0x5834000F, // 0132 LDCONST R13 K15 + 0x7C2C0400, // 0133 CALL R11 2 + 0x8C300507, // 0134 GETMET R12 R2 K7 + 0x58380011, // 0135 LDCONST R14 K17 + 0x7C300400, // 0136 CALL R12 2 + 0x8C340507, // 0137 GETMET R13 R2 K7 + 0x543E0003, // 0138 LDINT R15 4 + 0x7C340400, // 0139 CALL R13 2 + 0x8C38032F, // 013A GETMET R14 R1 K47 + 0x7C380200, // 013B CALL R14 1 + 0x4C3C0000, // 013C LDNIL R15 + 0x1C381C0F, // 013D EQ R14 R14 R15 + 0x783A0006, // 013E JMPF R14 #0146 + 0xB83A3E00, // 013F GETNGBL R14 K31 + 0x8C381D24, // 0140 GETMET R14 R14 K36 + 0x58400030, // 0141 LDCONST R16 K48 + 0x5844000F, // 0142 LDCONST R17 K15 + 0x7C380600, // 0143 CALL R14 3 + 0x4C380000, // 0144 LDNIL R14 + 0x80041C00, // 0145 RET 1 R14 + 0x8C380331, // 0146 GETMET R14 R1 K49 0x5C401200, // 0147 MOVE R16 R9 - 0x7C340600, // 0148 CALL R13 3 - 0x8C340331, // 0149 GETMET R13 R1 K49 - 0x5C3C1400, // 014A MOVE R15 R10 - 0x7C340400, // 014B CALL R13 2 - 0x8C340332, // 014C GETMET R13 R1 K50 - 0x5C3C1600, // 014D MOVE R15 R11 + 0x5C441400, // 0148 MOVE R17 R10 + 0x7C380600, // 0149 CALL R14 3 + 0x8C380332, // 014A GETMET R14 R1 K50 + 0x5C401600, // 014B MOVE R16 R11 + 0x7C380400, // 014C CALL R14 2 + 0x8C380333, // 014D GETMET R14 R1 K51 0x5C401800, // 014E MOVE R16 R12 - 0x7C340600, // 014F CALL R13 3 - 0xB8360200, // 0150 GETNGBL R13 K1 - 0x88341B02, // 0151 GETMBR R13 R13 K2 - 0x8C341B33, // 0152 GETMET R13 R13 K51 - 0x5C3C1000, // 0153 MOVE R15 R8 - 0x7C340400, // 0154 CALL R13 2 - 0x8C381B34, // 0155 GETMET R14 R13 K52 - 0x54420005, // 0156 LDINT R16 6 - 0x7C380400, // 0157 CALL R14 2 - 0x8C3C1D06, // 0158 GETMET R15 R14 K6 - 0x54460014, // 0159 LDINT R17 21 - 0x7C3C0400, // 015A CALL R15 2 - 0x8C401D06, // 015B GETMET R16 R14 K6 - 0x544A0010, // 015C LDINT R18 17 - 0x7C400400, // 015D CALL R16 2 - 0x5C441E00, // 015E MOVE R17 R15 - 0x78460001, // 015F JMPF R17 #0162 - 0x5C442000, // 0160 MOVE R17 R16 - 0x74460006, // 0161 JMPT R17 #0169 - 0xB8463C00, // 0162 GETNGBL R17 K30 - 0x8C442323, // 0163 GETMET R17 R17 K35 - 0x584C0035, // 0164 LDCONST R19 K53 - 0x5850000E, // 0165 LDCONST R20 K14 - 0x7C440600, // 0166 CALL R17 3 - 0x50440000, // 0167 LDBOOL R17 0 0 - 0x80042200, // 0168 RET 1 R17 - 0x60440004, // 0169 GETGBL R17 G4 - 0x5C481E00, // 016A MOVE R18 R15 - 0x7C440200, // 016B CALL R17 1 - 0x1C442336, // 016C EQ R17 R17 K54 - 0x78460007, // 016D JMPF R17 #0176 - 0xB8466E00, // 016E GETNGBL R17 K55 - 0x8C442338, // 016F GETMET R17 R17 K56 - 0x5C4C1E00, // 0170 MOVE R19 R15 - 0x7C440400, // 0171 CALL R17 2 - 0x8C442339, // 0172 GETMET R17 R17 K57 - 0x7C440200, // 0173 CALL R17 1 - 0x5C3C2200, // 0174 MOVE R15 R17 - 0x70020002, // 0175 JMP #0179 - 0x8C441F39, // 0176 GETMET R17 R15 K57 - 0x7C440200, // 0177 CALL R17 1 - 0x5C3C2200, // 0178 MOVE R15 R17 - 0x60440004, // 0179 GETGBL R17 G4 - 0x5C482000, // 017A MOVE R18 R16 - 0x7C440200, // 017B CALL R17 1 - 0x1C442336, // 017C EQ R17 R17 K54 - 0x78460007, // 017D JMPF R17 #0186 - 0xB8466E00, // 017E GETNGBL R17 K55 - 0x8C442338, // 017F GETMET R17 R17 K56 - 0x5C4C2000, // 0180 MOVE R19 R16 - 0x7C440400, // 0181 CALL R17 2 - 0x8C442339, // 0182 GETMET R17 R17 K57 - 0x7C440200, // 0183 CALL R17 1 - 0x5C402200, // 0184 MOVE R16 R17 - 0x70020002, // 0185 JMP #0189 - 0x8C442139, // 0186 GETMET R17 R16 K57 - 0x7C440200, // 0187 CALL R17 1 - 0x5C402200, // 0188 MOVE R16 R17 - 0xB8460200, // 0189 GETNGBL R17 K1 - 0x88442302, // 018A GETMBR R17 R17 K2 - 0x8C442333, // 018B GETMET R17 R17 K51 - 0x8C4C032E, // 018C GETMET R19 R1 K46 - 0x7C4C0200, // 018D CALL R19 1 - 0x7C440400, // 018E CALL R17 2 - 0x8C442306, // 018F GETMET R17 R17 K6 - 0x544E0008, // 0190 LDINT R19 9 - 0x7C440400, // 0191 CALL R17 2 - 0x404A0F3A, // 0192 CONNECT R18 K7 K58 - 0x94442212, // 0193 GETIDX R17 R17 R18 - 0x604C0015, // 0194 GETGBL R19 G21 - 0x7C4C0000, // 0195 CALL R19 0 - 0x8C4C273B, // 0196 GETMET R19 R19 K59 - 0x5854003C, // 0197 LDCONST R21 K60 - 0x7C4C0400, // 0198 CALL R19 2 - 0x5C482600, // 0199 MOVE R18 R19 - 0x8C4C093D, // 019A GETMET R19 R4 K61 - 0x7C4C0200, // 019B CALL R19 1 - 0x8C501F3E, // 019C GETMET R20 R15 K62 - 0x7C500200, // 019D CALL R20 1 - 0x8C50293F, // 019E GETMET R20 R20 K63 - 0x7C500200, // 019F CALL R20 1 - 0x8C542740, // 01A0 GETMET R21 R19 K64 - 0x5C5C2200, // 01A1 MOVE R23 R17 - 0x5C602800, // 01A2 MOVE R24 R20 - 0x5C642400, // 01A3 MOVE R25 R18 - 0x546A0007, // 01A4 LDINT R26 8 - 0x7C540A00, // 01A5 CALL R21 5 - 0x8C580341, // 01A6 GETMET R22 R1 K65 - 0x5C601E00, // 01A7 MOVE R24 R15 + 0x5C441A00, // 014F MOVE R17 R13 + 0x7C380600, // 0150 CALL R14 3 + 0xB83A0400, // 0151 GETNGBL R14 K2 + 0x88381D03, // 0152 GETMBR R14 R14 K3 + 0x8C381D34, // 0153 GETMET R14 R14 K52 + 0x5C401200, // 0154 MOVE R16 R9 + 0x7C380400, // 0155 CALL R14 2 + 0x8C3C1D35, // 0156 GETMET R15 R14 K53 + 0x54460005, // 0157 LDINT R17 6 + 0x7C3C0400, // 0158 CALL R15 2 + 0x8C401F07, // 0159 GETMET R16 R15 K7 + 0x544A0014, // 015A LDINT R18 21 + 0x7C400400, // 015B CALL R16 2 + 0x8C441F07, // 015C GETMET R17 R15 K7 + 0x544E0010, // 015D LDINT R19 17 + 0x7C440400, // 015E CALL R17 2 + 0x5C482000, // 015F MOVE R18 R16 + 0x784A0001, // 0160 JMPF R18 #0163 + 0x5C482200, // 0161 MOVE R18 R17 + 0x744A0006, // 0162 JMPT R18 #016A + 0xB84A3E00, // 0163 GETNGBL R18 K31 + 0x8C482524, // 0164 GETMET R18 R18 K36 + 0x58500036, // 0165 LDCONST R20 K54 + 0x5854000F, // 0166 LDCONST R21 K15 + 0x7C480600, // 0167 CALL R18 3 + 0x50480000, // 0168 LDBOOL R18 0 0 + 0x80042400, // 0169 RET 1 R18 + 0x60480004, // 016A GETGBL R18 G4 + 0x5C4C2000, // 016B MOVE R19 R16 + 0x7C480200, // 016C CALL R18 1 + 0x1C482537, // 016D EQ R18 R18 K55 + 0x784A0007, // 016E JMPF R18 #0177 + 0xB84A7000, // 016F GETNGBL R18 K56 + 0x8C482539, // 0170 GETMET R18 R18 K57 + 0x5C502000, // 0171 MOVE R20 R16 + 0x7C480400, // 0172 CALL R18 2 + 0x8C48253A, // 0173 GETMET R18 R18 K58 + 0x7C480200, // 0174 CALL R18 1 + 0x5C402400, // 0175 MOVE R16 R18 + 0x70020002, // 0176 JMP #017A + 0x8C48213A, // 0177 GETMET R18 R16 K58 + 0x7C480200, // 0178 CALL R18 1 + 0x5C402400, // 0179 MOVE R16 R18 + 0x60480004, // 017A GETGBL R18 G4 + 0x5C4C2200, // 017B MOVE R19 R17 + 0x7C480200, // 017C CALL R18 1 + 0x1C482537, // 017D EQ R18 R18 K55 + 0x784A0007, // 017E JMPF R18 #0187 + 0xB84A7000, // 017F GETNGBL R18 K56 + 0x8C482539, // 0180 GETMET R18 R18 K57 + 0x5C502200, // 0181 MOVE R20 R17 + 0x7C480400, // 0182 CALL R18 2 + 0x8C48253A, // 0183 GETMET R18 R18 K58 + 0x7C480200, // 0184 CALL R18 1 + 0x5C442400, // 0185 MOVE R17 R18 + 0x70020002, // 0186 JMP #018A + 0x8C48233A, // 0187 GETMET R18 R17 K58 + 0x7C480200, // 0188 CALL R18 1 + 0x5C442400, // 0189 MOVE R17 R18 + 0xB84A0400, // 018A GETNGBL R18 K2 + 0x88482503, // 018B GETMBR R18 R18 K3 + 0x8C482534, // 018C GETMET R18 R18 K52 + 0x8C50032F, // 018D GETMET R20 R1 K47 + 0x7C500200, // 018E CALL R20 1 + 0x7C480400, // 018F CALL R18 2 + 0x8C482507, // 0190 GETMET R18 R18 K7 + 0x54520008, // 0191 LDINT R20 9 + 0x7C480400, // 0192 CALL R18 2 + 0x404E113B, // 0193 CONNECT R19 K8 K59 + 0x94482413, // 0194 GETIDX R18 R18 R19 + 0x60500015, // 0195 GETGBL R20 G21 + 0x7C500000, // 0196 CALL R20 0 + 0x8C50293C, // 0197 GETMET R20 R20 K60 + 0x5858003D, // 0198 LDCONST R22 K61 + 0x7C500400, // 0199 CALL R20 2 + 0x5C4C2800, // 019A MOVE R19 R20 + 0x8C50093E, // 019B GETMET R20 R4 K62 + 0x7C500200, // 019C CALL R20 1 + 0x8C54213F, // 019D GETMET R21 R16 K63 + 0x7C540200, // 019E CALL R21 1 + 0x8C542B40, // 019F GETMET R21 R21 K64 + 0x7C540200, // 01A0 CALL R21 1 + 0x8C582941, // 01A1 GETMET R22 R20 K65 + 0x5C602400, // 01A2 MOVE R24 R18 + 0x5C642A00, // 01A3 MOVE R25 R21 + 0x5C682600, // 01A4 MOVE R26 R19 + 0x546E0007, // 01A5 LDINT R27 8 + 0x7C580A00, // 01A6 CALL R22 5 + 0x8C5C0342, // 01A7 GETMET R23 R1 K66 0x5C642000, // 01A8 MOVE R25 R16 - 0x5C682A00, // 01A9 MOVE R26 R21 - 0x7C580800, // 01AA CALL R22 4 - 0x8C580342, // 01AB GETMET R22 R1 K66 - 0x7C580200, // 01AC CALL R22 1 - 0x8C580343, // 01AD GETMET R22 R1 K67 - 0x7C580200, // 01AE CALL R22 1 - 0x88580114, // 01AF GETMBR R22 R0 K20 - 0x8C582D44, // 01B0 GETMET R22 R22 K68 - 0x5C600200, // 01B1 MOVE R24 R1 - 0x7C580400, // 01B2 CALL R22 2 - 0xB85A3C00, // 01B3 GETNGBL R22 K30 - 0x8C582D23, // 01B4 GETMET R22 R22 K35 - 0x58600045, // 01B5 LDCONST R24 K69 - 0x58640010, // 01B6 LDCONST R25 K16 - 0x7C580600, // 01B7 CALL R22 3 - 0xB85A3C00, // 01B8 GETNGBL R22 K30 - 0x8C582D23, // 01B9 GETMET R22 R22 K35 - 0xB8620200, // 01BA GETNGBL R24 K1 - 0x8C603147, // 01BB GETMET R24 R24 K71 - 0x88680348, // 01BC GETMBR R26 R1 K72 - 0x7C600400, // 01BD CALL R24 2 - 0x00628C18, // 01BE ADD R24 K70 R24 - 0x58640010, // 01BF LDCONST R25 K16 - 0x7C580600, // 01C0 CALL R22 3 - 0xB85A3C00, // 01C1 GETNGBL R22 K30 - 0x8C582D23, // 01C2 GETMET R22 R22 K35 - 0x58600045, // 01C3 LDCONST R24 K69 - 0x58640010, // 01C4 LDCONST R25 K16 - 0x7C580600, // 01C5 CALL R22 3 - 0x8C580B09, // 01C6 GETMET R22 R5 K9 - 0x7C580200, // 01C7 CALL R22 1 - 0x8C5C2D0A, // 01C8 GETMET R23 R22 K10 - 0x58640005, // 01C9 LDCONST R25 K5 - 0x88680B0B, // 01CA GETMBR R26 R5 K11 - 0xB86E0200, // 01CB GETNGBL R27 K1 - 0x886C372D, // 01CC GETMBR R27 R27 K45 - 0x7C5C0800, // 01CD CALL R23 4 - 0x8C5C2D0A, // 01CE GETMET R23 R22 K10 - 0x58640007, // 01CF LDCONST R25 K7 - 0x88680B0B, // 01D0 GETMBR R26 R5 K11 - 0x586C0007, // 01D1 LDCONST R27 K7 - 0x7C5C0800, // 01D2 CALL R23 4 - 0x545E0007, // 01D3 LDINT R23 8 - 0x900E0817, // 01D4 SETMBR R3 K4 R23 - 0x80042C00, // 01D5 RET 1 R22 - 0x7002003B, // 01D6 JMP #0213 - 0x54220008, // 01D7 LDINT R8 9 - 0x1C200E08, // 01D8 EQ R8 R7 R8 - 0x7822000B, // 01D9 JMPF R8 #01E6 - 0x8C200506, // 01DA GETMET R8 R2 K6 - 0x58280005, // 01DB LDCONST R10 K5 - 0x7C200400, // 01DC CALL R8 2 - 0x8C240349, // 01DD GETMET R9 R1 K73 - 0x5C2C1000, // 01DE MOVE R11 R8 - 0x7C240400, // 01DF CALL R9 2 - 0xB8260200, // 01E0 GETNGBL R9 K1 - 0x8824132D, // 01E1 GETMBR R9 R9 K45 - 0x900E2C09, // 01E2 SETMBR R3 K22 R9 - 0x4C240000, // 01E3 LDNIL R9 - 0x80041200, // 01E4 RET 1 R9 - 0x7002002C, // 01E5 JMP #0213 - 0x54220009, // 01E6 LDINT R8 10 - 0x1C200E08, // 01E7 EQ R8 R7 R8 - 0x78220029, // 01E8 JMPF R8 #0213 - 0x8C200506, // 01E9 GETMET R8 R2 K6 - 0x58280005, // 01EA LDCONST R10 K5 - 0x7C200400, // 01EB CALL R8 2 - 0x88240114, // 01EC GETMBR R9 R0 K20 - 0x8824134A, // 01ED GETMBR R9 R9 K74 - 0x8C24134B, // 01EE GETMET R9 R9 K75 - 0x7C240200, // 01EF CALL R9 1 - 0x28281107, // 01F0 GE R10 R8 K7 - 0x782A001B, // 01F1 JMPF R10 #020E - 0x6028000C, // 01F2 GETGBL R10 G12 - 0x5C2C1200, // 01F3 MOVE R11 R9 - 0x7C280200, // 01F4 CALL R10 1 - 0x1828100A, // 01F5 LE R10 R8 R10 - 0x782A0016, // 01F6 JMPF R10 #020E - 0x04281107, // 01F7 SUB R10 R8 K7 - 0x9428120A, // 01F8 GETIDX R10 R9 R10 - 0xB82E3C00, // 01F9 GETNGBL R11 K30 - 0x8C2C1723, // 01FA GETMET R11 R11 K35 - 0x8C34034D, // 01FB GETMET R13 R1 K77 - 0x7C340200, // 01FC CALL R13 1 - 0x8C341B3E, // 01FD GETMET R13 R13 K62 - 0x7C340200, // 01FE CALL R13 1 - 0x8C341B3F, // 01FF GETMET R13 R13 K63 - 0x7C340200, // 0200 CALL R13 1 - 0x8C341B25, // 0201 GETMET R13 R13 K37 - 0x7C340200, // 0202 CALL R13 1 - 0x0036980D, // 0203 ADD R13 K76 R13 - 0x7C2C0400, // 0204 CALL R11 2 - 0x882C0114, // 0205 GETMBR R11 R0 K20 - 0x882C174A, // 0206 GETMBR R11 R11 K74 - 0x8C2C174E, // 0207 GETMET R11 R11 K78 - 0x7C2C0200, // 0208 CALL R11 1 - 0x882C0114, // 0209 GETMBR R11 R0 K20 - 0x882C174A, // 020A GETMBR R11 R11 K74 - 0x8C2C174F, // 020B GETMET R11 R11 K79 - 0x7C2C0200, // 020C CALL R11 1 - 0x7001FFFF, // 020D JMP #020E - 0xB82A0200, // 020E GETNGBL R10 K1 - 0x8828152D, // 020F GETMBR R10 R10 K45 - 0x900E2C0A, // 0210 SETMBR R3 K22 R10 - 0x4C280000, // 0211 LDNIL R10 - 0x80041400, // 0212 RET 1 R10 - 0x70020006, // 0213 JMP #021B - 0x54220029, // 0214 LDINT R8 42 - 0x1C200C08, // 0215 EQ R8 R6 R8 - 0x78220003, // 0216 JMPF R8 #021B - 0x1C200F05, // 0217 EQ R8 R7 K5 - 0x78220001, // 0218 JMPF R8 #021B - 0x50200200, // 0219 LDBOOL R8 1 0 - 0x80041000, // 021A RET 1 R8 - 0x80000000, // 021B RET 0 + 0x5C682200, // 01A9 MOVE R26 R17 + 0x5C6C2C00, // 01AA MOVE R27 R22 + 0x7C5C0800, // 01AB CALL R23 4 + 0x8C5C0343, // 01AC GETMET R23 R1 K67 + 0x7C5C0200, // 01AD CALL R23 1 + 0x8C5C0344, // 01AE GETMET R23 R1 K68 + 0x7C5C0200, // 01AF CALL R23 1 + 0x885C0115, // 01B0 GETMBR R23 R0 K21 + 0x8C5C2F45, // 01B1 GETMET R23 R23 K69 + 0x5C640200, // 01B2 MOVE R25 R1 + 0x7C5C0400, // 01B3 CALL R23 2 + 0xB85E3E00, // 01B4 GETNGBL R23 K31 + 0x8C5C2F24, // 01B5 GETMET R23 R23 K36 + 0x58640046, // 01B6 LDCONST R25 K70 + 0x58680011, // 01B7 LDCONST R26 K17 + 0x7C5C0600, // 01B8 CALL R23 3 + 0xB85E3E00, // 01B9 GETNGBL R23 K31 + 0x8C5C2F24, // 01BA GETMET R23 R23 K36 + 0xB8660400, // 01BB GETNGBL R25 K2 + 0x8C643348, // 01BC GETMET R25 R25 K72 + 0x886C0349, // 01BD GETMBR R27 R1 K73 + 0x7C640400, // 01BE CALL R25 2 + 0x00668E19, // 01BF ADD R25 K71 R25 + 0x58680011, // 01C0 LDCONST R26 K17 + 0x7C5C0600, // 01C1 CALL R23 3 + 0xB85E3E00, // 01C2 GETNGBL R23 K31 + 0x8C5C2F24, // 01C3 GETMET R23 R23 K36 + 0x58640046, // 01C4 LDCONST R25 K70 + 0x58680011, // 01C5 LDCONST R26 K17 + 0x7C5C0600, // 01C6 CALL R23 3 + 0x8C5C0D0A, // 01C7 GETMET R23 R6 K10 + 0x7C5C0200, // 01C8 CALL R23 1 + 0x8C602F0B, // 01C9 GETMET R24 R23 K11 + 0x58680006, // 01CA LDCONST R26 K6 + 0x886C0D0C, // 01CB GETMBR R27 R6 K12 + 0xB8720400, // 01CC GETNGBL R28 K2 + 0x8870392E, // 01CD GETMBR R28 R28 K46 + 0x7C600800, // 01CE CALL R24 4 + 0x8C602F0B, // 01CF GETMET R24 R23 K11 + 0x58680008, // 01D0 LDCONST R26 K8 + 0x886C0D0C, // 01D1 GETMBR R27 R6 K12 + 0x58700008, // 01D2 LDCONST R28 K8 + 0x7C600800, // 01D3 CALL R24 4 + 0x54620007, // 01D4 LDINT R24 8 + 0x900E0A18, // 01D5 SETMBR R3 K5 R24 + 0x80042E00, // 01D6 RET 1 R23 + 0x70020047, // 01D7 JMP #0220 + 0x54260008, // 01D8 LDINT R9 9 + 0x1C241009, // 01D9 EQ R9 R8 R9 + 0x7826000B, // 01DA JMPF R9 #01E7 + 0x8C240507, // 01DB GETMET R9 R2 K7 + 0x582C0006, // 01DC LDCONST R11 K6 + 0x7C240400, // 01DD CALL R9 2 + 0x8C28034A, // 01DE GETMET R10 R1 K74 + 0x5C301200, // 01DF MOVE R12 R9 + 0x7C280400, // 01E0 CALL R10 2 + 0xB82A0400, // 01E1 GETNGBL R10 K2 + 0x8828152E, // 01E2 GETMBR R10 R10 K46 + 0x900E2E0A, // 01E3 SETMBR R3 K23 R10 + 0x4C280000, // 01E4 LDNIL R10 + 0x80041400, // 01E5 RET 1 R10 + 0x70020038, // 01E6 JMP #0220 + 0x54260009, // 01E7 LDINT R9 10 + 0x1C241009, // 01E8 EQ R9 R8 R9 + 0x78260035, // 01E9 JMPF R9 #0220 + 0x8C240507, // 01EA GETMET R9 R2 K7 + 0x582C0006, // 01EB LDCONST R11 K6 + 0x7C240400, // 01EC CALL R9 2 + 0x60280010, // 01ED GETGBL R10 G16 + 0x882C0115, // 01EE GETMBR R11 R0 K21 + 0x882C174B, // 01EF GETMBR R11 R11 K75 + 0x8C2C174C, // 01F0 GETMET R11 R11 K76 + 0x7C2C0200, // 01F1 CALL R11 1 + 0x7C280200, // 01F2 CALL R10 1 + 0xA802001A, // 01F3 EXBLK 0 #020F + 0x5C2C1400, // 01F4 MOVE R11 R10 + 0x7C2C0000, // 01F5 CALL R11 0 + 0x8C30174D, // 01F6 GETMET R12 R11 K77 + 0x7C300200, // 01F7 CALL R12 1 + 0x1C301809, // 01F8 EQ R12 R12 R9 + 0x78320011, // 01F9 JMPF R12 #020C + 0xB8323E00, // 01FA GETNGBL R12 K31 + 0x8C301924, // 01FB GETMET R12 R12 K36 + 0x8C38174F, // 01FC GETMET R14 R11 K79 + 0x7C380200, // 01FD CALL R14 1 + 0x8C381D3F, // 01FE GETMET R14 R14 K63 + 0x7C380200, // 01FF CALL R14 1 + 0x8C381D40, // 0200 GETMET R14 R14 K64 + 0x7C380200, // 0201 CALL R14 1 + 0x8C381D26, // 0202 GETMET R14 R14 K38 + 0x7C380200, // 0203 CALL R14 1 + 0x003A9C0E, // 0204 ADD R14 K78 R14 + 0x583C000F, // 0205 LDCONST R15 K15 + 0x7C300600, // 0206 CALL R12 3 + 0x88300115, // 0207 GETMBR R12 R0 K21 + 0x8C301950, // 0208 GETMET R12 R12 K80 + 0x5C381600, // 0209 MOVE R14 R11 + 0x7C300400, // 020A CALL R12 2 + 0x70020000, // 020B JMP #020D + 0x7001FFE6, // 020C JMP #01F4 + 0xA8040001, // 020D EXBLK 1 1 + 0x70020002, // 020E JMP #0212 + 0x58280051, // 020F LDCONST R10 K81 + 0xAC280200, // 0210 CATCH R10 1 0 + 0xB0080000, // 0211 RAISE 2 R0 R0 + 0xB82A3E00, // 0212 GETNGBL R10 K31 + 0x8C281524, // 0213 GETMET R10 R10 K36 + 0x60300008, // 0214 GETGBL R12 G8 + 0x5C341200, // 0215 MOVE R13 R9 + 0x7C300200, // 0216 CALL R12 1 + 0x0032A40C, // 0217 ADD R12 K82 R12 + 0x00301953, // 0218 ADD R12 R12 K83 + 0x5834000F, // 0219 LDCONST R13 K15 + 0x7C280600, // 021A CALL R10 3 + 0xB82A0400, // 021B GETNGBL R10 K2 + 0x8828152E, // 021C GETMBR R10 R10 K46 + 0x900E2E0A, // 021D SETMBR R3 K23 R10 + 0x4C280000, // 021E LDNIL R10 + 0x80041400, // 021F RET 1 R10 + 0x70020089, // 0220 JMP #02AB + 0x5426003B, // 0221 LDINT R9 60 + 0x1C240E09, // 0222 EQ R9 R7 R9 + 0x7826007F, // 0223 JMPF R9 #02A4 + 0x1C241106, // 0224 EQ R9 R8 K6 + 0x78260061, // 0225 JMPF R9 #0288 + 0x8C240507, // 0226 GETMET R9 R2 K7 + 0x582C0006, // 0227 LDCONST R11 K6 + 0x7C240400, // 0228 CALL R9 2 + 0x8C280507, // 0229 GETMET R10 R2 K7 + 0x58300008, // 022A LDCONST R12 K8 + 0x7C280400, // 022B CALL R10 2 + 0x8C2C0507, // 022C GETMET R11 R2 K7 + 0x5834000F, // 022D LDCONST R13 K15 + 0x7C2C0400, // 022E CALL R11 2 + 0x8C300507, // 022F GETMET R12 R2 K7 + 0x58380011, // 0230 LDCONST R14 K17 + 0x7C300400, // 0231 CALL R12 2 + 0x8C340507, // 0232 GETMET R13 R2 K7 + 0x543E0003, // 0233 LDINT R15 4 + 0x7C340400, // 0234 CALL R13 2 + 0xB83A3E00, // 0235 GETNGBL R14 K31 + 0x8C381D24, // 0236 GETMET R14 R14 K36 + 0x8C400B54, // 0237 GETMET R16 R5 K84 + 0x58480055, // 0238 LDCONST R18 K85 + 0x5C4C1200, // 0239 MOVE R19 R9 + 0x8C501526, // 023A GETMET R20 R10 K38 + 0x7C500200, // 023B CALL R20 1 + 0x5C541600, // 023C MOVE R21 R11 + 0x5C581800, // 023D MOVE R22 R12 + 0x8C5C1B26, // 023E GETMET R23 R13 K38 + 0x7C5C0200, // 023F CALL R23 1 + 0x7C400E00, // 0240 CALL R16 7 + 0x5844000F, // 0241 LDCONST R17 K15 + 0x7C380600, // 0242 CALL R14 3 + 0x4C380000, // 0243 LDNIL R14 + 0x1C38120E, // 0244 EQ R14 R9 R14 + 0x743A000B, // 0245 JMPT R14 #0252 + 0x4C380000, // 0246 LDNIL R14 + 0x1C38140E, // 0247 EQ R14 R10 R14 + 0x743A0008, // 0248 JMPT R14 #0252 + 0x4C380000, // 0249 LDNIL R14 + 0x1C38160E, // 024A EQ R14 R11 R14 + 0x743A0005, // 024B JMPT R14 #0252 + 0x4C380000, // 024C LDNIL R14 + 0x1C38180E, // 024D EQ R14 R12 R14 + 0x743A0002, // 024E JMPT R14 #0252 + 0x4C380000, // 024F LDNIL R14 + 0x1C381A0E, // 0250 EQ R14 R13 R14 + 0x783A0004, // 0251 JMPF R14 #0257 + 0xB83A0400, // 0252 GETNGBL R14 K2 + 0x88381D56, // 0253 GETMBR R14 R14 K86 + 0x900E2E0E, // 0254 SETMBR R3 K23 R14 + 0x4C380000, // 0255 LDNIL R14 + 0x80041C00, // 0256 RET 1 R14 + 0x6038000C, // 0257 GETGBL R14 G12 + 0x5C3C1400, // 0258 MOVE R15 R10 + 0x7C380200, // 0259 CALL R14 1 + 0x543E001F, // 025A LDINT R15 32 + 0x54420040, // 025B LDINT R16 65 + 0x003C1E10, // 025C ADD R15 R15 R16 + 0x20381C0F, // 025D NE R14 R14 R15 + 0x743A000B, // 025E JMPT R14 #026B + 0x6038000C, // 025F GETGBL R14 G12 + 0x5C3C1A00, // 0260 MOVE R15 R13 + 0x7C380200, // 0261 CALL R14 1 + 0x543E000F, // 0262 LDINT R15 16 + 0x14381C0F, // 0263 LT R14 R14 R15 + 0x743A0005, // 0264 JMPT R14 #026B + 0x6038000C, // 0265 GETGBL R14 G12 + 0x5C3C1A00, // 0266 MOVE R15 R13 + 0x7C380200, // 0267 CALL R14 1 + 0x543E001F, // 0268 LDINT R15 32 + 0x24381C0F, // 0269 GT R14 R14 R15 + 0x783A0008, // 026A JMPF R14 #0274 + 0xB83A3E00, // 026B GETNGBL R14 K31 + 0x8C381D24, // 026C GETMET R14 R14 K36 + 0x58400057, // 026D LDCONST R16 K87 + 0x7C380400, // 026E CALL R14 2 + 0xB83A0400, // 026F GETNGBL R14 K2 + 0x88381D58, // 0270 GETMBR R14 R14 K88 + 0x900E2E0E, // 0271 SETMBR R3 K23 R14 + 0x4C380000, // 0272 LDNIL R14 + 0x80041C00, // 0273 RET 1 R14 + 0x543A001E, // 0274 LDINT R14 31 + 0x403A0C0E, // 0275 CONNECT R14 K6 R14 + 0x9438140E, // 0276 GETIDX R14 R10 R14 + 0x543E001F, // 0277 LDINT R15 32 + 0x403C1F3B, // 0278 CONNECT R15 R15 K59 + 0x943C140F, // 0279 GETIDX R15 R10 R15 + 0x88400115, // 027A GETMBR R16 R0 K21 + 0x8C402159, // 027B GETMET R16 R16 K89 + 0x5C481200, // 027C MOVE R18 R9 + 0x5C4C1800, // 027D MOVE R19 R12 + 0x5C501600, // 027E MOVE R20 R11 + 0x5C541A00, // 027F MOVE R21 R13 + 0x5C581C00, // 0280 MOVE R22 R14 + 0x5C5C1E00, // 0281 MOVE R23 R15 + 0x8C60035A, // 0282 GETMET R24 R1 K90 + 0x7C600200, // 0283 CALL R24 1 + 0x7C401000, // 0284 CALL R16 8 + 0x50400200, // 0285 LDBOOL R16 1 0 + 0x80042000, // 0286 RET 1 R16 + 0x7002001A, // 0287 JMP #02A3 + 0x1C241108, // 0288 EQ R9 R8 K8 + 0x78260011, // 0289 JMPF R9 #029C + 0x8C240507, // 028A GETMET R9 R2 K7 + 0x582C0006, // 028B LDCONST R11 K6 + 0x7C240400, // 028C CALL R9 2 + 0xB82A3E00, // 028D GETNGBL R10 K31 + 0x8C281524, // 028E GETMET R10 R10 K36 + 0x60300008, // 028F GETGBL R12 G8 + 0x5C341200, // 0290 MOVE R13 R9 + 0x7C300200, // 0291 CALL R12 1 + 0x0032B60C, // 0292 ADD R12 K91 R12 + 0x5834000F, // 0293 LDCONST R13 K15 + 0x7C280600, // 0294 CALL R10 3 + 0x88280115, // 0295 GETMBR R10 R0 K21 + 0x8C28155C, // 0296 GETMET R10 R10 K92 + 0x5C301200, // 0297 MOVE R12 R9 + 0x7C280400, // 0298 CALL R10 2 + 0x50280200, // 0299 LDBOOL R10 1 0 + 0x80041400, // 029A RET 1 R10 + 0x70020006, // 029B JMP #02A3 + 0x1C24110F, // 029C EQ R9 R8 K15 + 0x78260004, // 029D JMPF R9 #02A3 + 0x88240115, // 029E GETMBR R9 R0 K21 + 0x8C24135D, // 029F GETMET R9 R9 K93 + 0x7C240200, // 02A0 CALL R9 1 + 0x50240200, // 02A1 LDBOOL R9 1 0 + 0x80041200, // 02A2 RET 1 R9 + 0x70020006, // 02A3 JMP #02AB + 0x54260029, // 02A4 LDINT R9 42 + 0x1C240E09, // 02A5 EQ R9 R7 R9 + 0x78260003, // 02A6 JMPF R9 #02AB + 0x1C241106, // 02A7 EQ R9 R8 K6 + 0x78260001, // 02A8 JMPF R9 #02AB + 0x50240200, // 02A9 LDBOOL R9 1 0 + 0x80041200, // 02AA RET 1 R9 + 0x80000000, // 02AB RET 0 }) ) ); @@ -1842,8 +2067,11 @@ be_local_class(Matter_Plugin_Root, be_const_int(4), })) ) } )) }, { be_const_key_int(60, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(0, + be_const_list( * be_nested_list(3, ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(2), })) ) } )) }, { be_const_key_int(43, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(2, @@ -1891,7 +2119,7 @@ be_local_class(Matter_Plugin_Root, be_const_int(5), })) ) } )) }, { be_const_key_int(40, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(12, + be_const_list( * be_nested_list(13, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), be_const_int(1), @@ -1903,6 +2131,7 @@ be_local_class(Matter_Plugin_Root, be_const_int(7), be_const_int(8), be_const_int(9), + be_const_int(15), be_const_int(18), be_const_int(19), })) ) } )) }, diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h index 3368c3f89..9cc91c045 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h @@ -7,11 +7,11 @@ extern const bclass be_class_Matter_Fabric; /******************************************************************** -** Solidified function: tojson +** Solidified function: get_newest_session ********************************************************************/ -be_local_closure(Matter_Fabric_tojson, /* name */ +be_local_closure(Matter_Fabric_get_newest_session, /* name */ be_nested_proto( - 18, /* nstack */ + 4, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -19,154 +19,84 @@ be_local_closure(Matter_Fabric_tojson, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(introspect), - /* K3 */ be_nested_str_weak(members), - /* K4 */ be_nested_str_weak(get), - /* K5 */ be_nested_str_weak(function), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(_), - /* K8 */ be_nested_str_weak(push), - /* K9 */ be_nested_str_weak(stop_iteration), - /* K10 */ be_nested_str_weak(matter), - /* K11 */ be_nested_str_weak(sort), - /* K12 */ be_nested_str_weak(_X24_X24), - /* K13 */ be_nested_str_weak(tob64), - /* K14 */ be_nested_str_weak(format), - /* K15 */ be_nested_str_weak(_X25s_X3A_X25s), - /* K16 */ be_nested_str_weak(dump), - /* K17 */ be_nested_str_weak(_sessions), - /* K18 */ be_nested_str_weak(persistables), - /* K19 */ be_nested_str_weak(tojson), - /* K20 */ be_nested_str_weak(_X5B), - /* K21 */ be_nested_str_weak(concat), - /* K22 */ be_nested_str_weak(_X2C), - /* K23 */ be_nested_str_weak(_X5D), - /* K24 */ be_nested_str_weak(_X22_sessions_X22_X3A), - /* K25 */ be_nested_str_weak(_X7B), - /* K26 */ be_nested_str_weak(_X7D), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(get_old_recent_session), }), - be_str_weak(tojson), + be_str_weak(get_newest_session), &be_const_str_solidified, - ( &(const binstruction[116]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA40E0400, // 0002 IMPORT R3 K2 - 0x60100012, // 0003 GETGBL R4 G18 - 0x7C100000, // 0004 CALL R4 0 - 0x60140010, // 0005 GETGBL R5 G16 - 0x8C180703, // 0006 GETMET R6 R3 K3 - 0x5C200000, // 0007 MOVE R8 R0 - 0x7C180400, // 0008 CALL R6 2 - 0x7C140200, // 0009 CALL R5 1 - 0xA8020011, // 000A EXBLK 0 #001D - 0x5C180A00, // 000B MOVE R6 R5 - 0x7C180000, // 000C CALL R6 0 - 0x8C1C0704, // 000D GETMET R7 R3 K4 - 0x5C240000, // 000E MOVE R9 R0 - 0x5C280C00, // 000F MOVE R10 R6 - 0x7C1C0600, // 0010 CALL R7 3 - 0x60200004, // 0011 GETGBL R8 G4 - 0x5C240E00, // 0012 MOVE R9 R7 - 0x7C200200, // 0013 CALL R8 1 - 0x20201105, // 0014 NE R8 R8 K5 - 0x78220005, // 0015 JMPF R8 #001C - 0x94200D06, // 0016 GETIDX R8 R6 K6 - 0x20201107, // 0017 NE R8 R8 K7 - 0x78220002, // 0018 JMPF R8 #001C - 0x8C200908, // 0019 GETMET R8 R4 K8 - 0x5C280C00, // 001A MOVE R10 R6 - 0x7C200400, // 001B CALL R8 2 - 0x7001FFED, // 001C JMP #000B - 0x58140009, // 001D LDCONST R5 K9 - 0xAC140200, // 001E CATCH R5 1 0 - 0xB0080000, // 001F RAISE 2 R0 R0 - 0xB8161400, // 0020 GETNGBL R5 K10 - 0x8C140B0B, // 0021 GETMET R5 R5 K11 - 0x5C1C0800, // 0022 MOVE R7 R4 - 0x7C140400, // 0023 CALL R5 2 - 0x5C100A00, // 0024 MOVE R4 R5 - 0x60140012, // 0025 GETGBL R5 G18 - 0x7C140000, // 0026 CALL R5 0 - 0x60180010, // 0027 GETGBL R6 G16 - 0x5C1C0800, // 0028 MOVE R7 R4 - 0x7C180200, // 0029 CALL R6 1 - 0xA8020020, // 002A EXBLK 0 #004C - 0x5C1C0C00, // 002B MOVE R7 R6 - 0x7C1C0000, // 002C CALL R7 0 - 0x8C200704, // 002D GETMET R8 R3 K4 - 0x5C280000, // 002E MOVE R10 R0 - 0x5C2C0E00, // 002F MOVE R11 R7 - 0x7C200600, // 0030 CALL R8 3 - 0x4C240000, // 0031 LDNIL R9 - 0x1C241009, // 0032 EQ R9 R8 R9 - 0x78260000, // 0033 JMPF R9 #0035 - 0x7001FFF5, // 0034 JMP #002B - 0x6024000F, // 0035 GETGBL R9 G15 - 0x5C281000, // 0036 MOVE R10 R8 - 0x602C0015, // 0037 GETGBL R11 G21 - 0x7C240400, // 0038 CALL R9 2 - 0x78260003, // 0039 JMPF R9 #003E - 0x8C24110D, // 003A GETMET R9 R8 K13 - 0x7C240200, // 003B CALL R9 1 - 0x00261809, // 003C ADD R9 K12 R9 - 0x5C201200, // 003D MOVE R8 R9 - 0x8C240B08, // 003E GETMET R9 R5 K8 - 0x8C2C050E, // 003F GETMET R11 R2 K14 - 0x5834000F, // 0040 LDCONST R13 K15 - 0x8C380310, // 0041 GETMET R14 R1 K16 - 0x60400008, // 0042 GETGBL R16 G8 - 0x5C440E00, // 0043 MOVE R17 R7 - 0x7C400200, // 0044 CALL R16 1 - 0x7C380400, // 0045 CALL R14 2 - 0x8C3C0310, // 0046 GETMET R15 R1 K16 - 0x5C441000, // 0047 MOVE R17 R8 - 0x7C3C0400, // 0048 CALL R15 2 - 0x7C2C0800, // 0049 CALL R11 4 - 0x7C240400, // 004A CALL R9 2 - 0x7001FFDE, // 004B JMP #002B - 0x58180009, // 004C LDCONST R6 K9 - 0xAC180200, // 004D CATCH R6 1 0 - 0xB0080000, // 004E RAISE 2 R0 R0 - 0x60180012, // 004F GETGBL R6 G18 - 0x7C180000, // 0050 CALL R6 0 - 0x601C0010, // 0051 GETGBL R7 G16 - 0x88200111, // 0052 GETMBR R8 R0 K17 - 0x8C201112, // 0053 GETMET R8 R8 K18 - 0x7C200200, // 0054 CALL R8 1 - 0x7C1C0200, // 0055 CALL R7 1 - 0xA8020006, // 0056 EXBLK 0 #005E - 0x5C200E00, // 0057 MOVE R8 R7 - 0x7C200000, // 0058 CALL R8 0 - 0x8C240D08, // 0059 GETMET R9 R6 K8 - 0x8C2C1113, // 005A GETMET R11 R8 K19 - 0x7C2C0200, // 005B CALL R11 1 - 0x7C240400, // 005C CALL R9 2 - 0x7001FFF8, // 005D JMP #0057 - 0x581C0009, // 005E LDCONST R7 K9 - 0xAC1C0200, // 005F CATCH R7 1 0 - 0xB0080000, // 0060 RAISE 2 R0 R0 - 0x601C000C, // 0061 GETGBL R7 G12 - 0x5C200C00, // 0062 MOVE R8 R6 - 0x7C1C0200, // 0063 CALL R7 1 - 0x241C0F06, // 0064 GT R7 R7 K6 - 0x781E0007, // 0065 JMPF R7 #006E - 0x8C1C0D15, // 0066 GETMET R7 R6 K21 - 0x58240016, // 0067 LDCONST R9 K22 - 0x7C1C0400, // 0068 CALL R7 2 - 0x001E2807, // 0069 ADD R7 K20 R7 - 0x001C0F17, // 006A ADD R7 R7 K23 - 0x8C200B08, // 006B GETMET R8 R5 K8 - 0x002A3007, // 006C ADD R10 K24 R7 - 0x7C200400, // 006D CALL R8 2 - 0x8C1C0B15, // 006E GETMET R7 R5 K21 - 0x58240016, // 006F LDCONST R9 K22 - 0x7C1C0400, // 0070 CALL R7 2 - 0x001E3207, // 0071 ADD R7 K25 R7 - 0x001C0F1A, // 0072 ADD R7 R7 K26 - 0x80040E00, // 0073 RET 1 R7 + ( &(const binstruction[ 4]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x500C0000, // 0001 LDBOOL R3 0 0 + 0x7C040400, // 0002 CALL R1 2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_fabric_label +********************************************************************/ +be_local_closure(Matter_Fabric_get_fabric_label, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(fabric_label), + }), + be_str_weak(get_fabric_label), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_ca_pub +********************************************************************/ +be_local_closure(Matter_Fabric_get_ca_pub, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(root_ca_certificate), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(parse), + /* K4 */ be_nested_str_weak(findsubval), + }), + be_str_weak(get_ca_pub), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060008, // 0001 JMPF R1 #000B + 0xB80A0200, // 0002 GETNGBL R2 K1 + 0x88080502, // 0003 GETMBR R2 R2 K2 + 0x8C080503, // 0004 GETMET R2 R2 K3 + 0x5C100200, // 0005 MOVE R4 R1 + 0x7C080400, // 0006 CALL R2 2 + 0x8C0C0504, // 0007 GETMET R3 R2 K4 + 0x54160008, // 0008 LDINT R5 9 + 0x7C0C0400, // 0009 CALL R3 2 + 0x80040600, // 000A RET 1 R3 + 0x80000000, // 000B RET 0 }) ) ); @@ -200,6 +130,60 @@ be_local_closure(Matter_Fabric_get_fabric_compressed, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: get_noc +********************************************************************/ +be_local_closure(Matter_Fabric_get_noc, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(noc), + }), + be_str_weak(get_noc), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_admin_subject +********************************************************************/ +be_local_closure(Matter_Fabric_get_admin_subject, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(admin_subject), + }), + be_str_weak(get_admin_subject), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: init ********************************************************************/ @@ -248,6 +232,118 @@ be_local_closure(Matter_Fabric_init, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: get_oldest_session +********************************************************************/ +be_local_closure(Matter_Fabric_get_oldest_session, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(get_old_recent_session), + }), + be_str_weak(get_oldest_session), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x500C0200, // 0001 LDBOOL R3 1 0 + 0x7C040400, // 0002 CALL R1 2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_fabric_index +********************************************************************/ +be_local_closure(Matter_Fabric_set_fabric_index, /* name */ + be_nested_proto( + 2, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(fabric_index), + }), + be_str_weak(set_fabric_index), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x80000000, // 0001 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_ipk_group_key +********************************************************************/ +be_local_closure(Matter_Fabric_get_ipk_group_key, /* name */ + be_nested_proto( + 10, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(ipk_epoch_key), + /* K1 */ be_nested_str_weak(fabric_compressed), + /* K2 */ be_nested_str_weak(crypto), + /* K3 */ be_nested_str_weak(HKDF_SHA256), + /* K4 */ be_nested_str_weak(fromstring), + /* K5 */ be_nested_str_weak(_GROUP_KEY), + /* K6 */ be_nested_str_weak(derive), + }), + be_str_weak(get_ipk_group_key), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x1C040202, // 0002 EQ R1 R1 R2 + 0x74060003, // 0003 JMPT R1 #0008 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x4C080000, // 0005 LDNIL R2 + 0x1C040202, // 0006 EQ R1 R1 R2 + 0x78060001, // 0007 JMPF R1 #000A + 0x4C040000, // 0008 LDNIL R1 + 0x80040200, // 0009 RET 1 R1 + 0xA4060400, // 000A IMPORT R1 K2 + 0x8C080303, // 000B GETMET R2 R1 K3 + 0x7C080200, // 000C CALL R2 1 + 0x600C0015, // 000D GETGBL R3 G21 + 0x7C0C0000, // 000E CALL R3 0 + 0x8C0C0704, // 000F GETMET R3 R3 K4 + 0x88140105, // 0010 GETMBR R5 R0 K5 + 0x7C0C0400, // 0011 CALL R3 2 + 0x8C100506, // 0012 GETMET R4 R2 K6 + 0x88180100, // 0013 GETMBR R6 R0 K0 + 0x881C0101, // 0014 GETMBR R7 R0 K1 + 0x5C200600, // 0015 MOVE R8 R3 + 0x5426000F, // 0016 LDINT R9 16 + 0x7C100A00, // 0017 CALL R4 5 + 0x80040800, // 0018 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: fromjson ********************************************************************/ @@ -261,7 +357,7 @@ be_local_closure(Matter_Fabric_fromjson, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ + ( &(const bvalue[18]) { /* constants */ /* K0 */ be_const_class(be_class_Matter_Fabric), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(introspect), @@ -279,10 +375,11 @@ be_local_closure(Matter_Fabric_fromjson, /* name */ /* K14 */ be_nested_str_weak(_X24_X24), /* K15 */ be_nested_str_weak(fromb64), /* K16 */ be_nested_str_weak(stop_iteration), + /* K17 */ be_nested_str_weak(hydrate_post), }), be_str_weak(fromjson), &be_const_str_solidified, - ( &(const binstruction[74]) { /* code */ + ( &(const binstruction[76]) { /* code */ 0x58080000, // 0000 LDCONST R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0xA4120400, // 0002 IMPORT R4 K2 @@ -356,7 +453,9 @@ be_local_closure(Matter_Fabric_fromjson, /* name */ 0x58180010, // 0046 LDCONST R6 K16 0xAC180200, // 0047 CATCH R6 1 0 0xB0080000, // 0048 RAISE 2 R0 R0 - 0x80040A00, // 0049 RET 1 R5 + 0x8C180B11, // 0049 GETMET R6 R5 K17 + 0x7C180200, // 004A CALL R6 1 + 0x80040A00, // 004B RET 1 R5 }) ) ); @@ -364,94 +463,9 @@ be_local_closure(Matter_Fabric_fromjson, /* name */ /******************************************************************** -** Solidified function: get_oldest_session +** Solidified function: get_fabric_index ********************************************************************/ -be_local_closure(Matter_Fabric_get_oldest_session, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(get_old_recent_session), - }), - be_str_weak(get_oldest_session), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x500C0200, // 0001 LDBOOL R3 1 0 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_ipk_group_key -********************************************************************/ -be_local_closure(Matter_Fabric_get_ipk_group_key, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(ipk_epoch_key), - /* K1 */ be_nested_str_weak(fabric_compressed), - /* K2 */ be_nested_str_weak(crypto), - /* K3 */ be_nested_str_weak(HKDF_SHA256), - /* K4 */ be_nested_str_weak(fromstring), - /* K5 */ be_nested_str_weak(_GROUP_KEY), - /* K6 */ be_nested_str_weak(derive), - }), - be_str_weak(get_ipk_group_key), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x74060003, // 0003 JMPT R1 #0008 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x4C080000, // 0005 LDNIL R2 - 0x1C040202, // 0006 EQ R1 R1 R2 - 0x78060001, // 0007 JMPF R1 #000A - 0x4C040000, // 0008 LDNIL R1 - 0x80040200, // 0009 RET 1 R1 - 0xA4060400, // 000A IMPORT R1 K2 - 0x8C080303, // 000B GETMET R2 R1 K3 - 0x7C080200, // 000C CALL R2 1 - 0x600C0015, // 000D GETGBL R3 G21 - 0x7C0C0000, // 000E CALL R3 0 - 0x8C0C0704, // 000F GETMET R3 R3 K4 - 0x88140105, // 0010 GETMBR R5 R0 K5 - 0x7C0C0400, // 0011 CALL R3 2 - 0x8C100506, // 0012 GETMET R4 R2 K6 - 0x88180100, // 0013 GETMBR R6 R0 K0 - 0x881C0101, // 0014 GETMBR R7 R0 K1 - 0x5C200600, // 0015 MOVE R8 R3 - 0x5426000F, // 0016 LDINT R9 16 - 0x7C100A00, // 0017 CALL R4 5 - 0x80040800, // 0018 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_noc -********************************************************************/ -be_local_closure(Matter_Fabric_get_noc, /* name */ +be_local_closure(Matter_Fabric_get_fabric_index, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -462,133 +476,9 @@ be_local_closure(Matter_Fabric_get_noc, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(noc), + /* K0 */ be_nested_str_weak(fabric_index), }), - be_str_weak(get_noc), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_icac -********************************************************************/ -be_local_closure(Matter_Fabric_get_icac, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(icac), - }), - be_str_weak(get_icac), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_newest_session -********************************************************************/ -be_local_closure(Matter_Fabric_get_newest_session, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(get_old_recent_session), - }), - be_str_weak(get_newest_session), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x500C0000, // 0001 LDBOOL R3 0 0 - 0x7C040400, // 0002 CALL R1 2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_ca_pub -********************************************************************/ -be_local_closure(Matter_Fabric_get_ca_pub, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(root_ca_certificate), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(parse), - /* K4 */ be_nested_str_weak(findsubval), - }), - be_str_weak(get_ca_pub), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060008, // 0001 JMPF R1 #000B - 0xB80A0200, // 0002 GETNGBL R2 K1 - 0x88080502, // 0003 GETMBR R2 R2 K2 - 0x8C080503, // 0004 GETMET R2 R2 K3 - 0x5C100200, // 0005 MOVE R4 R1 - 0x7C080400, // 0006 CALL R2 2 - 0x8C0C0504, // 0007 GETMET R3 R2 K4 - 0x54160008, // 0008 LDINT R5 9 - 0x7C0C0400, // 0009 CALL R3 2 - 0x80040600, // 000A RET 1 R3 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_admin_vendor -********************************************************************/ -be_local_closure(Matter_Fabric_get_admin_vendor, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(admin_vendor), - }), - be_str_weak(get_admin_vendor), + be_str_weak(get_fabric_index), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 @@ -684,87 +574,6 @@ be_local_closure(Matter_Fabric_get_ipk_epoch_key, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: get_device_id -********************************************************************/ -be_local_closure(Matter_Fabric_get_device_id, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(device_id), - }), - be_str_weak(get_device_id), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_fabric_id -********************************************************************/ -be_local_closure(Matter_Fabric_get_fabric_id, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(fabric_id), - }), - be_str_weak(get_fabric_id), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_admin_subject -********************************************************************/ -be_local_closure(Matter_Fabric_get_admin_subject, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(admin_subject), - }), - be_str_weak(get_admin_subject), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: add_session ********************************************************************/ @@ -823,9 +632,9 @@ be_local_closure(Matter_Fabric_add_session, /* name */ /******************************************************************** -** Solidified function: get_fabric_label +** Solidified function: get_admin_vendor ********************************************************************/ -be_local_closure(Matter_Fabric_get_fabric_label, /* name */ +be_local_closure(Matter_Fabric_get_admin_vendor, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -836,9 +645,90 @@ be_local_closure(Matter_Fabric_get_fabric_label, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(fabric_label), + /* K0 */ be_nested_str_weak(admin_vendor), }), - be_str_weak(get_fabric_label), + be_str_weak(get_admin_vendor), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_fabric_id +********************************************************************/ +be_local_closure(Matter_Fabric_get_fabric_id, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(fabric_id), + }), + be_str_weak(get_fabric_id), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_icac +********************************************************************/ +be_local_closure(Matter_Fabric_get_icac, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(icac), + }), + be_str_weak(get_icac), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_device_id +********************************************************************/ +be_local_closure(Matter_Fabric_get_device_id, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(device_id), + }), + be_str_weak(get_device_id), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 @@ -876,50 +766,226 @@ be_local_closure(Matter_Fabric_get_ca, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: tojson +********************************************************************/ +be_local_closure(Matter_Fabric_tojson, /* name */ + be_nested_proto( + 18, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[29]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(introspect), + /* K3 */ be_nested_str_weak(persist_pre), + /* K4 */ be_nested_str_weak(members), + /* K5 */ be_nested_str_weak(get), + /* K6 */ be_nested_str_weak(function), + /* K7 */ be_const_int(0), + /* K8 */ be_nested_str_weak(_), + /* K9 */ be_nested_str_weak(push), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(matter), + /* K12 */ be_nested_str_weak(sort), + /* K13 */ be_nested_str_weak(_X24_X24), + /* K14 */ be_nested_str_weak(tob64), + /* K15 */ be_nested_str_weak(format), + /* K16 */ be_nested_str_weak(_X25s_X3A_X25s), + /* K17 */ be_nested_str_weak(dump), + /* K18 */ be_nested_str_weak(_sessions), + /* K19 */ be_nested_str_weak(persistables), + /* K20 */ be_nested_str_weak(tojson), + /* K21 */ be_nested_str_weak(_X5B), + /* K22 */ be_nested_str_weak(concat), + /* K23 */ be_nested_str_weak(_X2C), + /* K24 */ be_nested_str_weak(_X5D), + /* K25 */ be_nested_str_weak(_X22_sessions_X22_X3A), + /* K26 */ be_nested_str_weak(persist_post), + /* K27 */ be_nested_str_weak(_X7B), + /* K28 */ be_nested_str_weak(_X7D), + }), + be_str_weak(tojson), + &be_const_str_solidified, + ( &(const binstruction[120]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA40E0400, // 0002 IMPORT R3 K2 + 0x8C100103, // 0003 GETMET R4 R0 K3 + 0x7C100200, // 0004 CALL R4 1 + 0x60100012, // 0005 GETGBL R4 G18 + 0x7C100000, // 0006 CALL R4 0 + 0x60140010, // 0007 GETGBL R5 G16 + 0x8C180704, // 0008 GETMET R6 R3 K4 + 0x5C200000, // 0009 MOVE R8 R0 + 0x7C180400, // 000A CALL R6 2 + 0x7C140200, // 000B CALL R5 1 + 0xA8020011, // 000C EXBLK 0 #001F + 0x5C180A00, // 000D MOVE R6 R5 + 0x7C180000, // 000E CALL R6 0 + 0x8C1C0705, // 000F GETMET R7 R3 K5 + 0x5C240000, // 0010 MOVE R9 R0 + 0x5C280C00, // 0011 MOVE R10 R6 + 0x7C1C0600, // 0012 CALL R7 3 + 0x60200004, // 0013 GETGBL R8 G4 + 0x5C240E00, // 0014 MOVE R9 R7 + 0x7C200200, // 0015 CALL R8 1 + 0x20201106, // 0016 NE R8 R8 K6 + 0x78220005, // 0017 JMPF R8 #001E + 0x94200D07, // 0018 GETIDX R8 R6 K7 + 0x20201108, // 0019 NE R8 R8 K8 + 0x78220002, // 001A JMPF R8 #001E + 0x8C200909, // 001B GETMET R8 R4 K9 + 0x5C280C00, // 001C MOVE R10 R6 + 0x7C200400, // 001D CALL R8 2 + 0x7001FFED, // 001E JMP #000D + 0x5814000A, // 001F LDCONST R5 K10 + 0xAC140200, // 0020 CATCH R5 1 0 + 0xB0080000, // 0021 RAISE 2 R0 R0 + 0xB8161600, // 0022 GETNGBL R5 K11 + 0x8C140B0C, // 0023 GETMET R5 R5 K12 + 0x5C1C0800, // 0024 MOVE R7 R4 + 0x7C140400, // 0025 CALL R5 2 + 0x5C100A00, // 0026 MOVE R4 R5 + 0x60140012, // 0027 GETGBL R5 G18 + 0x7C140000, // 0028 CALL R5 0 + 0x60180010, // 0029 GETGBL R6 G16 + 0x5C1C0800, // 002A MOVE R7 R4 + 0x7C180200, // 002B CALL R6 1 + 0xA8020020, // 002C EXBLK 0 #004E + 0x5C1C0C00, // 002D MOVE R7 R6 + 0x7C1C0000, // 002E CALL R7 0 + 0x8C200705, // 002F GETMET R8 R3 K5 + 0x5C280000, // 0030 MOVE R10 R0 + 0x5C2C0E00, // 0031 MOVE R11 R7 + 0x7C200600, // 0032 CALL R8 3 + 0x4C240000, // 0033 LDNIL R9 + 0x1C241009, // 0034 EQ R9 R8 R9 + 0x78260000, // 0035 JMPF R9 #0037 + 0x7001FFF5, // 0036 JMP #002D + 0x6024000F, // 0037 GETGBL R9 G15 + 0x5C281000, // 0038 MOVE R10 R8 + 0x602C0015, // 0039 GETGBL R11 G21 + 0x7C240400, // 003A CALL R9 2 + 0x78260003, // 003B JMPF R9 #0040 + 0x8C24110E, // 003C GETMET R9 R8 K14 + 0x7C240200, // 003D CALL R9 1 + 0x00261A09, // 003E ADD R9 K13 R9 + 0x5C201200, // 003F MOVE R8 R9 + 0x8C240B09, // 0040 GETMET R9 R5 K9 + 0x8C2C050F, // 0041 GETMET R11 R2 K15 + 0x58340010, // 0042 LDCONST R13 K16 + 0x8C380311, // 0043 GETMET R14 R1 K17 + 0x60400008, // 0044 GETGBL R16 G8 + 0x5C440E00, // 0045 MOVE R17 R7 + 0x7C400200, // 0046 CALL R16 1 + 0x7C380400, // 0047 CALL R14 2 + 0x8C3C0311, // 0048 GETMET R15 R1 K17 + 0x5C441000, // 0049 MOVE R17 R8 + 0x7C3C0400, // 004A CALL R15 2 + 0x7C2C0800, // 004B CALL R11 4 + 0x7C240400, // 004C CALL R9 2 + 0x7001FFDE, // 004D JMP #002D + 0x5818000A, // 004E LDCONST R6 K10 + 0xAC180200, // 004F CATCH R6 1 0 + 0xB0080000, // 0050 RAISE 2 R0 R0 + 0x60180012, // 0051 GETGBL R6 G18 + 0x7C180000, // 0052 CALL R6 0 + 0x601C0010, // 0053 GETGBL R7 G16 + 0x88200112, // 0054 GETMBR R8 R0 K18 + 0x8C201113, // 0055 GETMET R8 R8 K19 + 0x7C200200, // 0056 CALL R8 1 + 0x7C1C0200, // 0057 CALL R7 1 + 0xA8020006, // 0058 EXBLK 0 #0060 + 0x5C200E00, // 0059 MOVE R8 R7 + 0x7C200000, // 005A CALL R8 0 + 0x8C240D09, // 005B GETMET R9 R6 K9 + 0x8C2C1114, // 005C GETMET R11 R8 K20 + 0x7C2C0200, // 005D CALL R11 1 + 0x7C240400, // 005E CALL R9 2 + 0x7001FFF8, // 005F JMP #0059 + 0x581C000A, // 0060 LDCONST R7 K10 + 0xAC1C0200, // 0061 CATCH R7 1 0 + 0xB0080000, // 0062 RAISE 2 R0 R0 + 0x601C000C, // 0063 GETGBL R7 G12 + 0x5C200C00, // 0064 MOVE R8 R6 + 0x7C1C0200, // 0065 CALL R7 1 + 0x241C0F07, // 0066 GT R7 R7 K7 + 0x781E0007, // 0067 JMPF R7 #0070 + 0x8C1C0D16, // 0068 GETMET R7 R6 K22 + 0x58240017, // 0069 LDCONST R9 K23 + 0x7C1C0400, // 006A CALL R7 2 + 0x001E2A07, // 006B ADD R7 K21 R7 + 0x001C0F18, // 006C ADD R7 R7 K24 + 0x8C200B09, // 006D GETMET R8 R5 K9 + 0x002A3207, // 006E ADD R10 K25 R7 + 0x7C200400, // 006F CALL R8 2 + 0x8C1C011A, // 0070 GETMET R7 R0 K26 + 0x7C1C0200, // 0071 CALL R7 1 + 0x8C1C0B16, // 0072 GETMET R7 R5 K22 + 0x58240017, // 0073 LDCONST R9 K23 + 0x7C1C0400, // 0074 CALL R7 2 + 0x001E3607, // 0075 ADD R7 K27 R7 + 0x001C0F1C, // 0076 ADD R7 R7 K28 + 0x80040E00, // 0077 RET 1 R7 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Fabric ********************************************************************/ extern const bclass be_class_Matter_Expirable; be_local_class(Matter_Fabric, - 14, + 15, &be_class_Matter_Expirable, - be_nested_map(35, + be_nested_map(38, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(no_private_key, -1), be_const_var(3) }, - { be_const_key_weak(tojson, 11), be_const_closure(Matter_Fabric_tojson_closure) }, - { be_const_key_weak(fabric_label, -1), be_const_var(11) }, - { be_const_key_weak(get_fabric_compressed, 33), be_const_closure(Matter_Fabric_get_fabric_compressed_closure) }, - { be_const_key_weak(_sessions, -1), be_const_var(2) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Fabric_init_closure) }, - { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Fabric_fromjson_closure) }, - { be_const_key_weak(get_ca, -1), be_const_closure(Matter_Fabric_get_ca_closure) }, - { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Fabric_get_ipk_group_key_closure) }, - { be_const_key_weak(_store, 29), be_const_var(0) }, - { be_const_key_weak(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, - { be_const_key_weak(icac, 32), be_const_var(6) }, - { be_const_key_weak(ipk_epoch_key, 34), be_const_var(7) }, + { be_const_key_weak(no_private_key, 27), be_const_var(4) }, { be_const_key_weak(get_newest_session, -1), be_const_closure(Matter_Fabric_get_newest_session_closure) }, - { be_const_key_weak(get_fabric_label, 30), be_const_closure(Matter_Fabric_get_fabric_label_closure) }, - { be_const_key_weak(add_session, -1), be_const_closure(Matter_Fabric_add_session_closure) }, - { be_const_key_weak(admin_subject, 7), be_const_var(12) }, - { be_const_key_weak(get_device_id, -1), be_const_closure(Matter_Fabric_get_device_id_closure) }, - { be_const_key_weak(get_oldest_session, 12), be_const_closure(Matter_Fabric_get_oldest_session_closure) }, - { be_const_key_weak(get_ca_pub, 14), be_const_closure(Matter_Fabric_get_ca_pub_closure) }, - { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Fabric_get_fabric_id_closure) }, - { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Fabric_get_admin_vendor_closure) }, - { be_const_key_weak(fabric_id, 15), be_const_var(8) }, - { be_const_key_weak(_MAX_CASE, 9), be_const_int(5) }, - { be_const_key_weak(get_ipk_epoch_key, -1), be_const_closure(Matter_Fabric_get_ipk_epoch_key_closure) }, - { be_const_key_weak(fabric_compressed, -1), be_const_var(9) }, - { be_const_key_weak(get_noc, 17), be_const_closure(Matter_Fabric_get_noc_closure) }, - { be_const_key_weak(root_ca_certificate, 20), be_const_var(4) }, + { be_const_key_weak(get_fabric_label, -1), be_const_closure(Matter_Fabric_get_fabric_label_closure) }, + { be_const_key_weak(_MAX_CASE, -1), be_const_int(5) }, + { be_const_key_weak(get_ca_pub, -1), be_const_closure(Matter_Fabric_get_ca_pub_closure) }, + { be_const_key_weak(get_fabric_compressed, -1), be_const_closure(Matter_Fabric_get_fabric_compressed_closure) }, + { be_const_key_weak(fabric_compressed, -1), be_const_var(10) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Fabric_init_closure) }, + { be_const_key_weak(root_ca_certificate, -1), be_const_var(5) }, + { be_const_key_weak(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, + { be_const_key_weak(_store, -1), be_const_var(0) }, + { be_const_key_weak(admin_vendor, -1), be_const_var(14) }, { be_const_key_weak(get_admin_subject, -1), be_const_closure(Matter_Fabric_get_admin_subject_closure) }, + { be_const_key_weak(device_id, 7), be_const_var(11) }, + { be_const_key_weak(tojson, -1), be_const_closure(Matter_Fabric_tojson_closure) }, + { be_const_key_weak(admin_subject, 10), be_const_var(13) }, + { be_const_key_weak(get_oldest_session, -1), be_const_closure(Matter_Fabric_get_oldest_session_closure) }, + { be_const_key_weak(icac, 24), be_const_var(7) }, + { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Fabric_get_ipk_group_key_closure) }, + { be_const_key_weak(fabric_index, 32), be_const_var(2) }, + { be_const_key_weak(get_fabric_index, -1), be_const_closure(Matter_Fabric_get_fabric_index_closure) }, + { be_const_key_weak(_sessions, -1), be_const_var(3) }, { be_const_key_weak(get_old_recent_session, -1), be_const_closure(Matter_Fabric_get_old_recent_session_closure) }, - { be_const_key_weak(created, -1), be_const_var(1) }, - { be_const_key_weak(admin_vendor, -1), be_const_var(13) }, - { be_const_key_weak(noc, -1), be_const_var(5) }, + { be_const_key_weak(created, 17), be_const_var(1) }, + { be_const_key_weak(noc, -1), be_const_var(6) }, + { be_const_key_weak(ipk_epoch_key, -1), be_const_var(8) }, + { be_const_key_weak(get_ipk_epoch_key, 33), be_const_closure(Matter_Fabric_get_ipk_epoch_key_closure) }, + { be_const_key_weak(set_fabric_index, -1), be_const_closure(Matter_Fabric_set_fabric_index_closure) }, + { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Fabric_get_admin_vendor_closure) }, + { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Fabric_get_fabric_id_closure) }, + { be_const_key_weak(get_noc, 31), be_const_closure(Matter_Fabric_get_noc_closure) }, { be_const_key_weak(get_icac, -1), be_const_closure(Matter_Fabric_get_icac_closure) }, - { be_const_key_weak(device_id, -1), be_const_var(10) }, + { be_const_key_weak(add_session, 35), be_const_closure(Matter_Fabric_add_session_closure) }, + { be_const_key_weak(fabric_id, -1), be_const_var(9) }, + { be_const_key_weak(get_ca, 14), be_const_closure(Matter_Fabric_get_ca_closure) }, + { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Fabric_fromjson_closure) }, + { be_const_key_weak(get_device_id, 8), be_const_closure(Matter_Fabric_get_device_id_closure) }, + { be_const_key_weak(fabric_label, -1), be_const_var(12) }, })), be_str_weak(Matter_Fabric) ); @@ -933,36 +999,6 @@ void be_load_Matter_Fabric_class(bvm *vm) { extern const bclass be_class_Matter_Session; -/******************************************************************** -** Solidified function: is_PASE -********************************************************************/ -be_local_closure(Matter_Session_is_PASE, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(mode), - /* K1 */ be_nested_str_weak(_PASE), - }), - be_str_weak(is_PASE), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: get_ipk_epoch_key ********************************************************************/ @@ -992,194 +1028,6 @@ be_local_closure(Matter_Session_get_ipk_epoch_key, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: get_i2r_privacy -********************************************************************/ -be_local_closure(Matter_Session_get_i2r_privacy, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(_i2r_privacy), - /* K1 */ be_nested_str_weak(crypto), - /* K2 */ be_nested_str_weak(HKDF_SHA256), - /* K3 */ be_nested_str_weak(derive), - /* K4 */ be_nested_str_weak(get_i2r), - /* K5 */ be_nested_str_weak(fromstring), - /* K6 */ be_nested_str_weak(PrivacyKey), - }), - be_str_weak(get_i2r_privacy), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x7806000F, // 0003 JMPF R1 #0014 - 0xA4060200, // 0004 IMPORT R1 K1 - 0x8C080302, // 0005 GETMET R2 R1 K2 - 0x7C080200, // 0006 CALL R2 1 - 0x8C080503, // 0007 GETMET R2 R2 K3 - 0x8C100104, // 0008 GETMET R4 R0 K4 - 0x7C100200, // 0009 CALL R4 1 - 0x60140015, // 000A GETGBL R5 G21 - 0x7C140000, // 000B CALL R5 0 - 0x60180015, // 000C GETGBL R6 G21 - 0x7C180000, // 000D CALL R6 0 - 0x8C180D05, // 000E GETMET R6 R6 K5 - 0x58200006, // 000F LDCONST R8 K6 - 0x7C180400, // 0010 CALL R6 2 - 0x541E000F, // 0011 LDINT R7 16 - 0x7C080A00, // 0012 CALL R2 5 - 0x90020002, // 0013 SETMBR R0 K0 R2 - 0x88040100, // 0014 GETMBR R1 R0 K0 - 0x80040200, // 0015 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: close -********************************************************************/ -be_local_closure(Matter_Session_close, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[21]) { /* constants */ - /* K0 */ be_nested_str_weak(local_session_id), - /* K1 */ be_nested_str_weak(__future_local_session_id), - /* K2 */ be_nested_str_weak(initiator_session_id), - /* K3 */ be_nested_str_weak(__future_initiator_session_id), - /* K4 */ be_nested_str_weak(source_node_id), - /* K5 */ be_nested_str_weak(counter_rcv), - /* K6 */ be_nested_str_weak(reset), - /* K7 */ be_nested_str_weak(counter_snd), - /* K8 */ be_nested_str_weak(i2rkey), - /* K9 */ be_nested_str_weak(_i2r_privacy), - /* K10 */ be_nested_str_weak(r2ikey), - /* K11 */ be_nested_str_weak(attestation_challenge), - /* K12 */ be_nested_str_weak(introspect), - /* K13 */ be_nested_str_weak(members), - /* K14 */ be_nested_str_weak(get), - /* K15 */ be_nested_str_weak(function), - /* K16 */ be_nested_str_weak(instance), - /* K17 */ be_const_int(0), - /* K18 */ be_nested_str_weak(_), - /* K19 */ be_const_int(1), - /* K20 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(close), - &be_const_str_solidified, - ( &(const binstruction[56]) { /* code */ - 0x88040101, // 0000 GETMBR R1 R0 K1 - 0x90020001, // 0001 SETMBR R0 K0 R1 - 0x88040103, // 0002 GETMBR R1 R0 K3 - 0x90020401, // 0003 SETMBR R0 K2 R1 - 0x4C040000, // 0004 LDNIL R1 - 0x90020801, // 0005 SETMBR R0 K4 R1 - 0x88040105, // 0006 GETMBR R1 R0 K5 - 0x8C040306, // 0007 GETMET R1 R1 K6 - 0x7C040200, // 0008 CALL R1 1 - 0x88040107, // 0009 GETMBR R1 R0 K7 - 0x8C040306, // 000A GETMET R1 R1 K6 - 0x7C040200, // 000B CALL R1 1 - 0x4C040000, // 000C LDNIL R1 - 0x90021001, // 000D SETMBR R0 K8 R1 - 0x4C040000, // 000E LDNIL R1 - 0x90021201, // 000F SETMBR R0 K9 R1 - 0x4C040000, // 0010 LDNIL R1 - 0x90021401, // 0011 SETMBR R0 K10 R1 - 0x4C040000, // 0012 LDNIL R1 - 0x90021601, // 0013 SETMBR R0 K11 R1 - 0xA4061800, // 0014 IMPORT R1 K12 - 0x60080010, // 0015 GETGBL R2 G16 - 0x8C0C030D, // 0016 GETMET R3 R1 K13 - 0x5C140000, // 0017 MOVE R5 R0 - 0x7C0C0400, // 0018 CALL R3 2 - 0x7C080200, // 0019 CALL R2 1 - 0xA8020018, // 001A EXBLK 0 #0034 - 0x5C0C0400, // 001B MOVE R3 R2 - 0x7C0C0000, // 001C CALL R3 0 - 0x8C10030E, // 001D GETMET R4 R1 K14 - 0x5C180000, // 001E MOVE R6 R0 - 0x5C1C0600, // 001F MOVE R7 R3 - 0x7C100600, // 0020 CALL R4 3 - 0x60140004, // 0021 GETGBL R5 G4 - 0x5C180800, // 0022 MOVE R6 R4 - 0x7C140200, // 0023 CALL R5 1 - 0x20140B0F, // 0024 NE R5 R5 K15 - 0x7816000C, // 0025 JMPF R5 #0033 - 0x60140004, // 0026 GETGBL R5 G4 - 0x5C180800, // 0027 MOVE R6 R4 - 0x7C140200, // 0028 CALL R5 1 - 0x20140B10, // 0029 NE R5 R5 K16 - 0x78160007, // 002A JMPF R5 #0033 - 0x94140711, // 002B GETIDX R5 R3 K17 - 0x1C140B12, // 002C EQ R5 R5 K18 - 0x78160004, // 002D JMPF R5 #0033 - 0x94140713, // 002E GETIDX R5 R3 K19 - 0x1C140B12, // 002F EQ R5 R5 K18 - 0x78160001, // 0030 JMPF R5 #0033 - 0x4C140000, // 0031 LDNIL R5 - 0x90000605, // 0032 SETMBR R0 R3 R5 - 0x7001FFE6, // 0033 JMP #001B - 0x58080014, // 0034 LDCONST R2 K20 - 0xAC080200, // 0035 CATCH R2 1 0 - 0xB0080000, // 0036 RAISE 2 R0 R0 - 0x80000000, // 0037 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update -********************************************************************/ -be_local_closure(Matter_Session_update, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(last_used), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(rtc), - /* K3 */ be_nested_str_weak(utc), - }), - be_str_weak(update), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0xB8060200, // 0000 GETNGBL R1 K1 - 0x8C040302, // 0001 GETMET R1 R1 K2 - 0x7C040200, // 0002 CALL R1 1 - 0x94040303, // 0003 GETIDX R1 R1 K3 - 0x90020001, // 0004 SETMBR R0 K0 R1 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: set_mode_CASE ********************************************************************/ @@ -1210,35 +1058,6 @@ be_local_closure(Matter_Session_set_mode_CASE, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: get_ca -********************************************************************/ -be_local_closure(Matter_Session_get_ca, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(root_ca_certificate), - }), - be_str_weak(get_ca), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x88040301, // 0001 GETMBR R1 R1 K1 - 0x80040200, // 0002 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: set_admin_subject_vendor ********************************************************************/ @@ -1324,8 +1143,8 @@ be_local_closure(Matter_Session_init, /* name */ /* K7 */ be_nested_str_weak(matter), /* K8 */ be_nested_str_weak(Counter), /* K9 */ be_nested_str_weak(counter_snd), - /* K10 */ be_nested_str_weak(__counter_insecure_rcv), - /* K11 */ be_nested_str_weak(__counter_insecure_snd), + /* K10 */ be_nested_str_weak(_counter_insecure_rcv), + /* K11 */ be_nested_str_weak(_counter_insecure_snd), /* K12 */ be_nested_str_weak(_breadcrumb), /* K13 */ be_nested_str_weak(_exchange_id), /* K14 */ be_nested_str_weak(random), @@ -1384,37 +1203,6 @@ be_local_closure(Matter_Session_init, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: persist_to_fabric -********************************************************************/ -be_local_closure(Matter_Session_persist_to_fabric, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(add_session), - }), - be_str_weak(persist_to_fabric), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: set_mode_PASE ********************************************************************/ @@ -1543,143 +1331,149 @@ be_local_closure(Matter_Session_tojson, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[26]) { /* constants */ + ( &(const bvalue[28]) { /* constants */ /* K0 */ be_nested_str_weak(json), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(introspect), - /* K3 */ be_nested_str_weak(members), - /* K4 */ be_nested_str_weak(get), - /* K5 */ be_nested_str_weak(function), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(_), - /* K8 */ be_nested_str_weak(push), - /* K9 */ be_nested_str_weak(stop_iteration), - /* K10 */ be_nested_str_weak(matter), - /* K11 */ be_nested_str_weak(sort), - /* K12 */ be_nested_str_weak(counter_rcv), - /* K13 */ be_nested_str_weak(val), - /* K14 */ be_nested_str_weak(counter_snd), - /* K15 */ be_nested_str_weak(next), - /* K16 */ be_nested_str_weak(_X24_X24), - /* K17 */ be_nested_str_weak(tob64), - /* K18 */ be_nested_str_weak(instance), - /* K19 */ be_nested_str_weak(format), - /* K20 */ be_nested_str_weak(_X25s_X3A_X25s), - /* K21 */ be_nested_str_weak(dump), - /* K22 */ be_nested_str_weak(_X7B), - /* K23 */ be_nested_str_weak(concat), - /* K24 */ be_nested_str_weak(_X2C), - /* K25 */ be_nested_str_weak(_X7D), + /* K3 */ be_nested_str_weak(persist_pre), + /* K4 */ be_nested_str_weak(members), + /* K5 */ be_nested_str_weak(get), + /* K6 */ be_nested_str_weak(function), + /* K7 */ be_const_int(0), + /* K8 */ be_nested_str_weak(_), + /* K9 */ be_nested_str_weak(push), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(matter), + /* K12 */ be_nested_str_weak(sort), + /* K13 */ be_nested_str_weak(counter_rcv), + /* K14 */ be_nested_str_weak(val), + /* K15 */ be_nested_str_weak(counter_snd), + /* K16 */ be_nested_str_weak(next), + /* K17 */ be_nested_str_weak(_X24_X24), + /* K18 */ be_nested_str_weak(tob64), + /* K19 */ be_nested_str_weak(instance), + /* K20 */ be_nested_str_weak(format), + /* K21 */ be_nested_str_weak(_X25s_X3A_X25s), + /* K22 */ be_nested_str_weak(dump), + /* K23 */ be_nested_str_weak(persist_post), + /* K24 */ be_nested_str_weak(_X7B), + /* K25 */ be_nested_str_weak(concat), + /* K26 */ be_nested_str_weak(_X2C), + /* K27 */ be_nested_str_weak(_X7D), }), be_str_weak(tojson), &be_const_str_solidified, - ( &(const binstruction[106]) { /* code */ + ( &(const binstruction[110]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0xA40A0200, // 0001 IMPORT R2 K1 0xA40E0400, // 0002 IMPORT R3 K2 - 0x60100012, // 0003 GETGBL R4 G18 - 0x7C100000, // 0004 CALL R4 0 - 0x60140010, // 0005 GETGBL R5 G16 - 0x8C180703, // 0006 GETMET R6 R3 K3 - 0x5C200000, // 0007 MOVE R8 R0 - 0x7C180400, // 0008 CALL R6 2 - 0x7C140200, // 0009 CALL R5 1 - 0xA8020011, // 000A EXBLK 0 #001D - 0x5C180A00, // 000B MOVE R6 R5 - 0x7C180000, // 000C CALL R6 0 - 0x8C1C0704, // 000D GETMET R7 R3 K4 - 0x5C240000, // 000E MOVE R9 R0 - 0x5C280C00, // 000F MOVE R10 R6 - 0x7C1C0600, // 0010 CALL R7 3 - 0x60200004, // 0011 GETGBL R8 G4 - 0x5C240E00, // 0012 MOVE R9 R7 - 0x7C200200, // 0013 CALL R8 1 - 0x20201105, // 0014 NE R8 R8 K5 - 0x78220005, // 0015 JMPF R8 #001C - 0x94200D06, // 0016 GETIDX R8 R6 K6 - 0x20201107, // 0017 NE R8 R8 K7 - 0x78220002, // 0018 JMPF R8 #001C - 0x8C200908, // 0019 GETMET R8 R4 K8 - 0x5C280C00, // 001A MOVE R10 R6 - 0x7C200400, // 001B CALL R8 2 - 0x7001FFED, // 001C JMP #000B - 0x58140009, // 001D LDCONST R5 K9 - 0xAC140200, // 001E CATCH R5 1 0 - 0xB0080000, // 001F RAISE 2 R0 R0 - 0xB8161400, // 0020 GETNGBL R5 K10 - 0x8C140B0B, // 0021 GETMET R5 R5 K11 - 0x5C1C0800, // 0022 MOVE R7 R4 - 0x7C140400, // 0023 CALL R5 2 - 0x5C100A00, // 0024 MOVE R4 R5 - 0x60140012, // 0025 GETGBL R5 G18 - 0x7C140000, // 0026 CALL R5 0 - 0x60180010, // 0027 GETGBL R6 G16 - 0x5C1C0800, // 0028 MOVE R7 R4 - 0x7C180200, // 0029 CALL R6 1 - 0xA8020035, // 002A EXBLK 0 #0061 - 0x5C1C0C00, // 002B MOVE R7 R6 - 0x7C1C0000, // 002C CALL R7 0 - 0x8C200704, // 002D GETMET R8 R3 K4 - 0x5C280000, // 002E MOVE R10 R0 - 0x5C2C0E00, // 002F MOVE R11 R7 - 0x7C200600, // 0030 CALL R8 3 - 0x4C240000, // 0031 LDNIL R9 - 0x1C241009, // 0032 EQ R9 R8 R9 - 0x78260000, // 0033 JMPF R9 #0035 - 0x7001FFF5, // 0034 JMP #002B - 0x1C240F0C, // 0035 EQ R9 R7 K12 - 0x78260003, // 0036 JMPF R9 #003B - 0x8C24110D, // 0037 GETMET R9 R8 K13 - 0x7C240200, // 0038 CALL R9 1 - 0x5C201200, // 0039 MOVE R8 R9 - 0x70020017, // 003A JMP #0053 - 0x1C240F0E, // 003B EQ R9 R7 K14 - 0x78260005, // 003C JMPF R9 #0043 - 0x8C24110F, // 003D GETMET R9 R8 K15 - 0x7C240200, // 003E CALL R9 1 - 0x542A00FF, // 003F LDINT R10 256 - 0x0024120A, // 0040 ADD R9 R9 R10 - 0x5C201200, // 0041 MOVE R8 R9 - 0x7002000F, // 0042 JMP #0053 - 0x6024000F, // 0043 GETGBL R9 G15 - 0x5C281000, // 0044 MOVE R10 R8 - 0x602C0015, // 0045 GETGBL R11 G21 - 0x7C240400, // 0046 CALL R9 2 - 0x78260004, // 0047 JMPF R9 #004D - 0x8C241111, // 0048 GETMET R9 R8 K17 - 0x7C240200, // 0049 CALL R9 1 - 0x00262009, // 004A ADD R9 K16 R9 - 0x5C201200, // 004B MOVE R8 R9 - 0x70020005, // 004C JMP #0053 - 0x60240004, // 004D GETGBL R9 G4 - 0x5C281000, // 004E MOVE R10 R8 - 0x7C240200, // 004F CALL R9 1 - 0x1C241312, // 0050 EQ R9 R9 K18 - 0x78260000, // 0051 JMPF R9 #0053 - 0x7001FFD7, // 0052 JMP #002B - 0x8C240B08, // 0053 GETMET R9 R5 K8 - 0x8C2C0513, // 0054 GETMET R11 R2 K19 - 0x58340014, // 0055 LDCONST R13 K20 - 0x8C380315, // 0056 GETMET R14 R1 K21 - 0x60400008, // 0057 GETGBL R16 G8 - 0x5C440E00, // 0058 MOVE R17 R7 - 0x7C400200, // 0059 CALL R16 1 - 0x7C380400, // 005A CALL R14 2 - 0x8C3C0315, // 005B GETMET R15 R1 K21 - 0x5C441000, // 005C MOVE R17 R8 - 0x7C3C0400, // 005D CALL R15 2 - 0x7C2C0800, // 005E CALL R11 4 - 0x7C240400, // 005F CALL R9 2 - 0x7001FFC9, // 0060 JMP #002B - 0x58180009, // 0061 LDCONST R6 K9 - 0xAC180200, // 0062 CATCH R6 1 0 - 0xB0080000, // 0063 RAISE 2 R0 R0 - 0x8C180B17, // 0064 GETMET R6 R5 K23 - 0x58200018, // 0065 LDCONST R8 K24 - 0x7C180400, // 0066 CALL R6 2 - 0x001A2C06, // 0067 ADD R6 K22 R6 - 0x00180D19, // 0068 ADD R6 R6 K25 - 0x80040C00, // 0069 RET 1 R6 + 0x8C100103, // 0003 GETMET R4 R0 K3 + 0x7C100200, // 0004 CALL R4 1 + 0x60100012, // 0005 GETGBL R4 G18 + 0x7C100000, // 0006 CALL R4 0 + 0x60140010, // 0007 GETGBL R5 G16 + 0x8C180704, // 0008 GETMET R6 R3 K4 + 0x5C200000, // 0009 MOVE R8 R0 + 0x7C180400, // 000A CALL R6 2 + 0x7C140200, // 000B CALL R5 1 + 0xA8020011, // 000C EXBLK 0 #001F + 0x5C180A00, // 000D MOVE R6 R5 + 0x7C180000, // 000E CALL R6 0 + 0x8C1C0705, // 000F GETMET R7 R3 K5 + 0x5C240000, // 0010 MOVE R9 R0 + 0x5C280C00, // 0011 MOVE R10 R6 + 0x7C1C0600, // 0012 CALL R7 3 + 0x60200004, // 0013 GETGBL R8 G4 + 0x5C240E00, // 0014 MOVE R9 R7 + 0x7C200200, // 0015 CALL R8 1 + 0x20201106, // 0016 NE R8 R8 K6 + 0x78220005, // 0017 JMPF R8 #001E + 0x94200D07, // 0018 GETIDX R8 R6 K7 + 0x20201108, // 0019 NE R8 R8 K8 + 0x78220002, // 001A JMPF R8 #001E + 0x8C200909, // 001B GETMET R8 R4 K9 + 0x5C280C00, // 001C MOVE R10 R6 + 0x7C200400, // 001D CALL R8 2 + 0x7001FFED, // 001E JMP #000D + 0x5814000A, // 001F LDCONST R5 K10 + 0xAC140200, // 0020 CATCH R5 1 0 + 0xB0080000, // 0021 RAISE 2 R0 R0 + 0xB8161600, // 0022 GETNGBL R5 K11 + 0x8C140B0C, // 0023 GETMET R5 R5 K12 + 0x5C1C0800, // 0024 MOVE R7 R4 + 0x7C140400, // 0025 CALL R5 2 + 0x5C100A00, // 0026 MOVE R4 R5 + 0x60140012, // 0027 GETGBL R5 G18 + 0x7C140000, // 0028 CALL R5 0 + 0x60180010, // 0029 GETGBL R6 G16 + 0x5C1C0800, // 002A MOVE R7 R4 + 0x7C180200, // 002B CALL R6 1 + 0xA8020035, // 002C EXBLK 0 #0063 + 0x5C1C0C00, // 002D MOVE R7 R6 + 0x7C1C0000, // 002E CALL R7 0 + 0x8C200705, // 002F GETMET R8 R3 K5 + 0x5C280000, // 0030 MOVE R10 R0 + 0x5C2C0E00, // 0031 MOVE R11 R7 + 0x7C200600, // 0032 CALL R8 3 + 0x4C240000, // 0033 LDNIL R9 + 0x1C241009, // 0034 EQ R9 R8 R9 + 0x78260000, // 0035 JMPF R9 #0037 + 0x7001FFF5, // 0036 JMP #002D + 0x1C240F0D, // 0037 EQ R9 R7 K13 + 0x78260003, // 0038 JMPF R9 #003D + 0x8C24110E, // 0039 GETMET R9 R8 K14 + 0x7C240200, // 003A CALL R9 1 + 0x5C201200, // 003B MOVE R8 R9 + 0x70020017, // 003C JMP #0055 + 0x1C240F0F, // 003D EQ R9 R7 K15 + 0x78260005, // 003E JMPF R9 #0045 + 0x8C241110, // 003F GETMET R9 R8 K16 + 0x7C240200, // 0040 CALL R9 1 + 0x542A00FF, // 0041 LDINT R10 256 + 0x0024120A, // 0042 ADD R9 R9 R10 + 0x5C201200, // 0043 MOVE R8 R9 + 0x7002000F, // 0044 JMP #0055 + 0x6024000F, // 0045 GETGBL R9 G15 + 0x5C281000, // 0046 MOVE R10 R8 + 0x602C0015, // 0047 GETGBL R11 G21 + 0x7C240400, // 0048 CALL R9 2 + 0x78260004, // 0049 JMPF R9 #004F + 0x8C241112, // 004A GETMET R9 R8 K18 + 0x7C240200, // 004B CALL R9 1 + 0x00262209, // 004C ADD R9 K17 R9 + 0x5C201200, // 004D MOVE R8 R9 + 0x70020005, // 004E JMP #0055 + 0x60240004, // 004F GETGBL R9 G4 + 0x5C281000, // 0050 MOVE R10 R8 + 0x7C240200, // 0051 CALL R9 1 + 0x1C241313, // 0052 EQ R9 R9 K19 + 0x78260000, // 0053 JMPF R9 #0055 + 0x7001FFD7, // 0054 JMP #002D + 0x8C240B09, // 0055 GETMET R9 R5 K9 + 0x8C2C0514, // 0056 GETMET R11 R2 K20 + 0x58340015, // 0057 LDCONST R13 K21 + 0x8C380316, // 0058 GETMET R14 R1 K22 + 0x60400008, // 0059 GETGBL R16 G8 + 0x5C440E00, // 005A MOVE R17 R7 + 0x7C400200, // 005B CALL R16 1 + 0x7C380400, // 005C CALL R14 2 + 0x8C3C0316, // 005D GETMET R15 R1 K22 + 0x5C441000, // 005E MOVE R17 R8 + 0x7C3C0400, // 005F CALL R15 2 + 0x7C2C0800, // 0060 CALL R11 4 + 0x7C240400, // 0061 CALL R9 2 + 0x7001FFC9, // 0062 JMP #002D + 0x5818000A, // 0063 LDCONST R6 K10 + 0xAC180200, // 0064 CATCH R6 1 0 + 0xB0080000, // 0065 RAISE 2 R0 R0 + 0x8C180117, // 0066 GETMET R6 R0 K23 + 0x7C180200, // 0067 CALL R6 1 + 0x8C180B19, // 0068 GETMET R6 R5 K25 + 0x5820001A, // 0069 LDCONST R8 K26 + 0x7C180400, // 006A CALL R6 2 + 0x001A3006, // 006B ADD R6 K24 R6 + 0x00180D1B, // 006C ADD R6 R6 K27 + 0x80040C00, // 006D RET 1 R6 }) ) ); @@ -1815,7 +1609,7 @@ be_local_closure(Matter_Session_fromjson, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ + ( &(const bvalue[20]) { /* constants */ /* K0 */ be_const_class(be_class_Matter_Session), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(introspect), @@ -1835,10 +1629,11 @@ be_local_closure(Matter_Session_fromjson, /* name */ /* K16 */ be_nested_str_weak(_X24_X24), /* K17 */ be_nested_str_weak(fromb64), /* K18 */ be_nested_str_weak(stop_iteration), + /* K19 */ be_nested_str_weak(hydrate_post), }), be_str_weak(fromjson), &be_const_str_solidified, - ( &(const binstruction[91]) { /* code */ + ( &(const binstruction[93]) { /* code */ 0x580C0000, // 0000 LDCONST R3 K0 0xA4120200, // 0001 IMPORT R4 K1 0xA4160400, // 0002 IMPORT R5 K2 @@ -1929,7 +1724,9 @@ be_local_closure(Matter_Session_fromjson, /* name */ 0x581C0012, // 0057 LDCONST R7 K18 0xAC1C0200, // 0058 CATCH R7 1 0 0xB0080000, // 0059 RAISE 2 R0 R0 - 0x80040C00, // 005A RET 1 R6 + 0x8C1C0D13, // 005A GETMET R7 R6 K19 + 0x7C1C0200, // 005B CALL R7 1 + 0x80040C00, // 005C RET 1 R6 }) ) ); @@ -2056,6 +1853,70 @@ be_local_closure(Matter_Session_set_fabric_device, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: update +********************************************************************/ +be_local_closure(Matter_Session_update, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(last_used), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(rtc), + /* K3 */ be_nested_str_weak(utc), + }), + be_str_weak(update), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0xB8060200, // 0000 GETNGBL R1 K1 + 0x8C040302, // 0001 GETMET R1 R1 K2 + 0x7C040200, // 0002 CALL R1 1 + 0x94040303, // 0003 GETIDX R1 R1 K3 + 0x90020001, // 0004 SETMBR R0 K0 R1 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_PASE +********************************************************************/ +be_local_closure(Matter_Session_is_PASE, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(mode), + /* K1 */ be_nested_str_weak(_PASE), + }), + be_str_weak(is_PASE), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x1C040202, // 0002 EQ R1 R1 R2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_admin_vendor ********************************************************************/ @@ -2085,6 +1946,189 @@ be_local_closure(Matter_Session_get_admin_vendor, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: close +********************************************************************/ +be_local_closure(Matter_Session_close, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[20]) { /* constants */ + /* K0 */ be_nested_str_weak(local_session_id), + /* K1 */ be_nested_str_weak(__future_local_session_id), + /* K2 */ be_nested_str_weak(initiator_session_id), + /* K3 */ be_nested_str_weak(__future_initiator_session_id), + /* K4 */ be_nested_str_weak(counter_rcv), + /* K5 */ be_nested_str_weak(reset), + /* K6 */ be_nested_str_weak(counter_snd), + /* K7 */ be_nested_str_weak(i2rkey), + /* K8 */ be_nested_str_weak(_i2r_privacy), + /* K9 */ be_nested_str_weak(r2ikey), + /* K10 */ be_nested_str_weak(attestation_challenge), + /* K11 */ be_nested_str_weak(introspect), + /* K12 */ be_nested_str_weak(members), + /* K13 */ be_nested_str_weak(get), + /* K14 */ be_nested_str_weak(function), + /* K15 */ be_nested_str_weak(instance), + /* K16 */ be_const_int(0), + /* K17 */ be_nested_str_weak(_), + /* K18 */ be_const_int(1), + /* K19 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(close), + &be_const_str_solidified, + ( &(const binstruction[54]) { /* code */ + 0x88040101, // 0000 GETMBR R1 R0 K1 + 0x90020001, // 0001 SETMBR R0 K0 R1 + 0x88040103, // 0002 GETMBR R1 R0 K3 + 0x90020401, // 0003 SETMBR R0 K2 R1 + 0x88040104, // 0004 GETMBR R1 R0 K4 + 0x8C040305, // 0005 GETMET R1 R1 K5 + 0x7C040200, // 0006 CALL R1 1 + 0x88040106, // 0007 GETMBR R1 R0 K6 + 0x8C040305, // 0008 GETMET R1 R1 K5 + 0x7C040200, // 0009 CALL R1 1 + 0x4C040000, // 000A LDNIL R1 + 0x90020E01, // 000B SETMBR R0 K7 R1 + 0x4C040000, // 000C LDNIL R1 + 0x90021001, // 000D SETMBR R0 K8 R1 + 0x4C040000, // 000E LDNIL R1 + 0x90021201, // 000F SETMBR R0 K9 R1 + 0x4C040000, // 0010 LDNIL R1 + 0x90021401, // 0011 SETMBR R0 K10 R1 + 0xA4061600, // 0012 IMPORT R1 K11 + 0x60080010, // 0013 GETGBL R2 G16 + 0x8C0C030C, // 0014 GETMET R3 R1 K12 + 0x5C140000, // 0015 MOVE R5 R0 + 0x7C0C0400, // 0016 CALL R3 2 + 0x7C080200, // 0017 CALL R2 1 + 0xA8020018, // 0018 EXBLK 0 #0032 + 0x5C0C0400, // 0019 MOVE R3 R2 + 0x7C0C0000, // 001A CALL R3 0 + 0x8C10030D, // 001B GETMET R4 R1 K13 + 0x5C180000, // 001C MOVE R6 R0 + 0x5C1C0600, // 001D MOVE R7 R3 + 0x7C100600, // 001E CALL R4 3 + 0x60140004, // 001F GETGBL R5 G4 + 0x5C180800, // 0020 MOVE R6 R4 + 0x7C140200, // 0021 CALL R5 1 + 0x20140B0E, // 0022 NE R5 R5 K14 + 0x7816000C, // 0023 JMPF R5 #0031 + 0x60140004, // 0024 GETGBL R5 G4 + 0x5C180800, // 0025 MOVE R6 R4 + 0x7C140200, // 0026 CALL R5 1 + 0x20140B0F, // 0027 NE R5 R5 K15 + 0x78160007, // 0028 JMPF R5 #0031 + 0x94140710, // 0029 GETIDX R5 R3 K16 + 0x1C140B11, // 002A EQ R5 R5 K17 + 0x78160004, // 002B JMPF R5 #0031 + 0x94140712, // 002C GETIDX R5 R3 K18 + 0x1C140B11, // 002D EQ R5 R5 K17 + 0x78160001, // 002E JMPF R5 #0031 + 0x4C140000, // 002F LDNIL R5 + 0x90000605, // 0030 SETMBR R0 R3 R5 + 0x7001FFE6, // 0031 JMP #0019 + 0x58080013, // 0032 LDCONST R2 K19 + 0xAC080200, // 0033 CATCH R2 1 0 + 0xB0080000, // 0034 RAISE 2 R0 R0 + 0x80000000, // 0035 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_icac +********************************************************************/ +be_local_closure(Matter_Session_get_icac, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(icac), + }), + be_str_weak(get_icac), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x88040301, // 0001 GETMBR R1 R1 K1 + 0x80040200, // 0002 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: fabric_completed +********************************************************************/ +be_local_closure(Matter_Session_fabric_completed, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(set_no_expiration), + /* K2 */ be_nested_str_weak(set_persist), + /* K3 */ be_nested_str_weak(get_fabric_index), + /* K4 */ be_nested_str_weak(set_fabric_index), + /* K5 */ be_nested_str_weak(_store), + /* K6 */ be_nested_str_weak(next_fabric_idx), + /* K7 */ be_nested_str_weak(add_fabric), + }), + be_str_weak(fabric_completed), + &be_const_str_solidified, + ( &(const binstruction[24]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x88040100, // 0003 GETMBR R1 R0 K0 + 0x8C040302, // 0004 GETMET R1 R1 K2 + 0x500C0200, // 0005 LDBOOL R3 1 0 + 0x7C040400, // 0006 CALL R1 2 + 0x88040100, // 0007 GETMBR R1 R0 K0 + 0x8C040303, // 0008 GETMET R1 R1 K3 + 0x7C040200, // 0009 CALL R1 1 + 0x4C080000, // 000A LDNIL R2 + 0x1C040202, // 000B EQ R1 R1 R2 + 0x78060005, // 000C JMPF R1 #0013 + 0x88040100, // 000D GETMBR R1 R0 K0 + 0x8C040304, // 000E GETMET R1 R1 K4 + 0x880C0105, // 000F GETMBR R3 R0 K5 + 0x8C0C0706, // 0010 GETMET R3 R3 K6 + 0x7C0C0200, // 0011 CALL R3 1 + 0x7C040400, // 0012 CALL R1 2 + 0x88040105, // 0013 GETMBR R1 R0 K5 + 0x8C040307, // 0014 GETMET R1 R1 K7 + 0x880C0100, // 0015 GETMBR R3 R0 K0 + 0x7C040400, // 0016 CALL R1 2 + 0x80000000, // 0017 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_ca_pub ********************************************************************/ @@ -2116,52 +2160,11 @@ be_local_closure(Matter_Session_get_ca_pub, /* name */ /******************************************************************** -** Solidified function: fabric_completed +** Solidified function: save ********************************************************************/ -be_local_closure(Matter_Session_fabric_completed, /* name */ +be_local_closure(Matter_Session_save, /* name */ be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(set_no_expiration), - /* K2 */ be_nested_str_weak(set_persist), - /* K3 */ be_nested_str_weak(_store), - /* K4 */ be_nested_str_weak(add_fabric), - }), - be_str_weak(fabric_completed), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x88040100, // 0003 GETMBR R1 R0 K0 - 0x8C040302, // 0004 GETMET R1 R1 K2 - 0x500C0200, // 0005 LDBOOL R3 1 0 - 0x7C040400, // 0006 CALL R1 2 - 0x88040103, // 0007 GETMBR R1 R0 K3 - 0x8C040304, // 0008 GETMET R1 R1 K4 - 0x880C0100, // 0009 GETMBR R3 R0 K0 - 0x7C040400, // 000A CALL R1 2 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_fabric_id -********************************************************************/ -be_local_closure(Matter_Session_get_fabric_id, /* name */ - be_nested_proto( - 2, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2170,15 +2173,16 @@ be_local_closure(Matter_Session_get_fabric_id, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(fabric_id), + /* K0 */ be_nested_str_weak(_store), + /* K1 */ be_nested_str_weak(save_fabrics), }), - be_str_weak(get_fabric_id), + be_str_weak(save), &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ + ( &(const binstruction[ 4]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x88040301, // 0001 GETMBR R1 R1 K1 - 0x80040200, // 0002 RET 1 R1 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x80000000, // 0003 RET 0 }) ) ); @@ -2251,6 +2255,35 @@ be_local_closure(Matter_Session_is_CASE, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: get_fabric_id +********************************************************************/ +be_local_closure(Matter_Session_get_fabric_id, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(fabric_id), + }), + be_str_weak(get_fabric_id), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x88040301, // 0001 GETMBR R1 R1 K1 + 0x80040200, // 0002 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_pk ********************************************************************/ @@ -2395,6 +2428,35 @@ be_local_closure(Matter_Session_set_fabric_label, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: get_ca +********************************************************************/ +be_local_closure(Matter_Session_get_ca, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(root_ca_certificate), + }), + be_str_weak(get_ca), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x88040301, // 0001 GETMBR R1 R1 K1 + 0x80040200, // 0002 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_admin_subject ********************************************************************/ @@ -2534,11 +2596,11 @@ be_local_closure(Matter_Session_gen_CSR, /* name */ /******************************************************************** -** Solidified function: save +** Solidified function: persist_to_fabric ********************************************************************/ -be_local_closure(Matter_Session_save, /* name */ +be_local_closure(Matter_Session_persist_to_fabric, /* name */ be_nested_proto( - 3, /* nstack */ + 4, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2547,16 +2609,17 @@ be_local_closure(Matter_Session_save, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_store), - /* K1 */ be_nested_str_weak(save_fabrics), + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(add_session), }), - be_str_weak(save), + be_str_weak(persist_to_fabric), &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ + ( &(const binstruction[ 5]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 + 0x5C0C0000, // 0002 MOVE R3 R0 + 0x7C040400, // 0003 CALL R1 2 + 0x80000000, // 0004 RET 0 }) ) ); @@ -2591,11 +2654,11 @@ be_local_closure(Matter_Session_get_fabric, /* name */ /******************************************************************** -** Solidified function: get_icac +** Solidified function: get_i2r_privacy ********************************************************************/ -be_local_closure(Matter_Session_get_icac, /* name */ +be_local_closure(Matter_Session_get_i2r_privacy, /* name */ be_nested_proto( - 2, /* nstack */ + 9, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2603,16 +2666,40 @@ be_local_closure(Matter_Session_get_icac, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(icac), + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(_i2r_privacy), + /* K1 */ be_nested_str_weak(crypto), + /* K2 */ be_nested_str_weak(HKDF_SHA256), + /* K3 */ be_nested_str_weak(derive), + /* K4 */ be_nested_str_weak(get_i2r), + /* K5 */ be_nested_str_weak(fromstring), + /* K6 */ be_nested_str_weak(PrivacyKey), }), - be_str_weak(get_icac), + be_str_weak(get_i2r_privacy), &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ + ( &(const binstruction[22]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x88040301, // 0001 GETMBR R1 R1 K1 - 0x80040200, // 0002 RET 1 R1 + 0x4C080000, // 0001 LDNIL R2 + 0x1C040202, // 0002 EQ R1 R1 R2 + 0x7806000F, // 0003 JMPF R1 #0014 + 0xA4060200, // 0004 IMPORT R1 K1 + 0x8C080302, // 0005 GETMET R2 R1 K2 + 0x7C080200, // 0006 CALL R2 1 + 0x8C080503, // 0007 GETMET R2 R2 K3 + 0x8C100104, // 0008 GETMET R4 R0 K4 + 0x7C100200, // 0009 CALL R4 1 + 0x60140015, // 000A GETGBL R5 G21 + 0x7C140000, // 000B CALL R5 0 + 0x60180015, // 000C GETGBL R6 G21 + 0x7C180000, // 000D CALL R6 0 + 0x8C180D05, // 000E GETMET R6 R6 K5 + 0x58200006, // 000F LDCONST R8 K6 + 0x7C180400, // 0010 CALL R6 2 + 0x541E000F, // 0011 LDINT R7 16 + 0x7C080A00, // 0012 CALL R2 5 + 0x90020002, // 0013 SETMBR R0 K0 R2 + 0x88040100, // 0014 GETMBR R1 R0 K0 + 0x80040200, // 0015 RET 1 R1 }) ) ); @@ -2682,79 +2769,79 @@ be_local_class(Matter_Session, &be_class_Matter_Expirable, be_nested_map(73, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(set_mode, 32), be_const_closure(Matter_Session_set_mode_closure) }, - { be_const_key_weak(get_ipk_epoch_key, 66), be_const_closure(Matter_Session_get_ipk_epoch_key_closure) }, + { be_const_key_weak(set_mode, 61), be_const_closure(Matter_Session_set_mode_closure) }, + { be_const_key_weak(get_ipk_epoch_key, 72), be_const_closure(Matter_Session_get_ipk_epoch_key_closure) }, { be_const_key_weak(last_used, -1), be_const_var(6) }, - { be_const_key_weak(attestation_challenge, 33), be_const_var(21) }, + { be_const_key_weak(attestation_challenge, 26), be_const_var(21) }, { be_const_key_weak(resumption_id, -1), be_const_var(24) }, - { be_const_key_weak(set_mode_CASE, 55), be_const_closure(Matter_Session_set_mode_CASE_closure) }, - { be_const_key_weak(get_mode, 43), be_const_closure(Matter_Session_get_mode_closure) }, - { be_const_key_weak(set_admin_subject_vendor, 13), be_const_closure(Matter_Session_set_admin_subject_vendor_closure) }, + { be_const_key_weak(set_mode_CASE, 50), be_const_closure(Matter_Session_set_mode_CASE_closure) }, + { be_const_key_weak(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, + { be_const_key_weak(set_admin_subject_vendor, 6), be_const_closure(Matter_Session_set_admin_subject_vendor_closure) }, { be_const_key_weak(_ip, -1), be_const_var(13) }, { be_const_key_weak(shared_secret, -1), be_const_var(25) }, - { be_const_key_weak(get_icac, 46), be_const_closure(Matter_Session_get_icac_closure) }, - { be_const_key_weak(_port, 39), be_const_var(14) }, + { be_const_key_weak(get_mode, 43), be_const_closure(Matter_Session_get_mode_closure) }, + { be_const_key_weak(_port, 33), be_const_var(14) }, { be_const_key_weak(init, -1), be_const_closure(Matter_Session_init_closure) }, - { be_const_key_weak(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, + { be_const_key_weak(get_i2r_privacy, -1), be_const_closure(Matter_Session_get_i2r_privacy_closure) }, { be_const_key_weak(set_mode_PASE, -1), be_const_closure(Matter_Session_set_mode_PASE_closure) }, { be_const_key_weak(set_ca, -1), be_const_closure(Matter_Session_set_ca_closure) }, - { be_const_key_weak(initiator_session_id, -1), be_const_var(4) }, - { be_const_key_weak(i2rkey, 26), be_const_var(18) }, + { be_const_key_weak(_breadcrumb, -1), be_const_var(23) }, + { be_const_key_weak(is_PASE, -1), be_const_closure(Matter_Session_is_PASE_closure) }, { be_const_key_weak(get_fabric, -1), be_const_closure(Matter_Session_get_fabric_closure) }, { be_const_key_weak(r2ikey, -1), be_const_var(19) }, { be_const_key_weak(_PASE, -1), be_const_int(1) }, { be_const_key_weak(get_fabric_compressed, -1), be_const_closure(Matter_Session_get_fabric_compressed_closure) }, - { be_const_key_weak(get_i2r_privacy, 68), be_const_closure(Matter_Session_get_i2r_privacy_closure) }, - { be_const_key_weak(get_r2i, 67), be_const_closure(Matter_Session_get_r2i_closure) }, + { be_const_key_weak(_CASE, 13), be_const_int(2) }, + { be_const_key_weak(get_r2i, 68), be_const_closure(Matter_Session_get_r2i_closure) }, { be_const_key_weak(get_i2r, -1), be_const_closure(Matter_Session_get_i2r_closure) }, { be_const_key_weak(peer_node_id, -1), be_const_var(22) }, - { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Session_fromjson_closure) }, + { be_const_key_weak(__future_local_session_id, -1), be_const_var(9) }, { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Session_get_ipk_group_key_closure) }, - { be_const_key_weak(save, -1), be_const_closure(Matter_Session_save_closure) }, + { be_const_key_weak(tojson, 66), be_const_closure(Matter_Session_tojson_closure) }, { be_const_key_weak(get_ac, -1), be_const_closure(Matter_Session_get_ac_closure) }, { be_const_key_weak(get_fabric_label, -1), be_const_closure(Matter_Session_get_fabric_label_closure) }, { be_const_key_weak(get_noc, -1), be_const_closure(Matter_Session_get_noc_closure) }, - { be_const_key_weak(get_admin_vendor, 17), be_const_closure(Matter_Session_get_admin_vendor_closure) }, - { be_const_key_weak(__future_local_session_id, -1), be_const_var(9) }, - { be_const_key_weak(source_node_id, -1), be_const_var(7) }, + { be_const_key_weak(gen_CSR, -1), be_const_closure(Matter_Session_gen_CSR_closure) }, + { be_const_key_weak(get_admin_subject, 36), be_const_closure(Matter_Session_get_admin_subject_closure) }, + { be_const_key_weak(counter_snd, 28), be_const_var(11) }, { be_const_key_weak(_store, -1), be_const_var(0) }, - { be_const_key_weak(__Msg1, -1), be_const_var(26) }, - { be_const_key_weak(tojson, 61), be_const_closure(Matter_Session_tojson_closure) }, - { be_const_key_weak(close, 0), be_const_closure(Matter_Session_close_closure) }, - { be_const_key_weak(get_admin_subject, 40), be_const_closure(Matter_Session_get_admin_subject_closure) }, { be_const_key_weak(set_fabric_label, -1), be_const_closure(Matter_Session_set_fabric_label_closure) }, + { be_const_key_weak(local_session_id, 34), be_const_var(3) }, + { be_const_key_weak(i2rkey, 0), be_const_var(18) }, + { be_const_key_weak(_fabric, 55), be_const_var(2) }, + { be_const_key_weak(_message_handler, -1), be_const_var(15) }, { be_const_key_weak(mode, -1), be_const_var(1) }, - { be_const_key_weak(is_PASE, 56), be_const_closure(Matter_Session_is_PASE_closure) }, + { be_const_key_weak(set_ipk_epoch_key, 59), be_const_closure(Matter_Session_set_ipk_epoch_key_closure) }, { be_const_key_weak(set_noc, -1), be_const_closure(Matter_Session_set_noc_closure) }, { be_const_key_weak(__chunked_attr_reports, -1), be_const_var(28) }, - { be_const_key_weak(counter_rcv, 36), be_const_var(10) }, - { be_const_key_weak(_exchange_id, 57), be_const_var(12) }, - { be_const_key_weak(set_keys, -1), be_const_closure(Matter_Session_set_keys_closure) }, - { be_const_key_weak(set_fabric_device, 10), be_const_closure(Matter_Session_set_fabric_device_closure) }, - { be_const_key_weak(is_CASE, -1), be_const_closure(Matter_Session_is_CASE_closure) }, - { be_const_key_weak(__future_initiator_session_id, -1), be_const_var(8) }, - { be_const_key_weak(get_pk, -1), be_const_closure(Matter_Session_get_pk_closure) }, - { be_const_key_weak(_message_handler, 50), be_const_var(15) }, + { be_const_key_weak(counter_rcv, 57), be_const_var(10) }, { be_const_key_weak(fabric_candidate, -1), be_const_closure(Matter_Session_fabric_candidate_closure) }, - { be_const_key_weak(__counter_insecure_snd, 6), be_const_var(17) }, + { be_const_key_weak(set_keys, -1), be_const_closure(Matter_Session_set_keys_closure) }, + { be_const_key_weak(set_fabric_device, 39), be_const_closure(Matter_Session_set_fabric_device_closure) }, + { be_const_key_weak(is_CASE, -1), be_const_closure(Matter_Session_is_CASE_closure) }, { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Session_get_fabric_id_closure) }, - { be_const_key_weak(fabric_completed, 72), be_const_closure(Matter_Session_fabric_completed_closure) }, - { be_const_key_weak(_fabric, -1), be_const_var(2) }, - { be_const_key_weak(get_ca, 34), be_const_closure(Matter_Session_get_ca_closure) }, - { be_const_key_weak(counter_snd, -1), be_const_var(11) }, - { be_const_key_weak(gen_CSR, 28), be_const_closure(Matter_Session_gen_CSR_closure) }, - { be_const_key_weak(local_session_id, 59), be_const_var(3) }, - { be_const_key_weak(__counter_insecure_rcv, -1), be_const_var(16) }, + { be_const_key_weak(get_pk, -1), be_const_closure(Matter_Session_get_pk_closure) }, + { be_const_key_weak(__future_initiator_session_id, 40), be_const_var(8) }, + { be_const_key_weak(_counter_insecure_rcv, 46), be_const_var(16) }, + { be_const_key_weak(_counter_insecure_snd, 10), be_const_var(17) }, + { be_const_key_weak(_exchange_id, 56), be_const_var(12) }, + { be_const_key_weak(get_icac, -1), be_const_closure(Matter_Session_get_icac_closure) }, + { be_const_key_weak(__Msg1, -1), be_const_var(26) }, + { be_const_key_weak(get_ca, -1), be_const_closure(Matter_Session_get_ca_closure) }, + { be_const_key_weak(fabric_completed, 17), be_const_closure(Matter_Session_fabric_completed_closure) }, + { be_const_key_weak(save, 32), be_const_closure(Matter_Session_save_closure) }, + { be_const_key_weak(close, 62), be_const_closure(Matter_Session_close_closure) }, + { be_const_key_weak(get_admin_vendor, 67), be_const_closure(Matter_Session_get_admin_vendor_closure) }, { be_const_key_weak(get_ca_pub, 18), be_const_closure(Matter_Session_get_ca_pub_closure) }, { be_const_key_weak(created, -1), be_const_var(5) }, - { be_const_key_weak(_breadcrumb, 16), be_const_var(23) }, - { be_const_key_weak(__Msg2, -1), be_const_var(27) }, + { be_const_key_weak(initiator_session_id, 16), be_const_var(4) }, + { be_const_key_weak(_source_node_id, -1), be_const_var(7) }, + { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Session_fromjson_closure) }, { be_const_key_weak(_i2r_privacy, -1), be_const_var(20) }, - { be_const_key_weak(_CASE, -1), be_const_int(2) }, { be_const_key_weak(get_device_id, 4), be_const_closure(Matter_Session_get_device_id_closure) }, { be_const_key_weak(persist_to_fabric, 3), be_const_closure(Matter_Session_persist_to_fabric_closure) }, { be_const_key_weak(update, 2), be_const_closure(Matter_Session_update_closure) }, - { be_const_key_weak(set_ipk_epoch_key, -1), be_const_closure(Matter_Session_set_ipk_epoch_key_closure) }, + { be_const_key_weak(__Msg2, -1), be_const_var(27) }, })), be_str_weak(Matter_Session) ); @@ -2768,141 +2855,6 @@ void be_load_Matter_Session_class(bvm *vm) { extern const bclass be_class_Matter_Session_Store; -/******************************************************************** -** Solidified function: count_active_fabrics -********************************************************************/ -be_local_closure(Matter_Session_Store_count_active_fabrics, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(remove_expired), - /* K1 */ be_nested_str_weak(fabrics), - /* K2 */ be_nested_str_weak(count_persistables), - }), - be_str_weak(count_active_fabrics), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x88040101, // 0002 GETMBR R1 R0 K1 - 0x8C040302, // 0003 GETMET R1 R1 K2 - 0x7C040200, // 0004 CALL R1 1 - 0x80040200, // 0005 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_session -********************************************************************/ -be_local_closure(Matter_Session_Store_remove_session, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(sessions), - /* K2 */ be_nested_str_weak(remove), - /* K3 */ be_const_int(1), - }), - be_str_weak(remove_session), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x6010000C, // 0002 GETGBL R4 G12 - 0x88140101, // 0003 GETMBR R5 R0 K1 - 0x7C100200, // 0004 CALL R4 1 - 0x14100404, // 0005 LT R4 R2 R4 - 0x78120008, // 0006 JMPF R4 #0010 - 0x94100602, // 0007 GETIDX R4 R3 R2 - 0x1C100801, // 0008 EQ R4 R4 R1 - 0x78120003, // 0009 JMPF R4 #000E - 0x8C100702, // 000A GETMET R4 R3 K2 - 0x5C180400, // 000B MOVE R6 R2 - 0x7C100400, // 000C CALL R4 2 - 0x70020000, // 000D JMP #000F - 0x00080503, // 000E ADD R2 R2 K3 - 0x7001FFF1, // 000F JMP #0002 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_session_source_id_unsecure -********************************************************************/ -be_local_closure(Matter_Session_Store_find_session_source_id_unsecure, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(get_session_by_source_node_id), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(Session), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str_weak(source_node_id), - /* K5 */ be_nested_str_weak(sessions), - /* K6 */ be_nested_str_weak(push), - /* K7 */ be_nested_str_weak(set_expire_in_seconds), - /* K8 */ be_nested_str_weak(update), - }), - be_str_weak(find_session_source_id_unsecure), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x8C0C0100, // 0000 GETMET R3 R0 K0 - 0x5C140200, // 0001 MOVE R5 R1 - 0x7C0C0400, // 0002 CALL R3 2 - 0x4C100000, // 0003 LDNIL R4 - 0x1C100604, // 0004 EQ R4 R3 R4 - 0x7812000B, // 0005 JMPF R4 #0012 - 0xB8120200, // 0006 GETNGBL R4 K1 - 0x8C100902, // 0007 GETMET R4 R4 K2 - 0x5C180000, // 0008 MOVE R6 R0 - 0x581C0003, // 0009 LDCONST R7 K3 - 0x58200003, // 000A LDCONST R8 K3 - 0x7C100800, // 000B CALL R4 4 - 0x5C0C0800, // 000C MOVE R3 R4 - 0x900E0801, // 000D SETMBR R3 K4 R1 - 0x88100105, // 000E GETMBR R4 R0 K5 - 0x8C100906, // 000F GETMET R4 R4 K6 - 0x5C180600, // 0010 MOVE R6 R3 - 0x7C100400, // 0011 CALL R4 2 - 0x8C100707, // 0012 GETMET R4 R3 K7 - 0x5C180400, // 0013 MOVE R6 R2 - 0x7C100400, // 0014 CALL R4 2 - 0x8C100708, // 0015 GETMET R4 R3 K8 - 0x7C100200, // 0016 CALL R4 1 - 0x80040600, // 0017 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: load_fabrics ********************************************************************/ @@ -3075,49 +3027,11 @@ be_local_closure(Matter_Session_Store_load_fabrics, /* name */ /******************************************************************** -** Solidified function: add_session +** Solidified function: gen_local_session_id ********************************************************************/ -be_local_closure(Matter_Session_Store_add_session, /* name */ +be_local_closure(Matter_Session_Store_gen_local_session_id, /* name */ be_nested_proto( 6, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(set_expire_in_seconds), - /* K1 */ be_nested_str_weak(sessions), - /* K2 */ be_nested_str_weak(push), - }), - be_str_weak(add_session), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x4C0C0000, // 0000 LDNIL R3 - 0x200C0403, // 0001 NE R3 R2 R3 - 0x780E0002, // 0002 JMPF R3 #0006 - 0x8C0C0300, // 0003 GETMET R3 R1 K0 - 0x5C140400, // 0004 MOVE R5 R2 - 0x7C0C0400, // 0005 CALL R3 2 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x8C0C0702, // 0007 GETMET R3 R3 K2 - 0x5C140200, // 0008 MOVE R5 R1 - 0x7C0C0400, // 0009 CALL R3 2 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: sessions_active -********************************************************************/ -be_local_closure(Matter_Session_Store_sessions_active, /* name */ - be_nested_proto( - 7, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3126,71 +3040,35 @@ be_local_closure(Matter_Session_Store_sessions_active, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(sessions), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_const_int(1), + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(random), + /* K2 */ be_const_int(2), + /* K3 */ be_nested_str_weak(get), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(get_session_by_local_session_id), }), - be_str_weak(sessions_active), + be_str_weak(gen_local_session_id), &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040012, // 0000 GETGBL R1 G18 - 0x7C040000, // 0001 CALL R1 0 - 0x58080000, // 0002 LDCONST R2 K0 - 0x600C000C, // 0003 GETGBL R3 G12 - 0x88100101, // 0004 GETMBR R4 R0 K1 - 0x7C0C0200, // 0005 CALL R3 1 - 0x140C0403, // 0006 LT R3 R2 R3 - 0x780E000C, // 0007 JMPF R3 #0015 - 0x880C0101, // 0008 GETMBR R3 R0 K1 - 0x940C0602, // 0009 GETIDX R3 R3 R2 - 0x8C100702, // 000A GETMET R4 R3 K2 - 0x7C100200, // 000B CALL R4 1 - 0x78120005, // 000C JMPF R4 #0013 - 0x8C100703, // 000D GETMET R4 R3 K3 - 0x7C100200, // 000E CALL R4 1 - 0x78120002, // 000F JMPF R4 #0013 - 0x8C100304, // 0010 GETMET R4 R1 K4 - 0x5C180600, // 0011 MOVE R6 R3 - 0x7C100400, // 0012 CALL R4 2 - 0x00080505, // 0013 ADD R2 R2 K5 - 0x7001FFED, // 0014 JMP #0003 - 0x80040200, // 0015 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: active_fabrics -********************************************************************/ -be_local_closure(Matter_Session_Store_active_fabrics, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(remove_expired), - /* K1 */ be_nested_str_weak(fabrics), - /* K2 */ be_nested_str_weak(persistables), - }), - be_str_weak(active_fabrics), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x88040101, // 0002 GETMBR R1 R0 K1 - 0x8C040302, // 0003 GETMET R1 R1 K2 - 0x7C040200, // 0004 CALL R1 1 - 0x80040200, // 0005 RET 1 R1 + ( &(const binstruction[19]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x50080200, // 0001 LDBOOL R2 1 0 + 0x780A000E, // 0002 JMPF R2 #0012 + 0x8C080301, // 0003 GETMET R2 R1 K1 + 0x58100002, // 0004 LDCONST R4 K2 + 0x7C080400, // 0005 CALL R2 2 + 0x8C080503, // 0006 GETMET R2 R2 K3 + 0x58100004, // 0007 LDCONST R4 K4 + 0x58140002, // 0008 LDCONST R5 K2 + 0x7C080600, // 0009 CALL R2 3 + 0x8C0C0105, // 000A GETMET R3 R0 K5 + 0x5C140400, // 000B MOVE R5 R2 + 0x7C0C0400, // 000C CALL R3 2 + 0x4C100000, // 000D LDNIL R4 + 0x1C0C0604, // 000E EQ R3 R3 R4 + 0x780E0000, // 000F JMPF R3 #0011 + 0x80040400, // 0010 RET 1 R2 + 0x7001FFEE, // 0011 JMP #0001 + 0x80000000, // 0012 RET 0 }) ) ); @@ -3235,117 +3113,11 @@ be_local_closure(Matter_Session_Store_init, /* name */ /******************************************************************** -** Solidified function: find_session_by_resumption_id +** Solidified function: next_fabric_idx ********************************************************************/ -be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name */ +be_local_closure(Matter_Session_Store_next_fabric_idx, /* name */ be_nested_proto( 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(sessions), - /* K2 */ be_nested_str_weak(resumption_id), - /* K3 */ be_nested_str_weak(shared_secret), - /* K4 */ be_nested_str_weak(update), - /* K5 */ be_const_int(1), - }), - be_str_weak(find_session_by_resumption_id), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x5C080200, // 0000 MOVE R2 R1 - 0x740A0001, // 0001 JMPT R2 #0004 - 0x4C080000, // 0002 LDNIL R2 - 0x80040400, // 0003 RET 1 R2 - 0x58080000, // 0004 LDCONST R2 K0 - 0x880C0101, // 0005 GETMBR R3 R0 K1 - 0x6010000C, // 0006 GETGBL R4 G12 - 0x5C140600, // 0007 MOVE R5 R3 - 0x7C100200, // 0008 CALL R4 1 - 0x14100404, // 0009 LT R4 R2 R4 - 0x7812000C, // 000A JMPF R4 #0018 - 0x94100602, // 000B GETIDX R4 R3 R2 - 0x88140902, // 000C GETMBR R5 R4 K2 - 0x1C140A01, // 000D EQ R5 R5 R1 - 0x78160006, // 000E JMPF R5 #0016 - 0x88140903, // 000F GETMBR R5 R4 K3 - 0x4C180000, // 0010 LDNIL R6 - 0x20140A06, // 0011 NE R5 R5 R6 - 0x78160002, // 0012 JMPF R5 #0016 - 0x8C140904, // 0013 GETMET R5 R4 K4 - 0x7C140200, // 0014 CALL R5 1 - 0x80040800, // 0015 RET 1 R4 - 0x00080505, // 0016 ADD R2 R2 K5 - 0x7001FFED, // 0017 JMP #0006 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_session_by_source_node_id -********************************************************************/ -be_local_closure(Matter_Session_Store_get_session_by_source_node_id, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str_weak(source_node_id), - /* K3 */ be_nested_str_weak(update), - /* K4 */ be_const_int(1), - }), - be_str_weak(get_session_by_source_node_id), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0001, // 0002 JMPF R2 #0005 - 0x4C080000, // 0003 LDNIL R2 - 0x80040400, // 0004 RET 1 R2 - 0x6008000C, // 0005 GETGBL R2 G12 - 0x880C0100, // 0006 GETMBR R3 R0 K0 - 0x7C080200, // 0007 CALL R2 1 - 0x580C0001, // 0008 LDCONST R3 K1 - 0x88100100, // 0009 GETMBR R4 R0 K0 - 0x14140602, // 000A LT R5 R3 R2 - 0x78160008, // 000B JMPF R5 #0015 - 0x94140803, // 000C GETIDX R5 R4 R3 - 0x88180B02, // 000D GETMBR R6 R5 K2 - 0x1C180C01, // 000E EQ R6 R6 R1 - 0x781A0002, // 000F JMPF R6 #0013 - 0x8C180B03, // 0010 GETMET R6 R5 K3 - 0x7C180200, // 0011 CALL R6 1 - 0x80040A00, // 0012 RET 1 R5 - 0x000C0704, // 0013 ADD R3 R3 K4 - 0x7001FFF4, // 0014 JMP #000A - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_expired -********************************************************************/ -be_local_closure(Matter_Session_Store_remove_expired, /* name */ - be_nested_proto( - 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3353,21 +3125,42 @@ be_local_closure(Matter_Session_Store_remove_expired, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(every_second), - /* K2 */ be_nested_str_weak(fabrics), + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(remove_expired), + /* K1 */ be_const_int(1), + /* K2 */ be_nested_str_weak(active_fabrics), + /* K3 */ be_nested_str_weak(fabric_index), + /* K4 */ be_nested_str_weak(int), + /* K5 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(remove_expired), + be_str_weak(next_fabric_idx), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x8C040301, // 0004 GETMET R1 R1 K1 - 0x7C040200, // 0005 CALL R1 1 - 0x80000000, // 0006 RET 0 + ( &(const binstruction[25]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x58040001, // 0002 LDCONST R1 K1 + 0x60080010, // 0003 GETGBL R2 G16 + 0x8C0C0102, // 0004 GETMET R3 R0 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x7C080200, // 0006 CALL R2 1 + 0xA802000C, // 0007 EXBLK 0 #0015 + 0x5C0C0400, // 0008 MOVE R3 R2 + 0x7C0C0000, // 0009 CALL R3 0 + 0x88100703, // 000A GETMBR R4 R3 K3 + 0x60140004, // 000B GETGBL R5 G4 + 0x5C180800, // 000C MOVE R6 R4 + 0x7C140200, // 000D CALL R5 1 + 0x1C140B04, // 000E EQ R5 R5 K4 + 0x78160003, // 000F JMPF R5 #0014 + 0x28140801, // 0010 GE R5 R4 R1 + 0x78160001, // 0011 JMPF R5 #0014 + 0x00140901, // 0012 ADD R5 R4 K1 + 0x5C040A00, // 0013 MOVE R1 R5 + 0x7001FFF2, // 0014 JMP #0008 + 0x58080005, // 0015 LDCONST R2 K5 + 0xAC080200, // 0016 CATCH R2 1 0 + 0xB0080000, // 0017 RAISE 2 R0 R0 + 0x80040200, // 0018 RET 1 R1 }) ) ); @@ -3431,11 +3224,94 @@ be_local_closure(Matter_Session_Store_remove_redundant_fabric, /* name */ /******************************************************************** -** Solidified function: add_fabric +** Solidified function: sessions_active ********************************************************************/ -be_local_closure(Matter_Session_Store_add_fabric, /* name */ +be_local_closure(Matter_Session_Store_sessions_active, /* name */ be_nested_proto( - 5, /* nstack */ + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(sessions), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_const_int(1), + }), + be_str_weak(sessions_active), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60040012, // 0000 GETGBL R1 G18 + 0x7C040000, // 0001 CALL R1 0 + 0x58080000, // 0002 LDCONST R2 K0 + 0x600C000C, // 0003 GETGBL R3 G12 + 0x88100101, // 0004 GETMBR R4 R0 K1 + 0x7C0C0200, // 0005 CALL R3 1 + 0x140C0403, // 0006 LT R3 R2 R3 + 0x780E000C, // 0007 JMPF R3 #0015 + 0x880C0101, // 0008 GETMBR R3 R0 K1 + 0x940C0602, // 0009 GETIDX R3 R3 R2 + 0x8C100702, // 000A GETMET R4 R3 K2 + 0x7C100200, // 000B CALL R4 1 + 0x78120005, // 000C JMPF R4 #0013 + 0x8C100703, // 000D GETMET R4 R3 K3 + 0x7C100200, // 000E CALL R4 1 + 0x78120002, // 000F JMPF R4 #0013 + 0x8C100304, // 0010 GETMET R4 R1 K4 + 0x5C180600, // 0011 MOVE R6 R3 + 0x7C100400, // 0012 CALL R4 2 + 0x00080505, // 0013 ADD R2 R2 K5 + 0x7001FFED, // 0014 JMP #0003 + 0x80040200, // 0015 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: create_fabric +********************************************************************/ +be_local_closure(Matter_Session_Store_create_fabric, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(Fabric), + }), + be_str_weak(create_fabric), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x5C0C0000, // 0002 MOVE R3 R0 + 0x7C040400, // 0003 CALL R1 2 + 0x80040200, // 0004 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: remove_session +********************************************************************/ +be_local_closure(Matter_Session_Store_remove_session, /* name */ + be_nested_proto( + 7, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3443,40 +3319,143 @@ be_local_closure(Matter_Session_Store_add_fabric, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(Fabric), - /* K2 */ be_nested_str_weak(value_error), - /* K3 */ be_nested_str_weak(must_X20be_X20of_X20class_X20matter_X2EFabric), - /* K4 */ be_nested_str_weak(fabrics), - /* K5 */ be_nested_str_weak(find), - /* K6 */ be_nested_str_weak(remove_redundant_fabric), - /* K7 */ be_nested_str_weak(push), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(sessions), + /* K2 */ be_nested_str_weak(remove), + /* K3 */ be_const_int(1), }), - be_str_weak(add_fabric), + be_str_weak(remove_session), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x58080000, // 0000 LDCONST R2 K0 + 0x880C0101, // 0001 GETMBR R3 R0 K1 + 0x6010000C, // 0002 GETGBL R4 G12 + 0x88140101, // 0003 GETMBR R5 R0 K1 + 0x7C100200, // 0004 CALL R4 1 + 0x14100404, // 0005 LT R4 R2 R4 + 0x78120008, // 0006 JMPF R4 #0010 + 0x94100602, // 0007 GETIDX R4 R3 R2 + 0x1C100801, // 0008 EQ R4 R4 R1 + 0x78120003, // 0009 JMPF R4 #000E + 0x8C100702, // 000A GETMET R4 R3 K2 + 0x5C180400, // 000B MOVE R6 R2 + 0x7C100400, // 000C CALL R4 2 + 0x70020000, // 000D JMP #000F + 0x00080503, // 000E ADD R2 R2 K3 + 0x7001FFF1, // 000F JMP #0002 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_second +********************************************************************/ +be_local_closure(Matter_Session_Store_every_second, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(remove_expired), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x80000000, // 0002 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: count_active_fabrics +********************************************************************/ +be_local_closure(Matter_Session_Store_count_active_fabrics, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(remove_expired), + /* K1 */ be_nested_str_weak(fabrics), + /* K2 */ be_nested_str_weak(count_persistables), + }), + be_str_weak(count_active_fabrics), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x88040101, // 0002 GETMBR R1 R0 K1 + 0x8C040302, // 0003 GETMET R1 R1 K2 + 0x7C040200, // 0004 CALL R1 1 + 0x80040200, // 0005 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_session_by_source_node_id +********************************************************************/ +be_local_closure(Matter_Session_Store_get_session_by_source_node_id, /* name */ + be_nested_proto( + 8, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_const_int(0), + /* K2 */ be_nested_str_weak(_source_node_id), + /* K3 */ be_nested_str_weak(update), + /* K4 */ be_const_int(1), + }), + be_str_weak(get_session_by_source_node_id), &be_const_str_solidified, ( &(const binstruction[22]) { /* code */ - 0x6008000F, // 0000 GETGBL R2 G15 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0xB8120000, // 0002 GETNGBL R4 K0 - 0x88100901, // 0003 GETMBR R4 R4 K1 - 0x7C080400, // 0004 CALL R2 2 - 0x740A0000, // 0005 JMPT R2 #0007 - 0xB0060503, // 0006 RAISE 1 K2 K3 - 0x88080104, // 0007 GETMBR R2 R0 K4 - 0x8C080505, // 0008 GETMET R2 R2 K5 - 0x5C100200, // 0009 MOVE R4 R1 - 0x7C080400, // 000A CALL R2 2 - 0x4C0C0000, // 000B LDNIL R3 - 0x1C080403, // 000C EQ R2 R2 R3 - 0x780A0006, // 000D JMPF R2 #0015 - 0x8C080106, // 000E GETMET R2 R0 K6 - 0x5C100200, // 000F MOVE R4 R1 - 0x7C080400, // 0010 CALL R2 2 - 0x88080104, // 0011 GETMBR R2 R0 K4 - 0x8C080507, // 0012 GETMET R2 R2 K7 - 0x5C100200, // 0013 MOVE R4 R1 - 0x7C080400, // 0014 CALL R2 2 + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x780A0001, // 0002 JMPF R2 #0005 + 0x4C080000, // 0003 LDNIL R2 + 0x80040400, // 0004 RET 1 R2 + 0x6008000C, // 0005 GETGBL R2 G12 + 0x880C0100, // 0006 GETMBR R3 R0 K0 + 0x7C080200, // 0007 CALL R2 1 + 0x580C0001, // 0008 LDCONST R3 K1 + 0x88100100, // 0009 GETMBR R4 R0 K0 + 0x14140602, // 000A LT R5 R3 R2 + 0x78160008, // 000B JMPF R5 #0015 + 0x94140803, // 000C GETIDX R5 R4 R3 + 0x88180B02, // 000D GETMBR R6 R5 K2 + 0x1C180C01, // 000E EQ R6 R6 R1 + 0x781A0002, // 000F JMPF R6 #0013 + 0x8C180B03, // 0010 GETMET R6 R5 K3 + 0x7C180200, // 0011 CALL R6 1 + 0x80040A00, // 0012 RET 1 R5 + 0x000C0704, // 0013 ADD R3 R3 K4 + 0x7001FFF4, // 0014 JMP #000A 0x80000000, // 0015 RET 0 }) ) @@ -3484,6 +3463,63 @@ be_local_closure(Matter_Session_Store_add_fabric, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: find_session_source_id_unsecure +********************************************************************/ +be_local_closure(Matter_Session_Store_find_session_source_id_unsecure, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(get_session_by_source_node_id), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(Session), + /* K3 */ be_const_int(0), + /* K4 */ be_nested_str_weak(_source_node_id), + /* K5 */ be_nested_str_weak(sessions), + /* K6 */ be_nested_str_weak(push), + /* K7 */ be_nested_str_weak(set_expire_in_seconds), + /* K8 */ be_nested_str_weak(update), + }), + be_str_weak(find_session_source_id_unsecure), + &be_const_str_solidified, + ( &(const binstruction[24]) { /* code */ + 0x8C0C0100, // 0000 GETMET R3 R0 K0 + 0x5C140200, // 0001 MOVE R5 R1 + 0x7C0C0400, // 0002 CALL R3 2 + 0x4C100000, // 0003 LDNIL R4 + 0x1C100604, // 0004 EQ R4 R3 R4 + 0x7812000B, // 0005 JMPF R4 #0012 + 0xB8120200, // 0006 GETNGBL R4 K1 + 0x8C100902, // 0007 GETMET R4 R4 K2 + 0x5C180000, // 0008 MOVE R6 R0 + 0x581C0003, // 0009 LDCONST R7 K3 + 0x58200003, // 000A LDCONST R8 K3 + 0x7C100800, // 000B CALL R4 4 + 0x5C0C0800, // 000C MOVE R3 R4 + 0x900E0801, // 000D SETMBR R3 K4 R1 + 0x88100105, // 000E GETMBR R4 R0 K5 + 0x8C100906, // 000F GETMET R4 R4 K6 + 0x5C180600, // 0010 MOVE R6 R3 + 0x7C100400, // 0011 CALL R4 2 + 0x8C100707, // 0012 GETMET R4 R3 K7 + 0x5C180400, // 0013 MOVE R6 R2 + 0x7C100400, // 0014 CALL R4 2 + 0x8C100708, // 0015 GETMET R4 R3 K8 + 0x7C100200, // 0016 CALL R4 1 + 0x80040600, // 0017 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: save_fabrics ********************************************************************/ @@ -3618,55 +3654,6 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: gen_local_session_id -********************************************************************/ -be_local_closure(Matter_Session_Store_gen_local_session_id, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(random), - /* K2 */ be_const_int(2), - /* K3 */ be_nested_str_weak(get), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(get_session_by_local_session_id), - }), - be_str_weak(gen_local_session_id), - &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x50080200, // 0001 LDBOOL R2 1 0 - 0x780A000E, // 0002 JMPF R2 #0012 - 0x8C080301, // 0003 GETMET R2 R1 K1 - 0x58100002, // 0004 LDCONST R4 K2 - 0x7C080400, // 0005 CALL R2 2 - 0x8C080503, // 0006 GETMET R2 R2 K3 - 0x58100004, // 0007 LDCONST R4 K4 - 0x58140002, // 0008 LDCONST R5 K2 - 0x7C080600, // 0009 CALL R2 3 - 0x8C0C0105, // 000A GETMET R3 R0 K5 - 0x5C140400, // 000B MOVE R5 R2 - 0x7C0C0400, // 000C CALL R3 2 - 0x4C100000, // 000D LDNIL R4 - 0x1C0C0604, // 000E EQ R3 R3 R4 - 0x780E0000, // 000F JMPF R3 #0011 - 0x80040400, // 0010 RET 1 R2 - 0x7001FFEE, // 0011 JMP #0001 - 0x80000000, // 0012 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: get_session_by_local_session_id ********************************************************************/ @@ -3719,11 +3706,11 @@ be_local_closure(Matter_Session_Store_get_session_by_local_session_id, /* name /******************************************************************** -** Solidified function: create_fabric +** Solidified function: remove_expired ********************************************************************/ -be_local_closure(Matter_Session_Store_create_fabric, /* name */ +be_local_closure(Matter_Session_Store_remove_expired, /* name */ be_nested_proto( - 4, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3731,18 +3718,130 @@ be_local_closure(Matter_Session_Store_create_fabric, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(every_second), + /* K2 */ be_nested_str_weak(fabrics), + }), + be_str_weak(remove_expired), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x88040102, // 0003 GETMBR R1 R0 K2 + 0x8C040301, // 0004 GETMET R1 R1 K1 + 0x7C040200, // 0005 CALL R1 1 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: add_fabric +********************************************************************/ +be_local_closure(Matter_Session_Store_add_fabric, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ /* K0 */ be_nested_str_weak(matter), /* K1 */ be_nested_str_weak(Fabric), + /* K2 */ be_nested_str_weak(value_error), + /* K3 */ be_nested_str_weak(must_X20be_X20of_X20class_X20matter_X2EFabric), + /* K4 */ be_nested_str_weak(fabrics), + /* K5 */ be_nested_str_weak(find), + /* K6 */ be_nested_str_weak(remove_redundant_fabric), + /* K7 */ be_nested_str_weak(push), }), - be_str_weak(create_fabric), + be_str_weak(add_fabric), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x80040200, // 0004 RET 1 R1 + ( &(const binstruction[22]) { /* code */ + 0x6008000F, // 0000 GETGBL R2 G15 + 0x5C0C0200, // 0001 MOVE R3 R1 + 0xB8120000, // 0002 GETNGBL R4 K0 + 0x88100901, // 0003 GETMBR R4 R4 K1 + 0x7C080400, // 0004 CALL R2 2 + 0x740A0000, // 0005 JMPT R2 #0007 + 0xB0060503, // 0006 RAISE 1 K2 K3 + 0x88080104, // 0007 GETMBR R2 R0 K4 + 0x8C080505, // 0008 GETMET R2 R2 K5 + 0x5C100200, // 0009 MOVE R4 R1 + 0x7C080400, // 000A CALL R2 2 + 0x4C0C0000, // 000B LDNIL R3 + 0x1C080403, // 000C EQ R2 R2 R3 + 0x780A0006, // 000D JMPF R2 #0015 + 0x8C080106, // 000E GETMET R2 R0 K6 + 0x5C100200, // 000F MOVE R4 R1 + 0x7C080400, // 0010 CALL R2 2 + 0x88080104, // 0011 GETMBR R2 R0 K4 + 0x8C080507, // 0012 GETMET R2 R2 K7 + 0x5C100200, // 0013 MOVE R4 R1 + 0x7C080400, // 0014 CALL R2 2 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: find_session_by_resumption_id +********************************************************************/ +be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(sessions), + /* K2 */ be_nested_str_weak(resumption_id), + /* K3 */ be_nested_str_weak(shared_secret), + /* K4 */ be_nested_str_weak(update), + /* K5 */ be_const_int(1), + }), + be_str_weak(find_session_by_resumption_id), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0x5C080200, // 0000 MOVE R2 R1 + 0x740A0001, // 0001 JMPT R2 #0004 + 0x4C080000, // 0002 LDNIL R2 + 0x80040400, // 0003 RET 1 R2 + 0x58080000, // 0004 LDCONST R2 K0 + 0x880C0101, // 0005 GETMBR R3 R0 K1 + 0x6010000C, // 0006 GETGBL R4 G12 + 0x5C140600, // 0007 MOVE R5 R3 + 0x7C100200, // 0008 CALL R4 1 + 0x14100404, // 0009 LT R4 R2 R4 + 0x7812000C, // 000A JMPF R4 #0018 + 0x94100602, // 000B GETIDX R4 R3 R2 + 0x88140902, // 000C GETMBR R5 R4 K2 + 0x1C140A01, // 000D EQ R5 R5 R1 + 0x78160006, // 000E JMPF R5 #0016 + 0x88140903, // 000F GETMBR R5 R4 K3 + 0x4C180000, // 0010 LDNIL R6 + 0x20140A06, // 0011 NE R5 R5 R6 + 0x78160002, // 0012 JMPF R5 #0016 + 0x8C140904, // 0013 GETMET R5 R4 K4 + 0x7C140200, // 0014 CALL R5 1 + 0x80040800, // 0015 RET 1 R4 + 0x00080505, // 0016 ADD R2 R2 K5 + 0x7001FFED, // 0017 JMP #0006 + 0x80000000, // 0018 RET 0 }) ) ); @@ -3801,9 +3900,47 @@ be_local_closure(Matter_Session_Store_create_session, /* name */ /******************************************************************** -** Solidified function: every_second +** Solidified function: add_session ********************************************************************/ -be_local_closure(Matter_Session_Store_every_second, /* name */ +be_local_closure(Matter_Session_Store_add_session, /* name */ + be_nested_proto( + 6, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(set_expire_in_seconds), + /* K1 */ be_nested_str_weak(sessions), + /* K2 */ be_nested_str_weak(push), + }), + be_str_weak(add_session), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x4C0C0000, // 0000 LDNIL R3 + 0x200C0403, // 0001 NE R3 R2 R3 + 0x780E0002, // 0002 JMPF R3 #0006 + 0x8C0C0300, // 0003 GETMET R3 R1 K0 + 0x5C140400, // 0004 MOVE R5 R2 + 0x7C0C0400, // 0005 CALL R3 2 + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x8C0C0702, // 0007 GETMET R3 R3 K2 + 0x5C140200, // 0008 MOVE R5 R1 + 0x7C0C0400, // 0009 CALL R3 2 + 0x80000000, // 000A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: active_fabrics +********************************************************************/ +be_local_closure(Matter_Session_Store_active_fabrics, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -3813,15 +3950,55 @@ be_local_closure(Matter_Session_Store_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ + ( &(const bvalue[ 3]) { /* constants */ /* K0 */ be_nested_str_weak(remove_expired), + /* K1 */ be_nested_str_weak(fabrics), + /* K2 */ be_nested_str_weak(persistables), }), - be_str_weak(every_second), + be_str_weak(active_fabrics), &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ + ( &(const binstruction[ 6]) { /* code */ 0x8C040100, // 0000 GETMET R1 R0 K0 0x7C040200, // 0001 CALL R1 1 - 0x80000000, // 0002 RET 0 + 0x88040101, // 0002 GETMBR R1 R0 K1 + 0x8C040302, // 0003 GETMET R1 R1 K2 + 0x7C040200, // 0004 CALL R1 1 + 0x80040200, // 0005 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: remove_fabric +********************************************************************/ +be_local_closure(Matter_Session_Store_remove_fabric, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(fabrics), + /* K1 */ be_nested_str_weak(remove), + /* K2 */ be_nested_str_weak(find), + }), + be_str_weak(remove_fabric), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x88100100, // 0002 GETMBR R4 R0 K0 + 0x8C100902, // 0003 GETMET R4 R4 K2 + 0x5C180200, // 0004 MOVE R6 R1 + 0x7C100400, // 0005 CALL R4 2 + 0x7C080400, // 0006 CALL R2 2 + 0x80000000, // 0007 RET 0 }) ) ); @@ -3834,30 +4011,32 @@ be_local_closure(Matter_Session_Store_every_second, /* name */ be_local_class(Matter_Session_Store, 2, NULL, - be_nested_map(22, + be_nested_map(24, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(count_active_fabrics, -1), be_const_closure(Matter_Session_Store_count_active_fabrics_closure) }, - { be_const_key_weak(find_session_source_id_unsecure, -1), be_const_closure(Matter_Session_Store_find_session_source_id_unsecure_closure) }, - { be_const_key_weak(load_fabrics, 1), be_const_closure(Matter_Session_Store_load_fabrics_closure) }, - { be_const_key_weak(get_session_by_source_node_id, -1), be_const_closure(Matter_Session_Store_get_session_by_source_node_id_closure) }, - { be_const_key_weak(remove_session, 2), be_const_closure(Matter_Session_Store_remove_session_closure) }, - { be_const_key_weak(remove_expired, -1), be_const_closure(Matter_Session_Store_remove_expired_closure) }, - { be_const_key_weak(get_session_by_local_session_id, -1), be_const_closure(Matter_Session_Store_get_session_by_local_session_id_closure) }, - { be_const_key_weak(sessions_active, -1), be_const_closure(Matter_Session_Store_sessions_active_closure) }, - { be_const_key_weak(active_fabrics, -1), be_const_closure(Matter_Session_Store_active_fabrics_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Session_Store_init_closure) }, - { be_const_key_weak(find_session_by_resumption_id, -1), be_const_closure(Matter_Session_Store_find_session_by_resumption_id_closure) }, - { be_const_key_weak(add_session, 3), be_const_closure(Matter_Session_Store_add_session_closure) }, + { be_const_key_weak(load_fabrics, -1), be_const_closure(Matter_Session_Store_load_fabrics_closure) }, + { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Session_Store_remove_fabric_closure) }, { be_const_key_weak(gen_local_session_id, -1), be_const_closure(Matter_Session_Store_gen_local_session_id_closure) }, - { be_const_key_weak(fabrics, 15), be_const_var(1) }, - { be_const_key_weak(add_fabric, -1), be_const_closure(Matter_Session_Store_add_fabric_closure) }, - { be_const_key_weak(remove_redundant_fabric, 5), be_const_closure(Matter_Session_Store_remove_redundant_fabric_closure) }, - { be_const_key_weak(_FABRICS, 12), be_nested_str_weak(_matter_fabrics_X2Ejson) }, - { be_const_key_weak(save_fabrics, 6), be_const_closure(Matter_Session_Store_save_fabrics_closure) }, + { be_const_key_weak(init, 6), be_const_closure(Matter_Session_Store_init_closure) }, + { be_const_key_weak(next_fabric_idx, 8), be_const_closure(Matter_Session_Store_next_fabric_idx_closure) }, + { be_const_key_weak(fabrics, 21), be_const_var(1) }, + { be_const_key_weak(sessions_active, -1), be_const_closure(Matter_Session_Store_sessions_active_closure) }, + { be_const_key_weak(create_fabric, 1), be_const_closure(Matter_Session_Store_create_fabric_closure) }, { be_const_key_weak(sessions, -1), be_const_var(0) }, - { be_const_key_weak(create_fabric, -1), be_const_closure(Matter_Session_Store_create_fabric_closure) }, - { be_const_key_weak(create_session, -1), be_const_closure(Matter_Session_Store_create_session_closure) }, { be_const_key_weak(every_second, -1), be_const_closure(Matter_Session_Store_every_second_closure) }, + { be_const_key_weak(count_active_fabrics, -1), be_const_closure(Matter_Session_Store_count_active_fabrics_closure) }, + { be_const_key_weak(get_session_by_source_node_id, -1), be_const_closure(Matter_Session_Store_get_session_by_source_node_id_closure) }, + { be_const_key_weak(add_fabric, -1), be_const_closure(Matter_Session_Store_add_fabric_closure) }, + { be_const_key_weak(save_fabrics, -1), be_const_closure(Matter_Session_Store_save_fabrics_closure) }, + { be_const_key_weak(find_session_by_resumption_id, -1), be_const_closure(Matter_Session_Store_find_session_by_resumption_id_closure) }, + { be_const_key_weak(remove_expired, -1), be_const_closure(Matter_Session_Store_remove_expired_closure) }, + { be_const_key_weak(find_session_source_id_unsecure, 12), be_const_closure(Matter_Session_Store_find_session_source_id_unsecure_closure) }, + { be_const_key_weak(create_session, 14), be_const_closure(Matter_Session_Store_create_session_closure) }, + { be_const_key_weak(remove_session, 17), be_const_closure(Matter_Session_Store_remove_session_closure) }, + { be_const_key_weak(add_session, -1), be_const_closure(Matter_Session_Store_add_session_closure) }, + { be_const_key_weak(_FABRICS, -1), be_nested_str_weak(_matter_fabrics_X2Ejson) }, + { be_const_key_weak(get_session_by_local_session_id, 23), be_const_closure(Matter_Session_Store_get_session_by_local_session_id_closure) }, + { be_const_key_weak(active_fabrics, -1), be_const_closure(Matter_Session_Store_active_fabrics_closure) }, + { be_const_key_weak(remove_redundant_fabric, -1), be_const_closure(Matter_Session_Store_remove_redundant_fabric_closure) }, })), be_str_weak(Matter_Session_Store) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h index bac1a044b..0c7bd722d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h @@ -53,17 +53,20 @@ be_local_closure(Matter_TLV_item_create_TLV, /* name */ }), be_str_weak(create_TLV), &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ + ( &(const binstruction[13]) { /* code */ 0x58080000, // 0000 LDCONST R2 K0 0x4C0C0000, // 0001 LDNIL R3 0x200C0203, // 0002 NE R3 R1 R3 - 0x780E0004, // 0003 JMPF R3 #0009 - 0x5C0C0400, // 0004 MOVE R3 R2 - 0x7C0C0000, // 0005 CALL R3 0 - 0x900E0200, // 0006 SETMBR R3 K1 R0 - 0x900E0401, // 0007 SETMBR R3 K2 R1 - 0x80040600, // 0008 RET 1 R3 - 0x80000000, // 0009 RET 0 + 0x740E0002, // 0003 JMPT R3 #0007 + 0x540E0013, // 0004 LDINT R3 20 + 0x1C0C0003, // 0005 EQ R3 R0 R3 + 0x780E0004, // 0006 JMPF R3 #000C + 0x5C0C0400, // 0007 MOVE R3 R2 + 0x7C0C0000, // 0008 CALL R3 0 + 0x900E0200, // 0009 SETMBR R3 K1 R0 + 0x900E0401, // 000A SETMBR R3 K2 R1 + 0x80040600, // 000B RET 1 R3 + 0x80000000, // 000C RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h index ee5269731..91a7ab2eb 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h @@ -19,7 +19,7 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[28]) { /* constants */ + ( &(const bvalue[29]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(content_send), @@ -33,25 +33,26 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ /* K10 */ be_nested_str_weak(persistables), /* K11 */ be_nested_str_weak(_X3Chr_X3E), /* K12 */ be_nested_str_weak(format), - /* K13 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3B_X25s_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K14 */ be_nested_str_weak(_X26lt_X3BNo_X20label_X26gt_X3B), - /* K15 */ be_nested_str_weak(get_fabric_id), - /* K16 */ be_nested_str_weak(copy), - /* K17 */ be_nested_str_weak(reverse), - /* K18 */ be_nested_str_weak(get_device_id), - /* K19 */ be_nested_str_weak(Fabric_X3A_X20_X25s_X3Cbr_X3E), - /* K20 */ be_nested_str_weak(tohex), - /* K21 */ be_nested_str_weak(Device_X3A_X20_X25s_X3Cbr_X3E_X26nbsp_X3B), - /* K22 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20), - /* K23 */ be_nested_str_weak(onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), - /* K24 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27del_fabric_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25s_X27_X3E), - /* K25 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27del_X27_X20class_X3D_X27button_X20bgrn_X27_X3EDelete_X20Fabric_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - /* K26 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K27 */ be_nested_str_weak(stop_iteration), + /* K13 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3B_X23_X25i_X20_X25s_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K14 */ be_nested_str_weak(get_fabric_index), + /* K15 */ be_nested_str_weak(_X26lt_X3BNo_X20label_X26gt_X3B), + /* K16 */ be_nested_str_weak(get_fabric_id), + /* K17 */ be_nested_str_weak(copy), + /* K18 */ be_nested_str_weak(reverse), + /* K19 */ be_nested_str_weak(get_device_id), + /* K20 */ be_nested_str_weak(Fabric_X3A_X20_X25s_X3Cbr_X3E), + /* K21 */ be_nested_str_weak(tohex), + /* K22 */ be_nested_str_weak(Device_X3A_X20_X25s_X3Cbr_X3E_X26nbsp_X3B), + /* K23 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20), + /* K24 */ be_nested_str_weak(onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), + /* K25 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27del_fabric_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25s_X27_X3E), + /* K26 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27del_X27_X20class_X3D_X27button_X20bgrn_X27_X3EDelete_X20Fabric_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + /* K27 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K28 */ be_nested_str_weak(stop_iteration), }), be_str_weak(show_fabric_info), &be_const_str_solidified, - ( &(const binstruction[95]) { /* code */ + ( &(const binstruction[97]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0x8C100502, // 0002 GETMET R4 R2 K2 @@ -70,7 +71,7 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ 0x8C100502, // 000F GETMET R4 R2 K2 0x58180008, // 0010 LDCONST R6 K8 0x7C100400, // 0011 CALL R4 2 - 0x70020047, // 0012 JMP #005B + 0x70020049, // 0012 JMP #005D 0x50100200, // 0013 LDBOOL R4 1 0 0x60140010, // 0014 GETGBL R5 G16 0x88180105, // 0015 GETMBR R6 R0 K5 @@ -79,7 +80,7 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ 0x8C180D0A, // 0018 GETMET R6 R6 K10 0x7C180200, // 0019 CALL R6 1 0x7C140200, // 001A CALL R5 1 - 0xA802003B, // 001B EXBLK 0 #0058 + 0xA802003D, // 001B EXBLK 0 #005A 0x5C180A00, // 001C MOVE R6 R5 0x7C180000, // 001D CALL R6 0 0x5C1C0800, // 001E MOVE R7 R4 @@ -91,62 +92,64 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ 0x8C1C0502, // 0024 GETMET R7 R2 K2 0x8C24070C, // 0025 GETMET R9 R3 K12 0x582C000D, // 0026 LDCONST R11 K13 - 0x5830000E, // 0027 LDCONST R12 K14 - 0x7C240600, // 0028 CALL R9 3 - 0x7C1C0400, // 0029 CALL R7 2 - 0x8C1C0D0F, // 002A GETMET R7 R6 K15 - 0x7C1C0200, // 002B CALL R7 1 - 0x8C1C0F10, // 002C GETMET R7 R7 K16 + 0x8C300D0E, // 0027 GETMET R12 R6 K14 + 0x7C300200, // 0028 CALL R12 1 + 0x5834000F, // 0029 LDCONST R13 K15 + 0x7C240800, // 002A CALL R9 4 + 0x7C1C0400, // 002B CALL R7 2 + 0x8C1C0D10, // 002C GETMET R7 R6 K16 0x7C1C0200, // 002D CALL R7 1 0x8C1C0F11, // 002E GETMET R7 R7 K17 0x7C1C0200, // 002F CALL R7 1 - 0x8C200D12, // 0030 GETMET R8 R6 K18 - 0x7C200200, // 0031 CALL R8 1 - 0x8C201110, // 0032 GETMET R8 R8 K16 + 0x8C1C0F12, // 0030 GETMET R7 R7 K18 + 0x7C1C0200, // 0031 CALL R7 1 + 0x8C200D13, // 0032 GETMET R8 R6 K19 0x7C200200, // 0033 CALL R8 1 0x8C201111, // 0034 GETMET R8 R8 K17 0x7C200200, // 0035 CALL R8 1 - 0x8C240502, // 0036 GETMET R9 R2 K2 - 0x8C2C070C, // 0037 GETMET R11 R3 K12 - 0x58340013, // 0038 LDCONST R13 K19 - 0x8C380F14, // 0039 GETMET R14 R7 K20 - 0x7C380200, // 003A CALL R14 1 - 0x7C2C0600, // 003B CALL R11 3 - 0x7C240400, // 003C CALL R9 2 - 0x8C240502, // 003D GETMET R9 R2 K2 - 0x8C2C070C, // 003E GETMET R11 R3 K12 - 0x58340015, // 003F LDCONST R13 K21 - 0x8C381114, // 0040 GETMET R14 R8 K20 - 0x7C380200, // 0041 CALL R14 1 - 0x7C2C0600, // 0042 CALL R11 3 - 0x7C240400, // 0043 CALL R9 2 - 0x8C240502, // 0044 GETMET R9 R2 K2 - 0x582C0016, // 0045 LDCONST R11 K22 - 0x7C240400, // 0046 CALL R9 2 - 0x8C240502, // 0047 GETMET R9 R2 K2 - 0x582C0017, // 0048 LDCONST R11 K23 - 0x7C240400, // 0049 CALL R9 2 - 0x8C240502, // 004A GETMET R9 R2 K2 - 0x8C2C070C, // 004B GETMET R11 R3 K12 - 0x58340018, // 004C LDCONST R13 K24 - 0x8C380F14, // 004D GETMET R14 R7 K20 - 0x7C380200, // 004E CALL R14 1 - 0x7C2C0600, // 004F CALL R11 3 - 0x7C240400, // 0050 CALL R9 2 - 0x8C240502, // 0051 GETMET R9 R2 K2 - 0x582C0019, // 0052 LDCONST R11 K25 - 0x7C240400, // 0053 CALL R9 2 - 0x8C240502, // 0054 GETMET R9 R2 K2 - 0x582C001A, // 0055 LDCONST R11 K26 - 0x7C240400, // 0056 CALL R9 2 - 0x7001FFC3, // 0057 JMP #001C - 0x5814001B, // 0058 LDCONST R5 K27 - 0xAC140200, // 0059 CATCH R5 1 0 - 0xB0080000, // 005A RAISE 2 R0 R0 - 0x8C100502, // 005B GETMET R4 R2 K2 - 0x5818001A, // 005C LDCONST R6 K26 - 0x7C100400, // 005D CALL R4 2 - 0x80000000, // 005E RET 0 + 0x8C201112, // 0036 GETMET R8 R8 K18 + 0x7C200200, // 0037 CALL R8 1 + 0x8C240502, // 0038 GETMET R9 R2 K2 + 0x8C2C070C, // 0039 GETMET R11 R3 K12 + 0x58340014, // 003A LDCONST R13 K20 + 0x8C380F15, // 003B GETMET R14 R7 K21 + 0x7C380200, // 003C CALL R14 1 + 0x7C2C0600, // 003D CALL R11 3 + 0x7C240400, // 003E CALL R9 2 + 0x8C240502, // 003F GETMET R9 R2 K2 + 0x8C2C070C, // 0040 GETMET R11 R3 K12 + 0x58340016, // 0041 LDCONST R13 K22 + 0x8C381115, // 0042 GETMET R14 R8 K21 + 0x7C380200, // 0043 CALL R14 1 + 0x7C2C0600, // 0044 CALL R11 3 + 0x7C240400, // 0045 CALL R9 2 + 0x8C240502, // 0046 GETMET R9 R2 K2 + 0x582C0017, // 0047 LDCONST R11 K23 + 0x7C240400, // 0048 CALL R9 2 + 0x8C240502, // 0049 GETMET R9 R2 K2 + 0x582C0018, // 004A LDCONST R11 K24 + 0x7C240400, // 004B CALL R9 2 + 0x8C240502, // 004C GETMET R9 R2 K2 + 0x8C2C070C, // 004D GETMET R11 R3 K12 + 0x58340019, // 004E LDCONST R13 K25 + 0x8C380F15, // 004F GETMET R14 R7 K21 + 0x7C380200, // 0050 CALL R14 1 + 0x7C2C0600, // 0051 CALL R11 3 + 0x7C240400, // 0052 CALL R9 2 + 0x8C240502, // 0053 GETMET R9 R2 K2 + 0x582C001A, // 0054 LDCONST R11 K26 + 0x7C240400, // 0055 CALL R9 2 + 0x8C240502, // 0056 GETMET R9 R2 K2 + 0x582C001B, // 0057 LDCONST R11 K27 + 0x7C240400, // 0058 CALL R9 2 + 0x7001FFC1, // 0059 JMP #001C + 0x5814001C, // 005A LDCONST R5 K28 + 0xAC140200, // 005B CATCH R5 1 0 + 0xB0080000, // 005C RAISE 2 R0 R0 + 0x8C100502, // 005D GETMET R4 R2 K2 + 0x5818001B, // 005E LDCONST R6 K27 + 0x7C100400, // 005F CALL R4 2 + 0x80000000, // 0060 RET 0 }) ) ); @@ -166,7 +169,7 @@ be_local_closure(Matter_UI_web_sensor, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[24]) { /* constants */ + ( &(const bvalue[25]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(tasmota), @@ -174,7 +177,7 @@ be_local_closure(Matter_UI_web_sensor, /* name */ /* K4 */ be_nested_str_weak(matter), /* K5 */ be_nested_str_weak(MATTER_OPTION), /* K6 */ be_nested_str_weak(device), - /* K7 */ be_nested_str_weak(commissioning_open), + /* K7 */ be_nested_str_weak(is_root_commissioning_open), /* K8 */ be_nested_str_weak(show_commissioning_info), /* K9 */ be_nested_str_weak(sessions), /* K10 */ be_nested_str_weak(count_active_fabrics), @@ -188,13 +191,14 @@ be_local_closure(Matter_UI_web_sensor, /* name */ /* K18 */ be_nested_str_weak(s), /* K19 */ be_nested_str_weak(), /* K20 */ be_nested_str_weak(_X3Cbutton_X20onclick_X3D_X27la_X28_X22_X26mtc_X25i_X3D1_X22_X29_X3B_X27_X3E), - /* K21 */ be_nested_str_weak(_LOGO), - /* K22 */ be_nested_str_weak(_X20Open_X20Commissioning_X3C_X2Fbutton_X3E), - /* K23 */ be_nested_str_weak(_X20Close_X20Commissioning_X3C_X2Fbutton_X3E), + /* K21 */ be_nested_str_weak(commissioning_open), + /* K22 */ be_nested_str_weak(_LOGO), + /* K23 */ be_nested_str_weak(_X20Open_X20Commissioning_X3C_X2Fbutton_X3E), + /* K24 */ be_nested_str_weak(_X20Close_X20Commissioning_X3C_X2Fbutton_X3E), }), be_str_weak(web_sensor), &be_const_str_solidified, - ( &(const binstruction[71]) { /* code */ + ( &(const binstruction[72]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0xA40A0200, // 0001 IMPORT R2 K1 0xB80E0400, // 0002 GETNGBL R3 K2 @@ -202,70 +206,71 @@ be_local_closure(Matter_UI_web_sensor, /* name */ 0xB8160800, // 0004 GETNGBL R5 K4 0x88140B05, // 0005 GETMBR R5 R5 K5 0x7C0C0400, // 0006 CALL R3 2 - 0x780E003D, // 0007 JMPF R3 #0046 + 0x780E003E, // 0007 JMPF R3 #0047 0x88100106, // 0008 GETMBR R4 R0 K6 - 0x88100907, // 0009 GETMBR R4 R4 K7 - 0x78120001, // 000A JMPF R4 #000D - 0x8C100108, // 000B GETMET R4 R0 K8 - 0x7C100200, // 000C CALL R4 1 - 0x88100106, // 000D GETMBR R4 R0 K6 - 0x88100909, // 000E GETMBR R4 R4 K9 - 0x8C10090A, // 000F GETMET R4 R4 K10 - 0x7C100200, // 0010 CALL R4 1 - 0x1C14090B, // 0011 EQ R5 R4 K11 - 0x78160006, // 0012 JMPF R5 #001A - 0x8C14030C, // 0013 GETMET R5 R1 K12 - 0x8C1C050D, // 0014 GETMET R7 R2 K13 - 0x5824000E, // 0015 LDCONST R9 K14 - 0x5828000F, // 0016 LDCONST R10 K15 - 0x7C1C0600, // 0017 CALL R7 3 - 0x7C140400, // 0018 CALL R5 2 - 0x7002000E, // 0019 JMP #0029 - 0x24140910, // 001A GT R5 R4 K16 - 0x8C18030C, // 001B GETMET R6 R1 K12 - 0x8C20050D, // 001C GETMET R8 R2 K13 - 0x5828000E, // 001D LDCONST R10 K14 - 0x602C0008, // 001E GETGBL R11 G8 - 0x5C300800, // 001F MOVE R12 R4 - 0x7C2C0200, // 0020 CALL R11 1 - 0x002C1711, // 0021 ADD R11 R11 K17 - 0x78160001, // 0022 JMPF R5 #0025 - 0x58300012, // 0023 LDCONST R12 K18 - 0x70020000, // 0024 JMP #0026 - 0x58300013, // 0025 LDCONST R12 K19 - 0x002C160C, // 0026 ADD R11 R11 R12 - 0x7C200600, // 0027 CALL R8 3 - 0x7C180400, // 0028 CALL R6 2 - 0x8C14030C, // 0029 GETMET R5 R1 K12 - 0x8C1C050D, // 002A GETMET R7 R2 K13 - 0x58240014, // 002B LDCONST R9 K20 - 0x88280106, // 002C GETMBR R10 R0 K6 - 0x88281507, // 002D GETMBR R10 R10 K7 - 0x4C2C0000, // 002E LDNIL R11 - 0x1C28140B, // 002F EQ R10 R10 R11 - 0x782A0001, // 0030 JMPF R10 #0033 - 0x58280010, // 0031 LDCONST R10 K16 - 0x70020000, // 0032 JMP #0034 - 0x5828000B, // 0033 LDCONST R10 K11 - 0x7C1C0600, // 0034 CALL R7 3 - 0x7C140400, // 0035 CALL R5 2 - 0x8C14030C, // 0036 GETMET R5 R1 K12 - 0xB81E0800, // 0037 GETNGBL R7 K4 - 0x881C0F15, // 0038 GETMBR R7 R7 K21 - 0x7C140400, // 0039 CALL R5 2 - 0x88140106, // 003A GETMBR R5 R0 K6 - 0x88140B07, // 003B GETMBR R5 R5 K7 - 0x4C180000, // 003C LDNIL R6 - 0x1C140A06, // 003D EQ R5 R5 R6 - 0x78160003, // 003E JMPF R5 #0043 - 0x8C14030C, // 003F GETMET R5 R1 K12 - 0x581C0016, // 0040 LDCONST R7 K22 - 0x7C140400, // 0041 CALL R5 2 - 0x70020002, // 0042 JMP #0046 - 0x8C14030C, // 0043 GETMET R5 R1 K12 - 0x581C0017, // 0044 LDCONST R7 K23 - 0x7C140400, // 0045 CALL R5 2 - 0x80000000, // 0046 RET 0 + 0x8C100907, // 0009 GETMET R4 R4 K7 + 0x7C100200, // 000A CALL R4 1 + 0x78120001, // 000B JMPF R4 #000E + 0x8C100108, // 000C GETMET R4 R0 K8 + 0x7C100200, // 000D CALL R4 1 + 0x88100106, // 000E GETMBR R4 R0 K6 + 0x88100909, // 000F GETMBR R4 R4 K9 + 0x8C10090A, // 0010 GETMET R4 R4 K10 + 0x7C100200, // 0011 CALL R4 1 + 0x1C14090B, // 0012 EQ R5 R4 K11 + 0x78160006, // 0013 JMPF R5 #001B + 0x8C14030C, // 0014 GETMET R5 R1 K12 + 0x8C1C050D, // 0015 GETMET R7 R2 K13 + 0x5824000E, // 0016 LDCONST R9 K14 + 0x5828000F, // 0017 LDCONST R10 K15 + 0x7C1C0600, // 0018 CALL R7 3 + 0x7C140400, // 0019 CALL R5 2 + 0x7002000E, // 001A JMP #002A + 0x24140910, // 001B GT R5 R4 K16 + 0x8C18030C, // 001C GETMET R6 R1 K12 + 0x8C20050D, // 001D GETMET R8 R2 K13 + 0x5828000E, // 001E LDCONST R10 K14 + 0x602C0008, // 001F GETGBL R11 G8 + 0x5C300800, // 0020 MOVE R12 R4 + 0x7C2C0200, // 0021 CALL R11 1 + 0x002C1711, // 0022 ADD R11 R11 K17 + 0x78160001, // 0023 JMPF R5 #0026 + 0x58300012, // 0024 LDCONST R12 K18 + 0x70020000, // 0025 JMP #0027 + 0x58300013, // 0026 LDCONST R12 K19 + 0x002C160C, // 0027 ADD R11 R11 R12 + 0x7C200600, // 0028 CALL R8 3 + 0x7C180400, // 0029 CALL R6 2 + 0x8C14030C, // 002A GETMET R5 R1 K12 + 0x8C1C050D, // 002B GETMET R7 R2 K13 + 0x58240014, // 002C LDCONST R9 K20 + 0x88280106, // 002D GETMBR R10 R0 K6 + 0x88281515, // 002E GETMBR R10 R10 K21 + 0x4C2C0000, // 002F LDNIL R11 + 0x1C28140B, // 0030 EQ R10 R10 R11 + 0x782A0001, // 0031 JMPF R10 #0034 + 0x58280010, // 0032 LDCONST R10 K16 + 0x70020000, // 0033 JMP #0035 + 0x5828000B, // 0034 LDCONST R10 K11 + 0x7C1C0600, // 0035 CALL R7 3 + 0x7C140400, // 0036 CALL R5 2 + 0x8C14030C, // 0037 GETMET R5 R1 K12 + 0xB81E0800, // 0038 GETNGBL R7 K4 + 0x881C0F16, // 0039 GETMBR R7 R7 K22 + 0x7C140400, // 003A CALL R5 2 + 0x88140106, // 003B GETMBR R5 R0 K6 + 0x88140B15, // 003C GETMBR R5 R5 K21 + 0x4C180000, // 003D LDNIL R6 + 0x1C140A06, // 003E EQ R5 R5 R6 + 0x78160003, // 003F JMPF R5 #0044 + 0x8C14030C, // 0040 GETMET R5 R1 K12 + 0x581C0017, // 0041 LDCONST R7 K23 + 0x7C140400, // 0042 CALL R5 2 + 0x70020002, // 0043 JMP #0047 + 0x8C14030C, // 0044 GETMET R5 R1 K12 + 0x581C0018, // 0045 LDCONST R7 K24 + 0x7C140400, // 0046 CALL R5 2 + 0x80000000, // 0047 RET 0 }) ) ); @@ -292,7 +297,7 @@ be_local_closure(Matter_UI_web_get_arg, /* name */ /* K3 */ be_nested_str_weak(device), /* K4 */ be_nested_str_weak(stop_basic_commissioning), /* K5 */ be_nested_str_weak(mtc1), - /* K6 */ be_nested_str_weak(start_basic_commissioning), + /* K6 */ be_nested_str_weak(start_root_basic_commissioning), }), be_str_weak(web_get_arg), &be_const_str_solidified, @@ -734,10 +739,10 @@ be_local_closure(Matter_UI_show_passcode_form, /* name */ /* K6 */ be_nested_str_weak(format), /* K7 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X271_X27_X20max_X3D_X2799999998_X27_X20name_X3D_X27passcode_X27_X20value_X3D_X27_X25i_X27_X3E), /* K8 */ be_nested_str_weak(device), - /* K9 */ be_nested_str_weak(passcode), + /* K9 */ be_nested_str_weak(root_passcode), /* K10 */ be_nested_str_weak(_X3Cp_X3EDistinguish_X20id_X3A_X3C_X2Fp_X3E), /* K11 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X270_X27_X20max_X3D_X274095_X27_X20name_X3D_X27discriminator_X27_X20value_X3D_X27_X25i_X27_X3E), - /* K12 */ be_nested_str_weak(discriminator), + /* K12 */ be_nested_str_weak(root_discriminator), /* K13 */ be_nested_str_weak(_X3Cp_X3E_X3Cinput_X20type_X3D_X27checkbox_X27_X20name_X3D_X27ipv4_X27_X25s_X3EIPv4_X20only_X3C_X2Fp_X3E), /* K14 */ be_nested_str_weak(ipv4only), /* K15 */ be_nested_str_weak(_X20checked), @@ -999,7 +1004,7 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[49]) { /* constants */ + ( &(const bvalue[51]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), /* K1 */ be_nested_str_weak(check_privileged_access), /* K2 */ be_nested_str_weak(string), @@ -1010,45 +1015,47 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ /* K7 */ be_nested_str_weak(passcode), /* K8 */ be_nested_str_weak(discriminator), /* K9 */ be_nested_str_weak(device), - /* K10 */ be_nested_str_weak(arg), - /* K11 */ be_nested_str_weak(ipv4only), - /* K12 */ be_nested_str_weak(ipv4), - /* K13 */ be_nested_str_weak(on), - /* K14 */ be_nested_str_weak(save_param), - /* K15 */ be_nested_str_weak(redirect), - /* K16 */ be_nested_str_weak(_X2F_X3Frst_X3D), - /* K17 */ be_nested_str_weak(enable), - /* K18 */ be_nested_str_weak(tasmota), - /* K19 */ be_nested_str_weak(cmd), - /* K20 */ be_nested_str_weak(SetOption), - /* K21 */ be_nested_str_weak(matter), - /* K22 */ be_nested_str_weak(MATTER_OPTION), - /* K23 */ be_nested_str_weak(_X201), - /* K24 */ be_nested_str_weak(disable), - /* K25 */ be_nested_str_weak(_X200), - /* K26 */ be_nested_str_weak(del_fabric), - /* K27 */ be_const_int(0), - /* K28 */ be_nested_str_weak(sessions), - /* K29 */ be_nested_str_weak(fabrics), - /* K30 */ be_nested_str_weak(get_fabric_id), - /* K31 */ be_nested_str_weak(copy), - /* K32 */ be_nested_str_weak(reverse), - /* K33 */ be_nested_str_weak(tohex), - /* K34 */ be_nested_str_weak(remove), - /* K35 */ be_const_int(1), - /* K36 */ be_nested_str_weak(save_fabrics), - /* K37 */ be_nested_str_weak(log), - /* K38 */ be_nested_str_weak(format), - /* K39 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K40 */ be_const_int(2), - /* K41 */ be_nested_str_weak(content_start), - /* K42 */ be_nested_str_weak(Parameter_X20error), - /* K43 */ be_nested_str_weak(content_send_style), - /* K44 */ be_nested_str_weak(content_send), - /* K45 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), - /* K46 */ be_nested_str_weak(content_button), - /* K47 */ be_nested_str_weak(BUTTON_MANAGEMENT), - /* K48 */ be_nested_str_weak(content_stop), + /* K10 */ be_nested_str_weak(root_passcode), + /* K11 */ be_nested_str_weak(arg), + /* K12 */ be_nested_str_weak(root_discriminator), + /* K13 */ be_nested_str_weak(ipv4only), + /* K14 */ be_nested_str_weak(ipv4), + /* K15 */ be_nested_str_weak(on), + /* K16 */ be_nested_str_weak(save_param), + /* K17 */ be_nested_str_weak(redirect), + /* K18 */ be_nested_str_weak(_X2F_X3Frst_X3D), + /* K19 */ be_nested_str_weak(enable), + /* K20 */ be_nested_str_weak(tasmota), + /* K21 */ be_nested_str_weak(cmd), + /* K22 */ be_nested_str_weak(SetOption), + /* K23 */ be_nested_str_weak(matter), + /* K24 */ be_nested_str_weak(MATTER_OPTION), + /* K25 */ be_nested_str_weak(_X201), + /* K26 */ be_nested_str_weak(disable), + /* K27 */ be_nested_str_weak(_X200), + /* K28 */ be_nested_str_weak(del_fabric), + /* K29 */ be_const_int(0), + /* K30 */ be_nested_str_weak(sessions), + /* K31 */ be_nested_str_weak(fabrics), + /* K32 */ be_nested_str_weak(get_fabric_id), + /* K33 */ be_nested_str_weak(copy), + /* K34 */ be_nested_str_weak(reverse), + /* K35 */ be_nested_str_weak(tohex), + /* K36 */ be_nested_str_weak(remove), + /* K37 */ be_const_int(1), + /* K38 */ be_nested_str_weak(save_fabrics), + /* K39 */ be_nested_str_weak(log), + /* K40 */ be_nested_str_weak(format), + /* K41 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), + /* K42 */ be_const_int(2), + /* K43 */ be_nested_str_weak(content_start), + /* K44 */ be_nested_str_weak(Parameter_X20error), + /* K45 */ be_nested_str_weak(content_send_style), + /* K46 */ be_nested_str_weak(content_send), + /* K47 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), + /* K48 */ be_nested_str_weak(content_button), + /* K49 */ be_nested_str_weak(BUTTON_MANAGEMENT), + /* K50 */ be_nested_str_weak(content_stop), }), be_str_weak(page_part_ctl), &be_const_str_solidified, @@ -1079,80 +1086,80 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ 0x781A0006, // 0017 JMPF R6 #001F 0x88180109, // 0018 GETMBR R6 R0 K9 0x601C0009, // 0019 GETGBL R7 G9 - 0x8C20030A, // 001A GETMET R8 R1 K10 + 0x8C20030B, // 001A GETMET R8 R1 K11 0x58280007, // 001B LDCONST R10 K7 0x7C200400, // 001C CALL R8 2 0x7C1C0200, // 001D CALL R7 1 - 0x901A0E07, // 001E SETMBR R6 K7 R7 + 0x901A1407, // 001E SETMBR R6 K10 R7 0x8C180306, // 001F GETMET R6 R1 K6 0x58200008, // 0020 LDCONST R8 K8 0x7C180400, // 0021 CALL R6 2 0x781A0006, // 0022 JMPF R6 #002A 0x88180109, // 0023 GETMBR R6 R0 K9 0x601C0009, // 0024 GETGBL R7 G9 - 0x8C20030A, // 0025 GETMET R8 R1 K10 + 0x8C20030B, // 0025 GETMET R8 R1 K11 0x58280008, // 0026 LDCONST R10 K8 0x7C200400, // 0027 CALL R8 2 0x7C1C0200, // 0028 CALL R7 1 - 0x901A1007, // 0029 SETMBR R6 K8 R7 + 0x901A1807, // 0029 SETMBR R6 K12 R7 0x88180109, // 002A GETMBR R6 R0 K9 - 0x8C1C030A, // 002B GETMET R7 R1 K10 - 0x5824000C, // 002C LDCONST R9 K12 + 0x8C1C030B, // 002B GETMET R7 R1 K11 + 0x5824000E, // 002C LDCONST R9 K14 0x7C1C0400, // 002D CALL R7 2 - 0x1C1C0F0D, // 002E EQ R7 R7 K13 - 0x901A1607, // 002F SETMBR R6 K11 R7 + 0x1C1C0F0F, // 002E EQ R7 R7 K15 + 0x901A1A07, // 002F SETMBR R6 K13 R7 0x88180109, // 0030 GETMBR R6 R0 K9 - 0x8C180D0E, // 0031 GETMET R6 R6 K14 + 0x8C180D10, // 0031 GETMET R6 R6 K16 0x7C180200, // 0032 CALL R6 1 - 0x8C18030F, // 0033 GETMET R6 R1 K15 - 0x58200010, // 0034 LDCONST R8 K16 + 0x8C180311, // 0033 GETMET R6 R1 K17 + 0x58200012, // 0034 LDCONST R8 K18 0x7C180400, // 0035 CALL R6 2 0x7002004C, // 0036 JMP #0084 0x8C180306, // 0037 GETMET R6 R1 K6 - 0x58200011, // 0038 LDCONST R8 K17 + 0x58200013, // 0038 LDCONST R8 K19 0x7C180400, // 0039 CALL R6 2 0x781A000C, // 003A JMPF R6 #0048 - 0xB81A2400, // 003B GETNGBL R6 K18 - 0x8C180D13, // 003C GETMET R6 R6 K19 + 0xB81A2800, // 003B GETNGBL R6 K20 + 0x8C180D15, // 003C GETMET R6 R6 K21 0x60200008, // 003D GETGBL R8 G8 - 0xB8262A00, // 003E GETNGBL R9 K21 - 0x88241316, // 003F GETMBR R9 R9 K22 + 0xB8262E00, // 003E GETNGBL R9 K23 + 0x88241318, // 003F GETMBR R9 R9 K24 0x7C200200, // 0040 CALL R8 1 - 0x00222808, // 0041 ADD R8 K20 R8 - 0x00201117, // 0042 ADD R8 R8 K23 + 0x00222C08, // 0041 ADD R8 K22 R8 + 0x00201119, // 0042 ADD R8 R8 K25 0x7C180400, // 0043 CALL R6 2 - 0x8C18030F, // 0044 GETMET R6 R1 K15 - 0x58200010, // 0045 LDCONST R8 K16 + 0x8C180311, // 0044 GETMET R6 R1 K17 + 0x58200012, // 0045 LDCONST R8 K18 0x7C180400, // 0046 CALL R6 2 0x7002003B, // 0047 JMP #0084 0x8C180306, // 0048 GETMET R6 R1 K6 - 0x58200018, // 0049 LDCONST R8 K24 + 0x5820001A, // 0049 LDCONST R8 K26 0x7C180400, // 004A CALL R6 2 0x781A000C, // 004B JMPF R6 #0059 - 0xB81A2400, // 004C GETNGBL R6 K18 - 0x8C180D13, // 004D GETMET R6 R6 K19 + 0xB81A2800, // 004C GETNGBL R6 K20 + 0x8C180D15, // 004D GETMET R6 R6 K21 0x60200008, // 004E GETGBL R8 G8 - 0xB8262A00, // 004F GETNGBL R9 K21 - 0x88241316, // 0050 GETMBR R9 R9 K22 + 0xB8262E00, // 004F GETNGBL R9 K23 + 0x88241318, // 0050 GETMBR R9 R9 K24 0x7C200200, // 0051 CALL R8 1 - 0x00222808, // 0052 ADD R8 K20 R8 - 0x00201119, // 0053 ADD R8 R8 K25 + 0x00222C08, // 0052 ADD R8 K22 R8 + 0x0020111B, // 0053 ADD R8 R8 K27 0x7C180400, // 0054 CALL R6 2 - 0x8C18030F, // 0055 GETMET R6 R1 K15 - 0x58200010, // 0056 LDCONST R8 K16 + 0x8C180311, // 0055 GETMET R6 R1 K17 + 0x58200012, // 0056 LDCONST R8 K18 0x7C180400, // 0057 CALL R6 2 0x7002002A, // 0058 JMP #0084 0x8C180306, // 0059 GETMET R6 R1 K6 - 0x5820001A, // 005A LDCONST R8 K26 + 0x5820001C, // 005A LDCONST R8 K28 0x7C180400, // 005B CALL R6 2 0x781A0026, // 005C JMPF R6 #0084 - 0x8C18030A, // 005D GETMET R6 R1 K10 - 0x5820001A, // 005E LDCONST R8 K26 + 0x8C18030B, // 005D GETMET R6 R1 K11 + 0x5820001C, // 005E LDCONST R8 K28 0x7C180400, // 005F CALL R6 2 - 0x581C001B, // 0060 LDCONST R7 K27 + 0x581C001D, // 0060 LDCONST R7 K29 0x88200109, // 0061 GETMBR R8 R0 K9 - 0x8820111C, // 0062 GETMBR R8 R8 K28 - 0x8820111D, // 0063 GETMBR R8 R8 K29 + 0x8820111E, // 0062 GETMBR R8 R8 K30 + 0x8820111F, // 0063 GETMBR R8 R8 K31 0x50240000, // 0064 LDBOOL R9 0 0 0x6028000C, // 0065 GETGBL R10 G12 0x5C2C1000, // 0066 MOVE R11 R8 @@ -1160,60 +1167,60 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ 0x14280E0A, // 0068 LT R10 R7 R10 0x782A0011, // 0069 JMPF R10 #007C 0x94281007, // 006A GETIDX R10 R8 R7 - 0x8C28151E, // 006B GETMET R10 R10 K30 + 0x8C281520, // 006B GETMET R10 R10 K32 0x7C280200, // 006C CALL R10 1 - 0x8C28151F, // 006D GETMET R10 R10 K31 + 0x8C281521, // 006D GETMET R10 R10 K33 0x7C280200, // 006E CALL R10 1 - 0x8C281520, // 006F GETMET R10 R10 K32 + 0x8C281522, // 006F GETMET R10 R10 K34 0x7C280200, // 0070 CALL R10 1 - 0x8C281521, // 0071 GETMET R10 R10 K33 + 0x8C281523, // 0071 GETMET R10 R10 K35 0x7C280200, // 0072 CALL R10 1 0x1C2C1406, // 0073 EQ R11 R10 R6 0x782E0004, // 0074 JMPF R11 #007A - 0x8C2C1122, // 0075 GETMET R11 R8 K34 + 0x8C2C1124, // 0075 GETMET R11 R8 K36 0x5C340E00, // 0076 MOVE R13 R7 0x7C2C0400, // 0077 CALL R11 2 0x50240200, // 0078 LDBOOL R9 1 0 0x70020000, // 0079 JMP #007B - 0x001C0F23, // 007A ADD R7 R7 K35 + 0x001C0F25, // 007A ADD R7 R7 K37 0x7001FFE8, // 007B JMP #0065 0x78260003, // 007C JMPF R9 #0081 0x88280109, // 007D GETMBR R10 R0 K9 - 0x8828151C, // 007E GETMBR R10 R10 K28 - 0x8C281524, // 007F GETMET R10 R10 K36 + 0x8828151E, // 007E GETMBR R10 R10 K30 + 0x8C281526, // 007F GETMET R10 R10 K38 0x7C280200, // 0080 CALL R10 1 - 0x8C28030F, // 0081 GETMET R10 R1 K15 - 0x58300010, // 0082 LDCONST R12 K16 + 0x8C280311, // 0081 GETMET R10 R1 K17 + 0x58300012, // 0082 LDCONST R12 K18 0x7C280400, // 0083 CALL R10 2 0xA8040001, // 0084 EXBLK 1 1 0x7002001D, // 0085 JMP #00A4 0xAC180002, // 0086 CATCH R6 0 2 0x7002001A, // 0087 JMP #00A3 - 0xB8222400, // 0088 GETNGBL R8 K18 - 0x8C201125, // 0089 GETMET R8 R8 K37 - 0x8C280526, // 008A GETMET R10 R2 K38 - 0x58300027, // 008B LDCONST R12 K39 + 0xB8222800, // 0088 GETNGBL R8 K20 + 0x8C201127, // 0089 GETMET R8 R8 K39 + 0x8C280528, // 008A GETMET R10 R2 K40 + 0x58300029, // 008B LDCONST R12 K41 0x5C340C00, // 008C MOVE R13 R6 0x5C380E00, // 008D MOVE R14 R7 0x7C280800, // 008E CALL R10 4 - 0x582C0028, // 008F LDCONST R11 K40 + 0x582C002A, // 008F LDCONST R11 K42 0x7C200600, // 0090 CALL R8 3 - 0x8C200329, // 0091 GETMET R8 R1 K41 - 0x5828002A, // 0092 LDCONST R10 K42 + 0x8C20032B, // 0091 GETMET R8 R1 K43 + 0x5828002C, // 0092 LDCONST R10 K44 0x7C200400, // 0093 CALL R8 2 - 0x8C20032B, // 0094 GETMET R8 R1 K43 + 0x8C20032D, // 0094 GETMET R8 R1 K45 0x7C200200, // 0095 CALL R8 1 - 0x8C20032C, // 0096 GETMET R8 R1 K44 - 0x8C280526, // 0097 GETMET R10 R2 K38 - 0x5830002D, // 0098 LDCONST R12 K45 + 0x8C20032E, // 0096 GETMET R8 R1 K46 + 0x8C280528, // 0097 GETMET R10 R2 K40 + 0x5830002F, // 0098 LDCONST R12 K47 0x5C340C00, // 0099 MOVE R13 R6 0x5C380E00, // 009A MOVE R14 R7 0x7C280800, // 009B CALL R10 4 0x7C200400, // 009C CALL R8 2 - 0x8C20032E, // 009D GETMET R8 R1 K46 - 0x8828032F, // 009E GETMBR R10 R1 K47 + 0x8C200330, // 009D GETMET R8 R1 K48 + 0x88280331, // 009E GETMBR R10 R1 K49 0x7C200400, // 009F CALL R8 2 - 0x8C200330, // 00A0 GETMET R8 R1 K48 + 0x8C200332, // 00A0 GETMET R8 R1 K50 0x7C200200, // 00A1 CALL R8 1 0x70020000, // 00A2 JMP #00A4 0xB0080000, // 00A3 RAISE 2 R0 R0