From c1ec35a086e1346d69785f1360a3758e0c309279 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 22 May 2023 20:46:20 +0200 Subject: [PATCH] Matter fix fabric provisioning from CASE session for iOS 16.5 (#18709) --- CHANGELOG.md | 1 + .../src/embedded/Matter_Commissioning.be | 51 +- .../src/embedded/Matter_Device.be | 11 +- .../src/embedded/Matter_Fabric.be | 57 + .../berry_matter/src/embedded/Matter_IM.be | 3 +- .../src/embedded/Matter_Plugin_Root.be | 92 +- .../src/embedded/Matter_Session.be | 108 +- .../solidified_Matter_Commissioning.h | 615 ++-- .../src/solidify/solidified_Matter_Device.h | 20 +- .../src/solidify/solidified_Matter_Fabric.h | 2087 ++++++++------ .../src/solidify/solidified_Matter_IM.h | 459 +-- .../solidify/solidified_Matter_Plugin_Root.h | 1527 +++++----- .../src/solidify/solidified_Matter_Session.h | 2519 ++++++++--------- 13 files changed, 3925 insertions(+), 3625 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b861d94d1..83c31ccfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. - AIThinker webcam issues (#18652) - Berry `tasmota.wifi()` would wrongly report wifi as up - Inverted shutter now reflect status also in WEBGUI and several minor fixes to make "inverted" consistant (#18701) +- Matter fix fabric provisioning from CASE session for iOS 16.5 ### Removed diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be index a77ea792d..82dbfbc06 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be @@ -461,15 +461,15 @@ class Matter_Commisioning_Context tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 2) tasmota.log("MTR: fabric="+matter.inspect(session._fabric), 4) - tasmota.log("MTR: no_private_key="+session._fabric.no_private_key.tohex(), 4) - tasmota.log("MTR: noc ="+session._fabric.noc.tohex(), 4) - if session._fabric.get_icac() - tasmota.log("MTR: icac ="+session._fabric.get_icac().tohex(), 4) + tasmota.log("MTR: no_private_key="+session.get_pk().tohex(), 4) + tasmota.log("MTR: noc ="+session.get_noc().tohex(), 4) + if fabric.get_icac() + tasmota.log("MTR: icac ="+fabric.get_icac().tohex(), 4) end - tasmota.log("MTR: root_ca_cert ="+session._fabric.root_ca_certificate.tohex(), 4) + tasmota.log("MTR: root_ca_cert ="+fabric.get_ca().tohex(), 4) # Compute Sigma2, p.162 - session.resumption_id = crypto.random(16) + session.resumption_id = crypto.random(16) # generate a new resumption id session.__responder_priv = crypto.random(32) session.__responder_pub = crypto.EC_P256().public_key(session.__responder_priv) tasmota.log("MTR: ResponderEph_priv ="+session.__responder_priv.tohex(), 4) @@ -477,53 +477,58 @@ class Matter_Commisioning_Context var responderRandom = crypto.random(32) session.shared_secret = crypto.EC_P256().shared_key(session.__responder_priv, sigma1.initiatorEphPubKey) + tasmota.log("MTR: * shared_secret = " + session.shared_secret.tohex(), 4) var sigma2_tbsdata = matter.TLV.Matter_TLV_struct() - sigma2_tbsdata.add_TLV(1, matter.TLV.B2, session.get_noc()) - sigma2_tbsdata.add_TLV(2, matter.TLV.B2, session.get_icac()) + sigma2_tbsdata.add_TLV(1, matter.TLV.B2, fabric.get_noc()) + sigma2_tbsdata.add_TLV(2, matter.TLV.B2, fabric.get_icac()) sigma2_tbsdata.add_TLV(3, matter.TLV.B2, session.__responder_pub) sigma2_tbsdata.add_TLV(4, matter.TLV.B2, sigma1.initiatorEphPubKey) - var TBSData2Signature = crypto.EC_P256().ecdsa_sign_sha256(session.get_pk(), sigma2_tbsdata.tlv2raw()) + var TBSData2Signature = crypto.EC_P256().ecdsa_sign_sha256(fabric.get_pk(), sigma2_tbsdata.tlv2raw()) + tasmota.log("****************************************", 4) + tasmota.log("MTR: * fabric.get_pk = " + str(fabric.get_pk()), 4) + tasmota.log("MTR: * sigma2_tbsdata = " + str(sigma2_tbsdata), 4) + tasmota.log("MTR: * TBSData2Signature = " + TBSData2Signature.tohex(), 4) var sigma2_tbedata = matter.TLV.Matter_TLV_struct() - sigma2_tbedata.add_TLV(1, matter.TLV.B2, session.get_noc()) - sigma2_tbedata.add_TLV(2, matter.TLV.B2, session.get_icac()) + sigma2_tbedata.add_TLV(1, matter.TLV.B2, fabric.get_noc()) + sigma2_tbedata.add_TLV(2, matter.TLV.B2, fabric.get_icac()) sigma2_tbedata.add_TLV(3, matter.TLV.B2, TBSData2Signature) sigma2_tbedata.add_TLV(4, matter.TLV.B2, session.resumption_id) # compute TranscriptHash = Crypto_Hash(message = Msg1) - # tasmota.log("****************************************", 4) + tasmota.log("****************************************", 4) session.__Msg1 = sigma1.Msg1 - # tasmota.log("MTR: * resumptionid = " + session.resumption_id.tohex(), 4) - # tasmota.log("MTR: * MSG1 = " + session.__Msg1.tohex(), 4) + tasmota.log("MTR: * resumptionid = " + session.resumption_id.tohex(), 4) + tasmota.log("MTR: * MSG1 = " + session.__Msg1.tohex(), 4) var TranscriptHash = crypto.SHA256().update(session.__Msg1).out() - # tasmota.log("MTR: TranscriptHash =" + TranscriptHash.tohex(), 4) + tasmota.log("MTR: TranscriptHash =" + TranscriptHash.tohex(), 4) # Compute S2K, p.175 var s2k_info = bytes().fromstring(self.S2K_Info) - var s2k_salt = session.get_ipk_group_key() + responderRandom + session.__responder_pub + TranscriptHash + var s2k_salt = fabric.get_ipk_group_key() + responderRandom + session.__responder_pub + TranscriptHash var s2k = crypto.HKDF_SHA256().derive(session.shared_secret, s2k_salt, s2k_info, 16) - # tasmota.log("MTR: * SharedSecret = " + session.shared_secret.tohex(), 4) - # tasmota.log("MTR: * s2k_salt = " + s2k_salt.tohex(), 4) - # tasmota.log("MTR: * s2k = " + s2k.tohex(), 4) + tasmota.log("MTR: * SharedSecret = " + session.shared_secret.tohex(), 4) + tasmota.log("MTR: * s2k_salt = " + s2k_salt.tohex(), 4) + tasmota.log("MTR: * s2k = " + s2k.tohex(), 4) var sigma2_tbedata_raw = sigma2_tbedata.tlv2raw() - # tasmota.log("MTR: * TBEData2Raw = " + sigma2_tbedata_raw.tohex(), 4) + tasmota.log("MTR: * TBEData2Raw = " + sigma2_tbedata_raw.tohex(), 4) # // `AES_CCM.init(secret_key:bytes(16 or 32), iv:bytes(7..13), aad:bytes(), data_len:int, tag_len:int) -> instance` var aes = crypto.AES_CCM(s2k, bytes().fromstring(self.TBEData2_Nonce), bytes(), size(sigma2_tbedata_raw), 16) var TBEData2Encrypted = aes.encrypt(sigma2_tbedata_raw) + aes.tag() - # tasmota.log("MTR: * TBEData2Enc = " + TBEData2Encrypted.tohex(), 4) - # tasmota.log("****************************************", 4) + tasmota.log("MTR: * TBEData2Enc = " + TBEData2Encrypted.tohex(), 4) + tasmota.log("****************************************", 4) var sigma2 = matter.Sigma2() sigma2.responderRandom = responderRandom sigma2.responderSessionId = session.__future_local_session_id sigma2.responderEphPubKey = session.__responder_pub sigma2.encrypted2 = TBEData2Encrypted - # tasmota.log("MTR: sigma2: " + matter.inspect(sigma2), 4) + tasmota.log("MTR: sigma2: " + matter.inspect(sigma2), 4) var sigma2_raw = sigma2.tlv2raw() session.__Msg2 = sigma2_raw # tasmota.log("MTR: sigma2_raw: " + sigma2_raw.tohex(), 4) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be index 8eff6f140..a9b9aaf12 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be @@ -381,9 +381,9 @@ class Matter_Device # Start Operational Discovery for this session # # Deferred until next tick. - def start_operational_discovery_deferred(session) + def start_operational_discovery_deferred(fabric) # defer to next click - tasmota.set_timer(0, /-> self.start_operational_discovery(session)) + tasmota.set_timer(0, /-> self.start_operational_discovery(fabric)) end ############################################################# @@ -400,7 +400,7 @@ class Matter_Device # # Stop Basic Commissioning and clean PASE specific values (to save memory). # Announce fabric entry in mDNS. - def start_operational_discovery(session) + def start_operational_discovery(fabric) import crypto import mdns import string @@ -411,10 +411,7 @@ class Matter_Device # self.root_w1 = nil self.root_L = nil - # we keep the PASE session for 1 minute - session.set_expire_in_seconds(60) - - self.mdns_announce_op_discovery(session.get_fabric()) + self.mdns_announce_op_discovery(fabric) end ############################################################# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be b/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be index aee02ef36..0b990ccf5 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be @@ -96,6 +96,54 @@ class Matter_Fabric : Matter_Expirable def get_fabric_index() return self.fabric_index end def set_fabric_index(v) self.fabric_index = v end + def set_ca(ca) + self.root_ca_certificate = ca + end + def set_noc_icac(noc, icac) + self.noc = noc + self.icac = icac + end + def set_ipk_epoch_key(ipk_epoch_key) + self.ipk_epoch_key = ipk_epoch_key + end + def set_admin_subject_vendor(admin_subject, admin_vendor) + self.admin_subject = admin_subject + self.admin_vendor = admin_vendor + end + + def set_fabric_device(fabric_id, device_id, fc, fabric_parent) + self.fabric_id = fabric_id + self.device_id = device_id + self.fabric_compressed = fc + self.fabric_parent = (fabric_parent != nil) ? fabric_parent.get_fabric_index() : nil + end + + ############################################################# + # Generate a private key (or retrieve it) + # + # PK is generated by a commissioning session + def get_pk() + return self.no_private_key + end + def set_pk(pk) + self.no_private_key = pk + end + + ############################################################# + # Register the frabric as complete (end of commissioning) + def fabric_candidate() + self.set_expire_in_seconds(120) # expire in 2 minutes + self.assign_fabric_index() + self._store.add_fabric(self) + end + + ############################################################# + # Assign a new fabric index + def assign_fabric_index() + if (self.get_fabric_index() == nil) + self.set_fabric_index(self._store.next_fabric_idx()) + end + end ############################################################# # When hydrating from persistance, update counters @@ -109,6 +157,15 @@ class Matter_Fabric : Matter_Expirable self.counter_group_ctrl_snd = self._counter_group_ctrl_snd_impl.val() end + ############################################################# + # Register the fabric as complete (end of commissioning) + def fabric_completed() + self.set_no_expiration() + self.set_persist(true) + self.assign_fabric_index() + self._store.add_fabric(self) + end + ############################################################# # Management of security counters ############################################################# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be index 50c17bd82..b10be36bd 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be @@ -402,9 +402,10 @@ class Matter_IM ctx.status = matter.UNSUPPORTED_COMMAND #default error if returned `nil` var cmd_name = matter.get_command_name(ctx.cluster, ctx.command) + var ctx_str = str(ctx) # keep string before invoking, it is modified by response var res = self.device.invoke_request(msg.session, q.command_fields, ctx) var params_log = (ctx.log != nil) ? "(" + str(ctx.log) + ") " : "" - tasmota.log(string.format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, str(ctx), cmd_name ? cmd_name : "", params_log), 2) + tasmota.log(string.format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 2) ctx.log = nil var a1 = matter.InvokeResponseIB() if res == true || ctx.status == matter.SUCCESS # special case, just respond ok 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 76f2440ff..9977d6b62 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be @@ -362,22 +362,26 @@ class Matter_Plugin_Root : Matter_Plugin elif command == 0x0004 # ---------- CommissioningComplete p.636 ---------- # no data - session._breadcrumb = 0 # clear breadcrumb - session.fabric_completed() # fabric information is complete, persist - session.set_no_expiration() - session.save() + if session._fabric + session._breadcrumb = 0 # clear breadcrumb + session._fabric.fabric_completed() # fabric information is complete, persist + session.set_no_expiration() + session.save() - # create CommissioningCompleteResponse - # ID=1 - # 0=ErrorCode (OK=0) - # 1=DebugText - var ccr = TLV.Matter_TLV_struct() - ccr.add_TLV(0, TLV.U1, 0) # ErrorCode = OK - ccr.add_TLV(1, TLV.UTF1, "") # DebugText = "" - ctx.command = 0x05 # CommissioningCompleteResponse + # create CommissioningCompleteResponse + # ID=1 + # 0=ErrorCode (OK=0) + # 1=DebugText + var ccr = TLV.Matter_TLV_struct() + ccr.add_TLV(0, TLV.U1, 0) # ErrorCode = OK + ccr.add_TLV(1, TLV.UTF1, "") # DebugText = "" + ctx.command = 0x05 # CommissioningCompleteResponse - self.device.start_commissioning_complete_deferred(session) - return ccr + self.device.start_commissioning_complete_deferred(session) + return ccr + else + raise "context_error", "CommissioningComplete: no fabric attached" + end end elif cluster == 0x003E # ========== Node Operational Credentials Cluster 11.17 p.704 ========== @@ -427,6 +431,7 @@ class Matter_Plugin_Root : Matter_Plugin var CSRNonce = val.findsubval(0) # octstr 32 if size(CSRNonce) != 32 return nil end # check size on nonce var IsForUpdateNOC = val.findsubval(1, false) # bool + tasmota.log(string.format("MTR: CSRRequest CSRNonce=%s IsForUpdateNOC=%s", str(CSRNonce), str(IsForUpdateNOC)), 3) var csr = session.gen_CSR() @@ -450,12 +455,14 @@ class Matter_Plugin_Root : Matter_Plugin elif command == 0x000B # ---------- AddTrustedRootCertificate ---------- var RootCACertificate = val.findsubval(0) # octstr 400 max - session.set_ca(RootCACertificate) + # TODO - additional tests are expected according to 11.17.7.13. AddTrustedRootCertificate Command + session.set_temp_ca(RootCACertificate) tasmota.log("MTR: received ca_root="+RootCACertificate.tohex(), 3) ctx.status = matter.SUCCESS # OK return nil # trigger a standalone ack elif command == 0x0006 # ---------- AddNOC ---------- + tasmota.log("MTR: AddNoc Args=" + str(val), 3) var NOCValue = val.findsubval(0) # octstr max 400 var ICACValue = val.findsubval(1) # octstr max 400 # Apple sends an empty ICAC instead of a missing attribute, fix this @@ -463,21 +470,32 @@ class Matter_Plugin_Root : Matter_Plugin var IpkValue = val.findsubval(2) # octstr max 16 var CaseAdminSubject = val.findsubval(3) var AdminVendorId = val.findsubval(4) + # tasmota.log("MTR: AddNoc NOCValue=" + (NOCValue ? NOCValue.tohex() : ""), 3) + # tasmota.log("MTR: AddNoc ICACValue=" + (ICACValue ? ICACValue.tohex() : ""), 3) + # tasmota.log("MTR: AddNoc IpkValue=" + str(IpkValue), 3) + # tasmota.log("MTR: AddNoc CaseAdminSubject=" + str(CaseAdminSubject), 3) + # tasmota.log("MTR: AddNoc AdminVendorId=" + str(AdminVendorId), 3) - if session.get_ca() == nil + if session.get_temp_ca() == nil tasmota.log("MTR: Error: AdNOC without CA", 2) return nil end - session.set_noc(NOCValue, ICACValue) - session.set_ipk_epoch_key(IpkValue) - session.set_admin_subject_vendor(CaseAdminSubject, AdminVendorId) + var new_fabric = self.device.sessions.create_fabric() + new_fabric.set_ca(session.get_temp_ca()) # copy temporary CA to fabric + new_fabric.set_noc_icac(NOCValue, ICACValue) + new_fabric.set_ipk_epoch_key(IpkValue) + new_fabric.set_admin_subject_vendor(CaseAdminSubject, AdminVendorId) + new_fabric.set_pk(session.get_pk()) # copy the temporary commissioning PK to the fabric # extract important information from NOC var noc_cert = matter.TLV.parse(NOCValue) var dnlist = noc_cert.findsub(6) var fabric_id = dnlist.findsubval(21) var deviceid = dnlist.findsubval(17) + # tasmota.log("MTR: AddNoc noc_cert=" + str(noc_cert), 3) + # tasmota.log("MTR: AddNoc dnlist=" + str(dnlist), 3) + if !fabric_id || !deviceid tasmota.log("MTR: Error: no fabricid nor deviceid in NOC certificate", 2) return false @@ -486,25 +504,37 @@ class Matter_Plugin_Root : Matter_Plugin if type(fabric_id) == 'int' fabric_id = int64.fromu32(fabric_id).tobytes() else fabric_id = fabric_id.tobytes() end if type(deviceid) == 'int' deviceid = int64.fromu32(deviceid).tobytes() else deviceid = deviceid.tobytes() end - var root_ca = matter.TLV.parse(session.get_ca()).findsubval(9) # extract public key from ca - root_ca = root_ca[1..] # remove first byte as per Matter specification + # tasmota.log("MTR: AddNoc fabric_id=" + str(fabric_id), 3) + # tasmota.log("MTR: AddNoc deviceid=" + str(deviceid), 3) + + var root_ca_pub = session.get_temp_ca_pub() + # tasmota.log("MTR: AddNoc root_ca_pub=" + str(root_ca_pub), 3) + # tasmota.log("MTR: AddNoc root_ca_pub=" + root_ca_pub.tohex(), 3) + root_ca_pub = root_ca_pub[1..] # remove first byte as per Matter specification var info = bytes().fromstring("CompressedFabric") # as per spec, 4.3.2.2 p.99 var hk = crypto.HKDF_SHA256() var fabric_rev = fabric_id.copy().reverse() - var k_fabric = hk.derive(root_ca, fabric_rev, info, 8) - session.set_fabric_device(fabric_id, deviceid, k_fabric, self.device.commissioning_admin_fabric) + var k_fabric = hk.derive(root_ca_pub, fabric_rev, info, 8) + var parent_fabric = session._fabric ? session._fabric : self.device.commissioning_admin_fabric # get parent fabric whether CASE or PASE + new_fabric.set_fabric_device(fabric_id, deviceid, k_fabric, parent_fabric) + # tasmota.log("MTR: AddNoc k_fabric=" + str(k_fabric), 3) # We have a candidate fabric, add it as expirable for 2 minutes - session.persist_to_fabric() # fabric object is completed, persist it - session.fabric_candidate() + new_fabric.fabric_candidate() # move to next step - self.device.start_operational_discovery_deferred(session) - # session.fabric_completed() - tasmota.log("MTR: ------------------------------------------", 3) - tasmota.log("MTR: fabric=" + matter.inspect(session._fabric), 3) - tasmota.log("MTR: ------------------------------------------", 3) - session._fabric.log_new_fabric() # log that we registered a new fabric + self.device.start_operational_discovery_deferred(new_fabric) + + # we keep the PASE session for 1 minute + if session.is_PASE() + session.set_expire_in_seconds(60) + end + + # tasmota.log("MTR: ------------------------------------------", 3) + # tasmota.log("MTR: session=" + matter.inspect(session), 3) + # tasmota.log("MTR: fabric=" + matter.inspect(session._fabric), 3) + # tasmota.log("MTR: ------------------------------------------", 3) + new_fabric.log_new_fabric() # log that we registered a new fabric # create NOCResponse # 0=StatusCode # 1=FabricIndex (1-254) (opt) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be index b0fe0185c..5066c3199 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be @@ -48,6 +48,9 @@ class Matter_Session : Matter_Expirable 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) + # temporary data for ArmFailSafe provisioning - before it is stored in a fabric + var _temp_root_ca_certificate # temporary root_ca_certificate added by `AddTrustedRootCertificate` before `AddNoc` + var _temp_pk # session_ids when the session will be active var __future_initiator_session_id var __future_local_session_id @@ -108,7 +111,7 @@ class Matter_Session : Matter_Expirable self._breadcrumb = 0 self._exchange_id = crypto.random(2).get(0,2) # generate a random 16 bits number, then increment with rollover - self._fabric = fabric ? fabric : self._store.create_fabric() + self._fabric = fabric self.update() end @@ -172,31 +175,6 @@ class Matter_Session : Matter_Expirable def set_mode_CASE() self.set_mode(self._CASE) end def is_PASE() return self.mode == self._PASE end def is_CASE() return self.mode == self._CASE end - - ############################################################# - # Assign a new fabric index - def assign_fabric_index() - if (self._fabric.get_fabric_index() == nil) - self._fabric.set_fabric_index(self._store.next_fabric_idx()) - end - end - - ############################################################# - # Register the fabric as complete (end of commissioning) - def fabric_completed() - self._fabric.set_no_expiration() - self._fabric.set_persist(true) - self.assign_fabric_index() - self._store.add_fabric(self._fabric) - end - - ############################################################# - # Register the frabric as complete (end of commissioning) - def fabric_candidate() - self._fabric.set_expire_in_seconds(120) # expire in 2 minutes - self.assign_fabric_index() - self._store.add_fabric(self._fabric) - end ############################################################# # Persist to fabric @@ -241,26 +219,16 @@ class Matter_Session : Matter_Expirable self.attestation_challenge = ac self.created = st end - def set_ca(ca) - self._fabric.root_ca_certificate = ca + def set_temp_ca(ca) + self._temp_root_ca_certificate = ca end - def set_noc(noc, icac) - self._fabric.noc = noc - self._fabric.icac = icac - end - def set_ipk_epoch_key(ipk_epoch_key) - self._fabric.ipk_epoch_key = ipk_epoch_key - end - def set_admin_subject_vendor(admin_subject, admin_vendor) - self._fabric.admin_subject = admin_subject - self._fabric.admin_vendor = admin_vendor - end - - def set_fabric_device(fabric_id, device_id, fc, fabric_parent) - self._fabric.fabric_id = fabric_id - self._fabric.device_id = device_id - self._fabric.fabric_compressed = fc - self._fabric.fabric_parent = (fabric_parent != nil) ? fabric_parent.get_fabric_index() : nil + def get_temp_ca() return self._temp_root_ca_certificate end + def get_temp_ca_pub() + var ca = self._temp_root_ca_certificate + if ca + var m = matter.TLV.parse(ca) + return m.findsubval(9) + end end def set_fabric_label(s) if type(s) == 'string' @@ -269,12 +237,8 @@ class Matter_Session : Matter_Expirable end ############################################################# - def get_mode() - return self.mode - end - def get_i2r() - return self.i2rkey - end + def get_mode() return self.mode end + def get_i2r() return self.i2rkey end def get_i2r_privacy() # get and cache privacy key if self._i2r_privacy == nil import crypto @@ -283,18 +247,11 @@ class Matter_Session : Matter_Expirable end return self._i2r_privacy end - def get_r2i() - return self.r2ikey - end - def get_ac() - return self.attestation_challenge - end - def get_ca() - return self._fabric.root_ca_certificate - end - def get_ca_pub() - return self._fabric.get_ca_pub() - end + def get_r2i() return self.r2ikey end + def get_ac() return self.attestation_challenge end + + def get_ca() return self._fabric.root_ca_certificate end + def get_ca_pub() return self._fabric.get_ca_pub() end def get_fabric() return self._fabric end def get_noc() return self._fabric.noc end def get_icac() return self._fabric.icac end @@ -307,24 +264,27 @@ class Matter_Session : Matter_Expirable def get_admin_vendor() return self._fabric.admin_vendor end ############################################################# - # Generate a private key (or retrieve it) + # Get operational key pair (private key) + # + # If there is a fabric, retrieve the PK from the fabric + # If there is no fabric, create a temporary PK in `_temp_pk` + # to be stored later in the fabric def get_pk() - if !self._fabric.no_private_key - import crypto - self._fabric.no_private_key = crypto.random(32) + if self._fabric + return self._fabric.get_pk() + else + if !self._temp_pk + import crypto + self._temp_pk = crypto.random(32) + end + return self._temp_pk end - return self._fabric.no_private_key end ############################################################# # Operational Group Key Derivation, 4.15.2, p.182 def get_ipk_group_key() - if self.get_ipk_epoch_key() == nil || self.get_fabric_compressed() == nil return nil end - import crypto - var hk = crypto.HKDF_SHA256() - var info = bytes().fromstring(self._GROUP_KEY) - var hash = hk.derive(self.get_ipk_epoch_key(), self.get_fabric_compressed(), info, 16) - return hash + return self._fabric.get_ipk_group_key() 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 f37665721..dfc95aae1 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h @@ -1425,7 +1425,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[118]) { /* constants */ + ( &(const bvalue[130]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(session), @@ -1507,14 +1507,14 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ /* K78 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28GeneralCode_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20NO_SHARED_TRUST_ROOTS_X29), /* K79 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D), /* K80 */ be_nested_str_weak(MTR_X3A_X20no_private_key_X3D), - /* K81 */ be_nested_str_weak(no_private_key), + /* K81 */ be_nested_str_weak(get_pk), /* K82 */ be_nested_str_weak(tohex), /* K83 */ be_nested_str_weak(MTR_X3A_X20noc_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D), - /* K84 */ be_nested_str_weak(noc), + /* K84 */ be_nested_str_weak(get_noc), /* K85 */ be_nested_str_weak(get_icac), /* K86 */ be_nested_str_weak(MTR_X3A_X20icac_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D), /* K87 */ be_nested_str_weak(MTR_X3A_X20root_ca_cert_X20_X20_X3D), - /* K88 */ be_nested_str_weak(root_ca_certificate), + /* K88 */ be_nested_str_weak(get_ca), /* K89 */ be_nested_str_weak(__responder_priv), /* K90 */ be_nested_str_weak(__responder_pub), /* K91 */ be_nested_str_weak(EC_P256), @@ -1522,32 +1522,44 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ /* K93 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_priv_X20_X20_X3D), /* K94 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_pub_X20_X20_X3D), /* K95 */ be_nested_str_weak(shared_key), - /* K96 */ be_nested_str_weak(TLV), - /* K97 */ be_nested_str_weak(Matter_TLV_struct), - /* K98 */ be_nested_str_weak(add_TLV), - /* K99 */ be_nested_str_weak(B2), - /* K100 */ be_nested_str_weak(get_noc), + /* K96 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20shared_secret_X20_X20_X3D_X20), + /* K97 */ be_nested_str_weak(TLV), + /* K98 */ be_nested_str_weak(Matter_TLV_struct), + /* K99 */ be_nested_str_weak(add_TLV), + /* K100 */ be_nested_str_weak(B2), /* K101 */ be_const_int(3), /* K102 */ be_nested_str_weak(ecdsa_sign_sha256), - /* K103 */ be_nested_str_weak(get_pk), - /* K104 */ be_nested_str_weak(Msg1), - /* K105 */ be_nested_str_weak(SHA256), - /* K106 */ be_nested_str_weak(update), - /* K107 */ be_nested_str_weak(out), - /* K108 */ be_nested_str_weak(S2K_Info), - /* K109 */ be_nested_str_weak(get_ipk_group_key), - /* K110 */ be_nested_str_weak(TBEData2_Nonce), - /* K111 */ be_nested_str_weak(encrypt), - /* K112 */ be_nested_str_weak(Sigma2), - /* K113 */ be_nested_str_weak(responderRandom), - /* K114 */ be_nested_str_weak(responderSessionId), - /* K115 */ be_nested_str_weak(responderEphPubKey), - /* K116 */ be_nested_str_weak(encrypted2), - /* K117 */ be_nested_str_weak(__Msg2), + /* K103 */ 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), + /* K104 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20fabric_X2Eget_pk_X20_X20_X3D_X20), + /* K105 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20sigma2_tbsdata_X20_X20_X3D_X20), + /* K106 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBSData2Signature_X20_X20_X3D_X20), + /* K107 */ be_nested_str_weak(Msg1), + /* K108 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20resumptionid_X20_X20_X3D_X20), + /* K109 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20MSG1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K110 */ be_nested_str_weak(SHA256), + /* K111 */ be_nested_str_weak(update), + /* K112 */ be_nested_str_weak(out), + /* K113 */ be_nested_str_weak(MTR_X3A_X20TranscriptHash_X20_X3D), + /* K114 */ be_nested_str_weak(S2K_Info), + /* K115 */ be_nested_str_weak(get_ipk_group_key), + /* K116 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20SharedSecret_X20_X20_X3D_X20), + /* K117 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_salt_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K118 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), + /* K119 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Raw_X20_X20_X20_X3D_X20), + /* K120 */ be_nested_str_weak(TBEData2_Nonce), + /* K121 */ be_nested_str_weak(encrypt), + /* K122 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Enc_X20_X20_X20_X3D_X20), + /* K123 */ be_nested_str_weak(Sigma2), + /* K124 */ be_nested_str_weak(responderRandom), + /* K125 */ be_nested_str_weak(responderSessionId), + /* K126 */ be_nested_str_weak(responderEphPubKey), + /* K127 */ be_nested_str_weak(encrypted2), + /* K128 */ be_nested_str_weak(MTR_X3A_X20sigma2_X3A_X20), + /* K129 */ be_nested_str_weak(__Msg2), }), be_str_weak(parse_Sigma1), &be_const_str_solidified, - ( &(const binstruction[576]) { /* code */ + ( &(const binstruction[689]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0x88100302, // 0002 GETMBR R4 R1 K2 @@ -1833,7 +1845,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x70020000, // 011A JMP #011C 0x50180000, // 011B LDBOOL R6 0 0 0x5C200C00, // 011C MOVE R8 R6 - 0x7422011F, // 011D JMPT R8 #023E + 0x74220190, // 011D JMPT R8 #02AF 0x8C20014C, // 011E GETMET R8 R0 K76 0x88280B4D, // 011F GETMBR R10 R5 K77 0x882C0B1F, // 0120 GETMBR R11 R5 K31 @@ -1892,8 +1904,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x7C240600, // 0155 CALL R9 3 0xB8260E00, // 0156 GETNGBL R9 K7 0x8C241308, // 0157 GETMET R9 R9 K8 - 0x882C091E, // 0158 GETMBR R11 R4 K30 - 0x882C1751, // 0159 GETMBR R11 R11 K81 + 0x8C2C0951, // 0158 GETMET R11 R4 K81 + 0x7C2C0200, // 0159 CALL R11 1 0x8C2C1752, // 015A GETMET R11 R11 K82 0x7C2C0200, // 015B CALL R11 1 0x002EA00B, // 015C ADD R11 K80 R11 @@ -1901,229 +1913,342 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x7C240600, // 015E CALL R9 3 0xB8260E00, // 015F GETNGBL R9 K7 0x8C241308, // 0160 GETMET R9 R9 K8 - 0x882C091E, // 0161 GETMBR R11 R4 K30 - 0x882C1754, // 0162 GETMBR R11 R11 K84 + 0x8C2C0954, // 0161 GETMET R11 R4 K84 + 0x7C2C0200, // 0162 CALL R11 1 0x8C2C1752, // 0163 GETMET R11 R11 K82 0x7C2C0200, // 0164 CALL R11 1 0x002EA60B, // 0165 ADD R11 K83 R11 0x54320003, // 0166 LDINT R12 4 0x7C240600, // 0167 CALL R9 3 - 0x8824091E, // 0168 GETMBR R9 R4 K30 - 0x8C241355, // 0169 GETMET R9 R9 K85 - 0x7C240200, // 016A CALL R9 1 - 0x78260009, // 016B JMPF R9 #0176 - 0xB8260E00, // 016C GETNGBL R9 K7 - 0x8C241308, // 016D GETMET R9 R9 K8 - 0x882C091E, // 016E GETMBR R11 R4 K30 - 0x8C2C1755, // 016F GETMET R11 R11 K85 + 0x8C241155, // 0168 GETMET R9 R8 K85 + 0x7C240200, // 0169 CALL R9 1 + 0x78260008, // 016A JMPF R9 #0174 + 0xB8260E00, // 016B GETNGBL R9 K7 + 0x8C241308, // 016C GETMET R9 R9 K8 + 0x8C2C1155, // 016D GETMET R11 R8 K85 + 0x7C2C0200, // 016E CALL R11 1 + 0x8C2C1752, // 016F GETMET R11 R11 K82 0x7C2C0200, // 0170 CALL R11 1 - 0x8C2C1752, // 0171 GETMET R11 R11 K82 - 0x7C2C0200, // 0172 CALL R11 1 - 0x002EAC0B, // 0173 ADD R11 K86 R11 - 0x54320003, // 0174 LDINT R12 4 - 0x7C240600, // 0175 CALL R9 3 - 0xB8260E00, // 0176 GETNGBL R9 K7 - 0x8C241308, // 0177 GETMET R9 R9 K8 - 0x882C091E, // 0178 GETMBR R11 R4 K30 - 0x882C1758, // 0179 GETMBR R11 R11 K88 - 0x8C2C1752, // 017A GETMET R11 R11 K82 - 0x7C2C0200, // 017B CALL R11 1 - 0x002EAE0B, // 017C ADD R11 K87 R11 - 0x54320003, // 017D LDINT R12 4 - 0x7C240600, // 017E CALL R9 3 - 0x8C240535, // 017F GETMET R9 R2 K53 - 0x542E000F, // 0180 LDINT R11 16 - 0x7C240400, // 0181 CALL R9 2 - 0x90126809, // 0182 SETMBR R4 K52 R9 - 0x8C240535, // 0183 GETMET R9 R2 K53 - 0x542E001F, // 0184 LDINT R11 32 - 0x7C240400, // 0185 CALL R9 2 - 0x9012B209, // 0186 SETMBR R4 K89 R9 - 0x8C24055B, // 0187 GETMET R9 R2 K91 - 0x7C240200, // 0188 CALL R9 1 - 0x8C24135C, // 0189 GETMET R9 R9 K92 - 0x882C0959, // 018A GETMBR R11 R4 K89 - 0x7C240400, // 018B CALL R9 2 - 0x9012B409, // 018C SETMBR R4 K90 R9 - 0xB8260E00, // 018D GETNGBL R9 K7 - 0x8C241308, // 018E GETMET R9 R9 K8 - 0x882C0959, // 018F GETMBR R11 R4 K89 - 0x8C2C1752, // 0190 GETMET R11 R11 K82 - 0x7C2C0200, // 0191 CALL R11 1 - 0x002EBA0B, // 0192 ADD R11 K93 R11 - 0x54320003, // 0193 LDINT R12 4 - 0x7C240600, // 0194 CALL R9 3 - 0xB8260E00, // 0195 GETNGBL R9 K7 - 0x8C241308, // 0196 GETMET R9 R9 K8 - 0x882C095A, // 0197 GETMBR R11 R4 K90 - 0x8C2C1752, // 0198 GETMET R11 R11 K82 - 0x7C2C0200, // 0199 CALL R11 1 - 0x002EBC0B, // 019A ADD R11 K94 R11 - 0x54320003, // 019B LDINT R12 4 - 0x7C240600, // 019C CALL R9 3 - 0x8C240535, // 019D GETMET R9 R2 K53 - 0x542E001F, // 019E LDINT R11 32 - 0x7C240400, // 019F CALL R9 2 - 0x8C28055B, // 01A0 GETMET R10 R2 K91 - 0x7C280200, // 01A1 CALL R10 1 - 0x8C28155F, // 01A2 GETMET R10 R10 K95 - 0x88300959, // 01A3 GETMBR R12 R4 K89 - 0x88340B16, // 01A4 GETMBR R13 R5 K22 - 0x7C280600, // 01A5 CALL R10 3 - 0x9012480A, // 01A6 SETMBR R4 K36 R10 - 0xB82A1A00, // 01A7 GETNGBL R10 K13 - 0x88281560, // 01A8 GETMBR R10 R10 K96 - 0x8C281561, // 01A9 GETMET R10 R10 K97 - 0x7C280200, // 01AA CALL R10 1 - 0x8C2C1562, // 01AB GETMET R11 R10 K98 - 0x5834000C, // 01AC LDCONST R13 K12 - 0xB83A1A00, // 01AD GETNGBL R14 K13 - 0x88381D60, // 01AE GETMBR R14 R14 K96 - 0x88381D63, // 01AF GETMBR R14 R14 K99 - 0x8C3C0964, // 01B0 GETMET R15 R4 K100 - 0x7C3C0200, // 01B1 CALL R15 1 - 0x7C2C0800, // 01B2 CALL R11 4 - 0x8C2C1562, // 01B3 GETMET R11 R10 K98 - 0x5834000A, // 01B4 LDCONST R13 K10 - 0xB83A1A00, // 01B5 GETNGBL R14 K13 - 0x88381D60, // 01B6 GETMBR R14 R14 K96 - 0x88381D63, // 01B7 GETMBR R14 R14 K99 - 0x8C3C0955, // 01B8 GETMET R15 R4 K85 - 0x7C3C0200, // 01B9 CALL R15 1 - 0x7C2C0800, // 01BA CALL R11 4 - 0x8C2C1562, // 01BB GETMET R11 R10 K98 - 0x58340065, // 01BC LDCONST R13 K101 - 0xB83A1A00, // 01BD GETNGBL R14 K13 - 0x88381D60, // 01BE GETMBR R14 R14 K96 - 0x88381D63, // 01BF GETMBR R14 R14 K99 - 0x883C095A, // 01C0 GETMBR R15 R4 K90 - 0x7C2C0800, // 01C1 CALL R11 4 - 0x8C2C1562, // 01C2 GETMET R11 R10 K98 - 0x54360003, // 01C3 LDINT R13 4 - 0xB83A1A00, // 01C4 GETNGBL R14 K13 - 0x88381D60, // 01C5 GETMBR R14 R14 K96 - 0x88381D63, // 01C6 GETMBR R14 R14 K99 - 0x883C0B16, // 01C7 GETMBR R15 R5 K22 - 0x7C2C0800, // 01C8 CALL R11 4 - 0x8C2C055B, // 01C9 GETMET R11 R2 K91 - 0x7C2C0200, // 01CA CALL R11 1 - 0x8C2C1766, // 01CB GETMET R11 R11 K102 - 0x8C340967, // 01CC GETMET R13 R4 K103 - 0x7C340200, // 01CD CALL R13 1 - 0x8C38153E, // 01CE GETMET R14 R10 K62 - 0x7C380200, // 01CF CALL R14 1 - 0x7C2C0600, // 01D0 CALL R11 3 - 0xB8321A00, // 01D1 GETNGBL R12 K13 - 0x88301960, // 01D2 GETMBR R12 R12 K96 - 0x8C301961, // 01D3 GETMET R12 R12 K97 - 0x7C300200, // 01D4 CALL R12 1 - 0x8C341962, // 01D5 GETMET R13 R12 K98 - 0x583C000C, // 01D6 LDCONST R15 K12 - 0xB8421A00, // 01D7 GETNGBL R16 K13 - 0x88402160, // 01D8 GETMBR R16 R16 K96 - 0x88402163, // 01D9 GETMBR R16 R16 K99 - 0x8C440964, // 01DA GETMET R17 R4 K100 - 0x7C440200, // 01DB CALL R17 1 - 0x7C340800, // 01DC CALL R13 4 - 0x8C341962, // 01DD GETMET R13 R12 K98 - 0x583C000A, // 01DE LDCONST R15 K10 - 0xB8421A00, // 01DF GETNGBL R16 K13 - 0x88402160, // 01E0 GETMBR R16 R16 K96 - 0x88402163, // 01E1 GETMBR R16 R16 K99 - 0x8C440955, // 01E2 GETMET R17 R4 K85 - 0x7C440200, // 01E3 CALL R17 1 - 0x7C340800, // 01E4 CALL R13 4 - 0x8C341962, // 01E5 GETMET R13 R12 K98 - 0x583C0065, // 01E6 LDCONST R15 K101 - 0xB8421A00, // 01E7 GETNGBL R16 K13 - 0x88402160, // 01E8 GETMBR R16 R16 K96 - 0x88402163, // 01E9 GETMBR R16 R16 K99 - 0x5C441600, // 01EA MOVE R17 R11 - 0x7C340800, // 01EB CALL R13 4 - 0x8C341962, // 01EC GETMET R13 R12 K98 - 0x543E0003, // 01ED LDINT R15 4 - 0xB8421A00, // 01EE GETNGBL R16 K13 - 0x88402160, // 01EF GETMBR R16 R16 K96 - 0x88402163, // 01F0 GETMBR R16 R16 K99 - 0x88440934, // 01F1 GETMBR R17 R4 K52 - 0x7C340800, // 01F2 CALL R13 4 - 0x88340B68, // 01F3 GETMBR R13 R5 K104 - 0x90127E0D, // 01F4 SETMBR R4 K63 R13 - 0x8C340569, // 01F5 GETMET R13 R2 K105 - 0x7C340200, // 01F6 CALL R13 1 - 0x8C341B6A, // 01F7 GETMET R13 R13 K106 - 0x883C093F, // 01F8 GETMBR R15 R4 K63 - 0x7C340400, // 01F9 CALL R13 2 - 0x8C341B6B, // 01FA GETMET R13 R13 K107 - 0x7C340200, // 01FB CALL R13 1 - 0x60380015, // 01FC GETGBL R14 G21 - 0x7C380000, // 01FD CALL R14 0 - 0x8C381D20, // 01FE GETMET R14 R14 K32 - 0x8840016C, // 01FF GETMBR R16 R0 K108 - 0x7C380400, // 0200 CALL R14 2 - 0x8C3C096D, // 0201 GETMET R15 R4 K109 - 0x7C3C0200, // 0202 CALL R15 1 - 0x003C1E09, // 0203 ADD R15 R15 R9 - 0x8840095A, // 0204 GETMBR R16 R4 K90 - 0x003C1E10, // 0205 ADD R15 R15 R16 - 0x003C1E0D, // 0206 ADD R15 R15 R13 - 0x8C400522, // 0207 GETMET R16 R2 K34 - 0x7C400200, // 0208 CALL R16 1 - 0x8C402123, // 0209 GETMET R16 R16 K35 - 0x88480924, // 020A GETMBR R18 R4 K36 - 0x5C4C1E00, // 020B MOVE R19 R15 - 0x5C501C00, // 020C MOVE R20 R14 - 0x5456000F, // 020D LDINT R21 16 - 0x7C400A00, // 020E CALL R16 5 - 0x8C44193E, // 020F GETMET R17 R12 K62 - 0x7C440200, // 0210 CALL R17 1 - 0x8C480527, // 0211 GETMET R18 R2 K39 - 0x5C502000, // 0212 MOVE R20 R16 - 0x60540015, // 0213 GETGBL R21 G21 - 0x7C540000, // 0214 CALL R21 0 - 0x8C542B20, // 0215 GETMET R21 R21 K32 - 0x885C016E, // 0216 GETMBR R23 R0 K110 - 0x7C540400, // 0217 CALL R21 2 - 0x60580015, // 0218 GETGBL R22 G21 - 0x7C580000, // 0219 CALL R22 0 - 0x605C000C, // 021A GETGBL R23 G12 - 0x5C602200, // 021B MOVE R24 R17 - 0x7C5C0200, // 021C CALL R23 1 - 0x5462000F, // 021D LDINT R24 16 - 0x7C480C00, // 021E CALL R18 6 - 0x8C4C256F, // 021F GETMET R19 R18 K111 - 0x5C542200, // 0220 MOVE R21 R17 - 0x7C4C0400, // 0221 CALL R19 2 - 0x8C502529, // 0222 GETMET R20 R18 K41 - 0x7C500200, // 0223 CALL R20 1 - 0x004C2614, // 0224 ADD R19 R19 R20 - 0xB8521A00, // 0225 GETNGBL R20 K13 - 0x8C502970, // 0226 GETMET R20 R20 K112 - 0x7C500200, // 0227 CALL R20 1 - 0x9052E209, // 0228 SETMBR R20 K113 R9 - 0x8854092F, // 0229 GETMBR R21 R4 K47 - 0x9052E415, // 022A SETMBR R20 K114 R21 - 0x8854095A, // 022B GETMBR R21 R4 K90 - 0x9052E615, // 022C SETMBR R20 K115 R21 - 0x9052E813, // 022D SETMBR R20 K116 R19 - 0x8C54293E, // 022E GETMET R21 R20 K62 - 0x7C540200, // 022F CALL R21 1 - 0x9012EA15, // 0230 SETMBR R4 K117 R21 - 0x8C580340, // 0231 GETMET R22 R1 K64 - 0x54620030, // 0232 LDINT R24 49 - 0x50640200, // 0233 LDBOOL R25 1 0 - 0x7C580600, // 0234 CALL R22 3 - 0x8C5C2D41, // 0235 GETMET R23 R22 K65 - 0x5C642A00, // 0236 MOVE R25 R21 - 0x7C5C0400, // 0237 CALL R23 2 - 0x88600142, // 0238 GETMBR R24 R0 K66 - 0x8C603143, // 0239 GETMET R24 R24 K67 - 0x5C682C00, // 023A MOVE R26 R22 - 0x7C600400, // 023B CALL R24 2 - 0x50600200, // 023C LDBOOL R24 1 0 - 0x80043000, // 023D RET 1 R24 - 0x50200200, // 023E LDBOOL R8 1 0 - 0x80041000, // 023F RET 1 R8 + 0x002EAC0B, // 0171 ADD R11 K86 R11 + 0x54320003, // 0172 LDINT R12 4 + 0x7C240600, // 0173 CALL R9 3 + 0xB8260E00, // 0174 GETNGBL R9 K7 + 0x8C241308, // 0175 GETMET R9 R9 K8 + 0x8C2C1158, // 0176 GETMET R11 R8 K88 + 0x7C2C0200, // 0177 CALL R11 1 + 0x8C2C1752, // 0178 GETMET R11 R11 K82 + 0x7C2C0200, // 0179 CALL R11 1 + 0x002EAE0B, // 017A ADD R11 K87 R11 + 0x54320003, // 017B LDINT R12 4 + 0x7C240600, // 017C CALL R9 3 + 0x8C240535, // 017D GETMET R9 R2 K53 + 0x542E000F, // 017E LDINT R11 16 + 0x7C240400, // 017F CALL R9 2 + 0x90126809, // 0180 SETMBR R4 K52 R9 + 0x8C240535, // 0181 GETMET R9 R2 K53 + 0x542E001F, // 0182 LDINT R11 32 + 0x7C240400, // 0183 CALL R9 2 + 0x9012B209, // 0184 SETMBR R4 K89 R9 + 0x8C24055B, // 0185 GETMET R9 R2 K91 + 0x7C240200, // 0186 CALL R9 1 + 0x8C24135C, // 0187 GETMET R9 R9 K92 + 0x882C0959, // 0188 GETMBR R11 R4 K89 + 0x7C240400, // 0189 CALL R9 2 + 0x9012B409, // 018A SETMBR R4 K90 R9 + 0xB8260E00, // 018B GETNGBL R9 K7 + 0x8C241308, // 018C GETMET R9 R9 K8 + 0x882C0959, // 018D GETMBR R11 R4 K89 + 0x8C2C1752, // 018E GETMET R11 R11 K82 + 0x7C2C0200, // 018F CALL R11 1 + 0x002EBA0B, // 0190 ADD R11 K93 R11 + 0x54320003, // 0191 LDINT R12 4 + 0x7C240600, // 0192 CALL R9 3 + 0xB8260E00, // 0193 GETNGBL R9 K7 + 0x8C241308, // 0194 GETMET R9 R9 K8 + 0x882C095A, // 0195 GETMBR R11 R4 K90 + 0x8C2C1752, // 0196 GETMET R11 R11 K82 + 0x7C2C0200, // 0197 CALL R11 1 + 0x002EBC0B, // 0198 ADD R11 K94 R11 + 0x54320003, // 0199 LDINT R12 4 + 0x7C240600, // 019A CALL R9 3 + 0x8C240535, // 019B GETMET R9 R2 K53 + 0x542E001F, // 019C LDINT R11 32 + 0x7C240400, // 019D CALL R9 2 + 0x8C28055B, // 019E GETMET R10 R2 K91 + 0x7C280200, // 019F CALL R10 1 + 0x8C28155F, // 01A0 GETMET R10 R10 K95 + 0x88300959, // 01A1 GETMBR R12 R4 K89 + 0x88340B16, // 01A2 GETMBR R13 R5 K22 + 0x7C280600, // 01A3 CALL R10 3 + 0x9012480A, // 01A4 SETMBR R4 K36 R10 + 0xB82A0E00, // 01A5 GETNGBL R10 K7 + 0x8C281508, // 01A6 GETMET R10 R10 K8 + 0x88300924, // 01A7 GETMBR R12 R4 K36 + 0x8C301952, // 01A8 GETMET R12 R12 K82 + 0x7C300200, // 01A9 CALL R12 1 + 0x0032C00C, // 01AA ADD R12 K96 R12 + 0x54360003, // 01AB LDINT R13 4 + 0x7C280600, // 01AC CALL R10 3 + 0xB82A1A00, // 01AD GETNGBL R10 K13 + 0x88281561, // 01AE GETMBR R10 R10 K97 + 0x8C281562, // 01AF GETMET R10 R10 K98 + 0x7C280200, // 01B0 CALL R10 1 + 0x8C2C1563, // 01B1 GETMET R11 R10 K99 + 0x5834000C, // 01B2 LDCONST R13 K12 + 0xB83A1A00, // 01B3 GETNGBL R14 K13 + 0x88381D61, // 01B4 GETMBR R14 R14 K97 + 0x88381D64, // 01B5 GETMBR R14 R14 K100 + 0x8C3C1154, // 01B6 GETMET R15 R8 K84 + 0x7C3C0200, // 01B7 CALL R15 1 + 0x7C2C0800, // 01B8 CALL R11 4 + 0x8C2C1563, // 01B9 GETMET R11 R10 K99 + 0x5834000A, // 01BA LDCONST R13 K10 + 0xB83A1A00, // 01BB GETNGBL R14 K13 + 0x88381D61, // 01BC GETMBR R14 R14 K97 + 0x88381D64, // 01BD GETMBR R14 R14 K100 + 0x8C3C1155, // 01BE GETMET R15 R8 K85 + 0x7C3C0200, // 01BF CALL R15 1 + 0x7C2C0800, // 01C0 CALL R11 4 + 0x8C2C1563, // 01C1 GETMET R11 R10 K99 + 0x58340065, // 01C2 LDCONST R13 K101 + 0xB83A1A00, // 01C3 GETNGBL R14 K13 + 0x88381D61, // 01C4 GETMBR R14 R14 K97 + 0x88381D64, // 01C5 GETMBR R14 R14 K100 + 0x883C095A, // 01C6 GETMBR R15 R4 K90 + 0x7C2C0800, // 01C7 CALL R11 4 + 0x8C2C1563, // 01C8 GETMET R11 R10 K99 + 0x54360003, // 01C9 LDINT R13 4 + 0xB83A1A00, // 01CA GETNGBL R14 K13 + 0x88381D61, // 01CB GETMBR R14 R14 K97 + 0x88381D64, // 01CC GETMBR R14 R14 K100 + 0x883C0B16, // 01CD GETMBR R15 R5 K22 + 0x7C2C0800, // 01CE CALL R11 4 + 0x8C2C055B, // 01CF GETMET R11 R2 K91 + 0x7C2C0200, // 01D0 CALL R11 1 + 0x8C2C1766, // 01D1 GETMET R11 R11 K102 + 0x8C341151, // 01D2 GETMET R13 R8 K81 + 0x7C340200, // 01D3 CALL R13 1 + 0x8C38153E, // 01D4 GETMET R14 R10 K62 + 0x7C380200, // 01D5 CALL R14 1 + 0x7C2C0600, // 01D6 CALL R11 3 + 0xB8320E00, // 01D7 GETNGBL R12 K7 + 0x8C301908, // 01D8 GETMET R12 R12 K8 + 0x58380067, // 01D9 LDCONST R14 K103 + 0x543E0003, // 01DA LDINT R15 4 + 0x7C300600, // 01DB CALL R12 3 + 0xB8320E00, // 01DC GETNGBL R12 K7 + 0x8C301908, // 01DD GETMET R12 R12 K8 + 0x60380008, // 01DE GETGBL R14 G8 + 0x8C3C1151, // 01DF GETMET R15 R8 K81 + 0x7C3C0200, // 01E0 CALL R15 1 + 0x7C380200, // 01E1 CALL R14 1 + 0x003AD00E, // 01E2 ADD R14 K104 R14 + 0x543E0003, // 01E3 LDINT R15 4 + 0x7C300600, // 01E4 CALL R12 3 + 0xB8320E00, // 01E5 GETNGBL R12 K7 + 0x8C301908, // 01E6 GETMET R12 R12 K8 + 0x60380008, // 01E7 GETGBL R14 G8 + 0x5C3C1400, // 01E8 MOVE R15 R10 + 0x7C380200, // 01E9 CALL R14 1 + 0x003AD20E, // 01EA ADD R14 K105 R14 + 0x543E0003, // 01EB LDINT R15 4 + 0x7C300600, // 01EC CALL R12 3 + 0xB8320E00, // 01ED GETNGBL R12 K7 + 0x8C301908, // 01EE GETMET R12 R12 K8 + 0x8C381752, // 01EF GETMET R14 R11 K82 + 0x7C380200, // 01F0 CALL R14 1 + 0x003AD40E, // 01F1 ADD R14 K106 R14 + 0x543E0003, // 01F2 LDINT R15 4 + 0x7C300600, // 01F3 CALL R12 3 + 0xB8321A00, // 01F4 GETNGBL R12 K13 + 0x88301961, // 01F5 GETMBR R12 R12 K97 + 0x8C301962, // 01F6 GETMET R12 R12 K98 + 0x7C300200, // 01F7 CALL R12 1 + 0x8C341963, // 01F8 GETMET R13 R12 K99 + 0x583C000C, // 01F9 LDCONST R15 K12 + 0xB8421A00, // 01FA GETNGBL R16 K13 + 0x88402161, // 01FB GETMBR R16 R16 K97 + 0x88402164, // 01FC GETMBR R16 R16 K100 + 0x8C441154, // 01FD GETMET R17 R8 K84 + 0x7C440200, // 01FE CALL R17 1 + 0x7C340800, // 01FF CALL R13 4 + 0x8C341963, // 0200 GETMET R13 R12 K99 + 0x583C000A, // 0201 LDCONST R15 K10 + 0xB8421A00, // 0202 GETNGBL R16 K13 + 0x88402161, // 0203 GETMBR R16 R16 K97 + 0x88402164, // 0204 GETMBR R16 R16 K100 + 0x8C441155, // 0205 GETMET R17 R8 K85 + 0x7C440200, // 0206 CALL R17 1 + 0x7C340800, // 0207 CALL R13 4 + 0x8C341963, // 0208 GETMET R13 R12 K99 + 0x583C0065, // 0209 LDCONST R15 K101 + 0xB8421A00, // 020A GETNGBL R16 K13 + 0x88402161, // 020B GETMBR R16 R16 K97 + 0x88402164, // 020C GETMBR R16 R16 K100 + 0x5C441600, // 020D MOVE R17 R11 + 0x7C340800, // 020E CALL R13 4 + 0x8C341963, // 020F GETMET R13 R12 K99 + 0x543E0003, // 0210 LDINT R15 4 + 0xB8421A00, // 0211 GETNGBL R16 K13 + 0x88402161, // 0212 GETMBR R16 R16 K97 + 0x88402164, // 0213 GETMBR R16 R16 K100 + 0x88440934, // 0214 GETMBR R17 R4 K52 + 0x7C340800, // 0215 CALL R13 4 + 0xB8360E00, // 0216 GETNGBL R13 K7 + 0x8C341B08, // 0217 GETMET R13 R13 K8 + 0x583C0067, // 0218 LDCONST R15 K103 + 0x54420003, // 0219 LDINT R16 4 + 0x7C340600, // 021A CALL R13 3 + 0x88340B6B, // 021B GETMBR R13 R5 K107 + 0x90127E0D, // 021C SETMBR R4 K63 R13 + 0xB8360E00, // 021D GETNGBL R13 K7 + 0x8C341B08, // 021E GETMET R13 R13 K8 + 0x883C0934, // 021F GETMBR R15 R4 K52 + 0x8C3C1F52, // 0220 GETMET R15 R15 K82 + 0x7C3C0200, // 0221 CALL R15 1 + 0x003ED80F, // 0222 ADD R15 K108 R15 + 0x54420003, // 0223 LDINT R16 4 + 0x7C340600, // 0224 CALL R13 3 + 0xB8360E00, // 0225 GETNGBL R13 K7 + 0x8C341B08, // 0226 GETMET R13 R13 K8 + 0x883C093F, // 0227 GETMBR R15 R4 K63 + 0x8C3C1F52, // 0228 GETMET R15 R15 K82 + 0x7C3C0200, // 0229 CALL R15 1 + 0x003EDA0F, // 022A ADD R15 K109 R15 + 0x54420003, // 022B LDINT R16 4 + 0x7C340600, // 022C CALL R13 3 + 0x8C34056E, // 022D GETMET R13 R2 K110 + 0x7C340200, // 022E CALL R13 1 + 0x8C341B6F, // 022F GETMET R13 R13 K111 + 0x883C093F, // 0230 GETMBR R15 R4 K63 + 0x7C340400, // 0231 CALL R13 2 + 0x8C341B70, // 0232 GETMET R13 R13 K112 + 0x7C340200, // 0233 CALL R13 1 + 0xB83A0E00, // 0234 GETNGBL R14 K7 + 0x8C381D08, // 0235 GETMET R14 R14 K8 + 0x8C401B52, // 0236 GETMET R16 R13 K82 + 0x7C400200, // 0237 CALL R16 1 + 0x0042E210, // 0238 ADD R16 K113 R16 + 0x54460003, // 0239 LDINT R17 4 + 0x7C380600, // 023A CALL R14 3 + 0x60380015, // 023B GETGBL R14 G21 + 0x7C380000, // 023C CALL R14 0 + 0x8C381D20, // 023D GETMET R14 R14 K32 + 0x88400172, // 023E GETMBR R16 R0 K114 + 0x7C380400, // 023F CALL R14 2 + 0x8C3C1173, // 0240 GETMET R15 R8 K115 + 0x7C3C0200, // 0241 CALL R15 1 + 0x003C1E09, // 0242 ADD R15 R15 R9 + 0x8840095A, // 0243 GETMBR R16 R4 K90 + 0x003C1E10, // 0244 ADD R15 R15 R16 + 0x003C1E0D, // 0245 ADD R15 R15 R13 + 0x8C400522, // 0246 GETMET R16 R2 K34 + 0x7C400200, // 0247 CALL R16 1 + 0x8C402123, // 0248 GETMET R16 R16 K35 + 0x88480924, // 0249 GETMBR R18 R4 K36 + 0x5C4C1E00, // 024A MOVE R19 R15 + 0x5C501C00, // 024B MOVE R20 R14 + 0x5456000F, // 024C LDINT R21 16 + 0x7C400A00, // 024D CALL R16 5 + 0xB8460E00, // 024E GETNGBL R17 K7 + 0x8C442308, // 024F GETMET R17 R17 K8 + 0x884C0924, // 0250 GETMBR R19 R4 K36 + 0x8C4C2752, // 0251 GETMET R19 R19 K82 + 0x7C4C0200, // 0252 CALL R19 1 + 0x004EE813, // 0253 ADD R19 K116 R19 + 0x54520003, // 0254 LDINT R20 4 + 0x7C440600, // 0255 CALL R17 3 + 0xB8460E00, // 0256 GETNGBL R17 K7 + 0x8C442308, // 0257 GETMET R17 R17 K8 + 0x8C4C1F52, // 0258 GETMET R19 R15 K82 + 0x7C4C0200, // 0259 CALL R19 1 + 0x004EEA13, // 025A ADD R19 K117 R19 + 0x54520003, // 025B LDINT R20 4 + 0x7C440600, // 025C CALL R17 3 + 0xB8460E00, // 025D GETNGBL R17 K7 + 0x8C442308, // 025E GETMET R17 R17 K8 + 0x8C4C2152, // 025F GETMET R19 R16 K82 + 0x7C4C0200, // 0260 CALL R19 1 + 0x004EEC13, // 0261 ADD R19 K118 R19 + 0x54520003, // 0262 LDINT R20 4 + 0x7C440600, // 0263 CALL R17 3 + 0x8C44193E, // 0264 GETMET R17 R12 K62 + 0x7C440200, // 0265 CALL R17 1 + 0xB84A0E00, // 0266 GETNGBL R18 K7 + 0x8C482508, // 0267 GETMET R18 R18 K8 + 0x8C502352, // 0268 GETMET R20 R17 K82 + 0x7C500200, // 0269 CALL R20 1 + 0x0052EE14, // 026A ADD R20 K119 R20 + 0x54560003, // 026B LDINT R21 4 + 0x7C480600, // 026C CALL R18 3 + 0x8C480527, // 026D GETMET R18 R2 K39 + 0x5C502000, // 026E MOVE R20 R16 + 0x60540015, // 026F GETGBL R21 G21 + 0x7C540000, // 0270 CALL R21 0 + 0x8C542B20, // 0271 GETMET R21 R21 K32 + 0x885C0178, // 0272 GETMBR R23 R0 K120 + 0x7C540400, // 0273 CALL R21 2 + 0x60580015, // 0274 GETGBL R22 G21 + 0x7C580000, // 0275 CALL R22 0 + 0x605C000C, // 0276 GETGBL R23 G12 + 0x5C602200, // 0277 MOVE R24 R17 + 0x7C5C0200, // 0278 CALL R23 1 + 0x5462000F, // 0279 LDINT R24 16 + 0x7C480C00, // 027A CALL R18 6 + 0x8C4C2579, // 027B GETMET R19 R18 K121 + 0x5C542200, // 027C MOVE R21 R17 + 0x7C4C0400, // 027D CALL R19 2 + 0x8C502529, // 027E GETMET R20 R18 K41 + 0x7C500200, // 027F CALL R20 1 + 0x004C2614, // 0280 ADD R19 R19 R20 + 0xB8520E00, // 0281 GETNGBL R20 K7 + 0x8C502908, // 0282 GETMET R20 R20 K8 + 0x8C582752, // 0283 GETMET R22 R19 K82 + 0x7C580200, // 0284 CALL R22 1 + 0x005AF416, // 0285 ADD R22 K122 R22 + 0x545E0003, // 0286 LDINT R23 4 + 0x7C500600, // 0287 CALL R20 3 + 0xB8520E00, // 0288 GETNGBL R20 K7 + 0x8C502908, // 0289 GETMET R20 R20 K8 + 0x58580067, // 028A LDCONST R22 K103 + 0x545E0003, // 028B LDINT R23 4 + 0x7C500600, // 028C CALL R20 3 + 0xB8521A00, // 028D GETNGBL R20 K13 + 0x8C50297B, // 028E GETMET R20 R20 K123 + 0x7C500200, // 028F CALL R20 1 + 0x9052F809, // 0290 SETMBR R20 K124 R9 + 0x8854092F, // 0291 GETMBR R21 R4 K47 + 0x9052FA15, // 0292 SETMBR R20 K125 R21 + 0x8854095A, // 0293 GETMBR R21 R4 K90 + 0x9052FC15, // 0294 SETMBR R20 K126 R21 + 0x9052FE13, // 0295 SETMBR R20 K127 R19 + 0xB8560E00, // 0296 GETNGBL R21 K7 + 0x8C542B08, // 0297 GETMET R21 R21 K8 + 0xB85E1A00, // 0298 GETNGBL R23 K13 + 0x8C5C2F14, // 0299 GETMET R23 R23 K20 + 0x5C642800, // 029A MOVE R25 R20 + 0x7C5C0400, // 029B CALL R23 2 + 0x005F0017, // 029C ADD R23 K128 R23 + 0x54620003, // 029D LDINT R24 4 + 0x7C540600, // 029E CALL R21 3 + 0x8C54293E, // 029F GETMET R21 R20 K62 + 0x7C540200, // 02A0 CALL R21 1 + 0x90130215, // 02A1 SETMBR R4 K129 R21 + 0x8C580340, // 02A2 GETMET R22 R1 K64 + 0x54620030, // 02A3 LDINT R24 49 + 0x50640200, // 02A4 LDBOOL R25 1 0 + 0x7C580600, // 02A5 CALL R22 3 + 0x8C5C2D41, // 02A6 GETMET R23 R22 K65 + 0x5C642A00, // 02A7 MOVE R25 R21 + 0x7C5C0400, // 02A8 CALL R23 2 + 0x88600142, // 02A9 GETMBR R24 R0 K66 + 0x8C603143, // 02AA GETMET R24 R24 K67 + 0x5C682C00, // 02AB MOVE R26 R22 + 0x7C600400, // 02AC CALL R24 2 + 0x50600200, // 02AD LDBOOL R24 1 0 + 0x80043000, // 02AE RET 1 R24 + 0x50200200, // 02AF LDBOOL R8 1 0 + 0x80041000, // 02B0 RET 1 R8 }) ) ); 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 45b190598..42d886046 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h @@ -4652,7 +4652,7 @@ be_local_closure(Matter_Device_msg_received, /* name */ ********************************************************************/ be_local_closure(Matter_Device_start_operational_discovery, /* name */ be_nested_proto( - 9, /* nstack */ + 8, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -4660,20 +4660,18 @@ be_local_closure(Matter_Device_start_operational_discovery, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ + ( &(const bvalue[ 7]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(mdns), /* K2 */ be_nested_str_weak(string), /* 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), + /* K6 */ be_nested_str_weak(mdns_announce_op_discovery), }), be_str_weak(start_operational_discovery), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[13]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0xA4120400, // 0002 IMPORT R4 K2 @@ -4683,14 +4681,10 @@ be_local_closure(Matter_Device_start_operational_discovery, /* name */ 0x90020805, // 0006 SETMBR R0 K4 R5 0x4C140000, // 0007 LDNIL R5 0x90020A05, // 0008 SETMBR R0 K5 R5 - 0x8C140306, // 0009 GETMET R5 R1 K6 - 0x541E003B, // 000A LDINT R7 60 + 0x8C140106, // 0009 GETMET R5 R0 K6 + 0x5C1C0200, // 000A MOVE R7 R1 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 + 0x80000000, // 000C RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h index 94d1f1d16..c9485e9b6 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h @@ -6,6 +6,804 @@ extern const bclass be_class_Matter_Fabric; +/******************************************************************** +** 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: hydrate_post +********************************************************************/ +be_local_closure(Matter_Fabric_hydrate_post, /* 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(_counter_group_data_snd_impl), + /* K1 */ be_nested_str_weak(reset), + /* K2 */ be_nested_str_weak(counter_group_data_snd), + /* K3 */ be_nested_str_weak(_counter_group_ctrl_snd_impl), + /* K4 */ be_nested_str_weak(counter_group_ctrl_snd), + /* K5 */ be_nested_str_weak(val), + }), + be_str_weak(hydrate_post), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x7C040400, // 0003 CALL R1 2 + 0x88040103, // 0004 GETMBR R1 R0 K3 + 0x8C040301, // 0005 GETMET R1 R1 K1 + 0x880C0104, // 0006 GETMBR R3 R0 K4 + 0x7C040400, // 0007 CALL R1 2 + 0x88040100, // 0008 GETMBR R1 R0 K0 + 0x8C040305, // 0009 GETMET R1 R1 K5 + 0x7C040200, // 000A CALL R1 1 + 0x90020401, // 000B SETMBR R0 K2 R1 + 0x88040103, // 000C GETMBR R1 R0 K3 + 0x8C040305, // 000D GETMET R1 R1 K5 + 0x7C040200, // 000E CALL R1 1 + 0x90020801, // 000F SETMBR R0 K4 R1 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_ca +********************************************************************/ +be_local_closure(Matter_Fabric_set_ca, /* 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(root_ca_certificate), + }), + be_str_weak(set_ca), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x80000000, // 0001 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: fabric_completed +********************************************************************/ +be_local_closure(Matter_Fabric_fabric_completed, /* 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(set_no_expiration), + /* K1 */ be_nested_str_weak(set_persist), + /* K2 */ be_nested_str_weak(assign_fabric_index), + /* 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 */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x8C040101, // 0002 GETMET R1 R0 K1 + 0x500C0200, // 0003 LDBOOL R3 1 0 + 0x7C040400, // 0004 CALL R1 2 + 0x8C040102, // 0005 GETMET R1 R0 K2 + 0x7C040200, // 0006 CALL R1 1 + 0x88040103, // 0007 GETMBR R1 R0 K3 + 0x8C040304, // 0008 GETMET R1 R1 K4 + 0x5C0C0000, // 0009 MOVE R3 R0 + 0x7C040400, // 000A CALL R1 2 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_fabric_compressed +********************************************************************/ +be_local_closure(Matter_Fabric_get_fabric_compressed, /* 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_compressed), + }), + be_str_weak(get_fabric_compressed), + &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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: before_remove +********************************************************************/ +be_local_closure(Matter_Fabric_before_remove, /* 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[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_X20_X2DFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27_X20_X28removed_X29), + /* K5 */ be_nested_str_weak(get_fabric_id), + /* K6 */ be_nested_str_weak(copy), + /* K7 */ be_nested_str_weak(reverse), + /* K8 */ be_nested_str_weak(tohex), + /* K9 */ be_const_int(2), + }), + be_str_weak(before_remove), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x8C100303, // 0003 GETMET R4 R1 K3 + 0x58180004, // 0004 LDCONST R6 K4 + 0x8C1C0105, // 0005 GETMET R7 R0 K5 + 0x7C1C0200, // 0006 CALL R7 1 + 0x8C1C0F06, // 0007 GETMET R7 R7 K6 + 0x7C1C0200, // 0008 CALL R7 1 + 0x8C1C0F07, // 0009 GETMET R7 R7 K7 + 0x7C1C0200, // 000A CALL R7 1 + 0x8C1C0F08, // 000B GETMET R7 R7 K8 + 0x7C1C0200, // 000C CALL R7 1 + 0x7C100600, // 000D CALL R4 3 + 0x58140009, // 000E LDCONST R5 K9 + 0x7C080600, // 000F CALL R2 3 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_ca +********************************************************************/ +be_local_closure(Matter_Fabric_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[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(root_ca_certificate), + }), + be_str_weak(get_ca), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: log_new_fabric +********************************************************************/ +be_local_closure(Matter_Fabric_log_new_fabric, /* 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[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_X20_X2BFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27), + /* K5 */ be_nested_str_weak(get_fabric_id), + /* K6 */ be_nested_str_weak(copy), + /* K7 */ be_nested_str_weak(reverse), + /* K8 */ be_nested_str_weak(tohex), + /* K9 */ be_const_int(2), + }), + be_str_weak(log_new_fabric), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x8C100303, // 0003 GETMET R4 R1 K3 + 0x58180004, // 0004 LDCONST R6 K4 + 0x8C1C0105, // 0005 GETMET R7 R0 K5 + 0x7C1C0200, // 0006 CALL R7 1 + 0x8C1C0F06, // 0007 GETMET R7 R7 K6 + 0x7C1C0200, // 0008 CALL R7 1 + 0x8C1C0F07, // 0009 GETMET R7 R7 K7 + 0x7C1C0200, // 000A CALL R7 1 + 0x8C1C0F08, // 000B GETMET R7 R7 K8 + 0x7C1C0200, // 000C CALL R7 1 + 0x7C100600, // 000D CALL R4 3 + 0x58140009, // 000E LDCONST R5 K9 + 0x7C080600, // 000F CALL R2 3 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: assign_fabric_index +********************************************************************/ +be_local_closure(Matter_Fabric_assign_fabric_index, /* 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[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(get_fabric_index), + /* K1 */ be_nested_str_weak(set_fabric_index), + /* K2 */ be_nested_str_weak(_store), + /* K3 */ be_nested_str_weak(next_fabric_idx), + }), + be_str_weak(assign_fabric_index), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x4C080000, // 0002 LDNIL R2 + 0x1C040202, // 0003 EQ R1 R1 R2 + 0x78060004, // 0004 JMPF R1 #000A + 0x8C040101, // 0005 GETMET R1 R0 K1 + 0x880C0102, // 0006 GETMBR R3 R0 K2 + 0x8C0C0703, // 0007 GETMET R3 R3 K3 + 0x7C0C0200, // 0008 CALL R3 1 + 0x7C040400, // 0009 CALL R1 2 + 0x80000000, // 000A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_ipk_epoch_key +********************************************************************/ +be_local_closure(Matter_Fabric_get_ipk_epoch_key, /* 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(ipk_epoch_key), + }), + be_str_weak(get_ipk_epoch_key), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_pk +********************************************************************/ +be_local_closure(Matter_Fabric_set_pk, /* 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(no_private_key), + }), + be_str_weak(set_pk), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x80000000, // 0001 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_ipk_epoch_key +********************************************************************/ +be_local_closure(Matter_Fabric_set_ipk_epoch_key, /* 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(ipk_epoch_key), + }), + be_str_weak(set_ipk_epoch_key), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x80000000, // 0001 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_old_recent_session +********************************************************************/ +be_local_closure(Matter_Fabric_get_old_recent_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_nested_str_weak(_sessions), + /* K1 */ be_const_int(0), + /* K2 */ be_nested_str_weak(last_used), + /* K3 */ be_const_int(1), + }), + be_str_weak(get_old_recent_session), + &be_const_str_solidified, + ( &(const binstruction[30]) { /* code */ + 0x6008000C, // 0000 GETGBL R2 G12 + 0x880C0100, // 0001 GETMBR R3 R0 K0 + 0x7C080200, // 0002 CALL R2 1 + 0x1C080501, // 0003 EQ R2 R2 K1 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x4C080000, // 0005 LDNIL R2 + 0x80040400, // 0006 RET 1 R2 + 0x88080100, // 0007 GETMBR R2 R0 K0 + 0x94080501, // 0008 GETIDX R2 R2 K1 + 0x880C0502, // 0009 GETMBR R3 R2 K2 + 0x58100003, // 000A LDCONST R4 K3 + 0x6014000C, // 000B GETGBL R5 G12 + 0x88180100, // 000C GETMBR R6 R0 K0 + 0x7C140200, // 000D CALL R5 1 + 0x14140805, // 000E LT R5 R4 R5 + 0x7816000C, // 000F JMPF R5 #001D + 0x88140100, // 0010 GETMBR R5 R0 K0 + 0x94140A04, // 0011 GETIDX R5 R5 R4 + 0x88140B02, // 0012 GETMBR R5 R5 K2 + 0x78060001, // 0013 JMPF R1 #0016 + 0x14180A03, // 0014 LT R6 R5 R3 + 0x70020000, // 0015 JMP #0017 + 0x24180A03, // 0016 GT R6 R5 R3 + 0x781A0002, // 0017 JMPF R6 #001B + 0x88180100, // 0018 GETMBR R6 R0 K0 + 0x94080C04, // 0019 GETIDX R2 R6 R4 + 0x5C0C0A00, // 001A MOVE R3 R5 + 0x00100903, // 001B ADD R4 R4 K3 + 0x7001FFED, // 001C JMP #000B + 0x80040400, // 001D RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: counter_group_ctrl_snd_next +********************************************************************/ +be_local_closure(Matter_Fabric_counter_group_ctrl_snd_next, /* 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[15]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(_counter_group_ctrl_snd_impl), + /* K2 */ be_nested_str_weak(next), + /* 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_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_ctrl_snd_X3D_X25i), + /* K7 */ be_const_int(3), + /* K8 */ be_nested_str_weak(matter), + /* K9 */ be_nested_str_weak(Counter), + /* K10 */ be_nested_str_weak(is_greater), + /* K11 */ be_nested_str_weak(counter_group_ctrl_snd), + /* K12 */ be_nested_str_weak(_GROUP_SND_INCR), + /* K13 */ be_nested_str_weak(does_persist), + /* K14 */ be_nested_str_weak(save), + }), + be_str_weak(counter_group_ctrl_snd_next), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x7C080200, // 0003 CALL R2 1 + 0xB80E0600, // 0004 GETNGBL R3 K3 + 0x8C0C0704, // 0005 GETMET R3 R3 K4 + 0x8C140305, // 0006 GETMET R5 R1 K5 + 0x581C0006, // 0007 LDCONST R7 K6 + 0x5C200400, // 0008 MOVE R8 R2 + 0x7C140600, // 0009 CALL R5 3 + 0x58180007, // 000A LDCONST R6 K7 + 0x7C0C0600, // 000B CALL R3 3 + 0xB80E1000, // 000C GETNGBL R3 K8 + 0x880C0709, // 000D GETMBR R3 R3 K9 + 0x8C0C070A, // 000E GETMET R3 R3 K10 + 0x5C140400, // 000F MOVE R5 R2 + 0x8818010B, // 0010 GETMBR R6 R0 K11 + 0x7C0C0600, // 0011 CALL R3 3 + 0x780E0007, // 0012 JMPF R3 #001B + 0x880C010C, // 0013 GETMBR R3 R0 K12 + 0x000C0403, // 0014 ADD R3 R2 R3 + 0x90021603, // 0015 SETMBR R0 K11 R3 + 0x8C0C010D, // 0016 GETMET R3 R0 K13 + 0x7C0C0200, // 0017 CALL R3 1 + 0x780E0001, // 0018 JMPF R3 #001B + 0x8C0C010E, // 0019 GETMET R3 R0 K14 + 0x7C0C0200, // 001A CALL R3 1 + 0x80040400, // 001B RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Fabric_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[18]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(_store), + /* K2 */ be_nested_str_weak(_sessions), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(Expirable_list), + /* K5 */ be_nested_str_weak(fabric_label), + /* K6 */ be_nested_str_weak(), + /* K7 */ be_nested_str_weak(created), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(rtc), + /* K10 */ be_nested_str_weak(utc), + /* K11 */ be_nested_str_weak(_counter_group_data_snd_impl), + /* K12 */ be_nested_str_weak(Counter), + /* K13 */ be_nested_str_weak(_counter_group_ctrl_snd_impl), + /* K14 */ be_nested_str_weak(counter_group_data_snd), + /* K15 */ be_nested_str_weak(next), + /* K16 */ be_nested_str_weak(_GROUP_SND_INCR), + /* K17 */ be_nested_str_weak(counter_group_ctrl_snd), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[33]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x90020201, // 0001 SETMBR R0 K1 R1 + 0xB80E0600, // 0002 GETNGBL R3 K3 + 0x8C0C0704, // 0003 GETMET R3 R3 K4 + 0x7C0C0200, // 0004 CALL R3 1 + 0x90020403, // 0005 SETMBR R0 K2 R3 + 0x90020B06, // 0006 SETMBR R0 K5 K6 + 0xB80E1000, // 0007 GETNGBL R3 K8 + 0x8C0C0709, // 0008 GETMET R3 R3 K9 + 0x7C0C0200, // 0009 CALL R3 1 + 0x940C070A, // 000A GETIDX R3 R3 K10 + 0x90020E03, // 000B SETMBR R0 K7 R3 + 0xB80E0600, // 000C GETNGBL R3 K3 + 0x8C0C070C, // 000D GETMET R3 R3 K12 + 0x7C0C0200, // 000E CALL R3 1 + 0x90021603, // 000F SETMBR R0 K11 R3 + 0xB80E0600, // 0010 GETNGBL R3 K3 + 0x8C0C070C, // 0011 GETMET R3 R3 K12 + 0x7C0C0200, // 0012 CALL R3 1 + 0x90021A03, // 0013 SETMBR R0 K13 R3 + 0x880C010B, // 0014 GETMBR R3 R0 K11 + 0x8C0C070F, // 0015 GETMET R3 R3 K15 + 0x7C0C0200, // 0016 CALL R3 1 + 0x88100110, // 0017 GETMBR R4 R0 K16 + 0x000C0604, // 0018 ADD R3 R3 R4 + 0x90021C03, // 0019 SETMBR R0 K14 R3 + 0x880C010B, // 001A GETMBR R3 R0 K11 + 0x8C0C070F, // 001B GETMET R3 R3 K15 + 0x7C0C0200, // 001C CALL R3 1 + 0x88100110, // 001D GETMBR R4 R0 K16 + 0x000C0604, // 001E ADD R3 R3 R4 + 0x90022203, // 001F SETMBR R0 K17 R3 + 0x80000000, // 0020 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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_admin_subject_vendor +********************************************************************/ +be_local_closure(Matter_Fabric_set_admin_subject_vendor, /* name */ + be_nested_proto( + 3, /* nstack */ + 3, /* 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(admin_subject), + /* K1 */ be_nested_str_weak(admin_vendor), + }), + be_str_weak(set_admin_subject_vendor), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x90020202, // 0001 SETMBR R0 K1 R2 + 0x80000000, // 0002 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: tojson ********************************************************************/ @@ -179,33 +977,6 @@ be_local_closure(Matter_Fabric_tojson, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: get_fabric_index -********************************************************************/ -be_local_closure(Matter_Fabric_get_fabric_index, /* 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_index), - }), - be_str_weak(get_fabric_index), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: get_admin_subject ********************************************************************/ @@ -233,212 +1004,6 @@ be_local_closure(Matter_Fabric_get_admin_subject, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: get_old_recent_session -********************************************************************/ -be_local_closure(Matter_Fabric_get_old_recent_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_nested_str_weak(_sessions), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str_weak(last_used), - /* K3 */ be_const_int(1), - }), - be_str_weak(get_old_recent_session), - &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ - 0x6008000C, // 0000 GETGBL R2 G12 - 0x880C0100, // 0001 GETMBR R3 R0 K0 - 0x7C080200, // 0002 CALL R2 1 - 0x1C080501, // 0003 EQ R2 R2 K1 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x4C080000, // 0005 LDNIL R2 - 0x80040400, // 0006 RET 1 R2 - 0x88080100, // 0007 GETMBR R2 R0 K0 - 0x94080501, // 0008 GETIDX R2 R2 K1 - 0x880C0502, // 0009 GETMBR R3 R2 K2 - 0x58100003, // 000A LDCONST R4 K3 - 0x6014000C, // 000B GETGBL R5 G12 - 0x88180100, // 000C GETMBR R6 R0 K0 - 0x7C140200, // 000D CALL R5 1 - 0x14140805, // 000E LT R5 R4 R5 - 0x7816000C, // 000F JMPF R5 #001D - 0x88140100, // 0010 GETMBR R5 R0 K0 - 0x94140A04, // 0011 GETIDX R5 R5 R4 - 0x88140B02, // 0012 GETMBR R5 R5 K2 - 0x78060001, // 0013 JMPF R1 #0016 - 0x14180A03, // 0014 LT R6 R5 R3 - 0x70020000, // 0015 JMP #0017 - 0x24180A03, // 0016 GT R6 R5 R3 - 0x781A0002, // 0017 JMPF R6 #001B - 0x88180100, // 0018 GETMBR R6 R0 K0 - 0x94080C04, // 0019 GETIDX R2 R6 R4 - 0x5C0C0A00, // 001A MOVE R3 R5 - 0x00100903, // 001B ADD R4 R4 K3 - 0x7001FFED, // 001C JMP #000B - 0x80040400, // 001D RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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: counter_group_ctrl_snd_next -********************************************************************/ -be_local_closure(Matter_Fabric_counter_group_ctrl_snd_next, /* 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[15]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(_counter_group_ctrl_snd_impl), - /* K2 */ be_nested_str_weak(next), - /* 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_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_ctrl_snd_X3D_X25i), - /* K7 */ be_const_int(3), - /* K8 */ be_nested_str_weak(matter), - /* K9 */ be_nested_str_weak(Counter), - /* K10 */ be_nested_str_weak(is_greater), - /* K11 */ be_nested_str_weak(counter_group_ctrl_snd), - /* K12 */ be_nested_str_weak(_GROUP_SND_INCR), - /* K13 */ be_nested_str_weak(does_persist), - /* K14 */ be_nested_str_weak(save), - }), - be_str_weak(counter_group_ctrl_snd_next), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x7C080200, // 0003 CALL R2 1 - 0xB80E0600, // 0004 GETNGBL R3 K3 - 0x8C0C0704, // 0005 GETMET R3 R3 K4 - 0x8C140305, // 0006 GETMET R5 R1 K5 - 0x581C0006, // 0007 LDCONST R7 K6 - 0x5C200400, // 0008 MOVE R8 R2 - 0x7C140600, // 0009 CALL R5 3 - 0x58180007, // 000A LDCONST R6 K7 - 0x7C0C0600, // 000B CALL R3 3 - 0xB80E1000, // 000C GETNGBL R3 K8 - 0x880C0709, // 000D GETMBR R3 R3 K9 - 0x8C0C070A, // 000E GETMET R3 R3 K10 - 0x5C140400, // 000F MOVE R5 R2 - 0x8818010B, // 0010 GETMBR R6 R0 K11 - 0x7C0C0600, // 0011 CALL R3 3 - 0x780E0007, // 0012 JMPF R3 #001B - 0x880C010C, // 0013 GETMBR R3 R0 K12 - 0x000C0403, // 0014 ADD R3 R2 R3 - 0x90021603, // 0015 SETMBR R0 K11 R3 - 0x8C0C010D, // 0016 GETMET R3 R0 K13 - 0x7C0C0200, // 0017 CALL R3 1 - 0x780E0001, // 0018 JMPF R3 #001B - 0x8C0C010E, // 0019 GETMET R3 R0 K14 - 0x7C0C0200, // 001A CALL R3 1 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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_fabric_compressed -********************************************************************/ -be_local_closure(Matter_Fabric_get_fabric_compressed, /* 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_compressed), - }), - be_str_weak(get_fabric_compressed), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: add_session ********************************************************************/ @@ -497,50 +1062,28 @@ be_local_closure(Matter_Fabric_add_session, /* name */ /******************************************************************** -** Solidified function: log_new_fabric +** Solidified function: set_noc_icac ********************************************************************/ -be_local_closure(Matter_Fabric_log_new_fabric, /* name */ +be_local_closure(Matter_Fabric_set_noc_icac, /* name */ be_nested_proto( - 9, /* nstack */ - 1, /* argc */ + 3, /* nstack */ + 3, /* 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_X20_X2BFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27), - /* K5 */ be_nested_str_weak(get_fabric_id), - /* K6 */ be_nested_str_weak(copy), - /* K7 */ be_nested_str_weak(reverse), - /* K8 */ be_nested_str_weak(tohex), - /* K9 */ be_const_int(2), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(noc), + /* K1 */ be_nested_str_weak(icac), }), - be_str_weak(log_new_fabric), + be_str_weak(set_noc_icac), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x8C100303, // 0003 GETMET R4 R1 K3 - 0x58180004, // 0004 LDCONST R6 K4 - 0x8C1C0105, // 0005 GETMET R7 R0 K5 - 0x7C1C0200, // 0006 CALL R7 1 - 0x8C1C0F06, // 0007 GETMET R7 R7 K6 - 0x7C1C0200, // 0008 CALL R7 1 - 0x8C1C0F07, // 0009 GETMET R7 R7 K7 - 0x7C1C0200, // 000A CALL R7 1 - 0x8C1C0F08, // 000B GETMET R7 R7 K8 - 0x7C1C0200, // 000C CALL R7 1 - 0x7C100600, // 000D CALL R4 3 - 0x58140009, // 000E LDCONST R5 K9 - 0x7C080600, // 000F CALL R2 3 - 0x80000000, // 0010 RET 0 + ( &(const binstruction[ 3]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x90020202, // 0001 SETMBR R0 K1 R2 + 0x80000000, // 0002 RET 0 }) ) ); @@ -548,9 +1091,200 @@ be_local_closure(Matter_Fabric_log_new_fabric, /* name */ /******************************************************************** -** Solidified function: before_remove +** Solidified function: get_newest_session ********************************************************************/ -be_local_closure(Matter_Fabric_before_remove, /* name */ +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_fabric_index +********************************************************************/ +be_local_closure(Matter_Fabric_get_fabric_index, /* 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_index), + }), + be_str_weak(get_fabric_index), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_fabric_device +********************************************************************/ +be_local_closure(Matter_Fabric_set_fabric_device, /* name */ + be_nested_proto( + 7, /* nstack */ + 5, /* 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_id), + /* K1 */ be_nested_str_weak(device_id), + /* K2 */ be_nested_str_weak(fabric_compressed), + /* K3 */ be_nested_str_weak(fabric_parent), + /* K4 */ be_nested_str_weak(get_fabric_index), + }), + be_str_weak(set_fabric_device), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x90020202, // 0001 SETMBR R0 K1 R2 + 0x90020403, // 0002 SETMBR R0 K2 R3 + 0x4C140000, // 0003 LDNIL R5 + 0x20140805, // 0004 NE R5 R4 R5 + 0x78160002, // 0005 JMPF R5 #0009 + 0x8C140904, // 0006 GETMET R5 R4 K4 + 0x7C140200, // 0007 CALL R5 1 + 0x70020000, // 0008 JMP #000A + 0x4C140000, // 0009 LDNIL R5 + 0x90020605, // 000A SETMBR R0 K3 R5 + 0x80000000, // 000B 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: fabric_candidate +********************************************************************/ +be_local_closure(Matter_Fabric_fabric_candidate, /* 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[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(set_expire_in_seconds), + /* K1 */ be_nested_str_weak(assign_fabric_index), + /* K2 */ be_nested_str_weak(_store), + /* K3 */ be_nested_str_weak(add_fabric), + }), + be_str_weak(fabric_candidate), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x540E0077, // 0001 LDINT R3 120 + 0x7C040400, // 0002 CALL R1 2 + 0x8C040101, // 0003 GETMET R1 R0 K1 + 0x7C040200, // 0004 CALL R1 1 + 0x88040102, // 0005 GETMBR R1 R0 K2 + 0x8C040303, // 0006 GETMET R1 R1 K3 + 0x5C0C0000, // 0007 MOVE R3 R0 + 0x7C040400, // 0008 CALL R1 2 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: counter_group_data_snd_next +********************************************************************/ +be_local_closure(Matter_Fabric_counter_group_data_snd_next, /* name */ be_nested_proto( 9, /* nstack */ 1, /* argc */ @@ -560,38 +1294,162 @@ be_local_closure(Matter_Fabric_before_remove, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ + ( &(const bvalue[15]) { /* 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_X20_X2DFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27_X20_X28removed_X29), - /* K5 */ be_nested_str_weak(get_fabric_id), - /* K6 */ be_nested_str_weak(copy), - /* K7 */ be_nested_str_weak(reverse), - /* K8 */ be_nested_str_weak(tohex), - /* K9 */ be_const_int(2), + /* K1 */ be_nested_str_weak(_counter_group_data_snd_impl), + /* K2 */ be_nested_str_weak(next), + /* 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_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_data_snd_X3D_X25i), + /* K7 */ be_const_int(3), + /* K8 */ be_nested_str_weak(matter), + /* K9 */ be_nested_str_weak(Counter), + /* K10 */ be_nested_str_weak(is_greater), + /* K11 */ be_nested_str_weak(counter_group_data_snd), + /* K12 */ be_nested_str_weak(_GROUP_SND_INCR), + /* K13 */ be_nested_str_weak(does_persist), + /* K14 */ be_nested_str_weak(save), }), - be_str_weak(before_remove), + be_str_weak(counter_group_data_snd_next), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[28]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x88080101, // 0001 GETMBR R2 R0 K1 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x8C100303, // 0003 GETMET R4 R1 K3 - 0x58180004, // 0004 LDCONST R6 K4 - 0x8C1C0105, // 0005 GETMET R7 R0 K5 - 0x7C1C0200, // 0006 CALL R7 1 - 0x8C1C0F06, // 0007 GETMET R7 R7 K6 - 0x7C1C0200, // 0008 CALL R7 1 - 0x8C1C0F07, // 0009 GETMET R7 R7 K7 - 0x7C1C0200, // 000A CALL R7 1 - 0x8C1C0F08, // 000B GETMET R7 R7 K8 - 0x7C1C0200, // 000C CALL R7 1 - 0x7C100600, // 000D CALL R4 3 - 0x58140009, // 000E LDCONST R5 K9 - 0x7C080600, // 000F CALL R2 3 - 0x80000000, // 0010 RET 0 + 0x7C080200, // 0003 CALL R2 1 + 0xB80E0600, // 0004 GETNGBL R3 K3 + 0x8C0C0704, // 0005 GETMET R3 R3 K4 + 0x8C140305, // 0006 GETMET R5 R1 K5 + 0x581C0006, // 0007 LDCONST R7 K6 + 0x5C200400, // 0008 MOVE R8 R2 + 0x7C140600, // 0009 CALL R5 3 + 0x58180007, // 000A LDCONST R6 K7 + 0x7C0C0600, // 000B CALL R3 3 + 0xB80E1000, // 000C GETNGBL R3 K8 + 0x880C0709, // 000D GETMBR R3 R3 K9 + 0x8C0C070A, // 000E GETMET R3 R3 K10 + 0x5C140400, // 000F MOVE R5 R2 + 0x8818010B, // 0010 GETMBR R6 R0 K11 + 0x7C0C0600, // 0011 CALL R3 3 + 0x780E0007, // 0012 JMPF R3 #001B + 0x880C010C, // 0013 GETMBR R3 R0 K12 + 0x000C0403, // 0014 ADD R3 R2 R3 + 0x90021603, // 0015 SETMBR R0 K11 R3 + 0x8C0C010D, // 0016 GETMET R3 R0 K13 + 0x7C0C0200, // 0017 CALL R3 1 + 0x780E0001, // 0018 JMPF R3 #001B + 0x8C0C010E, // 0019 GETMET R3 R0 K14 + 0x7C0C0200, // 001A CALL R3 1 + 0x80040400, // 001B RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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_pk +********************************************************************/ +be_local_closure(Matter_Fabric_get_pk, /* 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(no_private_key), + }), + be_str_weak(get_pk), + &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 }) ) ); @@ -716,539 +1574,6 @@ be_local_closure(Matter_Fabric_fromjson, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Fabric_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[18]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(_store), - /* K2 */ be_nested_str_weak(_sessions), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(Expirable_list), - /* K5 */ be_nested_str_weak(fabric_label), - /* K6 */ be_nested_str_weak(), - /* K7 */ be_nested_str_weak(created), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(rtc), - /* K10 */ be_nested_str_weak(utc), - /* K11 */ be_nested_str_weak(_counter_group_data_snd_impl), - /* K12 */ be_nested_str_weak(Counter), - /* K13 */ be_nested_str_weak(_counter_group_ctrl_snd_impl), - /* K14 */ be_nested_str_weak(counter_group_data_snd), - /* K15 */ be_nested_str_weak(next), - /* K16 */ be_nested_str_weak(_GROUP_SND_INCR), - /* K17 */ be_nested_str_weak(counter_group_ctrl_snd), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[33]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x90020201, // 0001 SETMBR R0 K1 R1 - 0xB80E0600, // 0002 GETNGBL R3 K3 - 0x8C0C0704, // 0003 GETMET R3 R3 K4 - 0x7C0C0200, // 0004 CALL R3 1 - 0x90020403, // 0005 SETMBR R0 K2 R3 - 0x90020B06, // 0006 SETMBR R0 K5 K6 - 0xB80E1000, // 0007 GETNGBL R3 K8 - 0x8C0C0709, // 0008 GETMET R3 R3 K9 - 0x7C0C0200, // 0009 CALL R3 1 - 0x940C070A, // 000A GETIDX R3 R3 K10 - 0x90020E03, // 000B SETMBR R0 K7 R3 - 0xB80E0600, // 000C GETNGBL R3 K3 - 0x8C0C070C, // 000D GETMET R3 R3 K12 - 0x7C0C0200, // 000E CALL R3 1 - 0x90021603, // 000F SETMBR R0 K11 R3 - 0xB80E0600, // 0010 GETNGBL R3 K3 - 0x8C0C070C, // 0011 GETMET R3 R3 K12 - 0x7C0C0200, // 0012 CALL R3 1 - 0x90021A03, // 0013 SETMBR R0 K13 R3 - 0x880C010B, // 0014 GETMBR R3 R0 K11 - 0x8C0C070F, // 0015 GETMET R3 R3 K15 - 0x7C0C0200, // 0016 CALL R3 1 - 0x88100110, // 0017 GETMBR R4 R0 K16 - 0x000C0604, // 0018 ADD R3 R3 R4 - 0x90021C03, // 0019 SETMBR R0 K14 R3 - 0x880C010B, // 001A GETMBR R3 R0 K11 - 0x8C0C070F, // 001B GETMET R3 R3 K15 - 0x7C0C0200, // 001C CALL R3 1 - 0x88100110, // 001D GETMBR R4 R0 K16 - 0x000C0604, // 001E ADD R3 R3 R4 - 0x90022203, // 001F SETMBR R0 K17 R3 - 0x80000000, // 0020 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: get_ipk_epoch_key -********************************************************************/ -be_local_closure(Matter_Fabric_get_ipk_epoch_key, /* 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(ipk_epoch_key), - }), - be_str_weak(get_ipk_epoch_key), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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: 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_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 -********************************************************************/ -be_local_closure(Matter_Fabric_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[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(root_ca_certificate), - }), - be_str_weak(get_ca), - &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_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_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_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_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: hydrate_post -********************************************************************/ -be_local_closure(Matter_Fabric_hydrate_post, /* 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(_counter_group_data_snd_impl), - /* K1 */ be_nested_str_weak(reset), - /* K2 */ be_nested_str_weak(counter_group_data_snd), - /* K3 */ be_nested_str_weak(_counter_group_ctrl_snd_impl), - /* K4 */ be_nested_str_weak(counter_group_ctrl_snd), - /* K5 */ be_nested_str_weak(val), - }), - be_str_weak(hydrate_post), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x880C0102, // 0002 GETMBR R3 R0 K2 - 0x7C040400, // 0003 CALL R1 2 - 0x88040103, // 0004 GETMBR R1 R0 K3 - 0x8C040301, // 0005 GETMET R1 R1 K1 - 0x880C0104, // 0006 GETMBR R3 R0 K4 - 0x7C040400, // 0007 CALL R1 2 - 0x88040100, // 0008 GETMBR R1 R0 K0 - 0x8C040305, // 0009 GETMET R1 R1 K5 - 0x7C040200, // 000A CALL R1 1 - 0x90020401, // 000B SETMBR R0 K2 R1 - 0x88040103, // 000C GETMBR R1 R0 K3 - 0x8C040305, // 000D GETMET R1 R1 K5 - 0x7C040200, // 000E CALL R1 1 - 0x90020801, // 000F SETMBR R0 K4 R1 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: counter_group_data_snd_next -********************************************************************/ -be_local_closure(Matter_Fabric_counter_group_data_snd_next, /* 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[15]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(_counter_group_data_snd_impl), - /* K2 */ be_nested_str_weak(next), - /* 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_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_data_snd_X3D_X25i), - /* K7 */ be_const_int(3), - /* K8 */ be_nested_str_weak(matter), - /* K9 */ be_nested_str_weak(Counter), - /* K10 */ be_nested_str_weak(is_greater), - /* K11 */ be_nested_str_weak(counter_group_data_snd), - /* K12 */ be_nested_str_weak(_GROUP_SND_INCR), - /* K13 */ be_nested_str_weak(does_persist), - /* K14 */ be_nested_str_weak(save), - }), - be_str_weak(counter_group_data_snd_next), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x7C080200, // 0003 CALL R2 1 - 0xB80E0600, // 0004 GETNGBL R3 K3 - 0x8C0C0704, // 0005 GETMET R3 R3 K4 - 0x8C140305, // 0006 GETMET R5 R1 K5 - 0x581C0006, // 0007 LDCONST R7 K6 - 0x5C200400, // 0008 MOVE R8 R2 - 0x7C140600, // 0009 CALL R5 3 - 0x58180007, // 000A LDCONST R6 K7 - 0x7C0C0600, // 000B CALL R3 3 - 0xB80E1000, // 000C GETNGBL R3 K8 - 0x880C0709, // 000D GETMBR R3 R3 K9 - 0x8C0C070A, // 000E GETMET R3 R3 K10 - 0x5C140400, // 000F MOVE R5 R2 - 0x8818010B, // 0010 GETMBR R6 R0 K11 - 0x7C0C0600, // 0011 CALL R3 3 - 0x780E0007, // 0012 JMPF R3 #001B - 0x880C010C, // 0013 GETMBR R3 R0 K12 - 0x000C0403, // 0014 ADD R3 R2 R3 - 0x90021603, // 0015 SETMBR R0 K11 R3 - 0x8C0C010D, // 0016 GETMET R3 R0 K13 - 0x7C0C0200, // 0017 CALL R3 1 - 0x780E0001, // 0018 JMPF R3 #001B - 0x8C0C010E, // 0019 GETMET R3 R0 K14 - 0x7C0C0200, // 001A CALL R3 1 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 class: Matter_Fabric ********************************************************************/ @@ -1256,57 +1581,67 @@ extern const bclass be_class_Matter_Expirable; be_local_class(Matter_Fabric, 20, &be_class_Matter_Expirable, - be_nested_map(49, + be_nested_map(59, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(no_private_key, -1), be_const_var(5) }, - { be_const_key_weak(tojson, 8), be_const_closure(Matter_Fabric_tojson_closure) }, - { be_const_key_weak(counter_group_data_snd, -1), be_const_var(14) }, - { be_const_key_weak(fabric_label, -1), be_const_var(13) }, - { be_const_key_weak(_sessions, 34), be_const_var(4) }, - { be_const_key_weak(created, -1), be_const_var(1) }, - { be_const_key_weak(_GROUP_SND_INCR, -1), be_const_int(32) }, - { be_const_key_weak(get_admin_subject, -1), be_const_closure(Matter_Fabric_get_admin_subject_closure) }, - { be_const_key_weak(add_session, -1), be_const_closure(Matter_Fabric_add_session_closure) }, - { be_const_key_weak(get_old_recent_session, -1), be_const_closure(Matter_Fabric_get_old_recent_session_closure) }, - { be_const_key_weak(counter_group_data_snd_next, -1), be_const_closure(Matter_Fabric_counter_group_data_snd_next_closure) }, - { be_const_key_weak(ipk_epoch_key, -1), be_const_var(9) }, - { be_const_key_weak(get_device_id, -1), be_const_closure(Matter_Fabric_get_device_id_closure) }, - { be_const_key_weak(counter_group_ctrl_snd_next, -1), be_const_closure(Matter_Fabric_counter_group_ctrl_snd_next_closure) }, - { be_const_key_weak(_counter_group_ctrl_snd_impl, -1), be_const_var(17) }, - { be_const_key_weak(admin_subject, 3), be_const_var(18) }, - { be_const_key_weak(set_fabric_index, -1), be_const_closure(Matter_Fabric_set_fabric_index_closure) }, - { be_const_key_weak(get_fabric_compressed, 32), be_const_closure(Matter_Fabric_get_fabric_compressed_closure) }, - { be_const_key_weak(fabric_index, -1), be_const_var(2) }, - { be_const_key_weak(counter_group_ctrl_snd, 21), be_const_var(15) }, - { be_const_key_weak(log_new_fabric, -1), be_const_closure(Matter_Fabric_log_new_fabric_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Fabric_init_closure) }, - { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Fabric_get_fabric_id_closure) }, - { be_const_key_weak(_store, 15), be_const_var(0) }, - { be_const_key_weak(admin_vendor, 20), be_const_var(19) }, - { be_const_key_weak(device_id, 40), be_const_var(12) }, - { be_const_key_weak(before_remove, 28), be_const_closure(Matter_Fabric_before_remove_closure) }, - { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Fabric_fromjson_closure) }, - { be_const_key_weak(get_noc, 39), be_const_closure(Matter_Fabric_get_noc_closure) }, - { be_const_key_weak(get_fabric_index, 38), be_const_closure(Matter_Fabric_get_fabric_index_closure) }, - { be_const_key_weak(_MAX_CASE, -1), 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(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, - { be_const_key_weak(_counter_group_data_snd_impl, -1), be_const_var(16) }, - { be_const_key_weak(fabric_parent, -1), be_const_var(3) }, - { be_const_key_weak(fabric_id, -1), be_const_var(10) }, - { be_const_key_weak(icac, 35), be_const_var(8) }, - { be_const_key_weak(get_ca, -1), be_const_closure(Matter_Fabric_get_ca_closure) }, - { be_const_key_weak(get_ipk_group_key, 6), be_const_closure(Matter_Fabric_get_ipk_group_key_closure) }, - { be_const_key_weak(get_fabric_label, -1), be_const_closure(Matter_Fabric_get_fabric_label_closure) }, - { be_const_key_weak(get_oldest_session, -1), be_const_closure(Matter_Fabric_get_oldest_session_closure) }, - { be_const_key_weak(get_newest_session, 22), be_const_closure(Matter_Fabric_get_newest_session_closure) }, - { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Fabric_get_admin_vendor_closure) }, - { be_const_key_weak(noc, -1), be_const_var(7) }, + { be_const_key_weak(icac, -1), be_const_var(8) }, { be_const_key_weak(hydrate_post, -1), be_const_closure(Matter_Fabric_hydrate_post_closure) }, - { be_const_key_weak(get_icac, 10), be_const_closure(Matter_Fabric_get_icac_closure) }, - { be_const_key_weak(fabric_compressed, -1), be_const_var(11) }, + { be_const_key_weak(set_ca, 32), be_const_closure(Matter_Fabric_set_ca_closure) }, + { be_const_key_weak(fabric_completed, 4), be_const_closure(Matter_Fabric_fabric_completed_closure) }, + { be_const_key_weak(_counter_group_data_snd_impl, 26), be_const_var(16) }, + { be_const_key_weak(get_oldest_session, -1), be_const_closure(Matter_Fabric_get_oldest_session_closure) }, { be_const_key_weak(get_ca_pub, -1), be_const_closure(Matter_Fabric_get_ca_pub_closure) }, + { be_const_key_weak(before_remove, -1), be_const_closure(Matter_Fabric_before_remove_closure) }, + { be_const_key_weak(get_ca, -1), be_const_closure(Matter_Fabric_get_ca_closure) }, + { be_const_key_weak(fabric_index, -1), be_const_var(2) }, + { be_const_key_weak(fabric_compressed, -1), be_const_var(11) }, + { be_const_key_weak(log_new_fabric, -1), be_const_closure(Matter_Fabric_log_new_fabric_closure) }, + { be_const_key_weak(noc, -1), be_const_var(7) }, + { be_const_key_weak(set_fabric_index, -1), be_const_closure(Matter_Fabric_set_fabric_index_closure) }, + { be_const_key_weak(_MAX_CASE, -1), be_const_int(5) }, + { be_const_key_weak(_store, -1), be_const_var(0) }, + { be_const_key_weak(get_ipk_epoch_key, -1), be_const_closure(Matter_Fabric_get_ipk_epoch_key_closure) }, { be_const_key_weak(root_ca_certificate, -1), be_const_var(6) }, + { be_const_key_weak(set_pk, -1), be_const_closure(Matter_Fabric_set_pk_closure) }, + { be_const_key_weak(tojson, -1), be_const_closure(Matter_Fabric_tojson_closure) }, + { be_const_key_weak(assign_fabric_index, 57), be_const_closure(Matter_Fabric_assign_fabric_index_closure) }, + { be_const_key_weak(set_noc_icac, -1), be_const_closure(Matter_Fabric_set_noc_icac_closure) }, + { be_const_key_weak(get_icac, -1), be_const_closure(Matter_Fabric_get_icac_closure) }, + { be_const_key_weak(counter_group_ctrl_snd_next, 22), be_const_closure(Matter_Fabric_counter_group_ctrl_snd_next_closure) }, + { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Fabric_get_admin_vendor_closure) }, + { be_const_key_weak(counter_group_data_snd, -1), be_const_var(14) }, + { be_const_key_weak(get_newest_session, 0), be_const_closure(Matter_Fabric_get_newest_session_closure) }, + { be_const_key_weak(set_admin_subject_vendor, -1), be_const_closure(Matter_Fabric_set_admin_subject_vendor_closure) }, + { be_const_key_weak(device_id, -1), be_const_var(12) }, + { be_const_key_weak(get_fabric_compressed, 19), be_const_closure(Matter_Fabric_get_fabric_compressed_closure) }, + { be_const_key_weak(get_pk, 17), be_const_closure(Matter_Fabric_get_pk_closure) }, + { be_const_key_weak(init, 30), be_const_closure(Matter_Fabric_init_closure) }, + { be_const_key_weak(get_noc, -1), be_const_closure(Matter_Fabric_get_noc_closure) }, + { be_const_key_weak(set_ipk_epoch_key, 21), be_const_closure(Matter_Fabric_set_ipk_epoch_key_closure) }, + { be_const_key_weak(get_old_recent_session, 47), be_const_closure(Matter_Fabric_get_old_recent_session_closure) }, + { be_const_key_weak(fabric_parent, -1), be_const_var(3) }, + { be_const_key_weak(admin_vendor, -1), be_const_var(19) }, + { be_const_key_weak(counter_group_data_snd_next, 42), be_const_closure(Matter_Fabric_counter_group_data_snd_next_closure) }, + { be_const_key_weak(get_fabric_index, -1), be_const_closure(Matter_Fabric_get_fabric_index_closure) }, + { be_const_key_weak(set_fabric_device, -1), be_const_closure(Matter_Fabric_set_fabric_device_closure) }, + { be_const_key_weak(get_fabric_label, 46), be_const_closure(Matter_Fabric_get_fabric_label_closure) }, + { be_const_key_weak(get_device_id, 36), be_const_closure(Matter_Fabric_get_device_id_closure) }, + { be_const_key_weak(_sessions, -1), be_const_var(4) }, + { be_const_key_weak(fabric_candidate, -1), be_const_closure(Matter_Fabric_fabric_candidate_closure) }, + { be_const_key_weak(_GROUP_SND_INCR, 37), be_const_int(32) }, + { be_const_key_weak(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, + { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Fabric_get_ipk_group_key_closure) }, + { be_const_key_weak(ipk_epoch_key, 51), be_const_var(9) }, + { be_const_key_weak(get_admin_subject, 28), be_const_closure(Matter_Fabric_get_admin_subject_closure) }, + { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Fabric_get_fabric_id_closure) }, + { be_const_key_weak(no_private_key, 25), be_const_var(5) }, + { be_const_key_weak(counter_group_ctrl_snd, 5), be_const_var(15) }, + { be_const_key_weak(fabric_id, -1), be_const_var(10) }, + { be_const_key_weak(_counter_group_ctrl_snd_impl, -1), be_const_var(17) }, + { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Fabric_fromjson_closure) }, + { be_const_key_weak(add_session, 14), be_const_closure(Matter_Fabric_add_session_closure) }, + { be_const_key_weak(fabric_label, -1), be_const_var(13) }, + { be_const_key_weak(created, -1), be_const_var(1) }, + { be_const_key_weak(admin_subject, -1), be_const_var(18) }, })), be_str_weak(Matter_Fabric) ); 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 df537be23..86017e501 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h @@ -67,7 +67,7 @@ be_local_closure(Matter_IM_expire_sendqueue, /* name */ ********************************************************************/ be_local_closure(Matter_IM_process_invoke_request, /* name */ be_nested_proto( - 21, /* nstack */ + 22, /* nstack */ 3, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -123,7 +123,7 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ }), be_str_weak(process_invoke_request), &be_const_str_solidified, - ( &(const binstruction[270]) { /* code */ + ( &(const binstruction[271]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 @@ -137,7 +137,7 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0x88180B05, // 000A GETMBR R6 R5 K5 0x4C1C0000, // 000B LDNIL R7 0x20180C07, // 000C NE R6 R6 R7 - 0x781A00FE, // 000D JMPF R6 #010D + 0x781A00FF, // 000D JMPF R6 #010E 0xB81A0200, // 000E GETNGBL R6 K1 0x8C180D06, // 000F GETMET R6 R6 K6 0x7C180200, // 0010 CALL R6 1 @@ -149,7 +149,7 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0x601C0010, // 0016 GETGBL R7 G16 0x88200B05, // 0017 GETMBR R8 R5 K5 0x7C1C0200, // 0018 CALL R7 1 - 0xA80200E1, // 0019 EXBLK 0 #00FC + 0xA80200E2, // 0019 EXBLK 0 #00FD 0x5C200E00, // 001A MOVE R8 R7 0x7C200000, // 001B CALL R8 0 0x8824110A, // 001C GETMBR R9 R8 K10 @@ -169,231 +169,232 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0x882C090B, // 002A GETMBR R11 R4 K11 0x8830090C, // 002B GETMBR R12 R4 K12 0x7C240600, // 002C CALL R9 3 - 0x88280110, // 002D GETMBR R10 R0 K16 - 0x8C281511, // 002E GETMET R10 R10 K17 - 0x88300312, // 002F GETMBR R12 R1 K18 - 0x88341113, // 0030 GETMBR R13 R8 K19 - 0x5C380800, // 0031 MOVE R14 R4 - 0x7C280800, // 0032 CALL R10 4 - 0x882C0914, // 0033 GETMBR R11 R4 K20 - 0x4C300000, // 0034 LDNIL R12 - 0x202C160C, // 0035 NE R11 R11 R12 - 0x782E0005, // 0036 JMPF R11 #003D - 0x602C0008, // 0037 GETGBL R11 G8 - 0x88300914, // 0038 GETMBR R12 R4 K20 - 0x7C2C0200, // 0039 CALL R11 1 - 0x002E2A0B, // 003A ADD R11 K21 R11 - 0x002C1716, // 003B ADD R11 R11 K22 - 0x70020000, // 003C JMP #003E - 0x582C0017, // 003D LDCONST R11 K23 - 0xB8323000, // 003E GETNGBL R12 K24 - 0x8C301914, // 003F GETMET R12 R12 K20 - 0x8C380719, // 0040 GETMET R14 R3 K25 - 0x5840001A, // 0041 LDCONST R16 K26 - 0x88440312, // 0042 GETMBR R17 R1 K18 - 0x8844231B, // 0043 GETMBR R17 R17 K27 - 0x60480008, // 0044 GETGBL R18 G8 - 0x5C4C0800, // 0045 MOVE R19 R4 - 0x7C480200, // 0046 CALL R18 1 - 0x78260001, // 0047 JMPF R9 #004A - 0x5C4C1200, // 0048 MOVE R19 R9 - 0x70020000, // 0049 JMP #004B - 0x584C0017, // 004A LDCONST R19 K23 - 0x5C501600, // 004B MOVE R20 R11 - 0x7C380C00, // 004C CALL R14 6 - 0x583C001C, // 004D LDCONST R15 K28 - 0x7C300600, // 004E CALL R12 3 - 0x4C300000, // 004F LDNIL R12 - 0x9012280C, // 0050 SETMBR R4 K20 R12 - 0xB8320200, // 0051 GETNGBL R12 K1 - 0x8C30191D, // 0052 GETMET R12 R12 K29 - 0x7C300200, // 0053 CALL R12 1 - 0x50340200, // 0054 LDBOOL R13 1 0 - 0x1C34140D, // 0055 EQ R13 R10 R13 - 0x74360004, // 0056 JMPT R13 #005C - 0x8834090D, // 0057 GETMBR R13 R4 K13 - 0xB83A0200, // 0058 GETNGBL R14 K1 - 0x88381D1E, // 0059 GETMBR R14 R14 K30 - 0x1C341A0E, // 005A EQ R13 R13 R14 - 0x7836002D, // 005B JMPF R13 #008A - 0xB8360200, // 005C GETNGBL R13 K1 - 0x8C341B1F, // 005D GETMET R13 R13 K31 - 0x7C340200, // 005E CALL R13 1 - 0x90321A0D, // 005F SETMBR R12 K13 R13 - 0x8834190D, // 0060 GETMBR R13 R12 K13 - 0xB83A0200, // 0061 GETNGBL R14 K1 - 0x8C381D20, // 0062 GETMET R14 R14 K32 - 0x7C380200, // 0063 CALL R14 1 - 0x9036140E, // 0064 SETMBR R13 K10 R14 - 0x8834190D, // 0065 GETMBR R13 R12 K13 - 0x88341B0A, // 0066 GETMBR R13 R13 K10 - 0x88380909, // 0067 GETMBR R14 R4 K9 - 0x9036120E, // 0068 SETMBR R13 K9 R14 - 0x8834190D, // 0069 GETMBR R13 R12 K13 - 0x88341B0A, // 006A GETMBR R13 R13 K10 - 0x8838090B, // 006B GETMBR R14 R4 K11 - 0x9036160E, // 006C SETMBR R13 K11 R14 - 0x8834190D, // 006D GETMBR R13 R12 K13 - 0x88341B0A, // 006E GETMBR R13 R13 K10 - 0x8838090C, // 006F GETMBR R14 R4 K12 - 0x9036180E, // 0070 SETMBR R13 K12 R14 - 0x8834190D, // 0071 GETMBR R13 R12 K13 - 0xB83A0200, // 0072 GETNGBL R14 K1 - 0x8C381D21, // 0073 GETMET R14 R14 K33 - 0x7C380200, // 0074 CALL R14 1 - 0x90361A0E, // 0075 SETMBR R13 K13 R14 - 0x8834190D, // 0076 GETMBR R13 R12 K13 - 0x88341B0D, // 0077 GETMBR R13 R13 K13 - 0xB83A0200, // 0078 GETNGBL R14 K1 - 0x88381D1E, // 0079 GETMBR R14 R14 K30 - 0x90361A0E, // 007A SETMBR R13 K13 R14 - 0x88340D08, // 007B GETMBR R13 R6 K8 - 0x8C341B22, // 007C GETMET R13 R13 K34 - 0x5C3C1800, // 007D MOVE R15 R12 - 0x7C340400, // 007E CALL R13 2 - 0xB8363000, // 007F GETNGBL R13 K24 - 0x8C341B14, // 0080 GETMET R13 R13 K20 - 0x8C3C0719, // 0081 GETMET R15 R3 K25 - 0x58440023, // 0082 LDCONST R17 K35 - 0x88480312, // 0083 GETMBR R18 R1 K18 - 0x8848251B, // 0084 GETMBR R18 R18 K27 - 0x884C0324, // 0085 GETMBR R19 R1 K36 - 0x7C3C0800, // 0086 CALL R15 4 - 0x5840001C, // 0087 LDCONST R16 K28 - 0x7C340600, // 0088 CALL R13 3 - 0x70020070, // 0089 JMP #00FB - 0x4C340000, // 008A LDNIL R13 - 0x2034140D, // 008B NE R13 R10 R13 - 0x78360031, // 008C JMPF R13 #00BF - 0xB8360200, // 008D GETNGBL R13 K1 - 0x8C341B25, // 008E GETMET R13 R13 K37 - 0x7C340200, // 008F CALL R13 1 - 0x9032180D, // 0090 SETMBR R12 K12 R13 - 0x8834190C, // 0091 GETMBR R13 R12 K12 - 0xB83A0200, // 0092 GETNGBL R14 K1 - 0x8C381D20, // 0093 GETMET R14 R14 K32 - 0x7C380200, // 0094 CALL R14 1 - 0x9036140E, // 0095 SETMBR R13 K10 R14 - 0x8834190C, // 0096 GETMBR R13 R12 K12 - 0x88341B0A, // 0097 GETMBR R13 R13 K10 - 0x88380909, // 0098 GETMBR R14 R4 K9 - 0x9036120E, // 0099 SETMBR R13 K9 R14 - 0x8834190C, // 009A GETMBR R13 R12 K12 - 0x88341B0A, // 009B GETMBR R13 R13 K10 - 0x8838090B, // 009C GETMBR R14 R4 K11 - 0x9036160E, // 009D SETMBR R13 K11 R14 - 0x8834190C, // 009E GETMBR R13 R12 K12 - 0x88341B0A, // 009F GETMBR R13 R13 K10 - 0x8838090C, // 00A0 GETMBR R14 R4 K12 - 0x9036180E, // 00A1 SETMBR R13 K12 R14 - 0x8834190C, // 00A2 GETMBR R13 R12 K12 - 0x9036260A, // 00A3 SETMBR R13 K19 R10 - 0x88340D08, // 00A4 GETMBR R13 R6 K8 - 0x8C341B22, // 00A5 GETMET R13 R13 K34 - 0x5C3C1800, // 00A6 MOVE R15 R12 - 0x7C340400, // 00A7 CALL R13 2 - 0xB8360200, // 00A8 GETNGBL R13 K1 - 0x8C341B0F, // 00A9 GETMET R13 R13 K15 - 0x883C090B, // 00AA GETMBR R15 R4 K11 - 0x8840090C, // 00AB GETMBR R16 R4 K12 - 0x7C340600, // 00AC CALL R13 3 - 0x5C241A00, // 00AD MOVE R9 R13 - 0xB8363000, // 00AE GETNGBL R13 K24 - 0x8C341B14, // 00AF GETMET R13 R13 K20 - 0x8C3C0719, // 00B0 GETMET R15 R3 K25 - 0x58440026, // 00B1 LDCONST R17 K38 - 0x88480312, // 00B2 GETMBR R18 R1 K18 - 0x8848251B, // 00B3 GETMBR R18 R18 K27 - 0x604C0008, // 00B4 GETGBL R19 G8 - 0x5C500800, // 00B5 MOVE R20 R4 - 0x7C4C0200, // 00B6 CALL R19 1 - 0x78260001, // 00B7 JMPF R9 #00BA - 0x5C501200, // 00B8 MOVE R20 R9 - 0x70020000, // 00B9 JMP #00BB - 0x58500017, // 00BA LDCONST R20 K23 - 0x7C3C0A00, // 00BB CALL R15 5 - 0x5840001C, // 00BC LDCONST R16 K28 - 0x7C340600, // 00BD CALL R13 3 - 0x7002003B, // 00BE JMP #00FB - 0x8834090D, // 00BF GETMBR R13 R4 K13 - 0x4C380000, // 00C0 LDNIL R14 - 0x20341A0E, // 00C1 NE R13 R13 R14 - 0x7836002D, // 00C2 JMPF R13 #00F1 - 0xB8360200, // 00C3 GETNGBL R13 K1 - 0x8C341B1F, // 00C4 GETMET R13 R13 K31 - 0x7C340200, // 00C5 CALL R13 1 - 0x90321A0D, // 00C6 SETMBR R12 K13 R13 - 0x8834190D, // 00C7 GETMBR R13 R12 K13 - 0xB83A0200, // 00C8 GETNGBL R14 K1 - 0x8C381D20, // 00C9 GETMET R14 R14 K32 - 0x7C380200, // 00CA CALL R14 1 - 0x9036140E, // 00CB SETMBR R13 K10 R14 - 0x8834190D, // 00CC GETMBR R13 R12 K13 - 0x88341B0A, // 00CD GETMBR R13 R13 K10 - 0x88380909, // 00CE GETMBR R14 R4 K9 - 0x9036120E, // 00CF SETMBR R13 K9 R14 - 0x8834190D, // 00D0 GETMBR R13 R12 K13 - 0x88341B0A, // 00D1 GETMBR R13 R13 K10 - 0x8838090B, // 00D2 GETMBR R14 R4 K11 - 0x9036160E, // 00D3 SETMBR R13 K11 R14 - 0x8834190D, // 00D4 GETMBR R13 R12 K13 - 0x88341B0A, // 00D5 GETMBR R13 R13 K10 - 0x8838090C, // 00D6 GETMBR R14 R4 K12 - 0x9036180E, // 00D7 SETMBR R13 K12 R14 - 0x8834190D, // 00D8 GETMBR R13 R12 K13 - 0xB83A0200, // 00D9 GETNGBL R14 K1 - 0x8C381D21, // 00DA GETMET R14 R14 K33 - 0x7C380200, // 00DB CALL R14 1 - 0x90361A0E, // 00DC SETMBR R13 K13 R14 - 0x8834190D, // 00DD GETMBR R13 R12 K13 - 0x88341B0D, // 00DE GETMBR R13 R13 K13 - 0x8838090D, // 00DF GETMBR R14 R4 K13 - 0x90361A0E, // 00E0 SETMBR R13 K13 R14 - 0x88340D08, // 00E1 GETMBR R13 R6 K8 - 0x8C341B22, // 00E2 GETMET R13 R13 K34 - 0x5C3C1800, // 00E3 MOVE R15 R12 - 0x7C340400, // 00E4 CALL R13 2 - 0xB8363000, // 00E5 GETNGBL R13 K24 - 0x8C341B14, // 00E6 GETMET R13 R13 K20 - 0x8C3C0719, // 00E7 GETMET R15 R3 K25 - 0x58440027, // 00E8 LDCONST R17 K39 - 0x88480312, // 00E9 GETMBR R18 R1 K18 - 0x8848251B, // 00EA GETMBR R18 R18 K27 - 0x884C090D, // 00EB GETMBR R19 R4 K13 - 0x88500324, // 00EC GETMBR R20 R1 K36 - 0x7C3C0A00, // 00ED CALL R15 5 - 0x5840001C, // 00EE LDCONST R16 K28 - 0x7C340600, // 00EF CALL R13 3 - 0x70020009, // 00F0 JMP #00FB - 0xB8363000, // 00F1 GETNGBL R13 K24 - 0x8C341B14, // 00F2 GETMET R13 R13 K20 - 0x8C3C0719, // 00F3 GETMET R15 R3 K25 - 0x58440028, // 00F4 LDCONST R17 K40 - 0x88480312, // 00F5 GETMBR R18 R1 K18 - 0x8848251B, // 00F6 GETMBR R18 R18 K27 - 0x884C0324, // 00F7 GETMBR R19 R1 K36 - 0x7C3C0800, // 00F8 CALL R15 4 - 0x5840001C, // 00F9 LDCONST R16 K28 - 0x7C340600, // 00FA CALL R13 3 - 0x7001FF1D, // 00FB JMP #001A - 0x581C0029, // 00FC LDCONST R7 K41 - 0xAC1C0200, // 00FD CATCH R7 1 0 - 0xB0080000, // 00FE RAISE 2 R0 R0 - 0x601C000C, // 00FF GETGBL R7 G12 - 0x88200D08, // 0100 GETMBR R8 R6 K8 - 0x7C1C0200, // 0101 CALL R7 1 - 0x241C0F2A, // 0102 GT R7 R7 K42 - 0x781E0004, // 0103 JMPF R7 #0109 - 0x8C1C012B, // 0104 GETMET R7 R0 K43 - 0x5C240200, // 0105 MOVE R9 R1 - 0x5C280C00, // 0106 MOVE R10 R6 - 0x7C1C0600, // 0107 CALL R7 3 - 0x70020001, // 0108 JMP #010B - 0x501C0000, // 0109 LDBOOL R7 0 0 - 0x80040E00, // 010A RET 1 R7 - 0x501C0200, // 010B LDBOOL R7 1 0 - 0x80040E00, // 010C RET 1 R7 - 0x80000000, // 010D RET 0 + 0x60280008, // 002D GETGBL R10 G8 + 0x5C2C0800, // 002E MOVE R11 R4 + 0x7C280200, // 002F CALL R10 1 + 0x882C0110, // 0030 GETMBR R11 R0 K16 + 0x8C2C1711, // 0031 GETMET R11 R11 K17 + 0x88340312, // 0032 GETMBR R13 R1 K18 + 0x88381113, // 0033 GETMBR R14 R8 K19 + 0x5C3C0800, // 0034 MOVE R15 R4 + 0x7C2C0800, // 0035 CALL R11 4 + 0x88300914, // 0036 GETMBR R12 R4 K20 + 0x4C340000, // 0037 LDNIL R13 + 0x2030180D, // 0038 NE R12 R12 R13 + 0x78320005, // 0039 JMPF R12 #0040 + 0x60300008, // 003A GETGBL R12 G8 + 0x88340914, // 003B GETMBR R13 R4 K20 + 0x7C300200, // 003C CALL R12 1 + 0x00322A0C, // 003D ADD R12 K21 R12 + 0x00301916, // 003E ADD R12 R12 K22 + 0x70020000, // 003F JMP #0041 + 0x58300017, // 0040 LDCONST R12 K23 + 0xB8363000, // 0041 GETNGBL R13 K24 + 0x8C341B14, // 0042 GETMET R13 R13 K20 + 0x8C3C0719, // 0043 GETMET R15 R3 K25 + 0x5844001A, // 0044 LDCONST R17 K26 + 0x88480312, // 0045 GETMBR R18 R1 K18 + 0x8848251B, // 0046 GETMBR R18 R18 K27 + 0x5C4C1400, // 0047 MOVE R19 R10 + 0x78260001, // 0048 JMPF R9 #004B + 0x5C501200, // 0049 MOVE R20 R9 + 0x70020000, // 004A JMP #004C + 0x58500017, // 004B LDCONST R20 K23 + 0x5C541800, // 004C MOVE R21 R12 + 0x7C3C0C00, // 004D CALL R15 6 + 0x5840001C, // 004E LDCONST R16 K28 + 0x7C340600, // 004F CALL R13 3 + 0x4C340000, // 0050 LDNIL R13 + 0x9012280D, // 0051 SETMBR R4 K20 R13 + 0xB8360200, // 0052 GETNGBL R13 K1 + 0x8C341B1D, // 0053 GETMET R13 R13 K29 + 0x7C340200, // 0054 CALL R13 1 + 0x50380200, // 0055 LDBOOL R14 1 0 + 0x1C38160E, // 0056 EQ R14 R11 R14 + 0x743A0004, // 0057 JMPT R14 #005D + 0x8838090D, // 0058 GETMBR R14 R4 K13 + 0xB83E0200, // 0059 GETNGBL R15 K1 + 0x883C1F1E, // 005A GETMBR R15 R15 K30 + 0x1C381C0F, // 005B EQ R14 R14 R15 + 0x783A002D, // 005C JMPF R14 #008B + 0xB83A0200, // 005D GETNGBL R14 K1 + 0x8C381D1F, // 005E GETMET R14 R14 K31 + 0x7C380200, // 005F CALL R14 1 + 0x90361A0E, // 0060 SETMBR R13 K13 R14 + 0x88381B0D, // 0061 GETMBR R14 R13 K13 + 0xB83E0200, // 0062 GETNGBL R15 K1 + 0x8C3C1F20, // 0063 GETMET R15 R15 K32 + 0x7C3C0200, // 0064 CALL R15 1 + 0x903A140F, // 0065 SETMBR R14 K10 R15 + 0x88381B0D, // 0066 GETMBR R14 R13 K13 + 0x88381D0A, // 0067 GETMBR R14 R14 K10 + 0x883C0909, // 0068 GETMBR R15 R4 K9 + 0x903A120F, // 0069 SETMBR R14 K9 R15 + 0x88381B0D, // 006A GETMBR R14 R13 K13 + 0x88381D0A, // 006B GETMBR R14 R14 K10 + 0x883C090B, // 006C GETMBR R15 R4 K11 + 0x903A160F, // 006D SETMBR R14 K11 R15 + 0x88381B0D, // 006E GETMBR R14 R13 K13 + 0x88381D0A, // 006F GETMBR R14 R14 K10 + 0x883C090C, // 0070 GETMBR R15 R4 K12 + 0x903A180F, // 0071 SETMBR R14 K12 R15 + 0x88381B0D, // 0072 GETMBR R14 R13 K13 + 0xB83E0200, // 0073 GETNGBL R15 K1 + 0x8C3C1F21, // 0074 GETMET R15 R15 K33 + 0x7C3C0200, // 0075 CALL R15 1 + 0x903A1A0F, // 0076 SETMBR R14 K13 R15 + 0x88381B0D, // 0077 GETMBR R14 R13 K13 + 0x88381D0D, // 0078 GETMBR R14 R14 K13 + 0xB83E0200, // 0079 GETNGBL R15 K1 + 0x883C1F1E, // 007A GETMBR R15 R15 K30 + 0x903A1A0F, // 007B SETMBR R14 K13 R15 + 0x88380D08, // 007C GETMBR R14 R6 K8 + 0x8C381D22, // 007D GETMET R14 R14 K34 + 0x5C401A00, // 007E MOVE R16 R13 + 0x7C380400, // 007F CALL R14 2 + 0xB83A3000, // 0080 GETNGBL R14 K24 + 0x8C381D14, // 0081 GETMET R14 R14 K20 + 0x8C400719, // 0082 GETMET R16 R3 K25 + 0x58480023, // 0083 LDCONST R18 K35 + 0x884C0312, // 0084 GETMBR R19 R1 K18 + 0x884C271B, // 0085 GETMBR R19 R19 K27 + 0x88500324, // 0086 GETMBR R20 R1 K36 + 0x7C400800, // 0087 CALL R16 4 + 0x5844001C, // 0088 LDCONST R17 K28 + 0x7C380600, // 0089 CALL R14 3 + 0x70020070, // 008A JMP #00FC + 0x4C380000, // 008B LDNIL R14 + 0x2038160E, // 008C NE R14 R11 R14 + 0x783A0031, // 008D JMPF R14 #00C0 + 0xB83A0200, // 008E GETNGBL R14 K1 + 0x8C381D25, // 008F GETMET R14 R14 K37 + 0x7C380200, // 0090 CALL R14 1 + 0x9036180E, // 0091 SETMBR R13 K12 R14 + 0x88381B0C, // 0092 GETMBR R14 R13 K12 + 0xB83E0200, // 0093 GETNGBL R15 K1 + 0x8C3C1F20, // 0094 GETMET R15 R15 K32 + 0x7C3C0200, // 0095 CALL R15 1 + 0x903A140F, // 0096 SETMBR R14 K10 R15 + 0x88381B0C, // 0097 GETMBR R14 R13 K12 + 0x88381D0A, // 0098 GETMBR R14 R14 K10 + 0x883C0909, // 0099 GETMBR R15 R4 K9 + 0x903A120F, // 009A SETMBR R14 K9 R15 + 0x88381B0C, // 009B GETMBR R14 R13 K12 + 0x88381D0A, // 009C GETMBR R14 R14 K10 + 0x883C090B, // 009D GETMBR R15 R4 K11 + 0x903A160F, // 009E SETMBR R14 K11 R15 + 0x88381B0C, // 009F GETMBR R14 R13 K12 + 0x88381D0A, // 00A0 GETMBR R14 R14 K10 + 0x883C090C, // 00A1 GETMBR R15 R4 K12 + 0x903A180F, // 00A2 SETMBR R14 K12 R15 + 0x88381B0C, // 00A3 GETMBR R14 R13 K12 + 0x903A260B, // 00A4 SETMBR R14 K19 R11 + 0x88380D08, // 00A5 GETMBR R14 R6 K8 + 0x8C381D22, // 00A6 GETMET R14 R14 K34 + 0x5C401A00, // 00A7 MOVE R16 R13 + 0x7C380400, // 00A8 CALL R14 2 + 0xB83A0200, // 00A9 GETNGBL R14 K1 + 0x8C381D0F, // 00AA GETMET R14 R14 K15 + 0x8840090B, // 00AB GETMBR R16 R4 K11 + 0x8844090C, // 00AC GETMBR R17 R4 K12 + 0x7C380600, // 00AD CALL R14 3 + 0x5C241C00, // 00AE MOVE R9 R14 + 0xB83A3000, // 00AF GETNGBL R14 K24 + 0x8C381D14, // 00B0 GETMET R14 R14 K20 + 0x8C400719, // 00B1 GETMET R16 R3 K25 + 0x58480026, // 00B2 LDCONST R18 K38 + 0x884C0312, // 00B3 GETMBR R19 R1 K18 + 0x884C271B, // 00B4 GETMBR R19 R19 K27 + 0x60500008, // 00B5 GETGBL R20 G8 + 0x5C540800, // 00B6 MOVE R21 R4 + 0x7C500200, // 00B7 CALL R20 1 + 0x78260001, // 00B8 JMPF R9 #00BB + 0x5C541200, // 00B9 MOVE R21 R9 + 0x70020000, // 00BA JMP #00BC + 0x58540017, // 00BB LDCONST R21 K23 + 0x7C400A00, // 00BC CALL R16 5 + 0x5844001C, // 00BD LDCONST R17 K28 + 0x7C380600, // 00BE CALL R14 3 + 0x7002003B, // 00BF JMP #00FC + 0x8838090D, // 00C0 GETMBR R14 R4 K13 + 0x4C3C0000, // 00C1 LDNIL R15 + 0x20381C0F, // 00C2 NE R14 R14 R15 + 0x783A002D, // 00C3 JMPF R14 #00F2 + 0xB83A0200, // 00C4 GETNGBL R14 K1 + 0x8C381D1F, // 00C5 GETMET R14 R14 K31 + 0x7C380200, // 00C6 CALL R14 1 + 0x90361A0E, // 00C7 SETMBR R13 K13 R14 + 0x88381B0D, // 00C8 GETMBR R14 R13 K13 + 0xB83E0200, // 00C9 GETNGBL R15 K1 + 0x8C3C1F20, // 00CA GETMET R15 R15 K32 + 0x7C3C0200, // 00CB CALL R15 1 + 0x903A140F, // 00CC SETMBR R14 K10 R15 + 0x88381B0D, // 00CD GETMBR R14 R13 K13 + 0x88381D0A, // 00CE GETMBR R14 R14 K10 + 0x883C0909, // 00CF GETMBR R15 R4 K9 + 0x903A120F, // 00D0 SETMBR R14 K9 R15 + 0x88381B0D, // 00D1 GETMBR R14 R13 K13 + 0x88381D0A, // 00D2 GETMBR R14 R14 K10 + 0x883C090B, // 00D3 GETMBR R15 R4 K11 + 0x903A160F, // 00D4 SETMBR R14 K11 R15 + 0x88381B0D, // 00D5 GETMBR R14 R13 K13 + 0x88381D0A, // 00D6 GETMBR R14 R14 K10 + 0x883C090C, // 00D7 GETMBR R15 R4 K12 + 0x903A180F, // 00D8 SETMBR R14 K12 R15 + 0x88381B0D, // 00D9 GETMBR R14 R13 K13 + 0xB83E0200, // 00DA GETNGBL R15 K1 + 0x8C3C1F21, // 00DB GETMET R15 R15 K33 + 0x7C3C0200, // 00DC CALL R15 1 + 0x903A1A0F, // 00DD SETMBR R14 K13 R15 + 0x88381B0D, // 00DE GETMBR R14 R13 K13 + 0x88381D0D, // 00DF GETMBR R14 R14 K13 + 0x883C090D, // 00E0 GETMBR R15 R4 K13 + 0x903A1A0F, // 00E1 SETMBR R14 K13 R15 + 0x88380D08, // 00E2 GETMBR R14 R6 K8 + 0x8C381D22, // 00E3 GETMET R14 R14 K34 + 0x5C401A00, // 00E4 MOVE R16 R13 + 0x7C380400, // 00E5 CALL R14 2 + 0xB83A3000, // 00E6 GETNGBL R14 K24 + 0x8C381D14, // 00E7 GETMET R14 R14 K20 + 0x8C400719, // 00E8 GETMET R16 R3 K25 + 0x58480027, // 00E9 LDCONST R18 K39 + 0x884C0312, // 00EA GETMBR R19 R1 K18 + 0x884C271B, // 00EB GETMBR R19 R19 K27 + 0x8850090D, // 00EC GETMBR R20 R4 K13 + 0x88540324, // 00ED GETMBR R21 R1 K36 + 0x7C400A00, // 00EE CALL R16 5 + 0x5844001C, // 00EF LDCONST R17 K28 + 0x7C380600, // 00F0 CALL R14 3 + 0x70020009, // 00F1 JMP #00FC + 0xB83A3000, // 00F2 GETNGBL R14 K24 + 0x8C381D14, // 00F3 GETMET R14 R14 K20 + 0x8C400719, // 00F4 GETMET R16 R3 K25 + 0x58480028, // 00F5 LDCONST R18 K40 + 0x884C0312, // 00F6 GETMBR R19 R1 K18 + 0x884C271B, // 00F7 GETMBR R19 R19 K27 + 0x88500324, // 00F8 GETMBR R20 R1 K36 + 0x7C400800, // 00F9 CALL R16 4 + 0x5844001C, // 00FA LDCONST R17 K28 + 0x7C380600, // 00FB CALL R14 3 + 0x7001FF1C, // 00FC JMP #001A + 0x581C0029, // 00FD LDCONST R7 K41 + 0xAC1C0200, // 00FE CATCH R7 1 0 + 0xB0080000, // 00FF RAISE 2 R0 R0 + 0x601C000C, // 0100 GETGBL R7 G12 + 0x88200D08, // 0101 GETMBR R8 R6 K8 + 0x7C1C0200, // 0102 CALL R7 1 + 0x241C0F2A, // 0103 GT R7 R7 K42 + 0x781E0004, // 0104 JMPF R7 #010A + 0x8C1C012B, // 0105 GETMET R7 R0 K43 + 0x5C240200, // 0106 MOVE R9 R1 + 0x5C280C00, // 0107 MOVE R10 R6 + 0x7C1C0600, // 0108 CALL R7 3 + 0x70020001, // 0109 JMP #010C + 0x501C0000, // 010A LDBOOL R7 0 0 + 0x80040E00, // 010B RET 1 R7 + 0x501C0200, // 010C LDBOOL R7 1 0 + 0x80040E00, // 010D RET 1 R7 + 0x80000000, // 010E RET 0 }) ) ); 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 2e52225b9..54565ec7f 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 @@ -1183,7 +1183,7 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ be_nested_proto( - 29, /* nstack */ + 31, /* nstack */ 4, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1219,7 +1219,7 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ ), }), 1, /* has constants */ - ( &(const bvalue[100]) { /* constants */ + ( &(const bvalue[107]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(matter), @@ -1238,92 +1238,99 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ /* 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(tlv2raw), - /* 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(commissioning_admin_fabric), - /* K68 */ be_nested_str_weak(persist_to_fabric), - /* K69 */ be_nested_str_weak(fabric_candidate), - /* K70 */ be_nested_str_weak(start_operational_discovery_deferred), - /* K71 */ 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), - /* K72 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D), - /* K73 */ be_nested_str_weak(inspect), - /* K74 */ be_nested_str_weak(_fabric), - /* K75 */ be_nested_str_weak(log_new_fabric), - /* K76 */ be_nested_str_weak(set_fabric_label), - /* K77 */ be_nested_str_weak(format), - /* K78 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Update_X20fabric_X20_X27_X25s_X27_X20label_X3D_X27_X25s_X27), - /* K79 */ be_nested_str_weak(get_fabric_id), - /* K80 */ be_nested_str_weak(fabric_index_X3A), - /* K81 */ be_nested_str_weak(sessions), - /* K82 */ be_nested_str_weak(active_fabrics), - /* K83 */ be_nested_str_weak(get_fabric_index), - /* K84 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), - /* K85 */ be_nested_str_weak(set_timer), - /* K86 */ be_nested_str_weak(stop_iteration), - /* K87 */ be_nested_str_weak(MTR_X3A_X20RemoveFabric_X20fabric_X28), - /* K88 */ be_nested_str_weak(_X29_X20not_X20found), - /* K89 */ be_nested_str_weak(INVALID_ACTION), - /* K90 */ 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), - /* K91 */ be_nested_str_weak(INVALID_DATA_TYPE), - /* K92 */ be_nested_str_weak(MTR_X3A_X20wrong_X20size_X20for_X20PAKE_X20parameters), - /* K93 */ be_nested_str_weak(CONSTRAINT_ERROR), - /* K94 */ be_nested_str_weak(start_basic_commissioning), - /* K95 */ be_nested_str_weak(get_fabric), - /* K96 */ be_nested_str_weak(MTR_X3A_X20OpenBasicCommissioningWindow_X20commissioning_timeout_X3D), - /* K97 */ be_nested_str_weak(start_root_basic_commissioning), - /* K98 */ be_nested_str_weak(stop_basic_commissioning), - /* K99 */ be_nested_str_weak(invoke_request), + /* K18 */ be_nested_str_weak(_fabric), + /* K19 */ be_nested_str_weak(fabric_completed), + /* K20 */ be_nested_str_weak(set_no_expiration), + /* K21 */ be_nested_str_weak(save), + /* K22 */ be_nested_str_weak(device), + /* K23 */ be_nested_str_weak(start_commissioning_complete_deferred), + /* K24 */ be_nested_str_weak(context_error), + /* K25 */ be_nested_str_weak(CommissioningComplete_X3A_X20no_X20fabric_X20attached), + /* K26 */ be_nested_str_weak(status), + /* K27 */ be_nested_str_weak(UNSUPPORTED_COMMAND), + /* K28 */ be_nested_str_weak(B2), + /* K29 */ be_nested_str_weak(DAC_Cert_FFF1_8000), + /* K30 */ be_nested_str_weak(PAI_Cert_FFF1), + /* K31 */ be_nested_str_weak(CD_FFF1_8000), + /* K32 */ be_nested_str_weak(B1), + /* K33 */ be_nested_str_weak(U4), + /* K34 */ be_nested_str_weak(tasmota), + /* K35 */ be_nested_str_weak(rtc), + /* K36 */ be_nested_str_weak(utc), + /* K37 */ be_nested_str_weak(tlv2raw), + /* K38 */ be_nested_str_weak(get_ac), + /* K39 */ be_nested_str_weak(log), + /* K40 */ be_nested_str_weak(MTR_X3A_X20attestation_tbs_X3D), + /* K41 */ be_nested_str_weak(tohex), + /* K42 */ be_nested_str_weak(EC_P256), + /* K43 */ be_nested_str_weak(ecdsa_sign_sha256), + /* K44 */ be_nested_str_weak(DAC_Priv_FFF1_8000), + /* K45 */ be_nested_str_weak(format), + /* K46 */ be_nested_str_weak(MTR_X3A_X20CSRRequest_X20CSRNonce_X3D_X25s_X20IsForUpdateNOC_X3D_X25s), + /* K47 */ be_nested_str_weak(gen_CSR), + /* K48 */ be_nested_str_weak(MTR_X3A_X20nocsr_tbs_X3D), + /* K49 */ be_nested_str_weak(set_temp_ca), + /* K50 */ be_nested_str_weak(MTR_X3A_X20received_X20ca_root_X3D), + /* K51 */ be_nested_str_weak(SUCCESS), + /* K52 */ be_nested_str_weak(MTR_X3A_X20AddNoc_X20Args_X3D), + /* K53 */ be_nested_str_weak(get_temp_ca), + /* K54 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20AdNOC_X20without_X20CA), + /* K55 */ be_nested_str_weak(sessions), + /* K56 */ be_nested_str_weak(create_fabric), + /* K57 */ be_nested_str_weak(set_ca), + /* K58 */ be_nested_str_weak(set_noc_icac), + /* K59 */ be_nested_str_weak(set_ipk_epoch_key), + /* K60 */ be_nested_str_weak(set_admin_subject_vendor), + /* K61 */ be_nested_str_weak(set_pk), + /* K62 */ be_nested_str_weak(get_pk), + /* K63 */ be_nested_str_weak(parse), + /* K64 */ be_nested_str_weak(findsub), + /* K65 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20no_X20fabricid_X20nor_X20deviceid_X20in_X20NOC_X20certificate), + /* K66 */ be_nested_str_weak(int), + /* K67 */ be_nested_str_weak(int64), + /* K68 */ be_nested_str_weak(fromu32), + /* K69 */ be_nested_str_weak(tobytes), + /* K70 */ be_nested_str_weak(get_temp_ca_pub), + /* K71 */ be_const_int(2147483647), + /* K72 */ be_nested_str_weak(fromstring), + /* K73 */ be_nested_str_weak(CompressedFabric), + /* K74 */ be_nested_str_weak(HKDF_SHA256), + /* K75 */ be_nested_str_weak(copy), + /* K76 */ be_nested_str_weak(reverse), + /* K77 */ be_nested_str_weak(derive), + /* K78 */ be_nested_str_weak(commissioning_admin_fabric), + /* K79 */ be_nested_str_weak(set_fabric_device), + /* K80 */ be_nested_str_weak(fabric_candidate), + /* K81 */ be_nested_str_weak(start_operational_discovery_deferred), + /* K82 */ be_nested_str_weak(is_PASE), + /* K83 */ be_nested_str_weak(set_expire_in_seconds), + /* K84 */ be_nested_str_weak(log_new_fabric), + /* K85 */ be_nested_str_weak(set_fabric_label), + /* K86 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Update_X20fabric_X20_X27_X25s_X27_X20label_X3D_X27_X25s_X27), + /* K87 */ be_nested_str_weak(get_fabric_id), + /* K88 */ be_nested_str_weak(fabric_index_X3A), + /* K89 */ be_nested_str_weak(active_fabrics), + /* K90 */ be_nested_str_weak(get_fabric_index), + /* K91 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), + /* K92 */ be_nested_str_weak(set_timer), + /* K93 */ be_nested_str_weak(stop_iteration), + /* K94 */ be_nested_str_weak(MTR_X3A_X20RemoveFabric_X20fabric_X28), + /* K95 */ be_nested_str_weak(_X29_X20not_X20found), + /* K96 */ be_nested_str_weak(INVALID_ACTION), + /* K97 */ 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), + /* K98 */ be_nested_str_weak(INVALID_DATA_TYPE), + /* K99 */ be_nested_str_weak(MTR_X3A_X20wrong_X20size_X20for_X20PAKE_X20parameters), + /* K100 */ be_nested_str_weak(CONSTRAINT_ERROR), + /* K101 */ be_nested_str_weak(start_basic_commissioning), + /* K102 */ be_nested_str_weak(get_fabric), + /* K103 */ be_nested_str_weak(MTR_X3A_X20OpenBasicCommissioningWindow_X20commissioning_timeout_X3D), + /* K104 */ be_nested_str_weak(start_root_basic_commissioning), + /* K105 */ be_nested_str_weak(stop_basic_commissioning), + /* K106 */ be_nested_str_weak(invoke_request), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[735]) { /* code */ + ( &(const binstruction[755]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xA4160200, // 0001 IMPORT R5 K1 0xB81A0400, // 0002 GETNGBL R6 K2 @@ -1332,7 +1339,7 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0x88200705, // 0005 GETMBR R8 R3 K5 0x5426002F, // 0006 LDINT R9 48 0x1C240E09, // 0007 EQ R9 R7 R9 - 0x78260054, // 0008 JMPF R9 #005E + 0x78260059, // 0008 JMPF R9 #0063 0x1C241106, // 0009 EQ R9 R8 K6 0x78260017, // 000A JMPF R9 #0023 0x8C240507, // 000B GETMET R9 R2 K7 @@ -1358,7 +1365,7 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0x7C300800, // 001F CALL R12 4 0x900E0B08, // 0020 SETMBR R3 K5 K8 0x80041600, // 0021 RET 1 R11 - 0x70020039, // 0022 JMP #005D + 0x7002003E, // 0022 JMP #0062 0x1C24110F, // 0023 EQ R9 R8 K15 0x7826001A, // 0024 JMPF R9 #0040 0x8C240507, // 0025 GETMET R9 R2 K7 @@ -1387,678 +1394,698 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0x7C340800, // 003C CALL R13 4 0x900E0B11, // 003D SETMBR R3 K5 K17 0x80041800, // 003E RET 1 R12 - 0x7002001C, // 003F JMP #005D + 0x70020021, // 003F JMP #0062 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 - 0x7002027E, // 005D JMP #02DD - 0x5426003D, // 005E LDINT R9 62 - 0x1C240E09, // 005F EQ R9 R7 R9 - 0x782601E0, // 0060 JMPF R9 #0242 - 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 - 0x700201BF, // 0080 JMP #0241 - 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 + 0x7826001E, // 0042 JMPF R9 #0062 + 0x88240312, // 0043 GETMBR R9 R1 K18 + 0x7826001B, // 0044 JMPF R9 #0061 + 0x90061306, // 0045 SETMBR R1 K9 K6 + 0x88240312, // 0046 GETMBR R9 R1 K18 + 0x8C241313, // 0047 GETMET R9 R9 K19 + 0x7C240200, // 0048 CALL R9 1 + 0x8C240314, // 0049 GETMET R9 R1 K20 + 0x7C240200, // 004A CALL R9 1 + 0x8C240315, // 004B GETMET R9 R1 K21 + 0x7C240200, // 004C CALL R9 1 + 0x8C240D0A, // 004D GETMET R9 R6 K10 + 0x7C240200, // 004E CALL R9 1 + 0x8C28130B, // 004F GETMET R10 R9 K11 + 0x58300006, // 0050 LDCONST R12 K6 + 0x88340D0C, // 0051 GETMBR R13 R6 K12 + 0x58380006, // 0052 LDCONST R14 K6 + 0x7C280800, // 0053 CALL R10 4 + 0x8C28130B, // 0054 GETMET R10 R9 K11 + 0x58300008, // 0055 LDCONST R12 K8 + 0x88340D0D, // 0056 GETMBR R13 R6 K13 + 0x5838000E, // 0057 LDCONST R14 K14 + 0x7C280800, // 0058 CALL R10 4 + 0x542A0004, // 0059 LDINT R10 5 + 0x900E0A0A, // 005A SETMBR R3 K5 R10 + 0x88280116, // 005B GETMBR R10 R0 K22 + 0x8C281517, // 005C GETMET R10 R10 K23 + 0x5C300200, // 005D MOVE R12 R1 + 0x7C280400, // 005E CALL R10 2 + 0x80041200, // 005F RET 1 R9 + 0x70020000, // 0060 JMP #0062 + 0xB0063119, // 0061 RAISE 1 K24 K25 + 0x7002028D, // 0062 JMP #02F1 + 0x5426003D, // 0063 LDINT R9 62 + 0x1C240E09, // 0064 EQ R9 R7 R9 + 0x782601EF, // 0065 JMPF R9 #0256 + 0x1C24110F, // 0066 EQ R9 R8 K15 + 0x7826001D, // 0067 JMPF R9 #0086 + 0x8C240507, // 0068 GETMET R9 R2 K7 + 0x582C0006, // 0069 LDCONST R11 K6 + 0x7C240400, // 006A CALL R9 2 + 0x20281308, // 006B NE R10 R9 K8 + 0x782A0006, // 006C JMPF R10 #0074 + 0x2028130F, // 006D NE R10 R9 K15 + 0x782A0004, // 006E JMPF R10 #0074 + 0xB82A0400, // 006F GETNGBL R10 K2 + 0x8828151B, // 0070 GETMBR R10 R10 K27 + 0x900E340A, // 0071 SETMBR R3 K26 R10 + 0x4C280000, // 0072 LDNIL R10 + 0x80041400, // 0073 RET 1 R10 + 0x8C280D0A, // 0074 GETMET R10 R6 K10 + 0x7C280200, // 0075 CALL R10 1 + 0x8C2C150B, // 0076 GETMET R11 R10 K11 + 0x58340006, // 0077 LDCONST R13 K6 + 0x88380D1C, // 0078 GETMBR R14 R6 K28 + 0x1C3C1308, // 0079 EQ R15 R9 K8 + 0x783E0003, // 007A JMPF R15 #007F + 0xB83E0400, // 007B GETNGBL R15 K2 + 0x8C3C1F1D, // 007C GETMET R15 R15 K29 + 0x7C3C0200, // 007D CALL R15 1 + 0x70020002, // 007E JMP #0082 + 0xB83E0400, // 007F GETNGBL R15 K2 + 0x8C3C1F1E, // 0080 GETMET R15 R15 K30 + 0x7C3C0200, // 0081 CALL R15 1 + 0x7C2C0800, // 0082 CALL R11 4 + 0x900E0B11, // 0083 SETMBR R3 K5 K17 + 0x80041400, // 0084 RET 1 R10 + 0x700201CE, // 0085 JMP #0255 + 0x1C241106, // 0086 EQ R9 R8 K6 + 0x78260044, // 0087 JMPF R9 #00CD + 0x8C240507, // 0088 GETMET R9 R2 K7 + 0x582C0006, // 0089 LDCONST R11 K6 + 0x7C240400, // 008A CALL R9 2 + 0x6028000C, // 008B GETGBL R10 G12 + 0x5C2C1200, // 008C MOVE R11 R9 + 0x7C280200, // 008D CALL R10 1 + 0x542E001F, // 008E LDINT R11 32 + 0x2028140B, // 008F NE R10 R10 R11 + 0x782A0001, // 0090 JMPF R10 #0093 + 0x4C280000, // 0091 LDNIL R10 + 0x80041400, // 0092 RET 1 R10 + 0x900E0B08, // 0093 SETMBR R3 K5 K8 + 0x8C280D0A, // 0094 GETMET R10 R6 K10 + 0x7C280200, // 0095 CALL R10 1 + 0x8C2C150B, // 0096 GETMET R11 R10 K11 + 0x58340008, // 0097 LDCONST R13 K8 + 0x88380D1C, // 0098 GETMBR R14 R6 K28 + 0xB83E0400, // 0099 GETNGBL R15 K2 + 0x8C3C1F1F, // 009A GETMET R15 R15 K31 + 0x7C3C0200, // 009B CALL R15 1 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 + 0x5834000F, // 009E LDCONST R13 K15 + 0x88380D20, // 009F GETMBR R14 R6 K32 + 0x5C3C1200, // 00A0 MOVE R15 R9 + 0x7C2C0800, // 00A1 CALL R11 4 + 0x8C2C150B, // 00A2 GETMET R11 R10 K11 + 0x58340011, // 00A3 LDCONST R13 K17 + 0x88380D21, // 00A4 GETMBR R14 R6 K33 + 0xB83E4400, // 00A5 GETNGBL R15 K34 + 0x8C3C1F23, // 00A6 GETMET R15 R15 K35 + 0x7C3C0200, // 00A7 CALL R15 1 + 0x943C1F24, // 00A8 GETIDX R15 R15 K36 + 0x7C2C0800, // 00A9 CALL R11 4 + 0x8C2C1525, // 00AA GETMET R11 R10 K37 + 0x7C2C0200, // 00AB CALL R11 1 + 0x8C300326, // 00AC GETMET R12 R1 K38 + 0x7C300200, // 00AD CALL R12 1 + 0x0034160C, // 00AE ADD R13 R11 R12 + 0xB83A4400, // 00AF GETNGBL R14 K34 + 0x8C381D27, // 00B0 GETMET R14 R14 K39 + 0x8C401B29, // 00B1 GETMET R16 R13 K41 + 0x7C400200, // 00B2 CALL R16 1 + 0x00425010, // 00B3 ADD R16 K40 R16 + 0x58440011, // 00B4 LDCONST R17 K17 + 0x7C380600, // 00B5 CALL R14 3 + 0x8C38092A, // 00B6 GETMET R14 R4 K42 + 0x7C380200, // 00B7 CALL R14 1 + 0x8C381D2B, // 00B8 GETMET R14 R14 K43 + 0xB8420400, // 00B9 GETNGBL R16 K2 + 0x8C40212C, // 00BA GETMET R16 R16 K44 + 0x7C400200, // 00BB CALL R16 1 + 0x5C441A00, // 00BC MOVE R17 R13 + 0x7C380600, // 00BD CALL R14 3 + 0x8C3C0D0A, // 00BE GETMET R15 R6 K10 + 0x7C3C0200, // 00BF CALL R15 1 0x8C401F0B, // 00C0 GETMET R16 R15 K11 - 0x58480008, // 00C1 LDCONST R18 K8 - 0x884C0D1D, // 00C2 GETMBR R19 R6 K29 - 0x5C501C00, // 00C3 MOVE R20 R14 + 0x58480006, // 00C1 LDCONST R18 K6 + 0x884C0D1C, // 00C2 GETMBR R19 R6 K28 + 0x5C501600, // 00C3 MOVE R20 R11 0x7C400800, // 00C4 CALL R16 4 - 0x900E0B08, // 00C5 SETMBR R3 K5 K8 - 0x80041E00, // 00C6 RET 1 R15 - 0x70020178, // 00C7 JMP #0241 - 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 - 0x70020134, // 010B JMP #0241 - 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 - 0x7002011E, // 0121 JMP #0241 - 0x54260005, // 0122 LDINT R9 6 - 0x1C241009, // 0123 EQ R9 R8 R9 - 0x782600B7, // 0124 JMPF R9 #01DD - 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 - 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 - 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 - 0x5C682200, // 01A9 MOVE R26 R17 - 0x5C6C2C00, // 01AA MOVE R27 R22 - 0x88700115, // 01AB GETMBR R28 R0 K21 - 0x88703943, // 01AC GETMBR R28 R28 K67 - 0x7C5C0A00, // 01AD CALL R23 5 - 0x8C5C0344, // 01AE GETMET R23 R1 K68 - 0x7C5C0200, // 01AF CALL R23 1 - 0x8C5C0345, // 01B0 GETMET R23 R1 K69 - 0x7C5C0200, // 01B1 CALL R23 1 - 0x885C0115, // 01B2 GETMBR R23 R0 K21 - 0x8C5C2F46, // 01B3 GETMET R23 R23 K70 - 0x5C640200, // 01B4 MOVE R25 R1 - 0x7C5C0400, // 01B5 CALL R23 2 - 0xB85E3E00, // 01B6 GETNGBL R23 K31 - 0x8C5C2F24, // 01B7 GETMET R23 R23 K36 - 0x58640047, // 01B8 LDCONST R25 K71 - 0x58680011, // 01B9 LDCONST R26 K17 - 0x7C5C0600, // 01BA CALL R23 3 - 0xB85E3E00, // 01BB GETNGBL R23 K31 - 0x8C5C2F24, // 01BC GETMET R23 R23 K36 - 0xB8660400, // 01BD GETNGBL R25 K2 - 0x8C643349, // 01BE GETMET R25 R25 K73 - 0x886C034A, // 01BF GETMBR R27 R1 K74 - 0x7C640400, // 01C0 CALL R25 2 - 0x00669019, // 01C1 ADD R25 K72 R25 - 0x58680011, // 01C2 LDCONST R26 K17 - 0x7C5C0600, // 01C3 CALL R23 3 - 0xB85E3E00, // 01C4 GETNGBL R23 K31 - 0x8C5C2F24, // 01C5 GETMET R23 R23 K36 - 0x58640047, // 01C6 LDCONST R25 K71 - 0x58680011, // 01C7 LDCONST R26 K17 - 0x7C5C0600, // 01C8 CALL R23 3 - 0x885C034A, // 01C9 GETMBR R23 R1 K74 - 0x8C5C2F4B, // 01CA GETMET R23 R23 K75 - 0x7C5C0200, // 01CB CALL R23 1 - 0x8C5C0D0A, // 01CC GETMET R23 R6 K10 - 0x7C5C0200, // 01CD CALL R23 1 - 0x8C602F0B, // 01CE GETMET R24 R23 K11 - 0x58680006, // 01CF LDCONST R26 K6 - 0x886C0D0C, // 01D0 GETMBR R27 R6 K12 - 0xB8720400, // 01D1 GETNGBL R28 K2 - 0x8870392E, // 01D2 GETMBR R28 R28 K46 - 0x7C600800, // 01D3 CALL R24 4 - 0x8C602F0B, // 01D4 GETMET R24 R23 K11 - 0x58680008, // 01D5 LDCONST R26 K8 - 0x886C0D0C, // 01D6 GETMBR R27 R6 K12 - 0x58700008, // 01D7 LDCONST R28 K8 - 0x7C600800, // 01D8 CALL R24 4 - 0x54620007, // 01D9 LDINT R24 8 - 0x900E0A18, // 01DA SETMBR R3 K5 R24 - 0x80042E00, // 01DB RET 1 R23 - 0x70020063, // 01DC JMP #0241 - 0x54260008, // 01DD LDINT R9 9 - 0x1C241009, // 01DE EQ R9 R8 R9 - 0x7826001E, // 01DF JMPF R9 #01FF - 0x8C240507, // 01E0 GETMET R9 R2 K7 - 0x582C0006, // 01E1 LDCONST R11 K6 - 0x7C240400, // 01E2 CALL R9 2 - 0x8C28034C, // 01E3 GETMET R10 R1 K76 - 0x5C301200, // 01E4 MOVE R12 R9 - 0x7C280400, // 01E5 CALL R10 2 - 0xB82A3E00, // 01E6 GETNGBL R10 K31 - 0x8C281524, // 01E7 GETMET R10 R10 K36 - 0x8C300B4D, // 01E8 GETMET R12 R5 K77 - 0x5838004E, // 01E9 LDCONST R14 K78 - 0x883C034A, // 01EA GETMBR R15 R1 K74 - 0x8C3C1F4F, // 01EB GETMET R15 R15 K79 - 0x7C3C0200, // 01EC CALL R15 1 - 0x8C3C1F3F, // 01ED GETMET R15 R15 K63 - 0x7C3C0200, // 01EE CALL R15 1 - 0x8C3C1F40, // 01EF GETMET R15 R15 K64 - 0x7C3C0200, // 01F0 CALL R15 1 - 0x8C3C1F26, // 01F1 GETMET R15 R15 K38 - 0x7C3C0200, // 01F2 CALL R15 1 - 0x60400008, // 01F3 GETGBL R16 G8 - 0x5C441200, // 01F4 MOVE R17 R9 - 0x7C400200, // 01F5 CALL R16 1 - 0x7C300800, // 01F6 CALL R12 4 - 0x5834000F, // 01F7 LDCONST R13 K15 - 0x7C280600, // 01F8 CALL R10 3 - 0xB82A0400, // 01F9 GETNGBL R10 K2 - 0x8828152E, // 01FA GETMBR R10 R10 K46 - 0x900E2E0A, // 01FB SETMBR R3 K23 R10 - 0x4C280000, // 01FC LDNIL R10 - 0x80041400, // 01FD RET 1 R10 - 0x70020041, // 01FE JMP #0241 - 0x54260009, // 01FF LDINT R9 10 - 0x1C241009, // 0200 EQ R9 R8 R9 - 0x7826003E, // 0201 JMPF R9 #0241 - 0x8C240507, // 0202 GETMET R9 R2 K7 - 0x582C0006, // 0203 LDCONST R11 K6 - 0x7C240400, // 0204 CALL R9 2 - 0x60280008, // 0205 GETGBL R10 G8 - 0x5C2C1200, // 0206 MOVE R11 R9 - 0x7C280200, // 0207 CALL R10 1 - 0x002AA00A, // 0208 ADD R10 K80 R10 - 0x900E480A, // 0209 SETMBR R3 K36 R10 - 0x60280010, // 020A GETGBL R10 G16 - 0x882C0115, // 020B GETMBR R11 R0 K21 - 0x882C1751, // 020C GETMBR R11 R11 K81 - 0x8C2C1752, // 020D GETMET R11 R11 K82 - 0x7C2C0200, // 020E CALL R11 1 - 0x7C280200, // 020F CALL R10 1 - 0xA802001D, // 0210 EXBLK 0 #022F - 0x5C2C1400, // 0211 MOVE R11 R10 - 0x7C2C0000, // 0212 CALL R11 0 - 0x8C301753, // 0213 GETMET R12 R11 K83 - 0x7C300200, // 0214 CALL R12 1 - 0x1C301809, // 0215 EQ R12 R12 R9 - 0x78320015, // 0216 JMPF R12 #022D - 0xB8323E00, // 0217 GETNGBL R12 K31 - 0x8C301924, // 0218 GETMET R12 R12 K36 - 0x8C38174F, // 0219 GETMET R14 R11 K79 - 0x7C380200, // 021A CALL R14 1 - 0x8C381D3F, // 021B GETMET R14 R14 K63 - 0x7C380200, // 021C CALL R14 1 - 0x8C381D40, // 021D GETMET R14 R14 K64 - 0x7C380200, // 021E CALL R14 1 - 0x8C381D26, // 021F GETMET R14 R14 K38 - 0x7C380200, // 0220 CALL R14 1 - 0x003AA80E, // 0221 ADD R14 K84 R14 - 0x583C000F, // 0222 LDCONST R15 K15 - 0x7C300600, // 0223 CALL R12 3 - 0xB8323E00, // 0224 GETNGBL R12 K31 - 0x8C301955, // 0225 GETMET R12 R12 K85 - 0x543A07CF, // 0226 LDINT R14 2000 - 0x843C0000, // 0227 CLOSURE R15 P0 - 0x7C300600, // 0228 CALL R12 3 - 0x50300200, // 0229 LDBOOL R12 1 0 - 0xA0000000, // 022A CLOSE R0 - 0xA8040001, // 022B EXBLK 1 1 - 0x80041800, // 022C RET 1 R12 - 0xA0280000, // 022D CLOSE R10 - 0x7001FFE1, // 022E JMP #0211 - 0x58280056, // 022F LDCONST R10 K86 - 0xAC280200, // 0230 CATCH R10 1 0 - 0xB0080000, // 0231 RAISE 2 R0 R0 - 0xB82A3E00, // 0232 GETNGBL R10 K31 - 0x8C281524, // 0233 GETMET R10 R10 K36 - 0x60300008, // 0234 GETGBL R12 G8 - 0x5C341200, // 0235 MOVE R13 R9 - 0x7C300200, // 0236 CALL R12 1 - 0x0032AE0C, // 0237 ADD R12 K87 R12 - 0x00301958, // 0238 ADD R12 R12 K88 - 0x5834000F, // 0239 LDCONST R13 K15 - 0x7C280600, // 023A CALL R10 3 - 0xB82A0400, // 023B GETNGBL R10 K2 - 0x88281559, // 023C GETMBR R10 R10 K89 - 0x900E2E0A, // 023D SETMBR R3 K23 R10 - 0x4C280000, // 023E LDNIL R10 - 0xA0000000, // 023F CLOSE R0 - 0x80041400, // 0240 RET 1 R10 - 0x7002009A, // 0241 JMP #02DD - 0x5426003B, // 0242 LDINT R9 60 - 0x1C240E09, // 0243 EQ R9 R7 R9 - 0x78260084, // 0244 JMPF R9 #02CA - 0x1C241106, // 0245 EQ R9 R8 K6 - 0x78260064, // 0246 JMPF R9 #02AC - 0x8C240507, // 0247 GETMET R9 R2 K7 - 0x582C0006, // 0248 LDCONST R11 K6 - 0x7C240400, // 0249 CALL R9 2 - 0x8C280507, // 024A GETMET R10 R2 K7 - 0x58300008, // 024B LDCONST R12 K8 - 0x7C280400, // 024C CALL R10 2 - 0x8C2C0507, // 024D GETMET R11 R2 K7 - 0x5834000F, // 024E LDCONST R13 K15 - 0x7C2C0400, // 024F CALL R11 2 - 0x8C300507, // 0250 GETMET R12 R2 K7 - 0x58380011, // 0251 LDCONST R14 K17 - 0x7C300400, // 0252 CALL R12 2 - 0x8C340507, // 0253 GETMET R13 R2 K7 - 0x543E0003, // 0254 LDINT R15 4 - 0x7C340400, // 0255 CALL R13 2 - 0xB83A3E00, // 0256 GETNGBL R14 K31 - 0x8C381D24, // 0257 GETMET R14 R14 K36 - 0x8C400B4D, // 0258 GETMET R16 R5 K77 - 0x5848005A, // 0259 LDCONST R18 K90 - 0x5C4C1200, // 025A MOVE R19 R9 - 0x8C501526, // 025B GETMET R20 R10 K38 - 0x7C500200, // 025C CALL R20 1 - 0x5C541600, // 025D MOVE R21 R11 - 0x5C581800, // 025E MOVE R22 R12 - 0x8C5C1B26, // 025F GETMET R23 R13 K38 - 0x7C5C0200, // 0260 CALL R23 1 - 0x7C400E00, // 0261 CALL R16 7 - 0x5844000F, // 0262 LDCONST R17 K15 - 0x7C380600, // 0263 CALL R14 3 - 0x4C380000, // 0264 LDNIL R14 - 0x1C38120E, // 0265 EQ R14 R9 R14 - 0x743A000B, // 0266 JMPT R14 #0273 - 0x4C380000, // 0267 LDNIL R14 - 0x1C38140E, // 0268 EQ R14 R10 R14 - 0x743A0008, // 0269 JMPT R14 #0273 - 0x4C380000, // 026A LDNIL R14 - 0x1C38160E, // 026B EQ R14 R11 R14 - 0x743A0005, // 026C JMPT R14 #0273 - 0x4C380000, // 026D LDNIL R14 - 0x1C38180E, // 026E EQ R14 R12 R14 - 0x743A0002, // 026F JMPT R14 #0273 - 0x4C380000, // 0270 LDNIL R14 - 0x1C381A0E, // 0271 EQ R14 R13 R14 - 0x783A0005, // 0272 JMPF R14 #0279 - 0xB83A0400, // 0273 GETNGBL R14 K2 - 0x88381D5B, // 0274 GETMBR R14 R14 K91 - 0x900E2E0E, // 0275 SETMBR R3 K23 R14 - 0x4C380000, // 0276 LDNIL R14 - 0xA0000000, // 0277 CLOSE R0 - 0x80041C00, // 0278 RET 1 R14 - 0x6038000C, // 0279 GETGBL R14 G12 - 0x5C3C1400, // 027A MOVE R15 R10 - 0x7C380200, // 027B CALL R14 1 - 0x543E001F, // 027C LDINT R15 32 - 0x54420040, // 027D LDINT R16 65 - 0x003C1E10, // 027E ADD R15 R15 R16 - 0x20381C0F, // 027F NE R14 R14 R15 - 0x743A000B, // 0280 JMPT R14 #028D - 0x6038000C, // 0281 GETGBL R14 G12 - 0x5C3C1A00, // 0282 MOVE R15 R13 - 0x7C380200, // 0283 CALL R14 1 - 0x543E000F, // 0284 LDINT R15 16 - 0x14381C0F, // 0285 LT R14 R14 R15 - 0x743A0005, // 0286 JMPT R14 #028D - 0x6038000C, // 0287 GETGBL R14 G12 - 0x5C3C1A00, // 0288 MOVE R15 R13 - 0x7C380200, // 0289 CALL R14 1 - 0x543E001F, // 028A LDINT R15 32 - 0x24381C0F, // 028B GT R14 R14 R15 - 0x783A0009, // 028C JMPF R14 #0297 - 0xB83A3E00, // 028D GETNGBL R14 K31 - 0x8C381D24, // 028E GETMET R14 R14 K36 - 0x5840005C, // 028F LDCONST R16 K92 - 0x7C380400, // 0290 CALL R14 2 - 0xB83A0400, // 0291 GETNGBL R14 K2 - 0x88381D5D, // 0292 GETMBR R14 R14 K93 - 0x900E2E0E, // 0293 SETMBR R3 K23 R14 - 0x4C380000, // 0294 LDNIL R14 - 0xA0000000, // 0295 CLOSE R0 - 0x80041C00, // 0296 RET 1 R14 - 0x543A001E, // 0297 LDINT R14 31 - 0x403A0C0E, // 0298 CONNECT R14 K6 R14 - 0x9438140E, // 0299 GETIDX R14 R10 R14 - 0x543E001F, // 029A LDINT R15 32 - 0x403C1F3B, // 029B CONNECT R15 R15 K59 - 0x943C140F, // 029C GETIDX R15 R10 R15 - 0x88400115, // 029D GETMBR R16 R0 K21 - 0x8C40215E, // 029E GETMET R16 R16 K94 - 0x5C481200, // 029F MOVE R18 R9 - 0x5C4C1800, // 02A0 MOVE R19 R12 - 0x5C501600, // 02A1 MOVE R20 R11 - 0x5C541A00, // 02A2 MOVE R21 R13 - 0x5C581C00, // 02A3 MOVE R22 R14 - 0x5C5C1E00, // 02A4 MOVE R23 R15 - 0x8C60035F, // 02A5 GETMET R24 R1 K95 - 0x7C600200, // 02A6 CALL R24 1 - 0x7C401000, // 02A7 CALL R16 8 - 0x50400200, // 02A8 LDBOOL R16 1 0 + 0x8C401F0B, // 00C5 GETMET R16 R15 K11 + 0x58480008, // 00C6 LDCONST R18 K8 + 0x884C0D20, // 00C7 GETMBR R19 R6 K32 + 0x5C501C00, // 00C8 MOVE R20 R14 + 0x7C400800, // 00C9 CALL R16 4 + 0x900E0B08, // 00CA SETMBR R3 K5 K8 + 0x80041E00, // 00CB RET 1 R15 + 0x70020187, // 00CC JMP #0255 + 0x54260003, // 00CD LDINT R9 4 + 0x1C241009, // 00CE EQ R9 R8 R9 + 0x7826004D, // 00CF JMPF R9 #011E + 0x8C240507, // 00D0 GETMET R9 R2 K7 + 0x582C0006, // 00D1 LDCONST R11 K6 + 0x7C240400, // 00D2 CALL R9 2 + 0x6028000C, // 00D3 GETGBL R10 G12 + 0x5C2C1200, // 00D4 MOVE R11 R9 + 0x7C280200, // 00D5 CALL R10 1 + 0x542E001F, // 00D6 LDINT R11 32 + 0x2028140B, // 00D7 NE R10 R10 R11 + 0x782A0001, // 00D8 JMPF R10 #00DB + 0x4C280000, // 00D9 LDNIL R10 + 0x80041400, // 00DA RET 1 R10 + 0x8C280507, // 00DB GETMET R10 R2 K7 + 0x58300008, // 00DC LDCONST R12 K8 + 0x50340000, // 00DD LDBOOL R13 0 0 + 0x7C280600, // 00DE CALL R10 3 + 0xB82E4400, // 00DF GETNGBL R11 K34 + 0x8C2C1727, // 00E0 GETMET R11 R11 K39 + 0x8C340B2D, // 00E1 GETMET R13 R5 K45 + 0x583C002E, // 00E2 LDCONST R15 K46 + 0x60400008, // 00E3 GETGBL R16 G8 + 0x5C441200, // 00E4 MOVE R17 R9 + 0x7C400200, // 00E5 CALL R16 1 + 0x60440008, // 00E6 GETGBL R17 G8 + 0x5C481400, // 00E7 MOVE R18 R10 + 0x7C440200, // 00E8 CALL R17 1 + 0x7C340800, // 00E9 CALL R13 4 + 0x58380011, // 00EA LDCONST R14 K17 + 0x7C2C0600, // 00EB CALL R11 3 + 0x8C2C032F, // 00EC GETMET R11 R1 K47 + 0x7C2C0200, // 00ED CALL R11 1 + 0x8C300D0A, // 00EE GETMET R12 R6 K10 + 0x7C300200, // 00EF CALL R12 1 + 0x8C34190B, // 00F0 GETMET R13 R12 K11 + 0x583C0008, // 00F1 LDCONST R15 K8 + 0x88400D1C, // 00F2 GETMBR R16 R6 K28 + 0x5C441600, // 00F3 MOVE R17 R11 + 0x7C340800, // 00F4 CALL R13 4 + 0x8C34190B, // 00F5 GETMET R13 R12 K11 + 0x583C000F, // 00F6 LDCONST R15 K15 + 0x88400D20, // 00F7 GETMBR R16 R6 K32 + 0x5C441200, // 00F8 MOVE R17 R9 + 0x7C340800, // 00F9 CALL R13 4 + 0x8C341925, // 00FA GETMET R13 R12 K37 + 0x7C340200, // 00FB CALL R13 1 + 0x8C380326, // 00FC GETMET R14 R1 K38 + 0x7C380200, // 00FD CALL R14 1 + 0x00381A0E, // 00FE ADD R14 R13 R14 + 0xB83E4400, // 00FF GETNGBL R15 K34 + 0x8C3C1F27, // 0100 GETMET R15 R15 K39 + 0x8C441D29, // 0101 GETMET R17 R14 K41 + 0x7C440200, // 0102 CALL R17 1 + 0x00466011, // 0103 ADD R17 K48 R17 + 0x58480011, // 0104 LDCONST R18 K17 + 0x7C3C0600, // 0105 CALL R15 3 + 0x8C3C092A, // 0106 GETMET R15 R4 K42 + 0x7C3C0200, // 0107 CALL R15 1 + 0x8C3C1F2B, // 0108 GETMET R15 R15 K43 + 0xB8460400, // 0109 GETNGBL R17 K2 + 0x8C44232C, // 010A GETMET R17 R17 K44 + 0x7C440200, // 010B CALL R17 1 + 0x5C481C00, // 010C MOVE R18 R14 + 0x7C3C0600, // 010D CALL R15 3 + 0x8C400D0A, // 010E GETMET R16 R6 K10 + 0x7C400200, // 010F CALL R16 1 + 0x8C44210B, // 0110 GETMET R17 R16 K11 + 0x584C0006, // 0111 LDCONST R19 K6 + 0x88500D1C, // 0112 GETMBR R20 R6 K28 + 0x5C541A00, // 0113 MOVE R21 R13 + 0x7C440800, // 0114 CALL R17 4 + 0x8C44210B, // 0115 GETMET R17 R16 K11 + 0x584C0008, // 0116 LDCONST R19 K8 + 0x88500D20, // 0117 GETMBR R20 R6 K32 + 0x5C541E00, // 0118 MOVE R21 R15 + 0x7C440800, // 0119 CALL R17 4 + 0x54460004, // 011A LDINT R17 5 + 0x900E0A11, // 011B SETMBR R3 K5 R17 + 0x80042000, // 011C RET 1 R16 + 0x70020136, // 011D JMP #0255 + 0x5426000A, // 011E LDINT R9 11 + 0x1C241009, // 011F EQ R9 R8 R9 + 0x78260012, // 0120 JMPF R9 #0134 + 0x8C240507, // 0121 GETMET R9 R2 K7 + 0x582C0006, // 0122 LDCONST R11 K6 + 0x7C240400, // 0123 CALL R9 2 + 0x8C280331, // 0124 GETMET R10 R1 K49 + 0x5C301200, // 0125 MOVE R12 R9 + 0x7C280400, // 0126 CALL R10 2 + 0xB82A4400, // 0127 GETNGBL R10 K34 + 0x8C281527, // 0128 GETMET R10 R10 K39 + 0x8C301329, // 0129 GETMET R12 R9 K41 + 0x7C300200, // 012A CALL R12 1 + 0x0032640C, // 012B ADD R12 K50 R12 + 0x58340011, // 012C LDCONST R13 K17 + 0x7C280600, // 012D CALL R10 3 + 0xB82A0400, // 012E GETNGBL R10 K2 + 0x88281533, // 012F GETMBR R10 R10 K51 + 0x900E340A, // 0130 SETMBR R3 K26 R10 + 0x4C280000, // 0131 LDNIL R10 + 0x80041400, // 0132 RET 1 R10 + 0x70020120, // 0133 JMP #0255 + 0x54260005, // 0134 LDINT R9 6 + 0x1C241009, // 0135 EQ R9 R8 R9 + 0x782600B9, // 0136 JMPF R9 #01F1 + 0xB8264400, // 0137 GETNGBL R9 K34 + 0x8C241327, // 0138 GETMET R9 R9 K39 + 0x602C0008, // 0139 GETGBL R11 G8 + 0x5C300400, // 013A MOVE R12 R2 + 0x7C2C0200, // 013B CALL R11 1 + 0x002E680B, // 013C ADD R11 K52 R11 + 0x58300011, // 013D LDCONST R12 K17 + 0x7C240600, // 013E CALL R9 3 + 0x8C240507, // 013F GETMET R9 R2 K7 + 0x582C0006, // 0140 LDCONST R11 K6 + 0x7C240400, // 0141 CALL R9 2 + 0x8C280507, // 0142 GETMET R10 R2 K7 + 0x58300008, // 0143 LDCONST R12 K8 + 0x7C280400, // 0144 CALL R10 2 + 0x602C000C, // 0145 GETGBL R11 G12 + 0x5C301400, // 0146 MOVE R12 R10 + 0x7C2C0200, // 0147 CALL R11 1 + 0x1C2C1706, // 0148 EQ R11 R11 K6 + 0x782E0000, // 0149 JMPF R11 #014B + 0x4C280000, // 014A LDNIL R10 + 0x8C2C0507, // 014B GETMET R11 R2 K7 + 0x5834000F, // 014C LDCONST R13 K15 + 0x7C2C0400, // 014D CALL R11 2 + 0x8C300507, // 014E GETMET R12 R2 K7 + 0x58380011, // 014F LDCONST R14 K17 + 0x7C300400, // 0150 CALL R12 2 + 0x8C340507, // 0151 GETMET R13 R2 K7 + 0x543E0003, // 0152 LDINT R15 4 + 0x7C340400, // 0153 CALL R13 2 + 0x8C380335, // 0154 GETMET R14 R1 K53 + 0x7C380200, // 0155 CALL R14 1 + 0x4C3C0000, // 0156 LDNIL R15 + 0x1C381C0F, // 0157 EQ R14 R14 R15 + 0x783A0006, // 0158 JMPF R14 #0160 + 0xB83A4400, // 0159 GETNGBL R14 K34 + 0x8C381D27, // 015A GETMET R14 R14 K39 + 0x58400036, // 015B LDCONST R16 K54 + 0x5844000F, // 015C LDCONST R17 K15 + 0x7C380600, // 015D CALL R14 3 + 0x4C380000, // 015E LDNIL R14 + 0x80041C00, // 015F RET 1 R14 + 0x88380116, // 0160 GETMBR R14 R0 K22 + 0x88381D37, // 0161 GETMBR R14 R14 K55 + 0x8C381D38, // 0162 GETMET R14 R14 K56 + 0x7C380200, // 0163 CALL R14 1 + 0x8C3C1D39, // 0164 GETMET R15 R14 K57 + 0x8C440335, // 0165 GETMET R17 R1 K53 + 0x7C440200, // 0166 CALL R17 1 + 0x7C3C0400, // 0167 CALL R15 2 + 0x8C3C1D3A, // 0168 GETMET R15 R14 K58 + 0x5C441200, // 0169 MOVE R17 R9 + 0x5C481400, // 016A MOVE R18 R10 + 0x7C3C0600, // 016B CALL R15 3 + 0x8C3C1D3B, // 016C GETMET R15 R14 K59 + 0x5C441600, // 016D MOVE R17 R11 + 0x7C3C0400, // 016E CALL R15 2 + 0x8C3C1D3C, // 016F GETMET R15 R14 K60 + 0x5C441800, // 0170 MOVE R17 R12 + 0x5C481A00, // 0171 MOVE R18 R13 + 0x7C3C0600, // 0172 CALL R15 3 + 0x8C3C1D3D, // 0173 GETMET R15 R14 K61 + 0x8C44033E, // 0174 GETMET R17 R1 K62 + 0x7C440200, // 0175 CALL R17 1 + 0x7C3C0400, // 0176 CALL R15 2 + 0xB83E0400, // 0177 GETNGBL R15 K2 + 0x883C1F03, // 0178 GETMBR R15 R15 K3 + 0x8C3C1F3F, // 0179 GETMET R15 R15 K63 + 0x5C441200, // 017A MOVE R17 R9 + 0x7C3C0400, // 017B CALL R15 2 + 0x8C401F40, // 017C GETMET R16 R15 K64 + 0x544A0005, // 017D LDINT R18 6 + 0x7C400400, // 017E CALL R16 2 + 0x8C442107, // 017F GETMET R17 R16 K7 + 0x544E0014, // 0180 LDINT R19 21 + 0x7C440400, // 0181 CALL R17 2 + 0x8C482107, // 0182 GETMET R18 R16 K7 + 0x54520010, // 0183 LDINT R20 17 + 0x7C480400, // 0184 CALL R18 2 + 0x5C4C2200, // 0185 MOVE R19 R17 + 0x784E0001, // 0186 JMPF R19 #0189 + 0x5C4C2400, // 0187 MOVE R19 R18 + 0x744E0006, // 0188 JMPT R19 #0190 + 0xB84E4400, // 0189 GETNGBL R19 K34 + 0x8C4C2727, // 018A GETMET R19 R19 K39 + 0x58540041, // 018B LDCONST R21 K65 + 0x5858000F, // 018C LDCONST R22 K15 + 0x7C4C0600, // 018D CALL R19 3 + 0x504C0000, // 018E LDBOOL R19 0 0 + 0x80042600, // 018F RET 1 R19 + 0x604C0004, // 0190 GETGBL R19 G4 + 0x5C502200, // 0191 MOVE R20 R17 + 0x7C4C0200, // 0192 CALL R19 1 + 0x1C4C2742, // 0193 EQ R19 R19 K66 + 0x784E0007, // 0194 JMPF R19 #019D + 0xB84E8600, // 0195 GETNGBL R19 K67 + 0x8C4C2744, // 0196 GETMET R19 R19 K68 + 0x5C542200, // 0197 MOVE R21 R17 + 0x7C4C0400, // 0198 CALL R19 2 + 0x8C4C2745, // 0199 GETMET R19 R19 K69 + 0x7C4C0200, // 019A CALL R19 1 + 0x5C442600, // 019B MOVE R17 R19 + 0x70020002, // 019C JMP #01A0 + 0x8C4C2345, // 019D GETMET R19 R17 K69 + 0x7C4C0200, // 019E CALL R19 1 + 0x5C442600, // 019F MOVE R17 R19 + 0x604C0004, // 01A0 GETGBL R19 G4 + 0x5C502400, // 01A1 MOVE R20 R18 + 0x7C4C0200, // 01A2 CALL R19 1 + 0x1C4C2742, // 01A3 EQ R19 R19 K66 + 0x784E0007, // 01A4 JMPF R19 #01AD + 0xB84E8600, // 01A5 GETNGBL R19 K67 + 0x8C4C2744, // 01A6 GETMET R19 R19 K68 + 0x5C542400, // 01A7 MOVE R21 R18 + 0x7C4C0400, // 01A8 CALL R19 2 + 0x8C4C2745, // 01A9 GETMET R19 R19 K69 + 0x7C4C0200, // 01AA CALL R19 1 + 0x5C482600, // 01AB MOVE R18 R19 + 0x70020002, // 01AC JMP #01B0 + 0x8C4C2545, // 01AD GETMET R19 R18 K69 + 0x7C4C0200, // 01AE CALL R19 1 + 0x5C482600, // 01AF MOVE R18 R19 + 0x8C4C0346, // 01B0 GETMET R19 R1 K70 + 0x7C4C0200, // 01B1 CALL R19 1 + 0x40521147, // 01B2 CONNECT R20 K8 K71 + 0x944C2614, // 01B3 GETIDX R19 R19 R20 + 0x60540015, // 01B4 GETGBL R21 G21 + 0x7C540000, // 01B5 CALL R21 0 + 0x8C542B48, // 01B6 GETMET R21 R21 K72 + 0x585C0049, // 01B7 LDCONST R23 K73 + 0x7C540400, // 01B8 CALL R21 2 + 0x5C502A00, // 01B9 MOVE R20 R21 + 0x8C54094A, // 01BA GETMET R21 R4 K74 + 0x7C540200, // 01BB CALL R21 1 + 0x8C58234B, // 01BC GETMET R22 R17 K75 + 0x7C580200, // 01BD CALL R22 1 + 0x8C582D4C, // 01BE GETMET R22 R22 K76 + 0x7C580200, // 01BF CALL R22 1 + 0x8C5C2B4D, // 01C0 GETMET R23 R21 K77 + 0x5C642600, // 01C1 MOVE R25 R19 + 0x5C682C00, // 01C2 MOVE R26 R22 + 0x5C6C2800, // 01C3 MOVE R27 R20 + 0x54720007, // 01C4 LDINT R28 8 + 0x7C5C0A00, // 01C5 CALL R23 5 + 0x88600312, // 01C6 GETMBR R24 R1 K18 + 0x78620001, // 01C7 JMPF R24 #01CA + 0x88600312, // 01C8 GETMBR R24 R1 K18 + 0x70020001, // 01C9 JMP #01CC + 0x88600116, // 01CA GETMBR R24 R0 K22 + 0x8860314E, // 01CB GETMBR R24 R24 K78 + 0x8C641D4F, // 01CC GETMET R25 R14 K79 + 0x5C6C2200, // 01CD MOVE R27 R17 + 0x5C702400, // 01CE MOVE R28 R18 + 0x5C742E00, // 01CF MOVE R29 R23 + 0x5C783000, // 01D0 MOVE R30 R24 + 0x7C640A00, // 01D1 CALL R25 5 + 0x8C641D50, // 01D2 GETMET R25 R14 K80 + 0x7C640200, // 01D3 CALL R25 1 + 0x88640116, // 01D4 GETMBR R25 R0 K22 + 0x8C643351, // 01D5 GETMET R25 R25 K81 + 0x5C6C1C00, // 01D6 MOVE R27 R14 + 0x7C640400, // 01D7 CALL R25 2 + 0x8C640352, // 01D8 GETMET R25 R1 K82 + 0x7C640200, // 01D9 CALL R25 1 + 0x78660002, // 01DA JMPF R25 #01DE + 0x8C640353, // 01DB GETMET R25 R1 K83 + 0x546E003B, // 01DC LDINT R27 60 + 0x7C640400, // 01DD CALL R25 2 + 0x8C641D54, // 01DE GETMET R25 R14 K84 + 0x7C640200, // 01DF CALL R25 1 + 0x8C640D0A, // 01E0 GETMET R25 R6 K10 + 0x7C640200, // 01E1 CALL R25 1 + 0x8C68330B, // 01E2 GETMET R26 R25 K11 + 0x58700006, // 01E3 LDCONST R28 K6 + 0x88740D0C, // 01E4 GETMBR R29 R6 K12 + 0xB87A0400, // 01E5 GETNGBL R30 K2 + 0x88783D33, // 01E6 GETMBR R30 R30 K51 + 0x7C680800, // 01E7 CALL R26 4 + 0x8C68330B, // 01E8 GETMET R26 R25 K11 + 0x58700008, // 01E9 LDCONST R28 K8 + 0x88740D0C, // 01EA GETMBR R29 R6 K12 + 0x58780008, // 01EB LDCONST R30 K8 + 0x7C680800, // 01EC CALL R26 4 + 0x546A0007, // 01ED LDINT R26 8 + 0x900E0A1A, // 01EE SETMBR R3 K5 R26 + 0x80043200, // 01EF RET 1 R25 + 0x70020063, // 01F0 JMP #0255 + 0x54260008, // 01F1 LDINT R9 9 + 0x1C241009, // 01F2 EQ R9 R8 R9 + 0x7826001E, // 01F3 JMPF R9 #0213 + 0x8C240507, // 01F4 GETMET R9 R2 K7 + 0x582C0006, // 01F5 LDCONST R11 K6 + 0x7C240400, // 01F6 CALL R9 2 + 0x8C280355, // 01F7 GETMET R10 R1 K85 + 0x5C301200, // 01F8 MOVE R12 R9 + 0x7C280400, // 01F9 CALL R10 2 + 0xB82A4400, // 01FA GETNGBL R10 K34 + 0x8C281527, // 01FB GETMET R10 R10 K39 + 0x8C300B2D, // 01FC GETMET R12 R5 K45 + 0x58380056, // 01FD LDCONST R14 K86 + 0x883C0312, // 01FE GETMBR R15 R1 K18 + 0x8C3C1F57, // 01FF GETMET R15 R15 K87 + 0x7C3C0200, // 0200 CALL R15 1 + 0x8C3C1F4B, // 0201 GETMET R15 R15 K75 + 0x7C3C0200, // 0202 CALL R15 1 + 0x8C3C1F4C, // 0203 GETMET R15 R15 K76 + 0x7C3C0200, // 0204 CALL R15 1 + 0x8C3C1F29, // 0205 GETMET R15 R15 K41 + 0x7C3C0200, // 0206 CALL R15 1 + 0x60400008, // 0207 GETGBL R16 G8 + 0x5C441200, // 0208 MOVE R17 R9 + 0x7C400200, // 0209 CALL R16 1 + 0x7C300800, // 020A CALL R12 4 + 0x5834000F, // 020B LDCONST R13 K15 + 0x7C280600, // 020C CALL R10 3 + 0xB82A0400, // 020D GETNGBL R10 K2 + 0x88281533, // 020E GETMBR R10 R10 K51 + 0x900E340A, // 020F SETMBR R3 K26 R10 + 0x4C280000, // 0210 LDNIL R10 + 0x80041400, // 0211 RET 1 R10 + 0x70020041, // 0212 JMP #0255 + 0x54260009, // 0213 LDINT R9 10 + 0x1C241009, // 0214 EQ R9 R8 R9 + 0x7826003E, // 0215 JMPF R9 #0255 + 0x8C240507, // 0216 GETMET R9 R2 K7 + 0x582C0006, // 0217 LDCONST R11 K6 + 0x7C240400, // 0218 CALL R9 2 + 0x60280008, // 0219 GETGBL R10 G8 + 0x5C2C1200, // 021A MOVE R11 R9 + 0x7C280200, // 021B CALL R10 1 + 0x002AB00A, // 021C ADD R10 K88 R10 + 0x900E4E0A, // 021D SETMBR R3 K39 R10 + 0x60280010, // 021E GETGBL R10 G16 + 0x882C0116, // 021F GETMBR R11 R0 K22 + 0x882C1737, // 0220 GETMBR R11 R11 K55 + 0x8C2C1759, // 0221 GETMET R11 R11 K89 + 0x7C2C0200, // 0222 CALL R11 1 + 0x7C280200, // 0223 CALL R10 1 + 0xA802001D, // 0224 EXBLK 0 #0243 + 0x5C2C1400, // 0225 MOVE R11 R10 + 0x7C2C0000, // 0226 CALL R11 0 + 0x8C30175A, // 0227 GETMET R12 R11 K90 + 0x7C300200, // 0228 CALL R12 1 + 0x1C301809, // 0229 EQ R12 R12 R9 + 0x78320015, // 022A JMPF R12 #0241 + 0xB8324400, // 022B GETNGBL R12 K34 + 0x8C301927, // 022C GETMET R12 R12 K39 + 0x8C381757, // 022D GETMET R14 R11 K87 + 0x7C380200, // 022E CALL R14 1 + 0x8C381D4B, // 022F GETMET R14 R14 K75 + 0x7C380200, // 0230 CALL R14 1 + 0x8C381D4C, // 0231 GETMET R14 R14 K76 + 0x7C380200, // 0232 CALL R14 1 + 0x8C381D29, // 0233 GETMET R14 R14 K41 + 0x7C380200, // 0234 CALL R14 1 + 0x003AB60E, // 0235 ADD R14 K91 R14 + 0x583C000F, // 0236 LDCONST R15 K15 + 0x7C300600, // 0237 CALL R12 3 + 0xB8324400, // 0238 GETNGBL R12 K34 + 0x8C30195C, // 0239 GETMET R12 R12 K92 + 0x543A07CF, // 023A LDINT R14 2000 + 0x843C0000, // 023B CLOSURE R15 P0 + 0x7C300600, // 023C CALL R12 3 + 0x50300200, // 023D LDBOOL R12 1 0 + 0xA0000000, // 023E CLOSE R0 + 0xA8040001, // 023F EXBLK 1 1 + 0x80041800, // 0240 RET 1 R12 + 0xA0280000, // 0241 CLOSE R10 + 0x7001FFE1, // 0242 JMP #0225 + 0x5828005D, // 0243 LDCONST R10 K93 + 0xAC280200, // 0244 CATCH R10 1 0 + 0xB0080000, // 0245 RAISE 2 R0 R0 + 0xB82A4400, // 0246 GETNGBL R10 K34 + 0x8C281527, // 0247 GETMET R10 R10 K39 + 0x60300008, // 0248 GETGBL R12 G8 + 0x5C341200, // 0249 MOVE R13 R9 + 0x7C300200, // 024A CALL R12 1 + 0x0032BC0C, // 024B ADD R12 K94 R12 + 0x0030195F, // 024C ADD R12 R12 K95 + 0x5834000F, // 024D LDCONST R13 K15 + 0x7C280600, // 024E CALL R10 3 + 0xB82A0400, // 024F GETNGBL R10 K2 + 0x88281560, // 0250 GETMBR R10 R10 K96 + 0x900E340A, // 0251 SETMBR R3 K26 R10 + 0x4C280000, // 0252 LDNIL R10 + 0xA0000000, // 0253 CLOSE R0 + 0x80041400, // 0254 RET 1 R10 + 0x7002009A, // 0255 JMP #02F1 + 0x5426003B, // 0256 LDINT R9 60 + 0x1C240E09, // 0257 EQ R9 R7 R9 + 0x78260084, // 0258 JMPF R9 #02DE + 0x1C241106, // 0259 EQ R9 R8 K6 + 0x78260064, // 025A JMPF R9 #02C0 + 0x8C240507, // 025B GETMET R9 R2 K7 + 0x582C0006, // 025C LDCONST R11 K6 + 0x7C240400, // 025D CALL R9 2 + 0x8C280507, // 025E GETMET R10 R2 K7 + 0x58300008, // 025F LDCONST R12 K8 + 0x7C280400, // 0260 CALL R10 2 + 0x8C2C0507, // 0261 GETMET R11 R2 K7 + 0x5834000F, // 0262 LDCONST R13 K15 + 0x7C2C0400, // 0263 CALL R11 2 + 0x8C300507, // 0264 GETMET R12 R2 K7 + 0x58380011, // 0265 LDCONST R14 K17 + 0x7C300400, // 0266 CALL R12 2 + 0x8C340507, // 0267 GETMET R13 R2 K7 + 0x543E0003, // 0268 LDINT R15 4 + 0x7C340400, // 0269 CALL R13 2 + 0xB83A4400, // 026A GETNGBL R14 K34 + 0x8C381D27, // 026B GETMET R14 R14 K39 + 0x8C400B2D, // 026C GETMET R16 R5 K45 + 0x58480061, // 026D LDCONST R18 K97 + 0x5C4C1200, // 026E MOVE R19 R9 + 0x8C501529, // 026F GETMET R20 R10 K41 + 0x7C500200, // 0270 CALL R20 1 + 0x5C541600, // 0271 MOVE R21 R11 + 0x5C581800, // 0272 MOVE R22 R12 + 0x8C5C1B29, // 0273 GETMET R23 R13 K41 + 0x7C5C0200, // 0274 CALL R23 1 + 0x7C400E00, // 0275 CALL R16 7 + 0x5844000F, // 0276 LDCONST R17 K15 + 0x7C380600, // 0277 CALL R14 3 + 0x4C380000, // 0278 LDNIL R14 + 0x1C38120E, // 0279 EQ R14 R9 R14 + 0x743A000B, // 027A JMPT R14 #0287 + 0x4C380000, // 027B LDNIL R14 + 0x1C38140E, // 027C EQ R14 R10 R14 + 0x743A0008, // 027D JMPT R14 #0287 + 0x4C380000, // 027E LDNIL R14 + 0x1C38160E, // 027F EQ R14 R11 R14 + 0x743A0005, // 0280 JMPT R14 #0287 + 0x4C380000, // 0281 LDNIL R14 + 0x1C38180E, // 0282 EQ R14 R12 R14 + 0x743A0002, // 0283 JMPT R14 #0287 + 0x4C380000, // 0284 LDNIL R14 + 0x1C381A0E, // 0285 EQ R14 R13 R14 + 0x783A0005, // 0286 JMPF R14 #028D + 0xB83A0400, // 0287 GETNGBL R14 K2 + 0x88381D62, // 0288 GETMBR R14 R14 K98 + 0x900E340E, // 0289 SETMBR R3 K26 R14 + 0x4C380000, // 028A LDNIL R14 + 0xA0000000, // 028B CLOSE R0 + 0x80041C00, // 028C RET 1 R14 + 0x6038000C, // 028D GETGBL R14 G12 + 0x5C3C1400, // 028E MOVE R15 R10 + 0x7C380200, // 028F CALL R14 1 + 0x543E001F, // 0290 LDINT R15 32 + 0x54420040, // 0291 LDINT R16 65 + 0x003C1E10, // 0292 ADD R15 R15 R16 + 0x20381C0F, // 0293 NE R14 R14 R15 + 0x743A000B, // 0294 JMPT R14 #02A1 + 0x6038000C, // 0295 GETGBL R14 G12 + 0x5C3C1A00, // 0296 MOVE R15 R13 + 0x7C380200, // 0297 CALL R14 1 + 0x543E000F, // 0298 LDINT R15 16 + 0x14381C0F, // 0299 LT R14 R14 R15 + 0x743A0005, // 029A JMPT R14 #02A1 + 0x6038000C, // 029B GETGBL R14 G12 + 0x5C3C1A00, // 029C MOVE R15 R13 + 0x7C380200, // 029D CALL R14 1 + 0x543E001F, // 029E LDINT R15 32 + 0x24381C0F, // 029F GT R14 R14 R15 + 0x783A0009, // 02A0 JMPF R14 #02AB + 0xB83A4400, // 02A1 GETNGBL R14 K34 + 0x8C381D27, // 02A2 GETMET R14 R14 K39 + 0x58400063, // 02A3 LDCONST R16 K99 + 0x7C380400, // 02A4 CALL R14 2 + 0xB83A0400, // 02A5 GETNGBL R14 K2 + 0x88381D64, // 02A6 GETMBR R14 R14 K100 + 0x900E340E, // 02A7 SETMBR R3 K26 R14 + 0x4C380000, // 02A8 LDNIL R14 0xA0000000, // 02A9 CLOSE R0 - 0x80042000, // 02AA RET 1 R16 - 0x7002001C, // 02AB JMP #02C9 - 0x1C241108, // 02AC EQ R9 R8 K8 - 0x78260012, // 02AD JMPF R9 #02C1 - 0x8C240507, // 02AE GETMET R9 R2 K7 - 0x582C0006, // 02AF LDCONST R11 K6 - 0x7C240400, // 02B0 CALL R9 2 - 0xB82A3E00, // 02B1 GETNGBL R10 K31 - 0x8C281524, // 02B2 GETMET R10 R10 K36 - 0x60300008, // 02B3 GETGBL R12 G8 - 0x5C341200, // 02B4 MOVE R13 R9 - 0x7C300200, // 02B5 CALL R12 1 - 0x0032C00C, // 02B6 ADD R12 K96 R12 - 0x5834000F, // 02B7 LDCONST R13 K15 - 0x7C280600, // 02B8 CALL R10 3 - 0x88280115, // 02B9 GETMBR R10 R0 K21 - 0x8C281561, // 02BA GETMET R10 R10 K97 - 0x5C301200, // 02BB MOVE R12 R9 - 0x7C280400, // 02BC CALL R10 2 - 0x50280200, // 02BD LDBOOL R10 1 0 - 0xA0000000, // 02BE CLOSE R0 - 0x80041400, // 02BF RET 1 R10 - 0x70020007, // 02C0 JMP #02C9 - 0x1C24110F, // 02C1 EQ R9 R8 K15 - 0x78260005, // 02C2 JMPF R9 #02C9 - 0x88240115, // 02C3 GETMBR R9 R0 K21 - 0x8C241362, // 02C4 GETMET R9 R9 K98 - 0x7C240200, // 02C5 CALL R9 1 - 0x50240200, // 02C6 LDBOOL R9 1 0 - 0xA0000000, // 02C7 CLOSE R0 - 0x80041200, // 02C8 RET 1 R9 - 0x70020012, // 02C9 JMP #02DD - 0x54260029, // 02CA LDINT R9 42 - 0x1C240E09, // 02CB EQ R9 R7 R9 - 0x78260005, // 02CC JMPF R9 #02D3 - 0x1C241106, // 02CD EQ R9 R8 K6 - 0x78260002, // 02CE JMPF R9 #02D2 - 0x50240200, // 02CF LDBOOL R9 1 0 - 0xA0000000, // 02D0 CLOSE R0 - 0x80041200, // 02D1 RET 1 R9 - 0x70020009, // 02D2 JMP #02DD - 0x60240003, // 02D3 GETGBL R9 G3 - 0x5C280000, // 02D4 MOVE R10 R0 - 0x7C240200, // 02D5 CALL R9 1 - 0x8C241363, // 02D6 GETMET R9 R9 K99 - 0x5C2C0200, // 02D7 MOVE R11 R1 - 0x5C300400, // 02D8 MOVE R12 R2 - 0x5C340600, // 02D9 MOVE R13 R3 - 0x7C240800, // 02DA CALL R9 4 + 0x80041C00, // 02AA RET 1 R14 + 0x543A001E, // 02AB LDINT R14 31 + 0x403A0C0E, // 02AC CONNECT R14 K6 R14 + 0x9438140E, // 02AD GETIDX R14 R10 R14 + 0x543E001F, // 02AE LDINT R15 32 + 0x403C1F47, // 02AF CONNECT R15 R15 K71 + 0x943C140F, // 02B0 GETIDX R15 R10 R15 + 0x88400116, // 02B1 GETMBR R16 R0 K22 + 0x8C402165, // 02B2 GETMET R16 R16 K101 + 0x5C481200, // 02B3 MOVE R18 R9 + 0x5C4C1800, // 02B4 MOVE R19 R12 + 0x5C501600, // 02B5 MOVE R20 R11 + 0x5C541A00, // 02B6 MOVE R21 R13 + 0x5C581C00, // 02B7 MOVE R22 R14 + 0x5C5C1E00, // 02B8 MOVE R23 R15 + 0x8C600366, // 02B9 GETMET R24 R1 K102 + 0x7C600200, // 02BA CALL R24 1 + 0x7C401000, // 02BB CALL R16 8 + 0x50400200, // 02BC LDBOOL R16 1 0 + 0xA0000000, // 02BD CLOSE R0 + 0x80042000, // 02BE RET 1 R16 + 0x7002001C, // 02BF JMP #02DD + 0x1C241108, // 02C0 EQ R9 R8 K8 + 0x78260012, // 02C1 JMPF R9 #02D5 + 0x8C240507, // 02C2 GETMET R9 R2 K7 + 0x582C0006, // 02C3 LDCONST R11 K6 + 0x7C240400, // 02C4 CALL R9 2 + 0xB82A4400, // 02C5 GETNGBL R10 K34 + 0x8C281527, // 02C6 GETMET R10 R10 K39 + 0x60300008, // 02C7 GETGBL R12 G8 + 0x5C341200, // 02C8 MOVE R13 R9 + 0x7C300200, // 02C9 CALL R12 1 + 0x0032CE0C, // 02CA ADD R12 K103 R12 + 0x5834000F, // 02CB LDCONST R13 K15 + 0x7C280600, // 02CC CALL R10 3 + 0x88280116, // 02CD GETMBR R10 R0 K22 + 0x8C281568, // 02CE GETMET R10 R10 K104 + 0x5C301200, // 02CF MOVE R12 R9 + 0x7C280400, // 02D0 CALL R10 2 + 0x50280200, // 02D1 LDBOOL R10 1 0 + 0xA0000000, // 02D2 CLOSE R0 + 0x80041400, // 02D3 RET 1 R10 + 0x70020007, // 02D4 JMP #02DD + 0x1C24110F, // 02D5 EQ R9 R8 K15 + 0x78260005, // 02D6 JMPF R9 #02DD + 0x88240116, // 02D7 GETMBR R9 R0 K22 + 0x8C241369, // 02D8 GETMET R9 R9 K105 + 0x7C240200, // 02D9 CALL R9 1 + 0x50240200, // 02DA LDBOOL R9 1 0 0xA0000000, // 02DB CLOSE R0 0x80041200, // 02DC RET 1 R9 - 0xA0000000, // 02DD CLOSE R0 - 0x80000000, // 02DE RET 0 + 0x70020012, // 02DD JMP #02F1 + 0x54260029, // 02DE LDINT R9 42 + 0x1C240E09, // 02DF EQ R9 R7 R9 + 0x78260005, // 02E0 JMPF R9 #02E7 + 0x1C241106, // 02E1 EQ R9 R8 K6 + 0x78260002, // 02E2 JMPF R9 #02E6 + 0x50240200, // 02E3 LDBOOL R9 1 0 + 0xA0000000, // 02E4 CLOSE R0 + 0x80041200, // 02E5 RET 1 R9 + 0x70020009, // 02E6 JMP #02F1 + 0x60240003, // 02E7 GETGBL R9 G3 + 0x5C280000, // 02E8 MOVE R10 R0 + 0x7C240200, // 02E9 CALL R9 1 + 0x8C24136A, // 02EA GETMET R9 R9 K106 + 0x5C2C0200, // 02EB MOVE R11 R1 + 0x5C300400, // 02EC MOVE R12 R2 + 0x5C340600, // 02ED MOVE R13 R3 + 0x7C240800, // 02EE CALL R9 4 + 0xA0000000, // 02EF CLOSE R0 + 0x80041200, // 02F0 RET 1 R9 + 0xA0000000, // 02F1 CLOSE R0 + 0x80000000, // 02F2 RET 0 }) ) ); 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 d35617f1e..91b961a2c 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h @@ -7,9 +7,350 @@ extern const bclass be_class_Matter_Session; /******************************************************************** -** Solidified function: get_i2r +** Solidified function: before_remove ********************************************************************/ -be_local_closure(Matter_Session_get_i2r, /* name */ +be_local_closure(Matter_Session_before_remove, /* 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[ 7]) { /* 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_X20_X2DSession_X20_X20_X20_X28_X256i_X29_X20_X28removed_X29), + /* K5 */ be_nested_str_weak(local_session_id), + /* K6 */ be_const_int(3), + }), + be_str_weak(before_remove), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x8C100303, // 0003 GETMET R4 R1 K3 + 0x58180004, // 0004 LDCONST R6 K4 + 0x881C0105, // 0005 GETMBR R7 R0 K5 + 0x7C100600, // 0006 CALL R4 3 + 0x58140006, // 0007 LDCONST R5 K6 + 0x7C080600, // 0008 CALL R2 3 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_pk +********************************************************************/ +be_local_closure(Matter_Session_get_pk, /* 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(_fabric), + /* K1 */ be_nested_str_weak(get_pk), + /* K2 */ be_nested_str_weak(_temp_pk), + /* K3 */ be_nested_str_weak(crypto), + /* K4 */ be_nested_str_weak(random), + }), + be_str_weak(get_pk), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060004, // 0001 JMPF R1 #0007 + 0x88040100, // 0002 GETMBR R1 R0 K0 + 0x8C040301, // 0003 GETMET R1 R1 K1 + 0x7C040200, // 0004 CALL R1 1 + 0x80040200, // 0005 RET 1 R1 + 0x70020008, // 0006 JMP #0010 + 0x88040102, // 0007 GETMBR R1 R0 K2 + 0x74060004, // 0008 JMPT R1 #000E + 0xA4060600, // 0009 IMPORT R1 K3 + 0x8C080304, // 000A GETMET R2 R1 K4 + 0x5412001F, // 000B LDINT R4 32 + 0x7C080400, // 000C CALL R2 2 + 0x90020402, // 000D SETMBR R0 K2 R2 + 0x88040102, // 000E GETMBR R1 R0 K2 + 0x80040200, // 000F RET 1 R1 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_mode_CASE +********************************************************************/ +be_local_closure(Matter_Session_set_mode_CASE, /* 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(set_mode), + /* K1 */ be_nested_str_weak(_CASE), + }), + be_str_weak(set_mode_CASE), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x880C0101, // 0001 GETMBR R3 R0 K1 + 0x7C040400, // 0002 CALL R1 2 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_noc +********************************************************************/ +be_local_closure(Matter_Session_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[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(noc), + }), + be_str_weak(get_noc), + &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_temp_ca_pub +********************************************************************/ +be_local_closure(Matter_Session_get_temp_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(_temp_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_temp_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_fabric_compressed +********************************************************************/ +be_local_closure(Matter_Session_get_fabric_compressed, /* 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_compressed), + }), + be_str_weak(get_fabric_compressed), + &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_fabric_label +********************************************************************/ +be_local_closure(Matter_Session_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[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(fabric_label), + }), + be_str_weak(get_fabric_label), + &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_keys +********************************************************************/ +be_local_closure(Matter_Session_set_keys, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* 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(i2rkey), + /* K1 */ be_nested_str_weak(_i2r_privacy), + /* K2 */ be_nested_str_weak(r2ikey), + /* K3 */ be_nested_str_weak(attestation_challenge), + /* K4 */ be_nested_str_weak(created), + }), + be_str_weak(set_keys), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x4C140000, // 0001 LDNIL R5 + 0x90020205, // 0002 SETMBR R0 K1 R5 + 0x90020402, // 0003 SETMBR R0 K2 R2 + 0x90020603, // 0004 SETMBR R0 K3 R3 + 0x90020804, // 0005 SETMBR R0 K4 R4 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_mode_PASE +********************************************************************/ +be_local_closure(Matter_Session_set_mode_PASE, /* 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(set_mode), + /* K1 */ be_nested_str_weak(_PASE), + }), + be_str_weak(set_mode_PASE), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x880C0101, // 0001 GETMBR R3 R0 K1 + 0x7C040400, // 0002 CALL R1 2 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_CASE +********************************************************************/ +be_local_closure(Matter_Session_is_CASE, /* 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(_CASE), + }), + be_str_weak(is_CASE), + &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_mode +********************************************************************/ +be_local_closure(Matter_Session_get_mode, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -20,9 +361,36 @@ be_local_closure(Matter_Session_get_i2r, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(i2rkey), + /* K0 */ be_nested_str_weak(mode), }), - be_str_weak(get_i2r), + be_str_weak(get_mode), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_r2i +********************************************************************/ +be_local_closure(Matter_Session_get_r2i, /* 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(r2ikey), + }), + be_str_weak(get_r2i), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 @@ -178,170 +546,9 @@ be_local_closure(Matter_Session_tojson, /* name */ /******************************************************************** -** Solidified function: assign_fabric_index +** Solidified function: get_i2r ********************************************************************/ -be_local_closure(Matter_Session_assign_fabric_index, /* 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(_fabric), - /* K1 */ be_nested_str_weak(get_fabric_index), - /* K2 */ be_nested_str_weak(set_fabric_index), - /* K3 */ be_nested_str_weak(_store), - /* K4 */ be_nested_str_weak(next_fabric_idx), - }), - be_str_weak(assign_fabric_index), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x4C080000, // 0003 LDNIL R2 - 0x1C040202, // 0004 EQ R1 R1 R2 - 0x78060005, // 0005 JMPF R1 #000C - 0x88040100, // 0006 GETMBR R1 R0 K0 - 0x8C040302, // 0007 GETMET R1 R1 K2 - 0x880C0103, // 0008 GETMBR R3 R0 K3 - 0x8C0C0704, // 0009 GETMET R3 R3 K4 - 0x7C0C0200, // 000A CALL R3 1 - 0x7C040400, // 000B CALL R1 2 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 -********************************************************************/ -be_local_closure(Matter_Session_set_mode_PASE, /* 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(set_mode), - /* K1 */ be_nested_str_weak(_PASE), - }), - be_str_weak(set_mode_PASE), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x7C040400, // 0002 CALL R1 2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_fabric_label -********************************************************************/ -be_local_closure(Matter_Session_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[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(fabric_label), - }), - be_str_weak(get_fabric_label), - &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_device_id -********************************************************************/ -be_local_closure(Matter_Session_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[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(device_id), - }), - be_str_weak(get_device_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_r2i -********************************************************************/ -be_local_closure(Matter_Session_get_r2i, /* name */ +be_local_closure(Matter_Session_get_i2r, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -352,9 +559,9 @@ be_local_closure(Matter_Session_get_r2i, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(r2ikey), + /* K0 */ be_nested_str_weak(i2rkey), }), - be_str_weak(get_r2i), + be_str_weak(get_i2r), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 @@ -365,6 +572,427 @@ be_local_closure(Matter_Session_get_r2i, /* name */ /*******************************************************************/ +/******************************************************************** +** 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: gen_CSR +********************************************************************/ +be_local_closure(Matter_Session_gen_CSR, /* 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[12]) { /* constants */ + /* K0 */ be_nested_str_weak(get_pk), + /* K1 */ be_nested_str_weak(crypto), + /* K2 */ be_nested_str_weak(EC_P256), + /* K3 */ be_nested_str_weak(public_key), + /* K4 */ be_nested_str_weak(3070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D030107034200), + /* K5 */ be_nested_str_weak(A000), + /* K6 */ be_nested_str_weak(300C06082A8648CE3D0403020500), + /* K7 */ be_nested_str_weak(ecdsa_sign_sha256_asn1), + /* K8 */ be_nested_str_weak(add), + /* K9 */ be_const_int(3), + /* K10 */ be_const_int(1), + /* K11 */ be_const_int(0), + }), + be_str_weak(gen_CSR), + &be_const_str_solidified, + ( &(const binstruction[73]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0xA40A0200, // 0002 IMPORT R2 K1 + 0x8C0C0502, // 0003 GETMET R3 R2 K2 + 0x7C0C0200, // 0004 CALL R3 1 + 0x8C100703, // 0005 GETMET R4 R3 K3 + 0x5C180200, // 0006 MOVE R6 R1 + 0x7C100400, // 0007 CALL R4 2 + 0x60140015, // 0008 GETGBL R5 G21 + 0x58180004, // 0009 LDCONST R6 K4 + 0x7C140200, // 000A CALL R5 1 + 0x40180A04, // 000B CONNECT R6 R5 R4 + 0x60180015, // 000C GETGBL R6 G21 + 0x581C0005, // 000D LDCONST R7 K5 + 0x7C180200, // 000E CALL R6 1 + 0x40180A06, // 000F CONNECT R6 R5 R6 + 0x60180015, // 0010 GETGBL R6 G21 + 0x581C0006, // 0011 LDCONST R7 K6 + 0x7C180200, // 0012 CALL R6 1 + 0x8C1C0707, // 0013 GETMET R7 R3 K7 + 0x5C240200, // 0014 MOVE R9 R1 + 0x5C280A00, // 0015 MOVE R10 R5 + 0x7C1C0600, // 0016 CALL R7 3 + 0x60200015, // 0017 GETGBL R8 G21 + 0x5426007F, // 0018 LDINT R9 128 + 0x7C200200, // 0019 CALL R8 1 + 0x8C241108, // 001A GETMET R9 R8 K8 + 0x582C0009, // 001B LDCONST R11 K9 + 0x5830000A, // 001C LDCONST R12 K10 + 0x7C240600, // 001D CALL R9 3 + 0x8C241108, // 001E GETMET R9 R8 K8 + 0x602C000C, // 001F GETGBL R11 G12 + 0x5C300E00, // 0020 MOVE R12 R7 + 0x7C2C0200, // 0021 CALL R11 1 + 0x002C170A, // 0022 ADD R11 R11 K10 + 0x5830000A, // 0023 LDCONST R12 K10 + 0x7C240600, // 0024 CALL R9 3 + 0x8C241108, // 0025 GETMET R9 R8 K8 + 0x582C000B, // 0026 LDCONST R11 K11 + 0x5830000A, // 0027 LDCONST R12 K10 + 0x7C240600, // 0028 CALL R9 3 + 0x40241007, // 0029 CONNECT R9 R8 R7 + 0x6024000C, // 002A GETGBL R9 G12 + 0x5C280A00, // 002B MOVE R10 R5 + 0x7C240200, // 002C CALL R9 1 + 0x6028000C, // 002D GETGBL R10 G12 + 0x5C2C0C00, // 002E MOVE R11 R6 + 0x7C280200, // 002F CALL R10 1 + 0x0024120A, // 0030 ADD R9 R9 R10 + 0x6028000C, // 0031 GETGBL R10 G12 + 0x5C2C1000, // 0032 MOVE R11 R8 + 0x7C280200, // 0033 CALL R10 1 + 0x0024120A, // 0034 ADD R9 R9 R10 + 0x60280015, // 0035 GETGBL R10 G21 + 0x542E00CF, // 0036 LDINT R11 208 + 0x7C280200, // 0037 CALL R10 1 + 0x8C2C1508, // 0038 GETMET R11 R10 K8 + 0x5436002F, // 0039 LDINT R13 48 + 0x5838000A, // 003A LDCONST R14 K10 + 0x7C2C0600, // 003B CALL R11 3 + 0x8C2C1508, // 003C GETMET R11 R10 K8 + 0x54360080, // 003D LDINT R13 129 + 0x5838000A, // 003E LDCONST R14 K10 + 0x7C2C0600, // 003F CALL R11 3 + 0x8C2C1508, // 0040 GETMET R11 R10 K8 + 0x543600FE, // 0041 LDINT R13 255 + 0x2C34120D, // 0042 AND R13 R9 R13 + 0x5838000A, // 0043 LDCONST R14 K10 + 0x7C2C0600, // 0044 CALL R11 3 + 0x402C1405, // 0045 CONNECT R11 R10 R5 + 0x402C1406, // 0046 CONNECT R11 R10 R6 + 0x402C1408, // 0047 CONNECT R11 R10 R8 + 0x80041400, // 0048 RET 1 R10 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_temp_ca +********************************************************************/ +be_local_closure(Matter_Session_get_temp_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[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(_temp_root_ca_certificate), + }), + be_str_weak(get_temp_ca), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 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[23]) { /* 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_impl), + /* K5 */ be_nested_str_weak(reset), + /* K6 */ be_nested_str_weak(_counter_snd_impl), + /* K7 */ be_nested_str_weak(counter_rcv), + /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(counter_snd), + /* K10 */ be_nested_str_weak(next), + /* K11 */ be_nested_str_weak(i2rkey), + /* K12 */ be_nested_str_weak(_i2r_privacy), + /* K13 */ be_nested_str_weak(r2ikey), + /* K14 */ be_nested_str_weak(attestation_challenge), + /* K15 */ be_nested_str_weak(introspect), + /* K16 */ be_nested_str_weak(members), + /* K17 */ be_nested_str_weak(get), + /* K18 */ be_nested_str_weak(function), + /* K19 */ be_nested_str_weak(instance), + /* K20 */ be_nested_str_weak(_), + /* K21 */ be_const_int(1), + /* K22 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(close), + &be_const_str_solidified, + ( &(const binstruction[59]) { /* 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 + 0x90020F08, // 000A SETMBR R0 K7 K8 + 0x88040106, // 000B GETMBR R1 R0 K6 + 0x8C04030A, // 000C GETMET R1 R1 K10 + 0x7C040200, // 000D CALL R1 1 + 0x90021201, // 000E SETMBR R0 K9 R1 + 0x4C040000, // 000F LDNIL R1 + 0x90021601, // 0010 SETMBR R0 K11 R1 + 0x4C040000, // 0011 LDNIL R1 + 0x90021801, // 0012 SETMBR R0 K12 R1 + 0x4C040000, // 0013 LDNIL R1 + 0x90021A01, // 0014 SETMBR R0 K13 R1 + 0x4C040000, // 0015 LDNIL R1 + 0x90021C01, // 0016 SETMBR R0 K14 R1 + 0xA4061E00, // 0017 IMPORT R1 K15 + 0x60080010, // 0018 GETGBL R2 G16 + 0x8C0C0310, // 0019 GETMET R3 R1 K16 + 0x5C140000, // 001A MOVE R5 R0 + 0x7C0C0400, // 001B CALL R3 2 + 0x7C080200, // 001C CALL R2 1 + 0xA8020018, // 001D EXBLK 0 #0037 + 0x5C0C0400, // 001E MOVE R3 R2 + 0x7C0C0000, // 001F CALL R3 0 + 0x8C100311, // 0020 GETMET R4 R1 K17 + 0x5C180000, // 0021 MOVE R6 R0 + 0x5C1C0600, // 0022 MOVE R7 R3 + 0x7C100600, // 0023 CALL R4 3 + 0x60140004, // 0024 GETGBL R5 G4 + 0x5C180800, // 0025 MOVE R6 R4 + 0x7C140200, // 0026 CALL R5 1 + 0x20140B12, // 0027 NE R5 R5 K18 + 0x7816000C, // 0028 JMPF R5 #0036 + 0x60140004, // 0029 GETGBL R5 G4 + 0x5C180800, // 002A MOVE R6 R4 + 0x7C140200, // 002B CALL R5 1 + 0x20140B13, // 002C NE R5 R5 K19 + 0x78160007, // 002D JMPF R5 #0036 + 0x94140708, // 002E GETIDX R5 R3 K8 + 0x1C140B14, // 002F EQ R5 R5 K20 + 0x78160004, // 0030 JMPF R5 #0036 + 0x94140715, // 0031 GETIDX R5 R3 K21 + 0x1C140B14, // 0032 EQ R5 R5 K20 + 0x78160001, // 0033 JMPF R5 #0036 + 0x4C140000, // 0034 LDNIL R5 + 0x90000605, // 0035 SETMBR R0 R3 R5 + 0x7001FFE6, // 0036 JMP #001E + 0x58080016, // 0037 LDCONST R2 K22 + 0xAC080200, // 0038 CATCH R2 1 0 + 0xB0080000, // 0039 RAISE 2 R0 R0 + 0x80000000, // 003A 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: get_admin_vendor +********************************************************************/ +be_local_closure(Matter_Session_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[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(admin_vendor), + }), + be_str_weak(get_admin_vendor), + &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_fabric +********************************************************************/ +be_local_closure(Matter_Session_get_fabric, /* 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), + }), + be_str_weak(get_fabric), + &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_Session_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[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(admin_subject), + }), + be_str_weak(get_admin_subject), + &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_ipk_group_key +********************************************************************/ +be_local_closure(Matter_Session_get_ipk_group_key, /* 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(_fabric), + /* K1 */ be_nested_str_weak(get_ipk_group_key), + }), + be_str_weak(get_ipk_group_key), + &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 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: init ********************************************************************/ @@ -378,7 +1006,7 @@ be_local_closure(Matter_Session_init, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[24]) { /* constants */ + ( &(const bvalue[23]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(_store), /* K2 */ be_nested_str_weak(mode), @@ -401,12 +1029,11 @@ be_local_closure(Matter_Session_init, /* name */ /* K19 */ be_const_int(2), /* K20 */ be_nested_str_weak(get), /* K21 */ be_nested_str_weak(_fabric), - /* K22 */ be_nested_str_weak(create_fabric), - /* K23 */ be_nested_str_weak(update), + /* K22 */ be_nested_str_weak(update), }), be_str_weak(init), &be_const_str_solidified, - ( &(const binstruction[47]) { /* code */ + ( &(const binstruction[41]) { /* code */ 0xA4160000, // 0000 IMPORT R5 K0 0x90020201, // 0001 SETMBR R0 K1 R1 0x90020503, // 0002 SETMBR R0 K2 K3 @@ -444,16 +1071,10 @@ be_local_closure(Matter_Session_init, /* name */ 0x58240013, // 0022 LDCONST R9 K19 0x7C180600, // 0023 CALL R6 3 0x90022206, // 0024 SETMBR R0 K17 R6 - 0x78120001, // 0025 JMPF R4 #0028 - 0x5C180800, // 0026 MOVE R6 R4 - 0x70020002, // 0027 JMP #002B - 0x88180101, // 0028 GETMBR R6 R0 K1 - 0x8C180D16, // 0029 GETMET R6 R6 K22 - 0x7C180200, // 002A CALL R6 1 - 0x90022A06, // 002B SETMBR R0 K21 R6 - 0x8C180117, // 002C GETMET R6 R0 K23 - 0x7C180200, // 002D CALL R6 1 - 0x80000000, // 002E RET 0 + 0x90022A04, // 0025 SETMBR R0 K21 R4 + 0x8C180116, // 0026 GETMET R6 R0 K22 + 0x7C180200, // 0027 CALL R6 1 + 0x80000000, // 0028 RET 0 }) ) ); @@ -461,9 +1082,9 @@ be_local_closure(Matter_Session_init, /* name */ /******************************************************************** -** Solidified function: get_mode +** Solidified function: get_device_id ********************************************************************/ -be_local_closure(Matter_Session_get_mode, /* name */ +be_local_closure(Matter_Session_get_device_id, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -473,14 +1094,98 @@ be_local_closure(Matter_Session_get_mode, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(mode), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_fabric), + /* K1 */ be_nested_str_weak(device_id), }), - be_str_weak(get_mode), + be_str_weak(get_device_id), &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ + ( &(const binstruction[ 3]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 + 0x88040301, // 0001 GETMBR R1 R1 K1 + 0x80040200, // 0002 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_fabric_label +********************************************************************/ +be_local_closure(Matter_Session_set_fabric_label, /* name */ + be_nested_proto( + 4, /* 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(string), + /* K1 */ be_nested_str_weak(_fabric), + /* K2 */ be_nested_str_weak(fabric_label), + }), + be_str_weak(set_fabric_label), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x60080004, // 0000 GETGBL R2 G4 + 0x5C0C0200, // 0001 MOVE R3 R1 + 0x7C080200, // 0002 CALL R2 1 + 0x1C080500, // 0003 EQ R2 R2 K0 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x88080101, // 0005 GETMBR R2 R0 K1 + 0x900A0401, // 0006 SETMBR R2 K2 R1 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: hydrate_post +********************************************************************/ +be_local_closure(Matter_Session_hydrate_post, /* 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(_counter_snd_impl), + /* K1 */ be_nested_str_weak(reset), + /* K2 */ be_nested_str_weak(counter_snd), + /* K3 */ be_nested_str_weak(_counter_rcv_impl), + /* K4 */ be_nested_str_weak(counter_rcv), + /* K5 */ be_nested_str_weak(val), + }), + be_str_weak(hydrate_post), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x7C040400, // 0003 CALL R1 2 + 0x88040103, // 0004 GETMBR R1 R0 K3 + 0x8C040301, // 0005 GETMET R1 R1 K1 + 0x880C0104, // 0006 GETMBR R3 R0 K4 + 0x7C040400, // 0007 CALL R1 2 + 0x88040100, // 0008 GETMBR R1 R0 K0 + 0x8C040305, // 0009 GETMET R1 R1 K5 + 0x7C040200, // 000A CALL R1 1 + 0x90020401, // 000B SETMBR R0 K2 R1 + 0x88040103, // 000C GETMBR R1 R0 K3 + 0x8C040305, // 000D GETMET R1 R1 K5 + 0x7C040200, // 000E CALL R1 1 + 0x90020801, // 000F SETMBR R0 K4 R1 + 0x80000000, // 0010 RET 0 }) ) ); @@ -603,65 +1308,6 @@ be_local_closure(Matter_Session_fromjson, /* name */ /*******************************************************************/ -/******************************************************************** -** 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_subject -********************************************************************/ -be_local_closure(Matter_Session_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[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(admin_subject), - }), - be_str_weak(get_admin_subject), - &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: save ********************************************************************/ @@ -693,9 +1339,9 @@ be_local_closure(Matter_Session_save, /* name */ /******************************************************************** -** Solidified function: get_ipk_epoch_key +** Solidified function: get_fabric_id ********************************************************************/ -be_local_closure(Matter_Session_get_ipk_epoch_key, /* name */ +be_local_closure(Matter_Session_get_fabric_id, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -707,9 +1353,9 @@ be_local_closure(Matter_Session_get_ipk_epoch_key, /* name */ 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(ipk_epoch_key), + /* K1 */ be_nested_str_weak(fabric_id), }), - be_str_weak(get_ipk_epoch_key), + be_str_weak(get_fabric_id), &be_const_str_solidified, ( &(const binstruction[ 3]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 @@ -722,29 +1368,26 @@ be_local_closure(Matter_Session_get_ipk_epoch_key, /* name */ /******************************************************************** -** Solidified function: is_CASE +** Solidified function: set_mode ********************************************************************/ -be_local_closure(Matter_Session_is_CASE, /* name */ +be_local_closure(Matter_Session_set_mode, /* name */ be_nested_proto( - 3, /* nstack */ - 1, /* argc */ + 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[ 2]) { /* constants */ + ( &(const bvalue[ 1]) { /* constants */ /* K0 */ be_nested_str_weak(mode), - /* K1 */ be_nested_str_weak(_CASE), }), - be_str_weak(is_CASE), + be_str_weak(set_mode), &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 + ( &(const binstruction[ 2]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x80000000, // 0001 RET 0 }) ) ); @@ -752,39 +1395,26 @@ be_local_closure(Matter_Session_is_CASE, /* name */ /******************************************************************** -** Solidified function: fabric_candidate +** Solidified function: set_temp_ca ********************************************************************/ -be_local_closure(Matter_Session_fabric_candidate, /* name */ +be_local_closure(Matter_Session_set_temp_ca, /* name */ be_nested_proto( - 4, /* nstack */ - 1, /* argc */ + 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[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(set_expire_in_seconds), - /* K2 */ be_nested_str_weak(assign_fabric_index), - /* K3 */ be_nested_str_weak(_store), - /* K4 */ be_nested_str_weak(add_fabric), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(_temp_root_ca_certificate), }), - be_str_weak(fabric_candidate), + be_str_weak(set_temp_ca), &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x540E0077, // 0002 LDINT R3 120 - 0x7C040400, // 0003 CALL R1 2 - 0x8C040102, // 0004 GETMET R1 R0 K2 - 0x7C040200, // 0005 CALL R1 1 - 0x88040103, // 0006 GETMBR R1 R0 K3 - 0x8C040304, // 0007 GETMET R1 R1 K4 - 0x880C0100, // 0008 GETMBR R3 R0 K0 - 0x7C040400, // 0009 CALL R1 2 - 0x80000000, // 000A RET 0 + ( &(const binstruction[ 2]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x80000000, // 0001 RET 0 }) ) ); @@ -792,11 +1422,11 @@ be_local_closure(Matter_Session_fabric_candidate, /* name */ /******************************************************************** -** Solidified function: get_ipk_group_key +** Solidified function: get_i2r_privacy ********************************************************************/ -be_local_closure(Matter_Session_get_ipk_group_key, /* name */ +be_local_closure(Matter_Session_get_i2r_privacy, /* name */ be_nested_proto( - 10, /* nstack */ + 9, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -805,46 +1435,39 @@ be_local_closure(Matter_Session_get_ipk_group_key, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(get_ipk_epoch_key), - /* K1 */ be_nested_str_weak(get_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), + /* 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_ipk_group_key), + be_str_weak(get_i2r_privacy), &be_const_str_solidified, - ( &(const binstruction[29]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x4C080000, // 0002 LDNIL R2 - 0x1C040202, // 0003 EQ R1 R1 R2 - 0x74060004, // 0004 JMPT R1 #000A - 0x8C040101, // 0005 GETMET R1 R0 K1 - 0x7C040200, // 0006 CALL R1 1 - 0x4C080000, // 0007 LDNIL R2 - 0x1C040202, // 0008 EQ R1 R1 R2 - 0x78060001, // 0009 JMPF R1 #000C - 0x4C040000, // 000A LDNIL R1 - 0x80040200, // 000B RET 1 R1 - 0xA4060400, // 000C IMPORT R1 K2 - 0x8C080303, // 000D GETMET R2 R1 K3 - 0x7C080200, // 000E CALL R2 1 - 0x600C0015, // 000F GETGBL R3 G21 - 0x7C0C0000, // 0010 CALL R3 0 - 0x8C0C0704, // 0011 GETMET R3 R3 K4 - 0x88140105, // 0012 GETMBR R5 R0 K5 - 0x7C0C0400, // 0013 CALL R3 2 - 0x8C100506, // 0014 GETMET R4 R2 K6 - 0x8C180100, // 0015 GETMET R6 R0 K0 - 0x7C180200, // 0016 CALL R6 1 - 0x8C1C0101, // 0017 GETMET R7 R0 K1 - 0x7C1C0200, // 0018 CALL R7 1 - 0x5C200600, // 0019 MOVE R8 R3 - 0x5426000F, // 001A LDINT R9 16 - 0x7C100A00, // 001B CALL R4 5 - 0x80040800, // 001C RET 1 R4 + ( &(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 }) ) ); @@ -852,9 +1475,9 @@ be_local_closure(Matter_Session_get_ipk_group_key, /* name */ /******************************************************************** -** Solidified function: get_noc +** Solidified function: get_ca ********************************************************************/ -be_local_closure(Matter_Session_get_noc, /* name */ +be_local_closure(Matter_Session_get_ca, /* name */ be_nested_proto( 2, /* nstack */ 1, /* argc */ @@ -866,9 +1489,9 @@ be_local_closure(Matter_Session_get_noc, /* name */ 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(noc), + /* K1 */ be_nested_str_weak(root_ca_certificate), }), - be_str_weak(get_noc), + be_str_weak(get_ca), &be_const_str_solidified, ( &(const binstruction[ 3]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 @@ -881,11 +1504,11 @@ be_local_closure(Matter_Session_get_noc, /* name */ /******************************************************************** -** Solidified function: fabric_completed +** Solidified function: get_ac ********************************************************************/ -be_local_closure(Matter_Session_fabric_completed, /* name */ +be_local_closure(Matter_Session_get_ac, /* name */ be_nested_proto( - 4, /* nstack */ + 2, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -893,67 +1516,14 @@ be_local_closure(Matter_Session_fabric_completed, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 6]) { /* 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(assign_fabric_index), - /* K4 */ be_nested_str_weak(_store), - /* K5 */ be_nested_str_weak(add_fabric), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(attestation_challenge), }), - be_str_weak(fabric_completed), + be_str_weak(get_ac), &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ + ( &(const binstruction[ 2]) { /* 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 - 0x8C040103, // 0007 GETMET R1 R0 K3 - 0x7C040200, // 0008 CALL R1 1 - 0x88040104, // 0009 GETMBR R1 R0 K4 - 0x8C040305, // 000A GETMET R1 R1 K5 - 0x880C0100, // 000B GETMBR R3 R0 K0 - 0x7C040400, // 000C CALL R1 2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_keys -********************************************************************/ -be_local_closure(Matter_Session_set_keys, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* 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(i2rkey), - /* K1 */ be_nested_str_weak(_i2r_privacy), - /* K2 */ be_nested_str_weak(r2ikey), - /* K3 */ be_nested_str_weak(attestation_challenge), - /* K4 */ be_nested_str_weak(created), - }), - be_str_weak(set_keys), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x4C140000, // 0001 LDNIL R5 - 0x90020205, // 0002 SETMBR R0 K1 R5 - 0x90020402, // 0003 SETMBR R0 K2 R2 - 0x90020603, // 0004 SETMBR R0 K3 R3 - 0x90020804, // 0005 SETMBR R0 K4 R4 - 0x80000000, // 0006 RET 0 + 0x80040200, // 0001 RET 1 R1 }) ) ); @@ -1027,893 +1597,6 @@ be_local_closure(Matter_Session_counter_snd_next, /* 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: set_ca -********************************************************************/ -be_local_closure(Matter_Session_set_ca, /* 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(_fabric), - /* K1 */ be_nested_str_weak(root_ca_certificate), - }), - be_str_weak(set_ca), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x900A0201, // 0001 SETMBR R2 K1 R1 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_fabric_label -********************************************************************/ -be_local_closure(Matter_Session_set_fabric_label, /* name */ - be_nested_proto( - 4, /* 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(string), - /* K1 */ be_nested_str_weak(_fabric), - /* K2 */ be_nested_str_weak(fabric_label), - }), - be_str_weak(set_fabric_label), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x60080004, // 0000 GETGBL R2 G4 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x1C080500, // 0003 EQ R2 R2 K0 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x88080101, // 0005 GETMBR R2 R0 K1 - 0x900A0401, // 0006 SETMBR R2 K2 R1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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_mode -********************************************************************/ -be_local_closure(Matter_Session_set_mode, /* 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(mode), - }), - be_str_weak(set_mode), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x80000000, // 0001 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_ac -********************************************************************/ -be_local_closure(Matter_Session_get_ac, /* 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(attestation_challenge), - }), - be_str_weak(get_ac), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: hydrate_post -********************************************************************/ -be_local_closure(Matter_Session_hydrate_post, /* 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(_counter_snd_impl), - /* K1 */ be_nested_str_weak(reset), - /* K2 */ be_nested_str_weak(counter_snd), - /* K3 */ be_nested_str_weak(_counter_rcv_impl), - /* K4 */ be_nested_str_weak(counter_rcv), - /* K5 */ be_nested_str_weak(val), - }), - be_str_weak(hydrate_post), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x880C0102, // 0002 GETMBR R3 R0 K2 - 0x7C040400, // 0003 CALL R1 2 - 0x88040103, // 0004 GETMBR R1 R0 K3 - 0x8C040301, // 0005 GETMET R1 R1 K1 - 0x880C0104, // 0006 GETMBR R3 R0 K4 - 0x7C040400, // 0007 CALL R1 2 - 0x88040100, // 0008 GETMBR R1 R0 K0 - 0x8C040305, // 0009 GETMET R1 R1 K5 - 0x7C040200, // 000A CALL R1 1 - 0x90020401, // 000B SETMBR R0 K2 R1 - 0x88040103, // 000C GETMBR R1 R0 K3 - 0x8C040305, // 000D GETMET R1 R1 K5 - 0x7C040200, // 000E CALL R1 1 - 0x90020801, // 000F SETMBR R0 K4 R1 - 0x80000000, // 0010 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: set_admin_subject_vendor -********************************************************************/ -be_local_closure(Matter_Session_set_admin_subject_vendor, /* 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[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(admin_subject), - /* K2 */ be_nested_str_weak(admin_vendor), - }), - be_str_weak(set_admin_subject_vendor), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x900E0201, // 0001 SETMBR R3 K1 R1 - 0x880C0100, // 0002 GETMBR R3 R0 K0 - 0x900E0402, // 0003 SETMBR R3 K2 R2 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_ipk_epoch_key -********************************************************************/ -be_local_closure(Matter_Session_set_ipk_epoch_key, /* 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(_fabric), - /* K1 */ be_nested_str_weak(ipk_epoch_key), - }), - be_str_weak(set_ipk_epoch_key), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x900A0201, // 0001 SETMBR R2 K1 R1 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: before_remove -********************************************************************/ -be_local_closure(Matter_Session_before_remove, /* 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[ 7]) { /* 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_X20_X2DSession_X20_X20_X20_X28_X256i_X29_X20_X28removed_X29), - /* K5 */ be_nested_str_weak(local_session_id), - /* K6 */ be_const_int(3), - }), - be_str_weak(before_remove), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x8C100303, // 0003 GETMET R4 R1 K3 - 0x58180004, // 0004 LDCONST R6 K4 - 0x881C0105, // 0005 GETMBR R7 R0 K5 - 0x7C100600, // 0006 CALL R4 3 - 0x58140006, // 0007 LDCONST R5 K6 - 0x7C080600, // 0008 CALL R2 3 - 0x80000000, // 0009 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 -********************************************************************/ -be_local_closure(Matter_Session_set_mode_CASE, /* 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(set_mode), - /* K1 */ be_nested_str_weak(_CASE), - }), - be_str_weak(set_mode_CASE), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x880C0101, // 0001 GETMBR R3 R0 K1 - 0x7C040400, // 0002 CALL R1 2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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: get_ca_pub -********************************************************************/ -be_local_closure(Matter_Session_get_ca_pub, /* 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(_fabric), - /* K1 */ be_nested_str_weak(get_ca_pub), - }), - be_str_weak(get_ca_pub), - &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 - 0x80040200, // 0003 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[23]) { /* 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_impl), - /* K5 */ be_nested_str_weak(reset), - /* K6 */ be_nested_str_weak(_counter_snd_impl), - /* K7 */ be_nested_str_weak(counter_rcv), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(counter_snd), - /* K10 */ be_nested_str_weak(next), - /* K11 */ be_nested_str_weak(i2rkey), - /* K12 */ be_nested_str_weak(_i2r_privacy), - /* K13 */ be_nested_str_weak(r2ikey), - /* K14 */ be_nested_str_weak(attestation_challenge), - /* K15 */ be_nested_str_weak(introspect), - /* K16 */ be_nested_str_weak(members), - /* K17 */ be_nested_str_weak(get), - /* K18 */ be_nested_str_weak(function), - /* K19 */ be_nested_str_weak(instance), - /* K20 */ be_nested_str_weak(_), - /* K21 */ be_const_int(1), - /* K22 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(close), - &be_const_str_solidified, - ( &(const binstruction[59]) { /* 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 - 0x90020F08, // 000A SETMBR R0 K7 K8 - 0x88040106, // 000B GETMBR R1 R0 K6 - 0x8C04030A, // 000C GETMET R1 R1 K10 - 0x7C040200, // 000D CALL R1 1 - 0x90021201, // 000E SETMBR R0 K9 R1 - 0x4C040000, // 000F LDNIL R1 - 0x90021601, // 0010 SETMBR R0 K11 R1 - 0x4C040000, // 0011 LDNIL R1 - 0x90021801, // 0012 SETMBR R0 K12 R1 - 0x4C040000, // 0013 LDNIL R1 - 0x90021A01, // 0014 SETMBR R0 K13 R1 - 0x4C040000, // 0015 LDNIL R1 - 0x90021C01, // 0016 SETMBR R0 K14 R1 - 0xA4061E00, // 0017 IMPORT R1 K15 - 0x60080010, // 0018 GETGBL R2 G16 - 0x8C0C0310, // 0019 GETMET R3 R1 K16 - 0x5C140000, // 001A MOVE R5 R0 - 0x7C0C0400, // 001B CALL R3 2 - 0x7C080200, // 001C CALL R2 1 - 0xA8020018, // 001D EXBLK 0 #0037 - 0x5C0C0400, // 001E MOVE R3 R2 - 0x7C0C0000, // 001F CALL R3 0 - 0x8C100311, // 0020 GETMET R4 R1 K17 - 0x5C180000, // 0021 MOVE R6 R0 - 0x5C1C0600, // 0022 MOVE R7 R3 - 0x7C100600, // 0023 CALL R4 3 - 0x60140004, // 0024 GETGBL R5 G4 - 0x5C180800, // 0025 MOVE R6 R4 - 0x7C140200, // 0026 CALL R5 1 - 0x20140B12, // 0027 NE R5 R5 K18 - 0x7816000C, // 0028 JMPF R5 #0036 - 0x60140004, // 0029 GETGBL R5 G4 - 0x5C180800, // 002A MOVE R6 R4 - 0x7C140200, // 002B CALL R5 1 - 0x20140B13, // 002C NE R5 R5 K19 - 0x78160007, // 002D JMPF R5 #0036 - 0x94140708, // 002E GETIDX R5 R3 K8 - 0x1C140B14, // 002F EQ R5 R5 K20 - 0x78160004, // 0030 JMPF R5 #0036 - 0x94140715, // 0031 GETIDX R5 R3 K21 - 0x1C140B14, // 0032 EQ R5 R5 K20 - 0x78160001, // 0033 JMPF R5 #0036 - 0x4C140000, // 0034 LDNIL R5 - 0x90000605, // 0035 SETMBR R0 R3 R5 - 0x7001FFE6, // 0036 JMP #001E - 0x58080016, // 0037 LDCONST R2 K22 - 0xAC080200, // 0038 CATCH R2 1 0 - 0xB0080000, // 0039 RAISE 2 R0 R0 - 0x80000000, // 003A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_fabric_compressed -********************************************************************/ -be_local_closure(Matter_Session_get_fabric_compressed, /* 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_compressed), - }), - be_str_weak(get_fabric_compressed), - &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_vendor -********************************************************************/ -be_local_closure(Matter_Session_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[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(admin_vendor), - }), - be_str_weak(get_admin_vendor), - &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 -********************************************************************/ -be_local_closure(Matter_Session_get_pk, /* 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[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(no_private_key), - /* K2 */ be_nested_str_weak(crypto), - /* K3 */ be_nested_str_weak(random), - }), - be_str_weak(get_pk), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x88040301, // 0001 GETMBR R1 R1 K1 - 0x74060005, // 0002 JMPT R1 #0009 - 0xA4060400, // 0003 IMPORT R1 K2 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x8C0C0303, // 0005 GETMET R3 R1 K3 - 0x5416001F, // 0006 LDINT R5 32 - 0x7C0C0400, // 0007 CALL R3 2 - 0x900A0203, // 0008 SETMBR R2 K1 R3 - 0x88040100, // 0009 GETMBR R1 R0 K0 - 0x88040301, // 000A GETMBR R1 R1 K1 - 0x80040200, // 000B RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_fabric_device -********************************************************************/ -be_local_closure(Matter_Session_set_fabric_device, /* name */ - be_nested_proto( - 8, /* nstack */ - 5, /* 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(_fabric), - /* K1 */ be_nested_str_weak(fabric_id), - /* K2 */ be_nested_str_weak(device_id), - /* K3 */ be_nested_str_weak(fabric_compressed), - /* K4 */ be_nested_str_weak(fabric_parent), - /* K5 */ be_nested_str_weak(get_fabric_index), - }), - be_str_weak(set_fabric_device), - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x88140100, // 0000 GETMBR R5 R0 K0 - 0x90160201, // 0001 SETMBR R5 K1 R1 - 0x88140100, // 0002 GETMBR R5 R0 K0 - 0x90160402, // 0003 SETMBR R5 K2 R2 - 0x88140100, // 0004 GETMBR R5 R0 K0 - 0x90160603, // 0005 SETMBR R5 K3 R3 - 0x88140100, // 0006 GETMBR R5 R0 K0 - 0x4C180000, // 0007 LDNIL R6 - 0x20180806, // 0008 NE R6 R4 R6 - 0x781A0002, // 0009 JMPF R6 #000D - 0x8C180905, // 000A GETMET R6 R4 K5 - 0x7C180200, // 000B CALL R6 1 - 0x70020000, // 000C JMP #000E - 0x4C180000, // 000D LDNIL R6 - 0x90160806, // 000E SETMBR R5 K4 R6 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: gen_CSR -********************************************************************/ -be_local_closure(Matter_Session_gen_CSR, /* 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[12]) { /* constants */ - /* K0 */ be_nested_str_weak(get_pk), - /* K1 */ be_nested_str_weak(crypto), - /* K2 */ be_nested_str_weak(EC_P256), - /* K3 */ be_nested_str_weak(public_key), - /* K4 */ be_nested_str_weak(3070020100300E310C300A060355040A0C034353523059301306072A8648CE3D020106082A8648CE3D030107034200), - /* K5 */ be_nested_str_weak(A000), - /* K6 */ be_nested_str_weak(300C06082A8648CE3D0403020500), - /* K7 */ be_nested_str_weak(ecdsa_sign_sha256_asn1), - /* K8 */ be_nested_str_weak(add), - /* K9 */ be_const_int(3), - /* K10 */ be_const_int(1), - /* K11 */ be_const_int(0), - }), - be_str_weak(gen_CSR), - &be_const_str_solidified, - ( &(const binstruction[73]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0xA40A0200, // 0002 IMPORT R2 K1 - 0x8C0C0502, // 0003 GETMET R3 R2 K2 - 0x7C0C0200, // 0004 CALL R3 1 - 0x8C100703, // 0005 GETMET R4 R3 K3 - 0x5C180200, // 0006 MOVE R6 R1 - 0x7C100400, // 0007 CALL R4 2 - 0x60140015, // 0008 GETGBL R5 G21 - 0x58180004, // 0009 LDCONST R6 K4 - 0x7C140200, // 000A CALL R5 1 - 0x40180A04, // 000B CONNECT R6 R5 R4 - 0x60180015, // 000C GETGBL R6 G21 - 0x581C0005, // 000D LDCONST R7 K5 - 0x7C180200, // 000E CALL R6 1 - 0x40180A06, // 000F CONNECT R6 R5 R6 - 0x60180015, // 0010 GETGBL R6 G21 - 0x581C0006, // 0011 LDCONST R7 K6 - 0x7C180200, // 0012 CALL R6 1 - 0x8C1C0707, // 0013 GETMET R7 R3 K7 - 0x5C240200, // 0014 MOVE R9 R1 - 0x5C280A00, // 0015 MOVE R10 R5 - 0x7C1C0600, // 0016 CALL R7 3 - 0x60200015, // 0017 GETGBL R8 G21 - 0x5426007F, // 0018 LDINT R9 128 - 0x7C200200, // 0019 CALL R8 1 - 0x8C241108, // 001A GETMET R9 R8 K8 - 0x582C0009, // 001B LDCONST R11 K9 - 0x5830000A, // 001C LDCONST R12 K10 - 0x7C240600, // 001D CALL R9 3 - 0x8C241108, // 001E GETMET R9 R8 K8 - 0x602C000C, // 001F GETGBL R11 G12 - 0x5C300E00, // 0020 MOVE R12 R7 - 0x7C2C0200, // 0021 CALL R11 1 - 0x002C170A, // 0022 ADD R11 R11 K10 - 0x5830000A, // 0023 LDCONST R12 K10 - 0x7C240600, // 0024 CALL R9 3 - 0x8C241108, // 0025 GETMET R9 R8 K8 - 0x582C000B, // 0026 LDCONST R11 K11 - 0x5830000A, // 0027 LDCONST R12 K10 - 0x7C240600, // 0028 CALL R9 3 - 0x40241007, // 0029 CONNECT R9 R8 R7 - 0x6024000C, // 002A GETGBL R9 G12 - 0x5C280A00, // 002B MOVE R10 R5 - 0x7C240200, // 002C CALL R9 1 - 0x6028000C, // 002D GETGBL R10 G12 - 0x5C2C0C00, // 002E MOVE R11 R6 - 0x7C280200, // 002F CALL R10 1 - 0x0024120A, // 0030 ADD R9 R9 R10 - 0x6028000C, // 0031 GETGBL R10 G12 - 0x5C2C1000, // 0032 MOVE R11 R8 - 0x7C280200, // 0033 CALL R10 1 - 0x0024120A, // 0034 ADD R9 R9 R10 - 0x60280015, // 0035 GETGBL R10 G21 - 0x542E00CF, // 0036 LDINT R11 208 - 0x7C280200, // 0037 CALL R10 1 - 0x8C2C1508, // 0038 GETMET R11 R10 K8 - 0x5436002F, // 0039 LDINT R13 48 - 0x5838000A, // 003A LDCONST R14 K10 - 0x7C2C0600, // 003B CALL R11 3 - 0x8C2C1508, // 003C GETMET R11 R10 K8 - 0x54360080, // 003D LDINT R13 129 - 0x5838000A, // 003E LDCONST R14 K10 - 0x7C2C0600, // 003F CALL R11 3 - 0x8C2C1508, // 0040 GETMET R11 R10 K8 - 0x543600FE, // 0041 LDINT R13 255 - 0x2C34120D, // 0042 AND R13 R9 R13 - 0x5838000A, // 0043 LDCONST R14 K10 - 0x7C2C0600, // 0044 CALL R11 3 - 0x402C1405, // 0045 CONNECT R11 R10 R5 - 0x402C1406, // 0046 CONNECT R11 R10 R6 - 0x402C1408, // 0047 CONNECT R11 R10 R8 - 0x80041400, // 0048 RET 1 R10 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_fabric -********************************************************************/ -be_local_closure(Matter_Session_get_fabric, /* 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), - }), - be_str_weak(get_fabric), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: counter_rcv_validate ********************************************************************/ @@ -1954,30 +1637,117 @@ be_local_closure(Matter_Session_counter_rcv_validate, /* name */ /******************************************************************** -** Solidified function: set_noc +** Solidified function: get_icac ********************************************************************/ -be_local_closure(Matter_Session_set_noc, /* name */ +be_local_closure(Matter_Session_get_icac, /* name */ be_nested_proto( - 4, /* nstack */ - 3, /* argc */ + 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[ 3]) { /* constants */ + ( &(const bvalue[ 2]) { /* constants */ /* K0 */ be_nested_str_weak(_fabric), - /* K1 */ be_nested_str_weak(noc), - /* K2 */ be_nested_str_weak(icac), + /* K1 */ be_nested_str_weak(icac), }), - be_str_weak(set_noc), + 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: get_ca_pub +********************************************************************/ +be_local_closure(Matter_Session_get_ca_pub, /* 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(_fabric), + /* K1 */ be_nested_str_weak(get_ca_pub), + }), + be_str_weak(get_ca_pub), + &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 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_ipk_epoch_key +********************************************************************/ +be_local_closure(Matter_Session_get_ipk_epoch_key, /* 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(ipk_epoch_key), + }), + be_str_weak(get_ipk_epoch_key), + &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: 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 */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x900E0201, // 0001 SETMBR R3 K1 R1 - 0x880C0100, // 0002 GETMBR R3 R0 K0 - 0x900E0402, // 0003 SETMBR R3 K2 R2 + 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 }) ) @@ -1990,96 +1760,93 @@ be_local_closure(Matter_Session_set_noc, /* name */ ********************************************************************/ extern const bclass be_class_Matter_Expirable; be_local_class(Matter_Session, - 36, + 38, &be_class_Matter_Expirable, - be_nested_map(86, + be_nested_map(83, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(__Msg2, -1), be_const_var(34) }, - { be_const_key_weak(_GROUP_KEY, -1), be_nested_str_weak(GroupKey_X20v1_X2E0) }, - { be_const_key_weak(set_noc, 50), be_const_closure(Matter_Session_set_noc_closure) }, - { be_const_key_weak(get_i2r, 79), be_const_closure(Matter_Session_get_i2r_closure) }, - { be_const_key_weak(tojson, -1), be_const_closure(Matter_Session_tojson_closure) }, - { be_const_key_weak(assign_fabric_index, 30), be_const_closure(Matter_Session_assign_fabric_index_closure) }, - { be_const_key_weak(get_r2i, -1), be_const_closure(Matter_Session_get_r2i_closure) }, - { be_const_key_weak(_breadcrumb, -1), be_const_var(25) }, - { be_const_key_weak(_counter_snd_impl, -1), be_const_var(13) }, - { be_const_key_weak(gen_CSR, -1), be_const_closure(Matter_Session_gen_CSR_closure) }, - { be_const_key_weak(__future_local_session_id, -1), be_const_var(9) }, - { be_const_key_weak(set_mode_PASE, -1), be_const_closure(Matter_Session_set_mode_PASE_closure) }, - { be_const_key_weak(get_fabric_label, -1), be_const_closure(Matter_Session_get_fabric_label_closure) }, - { be_const_key_weak(__spake_Ke, -1), be_const_var(32) }, - { be_const_key_weak(get_device_id, 85), be_const_closure(Matter_Session_get_device_id_closure) }, - { be_const_key_weak(persist_to_fabric, 6), be_const_closure(Matter_Session_persist_to_fabric_closure) }, - { be_const_key_weak(_COUNTER_SND_INCR, -1), be_const_int(1024) }, - { be_const_key_weak(local_session_id, 18), be_const_var(3) }, - { be_const_key_weak(shared_secret, 42), be_const_var(27) }, - { be_const_key_weak(get_mode, 74), be_const_closure(Matter_Session_get_mode_closure) }, - { be_const_key_weak(peer_node_id, -1), be_const_var(24) }, - { be_const_key_weak(i2rkey, -1), be_const_var(20) }, + { be_const_key_weak(resumption_id, -1), be_const_var(28) }, + { be_const_key_weak(mode, 4), be_const_var(1) }, { be_const_key_weak(get_pk, -1), be_const_closure(Matter_Session_get_pk_closure) }, - { be_const_key_weak(is_PASE, -1), be_const_closure(Matter_Session_is_PASE_closure) }, - { be_const_key_weak(get_admin_subject, -1), be_const_closure(Matter_Session_get_admin_subject_closure) }, - { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Session_get_admin_vendor_closure) }, - { be_const_key_weak(get_ipk_epoch_key, 2), be_const_closure(Matter_Session_get_ipk_epoch_key_closure) }, - { be_const_key_weak(_counter_insecure_snd, -1), be_const_var(19) }, - { be_const_key_weak(_i2r_privacy, 78), be_const_var(22) }, - { be_const_key_weak(get_fabric_compressed, -1), be_const_closure(Matter_Session_get_fabric_compressed_closure) }, - { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Session_get_fabric_id_closure) }, - { be_const_key_weak(_exchange_id, 29), be_const_var(14) }, - { be_const_key_weak(fabric_candidate, -1), be_const_closure(Matter_Session_fabric_candidate_closure) }, - { be_const_key_weak(__responder_pub, -1), be_const_var(29) }, - { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Session_get_ipk_group_key_closure) }, - { be_const_key_weak(__Msg1, -1), be_const_var(33) }, - { be_const_key_weak(get_noc, -1), be_const_closure(Matter_Session_get_noc_closure) }, - { be_const_key_weak(_port, 48), be_const_var(16) }, - { be_const_key_weak(fabric_completed, -1), be_const_closure(Matter_Session_fabric_completed_closure) }, - { be_const_key_weak(__future_initiator_session_id, -1), be_const_var(8) }, - { be_const_key_weak(__spake_cA, 54), be_const_var(31) }, - { be_const_key_weak(_message_handler, -1), be_const_var(17) }, - { be_const_key_weak(attestation_challenge, 8), be_const_var(23) }, - { be_const_key_weak(get_i2r_privacy, -1), be_const_closure(Matter_Session_get_i2r_privacy_closure) }, - { be_const_key_weak(set_keys, -1), be_const_closure(Matter_Session_set_keys_closure) }, - { be_const_key_weak(counter_snd_next, -1), be_const_closure(Matter_Session_counter_snd_next_closure) }, - { be_const_key_weak(_CASE, -1), be_const_int(2) }, + { be_const_key_weak(set_mode_CASE, 65), be_const_closure(Matter_Session_set_mode_CASE_closure) }, + { be_const_key_weak(__spake_cA, 22), be_const_var(33) }, + { be_const_key_weak(__initiator_pub, -1), be_const_var(32) }, + { be_const_key_weak(get_temp_ca_pub, 55), be_const_closure(Matter_Session_get_temp_ca_pub_closure) }, + { be_const_key_weak(get_i2r, -1), be_const_closure(Matter_Session_get_i2r_closure) }, + { be_const_key_weak(_ip, 82), be_const_var(17) }, + { be_const_key_weak(__Msg2, -1), be_const_var(36) }, + { be_const_key_weak(get_fabric_label, 59), be_const_closure(Matter_Session_get_fabric_label_closure) }, + { be_const_key_weak(__future_initiator_session_id, -1), be_const_var(10) }, + { be_const_key_weak(set_keys, 0), be_const_closure(Matter_Session_set_keys_closure) }, + { be_const_key_weak(set_mode_PASE, -1), be_const_closure(Matter_Session_set_mode_PASE_closure) }, + { be_const_key_weak(_fabric, 7), be_const_var(2) }, + { be_const_key_weak(get_temp_ca, -1), be_const_closure(Matter_Session_get_temp_ca_closure) }, + { be_const_key_weak(attestation_challenge, -1), be_const_var(25) }, + { be_const_key_weak(_temp_pk, -1), be_const_var(9) }, { be_const_key_weak(last_used, -1), be_const_var(6) }, - { be_const_key_weak(_ip, -1), be_const_var(15) }, - { be_const_key_weak(set_mode_CASE, 28), be_const_closure(Matter_Session_set_mode_CASE_closure) }, - { be_const_key_weak(set_fabric_label, 13), be_const_closure(Matter_Session_set_fabric_label_closure) }, - { be_const_key_weak(hydrate_post, -1), be_const_closure(Matter_Session_hydrate_post_closure) }, - { be_const_key_weak(get_ca, -1), be_const_closure(Matter_Session_get_ca_closure) }, - { be_const_key_weak(init, 69), be_const_closure(Matter_Session_init_closure) }, - { be_const_key_weak(get_icac, 41), be_const_closure(Matter_Session_get_icac_closure) }, - { be_const_key_weak(_store, 51), be_const_var(0) }, - { be_const_key_weak(__chunked_attr_reports, -1), be_const_var(35) }, - { be_const_key_weak(counter_rcv, -1), be_const_var(10) }, - { be_const_key_weak(_source_node_id, -1), be_const_var(7) }, - { be_const_key_weak(set_admin_subject_vendor, 63), be_const_closure(Matter_Session_set_admin_subject_vendor_closure) }, - { be_const_key_weak(set_ipk_epoch_key, -1), be_const_closure(Matter_Session_set_ipk_epoch_key_closure) }, - { be_const_key_weak(_counter_insecure_rcv, 62), be_const_var(18) }, - { be_const_key_weak(before_remove, 64), be_const_closure(Matter_Session_before_remove_closure) }, - { be_const_key_weak(__responder_priv, -1), be_const_var(28) }, - { be_const_key_weak(initiator_session_id, -1), be_const_var(4) }, - { be_const_key_weak(r2ikey, 16), be_const_var(21) }, - { be_const_key_weak(__initiator_pub, -1), be_const_var(30) }, - { be_const_key_weak(resumption_id, -1), be_const_var(26) }, - { be_const_key_weak(save, 49), be_const_closure(Matter_Session_save_closure) }, - { be_const_key_weak(set_mode, 56), be_const_closure(Matter_Session_set_mode_closure) }, - { be_const_key_weak(get_ac, 43), be_const_closure(Matter_Session_get_ac_closure) }, - { be_const_key_weak(_PASE, -1), be_const_int(1) }, - { be_const_key_weak(get_ca_pub, -1), be_const_closure(Matter_Session_get_ca_pub_closure) }, - { be_const_key_weak(close, -1), be_const_closure(Matter_Session_close_closure) }, - { be_const_key_weak(_counter_rcv_impl, -1), be_const_var(12) }, - { be_const_key_weak(_fabric, -1), be_const_var(2) }, - { be_const_key_weak(update, 25), be_const_closure(Matter_Session_update_closure) }, - { be_const_key_weak(fromjson, 22), be_const_static_closure(Matter_Session_fromjson_closure) }, + { be_const_key_weak(peer_node_id, -1), be_const_var(26) }, { be_const_key_weak(is_CASE, -1), be_const_closure(Matter_Session_is_CASE_closure) }, - { be_const_key_weak(counter_snd, -1), be_const_var(11) }, - { be_const_key_weak(set_fabric_device, -1), be_const_closure(Matter_Session_set_fabric_device_closure) }, - { be_const_key_weak(created, 10), be_const_var(5) }, - { be_const_key_weak(set_ca, 9), be_const_closure(Matter_Session_set_ca_closure) }, + { be_const_key_weak(get_ipk_epoch_key, 80), be_const_closure(Matter_Session_get_ipk_epoch_key_closure) }, + { be_const_key_weak(_exchange_id, -1), be_const_var(16) }, + { be_const_key_weak(__chunked_attr_reports, -1), be_const_var(37) }, + { be_const_key_weak(counter_snd, -1), be_const_var(13) }, + { be_const_key_weak(_i2r_privacy, -1), be_const_var(24) }, + { be_const_key_weak(_PASE, -1), be_const_int(1) }, + { be_const_key_weak(get_mode, 1), be_const_closure(Matter_Session_get_mode_closure) }, + { be_const_key_weak(get_icac, 53), be_const_closure(Matter_Session_get_icac_closure) }, + { be_const_key_weak(is_PASE, -1), be_const_closure(Matter_Session_is_PASE_closure) }, + { be_const_key_weak(gen_CSR, -1), be_const_closure(Matter_Session_gen_CSR_closure) }, + { be_const_key_weak(_message_handler, 51), be_const_var(19) }, + { be_const_key_weak(__spake_Ke, -1), be_const_var(34) }, + { be_const_key_weak(get_admin_subject, -1), be_const_closure(Matter_Session_get_admin_subject_closure) }, + { be_const_key_weak(before_remove, 73), be_const_closure(Matter_Session_before_remove_closure) }, + { be_const_key_weak(__responder_pub, -1), be_const_var(31) }, + { be_const_key_weak(i2rkey, -1), be_const_var(22) }, + { be_const_key_weak(created, -1), be_const_var(5) }, + { be_const_key_weak(_CASE, -1), be_const_int(2) }, + { be_const_key_weak(_port, -1), be_const_var(18) }, + { be_const_key_weak(_store, -1), be_const_var(0) }, + { be_const_key_weak(get_device_id, -1), be_const_closure(Matter_Session_get_device_id_closure) }, + { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Session_get_admin_vendor_closure) }, { be_const_key_weak(get_fabric, -1), be_const_closure(Matter_Session_get_fabric_closure) }, + { be_const_key_weak(_counter_insecure_rcv, 28), be_const_var(20) }, + { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Session_get_ipk_group_key_closure) }, + { be_const_key_weak(__responder_priv, -1), be_const_var(30) }, + { be_const_key_weak(_GROUP_KEY, 56), be_nested_str_weak(GroupKey_X20v1_X2E0) }, + { be_const_key_weak(_temp_root_ca_certificate, -1), be_const_var(8) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Session_init_closure) }, + { be_const_key_weak(get_noc, 41), be_const_closure(Matter_Session_get_noc_closure) }, + { be_const_key_weak(set_fabric_label, 15), be_const_closure(Matter_Session_set_fabric_label_closure) }, + { be_const_key_weak(shared_secret, -1), be_const_var(29) }, + { be_const_key_weak(hydrate_post, 33), be_const_closure(Matter_Session_hydrate_post_closure) }, + { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Session_fromjson_closure) }, + { be_const_key_weak(save, -1), be_const_closure(Matter_Session_save_closure) }, + { be_const_key_weak(_source_node_id, -1), be_const_var(7) }, + { be_const_key_weak(set_mode, 25), be_const_closure(Matter_Session_set_mode_closure) }, + { be_const_key_weak(_counter_snd_impl, -1), be_const_var(15) }, + { be_const_key_weak(__Msg1, 81), be_const_var(35) }, + { be_const_key_weak(set_temp_ca, -1), be_const_closure(Matter_Session_set_temp_ca_closure) }, + { be_const_key_weak(get_i2r_privacy, -1), be_const_closure(Matter_Session_get_i2r_privacy_closure) }, + { be_const_key_weak(initiator_session_id, -1), be_const_var(4) }, + { be_const_key_weak(__future_local_session_id, -1), be_const_var(11) }, + { be_const_key_weak(r2ikey, -1), be_const_var(23) }, + { be_const_key_weak(get_fabric_id, 72), be_const_closure(Matter_Session_get_fabric_id_closure) }, + { be_const_key_weak(get_ac, -1), be_const_closure(Matter_Session_get_ac_closure) }, + { be_const_key_weak(local_session_id, -1), be_const_var(3) }, + { be_const_key_weak(counter_snd_next, -1), be_const_closure(Matter_Session_counter_snd_next_closure) }, { be_const_key_weak(counter_rcv_validate, -1), be_const_closure(Matter_Session_counter_rcv_validate_closure) }, - { be_const_key_weak(mode, -1), be_const_var(1) }, + { be_const_key_weak(get_ca, 35), be_const_closure(Matter_Session_get_ca_closure) }, + { be_const_key_weak(_counter_rcv_impl, -1), be_const_var(14) }, + { be_const_key_weak(update, -1), be_const_closure(Matter_Session_update_closure) }, + { be_const_key_weak(close, 23), be_const_closure(Matter_Session_close_closure) }, + { be_const_key_weak(get_ca_pub, -1), be_const_closure(Matter_Session_get_ca_pub_closure) }, + { be_const_key_weak(_breadcrumb, -1), be_const_var(27) }, + { be_const_key_weak(_COUNTER_SND_INCR, 21), be_const_int(1024) }, + { be_const_key_weak(_counter_insecure_snd, -1), be_const_var(21) }, + { be_const_key_weak(persist_to_fabric, -1), be_const_closure(Matter_Session_persist_to_fabric_closure) }, + { be_const_key_weak(counter_rcv, 5), be_const_var(12) }, + { be_const_key_weak(tojson, -1), be_const_closure(Matter_Session_tojson_closure) }, + { be_const_key_weak(get_r2i, -1), be_const_closure(Matter_Session_get_r2i_closure) }, + { be_const_key_weak(get_fabric_compressed, -1), be_const_closure(Matter_Session_get_fabric_compressed_closure) }, })), be_str_weak(Matter_Session) );