diff --git a/lib/libesp32/berry_matter/src/be_matter_module.c b/lib/libesp32/berry_matter/src/be_matter_module.c
index a1a7097c5..9a0a7b761 100644
--- a/lib/libesp32/berry_matter/src/be_matter_module.c
+++ b/lib/libesp32/berry_matter/src/be_matter_module.c
@@ -133,7 +133,9 @@ extern const bclass be_class_Matter_TLV; // need to declare it upfront because
#include "solidify/solidified_Matter_IM_Data.h"
#include "solidify/solidified_Matter_UDPServer.h"
#include "solidify/solidified_Matter_Expirable.h"
+#include "solidify/solidified_Matter_Fabric.h"
#include "solidify/solidified_Matter_Session.h"
+#include "solidify/solidified_Matter_Session_Store.h"
#include "solidify/solidified_Matter_Commissioning_Data.h"
#include "solidify/solidified_Matter_Commissioning.h"
#include "solidify/solidified_Matter_Message.h"
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be
index 370571e5b..c55432916 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be
@@ -35,38 +35,21 @@ class Matter_Commisioning_Context
var responder # reference to the caller, sending packets
var device # root device object
- var spake
- var future_initiator_session_id
- var future_local_session_id
- # used by TT hash
- var PBKDFParamRequest, PBKDFParamResponse
- # PAKE
- var y # 32 bytes random known only by verifier
- var pA, pB, cA, cB
- var Ke
- # CASE
- var ResponderEph_priv, ResponderEph_pub
- var initiatorEph_pub
- # Session data
- var created
- var I2RKey, R2IKey, AttestationChallenge
-
+
def init(responder)
import crypto
self.responder = responder
self.device = responder.device
- # generate y once
- self.y = crypto.random(32)
end
#############################################################
- def add_session(local_session_id, initiator_session_id, i2r, r2i, ac, created)
+ def add_session(local_session_id, initiator_session_id, i2r, r2i, ac)
import string
# create session object
tasmota.log(string.format("MTR: add_session local_session_id=%i initiator_session_id=%i", local_session_id, initiator_session_id), 3)
var session = self.device.sessions.create_session(local_session_id, initiator_session_id)
- session.set_keys(i2r, r2i, ac, created)
+ session.set_keys(i2r, r2i, ac)
end
def process_incoming(msg)
@@ -126,6 +109,7 @@ class Matter_Commisioning_Context
def parse_PBKDFParamRequest(msg)
import crypto
import string
+ var session = msg.session
# sanity checks
if msg.opcode != 0x20 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid PBKDFParamRequest message", 2)
@@ -136,7 +120,7 @@ class Matter_Commisioning_Context
var pbkdfparamreq = matter.PBKDFParamRequest().parse(msg.raw, msg.app_payload_idx)
msg.session.set_mode_PASE()
- self.PBKDFParamRequest = msg.raw[msg.app_payload_idx..]
+ session.__Msg1 = msg.raw[msg.app_payload_idx..]
# sanity check for PBKDFParamRequest
if pbkdfparamreq.passcodeId != 0
@@ -147,9 +131,9 @@ class Matter_Commisioning_Context
end
# record the initiator_session_id
- self.future_initiator_session_id = pbkdfparamreq.initiator_session_id
- self.future_local_session_id = self.device.sessions.gen_local_session_id()
- tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", self.future_local_session_id, msg.remote_ip, msg.remote_port), 2)
+ session.__future_initiator_session_id = pbkdfparamreq.initiator_session_id
+ session.__future_local_session_id = self.device.sessions.gen_local_session_id()
+ tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 2)
# prepare response
var pbkdfparamresp = matter.PBKDFParamResponse()
@@ -157,14 +141,14 @@ class Matter_Commisioning_Context
pbkdfparamresp.initiatorRandom = pbkdfparamreq.initiatorRandom
# generate 32 bytes random
pbkdfparamresp.responderRandom = crypto.random(32)
- pbkdfparamresp.responderSessionId = self.future_local_session_id
+ pbkdfparamresp.responderSessionId = session.__future_local_session_id
pbkdfparamresp.pbkdf_parameters_salt = self.device.commissioning_salt
pbkdfparamresp.pbkdf_parameters_iterations = self.device.commissioning_iterations
tasmota.log("MTR: pbkdfparamresp: " + str(matter.inspect(pbkdfparamresp)), 4)
var pbkdfparamresp_raw = pbkdfparamresp.tlv2raw()
tasmota.log("MTR: pbkdfparamresp_raw: " + pbkdfparamresp_raw.tohex(), 4)
- self.PBKDFParamResponse = pbkdfparamresp_raw
+ session.__Msg2 = pbkdfparamresp_raw
var resp = msg.build_response(0x21 #-PBKDR Response-#, true)
var raw = resp.encode_frame(pbkdfparamresp_raw)
@@ -175,6 +159,7 @@ class Matter_Commisioning_Context
def parse_Pake1(msg)
import crypto
+ var session = msg.session
# sanity checks
if msg.opcode != 0x22 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid Pake1 message", 2)
@@ -184,67 +169,68 @@ class Matter_Commisioning_Context
end
var pake1 = matter.Pake1().parse(msg.raw, msg.app_payload_idx)
- self.pA = pake1.pA
- # tasmota.log("MTR: received pA=" + self.pA.tohex(), 4)
-
+ var pA = pake1.pA
+ # tasmota.log("MTR: received pA=" + pA.tohex(), 4)
- # tasmota.log("MTR: spake: " + matter.inspect(self.spake), 4)
# instanciate SPAKE
# for testing purpose, we don't send `w1` to make sure
- self.spake = crypto.SPAKE2P_Matter(self.device.commissioning_w0, nil, self.device.commissioning_L)
+ var spake = crypto.SPAKE2P_Matter(self.device.commissioning_w0, nil, self.device.commissioning_L)
+
+ # generate `y` nonce (not persisted)
+ var y = crypto.random(32) # 32 bytes random known only by verifier
+
# compute pB
- self.spake.compute_pB(self.y)
- self.pB = self.spake.pB
- # tasmota.log("MTR: y=" + self.y.tohex(), 4)
- # tasmota.log("MTR: pb=" + self.pB.tohex(), 4)
+ spake.compute_pB(y)
+ # tasmota.log("MTR: y=" + y.tohex(), 4)
+ # tasmota.log("MTR: pb=" + spake.pB.tohex(), 4)
# compute ZV
- self.spake.compute_ZV_verifier(self.pA)
- # tasmota.log("MTR: Z=" + self.spake.Z.tohex(), 4)
- # tasmota.log("MTR: V=" + self.spake.V.tohex(), 4)
+ spake.compute_ZV_verifier(pA)
+ # tasmota.log("MTR: Z=" + spake.Z.tohex(), 4)
+ # tasmota.log("MTR: V=" + spake.V.tohex(), 4)
var context = crypto.SHA256()
context.update(bytes().fromstring(self.Matter_Context_Prefix))
- context.update(self.PBKDFParamRequest)
- context.update(self.PBKDFParamResponse)
+ context.update(session.__Msg1)
+ context.update(session.__Msg2)
var context_hash = context.out()
# tasmota.log("MTR: Context=" + context_hash.tohex(), 4)
# add pA
- self.spake.pA = self.pA
+ spake.pA = pA
- self.spake.set_context(context_hash)
- self.spake.compute_TT_hash(true) # `true` to indicate it's Matter variant to SPAKE2+
+ spake.set_context(context_hash)
+ spake.compute_TT_hash(true) # `true` to indicate it's Matter variant to SPAKE2+
# tasmota.log("MTR: ------------------------------", 4)
- # tasmota.log("MTR: Context = " + self.spake.Context.tohex(), 4)
- # tasmota.log("MTR: M = " + self.spake.M.tohex(), 4)
- # tasmota.log("MTR: N = " + self.spake.N.tohex(), 4)
- # tasmota.log("MTR: pA = " + self.spake.pA.tohex(), 4)
- # tasmota.log("MTR: pB = " + self.spake.pB.tohex(), 4)
- # tasmota.log("MTR: Z = " + self.spake.Z.tohex(), 4)
- # tasmota.log("MTR: V = " + self.spake.V.tohex(), 4)
- # tasmota.log("MTR: w0 = " + self.spake.w0.tohex(), 4)
+ # tasmota.log("MTR: Context = " + spake.Context.tohex(), 4)
+ # tasmota.log("MTR: M = " + spake.M.tohex(), 4)
+ # tasmota.log("MTR: N = " + spake.N.tohex(), 4)
+ # tasmota.log("MTR: pA = " + spake.pA.tohex(), 4)
+ # tasmota.log("MTR: pB = " + spake.pB.tohex(), 4)
+ # tasmota.log("MTR: Z = " + spake.Z.tohex(), 4)
+ # tasmota.log("MTR: V = " + spake.V.tohex(), 4)
+ # tasmota.log("MTR: w0 = " + spake.w0.tohex(), 4)
# tasmota.log("MTR: ------------------------------", 4)
- # tasmota.log("MTR: Kmain =" + self.spake.Kmain.tohex(), 4)
+ # tasmota.log("MTR: Kmain =" + spake.Kmain.tohex(), 4)
- # tasmota.log("MTR: KcA =" + self.spake.KcA.tohex(), 4)
- # tasmota.log("MTR: KcB =" + self.spake.KcB.tohex(), 4)
- # tasmota.log("MTR: K_shared=" + self.spake.K_shared.tohex(), 4)
- # tasmota.log("MTR: Ke =" + self.spake.Ke.tohex(), 4)
- self.cB = self.spake.cB
- self.Ke = self.spake.Ke
- # tasmota.log("MTR: cB=" + self.cB.tohex(), 4)
+ # tasmota.log("MTR: KcA =" + spake.KcA.tohex(), 4)
+ # tasmota.log("MTR: KcB =" + spake.KcB.tohex(), 4)
+ # tasmota.log("MTR: K_shared=" + spake.K_shared.tohex(), 4)
+ # tasmota.log("MTR: Ke =" + spake.Ke.tohex(), 4)
+ # tasmota.log("MTR: cB=" + spake.cB.tohex(), 4)
var pake2 = matter.Pake2()
- pake2.pB = self.pB
- pake2.cB = self.cB
+ pake2.pB = spake.pB
+ pake2.cB = spake.cB
# tasmota.log("MTR: pake2: " + matter.inspect(pake2), 4)
var pake2_raw = pake2.tlv2raw()
# tasmota.log("MTR: pake2_raw: " + pake2_raw.tohex(), 4)
+ session.__spake_cA = spake.cA
+ session.__spake_Ke = spake.Ke
# now package the response message
var resp = msg.build_response(0x23 #-pake-2-#, true) # no reliable flag
@@ -256,6 +242,7 @@ class Matter_Commisioning_Context
def parse_Pake3(msg)
import crypto
+ var session = msg.session
# sanity checks
if msg.opcode != 0x24 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid Pake3 message", 2)
@@ -265,11 +252,11 @@ class Matter_Commisioning_Context
end
var pake3 = matter.Pake3().parse(msg.raw, msg.app_payload_idx)
- self.cA = pake3.cA
- # tasmota.log("MTR: received cA=" + self.cA.tohex(), 4)
+ var cA = pake3.cA
+ # tasmota.log("MTR: received cA=" + cA.tohex(), 4)
# check the value against computed
- if self.cA != self.spake.cA
+ if cA != session.__spake_cA
tasmota.log("MTR: invalid cA received", 2)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
@@ -277,23 +264,23 @@ class Matter_Commisioning_Context
end
# send PakeFinished and compute session key
- self.created = tasmota.rtc()['utc']
- var session_keys = crypto.HKDF_SHA256().derive(self.Ke, bytes(), bytes().fromstring(self.SEKeys_Info), 48)
- self.I2RKey = session_keys[0..15]
- self.R2IKey = session_keys[16..31]
- self.AttestationChallenge = session_keys[32..47]
+ var created = tasmota.rtc()['utc']
+ var session_keys = crypto.HKDF_SHA256().derive(session.__spake_Ke, bytes(), bytes().fromstring(self.SEKeys_Info), 48)
+ var I2RKey = session_keys[0..15]
+ var R2IKey = session_keys[16..31]
+ var AttestationChallenge = session_keys[32..47]
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: session_keys=" + session_keys.tohex(), 4)
- # tasmota.log("MTR: I2RKey =" + self.I2RKey.tohex(), 4)
- # tasmota.log("MTR: R2IKey =" + self.R2IKey.tohex(), 4)
- # tasmota.log("MTR: AC =" + self.AttestationChallenge.tohex(), 4)
+ # tasmota.log("MTR: I2RKey =" + I2RKey.tohex(), 4)
+ # tasmota.log("MTR: R2IKey =" + R2IKey.tohex(), 4)
+ # tasmota.log("MTR: AC =" + AttestationChallenge.tohex(), 4)
# tasmota.log("MTR: ******************************", 4)
# StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISHMENT_SUCCESS)
var raw = self.send_status_report(msg, 0x00, 0x0000, 0x0000, false)
- self.add_session(self.future_local_session_id, self.future_initiator_session_id, self.I2RKey, self.R2IKey, self.AttestationChallenge, self.created)
+ self.add_session(session.__future_local_session_id, session.__future_initiator_session_id, I2RKey, R2IKey, AttestationChallenge, created)
return true
end
@@ -323,6 +310,7 @@ class Matter_Commisioning_Context
def parse_Sigma1(msg)
import crypto
import string
+ var session = msg.session
# sanity checks
if msg.opcode != 0x30 || msg.local_session_id != 0 || msg.protocol_id != 0
# tasmota.log("MTR: invalid Sigma1 message", 2)
@@ -333,7 +321,7 @@ class Matter_Commisioning_Context
var sigma1 = matter.Sigma1().parse(msg.raw, msg.app_payload_idx)
tasmota.log(string.format("MTR: sigma1=%s", matter.inspect(sigma1)), 4)
- self.initiatorEph_pub = sigma1.initiatorEphPubKey
+ session.__initiator_pub = sigma1.initiatorEphPubKey
# find session
var is_resumption = (sigma1.resumptionID != nil && sigma1.initiatorResumeMIC != nil)
@@ -342,7 +330,6 @@ class Matter_Commisioning_Context
is_resumption = false
# Check that it's a resumption
- var session = msg.session
var session_resumption
if is_resumption
session_resumption = self.device.sessions.find_session_by_resumption_id(sigma1.resumptionID)
@@ -378,7 +365,6 @@ class Matter_Commisioning_Context
session.set_mode_CASE()
session.__future_initiator_session_id = sigma1.initiator_session_id # update initiator_session_id
session.__future_local_session_id = self.device.sessions.gen_local_session_id()
- # self.future_local_session_id = session.__future_local_session_id
tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 2)
# Generate and Send Sigma2_Resume
@@ -467,8 +453,7 @@ class Matter_Commisioning_Context
session.__future_initiator_session_id = sigma1.initiator_session_id # update initiator_session_id
session.__future_local_session_id = self.device.sessions.gen_local_session_id()
- self.future_local_session_id = session.__future_local_session_id
- tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", self.future_local_session_id, msg.remote_ip, msg.remote_port), 2)
+ 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)
@@ -480,18 +465,18 @@ class Matter_Commisioning_Context
# Compute Sigma2, p.162
session.resumption_id = crypto.random(16)
- self.ResponderEph_priv = crypto.random(32)
- self.ResponderEph_pub = crypto.EC_P256().public_key(self.ResponderEph_priv)
- tasmota.log("MTR: ResponderEph_priv ="+self.ResponderEph_priv.tohex(), 4)
- tasmota.log("MTR: ResponderEph_pub ="+self.ResponderEph_pub.tohex(), 4)
+ 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)
+ tasmota.log("MTR: ResponderEph_pub ="+session.__responder_pub.tohex(), 4)
var responderRandom = crypto.random(32)
- session.shared_secret = crypto.EC_P256().shared_key(self.ResponderEph_priv, sigma1.initiatorEphPubKey)
+ session.shared_secret = crypto.EC_P256().shared_key(session.__responder_priv, sigma1.initiatorEphPubKey)
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(3, matter.TLV.B2, self.ResponderEph_pub)
+ 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())
@@ -512,7 +497,7 @@ class Matter_Commisioning_Context
# Compute S2K, p.175
var s2k_info = bytes().fromstring(self.S2K_Info)
- var s2k_salt = session.get_ipk_group_key() + responderRandom + self.ResponderEph_pub + TranscriptHash
+ var s2k_salt = session.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)
@@ -530,8 +515,8 @@ class Matter_Commisioning_Context
var sigma2 = matter.Sigma2()
sigma2.responderRandom = responderRandom
- sigma2.responderSessionId = self.future_local_session_id
- sigma2.responderEphPubKey = self.ResponderEph_pub
+ sigma2.responderSessionId = session.__future_local_session_id
+ sigma2.responderEphPubKey = session.__responder_pub
sigma2.encrypted2 = TBEData2Encrypted
tasmota.log("MTR: sigma2: " + matter.inspect(sigma2), 4)
var sigma2_raw = sigma2.tlv2raw()
@@ -617,8 +602,8 @@ class Matter_Commisioning_Context
var sigma3_tbs = matter.TLV.Matter_TLV_struct()
sigma3_tbs.add_TLV(1, matter.TLV.B1, initiatorNOC)
sigma3_tbs.add_TLV(2, matter.TLV.B1, initiatorICAC)
- sigma3_tbs.add_TLV(3, matter.TLV.B1, self.initiatorEph_pub)
- sigma3_tbs.add_TLV(4, matter.TLV.B1, self.ResponderEph_pub)
+ sigma3_tbs.add_TLV(3, matter.TLV.B1, session.__initiator_pub)
+ sigma3_tbs.add_TLV(4, matter.TLV.B1, session.__responder_pub)
tasmota.log("MTR: * sigma3_tbs = " + str(sigma3_tbs), 4)
var sigma3_tbs_raw = sigma3_tbs.tlv2raw()
tasmota.log("MTR: * sigma3_tbs_raw= " + sigma3_tbs_raw.tohex(), 4)
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be b/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be
new file mode 100644
index 000000000..aee02ef36
--- /dev/null
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be
@@ -0,0 +1,288 @@
+#
+# Matter_Fabric.be - Support for Matter Fabric
+#
+# Copyright (C) 2023 Stephan Hadinger & Theo Arends
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+
+import matter
+
+#@ solidify:Matter_Fabric,weak
+
+# for solidification only
+class Matter_Expirable end
+
+#################################################################################
+# Matter_Fabric class
+#
+# Record all information for a fabric that has provisioned
+#
+# By convetion:
+# attributes with a normal name are persisted (unless they are instances)
+# attributes starting with '_' are not persisted
+# attributes starting with '__' are cleared when a new session is created
+#################################################################################
+class Matter_Fabric : Matter_Expirable
+ static var _MAX_CASE = 5 # maximum number of concurrent CASE sessions per fabric
+ static var _GROUP_SND_INCR = 32 # counter increased when persisting
+ # Group Key Derivation
+ static var _GROUP_KEY = "GroupKey v1.0" # starting with double `_` means it's not writable
+
+ var _store # reference back to session store
+ # timestamp
+ var created
+ # fabric-index
+ var fabric_index # index number for fabrics, starts with `1`
+ var fabric_parent # index of the parent fabric, i.e. the fabric that triggered the provisioning (if nested)
+ # list of active sessions
+ var _sessions # only active CASE sessions that need to be persisted
+ # our own private key
+ var no_private_key # private key of the device certificate (generated at commissioning)
+ # NOC information
+ var root_ca_certificate # root certificate of the initiator
+ var noc # Node Operational Certificate in TLV Matter Certificate
+ var icac # Initiator CA Certificate in TLV Matter Certificate
+ var ipk_epoch_key # timestamp
+ # Information extracted from `noc`
+ var fabric_id # fabric identifier as bytes(8) little endian
+ var fabric_compressed # comrpessed fabric_id identifier, hashed with root_ca public key
+ var device_id # our own device id bytes(8) little endian
+ var fabric_label # set by UpdateFabricLabel
+ # global group counters (send)
+ var counter_group_data_snd # counter for group data
+ var counter_group_ctrl_snd # counter for group command
+ var _counter_group_data_snd_impl# implementation of counter_group_data_snd by matter.Counter()
+ var _counter_group_ctrl_snd_impl# implementation of counter_group_ctrl_snd by matter.Counter()
+ # Admin info extracted from NOC/ICAC
+ var admin_subject
+ var admin_vendor
+
+ #############################################################
+ def init(store)
+ import crypto
+ self._store = store
+ self._sessions = matter.Expirable_list()
+ self.fabric_label = ""
+ self.created = tasmota.rtc()['utc']
+ # init group counters
+ self._counter_group_data_snd_impl = matter.Counter()
+ self._counter_group_ctrl_snd_impl = matter.Counter()
+ self.counter_group_data_snd = self._counter_group_data_snd_impl.next() + self._GROUP_SND_INCR
+ self.counter_group_ctrl_snd = self._counter_group_data_snd_impl.next() + self._GROUP_SND_INCR
+ end
+
+ def get_noc() return self.noc end
+ def get_icac() return self.icac end
+ def get_ipk_epoch_key() return self.ipk_epoch_key end
+ def get_fabric_id() return self.fabric_id end
+ def get_device_id() return self.device_id end
+ def get_fabric_compressed() return self.fabric_compressed end
+ def get_fabric_label() return self.fabric_label end
+ def get_admin_subject() return self.admin_subject end
+ def get_admin_vendor() return self.admin_vendor end
+ def get_ca() return self.root_ca_certificate end
+ def get_fabric_index() return self.fabric_index end
+
+ def set_fabric_index(v) self.fabric_index = v end
+
+ #############################################################
+ # When hydrating from persistance, update counters
+ def hydrate_post()
+ # reset counter_snd to highest known.
+ # We advance it only in case it is actually used
+ # This avoids updaing counters on dead sessions
+ self._counter_group_data_snd_impl.reset(self.counter_group_data_snd)
+ self._counter_group_ctrl_snd_impl.reset(self.counter_group_ctrl_snd)
+ self.counter_group_data_snd = self._counter_group_data_snd_impl.val()
+ self.counter_group_ctrl_snd = self._counter_group_ctrl_snd_impl.val()
+ end
+
+ #############################################################
+ # Management of security counters
+ #############################################################
+ # Provide the next counter value, and update the last know persisted if needed
+ #
+ def counter_group_data_snd_next()
+ import string
+ var next = self._counter_group_data_snd_impl.next()
+ tasmota.log(string.format("MTR: . Counter_group_data_snd=%i", next), 3)
+ if matter.Counter.is_greater(next, self.counter_group_data_snd)
+ self.counter_group_data_snd = next + self._GROUP_SND_INCR
+ if self.does_persist()
+ # the persisted counter is behind the actual counter
+ self.save()
+ end
+ end
+ return next
+ end
+ #############################################################
+ # Provide the next counter value, and update the last know persisted if needed
+ #
+ def counter_group_ctrl_snd_next()
+ import string
+ var next = self._counter_group_ctrl_snd_impl.next()
+ tasmota.log(string.format("MTR: . Counter_group_ctrl_snd=%i", next), 3)
+ if matter.Counter.is_greater(next, self.counter_group_ctrl_snd)
+ self.counter_group_ctrl_snd = next + self._GROUP_SND_INCR
+ if self.does_persist()
+ # the persisted counter is behind the actual counter
+ self.save()
+ end
+ end
+ return next
+ end
+
+ #############################################################
+ # Called before removal
+ def log_new_fabric()
+ import string
+ tasmota.log(string.format("MTR: +Fabric fab='%s'", self.get_fabric_id().copy().reverse().tohex()), 2)
+ end
+
+ #############################################################
+ # Called before removal
+ def before_remove()
+ import string
+ tasmota.log(string.format("MTR: -Fabric fab='%s' (removed)", self.get_fabric_id().copy().reverse().tohex()), 2)
+ end
+
+ #############################################################
+ # Operational Group Key Derivation, 4.15.2, p.182
+ def get_ipk_group_key()
+ if self.ipk_epoch_key == nil || self.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.ipk_epoch_key, self.fabric_compressed, info, 16)
+ return hash
+ end
+
+ def get_ca_pub()
+ var ca = self.root_ca_certificate
+ if ca
+ var m = matter.TLV.parse(ca)
+ return m.findsubval(9)
+ end
+ end
+
+ #############################################################
+ # add session to list of persisted sessions
+ # check for duplicates
+ def add_session(s)
+ if self._sessions.find(s) == nil
+ while size(self._sessions) >= self._MAX_CASE
+ self._sessions.remove(self._sessions.find(self.get_oldest_session()))
+ end
+ self._sessions.push(s)
+ end
+ end
+
+ def get_oldest_session() return self.get_old_recent_session(true) end
+ def get_newest_session() return self.get_old_recent_session(false) end
+
+ # get the oldest or most recent session (oldest indicates direction)
+ def get_old_recent_session(oldest)
+ if size(self._sessions) == 0 return nil end
+ var session = self._sessions[0]
+ var timestamp = session.last_used
+
+ var idx = 1
+ while idx < size(self._sessions)
+ var time2 = self._sessions[idx].last_used
+ if (oldest ? time2 < timestamp : time2 > timestamp)
+ session = self._sessions[idx]
+ timestamp = time2
+ end
+ idx += 1
+ end
+ return session
+ end
+
+ #############################################################
+ # Fabric::tojson()
+ #
+ # convert a single entry as json
+ # returns a JSON string
+ #############################################################
+ def tojson()
+ import json
+ import string
+ import introspect
+
+ self.persist_pre()
+ var keys = []
+ for k : introspect.members(self)
+ var v = introspect.get(self, k)
+ if type(v) != 'function' && k[0] != '_' keys.push(k) end
+ end
+ keys = matter.sort(keys)
+
+ var r = []
+ for k : keys
+ var v = introspect.get(self, k)
+ if v == nil continue end
+ if isinstance(v, bytes) v = "$$" + v.tob64() end # bytes
+ r.push(string.format("%s:%s", json.dump(str(k)), json.dump(v)))
+ end
+
+ # add sessions
+ var s = []
+ for sess : self._sessions.persistables()
+ s.push(sess.tojson())
+ end
+ if size(s) > 0
+ var s_list = "[" + s.concat(",") + "]"
+ r.push('"_sessions":' + s_list)
+ end
+
+ self.persist_post()
+ return "{" + r.concat(",") + "}"
+ end
+
+ #############################################################
+ # fromjson()
+ #
+ # reads a map and load arguments
+ # returns an new instance of fabric
+ # don't load embedded session, this is done by store
+ # i.e. ignore any key starting with '_'
+ #############################################################
+ static def fromjson(store, values)
+ import string
+ import introspect
+ var self = matter.Fabric(store)
+
+ for k : values.keys()
+ if k[0] == '_' continue end # ignore if key starts with '_'
+ var v = values[k]
+ # standard values
+ if type(v) == 'string'
+ if string.find(v, "0x") == 0 # treat as bytes
+ introspect.set(self, k, bytes().fromhex(v[2..]))
+ elif string.find(v, "$$") == 0 # treat as bytes
+ introspect.set(self, k, bytes().fromb64(v[2..]))
+ else
+ introspect.set(self, k, v)
+ end
+ else
+ introspect.set(self, k, v)
+ end
+ end
+ self.hydrate_post()
+ return self
+ end
+
+end
+matter.Fabric = Matter_Fabric
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be
index c4281e09c..5936c44cf 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be
@@ -1,5 +1,5 @@
#
-# Matter_Session.be - Support for Matter Sessions and Session Store
+# Matter_Session.be - Support for Matter Sessions
#
# Copyright (C) 2023 Stephan Hadinger & Theo Arends
#
@@ -19,276 +19,11 @@
import matter
-#@ solidify:Matter_Fabric,weak
#@ solidify:Matter_Session,weak
-#@ solidify:Matter_Session_Store,weak
# for compilation
class Matter_Expirable end
-#################################################################################
-# Matter_Fabric class
-#
-# Record all information for a fabric that has provisioned
-#
-# By convetion:
-# attributes with a normal name are persisted (unless they are instances)
-# attributes starting with '_' are not persisted
-# attributes starting with '__' are cleared when a new session is created
-#################################################################################
-class Matter_Fabric : Matter_Expirable
- static var _MAX_CASE = 5 # maximum number of concurrent CASE sessions per fabric
- static var _GROUP_SND_INCR = 32 # counter increased when persisting
- # Group Key Derivation
- static var _GROUP_KEY = "GroupKey v1.0" # starting with double `_` means it's not writable
-
- var _store # reference back to session store
- # timestamp
- var created
- # fabric-index
- var fabric_index # index number for fabrics, starts with `1`
- var fabric_parent # index of the parent fabric, i.e. the fabric that triggered the provisioning (if nested)
- # list of active sessions
- var _sessions # only active CASE sessions that need to be persisted
- # our own private key
- var no_private_key # private key of the device certificate (generated at commissioning)
- # NOC information
- var root_ca_certificate # root certificate of the initiator
- var noc # Node Operational Certificate in TLV Matter Certificate
- var icac # Initiator CA Certificate in TLV Matter Certificate
- var ipk_epoch_key # timestamp
- # Information extracted from `noc`
- var fabric_id # fabric identifier as bytes(8) little endian
- var fabric_compressed # comrpessed fabric_id identifier, hashed with root_ca public key
- var device_id # our own device id bytes(8) little endian
- var fabric_label # set by UpdateFabricLabel
- # global group counters (send)
- var counter_group_data_snd # counter for group data
- var counter_group_ctrl_snd # counter for group command
- var _counter_group_data_snd_impl# implementation of counter_group_data_snd by matter.Counter()
- var _counter_group_ctrl_snd_impl# implementation of counter_group_ctrl_snd by matter.Counter()
- # Admin info extracted from NOC/ICAC
- var admin_subject
- var admin_vendor
-
- #############################################################
- def init(store)
- import crypto
- self._store = store
- self._sessions = matter.Expirable_list()
- self.fabric_label = ""
- self.created = tasmota.rtc()['utc']
- # init group counters
- self._counter_group_data_snd_impl = matter.Counter()
- self._counter_group_ctrl_snd_impl = matter.Counter()
- self.counter_group_data_snd = self._counter_group_data_snd_impl.next() + self._GROUP_SND_INCR
- self.counter_group_ctrl_snd = self._counter_group_data_snd_impl.next() + self._GROUP_SND_INCR
- end
-
- def get_noc() return self.noc end
- def get_icac() return self.icac end
- def get_ipk_epoch_key() return self.ipk_epoch_key end
- def get_fabric_id() return self.fabric_id end
- def get_device_id() return self.device_id end
- def get_fabric_compressed() return self.fabric_compressed end
- def get_fabric_label() return self.fabric_label end
- def get_admin_subject() return self.admin_subject end
- def get_admin_vendor() return self.admin_vendor end
- def get_ca() return self.root_ca_certificate end
- def get_fabric_index() return self.fabric_index end
-
- def set_fabric_index(v) self.fabric_index = v end
-
- #############################################################
- # When hydrating from persistance, update counters
- def hydrate_post()
- # reset counter_snd to highest known.
- # We advance it only in case it is actually used
- # This avoids updaing counters on dead sessions
- self._counter_group_data_snd_impl.reset(self.counter_group_data_snd)
- self._counter_group_ctrl_snd_impl.reset(self.counter_group_ctrl_snd)
- self.counter_group_data_snd = self._counter_group_data_snd_impl.val()
- self.counter_group_ctrl_snd = self._counter_group_ctrl_snd_impl.val()
- end
-
- #############################################################
- # Management of security counters
- #############################################################
- # Provide the next counter value, and update the last know persisted if needed
- #
- def counter_group_data_snd_next()
- import string
- var next = self._counter_group_data_snd_impl.next()
- tasmota.log(string.format("MTR: . Counter_group_data_snd=%i", next), 3)
- if matter.Counter.is_greater(next, self.counter_group_data_snd)
- self.counter_group_data_snd = next + self._GROUP_SND_INCR
- if self.does_persist()
- # the persisted counter is behind the actual counter
- self.save()
- end
- end
- return next
- end
- #############################################################
- # Provide the next counter value, and update the last know persisted if needed
- #
- def counter_group_ctrl_snd_next()
- import string
- var next = self._counter_group_ctrl_snd_impl.next()
- tasmota.log(string.format("MTR: . Counter_group_ctrl_snd=%i", next), 3)
- if matter.Counter.is_greater(next, self.counter_group_ctrl_snd)
- self.counter_group_ctrl_snd = next + self._GROUP_SND_INCR
- if self.does_persist()
- # the persisted counter is behind the actual counter
- self.save()
- end
- end
- return next
- end
-
- #############################################################
- # Called before removal
- def log_new_fabric()
- import string
- tasmota.log(string.format("MTR: +Fabric fab='%s'", self.get_fabric_id().copy().reverse().tohex()), 2)
- end
-
- #############################################################
- # Called before removal
- def before_remove()
- import string
- tasmota.log(string.format("MTR: -Fabric fab='%s' (removed)", self.get_fabric_id().copy().reverse().tohex()), 2)
- end
-
- #############################################################
- # Operational Group Key Derivation, 4.15.2, p.182
- def get_ipk_group_key()
- if self.ipk_epoch_key == nil || self.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.ipk_epoch_key, self.fabric_compressed, info, 16)
- return hash
- end
-
- def get_ca_pub()
- var ca = self.root_ca_certificate
- if ca
- var m = matter.TLV.parse(ca)
- return m.findsubval(9)
- end
- end
-
- #############################################################
- # add session to list of persisted sessions
- # check for duplicates
- def add_session(s)
- if self._sessions.find(s) == nil
- while size(self._sessions) >= self._MAX_CASE
- self._sessions.remove(self._sessions.find(self.get_oldest_session()))
- end
- self._sessions.push(s)
- end
- end
-
- def get_oldest_session() return self.get_old_recent_session(true) end
- def get_newest_session() return self.get_old_recent_session(false) end
-
- # get the oldest or most recent session (oldest indicates direction)
- def get_old_recent_session(oldest)
- if size(self._sessions) == 0 return nil end
- var session = self._sessions[0]
- var timestamp = session.last_used
-
- var idx = 1
- while idx < size(self._sessions)
- var time2 = self._sessions[idx].last_used
- if (oldest ? time2 < timestamp : time2 > timestamp)
- session = self._sessions[idx]
- timestamp = time2
- end
- idx += 1
- end
- return session
- end
-
- #############################################################
- # Fabric::tojson()
- #
- # convert a single entry as json
- # returns a JSON string
- #############################################################
- def tojson()
- import json
- import string
- import introspect
-
- self.persist_pre()
- var keys = []
- for k : introspect.members(self)
- var v = introspect.get(self, k)
- if type(v) != 'function' && k[0] != '_' keys.push(k) end
- end
- keys = matter.sort(keys)
-
- var r = []
- for k : keys
- var v = introspect.get(self, k)
- if v == nil continue end
- if isinstance(v, bytes) v = "$$" + v.tob64() end # bytes
- r.push(string.format("%s:%s", json.dump(str(k)), json.dump(v)))
- end
-
- # add sessions
- var s = []
- for sess : self._sessions.persistables()
- s.push(sess.tojson())
- end
- if size(s) > 0
- var s_list = "[" + s.concat(",") + "]"
- r.push('"_sessions":' + s_list)
- end
-
- self.persist_post()
- return "{" + r.concat(",") + "}"
- end
-
- #############################################################
- # fromjson()
- #
- # reads a map and load arguments
- # returns an new instance of fabric
- # don't load embedded session, this is done by store
- # i.e. ignore any key starting with '_'
- #############################################################
- static def fromjson(store, values)
- import string
- import introspect
- var self = matter.Fabric(store)
-
- for k : values.keys()
- if k[0] == '_' continue end # ignore if key starts with '_'
- var v = values[k]
- # standard values
- if type(v) == 'string'
- if string.find(v, "0x") == 0 # treat as bytes
- introspect.set(self, k, bytes().fromhex(v[2..]))
- elif string.find(v, "$$") == 0 # treat as bytes
- introspect.set(self, k, bytes().fromb64(v[2..]))
- else
- introspect.set(self, k, v)
- end
- else
- introspect.set(self, k, v)
- end
- end
- self.hydrate_post()
- return self
- end
-
-end
-matter.Fabric = Matter_Fabric
-
#################################################################################
# Matter_Session class
#
@@ -296,6 +31,7 @@ matter.Fabric = Matter_Fabric
# It can also be retrived by `source_node_id` when `local_session_id` is 0
#
# By convention, names starting with `_` are not persisted
+# Names starting with `__` are cleared when session is closed (transition from PASE to CASE or CASE finished)
#################################################################################
class Matter_Session : Matter_Expirable
static var _PASE = 1 # PASE authentication in progress
@@ -322,8 +58,8 @@ class Matter_Session : Matter_Expirable
var _counter_snd_impl # implementation of counter_snd by matter.Counter()
var _exchange_id # exchange id for locally initiated transaction, non-persistent
# keep track of last known IP/Port of the fabric
- var _ip # IP of the last received packet
- var _port # port of the last received packet
+ var _ip # IP of the last received packet (string)
+ var _port # port of the last received packet (int)
var _message_handler # pointer to the message handler for this session
# non-session counters
var _counter_insecure_rcv # counter for incoming messages
@@ -335,10 +71,15 @@ class Matter_Session : Matter_Expirable
var attestation_challenge # Attestation challenge
var peer_node_id
# breadcrumb
- var _breadcrumb # breadcrumb attribute for this session, prefix `__` so that it is not persisted and untouched
+ var _breadcrumb # breadcrumb attribute for this session, prefix `_` so that it is not persisted and untouched
# CASE
var resumption_id # bytes(16)
var shared_secret # ECDH shared secret used in CASE
+ var __responder_priv, __responder_pub
+ var __initiator_pub
+ # PASE
+ var __spake_cA # crypto.SPAKE2P_Matter object, cA
+ var __spake_Ke # crypto.SPAKE2P_Matter object, Ke
# Previous CASE messages for Transcript hash
var __Msg1, __Msg2
@@ -702,372 +443,6 @@ end
matter.Session = Matter_Session
-#################################################################################
-#################################################################################
-#################################################################################
-# Matter_Session_Store class
-#################################################################################
-#################################################################################
-#################################################################################
-class Matter_Session_Store
- var sessions
- var fabrics # list of provisioned fabrics
- static var _FABRICS = "_matter_fabrics.json"
-
- #############################################################
- def init()
- self.sessions = matter.Expirable_list()
- self.fabrics = matter.Expirable_list()
- end
-
- #############################################################
- # add provisioned fabric
- def add_fabric(fabric)
- if !isinstance(fabric, matter.Fabric) raise "value_error", "must be of class matter.Fabric" end
- if self.fabrics.find(fabric) == nil
- self.remove_redundant_fabric(fabric)
- self.fabrics.push(fabric)
- end
- end
-
- #############################################################
- # remove fabric
- def remove_fabric(fabric)
- var idx = 0
- while idx < size(self.sessions)
- if self.sessions[idx]._fabric == fabric
- self.sessions.remove(idx)
- else
- idx += 1
- end
- end
- self.fabrics.remove(self.fabrics.find(fabric)) # fail safe
- end
-
- #############################################################
- # Remove redudant fabric
- #
- # remove all other fabrics that have the same:
- # fabric_id / device_id
- def remove_redundant_fabric(f)
- var i = 0
- while i < size(self.fabrics)
- var fabric = self.fabrics[i]
- if fabric != f && fabric.fabric_id == f.fabric_id && fabric.device_id == f.device_id
- self.fabrics.remove(i)
- else
- i += 1
- end
- end
- end
-
- #############################################################
- # Returns an iterator on active fabrics
- def active_fabrics()
- self.remove_expired() # clean before
- return self.fabrics.persistables()
- end
-
- #############################################################
- # Count active fabrics
- #
- # Count the number of commissionned fabrics, i.e. persisted
- def count_active_fabrics()
- self.remove_expired() # clean before
- return self.fabrics.count_persistables()
- end
-
- #############################################################
- # Find fabric by index number
- #
- def find_fabric_by_index(fabric_index)
- for fab : self.active_fabrics()
- if fab.get_fabric_index() == fabric_index
- return fab
- end
- end
- return nil
- end
-
- #############################################################
- # Find children fabrics
- #
- # Find all children fabrics recursively and collate in array
- # includes the parent fabric as first element
- #
- # Ex:
- # matter_device.sessions.fabrics[1].fabric_parent = 1
- # matter_device.sessions.find_children_fabrics(1)
- #
- def find_children_fabrics(parent_index)
- if parent_index == nil return [] end
- var ret = [ parent_index ]
-
- def find_children_fabrics_inner(index)
- for fab: self.active_fabrics()
- if fab.fabric_parent == index
- # protect against infinite loops
- if ret.find() == nil
- var sub_index = fab.fabric_index
- ret.push(sub_index)
- find_children_fabrics_inner(sub_index)
- end
- end
- end
- end
-
- find_children_fabrics_inner(parent_index)
-
- # ret contains a list of indices
- return ret
- end
-
- #############################################################
- # Next fabric-idx
- #
- # starts at `1`, computes the next available fabric-idx
- def next_fabric_idx()
- self.remove_expired() # clean before
- var next_idx = 1
- for fab: self.active_fabrics()
- var fab_idx = fab.fabric_index
- if type(fab_idx) == 'int' && fab_idx >= next_idx
- next_idx = fab_idx + 1
- end
- end
- return next_idx
- end
-
- #############################################################
- # add session
- def create_session(local_session_id, initiator_session_id)
- var session = self.get_session_by_local_session_id(local_session_id)
- if session != nil self.remove_session(session) end
- session = matter.Session(self, local_session_id, initiator_session_id)
- self.sessions.push(session)
- return session
- end
-
- #############################################################
- # add session
- def add_session(s, expires_in_seconds)
- if expires_in_seconds != nil
- s.set_expire_in_seconds(expires_in_seconds)
- end
- self.sessions.push(s)
- end
-
- #############################################################
- def get_session_by_local_session_id(id)
- if id == nil return nil end
- var sz = size(self.sessions)
- var i = 0
- var sessions = self.sessions
- while i < sz
- var session = sessions[i]
- if session.local_session_id == id
- session.update()
- return session
- end
- i += 1
- end
- end
-
- #############################################################
- def get_session_by_source_node_id(nodeid)
- if nodeid == nil return nil end
- var sz = size(self.sessions)
- var i = 0
- var sessions = self.sessions
- while i < sz
- var session = sessions[i]
- if session._source_node_id == nodeid
- session.update()
- return session
- end
- i += 1
- end
- end
-
- #############################################################
- # Remove session by reference
- #
- def remove_session(s)
- var i = 0
- var sessions = self.sessions
- while i < size(self.sessions)
- if sessions[i] == s
- sessions.remove(i)
- else
- i += 1
- end
- end
- end
-
- #############################################################
- # Generate a new local_session_id
- def gen_local_session_id()
- import crypto
- while true
- var candidate_local_session_id = crypto.random(2).get(0, 2)
-
- if self.get_session_by_local_session_id(candidate_local_session_id) == nil
- return candidate_local_session_id
- end
-
- end
- end
-
- #############################################################
- # remove_expired
- #
- def remove_expired()
- self.sessions.every_second()
- self.fabrics.every_second()
- end
-
- #############################################################
- # call remove_expired every second
- #
- def every_second()
- self.remove_expired()
- end
-
- #############################################################
- # find or create a session for unencrypted traffic
- # expires in `expire` seconds
- def find_session_source_id_unsecure(source_node_id, expire)
- var session = self.get_session_by_source_node_id(source_node_id)
- if session == nil
- session = matter.Session(self, 0, 0)
- session._source_node_id = source_node_id
- self.sessions.push(session)
- session.set_expire_in_seconds(expire)
- end
- session.update()
- return session
- end
-
- #############################################################
- # find session by resumption id
- def find_session_by_resumption_id(resumption_id)
- import string
- if !resumption_id return nil end
- var i = 0
- var sessions = self.sessions
- while i < size(sessions)
- var session = sessions[i]
- tasmota.log(string.format("MTR: session.resumption_id=%s vs %s", str(session.resumption_id), str(resumption_id)))
- if session.resumption_id == resumption_id && session.shared_secret != nil
- tasmota.log(string.format("MTR: session.shared_secret=%s", str(session.shared_secret)))
- session.update()
- return session
- end
- i += 1
- end
- end
-
- #############################################################
- # list of sessions that are active, i.e. have been
- # successfully commissioned
- #
- def sessions_active()
- var ret = []
- var idx = 0
- while idx < size(self.sessions)
- var session = self.sessions[idx]
- if session.get_device_id() && session.get_fabric_id()
- ret.push(session)
- end
- idx += 1
- end
- return ret
- end
-
- #############################################################
- def save_fabrics()
- import json
- self.remove_expired() # clean before saving
- var sessions_saved = 0
-
- var fabs = []
- for f : self.fabrics.persistables()
- for _ : f._sessions.persistables() sessions_saved += 1 end # count persitable sessions
- fabs.push(f.tojson())
- end
- var fabs_size = size(fabs)
- fabs = "[" + fabs.concat(",") + "]"
-
- try
- import string
-
- var f = open(self._FABRICS, "w")
- f.write(fabs)
- f.close()
- tasmota.log(string.format("MTR: =Saved %i fabric(s) and %i session(s)", fabs_size, sessions_saved), 2)
- except .. as e, m
- tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
- end
- end
-
- #############################################################
- # load fabrics and associated sessions
- def load_fabrics()
- import string
- try
- self.sessions = matter.Expirable_list() # remove any left-over
- self.fabrics = matter.Expirable_list() # remove any left-over
- var f = open(self._FABRICS)
- var file_content = f.read()
- f.close()
-
- import json
- var file_json = json.load(file_content)
- file_content = nil
- tasmota.gc() # clean-up a potential long string
-
- for v : file_json # iterate on values
- # read fabric
- var fabric = matter.Fabric.fromjson(self, v)
- fabric.set_no_expiration()
- fabric.set_persist(true)
-
- # iterate on sessions
- var sessions_json = v.find("_sessions", [])
-
- for sess_json : sessions_json
- var session = matter.Session.fromjson(self, sess_json, fabric)
- if session != nil
- session.set_no_expiration()
- session.set_persist(true)
- self.add_session(session)
- fabric.add_session(session)
- end
- end
-
- self.fabrics.push(fabric)
- end
-
- tasmota.log(string.format("MTR: Loaded %i fabric(s)", size(self.fabrics)), 2)
- except .. as e, m
- if e != "io_error"
- tasmota.log("MTR: Session_Store::load Exception:" + str(e) + "|" + str(m), 2)
- end
- end
- # persistables are normally not expiring
- # if self.remove_expired() # clean after load
- # self.save_fabrics()
- # end
- end
-
- #############################################################
- def create_fabric()
- var fabric = matter.Fabric(self)
- return fabric
- end
-end
-matter.Session_Store = Matter_Session_Store
-
#-
# Unit test
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be
new file mode 100644
index 000000000..86e9af6c9
--- /dev/null
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be
@@ -0,0 +1,391 @@
+#
+# Matter_Session_Store.be - Support for Matter Session Store
+#
+# Copyright (C) 2023 Stephan Hadinger & Theo Arends
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+#
+
+import matter
+
+#@ solidify:Matter_Session_Store,weak
+
+# for compilation
+class Matter_Expirable end
+
+#################################################################################
+#################################################################################
+#################################################################################
+# Matter_Session_Store class
+#################################################################################
+#################################################################################
+#################################################################################
+class Matter_Session_Store
+ var sessions
+ var fabrics # list of provisioned fabrics
+ static var _FABRICS = "_matter_fabrics.json"
+
+ #############################################################
+ def init()
+ self.sessions = matter.Expirable_list()
+ self.fabrics = matter.Expirable_list()
+ end
+
+ #############################################################
+ # add provisioned fabric
+ def add_fabric(fabric)
+ if !isinstance(fabric, matter.Fabric) raise "value_error", "must be of class matter.Fabric" end
+ if self.fabrics.find(fabric) == nil
+ self.remove_redundant_fabric(fabric)
+ self.fabrics.push(fabric)
+ end
+ end
+
+ #############################################################
+ # remove fabric
+ def remove_fabric(fabric)
+ var idx = 0
+ while idx < size(self.sessions)
+ if self.sessions[idx]._fabric == fabric
+ self.sessions.remove(idx)
+ else
+ idx += 1
+ end
+ end
+ self.fabrics.remove(self.fabrics.find(fabric)) # fail safe
+ end
+
+ #############################################################
+ # Remove redudant fabric
+ #
+ # remove all other fabrics that have the same:
+ # fabric_id / device_id
+ def remove_redundant_fabric(f)
+ var i = 0
+ while i < size(self.fabrics)
+ var fabric = self.fabrics[i]
+ if fabric != f && fabric.fabric_id == f.fabric_id && fabric.device_id == f.device_id
+ self.fabrics.remove(i)
+ else
+ i += 1
+ end
+ end
+ end
+
+ #############################################################
+ # Returns an iterator on active fabrics
+ def active_fabrics()
+ self.remove_expired() # clean before
+ return self.fabrics.persistables()
+ end
+
+ #############################################################
+ # Count active fabrics
+ #
+ # Count the number of commissionned fabrics, i.e. persisted
+ def count_active_fabrics()
+ self.remove_expired() # clean before
+ return self.fabrics.count_persistables()
+ end
+
+ #############################################################
+ # Find fabric by index number
+ #
+ def find_fabric_by_index(fabric_index)
+ for fab : self.active_fabrics()
+ if fab.get_fabric_index() == fabric_index
+ return fab
+ end
+ end
+ return nil
+ end
+
+ #############################################################
+ # Find children fabrics
+ #
+ # Find all children fabrics recursively and collate in array
+ # includes the parent fabric as first element
+ #
+ # Ex:
+ # matter_device.sessions.fabrics[1].fabric_parent = 1
+ # matter_device.sessions.find_children_fabrics(1)
+ #
+ def find_children_fabrics(parent_index)
+ if parent_index == nil return [] end
+ var ret = [ parent_index ]
+
+ def find_children_fabrics_inner(index)
+ for fab: self.active_fabrics()
+ if fab.fabric_parent == index
+ # protect against infinite loops
+ if ret.find() == nil
+ var sub_index = fab.fabric_index
+ ret.push(sub_index)
+ find_children_fabrics_inner(sub_index)
+ end
+ end
+ end
+ end
+
+ find_children_fabrics_inner(parent_index)
+
+ # ret contains a list of indices
+ return ret
+ end
+
+ #############################################################
+ # Next fabric-idx
+ #
+ # starts at `1`, computes the next available fabric-idx
+ def next_fabric_idx()
+ self.remove_expired() # clean before
+ var next_idx = 1
+ for fab: self.active_fabrics()
+ var fab_idx = fab.fabric_index
+ if type(fab_idx) == 'int' && fab_idx >= next_idx
+ next_idx = fab_idx + 1
+ end
+ end
+ return next_idx
+ end
+
+ #############################################################
+ # add session
+ def create_session(local_session_id, initiator_session_id)
+ var session = self.get_session_by_local_session_id(local_session_id)
+ if session != nil self.remove_session(session) end
+ session = matter.Session(self, local_session_id, initiator_session_id)
+ self.sessions.push(session)
+ return session
+ end
+
+ #############################################################
+ # add session
+ def add_session(s, expires_in_seconds)
+ if expires_in_seconds != nil
+ s.set_expire_in_seconds(expires_in_seconds)
+ end
+ self.sessions.push(s)
+ end
+
+ #############################################################
+ def get_session_by_local_session_id(id)
+ if id == nil return nil end
+ var sz = size(self.sessions)
+ var i = 0
+ var sessions = self.sessions
+ while i < sz
+ var session = sessions[i]
+ if session.local_session_id == id
+ session.update()
+ return session
+ end
+ i += 1
+ end
+ end
+
+ #############################################################
+ def get_session_by_source_node_id(nodeid)
+ if nodeid == nil return nil end
+ var sz = size(self.sessions)
+ var i = 0
+ var sessions = self.sessions
+ while i < sz
+ var session = sessions[i]
+ if session._source_node_id == nodeid
+ session.update()
+ return session
+ end
+ i += 1
+ end
+ end
+
+ #############################################################
+ # Remove session by reference
+ #
+ def remove_session(s)
+ var i = 0
+ var sessions = self.sessions
+ while i < size(self.sessions)
+ if sessions[i] == s
+ sessions.remove(i)
+ else
+ i += 1
+ end
+ end
+ end
+
+ #############################################################
+ # Generate a new local_session_id
+ def gen_local_session_id()
+ import crypto
+ while true
+ var candidate_local_session_id = crypto.random(2).get(0, 2)
+
+ if self.get_session_by_local_session_id(candidate_local_session_id) == nil
+ return candidate_local_session_id
+ end
+
+ end
+ end
+
+ #############################################################
+ # remove_expired
+ #
+ def remove_expired()
+ self.sessions.every_second()
+ self.fabrics.every_second()
+ end
+
+ #############################################################
+ # call remove_expired every second
+ #
+ def every_second()
+ self.remove_expired()
+ end
+
+ #############################################################
+ # find or create a session for unencrypted traffic
+ # expires in `expire` seconds
+ def find_session_source_id_unsecure(source_node_id, expire)
+ var session = self.get_session_by_source_node_id(source_node_id)
+ if session == nil
+ session = matter.Session(self, 0, 0)
+ session._source_node_id = source_node_id
+ self.sessions.push(session)
+ session.set_expire_in_seconds(expire)
+ end
+ session.update()
+ return session
+ end
+
+ #############################################################
+ # find session by resumption id
+ def find_session_by_resumption_id(resumption_id)
+ import string
+ if !resumption_id return nil end
+ var i = 0
+ var sessions = self.sessions
+ while i < size(sessions)
+ var session = sessions[i]
+ tasmota.log(string.format("MTR: session.resumption_id=%s vs %s", str(session.resumption_id), str(resumption_id)))
+ if session.resumption_id == resumption_id && session.shared_secret != nil
+ tasmota.log(string.format("MTR: session.shared_secret=%s", str(session.shared_secret)))
+ session.update()
+ return session
+ end
+ i += 1
+ end
+ end
+
+ #############################################################
+ # list of sessions that are active, i.e. have been
+ # successfully commissioned
+ #
+ def sessions_active()
+ var ret = []
+ var idx = 0
+ while idx < size(self.sessions)
+ var session = self.sessions[idx]
+ if session.get_device_id() && session.get_fabric_id()
+ ret.push(session)
+ end
+ idx += 1
+ end
+ return ret
+ end
+
+ #############################################################
+ def save_fabrics()
+ import json
+ self.remove_expired() # clean before saving
+ var sessions_saved = 0
+
+ var fabs = []
+ for f : self.fabrics.persistables()
+ for _ : f._sessions.persistables() sessions_saved += 1 end # count persitable sessions
+ fabs.push(f.tojson())
+ end
+ var fabs_size = size(fabs)
+ fabs = "[" + fabs.concat(",") + "]"
+
+ try
+ import string
+
+ var f = open(self._FABRICS, "w")
+ f.write(fabs)
+ f.close()
+ tasmota.log(string.format("MTR: =Saved %i fabric(s) and %i session(s)", fabs_size, sessions_saved), 2)
+ except .. as e, m
+ tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
+ end
+ end
+
+ #############################################################
+ # load fabrics and associated sessions
+ def load_fabrics()
+ import string
+ try
+ self.sessions = matter.Expirable_list() # remove any left-over
+ self.fabrics = matter.Expirable_list() # remove any left-over
+ var f = open(self._FABRICS)
+ var file_content = f.read()
+ f.close()
+
+ import json
+ var file_json = json.load(file_content)
+ file_content = nil
+ tasmota.gc() # clean-up a potential long string
+
+ for v : file_json # iterate on values
+ # read fabric
+ var fabric = matter.Fabric.fromjson(self, v)
+ fabric.set_no_expiration()
+ fabric.set_persist(true)
+
+ # iterate on sessions
+ var sessions_json = v.find("_sessions", [])
+
+ for sess_json : sessions_json
+ var session = matter.Session.fromjson(self, sess_json, fabric)
+ if session != nil
+ session.set_no_expiration()
+ session.set_persist(true)
+ self.add_session(session)
+ fabric.add_session(session)
+ end
+ end
+
+ self.fabrics.push(fabric)
+ end
+
+ tasmota.log(string.format("MTR: Loaded %i fabric(s)", size(self.fabrics)), 2)
+ except .. as e, m
+ if e != "io_error"
+ tasmota.log("MTR: Session_Store::load Exception:" + str(e) + "|" + str(m), 2)
+ end
+ end
+ # persistables are normally not expiring
+ # if self.remove_expired() # clean after load
+ # self.save_fabrics()
+ # end
+ end
+
+ #############################################################
+ def create_fabric()
+ var fabric = matter.Fabric(self)
+ return fabric
+ end
+end
+matter.Session_Store = Matter_Session_Store
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 f5caf7d70..0795e40ed 100644
--- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h
+++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h
@@ -7,11 +7,11 @@
extern const bclass be_class_Matter_Commisioning_Context;
/********************************************************************
-** Solidified function: parse_PBKDFParamRequest
+** Solidified function: parse_StatusReport
********************************************************************/
-be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name */
+be_local_closure(Matter_Commisioning_Context_parse_StatusReport, /* name */
be_nested_proto(
- 13, /* nstack */
+ 7, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@@ -19,418 +19,34 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[51]) { /* constants */
- /* K0 */ be_nested_str_weak(crypto),
- /* K1 */ be_nested_str_weak(string),
- /* K2 */ be_nested_str_weak(opcode),
- /* K3 */ be_nested_str_weak(local_session_id),
- /* K4 */ be_const_int(0),
- /* K5 */ be_nested_str_weak(protocol_id),
- /* K6 */ be_nested_str_weak(tasmota),
- /* K7 */ be_nested_str_weak(log),
- /* K8 */ be_nested_str_weak(MTR_X3A_X20invalid_X20PBKDFParamRequest_X20message),
- /* K9 */ be_const_int(2),
- /* K10 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
- /* K11 */ be_nested_str_weak(send_status_report),
- /* K12 */ be_const_int(1),
- /* K13 */ be_nested_str_weak(matter),
- /* K14 */ be_nested_str_weak(PBKDFParamRequest),
- /* K15 */ be_nested_str_weak(parse),
- /* K16 */ be_nested_str_weak(raw),
- /* K17 */ be_nested_str_weak(app_payload_idx),
- /* K18 */ be_nested_str_weak(session),
- /* K19 */ be_nested_str_weak(set_mode_PASE),
- /* K20 */ be_const_int(2147483647),
- /* K21 */ be_nested_str_weak(passcodeId),
- /* K22 */ be_nested_str_weak(MTR_X3A_X20non_X2Dzero_X20passcode_X20id),
- /* K23 */ be_nested_str_weak(future_initiator_session_id),
- /* K24 */ be_nested_str_weak(initiator_session_id),
- /* K25 */ be_nested_str_weak(future_local_session_id),
- /* K26 */ be_nested_str_weak(device),
- /* K27 */ be_nested_str_weak(sessions),
- /* K28 */ be_nested_str_weak(gen_local_session_id),
- /* K29 */ be_nested_str_weak(format),
- /* K30 */ be_nested_str_weak(MTR_X3A_X20_X2BSession_X20_X20_X20_X28_X256i_X29_X20from_X20_X27_X5B_X25s_X5D_X3A_X25i_X27),
- /* K31 */ be_nested_str_weak(remote_ip),
- /* K32 */ be_nested_str_weak(remote_port),
- /* K33 */ be_nested_str_weak(PBKDFParamResponse),
- /* K34 */ be_nested_str_weak(initiatorRandom),
- /* K35 */ be_nested_str_weak(responderRandom),
- /* K36 */ be_nested_str_weak(random),
- /* K37 */ be_nested_str_weak(responderSessionId),
- /* K38 */ be_nested_str_weak(pbkdf_parameters_salt),
- /* K39 */ be_nested_str_weak(commissioning_salt),
- /* K40 */ be_nested_str_weak(pbkdf_parameters_iterations),
- /* K41 */ be_nested_str_weak(commissioning_iterations),
- /* K42 */ be_nested_str_weak(MTR_X3A_X20pbkdfparamresp_X3A_X20),
- /* K43 */ be_nested_str_weak(inspect),
- /* K44 */ be_nested_str_weak(tlv2raw),
- /* K45 */ be_nested_str_weak(MTR_X3A_X20pbkdfparamresp_raw_X3A_X20),
- /* K46 */ be_nested_str_weak(tohex),
- /* K47 */ be_nested_str_weak(build_response),
- /* K48 */ be_nested_str_weak(encode_frame),
- /* K49 */ be_nested_str_weak(responder),
- /* K50 */ be_nested_str_weak(send_response_frame),
- }),
- be_str_weak(parse_PBKDFParamRequest),
- &be_const_str_solidified,
- ( &(const binstruction[136]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0xA40E0200, // 0001 IMPORT R3 K1
- 0x88100302, // 0002 GETMBR R4 R1 K2
- 0x5416001F, // 0003 LDINT R5 32
- 0x20100805, // 0004 NE R4 R4 R5
- 0x74120005, // 0005 JMPT R4 #000C
- 0x88100303, // 0006 GETMBR R4 R1 K3
- 0x20100904, // 0007 NE R4 R4 K4
- 0x74120002, // 0008 JMPT R4 #000C
- 0x88100305, // 0009 GETMBR R4 R1 K5
- 0x20100904, // 000A NE R4 R4 K4
- 0x78120012, // 000B JMPF R4 #001F
- 0xB8120C00, // 000C GETNGBL R4 K6
- 0x8C100907, // 000D GETMET R4 R4 K7
- 0x58180008, // 000E LDCONST R6 K8
- 0x581C0009, // 000F LDCONST R7 K9
- 0x7C100600, // 0010 CALL R4 3
- 0xB8120C00, // 0011 GETNGBL R4 K6
- 0x8C100907, // 0012 GETMET R4 R4 K7
- 0x5818000A, // 0013 LDCONST R6 K10
- 0x581C0009, // 0014 LDCONST R7 K9
- 0x7C100600, // 0015 CALL R4 3
- 0x8C10010B, // 0016 GETMET R4 R0 K11
- 0x5C180200, // 0017 MOVE R6 R1
- 0x581C000C, // 0018 LDCONST R7 K12
- 0x58200004, // 0019 LDCONST R8 K4
- 0x58240009, // 001A LDCONST R9 K9
- 0x50280000, // 001B LDBOOL R10 0 0
- 0x7C100C00, // 001C CALL R4 6
- 0x50140000, // 001D LDBOOL R5 0 0
- 0x80040A00, // 001E RET 1 R5
- 0xB8121A00, // 001F GETNGBL R4 K13
- 0x8C10090E, // 0020 GETMET R4 R4 K14
- 0x7C100200, // 0021 CALL R4 1
- 0x8C10090F, // 0022 GETMET R4 R4 K15
- 0x88180310, // 0023 GETMBR R6 R1 K16
- 0x881C0311, // 0024 GETMBR R7 R1 K17
- 0x7C100600, // 0025 CALL R4 3
- 0x88140312, // 0026 GETMBR R5 R1 K18
- 0x8C140B13, // 0027 GETMET R5 R5 K19
- 0x7C140200, // 0028 CALL R5 1
- 0x88140311, // 0029 GETMBR R5 R1 K17
- 0x40140B14, // 002A CONNECT R5 R5 K20
- 0x88180310, // 002B GETMBR R6 R1 K16
- 0x94140C05, // 002C GETIDX R5 R6 R5
- 0x90021C05, // 002D SETMBR R0 K14 R5
- 0x88140915, // 002E GETMBR R5 R4 K21
- 0x20140B04, // 002F NE R5 R5 K4
- 0x78160012, // 0030 JMPF R5 #0044
- 0xB8160C00, // 0031 GETNGBL R5 K6
- 0x8C140B07, // 0032 GETMET R5 R5 K7
- 0x581C0016, // 0033 LDCONST R7 K22
- 0x58200009, // 0034 LDCONST R8 K9
- 0x7C140600, // 0035 CALL R5 3
- 0xB8160C00, // 0036 GETNGBL R5 K6
- 0x8C140B07, // 0037 GETMET R5 R5 K7
- 0x581C000A, // 0038 LDCONST R7 K10
- 0x58200009, // 0039 LDCONST R8 K9
- 0x7C140600, // 003A CALL R5 3
- 0x8C14010B, // 003B GETMET R5 R0 K11
- 0x5C1C0200, // 003C MOVE R7 R1
- 0x5820000C, // 003D LDCONST R8 K12
- 0x58240004, // 003E LDCONST R9 K4
- 0x58280009, // 003F LDCONST R10 K9
- 0x502C0000, // 0040 LDBOOL R11 0 0
- 0x7C140C00, // 0041 CALL R5 6
- 0x50180000, // 0042 LDBOOL R6 0 0
- 0x80040C00, // 0043 RET 1 R6
- 0x88140918, // 0044 GETMBR R5 R4 K24
- 0x90022E05, // 0045 SETMBR R0 K23 R5
- 0x8814011A, // 0046 GETMBR R5 R0 K26
- 0x88140B1B, // 0047 GETMBR R5 R5 K27
- 0x8C140B1C, // 0048 GETMET R5 R5 K28
- 0x7C140200, // 0049 CALL R5 1
- 0x90023205, // 004A SETMBR R0 K25 R5
- 0xB8160C00, // 004B GETNGBL R5 K6
- 0x8C140B07, // 004C GETMET R5 R5 K7
- 0x8C1C071D, // 004D GETMET R7 R3 K29
- 0x5824001E, // 004E LDCONST R9 K30
- 0x88280119, // 004F GETMBR R10 R0 K25
- 0x882C031F, // 0050 GETMBR R11 R1 K31
- 0x88300320, // 0051 GETMBR R12 R1 K32
- 0x7C1C0A00, // 0052 CALL R7 5
- 0x58200009, // 0053 LDCONST R8 K9
- 0x7C140600, // 0054 CALL R5 3
- 0xB8161A00, // 0055 GETNGBL R5 K13
- 0x8C140B21, // 0056 GETMET R5 R5 K33
- 0x7C140200, // 0057 CALL R5 1
- 0x88180922, // 0058 GETMBR R6 R4 K34
- 0x90164406, // 0059 SETMBR R5 K34 R6
- 0x8C180524, // 005A GETMET R6 R2 K36
- 0x5422001F, // 005B LDINT R8 32
- 0x7C180400, // 005C CALL R6 2
- 0x90164606, // 005D SETMBR R5 K35 R6
- 0x88180119, // 005E GETMBR R6 R0 K25
- 0x90164A06, // 005F SETMBR R5 K37 R6
- 0x8818011A, // 0060 GETMBR R6 R0 K26
- 0x88180D27, // 0061 GETMBR R6 R6 K39
- 0x90164C06, // 0062 SETMBR R5 K38 R6
- 0x8818011A, // 0063 GETMBR R6 R0 K26
- 0x88180D29, // 0064 GETMBR R6 R6 K41
- 0x90165006, // 0065 SETMBR R5 K40 R6
- 0xB81A0C00, // 0066 GETNGBL R6 K6
- 0x8C180D07, // 0067 GETMET R6 R6 K7
- 0x60200008, // 0068 GETGBL R8 G8
- 0xB8261A00, // 0069 GETNGBL R9 K13
- 0x8C24132B, // 006A GETMET R9 R9 K43
- 0x5C2C0A00, // 006B MOVE R11 R5
- 0x7C240400, // 006C CALL R9 2
- 0x7C200200, // 006D CALL R8 1
- 0x00225408, // 006E ADD R8 K42 R8
- 0x54260003, // 006F LDINT R9 4
- 0x7C180600, // 0070 CALL R6 3
- 0x8C180B2C, // 0071 GETMET R6 R5 K44
- 0x7C180200, // 0072 CALL R6 1
- 0xB81E0C00, // 0073 GETNGBL R7 K6
- 0x8C1C0F07, // 0074 GETMET R7 R7 K7
- 0x8C240D2E, // 0075 GETMET R9 R6 K46
- 0x7C240200, // 0076 CALL R9 1
- 0x00265A09, // 0077 ADD R9 K45 R9
- 0x542A0003, // 0078 LDINT R10 4
- 0x7C1C0600, // 0079 CALL R7 3
- 0x90024206, // 007A SETMBR R0 K33 R6
- 0x8C1C032F, // 007B GETMET R7 R1 K47
- 0x54260020, // 007C LDINT R9 33
- 0x50280200, // 007D LDBOOL R10 1 0
- 0x7C1C0600, // 007E CALL R7 3
- 0x8C200F30, // 007F GETMET R8 R7 K48
- 0x5C280C00, // 0080 MOVE R10 R6
- 0x7C200400, // 0081 CALL R8 2
- 0x88240131, // 0082 GETMBR R9 R0 K49
- 0x8C241332, // 0083 GETMET R9 R9 K50
- 0x5C2C0E00, // 0084 MOVE R11 R7
- 0x7C240400, // 0085 CALL R9 2
- 0x50240200, // 0086 LDBOOL R9 1 0
- 0x80041200, // 0087 RET 1 R9
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: parse_Pake1
-********************************************************************/
-be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */
- be_nested_proto(
- 13, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[44]) { /* constants */
- /* K0 */ be_nested_str_weak(crypto),
- /* K1 */ be_nested_str_weak(opcode),
- /* K2 */ be_nested_str_weak(local_session_id),
- /* K3 */ be_const_int(0),
- /* K4 */ be_nested_str_weak(protocol_id),
- /* K5 */ be_nested_str_weak(tasmota),
- /* K6 */ be_nested_str_weak(log),
- /* K7 */ be_nested_str_weak(MTR_X3A_X20invalid_X20Pake1_X20message),
+ ( &(const bvalue[ 9]) { /* constants */
+ /* K0 */ be_nested_str_weak(session),
+ /* K1 */ be_nested_str_weak(tasmota),
+ /* K2 */ be_nested_str_weak(log),
+ /* K3 */ be_nested_str_weak(MTR_X3A_X20_X3EStatus_X20_X20_X20_X20),
+ /* K4 */ be_nested_str_weak(raw),
+ /* K5 */ be_nested_str_weak(app_payload_idx),
+ /* K6 */ be_const_int(2147483647),
+ /* K7 */ be_nested_str_weak(tohex),
/* K8 */ be_const_int(2),
- /* K9 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
- /* K10 */ be_nested_str_weak(send_status_report),
- /* K11 */ be_const_int(1),
- /* K12 */ be_nested_str_weak(matter),
- /* K13 */ be_nested_str_weak(Pake1),
- /* K14 */ be_nested_str_weak(parse),
- /* K15 */ be_nested_str_weak(raw),
- /* K16 */ be_nested_str_weak(app_payload_idx),
- /* K17 */ be_nested_str_weak(pA),
- /* K18 */ be_nested_str_weak(spake),
- /* K19 */ be_nested_str_weak(SPAKE2P_Matter),
- /* K20 */ be_nested_str_weak(device),
- /* K21 */ be_nested_str_weak(commissioning_w0),
- /* K22 */ be_nested_str_weak(commissioning_L),
- /* K23 */ be_nested_str_weak(compute_pB),
- /* K24 */ be_nested_str_weak(y),
- /* K25 */ be_nested_str_weak(pB),
- /* K26 */ be_nested_str_weak(compute_ZV_verifier),
- /* K27 */ be_nested_str_weak(SHA256),
- /* K28 */ be_nested_str_weak(update),
- /* K29 */ be_nested_str_weak(fromstring),
- /* K30 */ be_nested_str_weak(Matter_Context_Prefix),
- /* K31 */ be_nested_str_weak(PBKDFParamRequest),
- /* K32 */ be_nested_str_weak(PBKDFParamResponse),
- /* K33 */ be_nested_str_weak(out),
- /* K34 */ be_nested_str_weak(set_context),
- /* K35 */ be_nested_str_weak(compute_TT_hash),
- /* K36 */ be_nested_str_weak(cB),
- /* K37 */ be_nested_str_weak(Ke),
- /* K38 */ be_nested_str_weak(Pake2),
- /* K39 */ be_nested_str_weak(tlv2raw),
- /* K40 */ be_nested_str_weak(build_response),
- /* K41 */ be_nested_str_weak(encode_frame),
- /* K42 */ be_nested_str_weak(responder),
- /* K43 */ be_nested_str_weak(send_response_frame),
}),
- be_str_weak(parse_Pake1),
+ be_str_weak(parse_StatusReport),
&be_const_str_solidified,
- ( &(const binstruction[114]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0x880C0301, // 0001 GETMBR R3 R1 K1
- 0x54120021, // 0002 LDINT R4 34
- 0x200C0604, // 0003 NE R3 R3 R4
- 0x740E0005, // 0004 JMPT R3 #000B
- 0x880C0302, // 0005 GETMBR R3 R1 K2
- 0x200C0703, // 0006 NE R3 R3 K3
- 0x740E0002, // 0007 JMPT R3 #000B
- 0x880C0304, // 0008 GETMBR R3 R1 K4
- 0x200C0703, // 0009 NE R3 R3 K3
- 0x780E0012, // 000A JMPF R3 #001E
- 0xB80E0A00, // 000B GETNGBL R3 K5
- 0x8C0C0706, // 000C GETMET R3 R3 K6
- 0x58140007, // 000D LDCONST R5 K7
- 0x58180008, // 000E LDCONST R6 K8
- 0x7C0C0600, // 000F CALL R3 3
- 0xB80E0A00, // 0010 GETNGBL R3 K5
- 0x8C0C0706, // 0011 GETMET R3 R3 K6
- 0x58140009, // 0012 LDCONST R5 K9
- 0x58180008, // 0013 LDCONST R6 K8
- 0x7C0C0600, // 0014 CALL R3 3
- 0x8C0C010A, // 0015 GETMET R3 R0 K10
- 0x5C140200, // 0016 MOVE R5 R1
- 0x5818000B, // 0017 LDCONST R6 K11
- 0x581C0003, // 0018 LDCONST R7 K3
- 0x58200008, // 0019 LDCONST R8 K8
- 0x50240000, // 001A LDBOOL R9 0 0
- 0x7C0C0C00, // 001B CALL R3 6
- 0x50100000, // 001C LDBOOL R4 0 0
- 0x80040800, // 001D RET 1 R4
- 0xB80E1800, // 001E GETNGBL R3 K12
- 0x8C0C070D, // 001F GETMET R3 R3 K13
- 0x7C0C0200, // 0020 CALL R3 1
- 0x8C0C070E, // 0021 GETMET R3 R3 K14
- 0x8814030F, // 0022 GETMBR R5 R1 K15
- 0x88180310, // 0023 GETMBR R6 R1 K16
- 0x7C0C0600, // 0024 CALL R3 3
- 0x88100711, // 0025 GETMBR R4 R3 K17
- 0x90022204, // 0026 SETMBR R0 K17 R4
- 0x8C100513, // 0027 GETMET R4 R2 K19
- 0x88180114, // 0028 GETMBR R6 R0 K20
- 0x88180D15, // 0029 GETMBR R6 R6 K21
- 0x4C1C0000, // 002A LDNIL R7
- 0x88200114, // 002B GETMBR R8 R0 K20
- 0x88201116, // 002C GETMBR R8 R8 K22
- 0x7C100800, // 002D CALL R4 4
- 0x90022404, // 002E SETMBR R0 K18 R4
- 0x88100112, // 002F GETMBR R4 R0 K18
- 0x8C100917, // 0030 GETMET R4 R4 K23
- 0x88180118, // 0031 GETMBR R6 R0 K24
- 0x7C100400, // 0032 CALL R4 2
- 0x88100112, // 0033 GETMBR R4 R0 K18
- 0x88100919, // 0034 GETMBR R4 R4 K25
- 0x90023204, // 0035 SETMBR R0 K25 R4
- 0x88100112, // 0036 GETMBR R4 R0 K18
- 0x8C10091A, // 0037 GETMET R4 R4 K26
- 0x88180111, // 0038 GETMBR R6 R0 K17
- 0x7C100400, // 0039 CALL R4 2
- 0x8C10051B, // 003A GETMET R4 R2 K27
- 0x7C100200, // 003B CALL R4 1
- 0x8C14091C, // 003C GETMET R5 R4 K28
- 0x601C0015, // 003D GETGBL R7 G21
- 0x7C1C0000, // 003E CALL R7 0
- 0x8C1C0F1D, // 003F GETMET R7 R7 K29
- 0x8824011E, // 0040 GETMBR R9 R0 K30
- 0x7C1C0400, // 0041 CALL R7 2
- 0x7C140400, // 0042 CALL R5 2
- 0x8C14091C, // 0043 GETMET R5 R4 K28
- 0x881C011F, // 0044 GETMBR R7 R0 K31
- 0x7C140400, // 0045 CALL R5 2
- 0x8C14091C, // 0046 GETMET R5 R4 K28
- 0x881C0120, // 0047 GETMBR R7 R0 K32
- 0x7C140400, // 0048 CALL R5 2
- 0x8C140921, // 0049 GETMET R5 R4 K33
- 0x7C140200, // 004A CALL R5 1
- 0x88180112, // 004B GETMBR R6 R0 K18
- 0x881C0111, // 004C GETMBR R7 R0 K17
- 0x901A2207, // 004D SETMBR R6 K17 R7
- 0x88180112, // 004E GETMBR R6 R0 K18
- 0x8C180D22, // 004F GETMET R6 R6 K34
- 0x5C200A00, // 0050 MOVE R8 R5
- 0x7C180400, // 0051 CALL R6 2
- 0x88180112, // 0052 GETMBR R6 R0 K18
- 0x8C180D23, // 0053 GETMET R6 R6 K35
- 0x50200200, // 0054 LDBOOL R8 1 0
- 0x7C180400, // 0055 CALL R6 2
- 0x88180112, // 0056 GETMBR R6 R0 K18
- 0x88180D24, // 0057 GETMBR R6 R6 K36
- 0x90024806, // 0058 SETMBR R0 K36 R6
- 0x88180112, // 0059 GETMBR R6 R0 K18
- 0x88180D25, // 005A GETMBR R6 R6 K37
- 0x90024A06, // 005B SETMBR R0 K37 R6
- 0xB81A1800, // 005C GETNGBL R6 K12
- 0x8C180D26, // 005D GETMET R6 R6 K38
- 0x7C180200, // 005E CALL R6 1
- 0x881C0119, // 005F GETMBR R7 R0 K25
- 0x901A3207, // 0060 SETMBR R6 K25 R7
- 0x881C0124, // 0061 GETMBR R7 R0 K36
- 0x901A4807, // 0062 SETMBR R6 K36 R7
- 0x8C1C0D27, // 0063 GETMET R7 R6 K39
- 0x7C1C0200, // 0064 CALL R7 1
- 0x8C200328, // 0065 GETMET R8 R1 K40
- 0x542A0022, // 0066 LDINT R10 35
- 0x502C0200, // 0067 LDBOOL R11 1 0
- 0x7C200600, // 0068 CALL R8 3
- 0x8C241129, // 0069 GETMET R9 R8 K41
- 0x5C2C0E00, // 006A MOVE R11 R7
- 0x7C240400, // 006B CALL R9 2
- 0x8828012A, // 006C GETMBR R10 R0 K42
- 0x8C28152B, // 006D GETMET R10 R10 K43
- 0x5C301000, // 006E MOVE R12 R8
- 0x7C280400, // 006F CALL R10 2
- 0x50280200, // 0070 LDBOOL R10 1 0
- 0x80041400, // 0071 RET 1 R10
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: init
-********************************************************************/
-be_local_closure(Matter_Commisioning_Context_init, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_str_weak(crypto),
- /* K1 */ be_nested_str_weak(responder),
- /* K2 */ be_nested_str_weak(device),
- /* K3 */ be_nested_str_weak(y),
- /* K4 */ be_nested_str_weak(random),
- }),
- be_str_weak(init),
- &be_const_str_solidified,
- ( &(const binstruction[ 9]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0x90020201, // 0001 SETMBR R0 K1 R1
- 0x880C0302, // 0002 GETMBR R3 R1 K2
- 0x90020403, // 0003 SETMBR R0 K2 R3
- 0x8C0C0504, // 0004 GETMET R3 R2 K4
- 0x5416001F, // 0005 LDINT R5 32
- 0x7C0C0400, // 0006 CALL R3 2
- 0x90020603, // 0007 SETMBR R0 K3 R3
- 0x80000000, // 0008 RET 0
+ ( &(const binstruction[14]) { /* code */
+ 0x88080300, // 0000 GETMBR R2 R1 K0
+ 0xB80E0200, // 0001 GETNGBL R3 K1
+ 0x8C0C0702, // 0002 GETMET R3 R3 K2
+ 0x88140305, // 0003 GETMBR R5 R1 K5
+ 0x40140B06, // 0004 CONNECT R5 R5 K6
+ 0x88180304, // 0005 GETMBR R6 R1 K4
+ 0x94140C05, // 0006 GETIDX R5 R6 R5
+ 0x8C140B07, // 0007 GETMET R5 R5 K7
+ 0x7C140200, // 0008 CALL R5 1
+ 0x00160605, // 0009 ADD R5 K3 R5
+ 0x58180008, // 000A LDCONST R6 K8
+ 0x7C0C0600, // 000B CALL R3 3
+ 0x500C0000, // 000C LDBOOL R3 0 0
+ 0x80040600, // 000D RET 1 R3
})
)
);
@@ -559,150 +175,6 @@ be_local_closure(Matter_Commisioning_Context_find_fabric_by_destination_id, /*
/*******************************************************************/
-/********************************************************************
-** Solidified function: process_incoming
-********************************************************************/
-be_local_closure(Matter_Commisioning_Context_process_incoming, /* name */
- be_nested_proto(
- 9, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[20]) { /* constants */
- /* K0 */ be_nested_str_weak(device),
- /* K1 */ be_nested_str_weak(is_commissioning_open),
- /* K2 */ be_nested_str_weak(opcode),
- /* K3 */ be_nested_str_weak(tasmota),
- /* K4 */ be_nested_str_weak(log),
- /* K5 */ be_nested_str_weak(MTR_X3A_X20commissioning_X20not_X20open),
- /* K6 */ be_const_int(2),
- /* K7 */ be_nested_str_weak(MTR_X3A_X20received_X20message_X20),
- /* K8 */ be_nested_str_weak(matter),
- /* K9 */ be_nested_str_weak(inspect),
- /* K10 */ be_const_int(3),
- /* K11 */ be_nested_str_weak(parse_PBKDFParamRequest),
- /* K12 */ be_nested_str_weak(parse_Pake1),
- /* K13 */ be_nested_str_weak(parse_Pake3),
- /* K14 */ be_nested_str_weak(parse_Sigma1),
- /* K15 */ be_nested_str_weak(parse_Sigma3),
- /* K16 */ be_nested_str_weak(parse_StatusReport),
- /* K17 */ be_nested_str_weak(string),
- /* K18 */ be_nested_str_weak(format),
- /* K19 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X20Unknown_X20OpCode_X20_X28secure_X20channel_X29_X20_X2502X),
- }),
- be_str_weak(process_incoming),
- &be_const_str_solidified,
- ( &(const binstruction[100]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x8C080501, // 0001 GETMET R2 R2 K1
- 0x7C080200, // 0002 CALL R2 1
- 0x740A000E, // 0003 JMPT R2 #0013
- 0x88080302, // 0004 GETMBR R2 R1 K2
- 0x540E001F, // 0005 LDINT R3 32
- 0x28080403, // 0006 GE R2 R2 R3
- 0x780A000A, // 0007 JMPF R2 #0013
- 0x88080302, // 0008 GETMBR R2 R1 K2
- 0x540E0023, // 0009 LDINT R3 36
- 0x18080403, // 000A LE R2 R2 R3
- 0x780A0006, // 000B JMPF R2 #0013
- 0xB80A0600, // 000C GETNGBL R2 K3
- 0x8C080504, // 000D GETMET R2 R2 K4
- 0x58100005, // 000E LDCONST R4 K5
- 0x58140006, // 000F LDCONST R5 K6
- 0x7C080600, // 0010 CALL R2 3
- 0x50080000, // 0011 LDBOOL R2 0 0
- 0x80040400, // 0012 RET 1 R2
- 0xB80A0600, // 0013 GETNGBL R2 K3
- 0x8C080504, // 0014 GETMET R2 R2 K4
- 0xB8121000, // 0015 GETNGBL R4 K8
- 0x8C100909, // 0016 GETMET R4 R4 K9
- 0x5C180200, // 0017 MOVE R6 R1
- 0x7C100400, // 0018 CALL R4 2
- 0x00120E04, // 0019 ADD R4 K7 R4
- 0x5814000A, // 001A LDCONST R5 K10
- 0x7C080600, // 001B CALL R2 3
- 0x88080302, // 001C GETMBR R2 R1 K2
- 0x540E000F, // 001D LDINT R3 16
- 0x1C080403, // 001E EQ R2 R2 R3
- 0x780A0000, // 001F JMPF R2 #0021
- 0x70020040, // 0020 JMP #0062
- 0x88080302, // 0021 GETMBR R2 R1 K2
- 0x540E001F, // 0022 LDINT R3 32
- 0x1C080403, // 0023 EQ R2 R2 R3
- 0x780A0004, // 0024 JMPF R2 #002A
- 0x8C08010B, // 0025 GETMET R2 R0 K11
- 0x5C100200, // 0026 MOVE R4 R1
- 0x7C080400, // 0027 CALL R2 2
- 0x80040400, // 0028 RET 1 R2
- 0x70020037, // 0029 JMP #0062
- 0x88080302, // 002A GETMBR R2 R1 K2
- 0x540E0021, // 002B LDINT R3 34
- 0x1C080403, // 002C EQ R2 R2 R3
- 0x780A0004, // 002D JMPF R2 #0033
- 0x8C08010C, // 002E GETMET R2 R0 K12
- 0x5C100200, // 002F MOVE R4 R1
- 0x7C080400, // 0030 CALL R2 2
- 0x80040400, // 0031 RET 1 R2
- 0x7002002E, // 0032 JMP #0062
- 0x88080302, // 0033 GETMBR R2 R1 K2
- 0x540E0023, // 0034 LDINT R3 36
- 0x1C080403, // 0035 EQ R2 R2 R3
- 0x780A0004, // 0036 JMPF R2 #003C
- 0x8C08010D, // 0037 GETMET R2 R0 K13
- 0x5C100200, // 0038 MOVE R4 R1
- 0x7C080400, // 0039 CALL R2 2
- 0x80040400, // 003A RET 1 R2
- 0x70020025, // 003B JMP #0062
- 0x88080302, // 003C GETMBR R2 R1 K2
- 0x540E002F, // 003D LDINT R3 48
- 0x1C080403, // 003E EQ R2 R2 R3
- 0x780A0004, // 003F JMPF R2 #0045
- 0x8C08010E, // 0040 GETMET R2 R0 K14
- 0x5C100200, // 0041 MOVE R4 R1
- 0x7C080400, // 0042 CALL R2 2
- 0x80040400, // 0043 RET 1 R2
- 0x7002001C, // 0044 JMP #0062
- 0x88080302, // 0045 GETMBR R2 R1 K2
- 0x540E0031, // 0046 LDINT R3 50
- 0x1C080403, // 0047 EQ R2 R2 R3
- 0x780A0004, // 0048 JMPF R2 #004E
- 0x8C08010F, // 0049 GETMET R2 R0 K15
- 0x5C100200, // 004A MOVE R4 R1
- 0x7C080400, // 004B CALL R2 2
- 0x80040400, // 004C RET 1 R2
- 0x70020013, // 004D JMP #0062
- 0x88080302, // 004E GETMBR R2 R1 K2
- 0x540E003F, // 004F LDINT R3 64
- 0x1C080403, // 0050 EQ R2 R2 R3
- 0x780A0004, // 0051 JMPF R2 #0057
- 0x8C080110, // 0052 GETMET R2 R0 K16
- 0x5C100200, // 0053 MOVE R4 R1
- 0x7C080400, // 0054 CALL R2 2
- 0x80040400, // 0055 RET 1 R2
- 0x7002000A, // 0056 JMP #0062
- 0xA40A2200, // 0057 IMPORT R2 K17
- 0xB80E0600, // 0058 GETNGBL R3 K3
- 0x8C0C0704, // 0059 GETMET R3 R3 K4
- 0x8C140512, // 005A GETMET R5 R2 K18
- 0x581C0013, // 005B LDCONST R7 K19
- 0x88200302, // 005C GETMBR R8 R1 K2
- 0x7C140600, // 005D CALL R5 3
- 0x58180006, // 005E LDCONST R6 K6
- 0x7C0C0600, // 005F CALL R3 3
- 0x500C0000, // 0060 LDBOOL R3 0 0
- 0x80040600, // 0061 RET 1 R3
- 0x50080000, // 0062 LDBOOL R2 0 0
- 0x80040400, // 0063 RET 1 R2
- })
- )
-);
-/*******************************************************************/
-
-
/********************************************************************
** Solidified function: every_second
********************************************************************/
@@ -727,6 +199,701 @@ be_local_closure(Matter_Commisioning_Context_every_second, /* name */
/*******************************************************************/
+/********************************************************************
+** Solidified function: add_session
+********************************************************************/
+be_local_closure(Matter_Commisioning_Context_add_session, /* name */
+ be_nested_proto(
+ 14, /* nstack */
+ 6, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[10]) { /* constants */
+ /* K0 */ be_nested_str_weak(string),
+ /* K1 */ be_nested_str_weak(tasmota),
+ /* K2 */ be_nested_str_weak(log),
+ /* K3 */ be_nested_str_weak(format),
+ /* K4 */ be_nested_str_weak(MTR_X3A_X20add_session_X20local_session_id_X3D_X25i_X20initiator_session_id_X3D_X25i),
+ /* K5 */ be_const_int(3),
+ /* K6 */ be_nested_str_weak(device),
+ /* K7 */ be_nested_str_weak(sessions),
+ /* K8 */ be_nested_str_weak(create_session),
+ /* K9 */ be_nested_str_weak(set_keys),
+ }),
+ be_str_weak(add_session),
+ &be_const_str_solidified,
+ ( &(const binstruction[22]) { /* code */
+ 0xA41A0000, // 0000 IMPORT R6 K0
+ 0xB81E0200, // 0001 GETNGBL R7 K1
+ 0x8C1C0F02, // 0002 GETMET R7 R7 K2
+ 0x8C240D03, // 0003 GETMET R9 R6 K3
+ 0x582C0004, // 0004 LDCONST R11 K4
+ 0x5C300200, // 0005 MOVE R12 R1
+ 0x5C340400, // 0006 MOVE R13 R2
+ 0x7C240800, // 0007 CALL R9 4
+ 0x58280005, // 0008 LDCONST R10 K5
+ 0x7C1C0600, // 0009 CALL R7 3
+ 0x881C0106, // 000A GETMBR R7 R0 K6
+ 0x881C0F07, // 000B GETMBR R7 R7 K7
+ 0x8C1C0F08, // 000C GETMET R7 R7 K8
+ 0x5C240200, // 000D MOVE R9 R1
+ 0x5C280400, // 000E MOVE R10 R2
+ 0x7C1C0600, // 000F CALL R7 3
+ 0x8C200F09, // 0010 GETMET R8 R7 K9
+ 0x5C280600, // 0011 MOVE R10 R3
+ 0x5C2C0800, // 0012 MOVE R11 R4
+ 0x5C300A00, // 0013 MOVE R12 R5
+ 0x7C200800, // 0014 CALL R8 4
+ 0x80000000, // 0015 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: parse_PBKDFParamRequest
+********************************************************************/
+be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name */
+ be_nested_proto(
+ 14, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[53]) { /* constants */
+ /* K0 */ be_nested_str_weak(crypto),
+ /* K1 */ be_nested_str_weak(string),
+ /* K2 */ be_nested_str_weak(session),
+ /* K3 */ be_nested_str_weak(opcode),
+ /* K4 */ be_nested_str_weak(local_session_id),
+ /* K5 */ be_const_int(0),
+ /* K6 */ be_nested_str_weak(protocol_id),
+ /* K7 */ be_nested_str_weak(tasmota),
+ /* K8 */ be_nested_str_weak(log),
+ /* K9 */ be_nested_str_weak(MTR_X3A_X20invalid_X20PBKDFParamRequest_X20message),
+ /* K10 */ be_const_int(2),
+ /* K11 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
+ /* K12 */ be_nested_str_weak(send_status_report),
+ /* K13 */ be_const_int(1),
+ /* K14 */ be_nested_str_weak(matter),
+ /* K15 */ be_nested_str_weak(PBKDFParamRequest),
+ /* K16 */ be_nested_str_weak(parse),
+ /* K17 */ be_nested_str_weak(raw),
+ /* K18 */ be_nested_str_weak(app_payload_idx),
+ /* K19 */ be_nested_str_weak(set_mode_PASE),
+ /* K20 */ be_nested_str_weak(__Msg1),
+ /* K21 */ be_const_int(2147483647),
+ /* K22 */ be_nested_str_weak(passcodeId),
+ /* K23 */ be_nested_str_weak(MTR_X3A_X20non_X2Dzero_X20passcode_X20id),
+ /* K24 */ be_nested_str_weak(__future_initiator_session_id),
+ /* K25 */ be_nested_str_weak(initiator_session_id),
+ /* K26 */ be_nested_str_weak(__future_local_session_id),
+ /* K27 */ be_nested_str_weak(device),
+ /* K28 */ be_nested_str_weak(sessions),
+ /* K29 */ be_nested_str_weak(gen_local_session_id),
+ /* K30 */ be_nested_str_weak(format),
+ /* K31 */ be_nested_str_weak(MTR_X3A_X20_X2BSession_X20_X20_X20_X28_X256i_X29_X20from_X20_X27_X5B_X25s_X5D_X3A_X25i_X27),
+ /* K32 */ be_nested_str_weak(remote_ip),
+ /* K33 */ be_nested_str_weak(remote_port),
+ /* K34 */ be_nested_str_weak(PBKDFParamResponse),
+ /* K35 */ be_nested_str_weak(initiatorRandom),
+ /* K36 */ be_nested_str_weak(responderRandom),
+ /* K37 */ be_nested_str_weak(random),
+ /* K38 */ be_nested_str_weak(responderSessionId),
+ /* K39 */ be_nested_str_weak(pbkdf_parameters_salt),
+ /* K40 */ be_nested_str_weak(commissioning_salt),
+ /* K41 */ be_nested_str_weak(pbkdf_parameters_iterations),
+ /* K42 */ be_nested_str_weak(commissioning_iterations),
+ /* K43 */ be_nested_str_weak(MTR_X3A_X20pbkdfparamresp_X3A_X20),
+ /* K44 */ be_nested_str_weak(inspect),
+ /* K45 */ be_nested_str_weak(tlv2raw),
+ /* K46 */ be_nested_str_weak(MTR_X3A_X20pbkdfparamresp_raw_X3A_X20),
+ /* K47 */ be_nested_str_weak(tohex),
+ /* K48 */ be_nested_str_weak(__Msg2),
+ /* K49 */ be_nested_str_weak(build_response),
+ /* K50 */ be_nested_str_weak(encode_frame),
+ /* K51 */ be_nested_str_weak(responder),
+ /* K52 */ be_nested_str_weak(send_response_frame),
+ }),
+ be_str_weak(parse_PBKDFParamRequest),
+ &be_const_str_solidified,
+ ( &(const binstruction[137]) { /* code */
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0xA40E0200, // 0001 IMPORT R3 K1
+ 0x88100302, // 0002 GETMBR R4 R1 K2
+ 0x88140303, // 0003 GETMBR R5 R1 K3
+ 0x541A001F, // 0004 LDINT R6 32
+ 0x20140A06, // 0005 NE R5 R5 R6
+ 0x74160005, // 0006 JMPT R5 #000D
+ 0x88140304, // 0007 GETMBR R5 R1 K4
+ 0x20140B05, // 0008 NE R5 R5 K5
+ 0x74160002, // 0009 JMPT R5 #000D
+ 0x88140306, // 000A GETMBR R5 R1 K6
+ 0x20140B05, // 000B NE R5 R5 K5
+ 0x78160012, // 000C JMPF R5 #0020
+ 0xB8160E00, // 000D GETNGBL R5 K7
+ 0x8C140B08, // 000E GETMET R5 R5 K8
+ 0x581C0009, // 000F LDCONST R7 K9
+ 0x5820000A, // 0010 LDCONST R8 K10
+ 0x7C140600, // 0011 CALL R5 3
+ 0xB8160E00, // 0012 GETNGBL R5 K7
+ 0x8C140B08, // 0013 GETMET R5 R5 K8
+ 0x581C000B, // 0014 LDCONST R7 K11
+ 0x5820000A, // 0015 LDCONST R8 K10
+ 0x7C140600, // 0016 CALL R5 3
+ 0x8C14010C, // 0017 GETMET R5 R0 K12
+ 0x5C1C0200, // 0018 MOVE R7 R1
+ 0x5820000D, // 0019 LDCONST R8 K13
+ 0x58240005, // 001A LDCONST R9 K5
+ 0x5828000A, // 001B LDCONST R10 K10
+ 0x502C0000, // 001C LDBOOL R11 0 0
+ 0x7C140C00, // 001D CALL R5 6
+ 0x50180000, // 001E LDBOOL R6 0 0
+ 0x80040C00, // 001F RET 1 R6
+ 0xB8161C00, // 0020 GETNGBL R5 K14
+ 0x8C140B0F, // 0021 GETMET R5 R5 K15
+ 0x7C140200, // 0022 CALL R5 1
+ 0x8C140B10, // 0023 GETMET R5 R5 K16
+ 0x881C0311, // 0024 GETMBR R7 R1 K17
+ 0x88200312, // 0025 GETMBR R8 R1 K18
+ 0x7C140600, // 0026 CALL R5 3
+ 0x88180302, // 0027 GETMBR R6 R1 K2
+ 0x8C180D13, // 0028 GETMET R6 R6 K19
+ 0x7C180200, // 0029 CALL R6 1
+ 0x88180312, // 002A GETMBR R6 R1 K18
+ 0x40180D15, // 002B CONNECT R6 R6 K21
+ 0x881C0311, // 002C GETMBR R7 R1 K17
+ 0x94180E06, // 002D GETIDX R6 R7 R6
+ 0x90122806, // 002E SETMBR R4 K20 R6
+ 0x88180B16, // 002F GETMBR R6 R5 K22
+ 0x20180D05, // 0030 NE R6 R6 K5
+ 0x781A0012, // 0031 JMPF R6 #0045
+ 0xB81A0E00, // 0032 GETNGBL R6 K7
+ 0x8C180D08, // 0033 GETMET R6 R6 K8
+ 0x58200017, // 0034 LDCONST R8 K23
+ 0x5824000A, // 0035 LDCONST R9 K10
+ 0x7C180600, // 0036 CALL R6 3
+ 0xB81A0E00, // 0037 GETNGBL R6 K7
+ 0x8C180D08, // 0038 GETMET R6 R6 K8
+ 0x5820000B, // 0039 LDCONST R8 K11
+ 0x5824000A, // 003A LDCONST R9 K10
+ 0x7C180600, // 003B CALL R6 3
+ 0x8C18010C, // 003C GETMET R6 R0 K12
+ 0x5C200200, // 003D MOVE R8 R1
+ 0x5824000D, // 003E LDCONST R9 K13
+ 0x58280005, // 003F LDCONST R10 K5
+ 0x582C000A, // 0040 LDCONST R11 K10
+ 0x50300000, // 0041 LDBOOL R12 0 0
+ 0x7C180C00, // 0042 CALL R6 6
+ 0x501C0000, // 0043 LDBOOL R7 0 0
+ 0x80040E00, // 0044 RET 1 R7
+ 0x88180B19, // 0045 GETMBR R6 R5 K25
+ 0x90123006, // 0046 SETMBR R4 K24 R6
+ 0x8818011B, // 0047 GETMBR R6 R0 K27
+ 0x88180D1C, // 0048 GETMBR R6 R6 K28
+ 0x8C180D1D, // 0049 GETMET R6 R6 K29
+ 0x7C180200, // 004A CALL R6 1
+ 0x90123406, // 004B SETMBR R4 K26 R6
+ 0xB81A0E00, // 004C GETNGBL R6 K7
+ 0x8C180D08, // 004D GETMET R6 R6 K8
+ 0x8C20071E, // 004E GETMET R8 R3 K30
+ 0x5828001F, // 004F LDCONST R10 K31
+ 0x882C091A, // 0050 GETMBR R11 R4 K26
+ 0x88300320, // 0051 GETMBR R12 R1 K32
+ 0x88340321, // 0052 GETMBR R13 R1 K33
+ 0x7C200A00, // 0053 CALL R8 5
+ 0x5824000A, // 0054 LDCONST R9 K10
+ 0x7C180600, // 0055 CALL R6 3
+ 0xB81A1C00, // 0056 GETNGBL R6 K14
+ 0x8C180D22, // 0057 GETMET R6 R6 K34
+ 0x7C180200, // 0058 CALL R6 1
+ 0x881C0B23, // 0059 GETMBR R7 R5 K35
+ 0x901A4607, // 005A SETMBR R6 K35 R7
+ 0x8C1C0525, // 005B GETMET R7 R2 K37
+ 0x5426001F, // 005C LDINT R9 32
+ 0x7C1C0400, // 005D CALL R7 2
+ 0x901A4807, // 005E SETMBR R6 K36 R7
+ 0x881C091A, // 005F GETMBR R7 R4 K26
+ 0x901A4C07, // 0060 SETMBR R6 K38 R7
+ 0x881C011B, // 0061 GETMBR R7 R0 K27
+ 0x881C0F28, // 0062 GETMBR R7 R7 K40
+ 0x901A4E07, // 0063 SETMBR R6 K39 R7
+ 0x881C011B, // 0064 GETMBR R7 R0 K27
+ 0x881C0F2A, // 0065 GETMBR R7 R7 K42
+ 0x901A5207, // 0066 SETMBR R6 K41 R7
+ 0xB81E0E00, // 0067 GETNGBL R7 K7
+ 0x8C1C0F08, // 0068 GETMET R7 R7 K8
+ 0x60240008, // 0069 GETGBL R9 G8
+ 0xB82A1C00, // 006A GETNGBL R10 K14
+ 0x8C28152C, // 006B GETMET R10 R10 K44
+ 0x5C300C00, // 006C MOVE R12 R6
+ 0x7C280400, // 006D CALL R10 2
+ 0x7C240200, // 006E CALL R9 1
+ 0x00265609, // 006F ADD R9 K43 R9
+ 0x542A0003, // 0070 LDINT R10 4
+ 0x7C1C0600, // 0071 CALL R7 3
+ 0x8C1C0D2D, // 0072 GETMET R7 R6 K45
+ 0x7C1C0200, // 0073 CALL R7 1
+ 0xB8220E00, // 0074 GETNGBL R8 K7
+ 0x8C201108, // 0075 GETMET R8 R8 K8
+ 0x8C280F2F, // 0076 GETMET R10 R7 K47
+ 0x7C280200, // 0077 CALL R10 1
+ 0x002A5C0A, // 0078 ADD R10 K46 R10
+ 0x542E0003, // 0079 LDINT R11 4
+ 0x7C200600, // 007A CALL R8 3
+ 0x90126007, // 007B SETMBR R4 K48 R7
+ 0x8C200331, // 007C GETMET R8 R1 K49
+ 0x542A0020, // 007D LDINT R10 33
+ 0x502C0200, // 007E LDBOOL R11 1 0
+ 0x7C200600, // 007F CALL R8 3
+ 0x8C241132, // 0080 GETMET R9 R8 K50
+ 0x5C2C0E00, // 0081 MOVE R11 R7
+ 0x7C240400, // 0082 CALL R9 2
+ 0x88280133, // 0083 GETMBR R10 R0 K51
+ 0x8C281534, // 0084 GETMET R10 R10 K52
+ 0x5C301000, // 0085 MOVE R12 R8
+ 0x7C280400, // 0086 CALL R10 2
+ 0x50280200, // 0087 LDBOOL R10 1 0
+ 0x80041400, // 0088 RET 1 R10
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: send_status_report
+********************************************************************/
+be_local_closure(Matter_Commisioning_Context_send_status_report, /* name */
+ be_nested_proto(
+ 12, /* nstack */
+ 6, /* 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(build_response),
+ /* K1 */ be_nested_str_weak(add),
+ /* K2 */ be_const_int(2),
+ /* K3 */ be_nested_str_weak(encode_frame),
+ /* K4 */ be_nested_str_weak(responder),
+ /* K5 */ be_nested_str_weak(send_response_frame),
+ }),
+ be_str_weak(send_status_report),
+ &be_const_str_solidified,
+ ( &(const binstruction[26]) { /* code */
+ 0x8C180300, // 0000 GETMET R6 R1 K0
+ 0x5422003F, // 0001 LDINT R8 64
+ 0x5C240A00, // 0002 MOVE R9 R5
+ 0x7C180600, // 0003 CALL R6 3
+ 0x601C0015, // 0004 GETGBL R7 G21
+ 0x7C1C0000, // 0005 CALL R7 0
+ 0x8C200F01, // 0006 GETMET R8 R7 K1
+ 0x5C280400, // 0007 MOVE R10 R2
+ 0x582C0002, // 0008 LDCONST R11 K2
+ 0x7C200600, // 0009 CALL R8 3
+ 0x8C200F01, // 000A GETMET R8 R7 K1
+ 0x5C280600, // 000B MOVE R10 R3
+ 0x542E0003, // 000C LDINT R11 4
+ 0x7C200600, // 000D CALL R8 3
+ 0x8C200F01, // 000E GETMET R8 R7 K1
+ 0x5C280800, // 000F MOVE R10 R4
+ 0x542E0003, // 0010 LDINT R11 4
+ 0x7C200600, // 0011 CALL R8 3
+ 0x8C200D03, // 0012 GETMET R8 R6 K3
+ 0x5C280E00, // 0013 MOVE R10 R7
+ 0x7C200400, // 0014 CALL R8 2
+ 0x88240104, // 0015 GETMBR R9 R0 K4
+ 0x8C241305, // 0016 GETMET R9 R9 K5
+ 0x5C2C0C00, // 0017 MOVE R11 R6
+ 0x7C240400, // 0018 CALL R9 2
+ 0x80000000, // 0019 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: parse_Pake1
+********************************************************************/
+be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */
+ be_nested_proto(
+ 17, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[47]) { /* constants */
+ /* K0 */ be_nested_str_weak(crypto),
+ /* K1 */ be_nested_str_weak(session),
+ /* K2 */ be_nested_str_weak(opcode),
+ /* K3 */ be_nested_str_weak(local_session_id),
+ /* K4 */ be_const_int(0),
+ /* K5 */ be_nested_str_weak(protocol_id),
+ /* K6 */ be_nested_str_weak(tasmota),
+ /* K7 */ be_nested_str_weak(log),
+ /* K8 */ be_nested_str_weak(MTR_X3A_X20invalid_X20Pake1_X20message),
+ /* K9 */ be_const_int(2),
+ /* K10 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
+ /* K11 */ be_nested_str_weak(send_status_report),
+ /* K12 */ be_const_int(1),
+ /* K13 */ be_nested_str_weak(matter),
+ /* K14 */ be_nested_str_weak(Pake1),
+ /* K15 */ be_nested_str_weak(parse),
+ /* K16 */ be_nested_str_weak(raw),
+ /* K17 */ be_nested_str_weak(app_payload_idx),
+ /* K18 */ be_nested_str_weak(pA),
+ /* K19 */ be_nested_str_weak(SPAKE2P_Matter),
+ /* K20 */ be_nested_str_weak(device),
+ /* K21 */ be_nested_str_weak(commissioning_w0),
+ /* K22 */ be_nested_str_weak(commissioning_L),
+ /* K23 */ be_nested_str_weak(random),
+ /* K24 */ be_nested_str_weak(compute_pB),
+ /* K25 */ be_nested_str_weak(compute_ZV_verifier),
+ /* K26 */ be_nested_str_weak(SHA256),
+ /* K27 */ be_nested_str_weak(update),
+ /* K28 */ be_nested_str_weak(fromstring),
+ /* K29 */ be_nested_str_weak(Matter_Context_Prefix),
+ /* K30 */ be_nested_str_weak(__Msg1),
+ /* K31 */ be_nested_str_weak(__Msg2),
+ /* K32 */ be_nested_str_weak(out),
+ /* K33 */ be_nested_str_weak(set_context),
+ /* K34 */ be_nested_str_weak(compute_TT_hash),
+ /* K35 */ be_nested_str_weak(Pake2),
+ /* K36 */ be_nested_str_weak(pB),
+ /* K37 */ be_nested_str_weak(cB),
+ /* K38 */ be_nested_str_weak(tlv2raw),
+ /* K39 */ be_nested_str_weak(__spake_cA),
+ /* K40 */ be_nested_str_weak(cA),
+ /* K41 */ be_nested_str_weak(__spake_Ke),
+ /* K42 */ be_nested_str_weak(Ke),
+ /* K43 */ be_nested_str_weak(build_response),
+ /* K44 */ be_nested_str_weak(encode_frame),
+ /* K45 */ be_nested_str_weak(responder),
+ /* K46 */ be_nested_str_weak(send_response_frame),
+ }),
+ be_str_weak(parse_Pake1),
+ &be_const_str_solidified,
+ ( &(const binstruction[105]) { /* code */
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0x880C0301, // 0001 GETMBR R3 R1 K1
+ 0x88100302, // 0002 GETMBR R4 R1 K2
+ 0x54160021, // 0003 LDINT R5 34
+ 0x20100805, // 0004 NE R4 R4 R5
+ 0x74120005, // 0005 JMPT R4 #000C
+ 0x88100303, // 0006 GETMBR R4 R1 K3
+ 0x20100904, // 0007 NE R4 R4 K4
+ 0x74120002, // 0008 JMPT R4 #000C
+ 0x88100305, // 0009 GETMBR R4 R1 K5
+ 0x20100904, // 000A NE R4 R4 K4
+ 0x78120012, // 000B JMPF R4 #001F
+ 0xB8120C00, // 000C GETNGBL R4 K6
+ 0x8C100907, // 000D GETMET R4 R4 K7
+ 0x58180008, // 000E LDCONST R6 K8
+ 0x581C0009, // 000F LDCONST R7 K9
+ 0x7C100600, // 0010 CALL R4 3
+ 0xB8120C00, // 0011 GETNGBL R4 K6
+ 0x8C100907, // 0012 GETMET R4 R4 K7
+ 0x5818000A, // 0013 LDCONST R6 K10
+ 0x581C0009, // 0014 LDCONST R7 K9
+ 0x7C100600, // 0015 CALL R4 3
+ 0x8C10010B, // 0016 GETMET R4 R0 K11
+ 0x5C180200, // 0017 MOVE R6 R1
+ 0x581C000C, // 0018 LDCONST R7 K12
+ 0x58200004, // 0019 LDCONST R8 K4
+ 0x58240009, // 001A LDCONST R9 K9
+ 0x50280000, // 001B LDBOOL R10 0 0
+ 0x7C100C00, // 001C CALL R4 6
+ 0x50140000, // 001D LDBOOL R5 0 0
+ 0x80040A00, // 001E RET 1 R5
+ 0xB8121A00, // 001F GETNGBL R4 K13
+ 0x8C10090E, // 0020 GETMET R4 R4 K14
+ 0x7C100200, // 0021 CALL R4 1
+ 0x8C10090F, // 0022 GETMET R4 R4 K15
+ 0x88180310, // 0023 GETMBR R6 R1 K16
+ 0x881C0311, // 0024 GETMBR R7 R1 K17
+ 0x7C100600, // 0025 CALL R4 3
+ 0x88140912, // 0026 GETMBR R5 R4 K18
+ 0x8C180513, // 0027 GETMET R6 R2 K19
+ 0x88200114, // 0028 GETMBR R8 R0 K20
+ 0x88201115, // 0029 GETMBR R8 R8 K21
+ 0x4C240000, // 002A LDNIL R9
+ 0x88280114, // 002B GETMBR R10 R0 K20
+ 0x88281516, // 002C GETMBR R10 R10 K22
+ 0x7C180800, // 002D CALL R6 4
+ 0x8C1C0517, // 002E GETMET R7 R2 K23
+ 0x5426001F, // 002F LDINT R9 32
+ 0x7C1C0400, // 0030 CALL R7 2
+ 0x8C200D18, // 0031 GETMET R8 R6 K24
+ 0x5C280E00, // 0032 MOVE R10 R7
+ 0x7C200400, // 0033 CALL R8 2
+ 0x8C200D19, // 0034 GETMET R8 R6 K25
+ 0x5C280A00, // 0035 MOVE R10 R5
+ 0x7C200400, // 0036 CALL R8 2
+ 0x8C20051A, // 0037 GETMET R8 R2 K26
+ 0x7C200200, // 0038 CALL R8 1
+ 0x8C24111B, // 0039 GETMET R9 R8 K27
+ 0x602C0015, // 003A GETGBL R11 G21
+ 0x7C2C0000, // 003B CALL R11 0
+ 0x8C2C171C, // 003C GETMET R11 R11 K28
+ 0x8834011D, // 003D GETMBR R13 R0 K29
+ 0x7C2C0400, // 003E CALL R11 2
+ 0x7C240400, // 003F CALL R9 2
+ 0x8C24111B, // 0040 GETMET R9 R8 K27
+ 0x882C071E, // 0041 GETMBR R11 R3 K30
+ 0x7C240400, // 0042 CALL R9 2
+ 0x8C24111B, // 0043 GETMET R9 R8 K27
+ 0x882C071F, // 0044 GETMBR R11 R3 K31
+ 0x7C240400, // 0045 CALL R9 2
+ 0x8C241120, // 0046 GETMET R9 R8 K32
+ 0x7C240200, // 0047 CALL R9 1
+ 0x901A2405, // 0048 SETMBR R6 K18 R5
+ 0x8C280D21, // 0049 GETMET R10 R6 K33
+ 0x5C301200, // 004A MOVE R12 R9
+ 0x7C280400, // 004B CALL R10 2
+ 0x8C280D22, // 004C GETMET R10 R6 K34
+ 0x50300200, // 004D LDBOOL R12 1 0
+ 0x7C280400, // 004E CALL R10 2
+ 0xB82A1A00, // 004F GETNGBL R10 K13
+ 0x8C281523, // 0050 GETMET R10 R10 K35
+ 0x7C280200, // 0051 CALL R10 1
+ 0x882C0D24, // 0052 GETMBR R11 R6 K36
+ 0x902A480B, // 0053 SETMBR R10 K36 R11
+ 0x882C0D25, // 0054 GETMBR R11 R6 K37
+ 0x902A4A0B, // 0055 SETMBR R10 K37 R11
+ 0x8C2C1526, // 0056 GETMET R11 R10 K38
+ 0x7C2C0200, // 0057 CALL R11 1
+ 0x88300D28, // 0058 GETMBR R12 R6 K40
+ 0x900E4E0C, // 0059 SETMBR R3 K39 R12
+ 0x88300D2A, // 005A GETMBR R12 R6 K42
+ 0x900E520C, // 005B SETMBR R3 K41 R12
+ 0x8C30032B, // 005C GETMET R12 R1 K43
+ 0x543A0022, // 005D LDINT R14 35
+ 0x503C0200, // 005E LDBOOL R15 1 0
+ 0x7C300600, // 005F CALL R12 3
+ 0x8C34192C, // 0060 GETMET R13 R12 K44
+ 0x5C3C1600, // 0061 MOVE R15 R11
+ 0x7C340400, // 0062 CALL R13 2
+ 0x8838012D, // 0063 GETMBR R14 R0 K45
+ 0x8C381D2E, // 0064 GETMET R14 R14 K46
+ 0x5C401800, // 0065 MOVE R16 R12
+ 0x7C380400, // 0066 CALL R14 2
+ 0x50380200, // 0067 LDBOOL R14 1 0
+ 0x80041C00, // 0068 RET 1 R14
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(Matter_Commisioning_Context_init, /* 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(crypto),
+ /* K1 */ be_nested_str_weak(responder),
+ /* K2 */ be_nested_str_weak(device),
+ }),
+ be_str_weak(init),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 5]) { /* code */
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0x90020201, // 0001 SETMBR R0 K1 R1
+ 0x880C0302, // 0002 GETMBR R3 R1 K2
+ 0x90020403, // 0003 SETMBR R0 K2 R3
+ 0x80000000, // 0004 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: parse_Pake3
+********************************************************************/
+be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */
+ be_nested_proto(
+ 20, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[31]) { /* constants */
+ /* K0 */ be_nested_str_weak(crypto),
+ /* K1 */ be_nested_str_weak(session),
+ /* K2 */ be_nested_str_weak(opcode),
+ /* K3 */ be_nested_str_weak(local_session_id),
+ /* K4 */ be_const_int(0),
+ /* K5 */ be_nested_str_weak(protocol_id),
+ /* K6 */ be_nested_str_weak(tasmota),
+ /* K7 */ be_nested_str_weak(log),
+ /* K8 */ be_nested_str_weak(MTR_X3A_X20invalid_X20Pake3_X20message),
+ /* K9 */ be_const_int(2),
+ /* K10 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
+ /* K11 */ be_nested_str_weak(send_status_report),
+ /* K12 */ be_const_int(1),
+ /* K13 */ be_nested_str_weak(matter),
+ /* K14 */ be_nested_str_weak(Pake3),
+ /* K15 */ be_nested_str_weak(parse),
+ /* K16 */ be_nested_str_weak(raw),
+ /* K17 */ be_nested_str_weak(app_payload_idx),
+ /* K18 */ be_nested_str_weak(cA),
+ /* K19 */ be_nested_str_weak(__spake_cA),
+ /* K20 */ be_nested_str_weak(MTR_X3A_X20invalid_X20cA_X20received),
+ /* K21 */ be_nested_str_weak(rtc),
+ /* K22 */ be_nested_str_weak(utc),
+ /* K23 */ be_nested_str_weak(HKDF_SHA256),
+ /* K24 */ be_nested_str_weak(derive),
+ /* K25 */ be_nested_str_weak(__spake_Ke),
+ /* K26 */ be_nested_str_weak(fromstring),
+ /* K27 */ be_nested_str_weak(SEKeys_Info),
+ /* K28 */ be_nested_str_weak(add_session),
+ /* K29 */ be_nested_str_weak(__future_local_session_id),
+ /* K30 */ be_nested_str_weak(__future_initiator_session_id),
+ }),
+ be_str_weak(parse_Pake3),
+ &be_const_str_solidified,
+ ( &(const binstruction[106]) { /* code */
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0x880C0301, // 0001 GETMBR R3 R1 K1
+ 0x88100302, // 0002 GETMBR R4 R1 K2
+ 0x54160023, // 0003 LDINT R5 36
+ 0x20100805, // 0004 NE R4 R4 R5
+ 0x74120005, // 0005 JMPT R4 #000C
+ 0x88100303, // 0006 GETMBR R4 R1 K3
+ 0x20100904, // 0007 NE R4 R4 K4
+ 0x74120002, // 0008 JMPT R4 #000C
+ 0x88100305, // 0009 GETMBR R4 R1 K5
+ 0x20100904, // 000A NE R4 R4 K4
+ 0x78120012, // 000B JMPF R4 #001F
+ 0xB8120C00, // 000C GETNGBL R4 K6
+ 0x8C100907, // 000D GETMET R4 R4 K7
+ 0x58180008, // 000E LDCONST R6 K8
+ 0x581C0009, // 000F LDCONST R7 K9
+ 0x7C100600, // 0010 CALL R4 3
+ 0xB8120C00, // 0011 GETNGBL R4 K6
+ 0x8C100907, // 0012 GETMET R4 R4 K7
+ 0x5818000A, // 0013 LDCONST R6 K10
+ 0x581C0009, // 0014 LDCONST R7 K9
+ 0x7C100600, // 0015 CALL R4 3
+ 0x8C10010B, // 0016 GETMET R4 R0 K11
+ 0x5C180200, // 0017 MOVE R6 R1
+ 0x581C000C, // 0018 LDCONST R7 K12
+ 0x58200004, // 0019 LDCONST R8 K4
+ 0x58240009, // 001A LDCONST R9 K9
+ 0x50280000, // 001B LDBOOL R10 0 0
+ 0x7C100C00, // 001C CALL R4 6
+ 0x50140000, // 001D LDBOOL R5 0 0
+ 0x80040A00, // 001E RET 1 R5
+ 0xB8121A00, // 001F GETNGBL R4 K13
+ 0x8C10090E, // 0020 GETMET R4 R4 K14
+ 0x7C100200, // 0021 CALL R4 1
+ 0x8C10090F, // 0022 GETMET R4 R4 K15
+ 0x88180310, // 0023 GETMBR R6 R1 K16
+ 0x881C0311, // 0024 GETMBR R7 R1 K17
+ 0x7C100600, // 0025 CALL R4 3
+ 0x88140912, // 0026 GETMBR R5 R4 K18
+ 0x88180713, // 0027 GETMBR R6 R3 K19
+ 0x20180A06, // 0028 NE R6 R5 R6
+ 0x781A0012, // 0029 JMPF R6 #003D
+ 0xB81A0C00, // 002A GETNGBL R6 K6
+ 0x8C180D07, // 002B GETMET R6 R6 K7
+ 0x58200014, // 002C LDCONST R8 K20
+ 0x58240009, // 002D LDCONST R9 K9
+ 0x7C180600, // 002E CALL R6 3
+ 0xB81A0C00, // 002F GETNGBL R6 K6
+ 0x8C180D07, // 0030 GETMET R6 R6 K7
+ 0x5820000A, // 0031 LDCONST R8 K10
+ 0x58240009, // 0032 LDCONST R9 K9
+ 0x7C180600, // 0033 CALL R6 3
+ 0x8C18010B, // 0034 GETMET R6 R0 K11
+ 0x5C200200, // 0035 MOVE R8 R1
+ 0x5824000C, // 0036 LDCONST R9 K12
+ 0x58280004, // 0037 LDCONST R10 K4
+ 0x582C0009, // 0038 LDCONST R11 K9
+ 0x50300000, // 0039 LDBOOL R12 0 0
+ 0x7C180C00, // 003A CALL R6 6
+ 0x501C0000, // 003B LDBOOL R7 0 0
+ 0x80040E00, // 003C RET 1 R7
+ 0xB81A0C00, // 003D GETNGBL R6 K6
+ 0x8C180D15, // 003E GETMET R6 R6 K21
+ 0x7C180200, // 003F CALL R6 1
+ 0x94180D16, // 0040 GETIDX R6 R6 K22
+ 0x8C1C0517, // 0041 GETMET R7 R2 K23
+ 0x7C1C0200, // 0042 CALL R7 1
+ 0x8C1C0F18, // 0043 GETMET R7 R7 K24
+ 0x88240719, // 0044 GETMBR R9 R3 K25
+ 0x60280015, // 0045 GETGBL R10 G21
+ 0x7C280000, // 0046 CALL R10 0
+ 0x602C0015, // 0047 GETGBL R11 G21
+ 0x7C2C0000, // 0048 CALL R11 0
+ 0x8C2C171A, // 0049 GETMET R11 R11 K26
+ 0x8834011B, // 004A GETMBR R13 R0 K27
+ 0x7C2C0400, // 004B CALL R11 2
+ 0x5432002F, // 004C LDINT R12 48
+ 0x7C1C0A00, // 004D CALL R7 5
+ 0x5422000E, // 004E LDINT R8 15
+ 0x40220808, // 004F CONNECT R8 K4 R8
+ 0x94200E08, // 0050 GETIDX R8 R7 R8
+ 0x5426000F, // 0051 LDINT R9 16
+ 0x542A001E, // 0052 LDINT R10 31
+ 0x4024120A, // 0053 CONNECT R9 R9 R10
+ 0x94240E09, // 0054 GETIDX R9 R7 R9
+ 0x542A001F, // 0055 LDINT R10 32
+ 0x542E002E, // 0056 LDINT R11 47
+ 0x4028140B, // 0057 CONNECT R10 R10 R11
+ 0x94280E0A, // 0058 GETIDX R10 R7 R10
+ 0x8C2C010B, // 0059 GETMET R11 R0 K11
+ 0x5C340200, // 005A MOVE R13 R1
+ 0x58380004, // 005B LDCONST R14 K4
+ 0x583C0004, // 005C LDCONST R15 K4
+ 0x58400004, // 005D LDCONST R16 K4
+ 0x50440000, // 005E LDBOOL R17 0 0
+ 0x7C2C0C00, // 005F CALL R11 6
+ 0x8C30011C, // 0060 GETMET R12 R0 K28
+ 0x8838071D, // 0061 GETMBR R14 R3 K29
+ 0x883C071E, // 0062 GETMBR R15 R3 K30
+ 0x5C401000, // 0063 MOVE R16 R8
+ 0x5C441200, // 0064 MOVE R17 R9
+ 0x5C481400, // 0065 MOVE R18 R10
+ 0x5C4C0C00, // 0066 MOVE R19 R6
+ 0x7C300E00, // 0067 CALL R12 7
+ 0x50300200, // 0068 LDBOOL R12 1 0
+ 0x80041800, // 0069 RET 1 R12
+ })
+ )
+);
+/*******************************************************************/
+
+
/********************************************************************
** Solidified function: parse_Sigma3
********************************************************************/
@@ -807,8 +974,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */
/* K63 */ be_nested_str_weak(Matter_TLV_struct),
/* K64 */ be_nested_str_weak(add_TLV),
/* K65 */ be_nested_str_weak(B1),
- /* K66 */ be_nested_str_weak(initiatorEph_pub),
- /* K67 */ be_nested_str_weak(ResponderEph_pub),
+ /* K66 */ be_nested_str_weak(__initiator_pub),
+ /* K67 */ be_nested_str_weak(__responder_pub),
/* K68 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20sigma3_tbs_X20_X20_X20_X20_X3D_X20),
/* K69 */ be_nested_str_weak(tlv2raw),
/* K70 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20sigma3_tbs_raw_X3D_X20),
@@ -1163,14 +1330,14 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */
0xB8661800, // 013C GETNGBL R25 K12
0x88643331, // 013D GETMBR R25 R25 K49
0x88643341, // 013E GETMBR R25 R25 K65
- 0x88680142, // 013F GETMBR R26 R0 K66
+ 0x88680742, // 013F GETMBR R26 R3 K66
0x7C580800, // 0140 CALL R22 4
0x8C582B40, // 0141 GETMET R22 R21 K64
0x54620003, // 0142 LDINT R24 4
0xB8661800, // 0143 GETNGBL R25 K12
0x88643331, // 0144 GETMBR R25 R25 K49
0x88643341, // 0145 GETMBR R25 R25 K65
- 0x88680143, // 0146 GETMBR R26 R0 K67
+ 0x88680743, // 0146 GETMBR R26 R3 K67
0x7C580800, // 0147 CALL R22 4
0xB85A0A00, // 0148 GETNGBL R22 K5
0x8C582D06, // 0149 GETMET R22 R22 K6
@@ -1409,68 +1576,11 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */
/********************************************************************
-** Solidified function: add_session
+** Solidified function: process_incoming
********************************************************************/
-be_local_closure(Matter_Commisioning_Context_add_session, /* name */
+be_local_closure(Matter_Commisioning_Context_process_incoming, /* name */
be_nested_proto(
- 15, /* nstack */
- 7, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[10]) { /* constants */
- /* K0 */ be_nested_str_weak(string),
- /* K1 */ be_nested_str_weak(tasmota),
- /* K2 */ be_nested_str_weak(log),
- /* K3 */ be_nested_str_weak(format),
- /* K4 */ be_nested_str_weak(MTR_X3A_X20add_session_X20local_session_id_X3D_X25i_X20initiator_session_id_X3D_X25i),
- /* K5 */ be_const_int(3),
- /* K6 */ be_nested_str_weak(device),
- /* K7 */ be_nested_str_weak(sessions),
- /* K8 */ be_nested_str_weak(create_session),
- /* K9 */ be_nested_str_weak(set_keys),
- }),
- be_str_weak(add_session),
- &be_const_str_solidified,
- ( &(const binstruction[23]) { /* code */
- 0xA41E0000, // 0000 IMPORT R7 K0
- 0xB8220200, // 0001 GETNGBL R8 K1
- 0x8C201102, // 0002 GETMET R8 R8 K2
- 0x8C280F03, // 0003 GETMET R10 R7 K3
- 0x58300004, // 0004 LDCONST R12 K4
- 0x5C340200, // 0005 MOVE R13 R1
- 0x5C380400, // 0006 MOVE R14 R2
- 0x7C280800, // 0007 CALL R10 4
- 0x582C0005, // 0008 LDCONST R11 K5
- 0x7C200600, // 0009 CALL R8 3
- 0x88200106, // 000A GETMBR R8 R0 K6
- 0x88201107, // 000B GETMBR R8 R8 K7
- 0x8C201108, // 000C GETMET R8 R8 K8
- 0x5C280200, // 000D MOVE R10 R1
- 0x5C2C0400, // 000E MOVE R11 R2
- 0x7C200600, // 000F CALL R8 3
- 0x8C241109, // 0010 GETMET R9 R8 K9
- 0x5C2C0600, // 0011 MOVE R11 R3
- 0x5C300800, // 0012 MOVE R12 R4
- 0x5C340A00, // 0013 MOVE R13 R5
- 0x5C380C00, // 0014 MOVE R14 R6
- 0x7C240A00, // 0015 CALL R9 5
- 0x80000000, // 0016 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: parse_Pake3
-********************************************************************/
-be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */
- be_nested_proto(
- 14, /* nstack */
+ 9, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@@ -1478,204 +1588,131 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[34]) { /* constants */
- /* K0 */ be_nested_str_weak(crypto),
- /* K1 */ be_nested_str_weak(opcode),
- /* K2 */ be_nested_str_weak(local_session_id),
- /* K3 */ be_const_int(0),
- /* K4 */ be_nested_str_weak(protocol_id),
- /* K5 */ be_nested_str_weak(tasmota),
- /* K6 */ be_nested_str_weak(log),
- /* K7 */ be_nested_str_weak(MTR_X3A_X20invalid_X20Pake3_X20message),
- /* K8 */ be_const_int(2),
- /* K9 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
- /* K10 */ be_nested_str_weak(send_status_report),
- /* K11 */ be_const_int(1),
- /* K12 */ be_nested_str_weak(matter),
- /* K13 */ be_nested_str_weak(Pake3),
- /* K14 */ be_nested_str_weak(parse),
- /* K15 */ be_nested_str_weak(raw),
- /* K16 */ be_nested_str_weak(app_payload_idx),
- /* K17 */ be_nested_str_weak(cA),
- /* K18 */ be_nested_str_weak(spake),
- /* K19 */ be_nested_str_weak(MTR_X3A_X20invalid_X20cA_X20received),
- /* K20 */ be_nested_str_weak(created),
- /* K21 */ be_nested_str_weak(rtc),
- /* K22 */ be_nested_str_weak(utc),
- /* K23 */ be_nested_str_weak(HKDF_SHA256),
- /* K24 */ be_nested_str_weak(derive),
- /* K25 */ be_nested_str_weak(Ke),
- /* K26 */ be_nested_str_weak(fromstring),
- /* K27 */ be_nested_str_weak(SEKeys_Info),
- /* K28 */ be_nested_str_weak(I2RKey),
- /* K29 */ be_nested_str_weak(R2IKey),
- /* K30 */ be_nested_str_weak(AttestationChallenge),
- /* K31 */ be_nested_str_weak(add_session),
- /* K32 */ be_nested_str_weak(future_local_session_id),
- /* K33 */ be_nested_str_weak(future_initiator_session_id),
+ ( &(const bvalue[20]) { /* constants */
+ /* K0 */ be_nested_str_weak(device),
+ /* K1 */ be_nested_str_weak(is_commissioning_open),
+ /* K2 */ be_nested_str_weak(opcode),
+ /* K3 */ be_nested_str_weak(tasmota),
+ /* K4 */ be_nested_str_weak(log),
+ /* K5 */ be_nested_str_weak(MTR_X3A_X20commissioning_X20not_X20open),
+ /* K6 */ be_const_int(2),
+ /* K7 */ be_nested_str_weak(MTR_X3A_X20received_X20message_X20),
+ /* K8 */ be_nested_str_weak(matter),
+ /* K9 */ be_nested_str_weak(inspect),
+ /* K10 */ be_const_int(3),
+ /* K11 */ be_nested_str_weak(parse_PBKDFParamRequest),
+ /* K12 */ be_nested_str_weak(parse_Pake1),
+ /* K13 */ be_nested_str_weak(parse_Pake3),
+ /* K14 */ be_nested_str_weak(parse_Sigma1),
+ /* K15 */ be_nested_str_weak(parse_Sigma3),
+ /* K16 */ be_nested_str_weak(parse_StatusReport),
+ /* K17 */ be_nested_str_weak(string),
+ /* K18 */ be_nested_str_weak(format),
+ /* K19 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X20Unknown_X20OpCode_X20_X28secure_X20channel_X29_X20_X2502X),
}),
- be_str_weak(parse_Pake3),
+ be_str_weak(process_incoming),
&be_const_str_solidified,
- ( &(const binstruction[112]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0x880C0301, // 0001 GETMBR R3 R1 K1
- 0x54120023, // 0002 LDINT R4 36
- 0x200C0604, // 0003 NE R3 R3 R4
- 0x740E0005, // 0004 JMPT R3 #000B
- 0x880C0302, // 0005 GETMBR R3 R1 K2
- 0x200C0703, // 0006 NE R3 R3 K3
- 0x740E0002, // 0007 JMPT R3 #000B
- 0x880C0304, // 0008 GETMBR R3 R1 K4
- 0x200C0703, // 0009 NE R3 R3 K3
- 0x780E0012, // 000A JMPF R3 #001E
- 0xB80E0A00, // 000B GETNGBL R3 K5
- 0x8C0C0706, // 000C GETMET R3 R3 K6
- 0x58140007, // 000D LDCONST R5 K7
- 0x58180008, // 000E LDCONST R6 K8
- 0x7C0C0600, // 000F CALL R3 3
- 0xB80E0A00, // 0010 GETNGBL R3 K5
- 0x8C0C0706, // 0011 GETMET R3 R3 K6
- 0x58140009, // 0012 LDCONST R5 K9
- 0x58180008, // 0013 LDCONST R6 K8
- 0x7C0C0600, // 0014 CALL R3 3
- 0x8C0C010A, // 0015 GETMET R3 R0 K10
- 0x5C140200, // 0016 MOVE R5 R1
- 0x5818000B, // 0017 LDCONST R6 K11
- 0x581C0003, // 0018 LDCONST R7 K3
- 0x58200008, // 0019 LDCONST R8 K8
- 0x50240000, // 001A LDBOOL R9 0 0
- 0x7C0C0C00, // 001B CALL R3 6
- 0x50100000, // 001C LDBOOL R4 0 0
- 0x80040800, // 001D RET 1 R4
- 0xB80E1800, // 001E GETNGBL R3 K12
- 0x8C0C070D, // 001F GETMET R3 R3 K13
- 0x7C0C0200, // 0020 CALL R3 1
- 0x8C0C070E, // 0021 GETMET R3 R3 K14
- 0x8814030F, // 0022 GETMBR R5 R1 K15
- 0x88180310, // 0023 GETMBR R6 R1 K16
- 0x7C0C0600, // 0024 CALL R3 3
- 0x88100711, // 0025 GETMBR R4 R3 K17
- 0x90022204, // 0026 SETMBR R0 K17 R4
- 0x88100111, // 0027 GETMBR R4 R0 K17
- 0x88140112, // 0028 GETMBR R5 R0 K18
- 0x88140B11, // 0029 GETMBR R5 R5 K17
- 0x20100805, // 002A NE R4 R4 R5
- 0x78120012, // 002B JMPF R4 #003F
- 0xB8120A00, // 002C GETNGBL R4 K5
- 0x8C100906, // 002D GETMET R4 R4 K6
- 0x58180013, // 002E LDCONST R6 K19
- 0x581C0008, // 002F LDCONST R7 K8
- 0x7C100600, // 0030 CALL R4 3
- 0xB8120A00, // 0031 GETNGBL R4 K5
- 0x8C100906, // 0032 GETMET R4 R4 K6
- 0x58180009, // 0033 LDCONST R6 K9
- 0x581C0008, // 0034 LDCONST R7 K8
- 0x7C100600, // 0035 CALL R4 3
- 0x8C10010A, // 0036 GETMET R4 R0 K10
- 0x5C180200, // 0037 MOVE R6 R1
- 0x581C000B, // 0038 LDCONST R7 K11
- 0x58200003, // 0039 LDCONST R8 K3
- 0x58240008, // 003A LDCONST R9 K8
- 0x50280000, // 003B LDBOOL R10 0 0
- 0x7C100C00, // 003C CALL R4 6
- 0x50140000, // 003D LDBOOL R5 0 0
- 0x80040A00, // 003E RET 1 R5
- 0xB8120A00, // 003F GETNGBL R4 K5
- 0x8C100915, // 0040 GETMET R4 R4 K21
- 0x7C100200, // 0041 CALL R4 1
- 0x94100916, // 0042 GETIDX R4 R4 K22
- 0x90022804, // 0043 SETMBR R0 K20 R4
- 0x8C100517, // 0044 GETMET R4 R2 K23
- 0x7C100200, // 0045 CALL R4 1
- 0x8C100918, // 0046 GETMET R4 R4 K24
- 0x88180119, // 0047 GETMBR R6 R0 K25
- 0x601C0015, // 0048 GETGBL R7 G21
- 0x7C1C0000, // 0049 CALL R7 0
- 0x60200015, // 004A GETGBL R8 G21
- 0x7C200000, // 004B CALL R8 0
- 0x8C20111A, // 004C GETMET R8 R8 K26
- 0x8828011B, // 004D GETMBR R10 R0 K27
- 0x7C200400, // 004E CALL R8 2
- 0x5426002F, // 004F LDINT R9 48
- 0x7C100A00, // 0050 CALL R4 5
- 0x5416000E, // 0051 LDINT R5 15
- 0x40160605, // 0052 CONNECT R5 K3 R5
- 0x94140805, // 0053 GETIDX R5 R4 R5
- 0x90023805, // 0054 SETMBR R0 K28 R5
- 0x5416000F, // 0055 LDINT R5 16
- 0x541A001E, // 0056 LDINT R6 31
- 0x40140A06, // 0057 CONNECT R5 R5 R6
- 0x94140805, // 0058 GETIDX R5 R4 R5
- 0x90023A05, // 0059 SETMBR R0 K29 R5
- 0x5416001F, // 005A LDINT R5 32
- 0x541A002E, // 005B LDINT R6 47
- 0x40140A06, // 005C CONNECT R5 R5 R6
- 0x94140805, // 005D GETIDX R5 R4 R5
- 0x90023C05, // 005E SETMBR R0 K30 R5
- 0x8C14010A, // 005F GETMET R5 R0 K10
- 0x5C1C0200, // 0060 MOVE R7 R1
- 0x58200003, // 0061 LDCONST R8 K3
- 0x58240003, // 0062 LDCONST R9 K3
- 0x58280003, // 0063 LDCONST R10 K3
- 0x502C0000, // 0064 LDBOOL R11 0 0
- 0x7C140C00, // 0065 CALL R5 6
- 0x8C18011F, // 0066 GETMET R6 R0 K31
- 0x88200120, // 0067 GETMBR R8 R0 K32
- 0x88240121, // 0068 GETMBR R9 R0 K33
- 0x8828011C, // 0069 GETMBR R10 R0 K28
- 0x882C011D, // 006A GETMBR R11 R0 K29
- 0x8830011E, // 006B GETMBR R12 R0 K30
- 0x88340114, // 006C GETMBR R13 R0 K20
- 0x7C180E00, // 006D CALL R6 7
- 0x50180200, // 006E LDBOOL R6 1 0
- 0x80040C00, // 006F RET 1 R6
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: parse_StatusReport
-********************************************************************/
-be_local_closure(Matter_Commisioning_Context_parse_StatusReport, /* 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[ 9]) { /* constants */
- /* K0 */ be_nested_str_weak(session),
- /* K1 */ be_nested_str_weak(tasmota),
- /* K2 */ be_nested_str_weak(log),
- /* K3 */ be_nested_str_weak(MTR_X3A_X20_X3EStatus_X20_X20_X20_X20),
- /* K4 */ be_nested_str_weak(raw),
- /* K5 */ be_nested_str_weak(app_payload_idx),
- /* K6 */ be_const_int(2147483647),
- /* K7 */ be_nested_str_weak(tohex),
- /* K8 */ be_const_int(2),
- }),
- be_str_weak(parse_StatusReport),
- &be_const_str_solidified,
- ( &(const binstruction[14]) { /* code */
- 0x88080300, // 0000 GETMBR R2 R1 K0
- 0xB80E0200, // 0001 GETNGBL R3 K1
- 0x8C0C0702, // 0002 GETMET R3 R3 K2
- 0x88140305, // 0003 GETMBR R5 R1 K5
- 0x40140B06, // 0004 CONNECT R5 R5 K6
- 0x88180304, // 0005 GETMBR R6 R1 K4
- 0x94140C05, // 0006 GETIDX R5 R6 R5
- 0x8C140B07, // 0007 GETMET R5 R5 K7
- 0x7C140200, // 0008 CALL R5 1
- 0x00160605, // 0009 ADD R5 K3 R5
- 0x58180008, // 000A LDCONST R6 K8
- 0x7C0C0600, // 000B CALL R3 3
- 0x500C0000, // 000C LDBOOL R3 0 0
- 0x80040600, // 000D RET 1 R3
+ ( &(const binstruction[100]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x8C080501, // 0001 GETMET R2 R2 K1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x740A000E, // 0003 JMPT R2 #0013
+ 0x88080302, // 0004 GETMBR R2 R1 K2
+ 0x540E001F, // 0005 LDINT R3 32
+ 0x28080403, // 0006 GE R2 R2 R3
+ 0x780A000A, // 0007 JMPF R2 #0013
+ 0x88080302, // 0008 GETMBR R2 R1 K2
+ 0x540E0023, // 0009 LDINT R3 36
+ 0x18080403, // 000A LE R2 R2 R3
+ 0x780A0006, // 000B JMPF R2 #0013
+ 0xB80A0600, // 000C GETNGBL R2 K3
+ 0x8C080504, // 000D GETMET R2 R2 K4
+ 0x58100005, // 000E LDCONST R4 K5
+ 0x58140006, // 000F LDCONST R5 K6
+ 0x7C080600, // 0010 CALL R2 3
+ 0x50080000, // 0011 LDBOOL R2 0 0
+ 0x80040400, // 0012 RET 1 R2
+ 0xB80A0600, // 0013 GETNGBL R2 K3
+ 0x8C080504, // 0014 GETMET R2 R2 K4
+ 0xB8121000, // 0015 GETNGBL R4 K8
+ 0x8C100909, // 0016 GETMET R4 R4 K9
+ 0x5C180200, // 0017 MOVE R6 R1
+ 0x7C100400, // 0018 CALL R4 2
+ 0x00120E04, // 0019 ADD R4 K7 R4
+ 0x5814000A, // 001A LDCONST R5 K10
+ 0x7C080600, // 001B CALL R2 3
+ 0x88080302, // 001C GETMBR R2 R1 K2
+ 0x540E000F, // 001D LDINT R3 16
+ 0x1C080403, // 001E EQ R2 R2 R3
+ 0x780A0000, // 001F JMPF R2 #0021
+ 0x70020040, // 0020 JMP #0062
+ 0x88080302, // 0021 GETMBR R2 R1 K2
+ 0x540E001F, // 0022 LDINT R3 32
+ 0x1C080403, // 0023 EQ R2 R2 R3
+ 0x780A0004, // 0024 JMPF R2 #002A
+ 0x8C08010B, // 0025 GETMET R2 R0 K11
+ 0x5C100200, // 0026 MOVE R4 R1
+ 0x7C080400, // 0027 CALL R2 2
+ 0x80040400, // 0028 RET 1 R2
+ 0x70020037, // 0029 JMP #0062
+ 0x88080302, // 002A GETMBR R2 R1 K2
+ 0x540E0021, // 002B LDINT R3 34
+ 0x1C080403, // 002C EQ R2 R2 R3
+ 0x780A0004, // 002D JMPF R2 #0033
+ 0x8C08010C, // 002E GETMET R2 R0 K12
+ 0x5C100200, // 002F MOVE R4 R1
+ 0x7C080400, // 0030 CALL R2 2
+ 0x80040400, // 0031 RET 1 R2
+ 0x7002002E, // 0032 JMP #0062
+ 0x88080302, // 0033 GETMBR R2 R1 K2
+ 0x540E0023, // 0034 LDINT R3 36
+ 0x1C080403, // 0035 EQ R2 R2 R3
+ 0x780A0004, // 0036 JMPF R2 #003C
+ 0x8C08010D, // 0037 GETMET R2 R0 K13
+ 0x5C100200, // 0038 MOVE R4 R1
+ 0x7C080400, // 0039 CALL R2 2
+ 0x80040400, // 003A RET 1 R2
+ 0x70020025, // 003B JMP #0062
+ 0x88080302, // 003C GETMBR R2 R1 K2
+ 0x540E002F, // 003D LDINT R3 48
+ 0x1C080403, // 003E EQ R2 R2 R3
+ 0x780A0004, // 003F JMPF R2 #0045
+ 0x8C08010E, // 0040 GETMET R2 R0 K14
+ 0x5C100200, // 0041 MOVE R4 R1
+ 0x7C080400, // 0042 CALL R2 2
+ 0x80040400, // 0043 RET 1 R2
+ 0x7002001C, // 0044 JMP #0062
+ 0x88080302, // 0045 GETMBR R2 R1 K2
+ 0x540E0031, // 0046 LDINT R3 50
+ 0x1C080403, // 0047 EQ R2 R2 R3
+ 0x780A0004, // 0048 JMPF R2 #004E
+ 0x8C08010F, // 0049 GETMET R2 R0 K15
+ 0x5C100200, // 004A MOVE R4 R1
+ 0x7C080400, // 004B CALL R2 2
+ 0x80040400, // 004C RET 1 R2
+ 0x70020013, // 004D JMP #0062
+ 0x88080302, // 004E GETMBR R2 R1 K2
+ 0x540E003F, // 004F LDINT R3 64
+ 0x1C080403, // 0050 EQ R2 R2 R3
+ 0x780A0004, // 0051 JMPF R2 #0057
+ 0x8C080110, // 0052 GETMET R2 R0 K16
+ 0x5C100200, // 0053 MOVE R4 R1
+ 0x7C080400, // 0054 CALL R2 2
+ 0x80040400, // 0055 RET 1 R2
+ 0x7002000A, // 0056 JMP #0062
+ 0xA40A2200, // 0057 IMPORT R2 K17
+ 0xB80E0600, // 0058 GETNGBL R3 K3
+ 0x8C0C0704, // 0059 GETMET R3 R3 K4
+ 0x8C140512, // 005A GETMET R5 R2 K18
+ 0x581C0013, // 005B LDCONST R7 K19
+ 0x88200302, // 005C GETMBR R8 R1 K2
+ 0x7C140600, // 005D CALL R5 3
+ 0x58180006, // 005E LDCONST R6 K6
+ 0x7C0C0600, // 005F CALL R3 3
+ 0x500C0000, // 0060 LDBOOL R3 0 0
+ 0x80040600, // 0061 RET 1 R3
+ 0x50080000, // 0062 LDBOOL R2 0 0
+ 0x80040400, // 0063 RET 1 R2
})
)
);
@@ -1695,33 +1732,33 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[145]) { /* constants */
+ ( &(const bvalue[144]) { /* constants */
/* K0 */ be_nested_str_weak(crypto),
/* K1 */ be_nested_str_weak(string),
- /* K2 */ be_nested_str_weak(opcode),
- /* K3 */ be_nested_str_weak(local_session_id),
- /* K4 */ be_const_int(0),
- /* K5 */ be_nested_str_weak(protocol_id),
- /* K6 */ be_nested_str_weak(tasmota),
- /* K7 */ be_nested_str_weak(log),
- /* K8 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
- /* K9 */ be_const_int(2),
- /* K10 */ be_nested_str_weak(send_status_report),
- /* K11 */ be_const_int(1),
- /* K12 */ be_nested_str_weak(matter),
- /* K13 */ be_nested_str_weak(Sigma1),
- /* K14 */ be_nested_str_weak(parse),
- /* K15 */ be_nested_str_weak(raw),
- /* K16 */ be_nested_str_weak(app_payload_idx),
- /* K17 */ be_nested_str_weak(format),
- /* K18 */ be_nested_str_weak(MTR_X3A_X20sigma1_X3D_X25s),
- /* K19 */ be_nested_str_weak(inspect),
- /* K20 */ be_nested_str_weak(initiatorEph_pub),
- /* K21 */ be_nested_str_weak(initiatorEphPubKey),
- /* K22 */ be_nested_str_weak(resumptionID),
- /* K23 */ be_nested_str_weak(initiatorResumeMIC),
- /* K24 */ be_nested_str_weak(MTR_X3A_X20is_resumption_X3D_X25i),
- /* K25 */ be_nested_str_weak(session),
+ /* K2 */ be_nested_str_weak(session),
+ /* K3 */ be_nested_str_weak(opcode),
+ /* K4 */ be_nested_str_weak(local_session_id),
+ /* K5 */ be_const_int(0),
+ /* K6 */ be_nested_str_weak(protocol_id),
+ /* K7 */ be_nested_str_weak(tasmota),
+ /* K8 */ be_nested_str_weak(log),
+ /* K9 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29),
+ /* K10 */ be_const_int(2),
+ /* K11 */ be_nested_str_weak(send_status_report),
+ /* K12 */ be_const_int(1),
+ /* K13 */ be_nested_str_weak(matter),
+ /* K14 */ be_nested_str_weak(Sigma1),
+ /* K15 */ be_nested_str_weak(parse),
+ /* K16 */ be_nested_str_weak(raw),
+ /* K17 */ be_nested_str_weak(app_payload_idx),
+ /* K18 */ be_nested_str_weak(format),
+ /* K19 */ be_nested_str_weak(MTR_X3A_X20sigma1_X3D_X25s),
+ /* K20 */ be_nested_str_weak(inspect),
+ /* K21 */ be_nested_str_weak(__initiator_pub),
+ /* K22 */ be_nested_str_weak(initiatorEphPubKey),
+ /* K23 */ be_nested_str_weak(resumptionID),
+ /* K24 */ be_nested_str_weak(initiatorResumeMIC),
+ /* K25 */ be_nested_str_weak(MTR_X3A_X20is_resumption_X3D_X25i),
/* K26 */ be_nested_str_weak(device),
/* K27 */ be_nested_str_weak(sessions),
/* K28 */ be_nested_str_weak(find_session_by_resumption_id),
@@ -1792,146 +1829,145 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
/* K93 */ be_nested_str_weak(find_fabric_by_destination_id),
/* K94 */ be_nested_str_weak(destinationId),
/* K95 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28GeneralCode_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20NO_SHARED_TRUST_ROOTS_X29),
- /* K96 */ be_nested_str_weak(future_local_session_id),
- /* K97 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D),
- /* K98 */ be_nested_str_weak(MTR_X3A_X20no_private_key_X3D),
- /* K99 */ be_nested_str_weak(no_private_key),
- /* K100 */ be_nested_str_weak(MTR_X3A_X20noc_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D),
- /* K101 */ be_nested_str_weak(noc),
- /* K102 */ be_nested_str_weak(get_icac),
- /* K103 */ be_nested_str_weak(MTR_X3A_X20icac_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D),
- /* K104 */ be_nested_str_weak(MTR_X3A_X20root_ca_cert_X20_X20_X3D),
- /* K105 */ be_nested_str_weak(root_ca_certificate),
- /* K106 */ be_nested_str_weak(ResponderEph_priv),
- /* K107 */ be_nested_str_weak(ResponderEph_pub),
- /* K108 */ be_nested_str_weak(EC_P256),
- /* K109 */ be_nested_str_weak(public_key),
- /* K110 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_priv_X20_X20_X3D),
- /* K111 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_pub_X20_X20_X3D),
- /* K112 */ be_nested_str_weak(shared_key),
- /* K113 */ be_nested_str_weak(TLV),
- /* K114 */ be_nested_str_weak(Matter_TLV_struct),
- /* K115 */ be_nested_str_weak(add_TLV),
- /* K116 */ be_nested_str_weak(B2),
- /* K117 */ be_nested_str_weak(get_noc),
- /* K118 */ be_const_int(3),
- /* K119 */ be_nested_str_weak(ecdsa_sign_sha256),
- /* K120 */ be_nested_str_weak(get_pk),
- /* K121 */ be_nested_str_weak(Msg1),
- /* K122 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20resumptionid_X20_X20_X3D_X20),
- /* K123 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20MSG1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20),
- /* K124 */ be_nested_str_weak(SHA256),
- /* K125 */ be_nested_str_weak(update),
- /* K126 */ be_nested_str_weak(out),
- /* K127 */ be_nested_str_weak(MTR_X3A_X20TranscriptHash_X20_X3D),
- /* K128 */ be_nested_str_weak(S2K_Info),
- /* K129 */ be_nested_str_weak(get_ipk_group_key),
- /* K130 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20SharedSecret_X20_X20_X3D_X20),
- /* K131 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_salt_X20_X20_X20_X20_X20_X20_X3D_X20),
- /* K132 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20),
- /* K133 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Raw_X20_X20_X20_X3D_X20),
- /* K134 */ be_nested_str_weak(TBEData2_Nonce),
- /* K135 */ be_nested_str_weak(encrypt),
- /* K136 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Enc_X20_X20_X20_X3D_X20),
- /* K137 */ be_nested_str_weak(Sigma2),
- /* K138 */ be_nested_str_weak(responderRandom),
- /* K139 */ be_nested_str_weak(responderSessionId),
- /* K140 */ be_nested_str_weak(responderEphPubKey),
- /* K141 */ be_nested_str_weak(encrypted2),
- /* K142 */ be_nested_str_weak(MTR_X3A_X20sigma2_X3A_X20),
- /* K143 */ be_nested_str_weak(__Msg2),
- /* K144 */ be_nested_str_weak(MTR_X3A_X20sigma2_raw_X3A_X20),
+ /* K96 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D),
+ /* K97 */ be_nested_str_weak(MTR_X3A_X20no_private_key_X3D),
+ /* K98 */ be_nested_str_weak(no_private_key),
+ /* K99 */ be_nested_str_weak(MTR_X3A_X20noc_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D),
+ /* K100 */ be_nested_str_weak(noc),
+ /* K101 */ be_nested_str_weak(get_icac),
+ /* K102 */ be_nested_str_weak(MTR_X3A_X20icac_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D),
+ /* K103 */ be_nested_str_weak(MTR_X3A_X20root_ca_cert_X20_X20_X3D),
+ /* K104 */ be_nested_str_weak(root_ca_certificate),
+ /* K105 */ be_nested_str_weak(__responder_priv),
+ /* K106 */ be_nested_str_weak(__responder_pub),
+ /* K107 */ be_nested_str_weak(EC_P256),
+ /* K108 */ be_nested_str_weak(public_key),
+ /* K109 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_priv_X20_X20_X3D),
+ /* K110 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_pub_X20_X20_X3D),
+ /* K111 */ be_nested_str_weak(shared_key),
+ /* K112 */ be_nested_str_weak(TLV),
+ /* K113 */ be_nested_str_weak(Matter_TLV_struct),
+ /* K114 */ be_nested_str_weak(add_TLV),
+ /* K115 */ be_nested_str_weak(B2),
+ /* K116 */ be_nested_str_weak(get_noc),
+ /* K117 */ be_const_int(3),
+ /* K118 */ be_nested_str_weak(ecdsa_sign_sha256),
+ /* K119 */ be_nested_str_weak(get_pk),
+ /* K120 */ be_nested_str_weak(Msg1),
+ /* K121 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20resumptionid_X20_X20_X3D_X20),
+ /* K122 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20MSG1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20),
+ /* K123 */ be_nested_str_weak(SHA256),
+ /* K124 */ be_nested_str_weak(update),
+ /* K125 */ be_nested_str_weak(out),
+ /* K126 */ be_nested_str_weak(MTR_X3A_X20TranscriptHash_X20_X3D),
+ /* K127 */ be_nested_str_weak(S2K_Info),
+ /* K128 */ be_nested_str_weak(get_ipk_group_key),
+ /* K129 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20SharedSecret_X20_X20_X3D_X20),
+ /* K130 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_salt_X20_X20_X20_X20_X20_X20_X3D_X20),
+ /* K131 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20),
+ /* K132 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Raw_X20_X20_X20_X3D_X20),
+ /* K133 */ be_nested_str_weak(TBEData2_Nonce),
+ /* K134 */ be_nested_str_weak(encrypt),
+ /* K135 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Enc_X20_X20_X20_X3D_X20),
+ /* K136 */ be_nested_str_weak(Sigma2),
+ /* K137 */ be_nested_str_weak(responderRandom),
+ /* K138 */ be_nested_str_weak(responderSessionId),
+ /* K139 */ be_nested_str_weak(responderEphPubKey),
+ /* K140 */ be_nested_str_weak(encrypted2),
+ /* K141 */ be_nested_str_weak(MTR_X3A_X20sigma2_X3A_X20),
+ /* K142 */ be_nested_str_weak(__Msg2),
+ /* K143 */ be_nested_str_weak(MTR_X3A_X20sigma2_raw_X3A_X20),
}),
be_str_weak(parse_Sigma1),
&be_const_str_solidified,
- ( &(const binstruction[795]) { /* code */
+ ( &(const binstruction[793]) { /* code */
0xA40A0000, // 0000 IMPORT R2 K0
0xA40E0200, // 0001 IMPORT R3 K1
0x88100302, // 0002 GETMBR R4 R1 K2
- 0x5416002F, // 0003 LDINT R5 48
- 0x20100805, // 0004 NE R4 R4 R5
- 0x74120005, // 0005 JMPT R4 #000C
- 0x88100303, // 0006 GETMBR R4 R1 K3
- 0x20100904, // 0007 NE R4 R4 K4
- 0x74120002, // 0008 JMPT R4 #000C
- 0x88100305, // 0009 GETMBR R4 R1 K5
- 0x20100904, // 000A NE R4 R4 K4
- 0x7812000D, // 000B JMPF R4 #001A
- 0xB8120C00, // 000C GETNGBL R4 K6
- 0x8C100907, // 000D GETMET R4 R4 K7
- 0x58180008, // 000E LDCONST R6 K8
+ 0x88140303, // 0003 GETMBR R5 R1 K3
+ 0x541A002F, // 0004 LDINT R6 48
+ 0x20140A06, // 0005 NE R5 R5 R6
+ 0x74160005, // 0006 JMPT R5 #000D
+ 0x88140304, // 0007 GETMBR R5 R1 K4
+ 0x20140B05, // 0008 NE R5 R5 K5
+ 0x74160002, // 0009 JMPT R5 #000D
+ 0x88140306, // 000A GETMBR R5 R1 K6
+ 0x20140B05, // 000B NE R5 R5 K5
+ 0x7816000D, // 000C JMPF R5 #001B
+ 0xB8160E00, // 000D GETNGBL R5 K7
+ 0x8C140B08, // 000E GETMET R5 R5 K8
0x581C0009, // 000F LDCONST R7 K9
- 0x7C100600, // 0010 CALL R4 3
- 0x8C10010A, // 0011 GETMET R4 R0 K10
- 0x5C180200, // 0012 MOVE R6 R1
- 0x581C000B, // 0013 LDCONST R7 K11
- 0x58200004, // 0014 LDCONST R8 K4
- 0x58240009, // 0015 LDCONST R9 K9
- 0x50280000, // 0016 LDBOOL R10 0 0
- 0x7C100C00, // 0017 CALL R4 6
- 0x50140000, // 0018 LDBOOL R5 0 0
- 0x80040A00, // 0019 RET 1 R5
- 0xB8121800, // 001A GETNGBL R4 K12
- 0x8C10090D, // 001B GETMET R4 R4 K13
- 0x7C100200, // 001C CALL R4 1
- 0x8C10090E, // 001D GETMET R4 R4 K14
- 0x8818030F, // 001E GETMBR R6 R1 K15
+ 0x5820000A, // 0010 LDCONST R8 K10
+ 0x7C140600, // 0011 CALL R5 3
+ 0x8C14010B, // 0012 GETMET R5 R0 K11
+ 0x5C1C0200, // 0013 MOVE R7 R1
+ 0x5820000C, // 0014 LDCONST R8 K12
+ 0x58240005, // 0015 LDCONST R9 K5
+ 0x5828000A, // 0016 LDCONST R10 K10
+ 0x502C0000, // 0017 LDBOOL R11 0 0
+ 0x7C140C00, // 0018 CALL R5 6
+ 0x50180000, // 0019 LDBOOL R6 0 0
+ 0x80040C00, // 001A RET 1 R6
+ 0xB8161A00, // 001B GETNGBL R5 K13
+ 0x8C140B0E, // 001C GETMET R5 R5 K14
+ 0x7C140200, // 001D CALL R5 1
+ 0x8C140B0F, // 001E GETMET R5 R5 K15
0x881C0310, // 001F GETMBR R7 R1 K16
- 0x7C100600, // 0020 CALL R4 3
- 0xB8160C00, // 0021 GETNGBL R5 K6
- 0x8C140B07, // 0022 GETMET R5 R5 K7
- 0x8C1C0711, // 0023 GETMET R7 R3 K17
- 0x58240012, // 0024 LDCONST R9 K18
- 0xB82A1800, // 0025 GETNGBL R10 K12
- 0x8C281513, // 0026 GETMET R10 R10 K19
- 0x5C300800, // 0027 MOVE R12 R4
- 0x7C280400, // 0028 CALL R10 2
- 0x7C1C0600, // 0029 CALL R7 3
- 0x54220003, // 002A LDINT R8 4
- 0x7C140600, // 002B CALL R5 3
- 0x88140915, // 002C GETMBR R5 R4 K21
- 0x90022805, // 002D SETMBR R0 K20 R5
- 0x88140916, // 002E GETMBR R5 R4 K22
- 0x4C180000, // 002F LDNIL R6
- 0x20140A06, // 0030 NE R5 R5 R6
- 0x78160003, // 0031 JMPF R5 #0036
- 0x88140917, // 0032 GETMBR R5 R4 K23
- 0x4C180000, // 0033 LDNIL R6
- 0x20140A06, // 0034 NE R5 R5 R6
- 0x74160000, // 0035 JMPT R5 #0037
- 0x50140001, // 0036 LDBOOL R5 0 1
- 0x50140200, // 0037 LDBOOL R5 1 0
- 0xB81A0C00, // 0038 GETNGBL R6 K6
- 0x8C180D07, // 0039 GETMET R6 R6 K7
- 0x8C200711, // 003A GETMET R8 R3 K17
- 0x58280018, // 003B LDCONST R10 K24
- 0x78160001, // 003C JMPF R5 #003F
- 0x582C000B, // 003D LDCONST R11 K11
- 0x70020000, // 003E JMP #0040
- 0x582C0004, // 003F LDCONST R11 K4
- 0x7C200600, // 0040 CALL R8 3
- 0x54260003, // 0041 LDINT R9 4
- 0x7C180600, // 0042 CALL R6 3
- 0x50140000, // 0043 LDBOOL R5 0 0
- 0x88180319, // 0044 GETMBR R6 R1 K25
+ 0x88200311, // 0020 GETMBR R8 R1 K17
+ 0x7C140600, // 0021 CALL R5 3
+ 0xB81A0E00, // 0022 GETNGBL R6 K7
+ 0x8C180D08, // 0023 GETMET R6 R6 K8
+ 0x8C200712, // 0024 GETMET R8 R3 K18
+ 0x58280013, // 0025 LDCONST R10 K19
+ 0xB82E1A00, // 0026 GETNGBL R11 K13
+ 0x8C2C1714, // 0027 GETMET R11 R11 K20
+ 0x5C340A00, // 0028 MOVE R13 R5
+ 0x7C2C0400, // 0029 CALL R11 2
+ 0x7C200600, // 002A CALL R8 3
+ 0x54260003, // 002B LDINT R9 4
+ 0x7C180600, // 002C CALL R6 3
+ 0x88180B16, // 002D GETMBR R6 R5 K22
+ 0x90122A06, // 002E SETMBR R4 K21 R6
+ 0x88180B17, // 002F GETMBR R6 R5 K23
+ 0x4C1C0000, // 0030 LDNIL R7
+ 0x20180C07, // 0031 NE R6 R6 R7
+ 0x781A0003, // 0032 JMPF R6 #0037
+ 0x88180B18, // 0033 GETMBR R6 R5 K24
+ 0x4C1C0000, // 0034 LDNIL R7
+ 0x20180C07, // 0035 NE R6 R6 R7
+ 0x741A0000, // 0036 JMPT R6 #0038
+ 0x50180001, // 0037 LDBOOL R6 0 1
+ 0x50180200, // 0038 LDBOOL R6 1 0
+ 0xB81E0E00, // 0039 GETNGBL R7 K7
+ 0x8C1C0F08, // 003A GETMET R7 R7 K8
+ 0x8C240712, // 003B GETMET R9 R3 K18
+ 0x582C0019, // 003C LDCONST R11 K25
+ 0x781A0001, // 003D JMPF R6 #0040
+ 0x5830000C, // 003E LDCONST R12 K12
+ 0x70020000, // 003F JMP #0041
+ 0x58300005, // 0040 LDCONST R12 K5
+ 0x7C240600, // 0041 CALL R9 3
+ 0x542A0003, // 0042 LDINT R10 4
+ 0x7C1C0600, // 0043 CALL R7 3
+ 0x50180000, // 0044 LDBOOL R6 0 0
0x4C1C0000, // 0045 LDNIL R7
- 0x7816001C, // 0046 JMPF R5 #0064
+ 0x781A001C, // 0046 JMPF R6 #0064
0x8820011A, // 0047 GETMBR R8 R0 K26
0x8820111B, // 0048 GETMBR R8 R8 K27
0x8C20111C, // 0049 GETMET R8 R8 K28
- 0x88280916, // 004A GETMBR R10 R4 K22
+ 0x88280B17, // 004A GETMBR R10 R5 K23
0x7C200400, // 004B CALL R8 2
0x5C1C1000, // 004C MOVE R7 R8
- 0xB8220C00, // 004D GETNGBL R8 K6
- 0x8C201107, // 004E GETMET R8 R8 K7
- 0x8C280711, // 004F GETMET R10 R3 K17
+ 0xB8220E00, // 004D GETNGBL R8 K7
+ 0x8C201108, // 004E GETMET R8 R8 K8
+ 0x8C280712, // 004F GETMET R10 R3 K18
0x5830001D, // 0050 LDCONST R12 K29
- 0xB8361800, // 0051 GETNGBL R13 K12
- 0x8C341B13, // 0052 GETMET R13 R13 K19
- 0x5C3C0C00, // 0053 MOVE R15 R6
+ 0xB8361A00, // 0051 GETNGBL R13 K13
+ 0x8C341B14, // 0052 GETMET R13 R13 K20
+ 0x5C3C0800, // 0053 MOVE R15 R4
0x7C340400, // 0054 CALL R13 2
- 0xB83A1800, // 0055 GETNGBL R14 K12
- 0x8C381D13, // 0056 GETMET R14 R14 K19
+ 0xB83A1A00, // 0055 GETNGBL R14 K13
+ 0x8C381D14, // 0056 GETMET R14 R14 K20
0x5C400E00, // 0057 MOVE R16 R7
0x7C380400, // 0058 CALL R14 2
0x7C280800, // 0059 CALL R10 4
@@ -1944,10 +1980,10 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x4C240000, // 0060 LDNIL R9
0x1C201009, // 0061 EQ R8 R8 R9
0x78220000, // 0062 JMPF R8 #0064
- 0x50140000, // 0063 LDBOOL R5 0 0
- 0x7816013A, // 0064 JMPF R5 #01A0
- 0x8820091F, // 0065 GETMBR R8 R4 K31
- 0x88240916, // 0066 GETMBR R9 R4 K22
+ 0x50180000, // 0063 LDBOOL R6 0 0
+ 0x781A013A, // 0064 JMPF R6 #01A0
+ 0x88200B1F, // 0065 GETMBR R8 R5 K31
+ 0x88240B17, // 0066 GETMBR R9 R5 K23
0x00201009, // 0067 ADD R8 R8 R9
0x60240015, // 0068 GETGBL R9 G21
0x7C240000, // 0069 CALL R9 0
@@ -1968,12 +2004,12 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x58340025, // 0078 LDCONST R13 K37
0x7C2C0400, // 0079 CALL R11 2
0x5431FFEE, // 007A LDINT R12 -17
- 0x4032080C, // 007B CONNECT R12 K4 R12
- 0x88340917, // 007C GETMBR R13 R4 K23
+ 0x40320A0C, // 007B CONNECT R12 K5 R12
+ 0x88340B18, // 007C GETMBR R13 R5 K24
0x94301A0C, // 007D GETIDX R12 R13 R12
0x5439FFEF, // 007E LDINT R14 -16
0x40381D26, // 007F CONNECT R14 R14 K38
- 0x883C0917, // 0080 GETMBR R15 R4 K23
+ 0x883C0B18, // 0080 GETMBR R15 R5 K24
0x94341E0E, // 0081 GETIDX R13 R15 R14
0x8C400527, // 0082 GETMET R16 R2 K39
0x5C481400, // 0083 MOVE R18 R10
@@ -1992,87 +2028,87 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x5C3C2000, // 0090 MOVE R15 R16
0x8C401D29, // 0091 GETMET R16 R14 K41
0x7C400200, // 0092 CALL R16 1
- 0xB8460C00, // 0093 GETNGBL R17 K6
- 0x8C442307, // 0094 GETMET R17 R17 K7
+ 0xB8460E00, // 0093 GETNGBL R17 K7
+ 0x8C442308, // 0094 GETMET R17 R17 K8
0x584C002A, // 0095 LDCONST R19 K42
0x54520003, // 0096 LDINT R20 4
0x7C440600, // 0097 CALL R17 3
- 0xB8460C00, // 0098 GETNGBL R17 K6
- 0x8C442307, // 0099 GETMET R17 R17 K7
+ 0xB8460E00, // 0098 GETNGBL R17 K7
+ 0x8C442308, // 0099 GETMET R17 R17 K8
0x8C4C152C, // 009A GETMET R19 R10 K44
0x7C4C0200, // 009B CALL R19 1
0x004E5613, // 009C ADD R19 K43 R19
0x54520003, // 009D LDINT R20 4
0x7C440600, // 009E CALL R17 3
- 0xB8460C00, // 009F GETNGBL R17 K6
- 0x8C442307, // 00A0 GETMET R17 R17 K7
+ 0xB8460E00, // 009F GETNGBL R17 K7
+ 0x8C442308, // 00A0 GETMET R17 R17 K8
0x8C4C1B2C, // 00A1 GETMET R19 R13 K44
0x7C4C0200, // 00A2 CALL R19 1
0x004E5A13, // 00A3 ADD R19 K45 R19
0x54520003, // 00A4 LDINT R20 4
0x7C440600, // 00A5 CALL R17 3
- 0xB8460C00, // 00A6 GETNGBL R17 K6
- 0x8C442307, // 00A7 GETMET R17 R17 K7
+ 0xB8460E00, // 00A6 GETNGBL R17 K7
+ 0x8C442308, // 00A7 GETMET R17 R17 K8
0x8C4C1F2C, // 00A8 GETMET R19 R15 K44
0x7C4C0200, // 00A9 CALL R19 1
0x004E5C13, // 00AA ADD R19 K46 R19
0x54520003, // 00AB LDINT R20 4
0x7C440600, // 00AC CALL R17 3
- 0xB8460C00, // 00AD GETNGBL R17 K6
- 0x8C442307, // 00AE GETMET R17 R17 K7
+ 0xB8460E00, // 00AD GETNGBL R17 K7
+ 0x8C442308, // 00AE GETMET R17 R17 K8
0x8C4C212C, // 00AF GETMET R19 R16 K44
0x7C4C0200, // 00B0 CALL R19 1
0x004E5E13, // 00B1 ADD R19 K47 R19
0x54520003, // 00B2 LDINT R20 4
0x7C440600, // 00B3 CALL R17 3
- 0xB8460C00, // 00B4 GETNGBL R17 K6
- 0x8C442307, // 00B5 GETMET R17 R17 K7
+ 0xB8460E00, // 00B4 GETNGBL R17 K7
+ 0x8C442308, // 00B5 GETMET R17 R17 K8
0x584C002A, // 00B6 LDCONST R19 K42
0x54520003, // 00B7 LDINT R20 4
0x7C440600, // 00B8 CALL R17 3
0x1C441A10, // 00B9 EQ R17 R13 R16
0x784600E3, // 00BA JMPF R17 #019F
0x88440F1E, // 00BB GETMBR R17 R7 K30
- 0x901A3C11, // 00BC SETMBR R6 K30 R17
+ 0x90123C11, // 00BC SETMBR R4 K30 R17
0x88440331, // 00BD GETMBR R17 R1 K49
- 0x901A6011, // 00BE SETMBR R6 K48 R17
- 0x8C440D32, // 00BF GETMET R17 R6 K50
+ 0x90126011, // 00BE SETMBR R4 K48 R17
+ 0x8C440932, // 00BF GETMET R17 R4 K50
0x7C440200, // 00C0 CALL R17 1
- 0x88440934, // 00C1 GETMBR R17 R4 K52
- 0x901A6611, // 00C2 SETMBR R6 K51 R17
+ 0x88440B34, // 00C1 GETMBR R17 R5 K52
+ 0x90126611, // 00C2 SETMBR R4 K51 R17
0x8844011A, // 00C3 GETMBR R17 R0 K26
0x8844231B, // 00C4 GETMBR R17 R17 K27
0x8C442336, // 00C5 GETMET R17 R17 K54
0x7C440200, // 00C6 CALL R17 1
- 0x901A6A11, // 00C7 SETMBR R6 K53 R17
- 0xB8460C00, // 00C8 GETNGBL R17 K6
- 0x8C442307, // 00C9 GETMET R17 R17 K7
- 0x8C4C0711, // 00CA GETMET R19 R3 K17
+ 0x90126A11, // 00C7 SETMBR R4 K53 R17
+ 0xB8460E00, // 00C8 GETNGBL R17 K7
+ 0x8C442308, // 00C9 GETMET R17 R17 K8
+ 0x8C4C0712, // 00CA GETMET R19 R3 K18
0x58540037, // 00CB LDCONST R21 K55
- 0x88580D35, // 00CC GETMBR R22 R6 K53
+ 0x88580935, // 00CC GETMBR R22 R4 K53
0x885C0338, // 00CD GETMBR R23 R1 K56
0x88600339, // 00CE GETMBR R24 R1 K57
0x7C4C0A00, // 00CF CALL R19 5
- 0x58500009, // 00D0 LDCONST R20 K9
+ 0x5850000A, // 00D0 LDCONST R20 K10
0x7C440600, // 00D1 CALL R17 3
0x88440F24, // 00D2 GETMBR R17 R7 K36
- 0x901A4811, // 00D3 SETMBR R6 K36 R17
+ 0x90124811, // 00D3 SETMBR R4 K36 R17
0x8C44053B, // 00D4 GETMET R17 R2 K59
0x544E000F, // 00D5 LDINT R19 16
0x7C440400, // 00D6 CALL R17 2
- 0x901A7411, // 00D7 SETMBR R6 K58 R17
+ 0x90127411, // 00D7 SETMBR R4 K58 R17
0x60440015, // 00D8 GETGBL R17 G21
0x7C440000, // 00D9 CALL R17 0
0x8C442320, // 00DA GETMET R17 R17 K32
0x584C003C, // 00DB LDCONST R19 K60
0x7C440400, // 00DC CALL R17 2
- 0x8848091F, // 00DD GETMBR R18 R4 K31
- 0x884C0D3A, // 00DE GETMBR R19 R6 K58
+ 0x88480B1F, // 00DD GETMBR R18 R5 K31
+ 0x884C093A, // 00DE GETMBR R19 R4 K58
0x00482413, // 00DF ADD R18 R18 R19
0x8C4C0522, // 00E0 GETMET R19 R2 K34
0x7C4C0200, // 00E1 CALL R19 1
0x8C4C2723, // 00E2 GETMET R19 R19 K35
- 0x88540D24, // 00E3 GETMBR R21 R6 K36
+ 0x88540924, // 00E3 GETMBR R21 R4 K36
0x5C582400, // 00E4 MOVE R22 R18
0x5C5C2200, // 00E5 MOVE R23 R17
0x5462000F, // 00E6 LDINT R24 16
@@ -2086,72 +2122,72 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x7C5C0400, // 00EE CALL R23 2
0x60600015, // 00EF GETGBL R24 G21
0x7C600000, // 00F0 CALL R24 0
- 0x58640004, // 00F1 LDCONST R25 K4
+ 0x58640005, // 00F1 LDCONST R25 K5
0x546A000F, // 00F2 LDINT R26 16
0x7C500C00, // 00F3 CALL R20 6
0x8C542929, // 00F4 GETMET R21 R20 K41
0x7C540200, // 00F5 CALL R21 1
- 0xB85A1800, // 00F6 GETNGBL R22 K12
+ 0xB85A1A00, // 00F6 GETNGBL R22 K13
0x8C582D3E, // 00F7 GETMET R22 R22 K62
0x7C580200, // 00F8 CALL R22 1
- 0x885C0D3A, // 00F9 GETMBR R23 R6 K58
- 0x905A2C17, // 00FA SETMBR R22 K22 R23
- 0x885C0D35, // 00FB GETMBR R23 R6 K53
+ 0x885C093A, // 00F9 GETMBR R23 R4 K58
+ 0x905A2E17, // 00FA SETMBR R22 K23 R23
+ 0x885C0935, // 00FB GETMBR R23 R4 K53
0x905A7E17, // 00FC SETMBR R22 K63 R23
0x905A8015, // 00FD SETMBR R22 K64 R21
- 0xB85E0C00, // 00FE GETNGBL R23 K6
- 0x8C5C2F07, // 00FF GETMET R23 R23 K7
+ 0xB85E0E00, // 00FE GETNGBL R23 K7
+ 0x8C5C2F08, // 00FF GETMET R23 R23 K8
0x5864002A, // 0100 LDCONST R25 K42
0x546A0003, // 0101 LDINT R26 4
0x7C5C0600, // 0102 CALL R23 3
- 0xB85E0C00, // 0103 GETNGBL R23 K6
- 0x8C5C2F07, // 0104 GETMET R23 R23 K7
+ 0xB85E0E00, // 0103 GETNGBL R23 K7
+ 0x8C5C2F08, // 0104 GETMET R23 R23 K8
0x8C64272C, // 0105 GETMET R25 R19 K44
0x7C640200, // 0106 CALL R25 1
0x00668219, // 0107 ADD R25 K65 R25
0x546A0003, // 0108 LDINT R26 4
0x7C5C0600, // 0109 CALL R23 3
- 0xB85E0C00, // 010A GETNGBL R23 K6
- 0x8C5C2F07, // 010B GETMET R23 R23 K7
+ 0xB85E0E00, // 010A GETNGBL R23 K7
+ 0x8C5C2F08, // 010B GETMET R23 R23 K8
0x8C64252C, // 010C GETMET R25 R18 K44
0x7C640200, // 010D CALL R25 1
0x00668419, // 010E ADD R25 K66 R25
0x546A0003, // 010F LDINT R26 4
0x7C5C0600, // 0110 CALL R23 3
- 0xB85E0C00, // 0111 GETNGBL R23 K6
- 0x8C5C2F07, // 0112 GETMET R23 R23 K7
- 0x88640D3A, // 0113 GETMBR R25 R6 K58
+ 0xB85E0E00, // 0111 GETNGBL R23 K7
+ 0x8C5C2F08, // 0112 GETMET R23 R23 K8
+ 0x8864093A, // 0113 GETMBR R25 R4 K58
0x8C64332C, // 0114 GETMET R25 R25 K44
0x7C640200, // 0115 CALL R25 1
0x00668619, // 0116 ADD R25 K67 R25
0x546A0003, // 0117 LDINT R26 4
0x7C5C0600, // 0118 CALL R23 3
- 0xB85E0C00, // 0119 GETNGBL R23 K6
- 0x8C5C2F07, // 011A GETMET R23 R23 K7
+ 0xB85E0E00, // 0119 GETNGBL R23 K7
+ 0x8C5C2F08, // 011A GETMET R23 R23 K8
0x60640008, // 011B GETGBL R25 G8
- 0x88680D35, // 011C GETMBR R26 R6 K53
+ 0x88680935, // 011C GETMBR R26 R4 K53
0x7C640200, // 011D CALL R25 1
0x00668819, // 011E ADD R25 K68 R25
0x546A0003, // 011F LDINT R26 4
0x7C5C0600, // 0120 CALL R23 3
- 0xB85E0C00, // 0121 GETNGBL R23 K6
- 0x8C5C2F07, // 0122 GETMET R23 R23 K7
+ 0xB85E0E00, // 0121 GETNGBL R23 K7
+ 0x8C5C2F08, // 0122 GETMET R23 R23 K8
0x8C642B2C, // 0123 GETMET R25 R21 K44
0x7C640200, // 0124 CALL R25 1
0x00668A19, // 0125 ADD R25 K69 R25
0x546A0003, // 0126 LDINT R26 4
0x7C5C0600, // 0127 CALL R23 3
- 0xB85E0C00, // 0128 GETNGBL R23 K6
- 0x8C5C2F07, // 0129 GETMET R23 R23 K7
+ 0xB85E0E00, // 0128 GETNGBL R23 K7
+ 0x8C5C2F08, // 0129 GETMET R23 R23 K8
0x5864002A, // 012A LDCONST R25 K42
0x546A0003, // 012B LDINT R26 4
0x7C5C0600, // 012C CALL R23 3
0x8C5C0522, // 012D GETMET R23 R2 K34
0x7C5C0200, // 012E CALL R23 1
0x8C5C2F23, // 012F GETMET R23 R23 K35
- 0x88640D24, // 0130 GETMBR R25 R6 K36
- 0x8868091F, // 0131 GETMBR R26 R4 K31
- 0x886C0D3A, // 0132 GETMBR R27 R6 K58
+ 0x88640924, // 0130 GETMBR R25 R4 K36
+ 0x88680B1F, // 0131 GETMBR R26 R5 K31
+ 0x886C093A, // 0132 GETMBR R27 R4 K58
0x0068341B, // 0133 ADD R26 R26 R27
0x606C0015, // 0134 GETGBL R27 G21
0x7C6C0000, // 0135 CALL R27 0
@@ -2161,7 +2197,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x5472002F, // 0139 LDINT R28 48
0x7C5C0A00, // 013A CALL R23 5
0x5462000E, // 013B LDINT R24 15
- 0x40620818, // 013C CONNECT R24 K4 R24
+ 0x40620A18, // 013C CONNECT R24 K5 R24
0x94602E18, // 013D GETIDX R24 R23 R24
0x5466000F, // 013E LDINT R25 16
0x546A001E, // 013F LDINT R26 31
@@ -2171,56 +2207,56 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x546E002E, // 0143 LDINT R27 47
0x4068341B, // 0144 CONNECT R26 R26 R27
0x94682E1A, // 0145 GETIDX R26 R23 R26
- 0xB86E0C00, // 0146 GETNGBL R27 K6
+ 0xB86E0E00, // 0146 GETNGBL R27 K7
0x8C6C3747, // 0147 GETMET R27 R27 K71
0x7C6C0200, // 0148 CALL R27 1
0x946C3748, // 0149 GETIDX R27 R27 K72
- 0xB8720C00, // 014A GETNGBL R28 K6
- 0x8C703907, // 014B GETMET R28 R28 K7
+ 0xB8720E00, // 014A GETNGBL R28 K7
+ 0x8C703908, // 014B GETMET R28 R28 K8
0x58780049, // 014C LDCONST R30 K73
0x547E0003, // 014D LDINT R31 4
0x7C700600, // 014E CALL R28 3
- 0xB8720C00, // 014F GETNGBL R28 K6
- 0x8C703907, // 0150 GETMET R28 R28 K7
+ 0xB8720E00, // 014F GETNGBL R28 K7
+ 0x8C703908, // 0150 GETMET R28 R28 K8
0x8C78312C, // 0151 GETMET R30 R24 K44
0x7C780200, // 0152 CALL R30 1
0x007A941E, // 0153 ADD R30 K74 R30
0x547E0003, // 0154 LDINT R31 4
0x7C700600, // 0155 CALL R28 3
- 0xB8720C00, // 0156 GETNGBL R28 K6
- 0x8C703907, // 0157 GETMET R28 R28 K7
+ 0xB8720E00, // 0156 GETNGBL R28 K7
+ 0x8C703908, // 0157 GETMET R28 R28 K8
0x8C78332C, // 0158 GETMET R30 R25 K44
0x7C780200, // 0159 CALL R30 1
0x007A961E, // 015A ADD R30 K75 R30
0x547E0003, // 015B LDINT R31 4
0x7C700600, // 015C CALL R28 3
- 0xB8720C00, // 015D GETNGBL R28 K6
- 0x8C703907, // 015E GETMET R28 R28 K7
+ 0xB8720E00, // 015D GETNGBL R28 K7
+ 0x8C703908, // 015E GETMET R28 R28 K8
0x8C78352C, // 015F GETMET R30 R26 K44
0x7C780200, // 0160 CALL R30 1
0x007A981E, // 0161 ADD R30 K76 R30
0x547E0003, // 0162 LDINT R31 4
0x7C700600, // 0163 CALL R28 3
- 0xB8720C00, // 0164 GETNGBL R28 K6
- 0x8C703907, // 0165 GETMET R28 R28 K7
+ 0xB8720E00, // 0164 GETNGBL R28 K7
+ 0x8C703908, // 0165 GETMET R28 R28 K8
0x58780049, // 0166 LDCONST R30 K73
0x547E0003, // 0167 LDINT R31 4
0x7C700600, // 0168 CALL R28 3
0x8C702D4D, // 0169 GETMET R28 R22 K77
0x7C700200, // 016A CALL R28 1
0x4C740000, // 016B LDNIL R29
- 0x901A9C1D, // 016C SETMBR R6 K78 R29
- 0xB8760C00, // 016D GETNGBL R29 K6
- 0x8C743B07, // 016E GETMET R29 R29 K7
- 0xB87E1800, // 016F GETNGBL R31 K12
- 0x8C7C3F13, // 0170 GETMET R31 R31 K19
+ 0x90129C1D, // 016C SETMBR R4 K78 R29
+ 0xB8760E00, // 016D GETNGBL R29 K7
+ 0x8C743B08, // 016E GETMET R29 R29 K8
+ 0xB87E1A00, // 016F GETNGBL R31 K13
+ 0x8C7C3F14, // 0170 GETMET R31 R31 K20
0x5C842C00, // 0171 MOVE R33 R22
0x7C7C0400, // 0172 CALL R31 2
0x007E9E1F, // 0173 ADD R31 K79 R31
0x54820003, // 0174 LDINT R32 4
0x7C740600, // 0175 CALL R29 3
- 0xB8760C00, // 0176 GETNGBL R29 K6
- 0x8C743B07, // 0177 GETMET R29 R29 K7
+ 0xB8760E00, // 0176 GETNGBL R29 K7
+ 0x8C743B08, // 0177 GETMET R29 R29 K8
0x8C7C392C, // 0178 GETMET R31 R28 K44
0x7C7C0200, // 0179 CALL R31 1
0x007EA01F, // 017A ADD R31 K80 R31
@@ -2237,465 +2273,407 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */
0x8C7C3F54, // 0185 GETMET R31 R31 K84
0x5C843A00, // 0186 MOVE R33 R29
0x7C7C0400, // 0187 CALL R31 2
- 0x8C7C0D55, // 0188 GETMET R31 R6 K85
+ 0x8C7C0955, // 0188 GETMET R31 R4 K85
0x7C7C0200, // 0189 CALL R31 1
- 0x8C7C0D56, // 018A GETMET R31 R6 K86
+ 0x8C7C0956, // 018A GETMET R31 R4 K86
0x5C843000, // 018B MOVE R33 R24
0x5C883200, // 018C MOVE R34 R25
0x5C8C3400, // 018D MOVE R35 R26
0x5C903600, // 018E MOVE R36 R27
0x7C7C0A00, // 018F CALL R31 5
- 0x901AAF04, // 0190 SETMBR R6 K87 K4
- 0x8C7C0D58, // 0191 GETMET R31 R6 K88
+ 0x9012AF05, // 0190 SETMBR R4 K87 K5
+ 0x8C7C0958, // 0191 GETMET R31 R4 K88
0x7C7C0200, // 0192 CALL R31 1
- 0x8C7C0D59, // 0193 GETMET R31 R6 K89
+ 0x8C7C0959, // 0193 GETMET R31 R4 K89
0x50840200, // 0194 LDBOOL R33 1 0
0x7C7C0400, // 0195 CALL R31 2
- 0x8C7C0D5A, // 0196 GETMET R31 R6 K90
+ 0x8C7C095A, // 0196 GETMET R31 R4 K90
0x7C7C0200, // 0197 CALL R31 1
- 0x8C7C0D5B, // 0198 GETMET R31 R6 K91
+ 0x8C7C095B, // 0198 GETMET R31 R4 K91
0x7C7C0200, // 0199 CALL R31 1
- 0x8C7C0D5C, // 019A GETMET R31 R6 K92
+ 0x8C7C095C, // 019A GETMET R31 R4 K92
0x7C7C0200, // 019B CALL R31 1
0x507C0200, // 019C LDBOOL R31 1 0
0x80043E00, // 019D RET 1 R31
0x70020000, // 019E JMP #01A0
- 0x50140000, // 019F LDBOOL R5 0 0
- 0x5C200A00, // 01A0 MOVE R8 R5
- 0x74220176, // 01A1 JMPT R8 #0319
+ 0x50180000, // 019F LDBOOL R6 0 0
+ 0x5C200C00, // 01A0 MOVE R8 R6
+ 0x74220174, // 01A1 JMPT R8 #0317
0x8C20015D, // 01A2 GETMET R8 R0 K93
- 0x8828095E, // 01A3 GETMBR R10 R4 K94
- 0x882C091F, // 01A4 GETMBR R11 R4 K31
+ 0x88280B5E, // 01A3 GETMBR R10 R5 K94
+ 0x882C0B1F, // 01A4 GETMBR R11 R5 K31
0x7C200600, // 01A5 CALL R8 3
- 0x901A3C08, // 01A6 SETMBR R6 K30 R8
+ 0x90123C08, // 01A6 SETMBR R4 K30 R8
0x4C240000, // 01A7 LDNIL R9
- 0x1C240C09, // 01A8 EQ R9 R6 R9
+ 0x1C240809, // 01A8 EQ R9 R4 R9
0x74260003, // 01A9 JMPT R9 #01AE
- 0x88240D1E, // 01AA GETMBR R9 R6 K30
+ 0x8824091E, // 01AA GETMBR R9 R4 K30
0x4C280000, // 01AB LDNIL R10
0x1C24120A, // 01AC EQ R9 R9 R10
0x7826000D, // 01AD JMPF R9 #01BC
- 0xB8260C00, // 01AE GETNGBL R9 K6
- 0x8C241307, // 01AF GETMET R9 R9 K7
+ 0xB8260E00, // 01AE GETNGBL R9 K7
+ 0x8C241308, // 01AF GETMET R9 R9 K8
0x582C005F, // 01B0 LDCONST R11 K95
- 0x58300009, // 01B1 LDCONST R12 K9
+ 0x5830000A, // 01B1 LDCONST R12 K10
0x7C240600, // 01B2 CALL R9 3
- 0x8C24010A, // 01B3 GETMET R9 R0 K10
+ 0x8C24010B, // 01B3 GETMET R9 R0 K11
0x5C2C0200, // 01B4 MOVE R11 R1
- 0x5830000B, // 01B5 LDCONST R12 K11
- 0x58340004, // 01B6 LDCONST R13 K4
- 0x5838000B, // 01B7 LDCONST R14 K11
+ 0x5830000C, // 01B5 LDCONST R12 K12
+ 0x58340005, // 01B6 LDCONST R13 K5
+ 0x5838000C, // 01B7 LDCONST R14 K12
0x503C0000, // 01B8 LDBOOL R15 0 0
0x7C240C00, // 01B9 CALL R9 6
0x50280000, // 01BA LDBOOL R10 0 0
0x80041400, // 01BB RET 1 R10
0x88240331, // 01BC GETMBR R9 R1 K49
- 0x901A6009, // 01BD SETMBR R6 K48 R9
- 0x8C240D32, // 01BE GETMET R9 R6 K50
+ 0x90126009, // 01BD SETMBR R4 K48 R9
+ 0x8C240932, // 01BE GETMET R9 R4 K50
0x7C240200, // 01BF CALL R9 1
- 0x88240934, // 01C0 GETMBR R9 R4 K52
- 0x901A6609, // 01C1 SETMBR R6 K51 R9
+ 0x88240B34, // 01C0 GETMBR R9 R5 K52
+ 0x90126609, // 01C1 SETMBR R4 K51 R9
0x8824011A, // 01C2 GETMBR R9 R0 K26
0x8824131B, // 01C3 GETMBR R9 R9 K27
0x8C241336, // 01C4 GETMET R9 R9 K54
0x7C240200, // 01C5 CALL R9 1
- 0x901A6A09, // 01C6 SETMBR R6 K53 R9
- 0x88240D35, // 01C7 GETMBR R9 R6 K53
- 0x9002C009, // 01C8 SETMBR R0 K96 R9
- 0xB8260C00, // 01C9 GETNGBL R9 K6
- 0x8C241307, // 01CA GETMET R9 R9 K7
- 0x8C2C0711, // 01CB GETMET R11 R3 K17
- 0x58340037, // 01CC LDCONST R13 K55
- 0x88380160, // 01CD GETMBR R14 R0 K96
- 0x883C0338, // 01CE GETMBR R15 R1 K56
- 0x88400339, // 01CF GETMBR R16 R1 K57
- 0x7C2C0A00, // 01D0 CALL R11 5
- 0x58300009, // 01D1 LDCONST R12 K9
- 0x7C240600, // 01D2 CALL R9 3
- 0xB8260C00, // 01D3 GETNGBL R9 K6
- 0x8C241307, // 01D4 GETMET R9 R9 K7
- 0xB82E1800, // 01D5 GETNGBL R11 K12
- 0x8C2C1713, // 01D6 GETMET R11 R11 K19
- 0x88340D1E, // 01D7 GETMBR R13 R6 K30
- 0x7C2C0400, // 01D8 CALL R11 2
- 0x002EC20B, // 01D9 ADD R11 K97 R11
- 0x54320003, // 01DA LDINT R12 4
- 0x7C240600, // 01DB CALL R9 3
- 0xB8260C00, // 01DC GETNGBL R9 K6
- 0x8C241307, // 01DD GETMET R9 R9 K7
- 0x882C0D1E, // 01DE GETMBR R11 R6 K30
- 0x882C1763, // 01DF GETMBR R11 R11 K99
- 0x8C2C172C, // 01E0 GETMET R11 R11 K44
- 0x7C2C0200, // 01E1 CALL R11 1
- 0x002EC40B, // 01E2 ADD R11 K98 R11
- 0x54320003, // 01E3 LDINT R12 4
- 0x7C240600, // 01E4 CALL R9 3
- 0xB8260C00, // 01E5 GETNGBL R9 K6
- 0x8C241307, // 01E6 GETMET R9 R9 K7
- 0x882C0D1E, // 01E7 GETMBR R11 R6 K30
- 0x882C1765, // 01E8 GETMBR R11 R11 K101
- 0x8C2C172C, // 01E9 GETMET R11 R11 K44
- 0x7C2C0200, // 01EA CALL R11 1
- 0x002EC80B, // 01EB ADD R11 K100 R11
- 0x54320003, // 01EC LDINT R12 4
- 0x7C240600, // 01ED CALL R9 3
- 0x88240D1E, // 01EE GETMBR R9 R6 K30
- 0x8C241366, // 01EF GETMET R9 R9 K102
- 0x7C240200, // 01F0 CALL R9 1
- 0x78260009, // 01F1 JMPF R9 #01FC
- 0xB8260C00, // 01F2 GETNGBL R9 K6
- 0x8C241307, // 01F3 GETMET R9 R9 K7
- 0x882C0D1E, // 01F4 GETMBR R11 R6 K30
- 0x8C2C1766, // 01F5 GETMET R11 R11 K102
+ 0x90126A09, // 01C6 SETMBR R4 K53 R9
+ 0xB8260E00, // 01C7 GETNGBL R9 K7
+ 0x8C241308, // 01C8 GETMET R9 R9 K8
+ 0x8C2C0712, // 01C9 GETMET R11 R3 K18
+ 0x58340037, // 01CA LDCONST R13 K55
+ 0x88380935, // 01CB GETMBR R14 R4 K53
+ 0x883C0338, // 01CC GETMBR R15 R1 K56
+ 0x88400339, // 01CD GETMBR R16 R1 K57
+ 0x7C2C0A00, // 01CE CALL R11 5
+ 0x5830000A, // 01CF LDCONST R12 K10
+ 0x7C240600, // 01D0 CALL R9 3
+ 0xB8260E00, // 01D1 GETNGBL R9 K7
+ 0x8C241308, // 01D2 GETMET R9 R9 K8
+ 0xB82E1A00, // 01D3 GETNGBL R11 K13
+ 0x8C2C1714, // 01D4 GETMET R11 R11 K20
+ 0x8834091E, // 01D5 GETMBR R13 R4 K30
+ 0x7C2C0400, // 01D6 CALL R11 2
+ 0x002EC00B, // 01D7 ADD R11 K96 R11
+ 0x54320003, // 01D8 LDINT R12 4
+ 0x7C240600, // 01D9 CALL R9 3
+ 0xB8260E00, // 01DA GETNGBL R9 K7
+ 0x8C241308, // 01DB GETMET R9 R9 K8
+ 0x882C091E, // 01DC GETMBR R11 R4 K30
+ 0x882C1762, // 01DD GETMBR R11 R11 K98
+ 0x8C2C172C, // 01DE GETMET R11 R11 K44
+ 0x7C2C0200, // 01DF CALL R11 1
+ 0x002EC20B, // 01E0 ADD R11 K97 R11
+ 0x54320003, // 01E1 LDINT R12 4
+ 0x7C240600, // 01E2 CALL R9 3
+ 0xB8260E00, // 01E3 GETNGBL R9 K7
+ 0x8C241308, // 01E4 GETMET R9 R9 K8
+ 0x882C091E, // 01E5 GETMBR R11 R4 K30
+ 0x882C1764, // 01E6 GETMBR R11 R11 K100
+ 0x8C2C172C, // 01E7 GETMET R11 R11 K44
+ 0x7C2C0200, // 01E8 CALL R11 1
+ 0x002EC60B, // 01E9 ADD R11 K99 R11
+ 0x54320003, // 01EA LDINT R12 4
+ 0x7C240600, // 01EB CALL R9 3
+ 0x8824091E, // 01EC GETMBR R9 R4 K30
+ 0x8C241365, // 01ED GETMET R9 R9 K101
+ 0x7C240200, // 01EE CALL R9 1
+ 0x78260009, // 01EF JMPF R9 #01FA
+ 0xB8260E00, // 01F0 GETNGBL R9 K7
+ 0x8C241308, // 01F1 GETMET R9 R9 K8
+ 0x882C091E, // 01F2 GETMBR R11 R4 K30
+ 0x8C2C1765, // 01F3 GETMET R11 R11 K101
+ 0x7C2C0200, // 01F4 CALL R11 1
+ 0x8C2C172C, // 01F5 GETMET R11 R11 K44
0x7C2C0200, // 01F6 CALL R11 1
- 0x8C2C172C, // 01F7 GETMET R11 R11 K44
- 0x7C2C0200, // 01F8 CALL R11 1
- 0x002ECE0B, // 01F9 ADD R11 K103 R11
- 0x54320003, // 01FA LDINT R12 4
- 0x7C240600, // 01FB CALL R9 3
- 0xB8260C00, // 01FC GETNGBL R9 K6
- 0x8C241307, // 01FD GETMET R9 R9 K7
- 0x882C0D1E, // 01FE GETMBR R11 R6 K30
- 0x882C1769, // 01FF GETMBR R11 R11 K105
- 0x8C2C172C, // 0200 GETMET R11 R11 K44
- 0x7C2C0200, // 0201 CALL R11 1
- 0x002ED00B, // 0202 ADD R11 K104 R11
- 0x54320003, // 0203 LDINT R12 4
- 0x7C240600, // 0204 CALL R9 3
- 0x8C24053B, // 0205 GETMET R9 R2 K59
- 0x542E000F, // 0206 LDINT R11 16
- 0x7C240400, // 0207 CALL R9 2
- 0x901A7409, // 0208 SETMBR R6 K58 R9
- 0x8C24053B, // 0209 GETMET R9 R2 K59
- 0x542E001F, // 020A LDINT R11 32
- 0x7C240400, // 020B CALL R9 2
- 0x9002D409, // 020C SETMBR R0 K106 R9
- 0x8C24056C, // 020D GETMET R9 R2 K108
- 0x7C240200, // 020E CALL R9 1
- 0x8C24136D, // 020F GETMET R9 R9 K109
- 0x882C016A, // 0210 GETMBR R11 R0 K106
- 0x7C240400, // 0211 CALL R9 2
- 0x9002D609, // 0212 SETMBR R0 K107 R9
- 0xB8260C00, // 0213 GETNGBL R9 K6
- 0x8C241307, // 0214 GETMET R9 R9 K7
- 0x882C016A, // 0215 GETMBR R11 R0 K106
- 0x8C2C172C, // 0216 GETMET R11 R11 K44
- 0x7C2C0200, // 0217 CALL R11 1
- 0x002EDC0B, // 0218 ADD R11 K110 R11
- 0x54320003, // 0219 LDINT R12 4
- 0x7C240600, // 021A CALL R9 3
- 0xB8260C00, // 021B GETNGBL R9 K6
- 0x8C241307, // 021C GETMET R9 R9 K7
- 0x882C016B, // 021D GETMBR R11 R0 K107
- 0x8C2C172C, // 021E GETMET R11 R11 K44
- 0x7C2C0200, // 021F CALL R11 1
- 0x002EDE0B, // 0220 ADD R11 K111 R11
- 0x54320003, // 0221 LDINT R12 4
- 0x7C240600, // 0222 CALL R9 3
- 0x8C24053B, // 0223 GETMET R9 R2 K59
- 0x542E001F, // 0224 LDINT R11 32
- 0x7C240400, // 0225 CALL R9 2
- 0x8C28056C, // 0226 GETMET R10 R2 K108
- 0x7C280200, // 0227 CALL R10 1
- 0x8C281570, // 0228 GETMET R10 R10 K112
- 0x8830016A, // 0229 GETMBR R12 R0 K106
- 0x88340915, // 022A GETMBR R13 R4 K21
- 0x7C280600, // 022B CALL R10 3
- 0x901A480A, // 022C SETMBR R6 K36 R10
- 0xB82A1800, // 022D GETNGBL R10 K12
- 0x88281571, // 022E GETMBR R10 R10 K113
- 0x8C281572, // 022F GETMET R10 R10 K114
- 0x7C280200, // 0230 CALL R10 1
- 0x8C2C1573, // 0231 GETMET R11 R10 K115
- 0x5834000B, // 0232 LDCONST R13 K11
- 0xB83A1800, // 0233 GETNGBL R14 K12
- 0x88381D71, // 0234 GETMBR R14 R14 K113
- 0x88381D74, // 0235 GETMBR R14 R14 K116
- 0x8C3C0D75, // 0236 GETMET R15 R6 K117
- 0x7C3C0200, // 0237 CALL R15 1
- 0x7C2C0800, // 0238 CALL R11 4
- 0x8C2C1573, // 0239 GETMET R11 R10 K115
- 0x58340009, // 023A LDCONST R13 K9
- 0xB83A1800, // 023B GETNGBL R14 K12
- 0x88381D71, // 023C GETMBR R14 R14 K113
- 0x88381D74, // 023D GETMBR R14 R14 K116
- 0x8C3C0D66, // 023E GETMET R15 R6 K102
- 0x7C3C0200, // 023F CALL R15 1
- 0x7C2C0800, // 0240 CALL R11 4
- 0x8C2C1573, // 0241 GETMET R11 R10 K115
- 0x58340076, // 0242 LDCONST R13 K118
- 0xB83A1800, // 0243 GETNGBL R14 K12
- 0x88381D71, // 0244 GETMBR R14 R14 K113
- 0x88381D74, // 0245 GETMBR R14 R14 K116
- 0x883C016B, // 0246 GETMBR R15 R0 K107
- 0x7C2C0800, // 0247 CALL R11 4
- 0x8C2C1573, // 0248 GETMET R11 R10 K115
- 0x54360003, // 0249 LDINT R13 4
- 0xB83A1800, // 024A GETNGBL R14 K12
- 0x88381D71, // 024B GETMBR R14 R14 K113
- 0x88381D74, // 024C GETMBR R14 R14 K116
- 0x883C0915, // 024D GETMBR R15 R4 K21
- 0x7C2C0800, // 024E CALL R11 4
- 0x8C2C056C, // 024F GETMET R11 R2 K108
- 0x7C2C0200, // 0250 CALL R11 1
- 0x8C2C1777, // 0251 GETMET R11 R11 K119
- 0x8C340D78, // 0252 GETMET R13 R6 K120
- 0x7C340200, // 0253 CALL R13 1
- 0x8C38154D, // 0254 GETMET R14 R10 K77
- 0x7C380200, // 0255 CALL R14 1
- 0x7C2C0600, // 0256 CALL R11 3
- 0xB8321800, // 0257 GETNGBL R12 K12
- 0x88301971, // 0258 GETMBR R12 R12 K113
- 0x8C301972, // 0259 GETMET R12 R12 K114
- 0x7C300200, // 025A CALL R12 1
- 0x8C341973, // 025B GETMET R13 R12 K115
- 0x583C000B, // 025C LDCONST R15 K11
- 0xB8421800, // 025D GETNGBL R16 K12
- 0x88402171, // 025E GETMBR R16 R16 K113
- 0x88402174, // 025F GETMBR R16 R16 K116
- 0x8C440D75, // 0260 GETMET R17 R6 K117
- 0x7C440200, // 0261 CALL R17 1
- 0x7C340800, // 0262 CALL R13 4
- 0x8C341973, // 0263 GETMET R13 R12 K115
- 0x583C0009, // 0264 LDCONST R15 K9
- 0xB8421800, // 0265 GETNGBL R16 K12
- 0x88402171, // 0266 GETMBR R16 R16 K113
- 0x88402174, // 0267 GETMBR R16 R16 K116
- 0x8C440D66, // 0268 GETMET R17 R6 K102
- 0x7C440200, // 0269 CALL R17 1
- 0x7C340800, // 026A CALL R13 4
- 0x8C341973, // 026B GETMET R13 R12 K115
- 0x583C0076, // 026C LDCONST R15 K118
- 0xB8421800, // 026D GETNGBL R16 K12
- 0x88402171, // 026E GETMBR R16 R16 K113
- 0x88402174, // 026F GETMBR R16 R16 K116
- 0x5C441600, // 0270 MOVE R17 R11
- 0x7C340800, // 0271 CALL R13 4
- 0x8C341973, // 0272 GETMET R13 R12 K115
- 0x543E0003, // 0273 LDINT R15 4
- 0xB8421800, // 0274 GETNGBL R16 K12
- 0x88402171, // 0275 GETMBR R16 R16 K113
- 0x88402174, // 0276 GETMBR R16 R16 K116
- 0x88440D3A, // 0277 GETMBR R17 R6 K58
- 0x7C340800, // 0278 CALL R13 4
- 0xB8360C00, // 0279 GETNGBL R13 K6
- 0x8C341B07, // 027A GETMET R13 R13 K7
- 0x583C002A, // 027B LDCONST R15 K42
- 0x54420003, // 027C LDINT R16 4
- 0x7C340600, // 027D CALL R13 3
- 0x88340979, // 027E GETMBR R13 R4 K121
- 0x901A9C0D, // 027F SETMBR R6 K78 R13
- 0xB8360C00, // 0280 GETNGBL R13 K6
- 0x8C341B07, // 0281 GETMET R13 R13 K7
- 0x883C0D3A, // 0282 GETMBR R15 R6 K58
- 0x8C3C1F2C, // 0283 GETMET R15 R15 K44
- 0x7C3C0200, // 0284 CALL R15 1
- 0x003EF40F, // 0285 ADD R15 K122 R15
- 0x54420003, // 0286 LDINT R16 4
- 0x7C340600, // 0287 CALL R13 3
- 0xB8360C00, // 0288 GETNGBL R13 K6
- 0x8C341B07, // 0289 GETMET R13 R13 K7
- 0x883C0D4E, // 028A GETMBR R15 R6 K78
- 0x8C3C1F2C, // 028B GETMET R15 R15 K44
- 0x7C3C0200, // 028C CALL R15 1
- 0x003EF60F, // 028D ADD R15 K123 R15
- 0x54420003, // 028E LDINT R16 4
- 0x7C340600, // 028F CALL R13 3
- 0x8C34057C, // 0290 GETMET R13 R2 K124
- 0x7C340200, // 0291 CALL R13 1
- 0x8C341B7D, // 0292 GETMET R13 R13 K125
- 0x883C0D4E, // 0293 GETMBR R15 R6 K78
- 0x7C340400, // 0294 CALL R13 2
- 0x8C341B7E, // 0295 GETMET R13 R13 K126
- 0x7C340200, // 0296 CALL R13 1
- 0xB83A0C00, // 0297 GETNGBL R14 K6
- 0x8C381D07, // 0298 GETMET R14 R14 K7
- 0x8C401B2C, // 0299 GETMET R16 R13 K44
- 0x7C400200, // 029A CALL R16 1
- 0x0042FE10, // 029B ADD R16 K127 R16
- 0x54460003, // 029C LDINT R17 4
- 0x7C380600, // 029D CALL R14 3
- 0x60380015, // 029E GETGBL R14 G21
- 0x7C380000, // 029F CALL R14 0
- 0x8C381D20, // 02A0 GETMET R14 R14 K32
- 0x88400180, // 02A1 GETMBR R16 R0 K128
- 0x7C380400, // 02A2 CALL R14 2
- 0x8C3C0D81, // 02A3 GETMET R15 R6 K129
- 0x7C3C0200, // 02A4 CALL R15 1
- 0x003C1E09, // 02A5 ADD R15 R15 R9
- 0x8840016B, // 02A6 GETMBR R16 R0 K107
- 0x003C1E10, // 02A7 ADD R15 R15 R16
- 0x003C1E0D, // 02A8 ADD R15 R15 R13
- 0x8C400522, // 02A9 GETMET R16 R2 K34
- 0x7C400200, // 02AA CALL R16 1
- 0x8C402123, // 02AB GETMET R16 R16 K35
- 0x88480D24, // 02AC GETMBR R18 R6 K36
- 0x5C4C1E00, // 02AD MOVE R19 R15
- 0x5C501C00, // 02AE MOVE R20 R14
- 0x5456000F, // 02AF LDINT R21 16
- 0x7C400A00, // 02B0 CALL R16 5
- 0xB8460C00, // 02B1 GETNGBL R17 K6
- 0x8C442307, // 02B2 GETMET R17 R17 K7
- 0x884C0D24, // 02B3 GETMBR R19 R6 K36
- 0x8C4C272C, // 02B4 GETMET R19 R19 K44
- 0x7C4C0200, // 02B5 CALL R19 1
- 0x004F0413, // 02B6 ADD R19 K130 R19
- 0x54520003, // 02B7 LDINT R20 4
- 0x7C440600, // 02B8 CALL R17 3
- 0xB8460C00, // 02B9 GETNGBL R17 K6
- 0x8C442307, // 02BA GETMET R17 R17 K7
- 0x8C4C1F2C, // 02BB GETMET R19 R15 K44
- 0x7C4C0200, // 02BC CALL R19 1
- 0x004F0613, // 02BD ADD R19 K131 R19
- 0x54520003, // 02BE LDINT R20 4
- 0x7C440600, // 02BF CALL R17 3
- 0xB8460C00, // 02C0 GETNGBL R17 K6
- 0x8C442307, // 02C1 GETMET R17 R17 K7
- 0x8C4C212C, // 02C2 GETMET R19 R16 K44
- 0x7C4C0200, // 02C3 CALL R19 1
- 0x004F0813, // 02C4 ADD R19 K132 R19
- 0x54520003, // 02C5 LDINT R20 4
- 0x7C440600, // 02C6 CALL R17 3
- 0x8C44194D, // 02C7 GETMET R17 R12 K77
- 0x7C440200, // 02C8 CALL R17 1
- 0xB84A0C00, // 02C9 GETNGBL R18 K6
- 0x8C482507, // 02CA GETMET R18 R18 K7
- 0x8C50232C, // 02CB GETMET R20 R17 K44
- 0x7C500200, // 02CC CALL R20 1
- 0x00530A14, // 02CD ADD R20 K133 R20
- 0x54560003, // 02CE LDINT R21 4
- 0x7C480600, // 02CF CALL R18 3
- 0x8C480527, // 02D0 GETMET R18 R2 K39
- 0x5C502000, // 02D1 MOVE R20 R16
- 0x60540015, // 02D2 GETGBL R21 G21
- 0x7C540000, // 02D3 CALL R21 0
- 0x8C542B20, // 02D4 GETMET R21 R21 K32
- 0x885C0186, // 02D5 GETMBR R23 R0 K134
- 0x7C540400, // 02D6 CALL R21 2
- 0x60580015, // 02D7 GETGBL R22 G21
- 0x7C580000, // 02D8 CALL R22 0
- 0x605C000C, // 02D9 GETGBL R23 G12
- 0x5C602200, // 02DA MOVE R24 R17
- 0x7C5C0200, // 02DB CALL R23 1
- 0x5462000F, // 02DC LDINT R24 16
- 0x7C480C00, // 02DD CALL R18 6
- 0x8C4C2587, // 02DE GETMET R19 R18 K135
- 0x5C542200, // 02DF MOVE R21 R17
- 0x7C4C0400, // 02E0 CALL R19 2
- 0x8C502529, // 02E1 GETMET R20 R18 K41
- 0x7C500200, // 02E2 CALL R20 1
- 0x004C2614, // 02E3 ADD R19 R19 R20
- 0xB8520C00, // 02E4 GETNGBL R20 K6
- 0x8C502907, // 02E5 GETMET R20 R20 K7
- 0x8C58272C, // 02E6 GETMET R22 R19 K44
- 0x7C580200, // 02E7 CALL R22 1
- 0x005B1016, // 02E8 ADD R22 K136 R22
- 0x545E0003, // 02E9 LDINT R23 4
- 0x7C500600, // 02EA CALL R20 3
- 0xB8520C00, // 02EB GETNGBL R20 K6
- 0x8C502907, // 02EC GETMET R20 R20 K7
- 0x5858002A, // 02ED LDCONST R22 K42
- 0x545E0003, // 02EE LDINT R23 4
- 0x7C500600, // 02EF CALL R20 3
- 0xB8521800, // 02F0 GETNGBL R20 K12
- 0x8C502989, // 02F1 GETMET R20 R20 K137
- 0x7C500200, // 02F2 CALL R20 1
- 0x90531409, // 02F3 SETMBR R20 K138 R9
- 0x88540160, // 02F4 GETMBR R21 R0 K96
+ 0x002ECC0B, // 01F7 ADD R11 K102 R11
+ 0x54320003, // 01F8 LDINT R12 4
+ 0x7C240600, // 01F9 CALL R9 3
+ 0xB8260E00, // 01FA GETNGBL R9 K7
+ 0x8C241308, // 01FB GETMET R9 R9 K8
+ 0x882C091E, // 01FC GETMBR R11 R4 K30
+ 0x882C1768, // 01FD GETMBR R11 R11 K104
+ 0x8C2C172C, // 01FE GETMET R11 R11 K44
+ 0x7C2C0200, // 01FF CALL R11 1
+ 0x002ECE0B, // 0200 ADD R11 K103 R11
+ 0x54320003, // 0201 LDINT R12 4
+ 0x7C240600, // 0202 CALL R9 3
+ 0x8C24053B, // 0203 GETMET R9 R2 K59
+ 0x542E000F, // 0204 LDINT R11 16
+ 0x7C240400, // 0205 CALL R9 2
+ 0x90127409, // 0206 SETMBR R4 K58 R9
+ 0x8C24053B, // 0207 GETMET R9 R2 K59
+ 0x542E001F, // 0208 LDINT R11 32
+ 0x7C240400, // 0209 CALL R9 2
+ 0x9012D209, // 020A SETMBR R4 K105 R9
+ 0x8C24056B, // 020B GETMET R9 R2 K107
+ 0x7C240200, // 020C CALL R9 1
+ 0x8C24136C, // 020D GETMET R9 R9 K108
+ 0x882C0969, // 020E GETMBR R11 R4 K105
+ 0x7C240400, // 020F CALL R9 2
+ 0x9012D409, // 0210 SETMBR R4 K106 R9
+ 0xB8260E00, // 0211 GETNGBL R9 K7
+ 0x8C241308, // 0212 GETMET R9 R9 K8
+ 0x882C0969, // 0213 GETMBR R11 R4 K105
+ 0x8C2C172C, // 0214 GETMET R11 R11 K44
+ 0x7C2C0200, // 0215 CALL R11 1
+ 0x002EDA0B, // 0216 ADD R11 K109 R11
+ 0x54320003, // 0217 LDINT R12 4
+ 0x7C240600, // 0218 CALL R9 3
+ 0xB8260E00, // 0219 GETNGBL R9 K7
+ 0x8C241308, // 021A GETMET R9 R9 K8
+ 0x882C096A, // 021B GETMBR R11 R4 K106
+ 0x8C2C172C, // 021C GETMET R11 R11 K44
+ 0x7C2C0200, // 021D CALL R11 1
+ 0x002EDC0B, // 021E ADD R11 K110 R11
+ 0x54320003, // 021F LDINT R12 4
+ 0x7C240600, // 0220 CALL R9 3
+ 0x8C24053B, // 0221 GETMET R9 R2 K59
+ 0x542E001F, // 0222 LDINT R11 32
+ 0x7C240400, // 0223 CALL R9 2
+ 0x8C28056B, // 0224 GETMET R10 R2 K107
+ 0x7C280200, // 0225 CALL R10 1
+ 0x8C28156F, // 0226 GETMET R10 R10 K111
+ 0x88300969, // 0227 GETMBR R12 R4 K105
+ 0x88340B16, // 0228 GETMBR R13 R5 K22
+ 0x7C280600, // 0229 CALL R10 3
+ 0x9012480A, // 022A SETMBR R4 K36 R10
+ 0xB82A1A00, // 022B GETNGBL R10 K13
+ 0x88281570, // 022C GETMBR R10 R10 K112
+ 0x8C281571, // 022D GETMET R10 R10 K113
+ 0x7C280200, // 022E CALL R10 1
+ 0x8C2C1572, // 022F GETMET R11 R10 K114
+ 0x5834000C, // 0230 LDCONST R13 K12
+ 0xB83A1A00, // 0231 GETNGBL R14 K13
+ 0x88381D70, // 0232 GETMBR R14 R14 K112
+ 0x88381D73, // 0233 GETMBR R14 R14 K115
+ 0x8C3C0974, // 0234 GETMET R15 R4 K116
+ 0x7C3C0200, // 0235 CALL R15 1
+ 0x7C2C0800, // 0236 CALL R11 4
+ 0x8C2C1572, // 0237 GETMET R11 R10 K114
+ 0x5834000A, // 0238 LDCONST R13 K10
+ 0xB83A1A00, // 0239 GETNGBL R14 K13
+ 0x88381D70, // 023A GETMBR R14 R14 K112
+ 0x88381D73, // 023B GETMBR R14 R14 K115
+ 0x8C3C0965, // 023C GETMET R15 R4 K101
+ 0x7C3C0200, // 023D CALL R15 1
+ 0x7C2C0800, // 023E CALL R11 4
+ 0x8C2C1572, // 023F GETMET R11 R10 K114
+ 0x58340075, // 0240 LDCONST R13 K117
+ 0xB83A1A00, // 0241 GETNGBL R14 K13
+ 0x88381D70, // 0242 GETMBR R14 R14 K112
+ 0x88381D73, // 0243 GETMBR R14 R14 K115
+ 0x883C096A, // 0244 GETMBR R15 R4 K106
+ 0x7C2C0800, // 0245 CALL R11 4
+ 0x8C2C1572, // 0246 GETMET R11 R10 K114
+ 0x54360003, // 0247 LDINT R13 4
+ 0xB83A1A00, // 0248 GETNGBL R14 K13
+ 0x88381D70, // 0249 GETMBR R14 R14 K112
+ 0x88381D73, // 024A GETMBR R14 R14 K115
+ 0x883C0B16, // 024B GETMBR R15 R5 K22
+ 0x7C2C0800, // 024C CALL R11 4
+ 0x8C2C056B, // 024D GETMET R11 R2 K107
+ 0x7C2C0200, // 024E CALL R11 1
+ 0x8C2C1776, // 024F GETMET R11 R11 K118
+ 0x8C340977, // 0250 GETMET R13 R4 K119
+ 0x7C340200, // 0251 CALL R13 1
+ 0x8C38154D, // 0252 GETMET R14 R10 K77
+ 0x7C380200, // 0253 CALL R14 1
+ 0x7C2C0600, // 0254 CALL R11 3
+ 0xB8321A00, // 0255 GETNGBL R12 K13
+ 0x88301970, // 0256 GETMBR R12 R12 K112
+ 0x8C301971, // 0257 GETMET R12 R12 K113
+ 0x7C300200, // 0258 CALL R12 1
+ 0x8C341972, // 0259 GETMET R13 R12 K114
+ 0x583C000C, // 025A LDCONST R15 K12
+ 0xB8421A00, // 025B GETNGBL R16 K13
+ 0x88402170, // 025C GETMBR R16 R16 K112
+ 0x88402173, // 025D GETMBR R16 R16 K115
+ 0x8C440974, // 025E GETMET R17 R4 K116
+ 0x7C440200, // 025F CALL R17 1
+ 0x7C340800, // 0260 CALL R13 4
+ 0x8C341972, // 0261 GETMET R13 R12 K114
+ 0x583C000A, // 0262 LDCONST R15 K10
+ 0xB8421A00, // 0263 GETNGBL R16 K13
+ 0x88402170, // 0264 GETMBR R16 R16 K112
+ 0x88402173, // 0265 GETMBR R16 R16 K115
+ 0x8C440965, // 0266 GETMET R17 R4 K101
+ 0x7C440200, // 0267 CALL R17 1
+ 0x7C340800, // 0268 CALL R13 4
+ 0x8C341972, // 0269 GETMET R13 R12 K114
+ 0x583C0075, // 026A LDCONST R15 K117
+ 0xB8421A00, // 026B GETNGBL R16 K13
+ 0x88402170, // 026C GETMBR R16 R16 K112
+ 0x88402173, // 026D GETMBR R16 R16 K115
+ 0x5C441600, // 026E MOVE R17 R11
+ 0x7C340800, // 026F CALL R13 4
+ 0x8C341972, // 0270 GETMET R13 R12 K114
+ 0x543E0003, // 0271 LDINT R15 4
+ 0xB8421A00, // 0272 GETNGBL R16 K13
+ 0x88402170, // 0273 GETMBR R16 R16 K112
+ 0x88402173, // 0274 GETMBR R16 R16 K115
+ 0x8844093A, // 0275 GETMBR R17 R4 K58
+ 0x7C340800, // 0276 CALL R13 4
+ 0xB8360E00, // 0277 GETNGBL R13 K7
+ 0x8C341B08, // 0278 GETMET R13 R13 K8
+ 0x583C002A, // 0279 LDCONST R15 K42
+ 0x54420003, // 027A LDINT R16 4
+ 0x7C340600, // 027B CALL R13 3
+ 0x88340B78, // 027C GETMBR R13 R5 K120
+ 0x90129C0D, // 027D SETMBR R4 K78 R13
+ 0xB8360E00, // 027E GETNGBL R13 K7
+ 0x8C341B08, // 027F GETMET R13 R13 K8
+ 0x883C093A, // 0280 GETMBR R15 R4 K58
+ 0x8C3C1F2C, // 0281 GETMET R15 R15 K44
+ 0x7C3C0200, // 0282 CALL R15 1
+ 0x003EF20F, // 0283 ADD R15 K121 R15
+ 0x54420003, // 0284 LDINT R16 4
+ 0x7C340600, // 0285 CALL R13 3
+ 0xB8360E00, // 0286 GETNGBL R13 K7
+ 0x8C341B08, // 0287 GETMET R13 R13 K8
+ 0x883C094E, // 0288 GETMBR R15 R4 K78
+ 0x8C3C1F2C, // 0289 GETMET R15 R15 K44
+ 0x7C3C0200, // 028A CALL R15 1
+ 0x003EF40F, // 028B ADD R15 K122 R15
+ 0x54420003, // 028C LDINT R16 4
+ 0x7C340600, // 028D CALL R13 3
+ 0x8C34057B, // 028E GETMET R13 R2 K123
+ 0x7C340200, // 028F CALL R13 1
+ 0x8C341B7C, // 0290 GETMET R13 R13 K124
+ 0x883C094E, // 0291 GETMBR R15 R4 K78
+ 0x7C340400, // 0292 CALL R13 2
+ 0x8C341B7D, // 0293 GETMET R13 R13 K125
+ 0x7C340200, // 0294 CALL R13 1
+ 0xB83A0E00, // 0295 GETNGBL R14 K7
+ 0x8C381D08, // 0296 GETMET R14 R14 K8
+ 0x8C401B2C, // 0297 GETMET R16 R13 K44
+ 0x7C400200, // 0298 CALL R16 1
+ 0x0042FC10, // 0299 ADD R16 K126 R16
+ 0x54460003, // 029A LDINT R17 4
+ 0x7C380600, // 029B CALL R14 3
+ 0x60380015, // 029C GETGBL R14 G21
+ 0x7C380000, // 029D CALL R14 0
+ 0x8C381D20, // 029E GETMET R14 R14 K32
+ 0x8840017F, // 029F GETMBR R16 R0 K127
+ 0x7C380400, // 02A0 CALL R14 2
+ 0x8C3C0980, // 02A1 GETMET R15 R4 K128
+ 0x7C3C0200, // 02A2 CALL R15 1
+ 0x003C1E09, // 02A3 ADD R15 R15 R9
+ 0x8840096A, // 02A4 GETMBR R16 R4 K106
+ 0x003C1E10, // 02A5 ADD R15 R15 R16
+ 0x003C1E0D, // 02A6 ADD R15 R15 R13
+ 0x8C400522, // 02A7 GETMET R16 R2 K34
+ 0x7C400200, // 02A8 CALL R16 1
+ 0x8C402123, // 02A9 GETMET R16 R16 K35
+ 0x88480924, // 02AA GETMBR R18 R4 K36
+ 0x5C4C1E00, // 02AB MOVE R19 R15
+ 0x5C501C00, // 02AC MOVE R20 R14
+ 0x5456000F, // 02AD LDINT R21 16
+ 0x7C400A00, // 02AE CALL R16 5
+ 0xB8460E00, // 02AF GETNGBL R17 K7
+ 0x8C442308, // 02B0 GETMET R17 R17 K8
+ 0x884C0924, // 02B1 GETMBR R19 R4 K36
+ 0x8C4C272C, // 02B2 GETMET R19 R19 K44
+ 0x7C4C0200, // 02B3 CALL R19 1
+ 0x004F0213, // 02B4 ADD R19 K129 R19
+ 0x54520003, // 02B5 LDINT R20 4
+ 0x7C440600, // 02B6 CALL R17 3
+ 0xB8460E00, // 02B7 GETNGBL R17 K7
+ 0x8C442308, // 02B8 GETMET R17 R17 K8
+ 0x8C4C1F2C, // 02B9 GETMET R19 R15 K44
+ 0x7C4C0200, // 02BA CALL R19 1
+ 0x004F0413, // 02BB ADD R19 K130 R19
+ 0x54520003, // 02BC LDINT R20 4
+ 0x7C440600, // 02BD CALL R17 3
+ 0xB8460E00, // 02BE GETNGBL R17 K7
+ 0x8C442308, // 02BF GETMET R17 R17 K8
+ 0x8C4C212C, // 02C0 GETMET R19 R16 K44
+ 0x7C4C0200, // 02C1 CALL R19 1
+ 0x004F0613, // 02C2 ADD R19 K131 R19
+ 0x54520003, // 02C3 LDINT R20 4
+ 0x7C440600, // 02C4 CALL R17 3
+ 0x8C44194D, // 02C5 GETMET R17 R12 K77
+ 0x7C440200, // 02C6 CALL R17 1
+ 0xB84A0E00, // 02C7 GETNGBL R18 K7
+ 0x8C482508, // 02C8 GETMET R18 R18 K8
+ 0x8C50232C, // 02C9 GETMET R20 R17 K44
+ 0x7C500200, // 02CA CALL R20 1
+ 0x00530814, // 02CB ADD R20 K132 R20
+ 0x54560003, // 02CC LDINT R21 4
+ 0x7C480600, // 02CD CALL R18 3
+ 0x8C480527, // 02CE GETMET R18 R2 K39
+ 0x5C502000, // 02CF MOVE R20 R16
+ 0x60540015, // 02D0 GETGBL R21 G21
+ 0x7C540000, // 02D1 CALL R21 0
+ 0x8C542B20, // 02D2 GETMET R21 R21 K32
+ 0x885C0185, // 02D3 GETMBR R23 R0 K133
+ 0x7C540400, // 02D4 CALL R21 2
+ 0x60580015, // 02D5 GETGBL R22 G21
+ 0x7C580000, // 02D6 CALL R22 0
+ 0x605C000C, // 02D7 GETGBL R23 G12
+ 0x5C602200, // 02D8 MOVE R24 R17
+ 0x7C5C0200, // 02D9 CALL R23 1
+ 0x5462000F, // 02DA LDINT R24 16
+ 0x7C480C00, // 02DB CALL R18 6
+ 0x8C4C2586, // 02DC GETMET R19 R18 K134
+ 0x5C542200, // 02DD MOVE R21 R17
+ 0x7C4C0400, // 02DE CALL R19 2
+ 0x8C502529, // 02DF GETMET R20 R18 K41
+ 0x7C500200, // 02E0 CALL R20 1
+ 0x004C2614, // 02E1 ADD R19 R19 R20
+ 0xB8520E00, // 02E2 GETNGBL R20 K7
+ 0x8C502908, // 02E3 GETMET R20 R20 K8
+ 0x8C58272C, // 02E4 GETMET R22 R19 K44
+ 0x7C580200, // 02E5 CALL R22 1
+ 0x005B0E16, // 02E6 ADD R22 K135 R22
+ 0x545E0003, // 02E7 LDINT R23 4
+ 0x7C500600, // 02E8 CALL R20 3
+ 0xB8520E00, // 02E9 GETNGBL R20 K7
+ 0x8C502908, // 02EA GETMET R20 R20 K8
+ 0x5858002A, // 02EB LDCONST R22 K42
+ 0x545E0003, // 02EC LDINT R23 4
+ 0x7C500600, // 02ED CALL R20 3
+ 0xB8521A00, // 02EE GETNGBL R20 K13
+ 0x8C502988, // 02EF GETMET R20 R20 K136
+ 0x7C500200, // 02F0 CALL R20 1
+ 0x90531209, // 02F1 SETMBR R20 K137 R9
+ 0x88540935, // 02F2 GETMBR R21 R4 K53
+ 0x90531415, // 02F3 SETMBR R20 K138 R21
+ 0x8854096A, // 02F4 GETMBR R21 R4 K106
0x90531615, // 02F5 SETMBR R20 K139 R21
- 0x8854016B, // 02F6 GETMBR R21 R0 K107
- 0x90531815, // 02F7 SETMBR R20 K140 R21
- 0x90531A13, // 02F8 SETMBR R20 K141 R19
- 0xB8560C00, // 02F9 GETNGBL R21 K6
- 0x8C542B07, // 02FA GETMET R21 R21 K7
- 0xB85E1800, // 02FB GETNGBL R23 K12
- 0x8C5C2F13, // 02FC GETMET R23 R23 K19
- 0x5C642800, // 02FD MOVE R25 R20
- 0x7C5C0400, // 02FE CALL R23 2
- 0x005F1C17, // 02FF ADD R23 K142 R23
- 0x54620003, // 0300 LDINT R24 4
- 0x7C540600, // 0301 CALL R21 3
- 0x8C54294D, // 0302 GETMET R21 R20 K77
- 0x7C540200, // 0303 CALL R21 1
- 0x901B1E15, // 0304 SETMBR R6 K143 R21
- 0xB85A0C00, // 0305 GETNGBL R22 K6
- 0x8C582D07, // 0306 GETMET R22 R22 K7
- 0x8C602B2C, // 0307 GETMET R24 R21 K44
- 0x7C600200, // 0308 CALL R24 1
- 0x00632018, // 0309 ADD R24 K144 R24
- 0x54660003, // 030A LDINT R25 4
- 0x7C580600, // 030B CALL R22 3
- 0x8C580351, // 030C GETMET R22 R1 K81
- 0x54620030, // 030D LDINT R24 49
- 0x50640200, // 030E LDBOOL R25 1 0
- 0x7C580600, // 030F CALL R22 3
- 0x8C5C2D52, // 0310 GETMET R23 R22 K82
- 0x5C642A00, // 0311 MOVE R25 R21
- 0x7C5C0400, // 0312 CALL R23 2
- 0x88600153, // 0313 GETMBR R24 R0 K83
- 0x8C603154, // 0314 GETMET R24 R24 K84
- 0x5C682C00, // 0315 MOVE R26 R22
- 0x7C600400, // 0316 CALL R24 2
- 0x50600200, // 0317 LDBOOL R24 1 0
- 0x80043000, // 0318 RET 1 R24
- 0x50200200, // 0319 LDBOOL R8 1 0
- 0x80041000, // 031A RET 1 R8
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: send_status_report
-********************************************************************/
-be_local_closure(Matter_Commisioning_Context_send_status_report, /* name */
- be_nested_proto(
- 12, /* nstack */
- 6, /* 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(build_response),
- /* K1 */ be_nested_str_weak(add),
- /* K2 */ be_const_int(2),
- /* K3 */ be_nested_str_weak(encode_frame),
- /* K4 */ be_nested_str_weak(responder),
- /* K5 */ be_nested_str_weak(send_response_frame),
- }),
- be_str_weak(send_status_report),
- &be_const_str_solidified,
- ( &(const binstruction[26]) { /* code */
- 0x8C180300, // 0000 GETMET R6 R1 K0
- 0x5422003F, // 0001 LDINT R8 64
- 0x5C240A00, // 0002 MOVE R9 R5
- 0x7C180600, // 0003 CALL R6 3
- 0x601C0015, // 0004 GETGBL R7 G21
- 0x7C1C0000, // 0005 CALL R7 0
- 0x8C200F01, // 0006 GETMET R8 R7 K1
- 0x5C280400, // 0007 MOVE R10 R2
- 0x582C0002, // 0008 LDCONST R11 K2
- 0x7C200600, // 0009 CALL R8 3
- 0x8C200F01, // 000A GETMET R8 R7 K1
- 0x5C280600, // 000B MOVE R10 R3
- 0x542E0003, // 000C LDINT R11 4
- 0x7C200600, // 000D CALL R8 3
- 0x8C200F01, // 000E GETMET R8 R7 K1
- 0x5C280800, // 000F MOVE R10 R4
- 0x542E0003, // 0010 LDINT R11 4
- 0x7C200600, // 0011 CALL R8 3
- 0x8C200D03, // 0012 GETMET R8 R6 K3
- 0x5C280E00, // 0013 MOVE R10 R7
- 0x7C200400, // 0014 CALL R8 2
- 0x88240104, // 0015 GETMBR R9 R0 K4
- 0x8C241305, // 0016 GETMET R9 R9 K5
- 0x5C2C0C00, // 0017 MOVE R11 R6
- 0x7C240400, // 0018 CALL R9 2
- 0x80000000, // 0019 RET 0
+ 0x90531813, // 02F6 SETMBR R20 K140 R19
+ 0xB8560E00, // 02F7 GETNGBL R21 K7
+ 0x8C542B08, // 02F8 GETMET R21 R21 K8
+ 0xB85E1A00, // 02F9 GETNGBL R23 K13
+ 0x8C5C2F14, // 02FA GETMET R23 R23 K20
+ 0x5C642800, // 02FB MOVE R25 R20
+ 0x7C5C0400, // 02FC CALL R23 2
+ 0x005F1A17, // 02FD ADD R23 K141 R23
+ 0x54620003, // 02FE LDINT R24 4
+ 0x7C540600, // 02FF CALL R21 3
+ 0x8C54294D, // 0300 GETMET R21 R20 K77
+ 0x7C540200, // 0301 CALL R21 1
+ 0x90131C15, // 0302 SETMBR R4 K142 R21
+ 0xB85A0E00, // 0303 GETNGBL R22 K7
+ 0x8C582D08, // 0304 GETMET R22 R22 K8
+ 0x8C602B2C, // 0305 GETMET R24 R21 K44
+ 0x7C600200, // 0306 CALL R24 1
+ 0x00631E18, // 0307 ADD R24 K143 R24
+ 0x54660003, // 0308 LDINT R25 4
+ 0x7C580600, // 0309 CALL R22 3
+ 0x8C580351, // 030A GETMET R22 R1 K81
+ 0x54620030, // 030B LDINT R24 49
+ 0x50640200, // 030C LDBOOL R25 1 0
+ 0x7C580600, // 030D CALL R22 3
+ 0x8C5C2D52, // 030E GETMET R23 R22 K82
+ 0x5C642A00, // 030F MOVE R25 R21
+ 0x7C5C0400, // 0310 CALL R23 2
+ 0x88600153, // 0311 GETMBR R24 R0 K83
+ 0x8C603154, // 0312 GETMET R24 R24 K84
+ 0x5C682C00, // 0313 MOVE R26 R22
+ 0x7C600400, // 0314 CALL R24 2
+ 0x50600200, // 0315 LDBOOL R24 1 0
+ 0x80043000, // 0316 RET 1 R24
+ 0x50200200, // 0317 LDBOOL R8 1 0
+ 0x80041000, // 0318 RET 1 R8
})
)
);
@@ -2706,48 +2684,30 @@ be_local_closure(Matter_Commisioning_Context_send_status_report, /* name */
** Solidified class: Matter_Commisioning_Context
********************************************************************/
be_local_class(Matter_Commisioning_Context,
- 20,
+ 2,
NULL,
- be_nested_map(38,
+ be_nested_map(20,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_const_key_weak(send_status_report, -1), be_const_closure(Matter_Commisioning_Context_send_status_report_closure) },
- { be_const_key_weak(cB, -1), be_const_var(11) },
- { be_const_key_weak(TBEData3_Nonce, 37), be_nested_str_weak(NCASE_Sigma3N) },
- { be_const_key_weak(find_fabric_by_destination_id, -1), be_const_closure(Matter_Commisioning_Context_find_fabric_by_destination_id_closure) },
- { be_const_key_weak(parse_Sigma1, 3), be_const_closure(Matter_Commisioning_Context_parse_Sigma1_closure) },
- { be_const_key_weak(responder, -1), be_const_var(0) },
- { be_const_key_weak(parse_PBKDFParamRequest, -1), be_const_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest_closure) },
- { be_const_key_weak(parse_Pake1, -1), be_const_closure(Matter_Commisioning_Context_parse_Pake1_closure) },
- { be_const_key_weak(process_incoming, -1), be_const_closure(Matter_Commisioning_Context_process_incoming_closure) },
- { be_const_key_weak(future_initiator_session_id, 2), be_const_var(3) },
- { be_const_key_weak(cA, -1), be_const_var(10) },
- { be_const_key_weak(parse_Sigma3, -1), be_const_closure(Matter_Commisioning_Context_parse_Sigma3_closure) },
- { be_const_key_weak(ResponderEph_priv, -1), be_const_var(13) },
- { be_const_key_weak(init, -1), be_const_closure(Matter_Commisioning_Context_init_closure) },
+ { be_const_key_weak(every_second, -1), be_const_closure(Matter_Commisioning_Context_every_second_closure) },
{ be_const_key_weak(parse_StatusReport, -1), be_const_closure(Matter_Commisioning_Context_parse_StatusReport_closure) },
- { be_const_key_weak(device, 8), be_const_var(1) },
- { be_const_key_weak(PBKDFParamResponse, -1), be_const_var(6) },
- { be_const_key_weak(future_local_session_id, 18), be_const_var(4) },
- { be_const_key_weak(pB, 11), be_const_var(9) },
- { be_const_key_weak(add_session, -1), be_const_closure(Matter_Commisioning_Context_add_session_closure) },
- { be_const_key_weak(Ke, -1), be_const_var(12) },
- { be_const_key_weak(SEKeys_Info, -1), be_nested_str_weak(SessionKeys) },
{ be_const_key_weak(S2K_Info, -1), be_nested_str_weak(Sigma2) },
- { be_const_key_weak(created, 26), be_const_var(16) },
- { be_const_key_weak(AttestationChallenge, 21), be_const_var(19) },
- { be_const_key_weak(R2IKey, 20), be_const_var(18) },
- { be_const_key_weak(parse_Pake3, -1), be_const_closure(Matter_Commisioning_Context_parse_Pake3_closure) },
- { be_const_key_weak(S3K_Info, -1), be_nested_str_weak(Sigma3) },
- { be_const_key_weak(pA, 16), be_const_var(8) },
- { be_const_key_weak(Matter_Context_Prefix, 14), be_nested_str_weak(CHIP_X20PAKE_X20V1_X20Commissioning) },
- { be_const_key_weak(PBKDFParamRequest, -1), be_const_var(5) },
- { be_const_key_weak(every_second, 10), be_const_closure(Matter_Commisioning_Context_every_second_closure) },
+ { be_const_key_weak(find_fabric_by_destination_id, -1), be_const_closure(Matter_Commisioning_Context_find_fabric_by_destination_id_closure) },
+ { be_const_key_weak(process_incoming, 18), be_const_closure(Matter_Commisioning_Context_process_incoming_closure) },
+ { be_const_key_weak(Matter_Context_Prefix, 0), be_nested_str_weak(CHIP_X20PAKE_X20V1_X20Commissioning) },
+ { be_const_key_weak(SEKeys_Info, -1), be_nested_str_weak(SessionKeys) },
+ { be_const_key_weak(TBEData3_Nonce, 4), be_nested_str_weak(NCASE_Sigma3N) },
+ { be_const_key_weak(parse_PBKDFParamRequest, -1), be_const_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest_closure) },
+ { be_const_key_weak(send_status_report, -1), be_const_closure(Matter_Commisioning_Context_send_status_report_closure) },
+ { be_const_key_weak(parse_Sigma3, -1), be_const_closure(Matter_Commisioning_Context_parse_Sigma3_closure) },
+ { be_const_key_weak(device, -1), be_const_var(1) },
{ be_const_key_weak(TBEData2_Nonce, -1), be_nested_str_weak(NCASE_Sigma2N) },
- { be_const_key_weak(initiatorEph_pub, 4), be_const_var(15) },
- { be_const_key_weak(y, -1), be_const_var(7) },
- { be_const_key_weak(spake, 0), be_const_var(2) },
- { be_const_key_weak(ResponderEph_pub, 1), be_const_var(14) },
- { be_const_key_weak(I2RKey, -1), be_const_var(17) },
+ { be_const_key_weak(responder, 16), be_const_var(0) },
+ { be_const_key_weak(parse_Pake3, -1), be_const_closure(Matter_Commisioning_Context_parse_Pake3_closure) },
+ { be_const_key_weak(init, 14), be_const_closure(Matter_Commisioning_Context_init_closure) },
+ { be_const_key_weak(parse_Pake1, -1), be_const_closure(Matter_Commisioning_Context_parse_Pake1_closure) },
+ { be_const_key_weak(S3K_Info, 10), be_nested_str_weak(Sigma3) },
+ { be_const_key_weak(add_session, -1), be_const_closure(Matter_Commisioning_Context_add_session_closure) },
+ { be_const_key_weak(parse_Sigma1, -1), be_const_closure(Matter_Commisioning_Context_parse_Sigma1_closure) },
})),
be_str_weak(Matter_Commisioning_Context)
);
diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h
new file mode 100644
index 000000000..94d1f1d16
--- /dev/null
+++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h
@@ -0,0 +1,1321 @@
+/* Solidification of Matter_Fabric.h */
+/********************************************************************\
+* Generated code, don't edit *
+\********************************************************************/
+#include "be_constobj.h"
+
+extern const bclass be_class_Matter_Fabric;
+
+/********************************************************************
+** Solidified function: tojson
+********************************************************************/
+be_local_closure(Matter_Fabric_tojson, /* name */
+ be_nested_proto(
+ 18, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[29]) { /* constants */
+ /* K0 */ be_nested_str_weak(json),
+ /* K1 */ be_nested_str_weak(string),
+ /* K2 */ be_nested_str_weak(introspect),
+ /* K3 */ be_nested_str_weak(persist_pre),
+ /* K4 */ be_nested_str_weak(members),
+ /* K5 */ be_nested_str_weak(get),
+ /* K6 */ be_nested_str_weak(function),
+ /* K7 */ be_const_int(0),
+ /* K8 */ be_nested_str_weak(_),
+ /* K9 */ be_nested_str_weak(push),
+ /* K10 */ be_nested_str_weak(stop_iteration),
+ /* K11 */ be_nested_str_weak(matter),
+ /* K12 */ be_nested_str_weak(sort),
+ /* K13 */ be_nested_str_weak(_X24_X24),
+ /* K14 */ be_nested_str_weak(tob64),
+ /* K15 */ be_nested_str_weak(format),
+ /* K16 */ be_nested_str_weak(_X25s_X3A_X25s),
+ /* K17 */ be_nested_str_weak(dump),
+ /* K18 */ be_nested_str_weak(_sessions),
+ /* K19 */ be_nested_str_weak(persistables),
+ /* K20 */ be_nested_str_weak(tojson),
+ /* K21 */ be_nested_str_weak(_X5B),
+ /* K22 */ be_nested_str_weak(concat),
+ /* K23 */ be_nested_str_weak(_X2C),
+ /* K24 */ be_nested_str_weak(_X5D),
+ /* K25 */ be_nested_str_weak(_X22_sessions_X22_X3A),
+ /* K26 */ be_nested_str_weak(persist_post),
+ /* K27 */ be_nested_str_weak(_X7B),
+ /* K28 */ be_nested_str_weak(_X7D),
+ }),
+ be_str_weak(tojson),
+ &be_const_str_solidified,
+ ( &(const binstruction[120]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0xA40A0200, // 0001 IMPORT R2 K1
+ 0xA40E0400, // 0002 IMPORT R3 K2
+ 0x8C100103, // 0003 GETMET R4 R0 K3
+ 0x7C100200, // 0004 CALL R4 1
+ 0x60100012, // 0005 GETGBL R4 G18
+ 0x7C100000, // 0006 CALL R4 0
+ 0x60140010, // 0007 GETGBL R5 G16
+ 0x8C180704, // 0008 GETMET R6 R3 K4
+ 0x5C200000, // 0009 MOVE R8 R0
+ 0x7C180400, // 000A CALL R6 2
+ 0x7C140200, // 000B CALL R5 1
+ 0xA8020011, // 000C EXBLK 0 #001F
+ 0x5C180A00, // 000D MOVE R6 R5
+ 0x7C180000, // 000E CALL R6 0
+ 0x8C1C0705, // 000F GETMET R7 R3 K5
+ 0x5C240000, // 0010 MOVE R9 R0
+ 0x5C280C00, // 0011 MOVE R10 R6
+ 0x7C1C0600, // 0012 CALL R7 3
+ 0x60200004, // 0013 GETGBL R8 G4
+ 0x5C240E00, // 0014 MOVE R9 R7
+ 0x7C200200, // 0015 CALL R8 1
+ 0x20201106, // 0016 NE R8 R8 K6
+ 0x78220005, // 0017 JMPF R8 #001E
+ 0x94200D07, // 0018 GETIDX R8 R6 K7
+ 0x20201108, // 0019 NE R8 R8 K8
+ 0x78220002, // 001A JMPF R8 #001E
+ 0x8C200909, // 001B GETMET R8 R4 K9
+ 0x5C280C00, // 001C MOVE R10 R6
+ 0x7C200400, // 001D CALL R8 2
+ 0x7001FFED, // 001E JMP #000D
+ 0x5814000A, // 001F LDCONST R5 K10
+ 0xAC140200, // 0020 CATCH R5 1 0
+ 0xB0080000, // 0021 RAISE 2 R0 R0
+ 0xB8161600, // 0022 GETNGBL R5 K11
+ 0x8C140B0C, // 0023 GETMET R5 R5 K12
+ 0x5C1C0800, // 0024 MOVE R7 R4
+ 0x7C140400, // 0025 CALL R5 2
+ 0x5C100A00, // 0026 MOVE R4 R5
+ 0x60140012, // 0027 GETGBL R5 G18
+ 0x7C140000, // 0028 CALL R5 0
+ 0x60180010, // 0029 GETGBL R6 G16
+ 0x5C1C0800, // 002A MOVE R7 R4
+ 0x7C180200, // 002B CALL R6 1
+ 0xA8020020, // 002C EXBLK 0 #004E
+ 0x5C1C0C00, // 002D MOVE R7 R6
+ 0x7C1C0000, // 002E CALL R7 0
+ 0x8C200705, // 002F GETMET R8 R3 K5
+ 0x5C280000, // 0030 MOVE R10 R0
+ 0x5C2C0E00, // 0031 MOVE R11 R7
+ 0x7C200600, // 0032 CALL R8 3
+ 0x4C240000, // 0033 LDNIL R9
+ 0x1C241009, // 0034 EQ R9 R8 R9
+ 0x78260000, // 0035 JMPF R9 #0037
+ 0x7001FFF5, // 0036 JMP #002D
+ 0x6024000F, // 0037 GETGBL R9 G15
+ 0x5C281000, // 0038 MOVE R10 R8
+ 0x602C0015, // 0039 GETGBL R11 G21
+ 0x7C240400, // 003A CALL R9 2
+ 0x78260003, // 003B JMPF R9 #0040
+ 0x8C24110E, // 003C GETMET R9 R8 K14
+ 0x7C240200, // 003D CALL R9 1
+ 0x00261A09, // 003E ADD R9 K13 R9
+ 0x5C201200, // 003F MOVE R8 R9
+ 0x8C240B09, // 0040 GETMET R9 R5 K9
+ 0x8C2C050F, // 0041 GETMET R11 R2 K15
+ 0x58340010, // 0042 LDCONST R13 K16
+ 0x8C380311, // 0043 GETMET R14 R1 K17
+ 0x60400008, // 0044 GETGBL R16 G8
+ 0x5C440E00, // 0045 MOVE R17 R7
+ 0x7C400200, // 0046 CALL R16 1
+ 0x7C380400, // 0047 CALL R14 2
+ 0x8C3C0311, // 0048 GETMET R15 R1 K17
+ 0x5C441000, // 0049 MOVE R17 R8
+ 0x7C3C0400, // 004A CALL R15 2
+ 0x7C2C0800, // 004B CALL R11 4
+ 0x7C240400, // 004C CALL R9 2
+ 0x7001FFDE, // 004D JMP #002D
+ 0x5818000A, // 004E LDCONST R6 K10
+ 0xAC180200, // 004F CATCH R6 1 0
+ 0xB0080000, // 0050 RAISE 2 R0 R0
+ 0x60180012, // 0051 GETGBL R6 G18
+ 0x7C180000, // 0052 CALL R6 0
+ 0x601C0010, // 0053 GETGBL R7 G16
+ 0x88200112, // 0054 GETMBR R8 R0 K18
+ 0x8C201113, // 0055 GETMET R8 R8 K19
+ 0x7C200200, // 0056 CALL R8 1
+ 0x7C1C0200, // 0057 CALL R7 1
+ 0xA8020006, // 0058 EXBLK 0 #0060
+ 0x5C200E00, // 0059 MOVE R8 R7
+ 0x7C200000, // 005A CALL R8 0
+ 0x8C240D09, // 005B GETMET R9 R6 K9
+ 0x8C2C1114, // 005C GETMET R11 R8 K20
+ 0x7C2C0200, // 005D CALL R11 1
+ 0x7C240400, // 005E CALL R9 2
+ 0x7001FFF8, // 005F JMP #0059
+ 0x581C000A, // 0060 LDCONST R7 K10
+ 0xAC1C0200, // 0061 CATCH R7 1 0
+ 0xB0080000, // 0062 RAISE 2 R0 R0
+ 0x601C000C, // 0063 GETGBL R7 G12
+ 0x5C200C00, // 0064 MOVE R8 R6
+ 0x7C1C0200, // 0065 CALL R7 1
+ 0x241C0F07, // 0066 GT R7 R7 K7
+ 0x781E0007, // 0067 JMPF R7 #0070
+ 0x8C1C0D16, // 0068 GETMET R7 R6 K22
+ 0x58240017, // 0069 LDCONST R9 K23
+ 0x7C1C0400, // 006A CALL R7 2
+ 0x001E2A07, // 006B ADD R7 K21 R7
+ 0x001C0F18, // 006C ADD R7 R7 K24
+ 0x8C200B09, // 006D GETMET R8 R5 K9
+ 0x002A3207, // 006E ADD R10 K25 R7
+ 0x7C200400, // 006F CALL R8 2
+ 0x8C1C011A, // 0070 GETMET R7 R0 K26
+ 0x7C1C0200, // 0071 CALL R7 1
+ 0x8C1C0B16, // 0072 GETMET R7 R5 K22
+ 0x58240017, // 0073 LDCONST R9 K23
+ 0x7C1C0400, // 0074 CALL R7 2
+ 0x001E3607, // 0075 ADD R7 K27 R7
+ 0x001C0F1C, // 0076 ADD R7 R7 K28
+ 0x80040E00, // 0077 RET 1 R7
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified 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
+********************************************************************/
+be_local_closure(Matter_Fabric_get_admin_subject, /* name */
+ be_nested_proto(
+ 2, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str_weak(admin_subject),
+ }),
+ be_str_weak(get_admin_subject),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x80040200, // 0001 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: 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
+********************************************************************/
+be_local_closure(Matter_Fabric_add_session, /* name */
+ be_nested_proto(
+ 8, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_nested_str_weak(_sessions),
+ /* K1 */ be_nested_str_weak(find),
+ /* K2 */ be_nested_str_weak(_MAX_CASE),
+ /* K3 */ be_nested_str_weak(remove),
+ /* K4 */ be_nested_str_weak(get_oldest_session),
+ /* K5 */ be_nested_str_weak(push),
+ }),
+ be_str_weak(add_session),
+ &be_const_str_solidified,
+ ( &(const binstruction[27]) { /* code */
+ 0x88080100, // 0000 GETMBR R2 R0 K0
+ 0x8C080501, // 0001 GETMET R2 R2 K1
+ 0x5C100200, // 0002 MOVE R4 R1
+ 0x7C080400, // 0003 CALL R2 2
+ 0x4C0C0000, // 0004 LDNIL R3
+ 0x1C080403, // 0005 EQ R2 R2 R3
+ 0x780A0012, // 0006 JMPF R2 #001A
+ 0x6008000C, // 0007 GETGBL R2 G12
+ 0x880C0100, // 0008 GETMBR R3 R0 K0
+ 0x7C080200, // 0009 CALL R2 1
+ 0x880C0102, // 000A GETMBR R3 R0 K2
+ 0x28080403, // 000B GE R2 R2 R3
+ 0x780A0008, // 000C JMPF R2 #0016
+ 0x88080100, // 000D GETMBR R2 R0 K0
+ 0x8C080503, // 000E GETMET R2 R2 K3
+ 0x88100100, // 000F GETMBR R4 R0 K0
+ 0x8C100901, // 0010 GETMET R4 R4 K1
+ 0x8C180104, // 0011 GETMET R6 R0 K4
+ 0x7C180200, // 0012 CALL R6 1
+ 0x7C100400, // 0013 CALL R4 2
+ 0x7C080400, // 0014 CALL R2 2
+ 0x7001FFF0, // 0015 JMP #0007
+ 0x88080100, // 0016 GETMBR R2 R0 K0
+ 0x8C080505, // 0017 GETMET R2 R2 K5
+ 0x5C100200, // 0018 MOVE R4 R1
+ 0x7C080400, // 0019 CALL R2 2
+ 0x80000000, // 001A RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** 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: 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: fromjson
+********************************************************************/
+be_local_closure(Matter_Fabric_fromjson, /* name */
+ be_nested_proto(
+ 16, /* nstack */
+ 2, /* argc */
+ 4, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[18]) { /* constants */
+ /* K0 */ be_const_class(be_class_Matter_Fabric),
+ /* K1 */ be_nested_str_weak(string),
+ /* K2 */ be_nested_str_weak(introspect),
+ /* K3 */ be_nested_str_weak(matter),
+ /* K4 */ be_nested_str_weak(Fabric),
+ /* K5 */ be_nested_str_weak(keys),
+ /* K6 */ be_const_int(0),
+ /* K7 */ be_nested_str_weak(_),
+ /* K8 */ be_nested_str_weak(find),
+ /* K9 */ be_nested_str_weak(0x),
+ /* K10 */ be_nested_str_weak(set),
+ /* K11 */ be_nested_str_weak(fromhex),
+ /* K12 */ be_const_int(2),
+ /* K13 */ be_const_int(2147483647),
+ /* K14 */ be_nested_str_weak(_X24_X24),
+ /* K15 */ be_nested_str_weak(fromb64),
+ /* K16 */ be_nested_str_weak(stop_iteration),
+ /* K17 */ be_nested_str_weak(hydrate_post),
+ }),
+ be_str_weak(fromjson),
+ &be_const_str_solidified,
+ ( &(const binstruction[76]) { /* code */
+ 0x58080000, // 0000 LDCONST R2 K0
+ 0xA40E0200, // 0001 IMPORT R3 K1
+ 0xA4120400, // 0002 IMPORT R4 K2
+ 0xB8160600, // 0003 GETNGBL R5 K3
+ 0x8C140B04, // 0004 GETMET R5 R5 K4
+ 0x5C1C0000, // 0005 MOVE R7 R0
+ 0x7C140400, // 0006 CALL R5 2
+ 0x60180010, // 0007 GETGBL R6 G16
+ 0x8C1C0305, // 0008 GETMET R7 R1 K5
+ 0x7C1C0200, // 0009 CALL R7 1
+ 0x7C180200, // 000A CALL R6 1
+ 0xA8020039, // 000B EXBLK 0 #0046
+ 0x5C1C0C00, // 000C MOVE R7 R6
+ 0x7C1C0000, // 000D CALL R7 0
+ 0x94200F06, // 000E GETIDX R8 R7 K6
+ 0x1C201107, // 000F EQ R8 R8 K7
+ 0x78220000, // 0010 JMPF R8 #0012
+ 0x7001FFF9, // 0011 JMP #000C
+ 0x94200207, // 0012 GETIDX R8 R1 R7
+ 0x60240004, // 0013 GETGBL R9 G4
+ 0x5C281000, // 0014 MOVE R10 R8
+ 0x7C240200, // 0015 CALL R9 1
+ 0x1C241301, // 0016 EQ R9 R9 K1
+ 0x78260027, // 0017 JMPF R9 #0040
+ 0x8C240708, // 0018 GETMET R9 R3 K8
+ 0x5C2C1000, // 0019 MOVE R11 R8
+ 0x58300009, // 001A LDCONST R12 K9
+ 0x7C240600, // 001B CALL R9 3
+ 0x1C241306, // 001C EQ R9 R9 K6
+ 0x7826000A, // 001D JMPF R9 #0029
+ 0x8C24090A, // 001E GETMET R9 R4 K10
+ 0x5C2C0A00, // 001F MOVE R11 R5
+ 0x5C300E00, // 0020 MOVE R12 R7
+ 0x60340015, // 0021 GETGBL R13 G21
+ 0x7C340000, // 0022 CALL R13 0
+ 0x8C341B0B, // 0023 GETMET R13 R13 K11
+ 0x403E190D, // 0024 CONNECT R15 K12 K13
+ 0x943C100F, // 0025 GETIDX R15 R8 R15
+ 0x7C340400, // 0026 CALL R13 2
+ 0x7C240800, // 0027 CALL R9 4
+ 0x70020015, // 0028 JMP #003F
+ 0x8C240708, // 0029 GETMET R9 R3 K8
+ 0x5C2C1000, // 002A MOVE R11 R8
+ 0x5830000E, // 002B LDCONST R12 K14
+ 0x7C240600, // 002C CALL R9 3
+ 0x1C241306, // 002D EQ R9 R9 K6
+ 0x7826000A, // 002E JMPF R9 #003A
+ 0x8C24090A, // 002F GETMET R9 R4 K10
+ 0x5C2C0A00, // 0030 MOVE R11 R5
+ 0x5C300E00, // 0031 MOVE R12 R7
+ 0x60340015, // 0032 GETGBL R13 G21
+ 0x7C340000, // 0033 CALL R13 0
+ 0x8C341B0F, // 0034 GETMET R13 R13 K15
+ 0x403E190D, // 0035 CONNECT R15 K12 K13
+ 0x943C100F, // 0036 GETIDX R15 R8 R15
+ 0x7C340400, // 0037 CALL R13 2
+ 0x7C240800, // 0038 CALL R9 4
+ 0x70020004, // 0039 JMP #003F
+ 0x8C24090A, // 003A GETMET R9 R4 K10
+ 0x5C2C0A00, // 003B MOVE R11 R5
+ 0x5C300E00, // 003C MOVE R12 R7
+ 0x5C341000, // 003D MOVE R13 R8
+ 0x7C240800, // 003E CALL R9 4
+ 0x70020004, // 003F JMP #0045
+ 0x8C24090A, // 0040 GETMET R9 R4 K10
+ 0x5C2C0A00, // 0041 MOVE R11 R5
+ 0x5C300E00, // 0042 MOVE R12 R7
+ 0x5C341000, // 0043 MOVE R13 R8
+ 0x7C240800, // 0044 CALL R9 4
+ 0x7001FFC5, // 0045 JMP #000C
+ 0x58180010, // 0046 LDCONST R6 K16
+ 0xAC180200, // 0047 CATCH R6 1 0
+ 0xB0080000, // 0048 RAISE 2 R0 R0
+ 0x8C180B11, // 0049 GETMET R6 R5 K17
+ 0x7C180200, // 004A CALL R6 1
+ 0x80040A00, // 004B RET 1 R5
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** 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
+********************************************************************/
+extern const bclass be_class_Matter_Expirable;
+be_local_class(Matter_Fabric,
+ 20,
+ &be_class_Matter_Expirable,
+ be_nested_map(49,
+ ( (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(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(get_ca_pub, -1), be_const_closure(Matter_Fabric_get_ca_pub_closure) },
+ { be_const_key_weak(root_ca_certificate, -1), be_const_var(6) },
+ })),
+ be_str_weak(Matter_Fabric)
+);
+/*******************************************************************/
+
+void be_load_Matter_Fabric_class(bvm *vm) {
+ be_pushntvclass(vm, &be_class_Matter_Fabric);
+ be_setglobal(vm, "Matter_Fabric");
+ be_pop(vm, 1);
+}
+/********************************************************************/
+/* End of solidification */
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 5ce3adfc0..d35617f1e 100644
--- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h
+++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h
@@ -4,1367 +4,12 @@
\********************************************************************/
#include "be_constobj.h"
-extern const bclass be_class_Matter_Fabric;
-
-/********************************************************************
-** Solidified function: tojson
-********************************************************************/
-be_local_closure(Matter_Fabric_tojson, /* name */
- be_nested_proto(
- 18, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[29]) { /* constants */
- /* K0 */ be_nested_str_weak(json),
- /* K1 */ be_nested_str_weak(string),
- /* K2 */ be_nested_str_weak(introspect),
- /* K3 */ be_nested_str_weak(persist_pre),
- /* K4 */ be_nested_str_weak(members),
- /* K5 */ be_nested_str_weak(get),
- /* K6 */ be_nested_str_weak(function),
- /* K7 */ be_const_int(0),
- /* K8 */ be_nested_str_weak(_),
- /* K9 */ be_nested_str_weak(push),
- /* K10 */ be_nested_str_weak(stop_iteration),
- /* K11 */ be_nested_str_weak(matter),
- /* K12 */ be_nested_str_weak(sort),
- /* K13 */ be_nested_str_weak(_X24_X24),
- /* K14 */ be_nested_str_weak(tob64),
- /* K15 */ be_nested_str_weak(format),
- /* K16 */ be_nested_str_weak(_X25s_X3A_X25s),
- /* K17 */ be_nested_str_weak(dump),
- /* K18 */ be_nested_str_weak(_sessions),
- /* K19 */ be_nested_str_weak(persistables),
- /* K20 */ be_nested_str_weak(tojson),
- /* K21 */ be_nested_str_weak(_X5B),
- /* K22 */ be_nested_str_weak(concat),
- /* K23 */ be_nested_str_weak(_X2C),
- /* K24 */ be_nested_str_weak(_X5D),
- /* K25 */ be_nested_str_weak(_X22_sessions_X22_X3A),
- /* K26 */ be_nested_str_weak(persist_post),
- /* K27 */ be_nested_str_weak(_X7B),
- /* K28 */ be_nested_str_weak(_X7D),
- }),
- be_str_weak(tojson),
- &be_const_str_solidified,
- ( &(const binstruction[120]) { /* code */
- 0xA4060000, // 0000 IMPORT R1 K0
- 0xA40A0200, // 0001 IMPORT R2 K1
- 0xA40E0400, // 0002 IMPORT R3 K2
- 0x8C100103, // 0003 GETMET R4 R0 K3
- 0x7C100200, // 0004 CALL R4 1
- 0x60100012, // 0005 GETGBL R4 G18
- 0x7C100000, // 0006 CALL R4 0
- 0x60140010, // 0007 GETGBL R5 G16
- 0x8C180704, // 0008 GETMET R6 R3 K4
- 0x5C200000, // 0009 MOVE R8 R0
- 0x7C180400, // 000A CALL R6 2
- 0x7C140200, // 000B CALL R5 1
- 0xA8020011, // 000C EXBLK 0 #001F
- 0x5C180A00, // 000D MOVE R6 R5
- 0x7C180000, // 000E CALL R6 0
- 0x8C1C0705, // 000F GETMET R7 R3 K5
- 0x5C240000, // 0010 MOVE R9 R0
- 0x5C280C00, // 0011 MOVE R10 R6
- 0x7C1C0600, // 0012 CALL R7 3
- 0x60200004, // 0013 GETGBL R8 G4
- 0x5C240E00, // 0014 MOVE R9 R7
- 0x7C200200, // 0015 CALL R8 1
- 0x20201106, // 0016 NE R8 R8 K6
- 0x78220005, // 0017 JMPF R8 #001E
- 0x94200D07, // 0018 GETIDX R8 R6 K7
- 0x20201108, // 0019 NE R8 R8 K8
- 0x78220002, // 001A JMPF R8 #001E
- 0x8C200909, // 001B GETMET R8 R4 K9
- 0x5C280C00, // 001C MOVE R10 R6
- 0x7C200400, // 001D CALL R8 2
- 0x7001FFED, // 001E JMP #000D
- 0x5814000A, // 001F LDCONST R5 K10
- 0xAC140200, // 0020 CATCH R5 1 0
- 0xB0080000, // 0021 RAISE 2 R0 R0
- 0xB8161600, // 0022 GETNGBL R5 K11
- 0x8C140B0C, // 0023 GETMET R5 R5 K12
- 0x5C1C0800, // 0024 MOVE R7 R4
- 0x7C140400, // 0025 CALL R5 2
- 0x5C100A00, // 0026 MOVE R4 R5
- 0x60140012, // 0027 GETGBL R5 G18
- 0x7C140000, // 0028 CALL R5 0
- 0x60180010, // 0029 GETGBL R6 G16
- 0x5C1C0800, // 002A MOVE R7 R4
- 0x7C180200, // 002B CALL R6 1
- 0xA8020020, // 002C EXBLK 0 #004E
- 0x5C1C0C00, // 002D MOVE R7 R6
- 0x7C1C0000, // 002E CALL R7 0
- 0x8C200705, // 002F GETMET R8 R3 K5
- 0x5C280000, // 0030 MOVE R10 R0
- 0x5C2C0E00, // 0031 MOVE R11 R7
- 0x7C200600, // 0032 CALL R8 3
- 0x4C240000, // 0033 LDNIL R9
- 0x1C241009, // 0034 EQ R9 R8 R9
- 0x78260000, // 0035 JMPF R9 #0037
- 0x7001FFF5, // 0036 JMP #002D
- 0x6024000F, // 0037 GETGBL R9 G15
- 0x5C281000, // 0038 MOVE R10 R8
- 0x602C0015, // 0039 GETGBL R11 G21
- 0x7C240400, // 003A CALL R9 2
- 0x78260003, // 003B JMPF R9 #0040
- 0x8C24110E, // 003C GETMET R9 R8 K14
- 0x7C240200, // 003D CALL R9 1
- 0x00261A09, // 003E ADD R9 K13 R9
- 0x5C201200, // 003F MOVE R8 R9
- 0x8C240B09, // 0040 GETMET R9 R5 K9
- 0x8C2C050F, // 0041 GETMET R11 R2 K15
- 0x58340010, // 0042 LDCONST R13 K16
- 0x8C380311, // 0043 GETMET R14 R1 K17
- 0x60400008, // 0044 GETGBL R16 G8
- 0x5C440E00, // 0045 MOVE R17 R7
- 0x7C400200, // 0046 CALL R16 1
- 0x7C380400, // 0047 CALL R14 2
- 0x8C3C0311, // 0048 GETMET R15 R1 K17
- 0x5C441000, // 0049 MOVE R17 R8
- 0x7C3C0400, // 004A CALL R15 2
- 0x7C2C0800, // 004B CALL R11 4
- 0x7C240400, // 004C CALL R9 2
- 0x7001FFDE, // 004D JMP #002D
- 0x5818000A, // 004E LDCONST R6 K10
- 0xAC180200, // 004F CATCH R6 1 0
- 0xB0080000, // 0050 RAISE 2 R0 R0
- 0x60180012, // 0051 GETGBL R6 G18
- 0x7C180000, // 0052 CALL R6 0
- 0x601C0010, // 0053 GETGBL R7 G16
- 0x88200112, // 0054 GETMBR R8 R0 K18
- 0x8C201113, // 0055 GETMET R8 R8 K19
- 0x7C200200, // 0056 CALL R8 1
- 0x7C1C0200, // 0057 CALL R7 1
- 0xA8020006, // 0058 EXBLK 0 #0060
- 0x5C200E00, // 0059 MOVE R8 R7
- 0x7C200000, // 005A CALL R8 0
- 0x8C240D09, // 005B GETMET R9 R6 K9
- 0x8C2C1114, // 005C GETMET R11 R8 K20
- 0x7C2C0200, // 005D CALL R11 1
- 0x7C240400, // 005E CALL R9 2
- 0x7001FFF8, // 005F JMP #0059
- 0x581C000A, // 0060 LDCONST R7 K10
- 0xAC1C0200, // 0061 CATCH R7 1 0
- 0xB0080000, // 0062 RAISE 2 R0 R0
- 0x601C000C, // 0063 GETGBL R7 G12
- 0x5C200C00, // 0064 MOVE R8 R6
- 0x7C1C0200, // 0065 CALL R7 1
- 0x241C0F07, // 0066 GT R7 R7 K7
- 0x781E0007, // 0067 JMPF R7 #0070
- 0x8C1C0D16, // 0068 GETMET R7 R6 K22
- 0x58240017, // 0069 LDCONST R9 K23
- 0x7C1C0400, // 006A CALL R7 2
- 0x001E2A07, // 006B ADD R7 K21 R7
- 0x001C0F18, // 006C ADD R7 R7 K24
- 0x8C200B09, // 006D GETMET R8 R5 K9
- 0x002A3207, // 006E ADD R10 K25 R7
- 0x7C200400, // 006F CALL R8 2
- 0x8C1C011A, // 0070 GETMET R7 R0 K26
- 0x7C1C0200, // 0071 CALL R7 1
- 0x8C1C0B16, // 0072 GETMET R7 R5 K22
- 0x58240017, // 0073 LDCONST R9 K23
- 0x7C1C0400, // 0074 CALL R7 2
- 0x001E3607, // 0075 ADD R7 K27 R7
- 0x001C0F1C, // 0076 ADD R7 R7 K28
- 0x80040E00, // 0077 RET 1 R7
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified 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
-********************************************************************/
-be_local_closure(Matter_Fabric_get_admin_subject, /* name */
- be_nested_proto(
- 2, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_weak(admin_subject),
- }),
- be_str_weak(get_admin_subject),
- &be_const_str_solidified,
- ( &(const binstruction[ 2]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x80040200, // 0001 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: 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
-********************************************************************/
-be_local_closure(Matter_Fabric_add_session, /* name */
- be_nested_proto(
- 8, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_str_weak(_sessions),
- /* K1 */ be_nested_str_weak(find),
- /* K2 */ be_nested_str_weak(_MAX_CASE),
- /* K3 */ be_nested_str_weak(remove),
- /* K4 */ be_nested_str_weak(get_oldest_session),
- /* K5 */ be_nested_str_weak(push),
- }),
- be_str_weak(add_session),
- &be_const_str_solidified,
- ( &(const binstruction[27]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x8C080501, // 0001 GETMET R2 R2 K1
- 0x5C100200, // 0002 MOVE R4 R1
- 0x7C080400, // 0003 CALL R2 2
- 0x4C0C0000, // 0004 LDNIL R3
- 0x1C080403, // 0005 EQ R2 R2 R3
- 0x780A0012, // 0006 JMPF R2 #001A
- 0x6008000C, // 0007 GETGBL R2 G12
- 0x880C0100, // 0008 GETMBR R3 R0 K0
- 0x7C080200, // 0009 CALL R2 1
- 0x880C0102, // 000A GETMBR R3 R0 K2
- 0x28080403, // 000B GE R2 R2 R3
- 0x780A0008, // 000C JMPF R2 #0016
- 0x88080100, // 000D GETMBR R2 R0 K0
- 0x8C080503, // 000E GETMET R2 R2 K3
- 0x88100100, // 000F GETMBR R4 R0 K0
- 0x8C100901, // 0010 GETMET R4 R4 K1
- 0x8C180104, // 0011 GETMET R6 R0 K4
- 0x7C180200, // 0012 CALL R6 1
- 0x7C100400, // 0013 CALL R4 2
- 0x7C080400, // 0014 CALL R2 2
- 0x7001FFF0, // 0015 JMP #0007
- 0x88080100, // 0016 GETMBR R2 R0 K0
- 0x8C080505, // 0017 GETMET R2 R2 K5
- 0x5C100200, // 0018 MOVE R4 R1
- 0x7C080400, // 0019 CALL R2 2
- 0x80000000, // 001A RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** 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: 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: fromjson
-********************************************************************/
-be_local_closure(Matter_Fabric_fromjson, /* name */
- be_nested_proto(
- 16, /* nstack */
- 2, /* argc */
- 4, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[18]) { /* constants */
- /* K0 */ be_const_class(be_class_Matter_Fabric),
- /* K1 */ be_nested_str_weak(string),
- /* K2 */ be_nested_str_weak(introspect),
- /* K3 */ be_nested_str_weak(matter),
- /* K4 */ be_nested_str_weak(Fabric),
- /* K5 */ be_nested_str_weak(keys),
- /* K6 */ be_const_int(0),
- /* K7 */ be_nested_str_weak(_),
- /* K8 */ be_nested_str_weak(find),
- /* K9 */ be_nested_str_weak(0x),
- /* K10 */ be_nested_str_weak(set),
- /* K11 */ be_nested_str_weak(fromhex),
- /* K12 */ be_const_int(2),
- /* K13 */ be_const_int(2147483647),
- /* K14 */ be_nested_str_weak(_X24_X24),
- /* K15 */ be_nested_str_weak(fromb64),
- /* K16 */ be_nested_str_weak(stop_iteration),
- /* K17 */ be_nested_str_weak(hydrate_post),
- }),
- be_str_weak(fromjson),
- &be_const_str_solidified,
- ( &(const binstruction[76]) { /* code */
- 0x58080000, // 0000 LDCONST R2 K0
- 0xA40E0200, // 0001 IMPORT R3 K1
- 0xA4120400, // 0002 IMPORT R4 K2
- 0xB8160600, // 0003 GETNGBL R5 K3
- 0x8C140B04, // 0004 GETMET R5 R5 K4
- 0x5C1C0000, // 0005 MOVE R7 R0
- 0x7C140400, // 0006 CALL R5 2
- 0x60180010, // 0007 GETGBL R6 G16
- 0x8C1C0305, // 0008 GETMET R7 R1 K5
- 0x7C1C0200, // 0009 CALL R7 1
- 0x7C180200, // 000A CALL R6 1
- 0xA8020039, // 000B EXBLK 0 #0046
- 0x5C1C0C00, // 000C MOVE R7 R6
- 0x7C1C0000, // 000D CALL R7 0
- 0x94200F06, // 000E GETIDX R8 R7 K6
- 0x1C201107, // 000F EQ R8 R8 K7
- 0x78220000, // 0010 JMPF R8 #0012
- 0x7001FFF9, // 0011 JMP #000C
- 0x94200207, // 0012 GETIDX R8 R1 R7
- 0x60240004, // 0013 GETGBL R9 G4
- 0x5C281000, // 0014 MOVE R10 R8
- 0x7C240200, // 0015 CALL R9 1
- 0x1C241301, // 0016 EQ R9 R9 K1
- 0x78260027, // 0017 JMPF R9 #0040
- 0x8C240708, // 0018 GETMET R9 R3 K8
- 0x5C2C1000, // 0019 MOVE R11 R8
- 0x58300009, // 001A LDCONST R12 K9
- 0x7C240600, // 001B CALL R9 3
- 0x1C241306, // 001C EQ R9 R9 K6
- 0x7826000A, // 001D JMPF R9 #0029
- 0x8C24090A, // 001E GETMET R9 R4 K10
- 0x5C2C0A00, // 001F MOVE R11 R5
- 0x5C300E00, // 0020 MOVE R12 R7
- 0x60340015, // 0021 GETGBL R13 G21
- 0x7C340000, // 0022 CALL R13 0
- 0x8C341B0B, // 0023 GETMET R13 R13 K11
- 0x403E190D, // 0024 CONNECT R15 K12 K13
- 0x943C100F, // 0025 GETIDX R15 R8 R15
- 0x7C340400, // 0026 CALL R13 2
- 0x7C240800, // 0027 CALL R9 4
- 0x70020015, // 0028 JMP #003F
- 0x8C240708, // 0029 GETMET R9 R3 K8
- 0x5C2C1000, // 002A MOVE R11 R8
- 0x5830000E, // 002B LDCONST R12 K14
- 0x7C240600, // 002C CALL R9 3
- 0x1C241306, // 002D EQ R9 R9 K6
- 0x7826000A, // 002E JMPF R9 #003A
- 0x8C24090A, // 002F GETMET R9 R4 K10
- 0x5C2C0A00, // 0030 MOVE R11 R5
- 0x5C300E00, // 0031 MOVE R12 R7
- 0x60340015, // 0032 GETGBL R13 G21
- 0x7C340000, // 0033 CALL R13 0
- 0x8C341B0F, // 0034 GETMET R13 R13 K15
- 0x403E190D, // 0035 CONNECT R15 K12 K13
- 0x943C100F, // 0036 GETIDX R15 R8 R15
- 0x7C340400, // 0037 CALL R13 2
- 0x7C240800, // 0038 CALL R9 4
- 0x70020004, // 0039 JMP #003F
- 0x8C24090A, // 003A GETMET R9 R4 K10
- 0x5C2C0A00, // 003B MOVE R11 R5
- 0x5C300E00, // 003C MOVE R12 R7
- 0x5C341000, // 003D MOVE R13 R8
- 0x7C240800, // 003E CALL R9 4
- 0x70020004, // 003F JMP #0045
- 0x8C24090A, // 0040 GETMET R9 R4 K10
- 0x5C2C0A00, // 0041 MOVE R11 R5
- 0x5C300E00, // 0042 MOVE R12 R7
- 0x5C341000, // 0043 MOVE R13 R8
- 0x7C240800, // 0044 CALL R9 4
- 0x7001FFC5, // 0045 JMP #000C
- 0x58180010, // 0046 LDCONST R6 K16
- 0xAC180200, // 0047 CATCH R6 1 0
- 0xB0080000, // 0048 RAISE 2 R0 R0
- 0x8C180B11, // 0049 GETMET R6 R5 K17
- 0x7C180200, // 004A CALL R6 1
- 0x80040A00, // 004B RET 1 R5
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** 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
-********************************************************************/
-extern const bclass be_class_Matter_Expirable;
-be_local_class(Matter_Fabric,
- 20,
- &be_class_Matter_Expirable,
- be_nested_map(49,
- ( (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(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(get_ca_pub, -1), be_const_closure(Matter_Fabric_get_ca_pub_closure) },
- { be_const_key_weak(root_ca_certificate, -1), be_const_var(6) },
- })),
- be_str_weak(Matter_Fabric)
-);
-/*******************************************************************/
-
-void be_load_Matter_Fabric_class(bvm *vm) {
- be_pushntvclass(vm, &be_class_Matter_Fabric);
- be_setglobal(vm, "Matter_Fabric");
- be_pop(vm, 1);
-}
-
extern const bclass be_class_Matter_Session;
/********************************************************************
-** Solidified function: before_remove
+** Solidified function: get_i2r
********************************************************************/
-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_fabric
-********************************************************************/
-be_local_closure(Matter_Session_get_fabric, /* name */
+be_local_closure(Matter_Session_get_i2r, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -1375,163 +20,9 @@ be_local_closure(Matter_Session_get_fabric, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_weak(_fabric),
+ /* K0 */ be_nested_str_weak(i2rkey),
}),
- 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: 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: counter_snd_next
-********************************************************************/
-be_local_closure(Matter_Session_counter_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_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_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_snd),
- /* K12 */ be_nested_str_weak(_COUNTER_SND_INCR),
- /* K13 */ be_nested_str_weak(does_persist),
- /* K14 */ be_nested_str_weak(save),
- }),
- be_str_weak(counter_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
-********************************************************************/
-be_local_closure(Matter_Session_get_ca, /* name */
- be_nested_proto(
- 2, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_weak(_fabric),
- /* K1 */ be_nested_str_weak(root_ca_certificate),
- }),
- be_str_weak(get_ca),
- &be_const_str_solidified,
- ( &(const binstruction[ 3]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x88040301, // 0001 GETMBR R1 R1 K1
- 0x80040200, // 0002 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: get_mode
-********************************************************************/
-be_local_closure(Matter_Session_get_mode, /* 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(mode),
- }),
- be_str_weak(get_mode),
+ be_str_weak(get_i2r),
&be_const_str_solidified,
( &(const binstruction[ 2]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
@@ -1729,118 +220,9 @@ be_local_closure(Matter_Session_assign_fabric_index, /* name */
/********************************************************************
-** Solidified function: gen_CSR
+** Solidified function: persist_to_fabric
********************************************************************/
-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: fabric_candidate
-********************************************************************/
-be_local_closure(Matter_Session_fabric_candidate, /* name */
+be_local_closure(Matter_Session_persist_to_fabric, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -1850,27 +232,18 @@ be_local_closure(Matter_Session_fabric_candidate, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
+ ( &(const bvalue[ 2]) { /* 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),
+ /* K1 */ be_nested_str_weak(add_session),
}),
- be_str_weak(fabric_candidate),
+ be_str_weak(persist_to_fabric),
&be_const_str_solidified,
- ( &(const binstruction[11]) { /* code */
+ ( &(const binstruction[ 5]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x8C040301, // 0001 GETMET R1 R1 K1
- 0x540E0077, // 0002 LDINT R3 120
+ 0x5C0C0000, // 0002 MOVE R3 R0
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
+ 0x80000000, // 0004 RET 0
})
)
);
@@ -1878,216 +251,9 @@ be_local_closure(Matter_Session_fabric_candidate, /* name */
/********************************************************************
-** Solidified function: close
+** Solidified function: set_mode_PASE
********************************************************************/
-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: 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_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
- 0x80040200, // 0001 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: set_mode_CASE
-********************************************************************/
-be_local_closure(Matter_Session_set_mode_CASE, /* name */
+be_local_closure(Matter_Session_set_mode_PASE, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -2099,9 +265,9 @@ be_local_closure(Matter_Session_set_mode_CASE, /* name */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
/* K0 */ be_nested_str_weak(set_mode),
- /* K1 */ be_nested_str_weak(_CASE),
+ /* K1 */ be_nested_str_weak(_PASE),
}),
- be_str_weak(set_mode_CASE),
+ be_str_weak(set_mode_PASE),
&be_const_str_solidified,
( &(const binstruction[ 4]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
@@ -2114,41 +280,6 @@ be_local_closure(Matter_Session_set_mode_CASE, /* name */
/*******************************************************************/
-/********************************************************************
-** 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_fabric_label
********************************************************************/
@@ -2178,63 +309,6 @@ be_local_closure(Matter_Session_get_fabric_label, /* name */
/*******************************************************************/
-/********************************************************************
-** Solidified function: save
-********************************************************************/
-be_local_closure(Matter_Session_save, /* 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(_store),
- /* K1 */ be_nested_str_weak(save_fabrics),
- }),
- be_str_weak(save),
- &be_const_str_solidified,
- ( &(const binstruction[ 4]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x8C040301, // 0001 GETMET R1 R1 K1
- 0x7C040200, // 0002 CALL R1 1
- 0x80000000, // 0003 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: 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: get_device_id
********************************************************************/
@@ -2265,28 +339,148 @@ be_local_closure(Matter_Session_get_device_id, /* name */
/********************************************************************
-** Solidified function: set_ipk_epoch_key
+** Solidified function: get_r2i
********************************************************************/
-be_local_closure(Matter_Session_set_ipk_epoch_key, /* name */
+be_local_closure(Matter_Session_get_r2i, /* name */
be_nested_proto(
- 3, /* nstack */
- 2, /* 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[ 2]) { /* constants */
- /* K0 */ be_nested_str_weak(_fabric),
- /* K1 */ be_nested_str_weak(ipk_epoch_key),
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str_weak(r2ikey),
}),
- be_str_weak(set_ipk_epoch_key),
+ be_str_weak(get_r2i),
&be_const_str_solidified,
- ( &(const binstruction[ 3]) { /* code */
- 0x88080100, // 0000 GETMBR R2 R0 K0
- 0x900A0201, // 0001 SETMBR R2 K1 R1
- 0x80000000, // 0002 RET 0
+ ( &(const binstruction[ 2]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x80040200, // 0001 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(Matter_Session_init, /* name */
+ be_nested_proto(
+ 10, /* nstack */
+ 5, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[24]) { /* constants */
+ /* K0 */ be_nested_str_weak(crypto),
+ /* K1 */ be_nested_str_weak(_store),
+ /* K2 */ be_nested_str_weak(mode),
+ /* K3 */ be_const_int(0),
+ /* K4 */ be_nested_str_weak(local_session_id),
+ /* K5 */ be_nested_str_weak(initiator_session_id),
+ /* K6 */ be_nested_str_weak(_counter_snd_impl),
+ /* K7 */ be_nested_str_weak(matter),
+ /* K8 */ be_nested_str_weak(Counter),
+ /* K9 */ be_nested_str_weak(_counter_rcv_impl),
+ /* K10 */ be_nested_str_weak(counter_rcv),
+ /* K11 */ be_nested_str_weak(counter_snd),
+ /* K12 */ be_nested_str_weak(next),
+ /* K13 */ be_nested_str_weak(_COUNTER_SND_INCR),
+ /* K14 */ be_nested_str_weak(_counter_insecure_rcv),
+ /* K15 */ be_nested_str_weak(_counter_insecure_snd),
+ /* K16 */ be_nested_str_weak(_breadcrumb),
+ /* K17 */ be_nested_str_weak(_exchange_id),
+ /* K18 */ be_nested_str_weak(random),
+ /* 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),
+ }),
+ be_str_weak(init),
+ &be_const_str_solidified,
+ ( &(const binstruction[47]) { /* code */
+ 0xA4160000, // 0000 IMPORT R5 K0
+ 0x90020201, // 0001 SETMBR R0 K1 R1
+ 0x90020503, // 0002 SETMBR R0 K2 K3
+ 0x90020802, // 0003 SETMBR R0 K4 R2
+ 0x90020A03, // 0004 SETMBR R0 K5 R3
+ 0xB81A0E00, // 0005 GETNGBL R6 K7
+ 0x8C180D08, // 0006 GETMET R6 R6 K8
+ 0x7C180200, // 0007 CALL R6 1
+ 0x90020C06, // 0008 SETMBR R0 K6 R6
+ 0xB81A0E00, // 0009 GETNGBL R6 K7
+ 0x8C180D08, // 000A GETMET R6 R6 K8
+ 0x7C180200, // 000B CALL R6 1
+ 0x90021206, // 000C SETMBR R0 K9 R6
+ 0x90021503, // 000D SETMBR R0 K10 K3
+ 0x88180106, // 000E GETMBR R6 R0 K6
+ 0x8C180D0C, // 000F GETMET R6 R6 K12
+ 0x7C180200, // 0010 CALL R6 1
+ 0x881C010D, // 0011 GETMBR R7 R0 K13
+ 0x00180C07, // 0012 ADD R6 R6 R7
+ 0x90021606, // 0013 SETMBR R0 K11 R6
+ 0xB81A0E00, // 0014 GETNGBL R6 K7
+ 0x8C180D08, // 0015 GETMET R6 R6 K8
+ 0x7C180200, // 0016 CALL R6 1
+ 0x90021C06, // 0017 SETMBR R0 K14 R6
+ 0xB81A0E00, // 0018 GETNGBL R6 K7
+ 0x8C180D08, // 0019 GETMET R6 R6 K8
+ 0x7C180200, // 001A CALL R6 1
+ 0x90021E06, // 001B SETMBR R0 K15 R6
+ 0x90022103, // 001C SETMBR R0 K16 K3
+ 0x8C180B12, // 001D GETMET R6 R5 K18
+ 0x58200013, // 001E LDCONST R8 K19
+ 0x7C180400, // 001F CALL R6 2
+ 0x8C180D14, // 0020 GETMET R6 R6 K20
+ 0x58200003, // 0021 LDCONST R8 K3
+ 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
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_mode
+********************************************************************/
+be_local_closure(Matter_Session_get_mode, /* 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(mode),
+ }),
+ be_str_weak(get_mode),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 2]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x80040200, // 0001 RET 1 R1
})
)
);
@@ -2409,135 +603,6 @@ be_local_closure(Matter_Session_fromjson, /* name */
/*******************************************************************/
-/********************************************************************
-** Solidified function: init
-********************************************************************/
-be_local_closure(Matter_Session_init, /* name */
- be_nested_proto(
- 10, /* nstack */
- 5, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[24]) { /* constants */
- /* K0 */ be_nested_str_weak(crypto),
- /* K1 */ be_nested_str_weak(_store),
- /* K2 */ be_nested_str_weak(mode),
- /* K3 */ be_const_int(0),
- /* K4 */ be_nested_str_weak(local_session_id),
- /* K5 */ be_nested_str_weak(initiator_session_id),
- /* K6 */ be_nested_str_weak(_counter_snd_impl),
- /* K7 */ be_nested_str_weak(matter),
- /* K8 */ be_nested_str_weak(Counter),
- /* K9 */ be_nested_str_weak(_counter_rcv_impl),
- /* K10 */ be_nested_str_weak(counter_rcv),
- /* K11 */ be_nested_str_weak(counter_snd),
- /* K12 */ be_nested_str_weak(next),
- /* K13 */ be_nested_str_weak(_COUNTER_SND_INCR),
- /* K14 */ be_nested_str_weak(_counter_insecure_rcv),
- /* K15 */ be_nested_str_weak(_counter_insecure_snd),
- /* K16 */ be_nested_str_weak(_breadcrumb),
- /* K17 */ be_nested_str_weak(_exchange_id),
- /* K18 */ be_nested_str_weak(random),
- /* 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),
- }),
- be_str_weak(init),
- &be_const_str_solidified,
- ( &(const binstruction[47]) { /* code */
- 0xA4160000, // 0000 IMPORT R5 K0
- 0x90020201, // 0001 SETMBR R0 K1 R1
- 0x90020503, // 0002 SETMBR R0 K2 K3
- 0x90020802, // 0003 SETMBR R0 K4 R2
- 0x90020A03, // 0004 SETMBR R0 K5 R3
- 0xB81A0E00, // 0005 GETNGBL R6 K7
- 0x8C180D08, // 0006 GETMET R6 R6 K8
- 0x7C180200, // 0007 CALL R6 1
- 0x90020C06, // 0008 SETMBR R0 K6 R6
- 0xB81A0E00, // 0009 GETNGBL R6 K7
- 0x8C180D08, // 000A GETMET R6 R6 K8
- 0x7C180200, // 000B CALL R6 1
- 0x90021206, // 000C SETMBR R0 K9 R6
- 0x90021503, // 000D SETMBR R0 K10 K3
- 0x88180106, // 000E GETMBR R6 R0 K6
- 0x8C180D0C, // 000F GETMET R6 R6 K12
- 0x7C180200, // 0010 CALL R6 1
- 0x881C010D, // 0011 GETMBR R7 R0 K13
- 0x00180C07, // 0012 ADD R6 R6 R7
- 0x90021606, // 0013 SETMBR R0 K11 R6
- 0xB81A0E00, // 0014 GETNGBL R6 K7
- 0x8C180D08, // 0015 GETMET R6 R6 K8
- 0x7C180200, // 0016 CALL R6 1
- 0x90021C06, // 0017 SETMBR R0 K14 R6
- 0xB81A0E00, // 0018 GETNGBL R6 K7
- 0x8C180D08, // 0019 GETMET R6 R6 K8
- 0x7C180200, // 001A CALL R6 1
- 0x90021E06, // 001B SETMBR R0 K15 R6
- 0x90022103, // 001C SETMBR R0 K16 K3
- 0x8C180B12, // 001D GETMET R6 R5 K18
- 0x58200013, // 001E LDCONST R8 K19
- 0x7C180400, // 001F CALL R6 2
- 0x8C180D14, // 0020 GETMET R6 R6 K20
- 0x58200003, // 0021 LDCONST R8 K3
- 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
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: update
-********************************************************************/
-be_local_closure(Matter_Session_update, /* name */
- be_nested_proto(
- 3, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_str_weak(last_used),
- /* K1 */ be_nested_str_weak(tasmota),
- /* K2 */ be_nested_str_weak(rtc),
- /* K3 */ be_nested_str_weak(utc),
- }),
- be_str_weak(update),
- &be_const_str_solidified,
- ( &(const binstruction[ 6]) { /* code */
- 0xB8060200, // 0000 GETNGBL R1 K1
- 0x8C040302, // 0001 GETMET R1 R1 K2
- 0x7C040200, // 0002 CALL R1 1
- 0x94040303, // 0003 GETIDX R1 R1 K3
- 0x90020001, // 0004 SETMBR R0 K0 R1
- 0x80000000, // 0005 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
/********************************************************************
** Solidified function: is_PASE
********************************************************************/
@@ -2569,9 +634,9 @@ be_local_closure(Matter_Session_is_PASE, /* name */
/********************************************************************
-** Solidified function: get_i2r
+** Solidified function: get_admin_subject
********************************************************************/
-be_local_closure(Matter_Session_get_i2r, /* name */
+be_local_closure(Matter_Session_get_admin_subject, /* name */
be_nested_proto(
2, /* nstack */
1, /* argc */
@@ -2581,14 +646,46 @@ be_local_closure(Matter_Session_get_i2r, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_weak(i2rkey),
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str_weak(_fabric),
+ /* K1 */ be_nested_str_weak(admin_subject),
}),
- be_str_weak(get_i2r),
+ be_str_weak(get_admin_subject),
&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: save
+********************************************************************/
+be_local_closure(Matter_Session_save, /* 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(_store),
+ /* K1 */ be_nested_str_weak(save_fabrics),
+ }),
+ be_str_weak(save),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 4]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x80000000, // 0003 RET 0
})
)
);
@@ -2625,147 +722,11 @@ be_local_closure(Matter_Session_get_ipk_epoch_key, /* name */
/********************************************************************
-** Solidified function: set_admin_subject_vendor
+** Solidified function: is_CASE
********************************************************************/
-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: 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_local_closure(Matter_Session_is_CASE, /* 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_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: get_icac
-********************************************************************/
-be_local_closure(Matter_Session_get_icac, /* name */
- be_nested_proto(
- 2, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@@ -2774,15 +735,16 @@ be_local_closure(Matter_Session_get_icac, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_weak(_fabric),
- /* K1 */ be_nested_str_weak(icac),
+ /* K0 */ be_nested_str_weak(mode),
+ /* K1 */ be_nested_str_weak(_CASE),
}),
- be_str_weak(get_icac),
+ be_str_weak(is_CASE),
&be_const_str_solidified,
- ( &(const binstruction[ 3]) { /* code */
+ ( &(const binstruction[ 4]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
- 0x88040301, // 0001 GETMBR R1 R1 K1
- 0x80040200, // 0002 RET 1 R1
+ 0x88080101, // 0001 GETMBR R2 R0 K1
+ 0x1C040202, // 0002 EQ R1 R1 R2
+ 0x80040200, // 0003 RET 1 R1
})
)
);
@@ -2790,9 +752,9 @@ be_local_closure(Matter_Session_get_icac, /* name */
/********************************************************************
-** Solidified function: set_mode_PASE
+** Solidified function: fabric_candidate
********************************************************************/
-be_local_closure(Matter_Session_set_mode_PASE, /* name */
+be_local_closure(Matter_Session_fabric_candidate, /* name */
be_nested_proto(
4, /* nstack */
1, /* argc */
@@ -2802,46 +764,27 @@ be_local_closure(Matter_Session_set_mode_PASE, /* name */
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_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 */
+ ( &(const bvalue[ 5]) { /* constants */
/* K0 */ be_nested_str_weak(_fabric),
- /* K1 */ be_nested_str_weak(admin_subject),
+ /* 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),
}),
- be_str_weak(get_admin_subject),
+ be_str_weak(fabric_candidate),
&be_const_str_solidified,
- ( &(const binstruction[ 3]) { /* code */
+ ( &(const binstruction[11]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
- 0x88040301, // 0001 GETMBR R1 R1 K1
- 0x80040200, // 0002 RET 1 R1
+ 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
})
)
);
@@ -2908,6 +851,653 @@ be_local_closure(Matter_Session_get_ipk_group_key, /* name */
/*******************************************************************/
+/********************************************************************
+** 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: fabric_completed
+********************************************************************/
+be_local_closure(Matter_Session_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[ 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),
+ }),
+ be_str_weak(fabric_completed),
+ &be_const_str_solidified,
+ ( &(const binstruction[14]) { /* 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
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: counter_snd_next
+********************************************************************/
+be_local_closure(Matter_Session_counter_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_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_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_snd),
+ /* K12 */ be_nested_str_weak(_COUNTER_SND_INCR),
+ /* K13 */ be_nested_str_weak(does_persist),
+ /* K14 */ be_nested_str_weak(save),
+ }),
+ be_str_weak(counter_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_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
********************************************************************/
@@ -2939,11 +1529,11 @@ be_local_closure(Matter_Session_get_ca_pub, /* name */
/********************************************************************
-** Solidified function: is_CASE
+** Solidified function: close
********************************************************************/
-be_local_closure(Matter_Session_is_CASE, /* name */
+be_local_closure(Matter_Session_close, /* name */
be_nested_proto(
- 3, /* nstack */
+ 8, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@@ -2951,17 +1541,93 @@ be_local_closure(Matter_Session_is_CASE, /* name */
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),
+ ( &(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(is_CASE),
+ be_str_weak(close),
&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[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
})
)
);
@@ -2997,6 +1663,257 @@ be_local_closure(Matter_Session_get_fabric_compressed, /* name */
/*******************************************************************/
+/********************************************************************
+** 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
********************************************************************/
@@ -3068,327 +1985,101 @@ be_local_closure(Matter_Session_set_noc, /* name */
/*******************************************************************/
-/********************************************************************
-** Solidified function: get_i2r_privacy
-********************************************************************/
-be_local_closure(Matter_Session_get_i2r_privacy, /* name */
- be_nested_proto(
- 9, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_nested_str_weak(_i2r_privacy),
- /* K1 */ be_nested_str_weak(crypto),
- /* K2 */ be_nested_str_weak(HKDF_SHA256),
- /* K3 */ be_nested_str_weak(derive),
- /* K4 */ be_nested_str_weak(get_i2r),
- /* K5 */ be_nested_str_weak(fromstring),
- /* K6 */ be_nested_str_weak(PrivacyKey),
- }),
- be_str_weak(get_i2r_privacy),
- &be_const_str_solidified,
- ( &(const binstruction[22]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x4C080000, // 0001 LDNIL R2
- 0x1C040202, // 0002 EQ R1 R1 R2
- 0x7806000F, // 0003 JMPF R1 #0014
- 0xA4060200, // 0004 IMPORT R1 K1
- 0x8C080302, // 0005 GETMET R2 R1 K2
- 0x7C080200, // 0006 CALL R2 1
- 0x8C080503, // 0007 GETMET R2 R2 K3
- 0x8C100104, // 0008 GETMET R4 R0 K4
- 0x7C100200, // 0009 CALL R4 1
- 0x60140015, // 000A GETGBL R5 G21
- 0x7C140000, // 000B CALL R5 0
- 0x60180015, // 000C GETGBL R6 G21
- 0x7C180000, // 000D CALL R6 0
- 0x8C180D05, // 000E GETMET R6 R6 K5
- 0x58200006, // 000F LDCONST R8 K6
- 0x7C180400, // 0010 CALL R6 2
- 0x541E000F, // 0011 LDINT R7 16
- 0x7C080A00, // 0012 CALL R2 5
- 0x90020002, // 0013 SETMBR R0 K0 R2
- 0x88040100, // 0014 GETMBR R1 R0 K0
- 0x80040200, // 0015 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: 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: 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: fabric_completed
-********************************************************************/
-be_local_closure(Matter_Session_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[ 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),
- }),
- be_str_weak(fabric_completed),
- &be_const_str_solidified,
- ( &(const binstruction[14]) { /* 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: 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: 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 class: Matter_Session
********************************************************************/
extern const bclass be_class_Matter_Expirable;
be_local_class(Matter_Session,
- 31,
+ 36,
&be_class_Matter_Expirable,
- be_nested_map(81,
+ be_nested_map(86,
( (struct bmapnode*) &(const bmapnode[]) {
- { be_const_key_weak(_counter_insecure_snd, -1), be_const_var(19) },
- { be_const_key_weak(_source_node_id, -1), be_const_var(7) },
- { be_const_key_weak(get_fabric, -1), be_const_closure(Matter_Session_get_fabric_closure) },
- { be_const_key_weak(_i2r_privacy, -1), be_const_var(22) },
- { be_const_key_weak(get_pk, -1), be_const_closure(Matter_Session_get_pk_closure) },
- { be_const_key_weak(counter_snd_next, -1), be_const_closure(Matter_Session_counter_snd_next_closure) },
- { be_const_key_weak(attestation_challenge, -1), be_const_var(23) },
- { be_const_key_weak(close, -1), be_const_closure(Matter_Session_close_closure) },
- { be_const_key_weak(before_remove, 0), be_const_closure(Matter_Session_before_remove_closure) },
- { be_const_key_weak(initiator_session_id, 69), be_const_var(4) },
- { be_const_key_weak(_exchange_id, 33), be_const_var(14) },
- { be_const_key_weak(get_ca, -1), be_const_closure(Matter_Session_get_ca_closure) },
- { be_const_key_weak(save, -1), be_const_closure(Matter_Session_save_closure) },
- { be_const_key_weak(get_admin_vendor, -1), be_const_closure(Matter_Session_get_admin_vendor_closure) },
- { be_const_key_weak(tojson, -1), be_const_closure(Matter_Session_tojson_closure) },
- { be_const_key_weak(assign_fabric_index, -1), be_const_closure(Matter_Session_assign_fabric_index_closure) },
- { be_const_key_weak(gen_CSR, -1), be_const_closure(Matter_Session_gen_CSR_closure) },
- { be_const_key_weak(peer_node_id, -1), be_const_var(24) },
- { be_const_key_weak(fabric_candidate, 74), be_const_closure(Matter_Session_fabric_candidate_closure) },
+ { 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(resumption_id, -1), be_const_var(26) },
- { be_const_key_weak(_fabric, 7), be_const_var(2) },
- { be_const_key_weak(set_keys, -1), be_const_closure(Matter_Session_set_keys_closure) },
- { be_const_key_weak(get_i2r_privacy, 40), be_const_closure(Matter_Session_get_i2r_privacy_closure) },
- { be_const_key_weak(hydrate_post, 46), be_const_closure(Matter_Session_hydrate_post_closure) },
- { be_const_key_weak(set_ipk_epoch_key, 79), be_const_closure(Matter_Session_set_ipk_epoch_key_closure) },
- { be_const_key_weak(set_mode, 35), be_const_closure(Matter_Session_set_mode_closure) },
- { be_const_key_weak(__future_local_session_id, 12), be_const_var(9) },
- { be_const_key_weak(set_mode_CASE, 70), be_const_closure(Matter_Session_set_mode_CASE_closure) },
- { be_const_key_weak(set_fabric_label, -1), be_const_closure(Matter_Session_set_fabric_label_closure) },
- { be_const_key_weak(get_fabric_label, 44), be_const_closure(Matter_Session_get_fabric_label_closure) },
- { be_const_key_weak(init, -1), be_const_closure(Matter_Session_init_closure) },
- { be_const_key_weak(update, -1), be_const_closure(Matter_Session_update_closure) },
- { be_const_key_weak(get_fabric_compressed, -1), be_const_closure(Matter_Session_get_fabric_compressed_closure) },
- { be_const_key_weak(get_ac, 32), be_const_closure(Matter_Session_get_ac_closure) },
- { be_const_key_weak(_CASE, 41), be_const_int(2) },
- { be_const_key_weak(get_device_id, -1), be_const_closure(Matter_Session_get_device_id_closure) },
- { be_const_key_weak(persist_to_fabric, 25), be_const_closure(Matter_Session_persist_to_fabric_closure) },
- { be_const_key_weak(fromjson, -1), be_const_static_closure(Matter_Session_fromjson_closure) },
- { be_const_key_weak(local_session_id, 4), be_const_var(3) },
- { be_const_key_weak(set_admin_subject_vendor, -1), be_const_closure(Matter_Session_set_admin_subject_vendor_closure) },
- { be_const_key_weak(get_fabric_id, -1), be_const_closure(Matter_Session_get_fabric_id_closure) },
- { be_const_key_weak(is_PASE, -1), be_const_closure(Matter_Session_is_PASE_closure) },
- { be_const_key_weak(get_icac, -1), be_const_closure(Matter_Session_get_icac_closure) },
- { be_const_key_weak(shared_secret, -1), be_const_var(27) },
+ { 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(get_ca_pub, 31), be_const_closure(Matter_Session_get_ca_pub_closure) },
- { be_const_key_weak(_PASE, -1), be_const_int(1) },
- { be_const_key_weak(get_ipk_epoch_key, -1), be_const_closure(Matter_Session_get_ipk_epoch_key_closure) },
- { be_const_key_weak(get_i2r, 23), be_const_closure(Matter_Session_get_i2r_closure) },
- { be_const_key_weak(r2ikey, 65), be_const_var(21) },
- { be_const_key_weak(__Msg1, -1), be_const_var(28) },
- { be_const_key_weak(counter_rcv, -1), be_const_var(10) },
- { be_const_key_weak(_port, -1), be_const_var(16) },
- { be_const_key_weak(set_ca, -1), be_const_closure(Matter_Session_set_ca_closure) },
- { be_const_key_weak(_COUNTER_SND_INCR, -1), be_const_int(1024) },
- { be_const_key_weak(set_fabric_device, -1), be_const_closure(Matter_Session_set_fabric_device_closure) },
- { be_const_key_weak(get_r2i, 43), be_const_closure(Matter_Session_get_r2i_closure) },
- { be_const_key_weak(get_admin_subject, -1), be_const_closure(Matter_Session_get_admin_subject_closure) },
- { be_const_key_weak(__Msg2, -1), be_const_var(29) },
- { be_const_key_weak(_counter_insecure_rcv, 64), be_const_var(18) },
- { be_const_key_weak(_message_handler, 58), be_const_var(17) },
- { be_const_key_weak(get_ipk_group_key, -1), be_const_closure(Matter_Session_get_ipk_group_key_closure) },
- { be_const_key_weak(_ip, 53), be_const_var(15) },
- { be_const_key_weak(set_mode_PASE, -1), be_const_closure(Matter_Session_set_mode_PASE_closure) },
- { be_const_key_weak(_store, -1), be_const_var(0) },
- { be_const_key_weak(mode, -1), be_const_var(1) },
- { be_const_key_weak(is_CASE, -1), be_const_closure(Matter_Session_is_CASE_closure) },
- { be_const_key_weak(__future_initiator_session_id, -1), be_const_var(8) },
- { be_const_key_weak(i2rkey, -1), be_const_var(20) },
- { be_const_key_weak(counter_snd, -1), be_const_var(11) },
- { be_const_key_weak(counter_rcv_validate, -1), be_const_closure(Matter_Session_counter_rcv_validate_closure) },
- { be_const_key_weak(last_used, -1), be_const_var(6) },
- { be_const_key_weak(set_noc, -1), be_const_closure(Matter_Session_set_noc_closure) },
{ be_const_key_weak(_counter_snd_impl, -1), be_const_var(13) },
- { be_const_key_weak(_counter_rcv_impl, 22), be_const_var(12) },
- { be_const_key_weak(get_mode, 13), be_const_closure(Matter_Session_get_mode_closure) },
- { be_const_key_weak(__chunked_attr_reports, -1), be_const_var(30) },
- { be_const_key_weak(fabric_completed, -1), be_const_closure(Matter_Session_fabric_completed_closure) },
- { be_const_key_weak(created, -1), be_const_var(5) },
+ { 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(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(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(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_fabric, -1), be_const_closure(Matter_Session_get_fabric_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_str_weak(Matter_Session)
);
@@ -3399,1393 +2090,5 @@ void be_load_Matter_Session_class(bvm *vm) {
be_setglobal(vm, "Matter_Session");
be_pop(vm, 1);
}
-
-extern const bclass be_class_Matter_Session_Store;
-
-/********************************************************************
-** Solidified function: gen_local_session_id
-********************************************************************/
-be_local_closure(Matter_Session_Store_gen_local_session_id, /* name */
- be_nested_proto(
- 6, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_str_weak(crypto),
- /* K1 */ be_nested_str_weak(random),
- /* K2 */ be_const_int(2),
- /* K3 */ be_nested_str_weak(get),
- /* K4 */ be_const_int(0),
- /* K5 */ be_nested_str_weak(get_session_by_local_session_id),
- }),
- be_str_weak(gen_local_session_id),
- &be_const_str_solidified,
- ( &(const binstruction[19]) { /* code */
- 0xA4060000, // 0000 IMPORT R1 K0
- 0x50080200, // 0001 LDBOOL R2 1 0
- 0x780A000E, // 0002 JMPF R2 #0012
- 0x8C080301, // 0003 GETMET R2 R1 K1
- 0x58100002, // 0004 LDCONST R4 K2
- 0x7C080400, // 0005 CALL R2 2
- 0x8C080503, // 0006 GETMET R2 R2 K3
- 0x58100004, // 0007 LDCONST R4 K4
- 0x58140002, // 0008 LDCONST R5 K2
- 0x7C080600, // 0009 CALL R2 3
- 0x8C0C0105, // 000A GETMET R3 R0 K5
- 0x5C140400, // 000B MOVE R5 R2
- 0x7C0C0400, // 000C CALL R3 2
- 0x4C100000, // 000D LDNIL R4
- 0x1C0C0604, // 000E EQ R3 R3 R4
- 0x780E0000, // 000F JMPF R3 #0011
- 0x80040400, // 0010 RET 1 R2
- 0x7001FFEE, // 0011 JMP #0001
- 0x80000000, // 0012 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_redundant_fabric
-********************************************************************/
-be_local_closure(Matter_Session_Store_remove_redundant_fabric, /* name */
- be_nested_proto(
- 7, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_const_int(0),
- /* K1 */ be_nested_str_weak(fabrics),
- /* K2 */ be_nested_str_weak(fabric_id),
- /* K3 */ be_nested_str_weak(device_id),
- /* K4 */ be_nested_str_weak(remove),
- /* K5 */ be_const_int(1),
- }),
- be_str_weak(remove_redundant_fabric),
- &be_const_str_solidified,
- ( &(const binstruction[26]) { /* code */
- 0x58080000, // 0000 LDCONST R2 K0
- 0x600C000C, // 0001 GETGBL R3 G12
- 0x88100101, // 0002 GETMBR R4 R0 K1
- 0x7C0C0200, // 0003 CALL R3 1
- 0x140C0403, // 0004 LT R3 R2 R3
- 0x780E0012, // 0005 JMPF R3 #0019
- 0x880C0101, // 0006 GETMBR R3 R0 K1
- 0x940C0602, // 0007 GETIDX R3 R3 R2
- 0x20100601, // 0008 NE R4 R3 R1
- 0x7812000C, // 0009 JMPF R4 #0017
- 0x88100702, // 000A GETMBR R4 R3 K2
- 0x88140302, // 000B GETMBR R5 R1 K2
- 0x1C100805, // 000C EQ R4 R4 R5
- 0x78120008, // 000D JMPF R4 #0017
- 0x88100703, // 000E GETMBR R4 R3 K3
- 0x88140303, // 000F GETMBR R5 R1 K3
- 0x1C100805, // 0010 EQ R4 R4 R5
- 0x78120004, // 0011 JMPF R4 #0017
- 0x88100101, // 0012 GETMBR R4 R0 K1
- 0x8C100904, // 0013 GETMET R4 R4 K4
- 0x5C180400, // 0014 MOVE R6 R2
- 0x7C100400, // 0015 CALL R4 2
- 0x70020000, // 0016 JMP #0018
- 0x00080505, // 0017 ADD R2 R2 K5
- 0x7001FFE7, // 0018 JMP #0001
- 0x80000000, // 0019 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: find_session_by_resumption_id
-********************************************************************/
-be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name */
- be_nested_proto(
- 14, /* nstack */
- 2, /* 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(string),
- /* K1 */ be_const_int(0),
- /* K2 */ be_nested_str_weak(sessions),
- /* 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_X20session_X2Eresumption_id_X3D_X25s_X20vs_X20_X25s),
- /* K7 */ be_nested_str_weak(resumption_id),
- /* K8 */ be_nested_str_weak(shared_secret),
- /* K9 */ be_nested_str_weak(MTR_X3A_X20session_X2Eshared_secret_X3D_X25s),
- /* K10 */ be_nested_str_weak(update),
- /* K11 */ be_const_int(1),
- }),
- be_str_weak(find_session_by_resumption_id),
- &be_const_str_solidified,
- ( &(const binstruction[47]) { /* code */
- 0xA40A0000, // 0000 IMPORT R2 K0
- 0x5C0C0200, // 0001 MOVE R3 R1
- 0x740E0001, // 0002 JMPT R3 #0005
- 0x4C0C0000, // 0003 LDNIL R3
- 0x80040600, // 0004 RET 1 R3
- 0x580C0001, // 0005 LDCONST R3 K1
- 0x88100102, // 0006 GETMBR R4 R0 K2
- 0x6014000C, // 0007 GETGBL R5 G12
- 0x5C180800, // 0008 MOVE R6 R4
- 0x7C140200, // 0009 CALL R5 1
- 0x14140605, // 000A LT R5 R3 R5
- 0x78160021, // 000B JMPF R5 #002E
- 0x94140803, // 000C GETIDX R5 R4 R3
- 0xB81A0600, // 000D GETNGBL R6 K3
- 0x8C180D04, // 000E GETMET R6 R6 K4
- 0x8C200505, // 000F GETMET R8 R2 K5
- 0x58280006, // 0010 LDCONST R10 K6
- 0x602C0008, // 0011 GETGBL R11 G8
- 0x88300B07, // 0012 GETMBR R12 R5 K7
- 0x7C2C0200, // 0013 CALL R11 1
- 0x60300008, // 0014 GETGBL R12 G8
- 0x5C340200, // 0015 MOVE R13 R1
- 0x7C300200, // 0016 CALL R12 1
- 0x7C200800, // 0017 CALL R8 4
- 0x7C180400, // 0018 CALL R6 2
- 0x88180B07, // 0019 GETMBR R6 R5 K7
- 0x1C180C01, // 001A EQ R6 R6 R1
- 0x781A000F, // 001B JMPF R6 #002C
- 0x88180B08, // 001C GETMBR R6 R5 K8
- 0x4C1C0000, // 001D LDNIL R7
- 0x20180C07, // 001E NE R6 R6 R7
- 0x781A000B, // 001F JMPF R6 #002C
- 0xB81A0600, // 0020 GETNGBL R6 K3
- 0x8C180D04, // 0021 GETMET R6 R6 K4
- 0x8C200505, // 0022 GETMET R8 R2 K5
- 0x58280009, // 0023 LDCONST R10 K9
- 0x602C0008, // 0024 GETGBL R11 G8
- 0x88300B08, // 0025 GETMBR R12 R5 K8
- 0x7C2C0200, // 0026 CALL R11 1
- 0x7C200600, // 0027 CALL R8 3
- 0x7C180400, // 0028 CALL R6 2
- 0x8C180B0A, // 0029 GETMET R6 R5 K10
- 0x7C180200, // 002A CALL R6 1
- 0x80040A00, // 002B RET 1 R5
- 0x000C070B, // 002C ADD R3 R3 K11
- 0x7001FFD8, // 002D JMP #0007
- 0x80000000, // 002E RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_fabric
-********************************************************************/
-be_local_closure(Matter_Session_Store_remove_fabric, /* name */
- be_nested_proto(
- 8, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 7]) { /* constants */
- /* K0 */ be_const_int(0),
- /* K1 */ be_nested_str_weak(sessions),
- /* K2 */ be_nested_str_weak(_fabric),
- /* K3 */ be_nested_str_weak(remove),
- /* K4 */ be_const_int(1),
- /* K5 */ be_nested_str_weak(fabrics),
- /* K6 */ be_nested_str_weak(find),
- }),
- be_str_weak(remove_fabric),
- &be_const_str_solidified,
- ( &(const binstruction[26]) { /* code */
- 0x58080000, // 0000 LDCONST R2 K0
- 0x600C000C, // 0001 GETGBL R3 G12
- 0x88100101, // 0002 GETMBR R4 R0 K1
- 0x7C0C0200, // 0003 CALL R3 1
- 0x140C0403, // 0004 LT R3 R2 R3
- 0x780E000B, // 0005 JMPF R3 #0012
- 0x880C0101, // 0006 GETMBR R3 R0 K1
- 0x940C0602, // 0007 GETIDX R3 R3 R2
- 0x880C0702, // 0008 GETMBR R3 R3 K2
- 0x1C0C0601, // 0009 EQ R3 R3 R1
- 0x780E0004, // 000A JMPF R3 #0010
- 0x880C0101, // 000B GETMBR R3 R0 K1
- 0x8C0C0703, // 000C GETMET R3 R3 K3
- 0x5C140400, // 000D MOVE R5 R2
- 0x7C0C0400, // 000E CALL R3 2
- 0x70020000, // 000F JMP #0011
- 0x00080504, // 0010 ADD R2 R2 K4
- 0x7001FFEE, // 0011 JMP #0001
- 0x880C0105, // 0012 GETMBR R3 R0 K5
- 0x8C0C0703, // 0013 GETMET R3 R3 K3
- 0x88140105, // 0014 GETMBR R5 R0 K5
- 0x8C140B06, // 0015 GETMET R5 R5 K6
- 0x5C1C0200, // 0016 MOVE R7 R1
- 0x7C140400, // 0017 CALL R5 2
- 0x7C0C0400, // 0018 CALL R3 2
- 0x80000000, // 0019 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: find_session_source_id_unsecure
-********************************************************************/
-be_local_closure(Matter_Session_Store_find_session_source_id_unsecure, /* name */
- be_nested_proto(
- 9, /* nstack */
- 3, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 9]) { /* constants */
- /* K0 */ be_nested_str_weak(get_session_by_source_node_id),
- /* K1 */ be_nested_str_weak(matter),
- /* K2 */ be_nested_str_weak(Session),
- /* K3 */ be_const_int(0),
- /* K4 */ be_nested_str_weak(_source_node_id),
- /* K5 */ be_nested_str_weak(sessions),
- /* K6 */ be_nested_str_weak(push),
- /* K7 */ be_nested_str_weak(set_expire_in_seconds),
- /* K8 */ be_nested_str_weak(update),
- }),
- be_str_weak(find_session_source_id_unsecure),
- &be_const_str_solidified,
- ( &(const binstruction[24]) { /* code */
- 0x8C0C0100, // 0000 GETMET R3 R0 K0
- 0x5C140200, // 0001 MOVE R5 R1
- 0x7C0C0400, // 0002 CALL R3 2
- 0x4C100000, // 0003 LDNIL R4
- 0x1C100604, // 0004 EQ R4 R3 R4
- 0x7812000E, // 0005 JMPF R4 #0015
- 0xB8120200, // 0006 GETNGBL R4 K1
- 0x8C100902, // 0007 GETMET R4 R4 K2
- 0x5C180000, // 0008 MOVE R6 R0
- 0x581C0003, // 0009 LDCONST R7 K3
- 0x58200003, // 000A LDCONST R8 K3
- 0x7C100800, // 000B CALL R4 4
- 0x5C0C0800, // 000C MOVE R3 R4
- 0x900E0801, // 000D SETMBR R3 K4 R1
- 0x88100105, // 000E GETMBR R4 R0 K5
- 0x8C100906, // 000F GETMET R4 R4 K6
- 0x5C180600, // 0010 MOVE R6 R3
- 0x7C100400, // 0011 CALL R4 2
- 0x8C100707, // 0012 GETMET R4 R3 K7
- 0x5C180400, // 0013 MOVE R6 R2
- 0x7C100400, // 0014 CALL R4 2
- 0x8C100708, // 0015 GETMET R4 R3 K8
- 0x7C100200, // 0016 CALL R4 1
- 0x80040600, // 0017 RET 1 R3
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: get_session_by_source_node_id
-********************************************************************/
-be_local_closure(Matter_Session_Store_get_session_by_source_node_id, /* name */
- be_nested_proto(
- 8, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_str_weak(sessions),
- /* K1 */ be_const_int(0),
- /* K2 */ be_nested_str_weak(_source_node_id),
- /* K3 */ be_nested_str_weak(update),
- /* K4 */ be_const_int(1),
- }),
- be_str_weak(get_session_by_source_node_id),
- &be_const_str_solidified,
- ( &(const binstruction[22]) { /* code */
- 0x4C080000, // 0000 LDNIL R2
- 0x1C080202, // 0001 EQ R2 R1 R2
- 0x780A0001, // 0002 JMPF R2 #0005
- 0x4C080000, // 0003 LDNIL R2
- 0x80040400, // 0004 RET 1 R2
- 0x6008000C, // 0005 GETGBL R2 G12
- 0x880C0100, // 0006 GETMBR R3 R0 K0
- 0x7C080200, // 0007 CALL R2 1
- 0x580C0001, // 0008 LDCONST R3 K1
- 0x88100100, // 0009 GETMBR R4 R0 K0
- 0x14140602, // 000A LT R5 R3 R2
- 0x78160008, // 000B JMPF R5 #0015
- 0x94140803, // 000C GETIDX R5 R4 R3
- 0x88180B02, // 000D GETMBR R6 R5 K2
- 0x1C180C01, // 000E EQ R6 R6 R1
- 0x781A0002, // 000F JMPF R6 #0013
- 0x8C180B03, // 0010 GETMET R6 R5 K3
- 0x7C180200, // 0011 CALL R6 1
- 0x80040A00, // 0012 RET 1 R5
- 0x000C0704, // 0013 ADD R3 R3 K4
- 0x7001FFF4, // 0014 JMP #000A
- 0x80000000, // 0015 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: add_session
-********************************************************************/
-be_local_closure(Matter_Session_Store_add_session, /* name */
- be_nested_proto(
- 6, /* nstack */
- 3, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_str_weak(set_expire_in_seconds),
- /* K1 */ be_nested_str_weak(sessions),
- /* K2 */ be_nested_str_weak(push),
- }),
- be_str_weak(add_session),
- &be_const_str_solidified,
- ( &(const binstruction[11]) { /* code */
- 0x4C0C0000, // 0000 LDNIL R3
- 0x200C0403, // 0001 NE R3 R2 R3
- 0x780E0002, // 0002 JMPF R3 #0006
- 0x8C0C0300, // 0003 GETMET R3 R1 K0
- 0x5C140400, // 0004 MOVE R5 R2
- 0x7C0C0400, // 0005 CALL R3 2
- 0x880C0101, // 0006 GETMBR R3 R0 K1
- 0x8C0C0702, // 0007 GETMET R3 R3 K2
- 0x5C140200, // 0008 MOVE R5 R1
- 0x7C0C0400, // 0009 CALL R3 2
- 0x80000000, // 000A RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: count_active_fabrics
-********************************************************************/
-be_local_closure(Matter_Session_Store_count_active_fabrics, /* name */
- be_nested_proto(
- 3, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_str_weak(remove_expired),
- /* K1 */ be_nested_str_weak(fabrics),
- /* K2 */ be_nested_str_weak(count_persistables),
- }),
- be_str_weak(count_active_fabrics),
- &be_const_str_solidified,
- ( &(const binstruction[ 6]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x7C040200, // 0001 CALL R1 1
- 0x88040101, // 0002 GETMBR R1 R0 K1
- 0x8C040302, // 0003 GETMET R1 R1 K2
- 0x7C040200, // 0004 CALL R1 1
- 0x80040200, // 0005 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_expired
-********************************************************************/
-be_local_closure(Matter_Session_Store_remove_expired, /* name */
- be_nested_proto(
- 3, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_str_weak(sessions),
- /* K1 */ be_nested_str_weak(every_second),
- /* K2 */ be_nested_str_weak(fabrics),
- }),
- be_str_weak(remove_expired),
- &be_const_str_solidified,
- ( &(const binstruction[ 7]) { /* code */
- 0x88040100, // 0000 GETMBR R1 R0 K0
- 0x8C040301, // 0001 GETMET R1 R1 K1
- 0x7C040200, // 0002 CALL R1 1
- 0x88040102, // 0003 GETMBR R1 R0 K2
- 0x8C040301, // 0004 GETMET R1 R1 K1
- 0x7C040200, // 0005 CALL R1 1
- 0x80000000, // 0006 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: find_children_fabrics
-********************************************************************/
-be_local_closure(Matter_Session_Store_find_children_fabrics, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 1, /* has sup protos */
- ( &(const struct bproto*[ 1]) {
- be_nested_proto(
- 7, /* nstack */
- 1, /* argc */
- 0, /* varg */
- 1, /* has upvals */
- ( &(const bupvaldesc[ 3]) { /* upvals */
- be_local_const_upval(1, 0),
- be_local_const_upval(1, 2),
- be_local_const_upval(1, 3),
- }),
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_str_weak(active_fabrics),
- /* K1 */ be_nested_str_weak(fabric_parent),
- /* K2 */ be_nested_str_weak(find),
- /* K3 */ be_nested_str_weak(fabric_index),
- /* K4 */ be_nested_str_weak(push),
- /* K5 */ be_nested_str_weak(stop_iteration),
- }),
- be_str_weak(find_children_fabrics_inner),
- &be_const_str_solidified,
- ( &(const binstruction[30]) { /* code */
- 0x60040010, // 0000 GETGBL R1 G16
- 0x68080000, // 0001 GETUPV R2 U0
- 0x8C080500, // 0002 GETMET R2 R2 K0
- 0x7C080200, // 0003 CALL R2 1
- 0x7C040200, // 0004 CALL R1 1
- 0xA8020013, // 0005 EXBLK 0 #001A
- 0x5C080200, // 0006 MOVE R2 R1
- 0x7C080000, // 0007 CALL R2 0
- 0x880C0501, // 0008 GETMBR R3 R2 K1
- 0x1C0C0600, // 0009 EQ R3 R3 R0
- 0x780E000D, // 000A JMPF R3 #0019
- 0x680C0001, // 000B GETUPV R3 U1
- 0x8C0C0702, // 000C GETMET R3 R3 K2
- 0x7C0C0200, // 000D CALL R3 1
- 0x4C100000, // 000E LDNIL R4
- 0x1C0C0604, // 000F EQ R3 R3 R4
- 0x780E0007, // 0010 JMPF R3 #0019
- 0x880C0503, // 0011 GETMBR R3 R2 K3
- 0x68100001, // 0012 GETUPV R4 U1
- 0x8C100904, // 0013 GETMET R4 R4 K4
- 0x5C180600, // 0014 MOVE R6 R3
- 0x7C100400, // 0015 CALL R4 2
- 0x68100002, // 0016 GETUPV R4 U2
- 0x5C140600, // 0017 MOVE R5 R3
- 0x7C100200, // 0018 CALL R4 1
- 0x7001FFEB, // 0019 JMP #0006
- 0x58040005, // 001A LDCONST R1 K5
- 0xAC040200, // 001B CATCH R1 1 0
- 0xB0080000, // 001C RAISE 2 R0 R0
- 0x80000000, // 001D RET 0
- })
- ),
- }),
- 0, /* has constants */
- NULL, /* no const */
- be_str_weak(find_children_fabrics),
- &be_const_str_solidified,
- ( &(const binstruction[15]) { /* code */
- 0x4C080000, // 0000 LDNIL R2
- 0x1C080202, // 0001 EQ R2 R1 R2
- 0x780A0002, // 0002 JMPF R2 #0006
- 0x60080012, // 0003 GETGBL R2 G18
- 0x7C080000, // 0004 CALL R2 0
- 0x80040400, // 0005 RET 1 R2
- 0x60080012, // 0006 GETGBL R2 G18
- 0x7C080000, // 0007 CALL R2 0
- 0x400C0401, // 0008 CONNECT R3 R2 R1
- 0x840C0000, // 0009 CLOSURE R3 P0
- 0x5C100600, // 000A MOVE R4 R3
- 0x5C140200, // 000B MOVE R5 R1
- 0x7C100200, // 000C CALL R4 1
- 0xA0000000, // 000D CLOSE R0
- 0x80040400, // 000E RET 1 R2
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: find_fabric_by_index
-********************************************************************/
-be_local_closure(Matter_Session_Store_find_fabric_by_index, /* name */
- be_nested_proto(
- 6, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_str_weak(active_fabrics),
- /* K1 */ be_nested_str_weak(get_fabric_index),
- /* K2 */ be_nested_str_weak(stop_iteration),
- }),
- be_str_weak(find_fabric_by_index),
- &be_const_str_solidified,
- ( &(const binstruction[19]) { /* code */
- 0x60080010, // 0000 GETGBL R2 G16
- 0x8C0C0100, // 0001 GETMET R3 R0 K0
- 0x7C0C0200, // 0002 CALL R3 1
- 0x7C080200, // 0003 CALL R2 1
- 0xA8020008, // 0004 EXBLK 0 #000E
- 0x5C0C0400, // 0005 MOVE R3 R2
- 0x7C0C0000, // 0006 CALL R3 0
- 0x8C100701, // 0007 GETMET R4 R3 K1
- 0x7C100200, // 0008 CALL R4 1
- 0x1C100801, // 0009 EQ R4 R4 R1
- 0x78120001, // 000A JMPF R4 #000D
- 0xA8040001, // 000B EXBLK 1 1
- 0x80040600, // 000C RET 1 R3
- 0x7001FFF6, // 000D JMP #0005
- 0x58080002, // 000E LDCONST R2 K2
- 0xAC080200, // 000F CATCH R2 1 0
- 0xB0080000, // 0010 RAISE 2 R0 R0
- 0x4C080000, // 0011 LDNIL R2
- 0x80040400, // 0012 RET 1 R2
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: next_fabric_idx
-********************************************************************/
-be_local_closure(Matter_Session_Store_next_fabric_idx, /* name */
- be_nested_proto(
- 7, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_str_weak(remove_expired),
- /* K1 */ be_const_int(1),
- /* K2 */ be_nested_str_weak(active_fabrics),
- /* K3 */ be_nested_str_weak(fabric_index),
- /* K4 */ be_nested_str_weak(int),
- /* K5 */ be_nested_str_weak(stop_iteration),
- }),
- be_str_weak(next_fabric_idx),
- &be_const_str_solidified,
- ( &(const binstruction[25]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x7C040200, // 0001 CALL R1 1
- 0x58040001, // 0002 LDCONST R1 K1
- 0x60080010, // 0003 GETGBL R2 G16
- 0x8C0C0102, // 0004 GETMET R3 R0 K2
- 0x7C0C0200, // 0005 CALL R3 1
- 0x7C080200, // 0006 CALL R2 1
- 0xA802000C, // 0007 EXBLK 0 #0015
- 0x5C0C0400, // 0008 MOVE R3 R2
- 0x7C0C0000, // 0009 CALL R3 0
- 0x88100703, // 000A GETMBR R4 R3 K3
- 0x60140004, // 000B GETGBL R5 G4
- 0x5C180800, // 000C MOVE R6 R4
- 0x7C140200, // 000D CALL R5 1
- 0x1C140B04, // 000E EQ R5 R5 K4
- 0x78160003, // 000F JMPF R5 #0014
- 0x28140801, // 0010 GE R5 R4 R1
- 0x78160001, // 0011 JMPF R5 #0014
- 0x00140901, // 0012 ADD R5 R4 K1
- 0x5C040A00, // 0013 MOVE R1 R5
- 0x7001FFF2, // 0014 JMP #0008
- 0x58080005, // 0015 LDCONST R2 K5
- 0xAC080200, // 0016 CATCH R2 1 0
- 0xB0080000, // 0017 RAISE 2 R0 R0
- 0x80040200, // 0018 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: get_session_by_local_session_id
-********************************************************************/
-be_local_closure(Matter_Session_Store_get_session_by_local_session_id, /* name */
- be_nested_proto(
- 8, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 5]) { /* constants */
- /* K0 */ be_nested_str_weak(sessions),
- /* K1 */ be_const_int(0),
- /* K2 */ be_nested_str_weak(local_session_id),
- /* K3 */ be_nested_str_weak(update),
- /* K4 */ be_const_int(1),
- }),
- be_str_weak(get_session_by_local_session_id),
- &be_const_str_solidified,
- ( &(const binstruction[22]) { /* code */
- 0x4C080000, // 0000 LDNIL R2
- 0x1C080202, // 0001 EQ R2 R1 R2
- 0x780A0001, // 0002 JMPF R2 #0005
- 0x4C080000, // 0003 LDNIL R2
- 0x80040400, // 0004 RET 1 R2
- 0x6008000C, // 0005 GETGBL R2 G12
- 0x880C0100, // 0006 GETMBR R3 R0 K0
- 0x7C080200, // 0007 CALL R2 1
- 0x580C0001, // 0008 LDCONST R3 K1
- 0x88100100, // 0009 GETMBR R4 R0 K0
- 0x14140602, // 000A LT R5 R3 R2
- 0x78160008, // 000B JMPF R5 #0015
- 0x94140803, // 000C GETIDX R5 R4 R3
- 0x88180B02, // 000D GETMBR R6 R5 K2
- 0x1C180C01, // 000E EQ R6 R6 R1
- 0x781A0002, // 000F JMPF R6 #0013
- 0x8C180B03, // 0010 GETMET R6 R5 K3
- 0x7C180200, // 0011 CALL R6 1
- 0x80040A00, // 0012 RET 1 R5
- 0x000C0704, // 0013 ADD R3 R3 K4
- 0x7001FFF4, // 0014 JMP #000A
- 0x80000000, // 0015 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: active_fabrics
-********************************************************************/
-be_local_closure(Matter_Session_Store_active_fabrics, /* name */
- be_nested_proto(
- 3, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 3]) { /* constants */
- /* K0 */ be_nested_str_weak(remove_expired),
- /* K1 */ be_nested_str_weak(fabrics),
- /* K2 */ be_nested_str_weak(persistables),
- }),
- be_str_weak(active_fabrics),
- &be_const_str_solidified,
- ( &(const binstruction[ 6]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x7C040200, // 0001 CALL R1 1
- 0x88040101, // 0002 GETMBR R1 R0 K1
- 0x8C040302, // 0003 GETMET R1 R1 K2
- 0x7C040200, // 0004 CALL R1 1
- 0x80040200, // 0005 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: every_second
-********************************************************************/
-be_local_closure(Matter_Session_Store_every_second, /* name */
- be_nested_proto(
- 3, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 1]) { /* constants */
- /* K0 */ be_nested_str_weak(remove_expired),
- }),
- be_str_weak(every_second),
- &be_const_str_solidified,
- ( &(const binstruction[ 3]) { /* code */
- 0x8C040100, // 0000 GETMET R1 R0 K0
- 0x7C040200, // 0001 CALL R1 1
- 0x80000000, // 0002 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: remove_session
-********************************************************************/
-be_local_closure(Matter_Session_Store_remove_session, /* name */
- be_nested_proto(
- 7, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_const_int(0),
- /* K1 */ be_nested_str_weak(sessions),
- /* K2 */ be_nested_str_weak(remove),
- /* K3 */ be_const_int(1),
- }),
- be_str_weak(remove_session),
- &be_const_str_solidified,
- ( &(const binstruction[17]) { /* code */
- 0x58080000, // 0000 LDCONST R2 K0
- 0x880C0101, // 0001 GETMBR R3 R0 K1
- 0x6010000C, // 0002 GETGBL R4 G12
- 0x88140101, // 0003 GETMBR R5 R0 K1
- 0x7C100200, // 0004 CALL R4 1
- 0x14100404, // 0005 LT R4 R2 R4
- 0x78120008, // 0006 JMPF R4 #0010
- 0x94100602, // 0007 GETIDX R4 R3 R2
- 0x1C100801, // 0008 EQ R4 R4 R1
- 0x78120003, // 0009 JMPF R4 #000E
- 0x8C100702, // 000A GETMET R4 R3 K2
- 0x5C180400, // 000B MOVE R6 R2
- 0x7C100400, // 000C CALL R4 2
- 0x70020000, // 000D JMP #000F
- 0x00080503, // 000E ADD R2 R2 K3
- 0x7001FFF1, // 000F JMP #0002
- 0x80000000, // 0010 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: init
-********************************************************************/
-be_local_closure(Matter_Session_Store_init, /* name */
- be_nested_proto(
- 3, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 4]) { /* constants */
- /* K0 */ be_nested_str_weak(sessions),
- /* K1 */ be_nested_str_weak(matter),
- /* K2 */ be_nested_str_weak(Expirable_list),
- /* K3 */ be_nested_str_weak(fabrics),
- }),
- be_str_weak(init),
- &be_const_str_solidified,
- ( &(const binstruction[ 9]) { /* code */
- 0xB8060200, // 0000 GETNGBL R1 K1
- 0x8C040302, // 0001 GETMET R1 R1 K2
- 0x7C040200, // 0002 CALL R1 1
- 0x90020001, // 0003 SETMBR R0 K0 R1
- 0xB8060200, // 0004 GETNGBL R1 K1
- 0x8C040302, // 0005 GETMET R1 R1 K2
- 0x7C040200, // 0006 CALL R1 1
- 0x90020601, // 0007 SETMBR R0 K3 R1
- 0x80000000, // 0008 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: create_session
-********************************************************************/
-be_local_closure(Matter_Session_Store_create_session, /* name */
- be_nested_proto(
- 9, /* nstack */
- 3, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_nested_str_weak(get_session_by_local_session_id),
- /* K1 */ be_nested_str_weak(remove_session),
- /* K2 */ be_nested_str_weak(matter),
- /* K3 */ be_nested_str_weak(Session),
- /* K4 */ be_nested_str_weak(sessions),
- /* K5 */ be_nested_str_weak(push),
- }),
- be_str_weak(create_session),
- &be_const_str_solidified,
- ( &(const binstruction[21]) { /* code */
- 0x8C0C0100, // 0000 GETMET R3 R0 K0
- 0x5C140200, // 0001 MOVE R5 R1
- 0x7C0C0400, // 0002 CALL R3 2
- 0x4C100000, // 0003 LDNIL R4
- 0x20100604, // 0004 NE R4 R3 R4
- 0x78120002, // 0005 JMPF R4 #0009
- 0x8C100101, // 0006 GETMET R4 R0 K1
- 0x5C180600, // 0007 MOVE R6 R3
- 0x7C100400, // 0008 CALL R4 2
- 0xB8120400, // 0009 GETNGBL R4 K2
- 0x8C100903, // 000A GETMET R4 R4 K3
- 0x5C180000, // 000B MOVE R6 R0
- 0x5C1C0200, // 000C MOVE R7 R1
- 0x5C200400, // 000D MOVE R8 R2
- 0x7C100800, // 000E CALL R4 4
- 0x5C0C0800, // 000F MOVE R3 R4
- 0x88100104, // 0010 GETMBR R4 R0 K4
- 0x8C100905, // 0011 GETMET R4 R4 K5
- 0x5C180600, // 0012 MOVE R6 R3
- 0x7C100400, // 0013 CALL R4 2
- 0x80040600, // 0014 RET 1 R3
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: save_fabrics
-********************************************************************/
-be_local_closure(Matter_Session_Store_save_fabrics, /* name */
- be_nested_proto(
- 14, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[26]) { /* constants */
- /* K0 */ be_nested_str_weak(json),
- /* K1 */ be_nested_str_weak(remove_expired),
- /* K2 */ be_const_int(0),
- /* K3 */ be_nested_str_weak(fabrics),
- /* K4 */ be_nested_str_weak(persistables),
- /* K5 */ be_nested_str_weak(_sessions),
- /* K6 */ be_const_int(1),
- /* K7 */ be_nested_str_weak(stop_iteration),
- /* K8 */ be_nested_str_weak(push),
- /* K9 */ be_nested_str_weak(tojson),
- /* K10 */ be_nested_str_weak(_X5B),
- /* K11 */ be_nested_str_weak(concat),
- /* K12 */ be_nested_str_weak(_X2C),
- /* K13 */ be_nested_str_weak(_X5D),
- /* K14 */ be_nested_str_weak(string),
- /* K15 */ be_nested_str_weak(_FABRICS),
- /* K16 */ be_nested_str_weak(w),
- /* K17 */ be_nested_str_weak(write),
- /* K18 */ be_nested_str_weak(close),
- /* K19 */ be_nested_str_weak(tasmota),
- /* K20 */ be_nested_str_weak(log),
- /* K21 */ be_nested_str_weak(format),
- /* K22 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25i_X20fabric_X28s_X29_X20and_X20_X25i_X20session_X28s_X29),
- /* K23 */ be_const_int(2),
- /* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A),
- /* K25 */ be_nested_str_weak(_X7C),
- }),
- be_str_weak(save_fabrics),
- &be_const_str_solidified,
- ( &(const binstruction[84]) { /* code */
- 0xA4060000, // 0000 IMPORT R1 K0
- 0x8C080101, // 0001 GETMET R2 R0 K1
- 0x7C080200, // 0002 CALL R2 1
- 0x58080002, // 0003 LDCONST R2 K2
- 0x600C0012, // 0004 GETGBL R3 G18
- 0x7C0C0000, // 0005 CALL R3 0
- 0x60100010, // 0006 GETGBL R4 G16
- 0x88140103, // 0007 GETMBR R5 R0 K3
- 0x8C140B04, // 0008 GETMET R5 R5 K4
- 0x7C140200, // 0009 CALL R5 1
- 0x7C100200, // 000A CALL R4 1
- 0xA8020013, // 000B EXBLK 0 #0020
- 0x5C140800, // 000C MOVE R5 R4
- 0x7C140000, // 000D CALL R5 0
- 0x60180010, // 000E GETGBL R6 G16
- 0x881C0B05, // 000F GETMBR R7 R5 K5
- 0x8C1C0F04, // 0010 GETMET R7 R7 K4
- 0x7C1C0200, // 0011 CALL R7 1
- 0x7C180200, // 0012 CALL R6 1
- 0xA8020003, // 0013 EXBLK 0 #0018
- 0x5C1C0C00, // 0014 MOVE R7 R6
- 0x7C1C0000, // 0015 CALL R7 0
- 0x00080506, // 0016 ADD R2 R2 K6
- 0x7001FFFB, // 0017 JMP #0014
- 0x58180007, // 0018 LDCONST R6 K7
- 0xAC180200, // 0019 CATCH R6 1 0
- 0xB0080000, // 001A RAISE 2 R0 R0
- 0x8C180708, // 001B GETMET R6 R3 K8
- 0x8C200B09, // 001C GETMET R8 R5 K9
- 0x7C200200, // 001D CALL R8 1
- 0x7C180400, // 001E CALL R6 2
- 0x7001FFEB, // 001F JMP #000C
- 0x58100007, // 0020 LDCONST R4 K7
- 0xAC100200, // 0021 CATCH R4 1 0
- 0xB0080000, // 0022 RAISE 2 R0 R0
- 0x6010000C, // 0023 GETGBL R4 G12
- 0x5C140600, // 0024 MOVE R5 R3
- 0x7C100200, // 0025 CALL R4 1
- 0x8C14070B, // 0026 GETMET R5 R3 K11
- 0x581C000C, // 0027 LDCONST R7 K12
- 0x7C140400, // 0028 CALL R5 2
- 0x00161405, // 0029 ADD R5 K10 R5
- 0x00140B0D, // 002A ADD R5 R5 K13
- 0x5C0C0A00, // 002B MOVE R3 R5
- 0xA8020014, // 002C EXBLK 0 #0042
- 0xA4161C00, // 002D IMPORT R5 K14
- 0x60180011, // 002E GETGBL R6 G17
- 0x881C010F, // 002F GETMBR R7 R0 K15
- 0x58200010, // 0030 LDCONST R8 K16
- 0x7C180400, // 0031 CALL R6 2
- 0x8C1C0D11, // 0032 GETMET R7 R6 K17
- 0x5C240600, // 0033 MOVE R9 R3
- 0x7C1C0400, // 0034 CALL R7 2
- 0x8C1C0D12, // 0035 GETMET R7 R6 K18
- 0x7C1C0200, // 0036 CALL R7 1
- 0xB81E2600, // 0037 GETNGBL R7 K19
- 0x8C1C0F14, // 0038 GETMET R7 R7 K20
- 0x8C240B15, // 0039 GETMET R9 R5 K21
- 0x582C0016, // 003A LDCONST R11 K22
- 0x5C300800, // 003B MOVE R12 R4
- 0x5C340400, // 003C MOVE R13 R2
- 0x7C240800, // 003D CALL R9 4
- 0x58280017, // 003E LDCONST R10 K23
- 0x7C1C0600, // 003F CALL R7 3
- 0xA8040001, // 0040 EXBLK 1 1
- 0x70020010, // 0041 JMP #0053
- 0xAC140002, // 0042 CATCH R5 0 2
- 0x7002000D, // 0043 JMP #0052
- 0xB81E2600, // 0044 GETNGBL R7 K19
- 0x8C1C0F14, // 0045 GETMET R7 R7 K20
- 0x60240008, // 0046 GETGBL R9 G8
- 0x5C280A00, // 0047 MOVE R10 R5
- 0x7C240200, // 0048 CALL R9 1
- 0x00263009, // 0049 ADD R9 K24 R9
- 0x00241319, // 004A ADD R9 R9 K25
- 0x60280008, // 004B GETGBL R10 G8
- 0x5C2C0C00, // 004C MOVE R11 R6
- 0x7C280200, // 004D CALL R10 1
- 0x0024120A, // 004E ADD R9 R9 R10
- 0x58280017, // 004F LDCONST R10 K23
- 0x7C1C0600, // 0050 CALL R7 3
- 0x70020000, // 0051 JMP #0053
- 0xB0080000, // 0052 RAISE 2 R0 R0
- 0x80000000, // 0053 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: load_fabrics
-********************************************************************/
-be_local_closure(Matter_Session_Store_load_fabrics, /* name */
- be_nested_proto(
- 17, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[29]) { /* constants */
- /* K0 */ be_nested_str_weak(string),
- /* K1 */ be_nested_str_weak(sessions),
- /* K2 */ be_nested_str_weak(matter),
- /* K3 */ be_nested_str_weak(Expirable_list),
- /* K4 */ be_nested_str_weak(fabrics),
- /* K5 */ be_nested_str_weak(_FABRICS),
- /* K6 */ be_nested_str_weak(read),
- /* K7 */ be_nested_str_weak(close),
- /* K8 */ be_nested_str_weak(json),
- /* K9 */ be_nested_str_weak(load),
- /* K10 */ be_nested_str_weak(tasmota),
- /* K11 */ be_nested_str_weak(gc),
- /* K12 */ be_nested_str_weak(Fabric),
- /* K13 */ be_nested_str_weak(fromjson),
- /* K14 */ be_nested_str_weak(set_no_expiration),
- /* K15 */ be_nested_str_weak(set_persist),
- /* K16 */ be_nested_str_weak(find),
- /* K17 */ be_nested_str_weak(_sessions),
- /* K18 */ be_nested_str_weak(Session),
- /* K19 */ be_nested_str_weak(add_session),
- /* K20 */ be_nested_str_weak(stop_iteration),
- /* K21 */ be_nested_str_weak(push),
- /* K22 */ be_nested_str_weak(log),
- /* K23 */ be_nested_str_weak(format),
- /* K24 */ be_nested_str_weak(MTR_X3A_X20Loaded_X20_X25i_X20fabric_X28s_X29),
- /* K25 */ be_const_int(2),
- /* K26 */ be_nested_str_weak(io_error),
- /* K27 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A),
- /* K28 */ be_nested_str_weak(_X7C),
- }),
- be_str_weak(load_fabrics),
- &be_const_str_solidified,
- ( &(const binstruction[118]) { /* code */
- 0xA4060000, // 0000 IMPORT R1 K0
- 0xA802005F, // 0001 EXBLK 0 #0062
- 0xB80A0400, // 0002 GETNGBL R2 K2
- 0x8C080503, // 0003 GETMET R2 R2 K3
- 0x7C080200, // 0004 CALL R2 1
- 0x90020202, // 0005 SETMBR R0 K1 R2
- 0xB80A0400, // 0006 GETNGBL R2 K2
- 0x8C080503, // 0007 GETMET R2 R2 K3
- 0x7C080200, // 0008 CALL R2 1
- 0x90020802, // 0009 SETMBR R0 K4 R2
- 0x60080011, // 000A GETGBL R2 G17
- 0x880C0105, // 000B GETMBR R3 R0 K5
- 0x7C080200, // 000C CALL R2 1
- 0x8C0C0506, // 000D GETMET R3 R2 K6
- 0x7C0C0200, // 000E CALL R3 1
- 0x8C100507, // 000F GETMET R4 R2 K7
- 0x7C100200, // 0010 CALL R4 1
- 0xA4121000, // 0011 IMPORT R4 K8
- 0x8C140909, // 0012 GETMET R5 R4 K9
- 0x5C1C0600, // 0013 MOVE R7 R3
- 0x7C140400, // 0014 CALL R5 2
- 0x4C0C0000, // 0015 LDNIL R3
- 0xB81A1400, // 0016 GETNGBL R6 K10
- 0x8C180D0B, // 0017 GETMET R6 R6 K11
- 0x7C180200, // 0018 CALL R6 1
- 0x60180010, // 0019 GETGBL R6 G16
- 0x5C1C0A00, // 001A MOVE R7 R5
- 0x7C180200, // 001B CALL R6 1
- 0xA8020035, // 001C EXBLK 0 #0053
- 0x5C1C0C00, // 001D MOVE R7 R6
- 0x7C1C0000, // 001E CALL R7 0
- 0xB8220400, // 001F GETNGBL R8 K2
- 0x8820110C, // 0020 GETMBR R8 R8 K12
- 0x8C20110D, // 0021 GETMET R8 R8 K13
- 0x5C280000, // 0022 MOVE R10 R0
- 0x5C2C0E00, // 0023 MOVE R11 R7
- 0x7C200600, // 0024 CALL R8 3
- 0x8C24110E, // 0025 GETMET R9 R8 K14
- 0x7C240200, // 0026 CALL R9 1
- 0x8C24110F, // 0027 GETMET R9 R8 K15
- 0x502C0200, // 0028 LDBOOL R11 1 0
- 0x7C240400, // 0029 CALL R9 2
- 0x8C240F10, // 002A GETMET R9 R7 K16
- 0x582C0011, // 002B LDCONST R11 K17
- 0x60300012, // 002C GETGBL R12 G18
- 0x7C300000, // 002D CALL R12 0
- 0x7C240600, // 002E CALL R9 3
- 0x60280010, // 002F GETGBL R10 G16
- 0x5C2C1200, // 0030 MOVE R11 R9
- 0x7C280200, // 0031 CALL R10 1
- 0xA8020017, // 0032 EXBLK 0 #004B
- 0x5C2C1400, // 0033 MOVE R11 R10
- 0x7C2C0000, // 0034 CALL R11 0
- 0xB8320400, // 0035 GETNGBL R12 K2
- 0x88301912, // 0036 GETMBR R12 R12 K18
- 0x8C30190D, // 0037 GETMET R12 R12 K13
- 0x5C380000, // 0038 MOVE R14 R0
- 0x5C3C1600, // 0039 MOVE R15 R11
- 0x5C401000, // 003A MOVE R16 R8
- 0x7C300800, // 003B CALL R12 4
- 0x4C340000, // 003C LDNIL R13
- 0x2034180D, // 003D NE R13 R12 R13
- 0x7836000A, // 003E JMPF R13 #004A
- 0x8C34190E, // 003F GETMET R13 R12 K14
- 0x7C340200, // 0040 CALL R13 1
- 0x8C34190F, // 0041 GETMET R13 R12 K15
- 0x503C0200, // 0042 LDBOOL R15 1 0
- 0x7C340400, // 0043 CALL R13 2
- 0x8C340113, // 0044 GETMET R13 R0 K19
- 0x5C3C1800, // 0045 MOVE R15 R12
- 0x7C340400, // 0046 CALL R13 2
- 0x8C341113, // 0047 GETMET R13 R8 K19
- 0x5C3C1800, // 0048 MOVE R15 R12
- 0x7C340400, // 0049 CALL R13 2
- 0x7001FFE7, // 004A JMP #0033
- 0x58280014, // 004B LDCONST R10 K20
- 0xAC280200, // 004C CATCH R10 1 0
- 0xB0080000, // 004D RAISE 2 R0 R0
- 0x88280104, // 004E GETMBR R10 R0 K4
- 0x8C281515, // 004F GETMET R10 R10 K21
- 0x5C301000, // 0050 MOVE R12 R8
- 0x7C280400, // 0051 CALL R10 2
- 0x7001FFC9, // 0052 JMP #001D
- 0x58180014, // 0053 LDCONST R6 K20
- 0xAC180200, // 0054 CATCH R6 1 0
- 0xB0080000, // 0055 RAISE 2 R0 R0
- 0xB81A1400, // 0056 GETNGBL R6 K10
- 0x8C180D16, // 0057 GETMET R6 R6 K22
- 0x8C200317, // 0058 GETMET R8 R1 K23
- 0x58280018, // 0059 LDCONST R10 K24
- 0x602C000C, // 005A GETGBL R11 G12
- 0x88300104, // 005B GETMBR R12 R0 K4
- 0x7C2C0200, // 005C CALL R11 1
- 0x7C200600, // 005D CALL R8 3
- 0x58240019, // 005E LDCONST R9 K25
- 0x7C180600, // 005F CALL R6 3
- 0xA8040001, // 0060 EXBLK 1 1
- 0x70020012, // 0061 JMP #0075
- 0xAC080002, // 0062 CATCH R2 0 2
- 0x7002000F, // 0063 JMP #0074
- 0x2010051A, // 0064 NE R4 R2 K26
- 0x7812000C, // 0065 JMPF R4 #0073
- 0xB8121400, // 0066 GETNGBL R4 K10
- 0x8C100916, // 0067 GETMET R4 R4 K22
- 0x60180008, // 0068 GETGBL R6 G8
- 0x5C1C0400, // 0069 MOVE R7 R2
- 0x7C180200, // 006A CALL R6 1
- 0x001A3606, // 006B ADD R6 K27 R6
- 0x00180D1C, // 006C ADD R6 R6 K28
- 0x601C0008, // 006D GETGBL R7 G8
- 0x5C200600, // 006E MOVE R8 R3
- 0x7C1C0200, // 006F CALL R7 1
- 0x00180C07, // 0070 ADD R6 R6 R7
- 0x581C0019, // 0071 LDCONST R7 K25
- 0x7C100600, // 0072 CALL R4 3
- 0x70020000, // 0073 JMP #0075
- 0xB0080000, // 0074 RAISE 2 R0 R0
- 0x80000000, // 0075 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: sessions_active
-********************************************************************/
-be_local_closure(Matter_Session_Store_sessions_active, /* name */
- be_nested_proto(
- 7, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 6]) { /* constants */
- /* K0 */ be_const_int(0),
- /* K1 */ be_nested_str_weak(sessions),
- /* K2 */ be_nested_str_weak(get_device_id),
- /* K3 */ be_nested_str_weak(get_fabric_id),
- /* K4 */ be_nested_str_weak(push),
- /* K5 */ be_const_int(1),
- }),
- be_str_weak(sessions_active),
- &be_const_str_solidified,
- ( &(const binstruction[22]) { /* code */
- 0x60040012, // 0000 GETGBL R1 G18
- 0x7C040000, // 0001 CALL R1 0
- 0x58080000, // 0002 LDCONST R2 K0
- 0x600C000C, // 0003 GETGBL R3 G12
- 0x88100101, // 0004 GETMBR R4 R0 K1
- 0x7C0C0200, // 0005 CALL R3 1
- 0x140C0403, // 0006 LT R3 R2 R3
- 0x780E000C, // 0007 JMPF R3 #0015
- 0x880C0101, // 0008 GETMBR R3 R0 K1
- 0x940C0602, // 0009 GETIDX R3 R3 R2
- 0x8C100702, // 000A GETMET R4 R3 K2
- 0x7C100200, // 000B CALL R4 1
- 0x78120005, // 000C JMPF R4 #0013
- 0x8C100703, // 000D GETMET R4 R3 K3
- 0x7C100200, // 000E CALL R4 1
- 0x78120002, // 000F JMPF R4 #0013
- 0x8C100304, // 0010 GETMET R4 R1 K4
- 0x5C180600, // 0011 MOVE R6 R3
- 0x7C100400, // 0012 CALL R4 2
- 0x00080505, // 0013 ADD R2 R2 K5
- 0x7001FFED, // 0014 JMP #0003
- 0x80040200, // 0015 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: create_fabric
-********************************************************************/
-be_local_closure(Matter_Session_Store_create_fabric, /* name */
- be_nested_proto(
- 4, /* nstack */
- 1, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 2]) { /* constants */
- /* K0 */ be_nested_str_weak(matter),
- /* K1 */ be_nested_str_weak(Fabric),
- }),
- be_str_weak(create_fabric),
- &be_const_str_solidified,
- ( &(const binstruction[ 5]) { /* code */
- 0xB8060000, // 0000 GETNGBL R1 K0
- 0x8C040301, // 0001 GETMET R1 R1 K1
- 0x5C0C0000, // 0002 MOVE R3 R0
- 0x7C040400, // 0003 CALL R1 2
- 0x80040200, // 0004 RET 1 R1
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified function: add_fabric
-********************************************************************/
-be_local_closure(Matter_Session_Store_add_fabric, /* name */
- be_nested_proto(
- 5, /* nstack */
- 2, /* argc */
- 2, /* varg */
- 0, /* has upvals */
- NULL, /* no upvals */
- 0, /* has sup protos */
- NULL, /* no sub protos */
- 1, /* has constants */
- ( &(const bvalue[ 8]) { /* constants */
- /* K0 */ be_nested_str_weak(matter),
- /* K1 */ be_nested_str_weak(Fabric),
- /* K2 */ be_nested_str_weak(value_error),
- /* K3 */ be_nested_str_weak(must_X20be_X20of_X20class_X20matter_X2EFabric),
- /* K4 */ be_nested_str_weak(fabrics),
- /* K5 */ be_nested_str_weak(find),
- /* K6 */ be_nested_str_weak(remove_redundant_fabric),
- /* K7 */ be_nested_str_weak(push),
- }),
- be_str_weak(add_fabric),
- &be_const_str_solidified,
- ( &(const binstruction[22]) { /* code */
- 0x6008000F, // 0000 GETGBL R2 G15
- 0x5C0C0200, // 0001 MOVE R3 R1
- 0xB8120000, // 0002 GETNGBL R4 K0
- 0x88100901, // 0003 GETMBR R4 R4 K1
- 0x7C080400, // 0004 CALL R2 2
- 0x740A0000, // 0005 JMPT R2 #0007
- 0xB0060503, // 0006 RAISE 1 K2 K3
- 0x88080104, // 0007 GETMBR R2 R0 K4
- 0x8C080505, // 0008 GETMET R2 R2 K5
- 0x5C100200, // 0009 MOVE R4 R1
- 0x7C080400, // 000A CALL R2 2
- 0x4C0C0000, // 000B LDNIL R3
- 0x1C080403, // 000C EQ R2 R2 R3
- 0x780A0006, // 000D JMPF R2 #0015
- 0x8C080106, // 000E GETMET R2 R0 K6
- 0x5C100200, // 000F MOVE R4 R1
- 0x7C080400, // 0010 CALL R2 2
- 0x88080104, // 0011 GETMBR R2 R0 K4
- 0x8C080507, // 0012 GETMET R2 R2 K7
- 0x5C100200, // 0013 MOVE R4 R1
- 0x7C080400, // 0014 CALL R2 2
- 0x80000000, // 0015 RET 0
- })
- )
-);
-/*******************************************************************/
-
-
-/********************************************************************
-** Solidified class: Matter_Session_Store
-********************************************************************/
-be_local_class(Matter_Session_Store,
- 2,
- NULL,
- be_nested_map(26,
- ( (struct bmapnode*) &(const bmapnode[]) {
- { be_const_key_weak(gen_local_session_id, 25), be_const_closure(Matter_Session_Store_gen_local_session_id_closure) },
- { be_const_key_weak(remove_redundant_fabric, 15), be_const_closure(Matter_Session_Store_remove_redundant_fabric_closure) },
- { be_const_key_weak(find_session_by_resumption_id, -1), be_const_closure(Matter_Session_Store_find_session_by_resumption_id_closure) },
- { be_const_key_weak(fabrics, 5), be_const_var(1) },
- { be_const_key_weak(add_fabric, -1), be_const_closure(Matter_Session_Store_add_fabric_closure) },
- { be_const_key_weak(create_fabric, -1), be_const_closure(Matter_Session_Store_create_fabric_closure) },
- { be_const_key_weak(sessions_active, -1), be_const_closure(Matter_Session_Store_sessions_active_closure) },
- { be_const_key_weak(add_session, -1), be_const_closure(Matter_Session_Store_add_session_closure) },
- { be_const_key_weak(count_active_fabrics, -1), be_const_closure(Matter_Session_Store_count_active_fabrics_closure) },
- { be_const_key_weak(remove_expired, 17), be_const_closure(Matter_Session_Store_remove_expired_closure) },
- { be_const_key_weak(_FABRICS, -1), be_nested_str_weak(_matter_fabrics_X2Ejson) },
- { be_const_key_weak(find_fabric_by_index, -1), be_const_closure(Matter_Session_Store_find_fabric_by_index_closure) },
- { be_const_key_weak(sessions, 4), be_const_var(0) },
- { be_const_key_weak(get_session_by_source_node_id, 11), be_const_closure(Matter_Session_Store_get_session_by_source_node_id_closure) },
- { be_const_key_weak(next_fabric_idx, -1), be_const_closure(Matter_Session_Store_next_fabric_idx_closure) },
- { be_const_key_weak(get_session_by_local_session_id, 24), be_const_closure(Matter_Session_Store_get_session_by_local_session_id_closure) },
- { be_const_key_weak(active_fabrics, -1), be_const_closure(Matter_Session_Store_active_fabrics_closure) },
- { be_const_key_weak(every_second, -1), be_const_closure(Matter_Session_Store_every_second_closure) },
- { be_const_key_weak(remove_session, -1), be_const_closure(Matter_Session_Store_remove_session_closure) },
- { be_const_key_weak(init, -1), be_const_closure(Matter_Session_Store_init_closure) },
- { be_const_key_weak(create_session, -1), be_const_closure(Matter_Session_Store_create_session_closure) },
- { be_const_key_weak(save_fabrics, -1), be_const_closure(Matter_Session_Store_save_fabrics_closure) },
- { be_const_key_weak(load_fabrics, -1), be_const_closure(Matter_Session_Store_load_fabrics_closure) },
- { be_const_key_weak(remove_fabric, 6), be_const_closure(Matter_Session_Store_remove_fabric_closure) },
- { be_const_key_weak(find_children_fabrics, -1), be_const_closure(Matter_Session_Store_find_children_fabrics_closure) },
- { be_const_key_weak(find_session_source_id_unsecure, -1), be_const_closure(Matter_Session_Store_find_session_source_id_unsecure_closure) },
- })),
- be_str_weak(Matter_Session_Store)
-);
-/*******************************************************************/
-
-void be_load_Matter_Session_Store_class(bvm *vm) {
- be_pushntvclass(vm, &be_class_Matter_Session_Store);
- be_setglobal(vm, "Matter_Session_Store");
- be_pop(vm, 1);
-}
/********************************************************************/
/* End of solidification */
diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h
new file mode 100644
index 000000000..c3abc2b85
--- /dev/null
+++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h
@@ -0,0 +1,1395 @@
+/* Solidification of Matter_Session_Store.h */
+/********************************************************************\
+* Generated code, don't edit *
+\********************************************************************/
+#include "be_constobj.h"
+
+extern const bclass be_class_Matter_Session_Store;
+
+/********************************************************************
+** Solidified function: gen_local_session_id
+********************************************************************/
+be_local_closure(Matter_Session_Store_gen_local_session_id, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_nested_str_weak(crypto),
+ /* K1 */ be_nested_str_weak(random),
+ /* K2 */ be_const_int(2),
+ /* K3 */ be_nested_str_weak(get),
+ /* K4 */ be_const_int(0),
+ /* K5 */ be_nested_str_weak(get_session_by_local_session_id),
+ }),
+ be_str_weak(gen_local_session_id),
+ &be_const_str_solidified,
+ ( &(const binstruction[19]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0x50080200, // 0001 LDBOOL R2 1 0
+ 0x780A000E, // 0002 JMPF R2 #0012
+ 0x8C080301, // 0003 GETMET R2 R1 K1
+ 0x58100002, // 0004 LDCONST R4 K2
+ 0x7C080400, // 0005 CALL R2 2
+ 0x8C080503, // 0006 GETMET R2 R2 K3
+ 0x58100004, // 0007 LDCONST R4 K4
+ 0x58140002, // 0008 LDCONST R5 K2
+ 0x7C080600, // 0009 CALL R2 3
+ 0x8C0C0105, // 000A GETMET R3 R0 K5
+ 0x5C140400, // 000B MOVE R5 R2
+ 0x7C0C0400, // 000C CALL R3 2
+ 0x4C100000, // 000D LDNIL R4
+ 0x1C0C0604, // 000E EQ R3 R3 R4
+ 0x780E0000, // 000F JMPF R3 #0011
+ 0x80040400, // 0010 RET 1 R2
+ 0x7001FFEE, // 0011 JMP #0001
+ 0x80000000, // 0012 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_redundant_fabric
+********************************************************************/
+be_local_closure(Matter_Session_Store_remove_redundant_fabric, /* name */
+ be_nested_proto(
+ 7, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str_weak(fabrics),
+ /* K2 */ be_nested_str_weak(fabric_id),
+ /* K3 */ be_nested_str_weak(device_id),
+ /* K4 */ be_nested_str_weak(remove),
+ /* K5 */ be_const_int(1),
+ }),
+ be_str_weak(remove_redundant_fabric),
+ &be_const_str_solidified,
+ ( &(const binstruction[26]) { /* code */
+ 0x58080000, // 0000 LDCONST R2 K0
+ 0x600C000C, // 0001 GETGBL R3 G12
+ 0x88100101, // 0002 GETMBR R4 R0 K1
+ 0x7C0C0200, // 0003 CALL R3 1
+ 0x140C0403, // 0004 LT R3 R2 R3
+ 0x780E0012, // 0005 JMPF R3 #0019
+ 0x880C0101, // 0006 GETMBR R3 R0 K1
+ 0x940C0602, // 0007 GETIDX R3 R3 R2
+ 0x20100601, // 0008 NE R4 R3 R1
+ 0x7812000C, // 0009 JMPF R4 #0017
+ 0x88100702, // 000A GETMBR R4 R3 K2
+ 0x88140302, // 000B GETMBR R5 R1 K2
+ 0x1C100805, // 000C EQ R4 R4 R5
+ 0x78120008, // 000D JMPF R4 #0017
+ 0x88100703, // 000E GETMBR R4 R3 K3
+ 0x88140303, // 000F GETMBR R5 R1 K3
+ 0x1C100805, // 0010 EQ R4 R4 R5
+ 0x78120004, // 0011 JMPF R4 #0017
+ 0x88100101, // 0012 GETMBR R4 R0 K1
+ 0x8C100904, // 0013 GETMET R4 R4 K4
+ 0x5C180400, // 0014 MOVE R6 R2
+ 0x7C100400, // 0015 CALL R4 2
+ 0x70020000, // 0016 JMP #0018
+ 0x00080505, // 0017 ADD R2 R2 K5
+ 0x7001FFE7, // 0018 JMP #0001
+ 0x80000000, // 0019 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: find_session_by_resumption_id
+********************************************************************/
+be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name */
+ be_nested_proto(
+ 14, /* nstack */
+ 2, /* 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(string),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str_weak(sessions),
+ /* 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_X20session_X2Eresumption_id_X3D_X25s_X20vs_X20_X25s),
+ /* K7 */ be_nested_str_weak(resumption_id),
+ /* K8 */ be_nested_str_weak(shared_secret),
+ /* K9 */ be_nested_str_weak(MTR_X3A_X20session_X2Eshared_secret_X3D_X25s),
+ /* K10 */ be_nested_str_weak(update),
+ /* K11 */ be_const_int(1),
+ }),
+ be_str_weak(find_session_by_resumption_id),
+ &be_const_str_solidified,
+ ( &(const binstruction[47]) { /* code */
+ 0xA40A0000, // 0000 IMPORT R2 K0
+ 0x5C0C0200, // 0001 MOVE R3 R1
+ 0x740E0001, // 0002 JMPT R3 #0005
+ 0x4C0C0000, // 0003 LDNIL R3
+ 0x80040600, // 0004 RET 1 R3
+ 0x580C0001, // 0005 LDCONST R3 K1
+ 0x88100102, // 0006 GETMBR R4 R0 K2
+ 0x6014000C, // 0007 GETGBL R5 G12
+ 0x5C180800, // 0008 MOVE R6 R4
+ 0x7C140200, // 0009 CALL R5 1
+ 0x14140605, // 000A LT R5 R3 R5
+ 0x78160021, // 000B JMPF R5 #002E
+ 0x94140803, // 000C GETIDX R5 R4 R3
+ 0xB81A0600, // 000D GETNGBL R6 K3
+ 0x8C180D04, // 000E GETMET R6 R6 K4
+ 0x8C200505, // 000F GETMET R8 R2 K5
+ 0x58280006, // 0010 LDCONST R10 K6
+ 0x602C0008, // 0011 GETGBL R11 G8
+ 0x88300B07, // 0012 GETMBR R12 R5 K7
+ 0x7C2C0200, // 0013 CALL R11 1
+ 0x60300008, // 0014 GETGBL R12 G8
+ 0x5C340200, // 0015 MOVE R13 R1
+ 0x7C300200, // 0016 CALL R12 1
+ 0x7C200800, // 0017 CALL R8 4
+ 0x7C180400, // 0018 CALL R6 2
+ 0x88180B07, // 0019 GETMBR R6 R5 K7
+ 0x1C180C01, // 001A EQ R6 R6 R1
+ 0x781A000F, // 001B JMPF R6 #002C
+ 0x88180B08, // 001C GETMBR R6 R5 K8
+ 0x4C1C0000, // 001D LDNIL R7
+ 0x20180C07, // 001E NE R6 R6 R7
+ 0x781A000B, // 001F JMPF R6 #002C
+ 0xB81A0600, // 0020 GETNGBL R6 K3
+ 0x8C180D04, // 0021 GETMET R6 R6 K4
+ 0x8C200505, // 0022 GETMET R8 R2 K5
+ 0x58280009, // 0023 LDCONST R10 K9
+ 0x602C0008, // 0024 GETGBL R11 G8
+ 0x88300B08, // 0025 GETMBR R12 R5 K8
+ 0x7C2C0200, // 0026 CALL R11 1
+ 0x7C200600, // 0027 CALL R8 3
+ 0x7C180400, // 0028 CALL R6 2
+ 0x8C180B0A, // 0029 GETMET R6 R5 K10
+ 0x7C180200, // 002A CALL R6 1
+ 0x80040A00, // 002B RET 1 R5
+ 0x000C070B, // 002C ADD R3 R3 K11
+ 0x7001FFD8, // 002D JMP #0007
+ 0x80000000, // 002E RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_fabric
+********************************************************************/
+be_local_closure(Matter_Session_Store_remove_fabric, /* name */
+ be_nested_proto(
+ 8, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 7]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str_weak(sessions),
+ /* K2 */ be_nested_str_weak(_fabric),
+ /* K3 */ be_nested_str_weak(remove),
+ /* K4 */ be_const_int(1),
+ /* K5 */ be_nested_str_weak(fabrics),
+ /* K6 */ be_nested_str_weak(find),
+ }),
+ be_str_weak(remove_fabric),
+ &be_const_str_solidified,
+ ( &(const binstruction[26]) { /* code */
+ 0x58080000, // 0000 LDCONST R2 K0
+ 0x600C000C, // 0001 GETGBL R3 G12
+ 0x88100101, // 0002 GETMBR R4 R0 K1
+ 0x7C0C0200, // 0003 CALL R3 1
+ 0x140C0403, // 0004 LT R3 R2 R3
+ 0x780E000B, // 0005 JMPF R3 #0012
+ 0x880C0101, // 0006 GETMBR R3 R0 K1
+ 0x940C0602, // 0007 GETIDX R3 R3 R2
+ 0x880C0702, // 0008 GETMBR R3 R3 K2
+ 0x1C0C0601, // 0009 EQ R3 R3 R1
+ 0x780E0004, // 000A JMPF R3 #0010
+ 0x880C0101, // 000B GETMBR R3 R0 K1
+ 0x8C0C0703, // 000C GETMET R3 R3 K3
+ 0x5C140400, // 000D MOVE R5 R2
+ 0x7C0C0400, // 000E CALL R3 2
+ 0x70020000, // 000F JMP #0011
+ 0x00080504, // 0010 ADD R2 R2 K4
+ 0x7001FFEE, // 0011 JMP #0001
+ 0x880C0105, // 0012 GETMBR R3 R0 K5
+ 0x8C0C0703, // 0013 GETMET R3 R3 K3
+ 0x88140105, // 0014 GETMBR R5 R0 K5
+ 0x8C140B06, // 0015 GETMET R5 R5 K6
+ 0x5C1C0200, // 0016 MOVE R7 R1
+ 0x7C140400, // 0017 CALL R5 2
+ 0x7C0C0400, // 0018 CALL R3 2
+ 0x80000000, // 0019 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: find_session_source_id_unsecure
+********************************************************************/
+be_local_closure(Matter_Session_Store_find_session_source_id_unsecure, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 3, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 9]) { /* constants */
+ /* K0 */ be_nested_str_weak(get_session_by_source_node_id),
+ /* K1 */ be_nested_str_weak(matter),
+ /* K2 */ be_nested_str_weak(Session),
+ /* K3 */ be_const_int(0),
+ /* K4 */ be_nested_str_weak(_source_node_id),
+ /* K5 */ be_nested_str_weak(sessions),
+ /* K6 */ be_nested_str_weak(push),
+ /* K7 */ be_nested_str_weak(set_expire_in_seconds),
+ /* K8 */ be_nested_str_weak(update),
+ }),
+ be_str_weak(find_session_source_id_unsecure),
+ &be_const_str_solidified,
+ ( &(const binstruction[24]) { /* code */
+ 0x8C0C0100, // 0000 GETMET R3 R0 K0
+ 0x5C140200, // 0001 MOVE R5 R1
+ 0x7C0C0400, // 0002 CALL R3 2
+ 0x4C100000, // 0003 LDNIL R4
+ 0x1C100604, // 0004 EQ R4 R3 R4
+ 0x7812000E, // 0005 JMPF R4 #0015
+ 0xB8120200, // 0006 GETNGBL R4 K1
+ 0x8C100902, // 0007 GETMET R4 R4 K2
+ 0x5C180000, // 0008 MOVE R6 R0
+ 0x581C0003, // 0009 LDCONST R7 K3
+ 0x58200003, // 000A LDCONST R8 K3
+ 0x7C100800, // 000B CALL R4 4
+ 0x5C0C0800, // 000C MOVE R3 R4
+ 0x900E0801, // 000D SETMBR R3 K4 R1
+ 0x88100105, // 000E GETMBR R4 R0 K5
+ 0x8C100906, // 000F GETMET R4 R4 K6
+ 0x5C180600, // 0010 MOVE R6 R3
+ 0x7C100400, // 0011 CALL R4 2
+ 0x8C100707, // 0012 GETMET R4 R3 K7
+ 0x5C180400, // 0013 MOVE R6 R2
+ 0x7C100400, // 0014 CALL R4 2
+ 0x8C100708, // 0015 GETMET R4 R3 K8
+ 0x7C100200, // 0016 CALL R4 1
+ 0x80040600, // 0017 RET 1 R3
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_session_by_source_node_id
+********************************************************************/
+be_local_closure(Matter_Session_Store_get_session_by_source_node_id, /* name */
+ be_nested_proto(
+ 8, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str_weak(sessions),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str_weak(_source_node_id),
+ /* K3 */ be_nested_str_weak(update),
+ /* K4 */ be_const_int(1),
+ }),
+ be_str_weak(get_session_by_source_node_id),
+ &be_const_str_solidified,
+ ( &(const binstruction[22]) { /* code */
+ 0x4C080000, // 0000 LDNIL R2
+ 0x1C080202, // 0001 EQ R2 R1 R2
+ 0x780A0001, // 0002 JMPF R2 #0005
+ 0x4C080000, // 0003 LDNIL R2
+ 0x80040400, // 0004 RET 1 R2
+ 0x6008000C, // 0005 GETGBL R2 G12
+ 0x880C0100, // 0006 GETMBR R3 R0 K0
+ 0x7C080200, // 0007 CALL R2 1
+ 0x580C0001, // 0008 LDCONST R3 K1
+ 0x88100100, // 0009 GETMBR R4 R0 K0
+ 0x14140602, // 000A LT R5 R3 R2
+ 0x78160008, // 000B JMPF R5 #0015
+ 0x94140803, // 000C GETIDX R5 R4 R3
+ 0x88180B02, // 000D GETMBR R6 R5 K2
+ 0x1C180C01, // 000E EQ R6 R6 R1
+ 0x781A0002, // 000F JMPF R6 #0013
+ 0x8C180B03, // 0010 GETMET R6 R5 K3
+ 0x7C180200, // 0011 CALL R6 1
+ 0x80040A00, // 0012 RET 1 R5
+ 0x000C0704, // 0013 ADD R3 R3 K4
+ 0x7001FFF4, // 0014 JMP #000A
+ 0x80000000, // 0015 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: add_session
+********************************************************************/
+be_local_closure(Matter_Session_Store_add_session, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 3, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str_weak(set_expire_in_seconds),
+ /* K1 */ be_nested_str_weak(sessions),
+ /* K2 */ be_nested_str_weak(push),
+ }),
+ be_str_weak(add_session),
+ &be_const_str_solidified,
+ ( &(const binstruction[11]) { /* code */
+ 0x4C0C0000, // 0000 LDNIL R3
+ 0x200C0403, // 0001 NE R3 R2 R3
+ 0x780E0002, // 0002 JMPF R3 #0006
+ 0x8C0C0300, // 0003 GETMET R3 R1 K0
+ 0x5C140400, // 0004 MOVE R5 R2
+ 0x7C0C0400, // 0005 CALL R3 2
+ 0x880C0101, // 0006 GETMBR R3 R0 K1
+ 0x8C0C0702, // 0007 GETMET R3 R3 K2
+ 0x5C140200, // 0008 MOVE R5 R1
+ 0x7C0C0400, // 0009 CALL R3 2
+ 0x80000000, // 000A RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: count_active_fabrics
+********************************************************************/
+be_local_closure(Matter_Session_Store_count_active_fabrics, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str_weak(remove_expired),
+ /* K1 */ be_nested_str_weak(fabrics),
+ /* K2 */ be_nested_str_weak(count_persistables),
+ }),
+ be_str_weak(count_active_fabrics),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x7C040200, // 0001 CALL R1 1
+ 0x88040101, // 0002 GETMBR R1 R0 K1
+ 0x8C040302, // 0003 GETMET R1 R1 K2
+ 0x7C040200, // 0004 CALL R1 1
+ 0x80040200, // 0005 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_expired
+********************************************************************/
+be_local_closure(Matter_Session_Store_remove_expired, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str_weak(sessions),
+ /* K1 */ be_nested_str_weak(every_second),
+ /* K2 */ be_nested_str_weak(fabrics),
+ }),
+ be_str_weak(remove_expired),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 7]) { /* code */
+ 0x88040100, // 0000 GETMBR R1 R0 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x7C040200, // 0002 CALL R1 1
+ 0x88040102, // 0003 GETMBR R1 R0 K2
+ 0x8C040301, // 0004 GETMET R1 R1 K1
+ 0x7C040200, // 0005 CALL R1 1
+ 0x80000000, // 0006 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: find_children_fabrics
+********************************************************************/
+be_local_closure(Matter_Session_Store_find_children_fabrics, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 1, /* has sup protos */
+ ( &(const struct bproto*[ 1]) {
+ be_nested_proto(
+ 7, /* nstack */
+ 1, /* argc */
+ 0, /* varg */
+ 1, /* has upvals */
+ ( &(const bupvaldesc[ 3]) { /* upvals */
+ be_local_const_upval(1, 0),
+ be_local_const_upval(1, 2),
+ be_local_const_upval(1, 3),
+ }),
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_nested_str_weak(active_fabrics),
+ /* K1 */ be_nested_str_weak(fabric_parent),
+ /* K2 */ be_nested_str_weak(find),
+ /* K3 */ be_nested_str_weak(fabric_index),
+ /* K4 */ be_nested_str_weak(push),
+ /* K5 */ be_nested_str_weak(stop_iteration),
+ }),
+ be_str_weak(find_children_fabrics_inner),
+ &be_const_str_solidified,
+ ( &(const binstruction[30]) { /* code */
+ 0x60040010, // 0000 GETGBL R1 G16
+ 0x68080000, // 0001 GETUPV R2 U0
+ 0x8C080500, // 0002 GETMET R2 R2 K0
+ 0x7C080200, // 0003 CALL R2 1
+ 0x7C040200, // 0004 CALL R1 1
+ 0xA8020013, // 0005 EXBLK 0 #001A
+ 0x5C080200, // 0006 MOVE R2 R1
+ 0x7C080000, // 0007 CALL R2 0
+ 0x880C0501, // 0008 GETMBR R3 R2 K1
+ 0x1C0C0600, // 0009 EQ R3 R3 R0
+ 0x780E000D, // 000A JMPF R3 #0019
+ 0x680C0001, // 000B GETUPV R3 U1
+ 0x8C0C0702, // 000C GETMET R3 R3 K2
+ 0x7C0C0200, // 000D CALL R3 1
+ 0x4C100000, // 000E LDNIL R4
+ 0x1C0C0604, // 000F EQ R3 R3 R4
+ 0x780E0007, // 0010 JMPF R3 #0019
+ 0x880C0503, // 0011 GETMBR R3 R2 K3
+ 0x68100001, // 0012 GETUPV R4 U1
+ 0x8C100904, // 0013 GETMET R4 R4 K4
+ 0x5C180600, // 0014 MOVE R6 R3
+ 0x7C100400, // 0015 CALL R4 2
+ 0x68100002, // 0016 GETUPV R4 U2
+ 0x5C140600, // 0017 MOVE R5 R3
+ 0x7C100200, // 0018 CALL R4 1
+ 0x7001FFEB, // 0019 JMP #0006
+ 0x58040005, // 001A LDCONST R1 K5
+ 0xAC040200, // 001B CATCH R1 1 0
+ 0xB0080000, // 001C RAISE 2 R0 R0
+ 0x80000000, // 001D RET 0
+ })
+ ),
+ }),
+ 0, /* has constants */
+ NULL, /* no const */
+ be_str_weak(find_children_fabrics),
+ &be_const_str_solidified,
+ ( &(const binstruction[15]) { /* code */
+ 0x4C080000, // 0000 LDNIL R2
+ 0x1C080202, // 0001 EQ R2 R1 R2
+ 0x780A0002, // 0002 JMPF R2 #0006
+ 0x60080012, // 0003 GETGBL R2 G18
+ 0x7C080000, // 0004 CALL R2 0
+ 0x80040400, // 0005 RET 1 R2
+ 0x60080012, // 0006 GETGBL R2 G18
+ 0x7C080000, // 0007 CALL R2 0
+ 0x400C0401, // 0008 CONNECT R3 R2 R1
+ 0x840C0000, // 0009 CLOSURE R3 P0
+ 0x5C100600, // 000A MOVE R4 R3
+ 0x5C140200, // 000B MOVE R5 R1
+ 0x7C100200, // 000C CALL R4 1
+ 0xA0000000, // 000D CLOSE R0
+ 0x80040400, // 000E RET 1 R2
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: find_fabric_by_index
+********************************************************************/
+be_local_closure(Matter_Session_Store_find_fabric_by_index, /* name */
+ be_nested_proto(
+ 6, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str_weak(active_fabrics),
+ /* K1 */ be_nested_str_weak(get_fabric_index),
+ /* K2 */ be_nested_str_weak(stop_iteration),
+ }),
+ be_str_weak(find_fabric_by_index),
+ &be_const_str_solidified,
+ ( &(const binstruction[19]) { /* code */
+ 0x60080010, // 0000 GETGBL R2 G16
+ 0x8C0C0100, // 0001 GETMET R3 R0 K0
+ 0x7C0C0200, // 0002 CALL R3 1
+ 0x7C080200, // 0003 CALL R2 1
+ 0xA8020008, // 0004 EXBLK 0 #000E
+ 0x5C0C0400, // 0005 MOVE R3 R2
+ 0x7C0C0000, // 0006 CALL R3 0
+ 0x8C100701, // 0007 GETMET R4 R3 K1
+ 0x7C100200, // 0008 CALL R4 1
+ 0x1C100801, // 0009 EQ R4 R4 R1
+ 0x78120001, // 000A JMPF R4 #000D
+ 0xA8040001, // 000B EXBLK 1 1
+ 0x80040600, // 000C RET 1 R3
+ 0x7001FFF6, // 000D JMP #0005
+ 0x58080002, // 000E LDCONST R2 K2
+ 0xAC080200, // 000F CATCH R2 1 0
+ 0xB0080000, // 0010 RAISE 2 R0 R0
+ 0x4C080000, // 0011 LDNIL R2
+ 0x80040400, // 0012 RET 1 R2
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: next_fabric_idx
+********************************************************************/
+be_local_closure(Matter_Session_Store_next_fabric_idx, /* name */
+ be_nested_proto(
+ 7, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_nested_str_weak(remove_expired),
+ /* K1 */ be_const_int(1),
+ /* K2 */ be_nested_str_weak(active_fabrics),
+ /* K3 */ be_nested_str_weak(fabric_index),
+ /* K4 */ be_nested_str_weak(int),
+ /* K5 */ be_nested_str_weak(stop_iteration),
+ }),
+ be_str_weak(next_fabric_idx),
+ &be_const_str_solidified,
+ ( &(const binstruction[25]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x7C040200, // 0001 CALL R1 1
+ 0x58040001, // 0002 LDCONST R1 K1
+ 0x60080010, // 0003 GETGBL R2 G16
+ 0x8C0C0102, // 0004 GETMET R3 R0 K2
+ 0x7C0C0200, // 0005 CALL R3 1
+ 0x7C080200, // 0006 CALL R2 1
+ 0xA802000C, // 0007 EXBLK 0 #0015
+ 0x5C0C0400, // 0008 MOVE R3 R2
+ 0x7C0C0000, // 0009 CALL R3 0
+ 0x88100703, // 000A GETMBR R4 R3 K3
+ 0x60140004, // 000B GETGBL R5 G4
+ 0x5C180800, // 000C MOVE R6 R4
+ 0x7C140200, // 000D CALL R5 1
+ 0x1C140B04, // 000E EQ R5 R5 K4
+ 0x78160003, // 000F JMPF R5 #0014
+ 0x28140801, // 0010 GE R5 R4 R1
+ 0x78160001, // 0011 JMPF R5 #0014
+ 0x00140901, // 0012 ADD R5 R4 K1
+ 0x5C040A00, // 0013 MOVE R1 R5
+ 0x7001FFF2, // 0014 JMP #0008
+ 0x58080005, // 0015 LDCONST R2 K5
+ 0xAC080200, // 0016 CATCH R2 1 0
+ 0xB0080000, // 0017 RAISE 2 R0 R0
+ 0x80040200, // 0018 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: get_session_by_local_session_id
+********************************************************************/
+be_local_closure(Matter_Session_Store_get_session_by_local_session_id, /* name */
+ be_nested_proto(
+ 8, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 5]) { /* constants */
+ /* K0 */ be_nested_str_weak(sessions),
+ /* K1 */ be_const_int(0),
+ /* K2 */ be_nested_str_weak(local_session_id),
+ /* K3 */ be_nested_str_weak(update),
+ /* K4 */ be_const_int(1),
+ }),
+ be_str_weak(get_session_by_local_session_id),
+ &be_const_str_solidified,
+ ( &(const binstruction[22]) { /* code */
+ 0x4C080000, // 0000 LDNIL R2
+ 0x1C080202, // 0001 EQ R2 R1 R2
+ 0x780A0001, // 0002 JMPF R2 #0005
+ 0x4C080000, // 0003 LDNIL R2
+ 0x80040400, // 0004 RET 1 R2
+ 0x6008000C, // 0005 GETGBL R2 G12
+ 0x880C0100, // 0006 GETMBR R3 R0 K0
+ 0x7C080200, // 0007 CALL R2 1
+ 0x580C0001, // 0008 LDCONST R3 K1
+ 0x88100100, // 0009 GETMBR R4 R0 K0
+ 0x14140602, // 000A LT R5 R3 R2
+ 0x78160008, // 000B JMPF R5 #0015
+ 0x94140803, // 000C GETIDX R5 R4 R3
+ 0x88180B02, // 000D GETMBR R6 R5 K2
+ 0x1C180C01, // 000E EQ R6 R6 R1
+ 0x781A0002, // 000F JMPF R6 #0013
+ 0x8C180B03, // 0010 GETMET R6 R5 K3
+ 0x7C180200, // 0011 CALL R6 1
+ 0x80040A00, // 0012 RET 1 R5
+ 0x000C0704, // 0013 ADD R3 R3 K4
+ 0x7001FFF4, // 0014 JMP #000A
+ 0x80000000, // 0015 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: active_fabrics
+********************************************************************/
+be_local_closure(Matter_Session_Store_active_fabrics, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 3]) { /* constants */
+ /* K0 */ be_nested_str_weak(remove_expired),
+ /* K1 */ be_nested_str_weak(fabrics),
+ /* K2 */ be_nested_str_weak(persistables),
+ }),
+ be_str_weak(active_fabrics),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 6]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x7C040200, // 0001 CALL R1 1
+ 0x88040101, // 0002 GETMBR R1 R0 K1
+ 0x8C040302, // 0003 GETMET R1 R1 K2
+ 0x7C040200, // 0004 CALL R1 1
+ 0x80040200, // 0005 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: every_second
+********************************************************************/
+be_local_closure(Matter_Session_Store_every_second, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 1]) { /* constants */
+ /* K0 */ be_nested_str_weak(remove_expired),
+ }),
+ be_str_weak(every_second),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 3]) { /* code */
+ 0x8C040100, // 0000 GETMET R1 R0 K0
+ 0x7C040200, // 0001 CALL R1 1
+ 0x80000000, // 0002 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: remove_session
+********************************************************************/
+be_local_closure(Matter_Session_Store_remove_session, /* name */
+ be_nested_proto(
+ 7, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 4]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str_weak(sessions),
+ /* K2 */ be_nested_str_weak(remove),
+ /* K3 */ be_const_int(1),
+ }),
+ be_str_weak(remove_session),
+ &be_const_str_solidified,
+ ( &(const binstruction[17]) { /* code */
+ 0x58080000, // 0000 LDCONST R2 K0
+ 0x880C0101, // 0001 GETMBR R3 R0 K1
+ 0x6010000C, // 0002 GETGBL R4 G12
+ 0x88140101, // 0003 GETMBR R5 R0 K1
+ 0x7C100200, // 0004 CALL R4 1
+ 0x14100404, // 0005 LT R4 R2 R4
+ 0x78120008, // 0006 JMPF R4 #0010
+ 0x94100602, // 0007 GETIDX R4 R3 R2
+ 0x1C100801, // 0008 EQ R4 R4 R1
+ 0x78120003, // 0009 JMPF R4 #000E
+ 0x8C100702, // 000A GETMET R4 R3 K2
+ 0x5C180400, // 000B MOVE R6 R2
+ 0x7C100400, // 000C CALL R4 2
+ 0x70020000, // 000D JMP #000F
+ 0x00080503, // 000E ADD R2 R2 K3
+ 0x7001FFF1, // 000F JMP #0002
+ 0x80000000, // 0010 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: init
+********************************************************************/
+be_local_closure(Matter_Session_Store_init, /* name */
+ be_nested_proto(
+ 3, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 4]) { /* constants */
+ /* K0 */ be_nested_str_weak(sessions),
+ /* K1 */ be_nested_str_weak(matter),
+ /* K2 */ be_nested_str_weak(Expirable_list),
+ /* K3 */ be_nested_str_weak(fabrics),
+ }),
+ be_str_weak(init),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 9]) { /* code */
+ 0xB8060200, // 0000 GETNGBL R1 K1
+ 0x8C040302, // 0001 GETMET R1 R1 K2
+ 0x7C040200, // 0002 CALL R1 1
+ 0x90020001, // 0003 SETMBR R0 K0 R1
+ 0xB8060200, // 0004 GETNGBL R1 K1
+ 0x8C040302, // 0005 GETMET R1 R1 K2
+ 0x7C040200, // 0006 CALL R1 1
+ 0x90020601, // 0007 SETMBR R0 K3 R1
+ 0x80000000, // 0008 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: create_session
+********************************************************************/
+be_local_closure(Matter_Session_Store_create_session, /* name */
+ be_nested_proto(
+ 9, /* nstack */
+ 3, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_nested_str_weak(get_session_by_local_session_id),
+ /* K1 */ be_nested_str_weak(remove_session),
+ /* K2 */ be_nested_str_weak(matter),
+ /* K3 */ be_nested_str_weak(Session),
+ /* K4 */ be_nested_str_weak(sessions),
+ /* K5 */ be_nested_str_weak(push),
+ }),
+ be_str_weak(create_session),
+ &be_const_str_solidified,
+ ( &(const binstruction[21]) { /* code */
+ 0x8C0C0100, // 0000 GETMET R3 R0 K0
+ 0x5C140200, // 0001 MOVE R5 R1
+ 0x7C0C0400, // 0002 CALL R3 2
+ 0x4C100000, // 0003 LDNIL R4
+ 0x20100604, // 0004 NE R4 R3 R4
+ 0x78120002, // 0005 JMPF R4 #0009
+ 0x8C100101, // 0006 GETMET R4 R0 K1
+ 0x5C180600, // 0007 MOVE R6 R3
+ 0x7C100400, // 0008 CALL R4 2
+ 0xB8120400, // 0009 GETNGBL R4 K2
+ 0x8C100903, // 000A GETMET R4 R4 K3
+ 0x5C180000, // 000B MOVE R6 R0
+ 0x5C1C0200, // 000C MOVE R7 R1
+ 0x5C200400, // 000D MOVE R8 R2
+ 0x7C100800, // 000E CALL R4 4
+ 0x5C0C0800, // 000F MOVE R3 R4
+ 0x88100104, // 0010 GETMBR R4 R0 K4
+ 0x8C100905, // 0011 GETMET R4 R4 K5
+ 0x5C180600, // 0012 MOVE R6 R3
+ 0x7C100400, // 0013 CALL R4 2
+ 0x80040600, // 0014 RET 1 R3
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: save_fabrics
+********************************************************************/
+be_local_closure(Matter_Session_Store_save_fabrics, /* name */
+ be_nested_proto(
+ 14, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[26]) { /* constants */
+ /* K0 */ be_nested_str_weak(json),
+ /* K1 */ be_nested_str_weak(remove_expired),
+ /* K2 */ be_const_int(0),
+ /* K3 */ be_nested_str_weak(fabrics),
+ /* K4 */ be_nested_str_weak(persistables),
+ /* K5 */ be_nested_str_weak(_sessions),
+ /* K6 */ be_const_int(1),
+ /* K7 */ be_nested_str_weak(stop_iteration),
+ /* K8 */ be_nested_str_weak(push),
+ /* K9 */ be_nested_str_weak(tojson),
+ /* K10 */ be_nested_str_weak(_X5B),
+ /* K11 */ be_nested_str_weak(concat),
+ /* K12 */ be_nested_str_weak(_X2C),
+ /* K13 */ be_nested_str_weak(_X5D),
+ /* K14 */ be_nested_str_weak(string),
+ /* K15 */ be_nested_str_weak(_FABRICS),
+ /* K16 */ be_nested_str_weak(w),
+ /* K17 */ be_nested_str_weak(write),
+ /* K18 */ be_nested_str_weak(close),
+ /* K19 */ be_nested_str_weak(tasmota),
+ /* K20 */ be_nested_str_weak(log),
+ /* K21 */ be_nested_str_weak(format),
+ /* K22 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25i_X20fabric_X28s_X29_X20and_X20_X25i_X20session_X28s_X29),
+ /* K23 */ be_const_int(2),
+ /* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A),
+ /* K25 */ be_nested_str_weak(_X7C),
+ }),
+ be_str_weak(save_fabrics),
+ &be_const_str_solidified,
+ ( &(const binstruction[84]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0x8C080101, // 0001 GETMET R2 R0 K1
+ 0x7C080200, // 0002 CALL R2 1
+ 0x58080002, // 0003 LDCONST R2 K2
+ 0x600C0012, // 0004 GETGBL R3 G18
+ 0x7C0C0000, // 0005 CALL R3 0
+ 0x60100010, // 0006 GETGBL R4 G16
+ 0x88140103, // 0007 GETMBR R5 R0 K3
+ 0x8C140B04, // 0008 GETMET R5 R5 K4
+ 0x7C140200, // 0009 CALL R5 1
+ 0x7C100200, // 000A CALL R4 1
+ 0xA8020013, // 000B EXBLK 0 #0020
+ 0x5C140800, // 000C MOVE R5 R4
+ 0x7C140000, // 000D CALL R5 0
+ 0x60180010, // 000E GETGBL R6 G16
+ 0x881C0B05, // 000F GETMBR R7 R5 K5
+ 0x8C1C0F04, // 0010 GETMET R7 R7 K4
+ 0x7C1C0200, // 0011 CALL R7 1
+ 0x7C180200, // 0012 CALL R6 1
+ 0xA8020003, // 0013 EXBLK 0 #0018
+ 0x5C1C0C00, // 0014 MOVE R7 R6
+ 0x7C1C0000, // 0015 CALL R7 0
+ 0x00080506, // 0016 ADD R2 R2 K6
+ 0x7001FFFB, // 0017 JMP #0014
+ 0x58180007, // 0018 LDCONST R6 K7
+ 0xAC180200, // 0019 CATCH R6 1 0
+ 0xB0080000, // 001A RAISE 2 R0 R0
+ 0x8C180708, // 001B GETMET R6 R3 K8
+ 0x8C200B09, // 001C GETMET R8 R5 K9
+ 0x7C200200, // 001D CALL R8 1
+ 0x7C180400, // 001E CALL R6 2
+ 0x7001FFEB, // 001F JMP #000C
+ 0x58100007, // 0020 LDCONST R4 K7
+ 0xAC100200, // 0021 CATCH R4 1 0
+ 0xB0080000, // 0022 RAISE 2 R0 R0
+ 0x6010000C, // 0023 GETGBL R4 G12
+ 0x5C140600, // 0024 MOVE R5 R3
+ 0x7C100200, // 0025 CALL R4 1
+ 0x8C14070B, // 0026 GETMET R5 R3 K11
+ 0x581C000C, // 0027 LDCONST R7 K12
+ 0x7C140400, // 0028 CALL R5 2
+ 0x00161405, // 0029 ADD R5 K10 R5
+ 0x00140B0D, // 002A ADD R5 R5 K13
+ 0x5C0C0A00, // 002B MOVE R3 R5
+ 0xA8020014, // 002C EXBLK 0 #0042
+ 0xA4161C00, // 002D IMPORT R5 K14
+ 0x60180011, // 002E GETGBL R6 G17
+ 0x881C010F, // 002F GETMBR R7 R0 K15
+ 0x58200010, // 0030 LDCONST R8 K16
+ 0x7C180400, // 0031 CALL R6 2
+ 0x8C1C0D11, // 0032 GETMET R7 R6 K17
+ 0x5C240600, // 0033 MOVE R9 R3
+ 0x7C1C0400, // 0034 CALL R7 2
+ 0x8C1C0D12, // 0035 GETMET R7 R6 K18
+ 0x7C1C0200, // 0036 CALL R7 1
+ 0xB81E2600, // 0037 GETNGBL R7 K19
+ 0x8C1C0F14, // 0038 GETMET R7 R7 K20
+ 0x8C240B15, // 0039 GETMET R9 R5 K21
+ 0x582C0016, // 003A LDCONST R11 K22
+ 0x5C300800, // 003B MOVE R12 R4
+ 0x5C340400, // 003C MOVE R13 R2
+ 0x7C240800, // 003D CALL R9 4
+ 0x58280017, // 003E LDCONST R10 K23
+ 0x7C1C0600, // 003F CALL R7 3
+ 0xA8040001, // 0040 EXBLK 1 1
+ 0x70020010, // 0041 JMP #0053
+ 0xAC140002, // 0042 CATCH R5 0 2
+ 0x7002000D, // 0043 JMP #0052
+ 0xB81E2600, // 0044 GETNGBL R7 K19
+ 0x8C1C0F14, // 0045 GETMET R7 R7 K20
+ 0x60240008, // 0046 GETGBL R9 G8
+ 0x5C280A00, // 0047 MOVE R10 R5
+ 0x7C240200, // 0048 CALL R9 1
+ 0x00263009, // 0049 ADD R9 K24 R9
+ 0x00241319, // 004A ADD R9 R9 K25
+ 0x60280008, // 004B GETGBL R10 G8
+ 0x5C2C0C00, // 004C MOVE R11 R6
+ 0x7C280200, // 004D CALL R10 1
+ 0x0024120A, // 004E ADD R9 R9 R10
+ 0x58280017, // 004F LDCONST R10 K23
+ 0x7C1C0600, // 0050 CALL R7 3
+ 0x70020000, // 0051 JMP #0053
+ 0xB0080000, // 0052 RAISE 2 R0 R0
+ 0x80000000, // 0053 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: load_fabrics
+********************************************************************/
+be_local_closure(Matter_Session_Store_load_fabrics, /* name */
+ be_nested_proto(
+ 17, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[29]) { /* constants */
+ /* K0 */ be_nested_str_weak(string),
+ /* K1 */ be_nested_str_weak(sessions),
+ /* K2 */ be_nested_str_weak(matter),
+ /* K3 */ be_nested_str_weak(Expirable_list),
+ /* K4 */ be_nested_str_weak(fabrics),
+ /* K5 */ be_nested_str_weak(_FABRICS),
+ /* K6 */ be_nested_str_weak(read),
+ /* K7 */ be_nested_str_weak(close),
+ /* K8 */ be_nested_str_weak(json),
+ /* K9 */ be_nested_str_weak(load),
+ /* K10 */ be_nested_str_weak(tasmota),
+ /* K11 */ be_nested_str_weak(gc),
+ /* K12 */ be_nested_str_weak(Fabric),
+ /* K13 */ be_nested_str_weak(fromjson),
+ /* K14 */ be_nested_str_weak(set_no_expiration),
+ /* K15 */ be_nested_str_weak(set_persist),
+ /* K16 */ be_nested_str_weak(find),
+ /* K17 */ be_nested_str_weak(_sessions),
+ /* K18 */ be_nested_str_weak(Session),
+ /* K19 */ be_nested_str_weak(add_session),
+ /* K20 */ be_nested_str_weak(stop_iteration),
+ /* K21 */ be_nested_str_weak(push),
+ /* K22 */ be_nested_str_weak(log),
+ /* K23 */ be_nested_str_weak(format),
+ /* K24 */ be_nested_str_weak(MTR_X3A_X20Loaded_X20_X25i_X20fabric_X28s_X29),
+ /* K25 */ be_const_int(2),
+ /* K26 */ be_nested_str_weak(io_error),
+ /* K27 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A),
+ /* K28 */ be_nested_str_weak(_X7C),
+ }),
+ be_str_weak(load_fabrics),
+ &be_const_str_solidified,
+ ( &(const binstruction[118]) { /* code */
+ 0xA4060000, // 0000 IMPORT R1 K0
+ 0xA802005F, // 0001 EXBLK 0 #0062
+ 0xB80A0400, // 0002 GETNGBL R2 K2
+ 0x8C080503, // 0003 GETMET R2 R2 K3
+ 0x7C080200, // 0004 CALL R2 1
+ 0x90020202, // 0005 SETMBR R0 K1 R2
+ 0xB80A0400, // 0006 GETNGBL R2 K2
+ 0x8C080503, // 0007 GETMET R2 R2 K3
+ 0x7C080200, // 0008 CALL R2 1
+ 0x90020802, // 0009 SETMBR R0 K4 R2
+ 0x60080011, // 000A GETGBL R2 G17
+ 0x880C0105, // 000B GETMBR R3 R0 K5
+ 0x7C080200, // 000C CALL R2 1
+ 0x8C0C0506, // 000D GETMET R3 R2 K6
+ 0x7C0C0200, // 000E CALL R3 1
+ 0x8C100507, // 000F GETMET R4 R2 K7
+ 0x7C100200, // 0010 CALL R4 1
+ 0xA4121000, // 0011 IMPORT R4 K8
+ 0x8C140909, // 0012 GETMET R5 R4 K9
+ 0x5C1C0600, // 0013 MOVE R7 R3
+ 0x7C140400, // 0014 CALL R5 2
+ 0x4C0C0000, // 0015 LDNIL R3
+ 0xB81A1400, // 0016 GETNGBL R6 K10
+ 0x8C180D0B, // 0017 GETMET R6 R6 K11
+ 0x7C180200, // 0018 CALL R6 1
+ 0x60180010, // 0019 GETGBL R6 G16
+ 0x5C1C0A00, // 001A MOVE R7 R5
+ 0x7C180200, // 001B CALL R6 1
+ 0xA8020035, // 001C EXBLK 0 #0053
+ 0x5C1C0C00, // 001D MOVE R7 R6
+ 0x7C1C0000, // 001E CALL R7 0
+ 0xB8220400, // 001F GETNGBL R8 K2
+ 0x8820110C, // 0020 GETMBR R8 R8 K12
+ 0x8C20110D, // 0021 GETMET R8 R8 K13
+ 0x5C280000, // 0022 MOVE R10 R0
+ 0x5C2C0E00, // 0023 MOVE R11 R7
+ 0x7C200600, // 0024 CALL R8 3
+ 0x8C24110E, // 0025 GETMET R9 R8 K14
+ 0x7C240200, // 0026 CALL R9 1
+ 0x8C24110F, // 0027 GETMET R9 R8 K15
+ 0x502C0200, // 0028 LDBOOL R11 1 0
+ 0x7C240400, // 0029 CALL R9 2
+ 0x8C240F10, // 002A GETMET R9 R7 K16
+ 0x582C0011, // 002B LDCONST R11 K17
+ 0x60300012, // 002C GETGBL R12 G18
+ 0x7C300000, // 002D CALL R12 0
+ 0x7C240600, // 002E CALL R9 3
+ 0x60280010, // 002F GETGBL R10 G16
+ 0x5C2C1200, // 0030 MOVE R11 R9
+ 0x7C280200, // 0031 CALL R10 1
+ 0xA8020017, // 0032 EXBLK 0 #004B
+ 0x5C2C1400, // 0033 MOVE R11 R10
+ 0x7C2C0000, // 0034 CALL R11 0
+ 0xB8320400, // 0035 GETNGBL R12 K2
+ 0x88301912, // 0036 GETMBR R12 R12 K18
+ 0x8C30190D, // 0037 GETMET R12 R12 K13
+ 0x5C380000, // 0038 MOVE R14 R0
+ 0x5C3C1600, // 0039 MOVE R15 R11
+ 0x5C401000, // 003A MOVE R16 R8
+ 0x7C300800, // 003B CALL R12 4
+ 0x4C340000, // 003C LDNIL R13
+ 0x2034180D, // 003D NE R13 R12 R13
+ 0x7836000A, // 003E JMPF R13 #004A
+ 0x8C34190E, // 003F GETMET R13 R12 K14
+ 0x7C340200, // 0040 CALL R13 1
+ 0x8C34190F, // 0041 GETMET R13 R12 K15
+ 0x503C0200, // 0042 LDBOOL R15 1 0
+ 0x7C340400, // 0043 CALL R13 2
+ 0x8C340113, // 0044 GETMET R13 R0 K19
+ 0x5C3C1800, // 0045 MOVE R15 R12
+ 0x7C340400, // 0046 CALL R13 2
+ 0x8C341113, // 0047 GETMET R13 R8 K19
+ 0x5C3C1800, // 0048 MOVE R15 R12
+ 0x7C340400, // 0049 CALL R13 2
+ 0x7001FFE7, // 004A JMP #0033
+ 0x58280014, // 004B LDCONST R10 K20
+ 0xAC280200, // 004C CATCH R10 1 0
+ 0xB0080000, // 004D RAISE 2 R0 R0
+ 0x88280104, // 004E GETMBR R10 R0 K4
+ 0x8C281515, // 004F GETMET R10 R10 K21
+ 0x5C301000, // 0050 MOVE R12 R8
+ 0x7C280400, // 0051 CALL R10 2
+ 0x7001FFC9, // 0052 JMP #001D
+ 0x58180014, // 0053 LDCONST R6 K20
+ 0xAC180200, // 0054 CATCH R6 1 0
+ 0xB0080000, // 0055 RAISE 2 R0 R0
+ 0xB81A1400, // 0056 GETNGBL R6 K10
+ 0x8C180D16, // 0057 GETMET R6 R6 K22
+ 0x8C200317, // 0058 GETMET R8 R1 K23
+ 0x58280018, // 0059 LDCONST R10 K24
+ 0x602C000C, // 005A GETGBL R11 G12
+ 0x88300104, // 005B GETMBR R12 R0 K4
+ 0x7C2C0200, // 005C CALL R11 1
+ 0x7C200600, // 005D CALL R8 3
+ 0x58240019, // 005E LDCONST R9 K25
+ 0x7C180600, // 005F CALL R6 3
+ 0xA8040001, // 0060 EXBLK 1 1
+ 0x70020012, // 0061 JMP #0075
+ 0xAC080002, // 0062 CATCH R2 0 2
+ 0x7002000F, // 0063 JMP #0074
+ 0x2010051A, // 0064 NE R4 R2 K26
+ 0x7812000C, // 0065 JMPF R4 #0073
+ 0xB8121400, // 0066 GETNGBL R4 K10
+ 0x8C100916, // 0067 GETMET R4 R4 K22
+ 0x60180008, // 0068 GETGBL R6 G8
+ 0x5C1C0400, // 0069 MOVE R7 R2
+ 0x7C180200, // 006A CALL R6 1
+ 0x001A3606, // 006B ADD R6 K27 R6
+ 0x00180D1C, // 006C ADD R6 R6 K28
+ 0x601C0008, // 006D GETGBL R7 G8
+ 0x5C200600, // 006E MOVE R8 R3
+ 0x7C1C0200, // 006F CALL R7 1
+ 0x00180C07, // 0070 ADD R6 R6 R7
+ 0x581C0019, // 0071 LDCONST R7 K25
+ 0x7C100600, // 0072 CALL R4 3
+ 0x70020000, // 0073 JMP #0075
+ 0xB0080000, // 0074 RAISE 2 R0 R0
+ 0x80000000, // 0075 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: sessions_active
+********************************************************************/
+be_local_closure(Matter_Session_Store_sessions_active, /* name */
+ be_nested_proto(
+ 7, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 6]) { /* constants */
+ /* K0 */ be_const_int(0),
+ /* K1 */ be_nested_str_weak(sessions),
+ /* K2 */ be_nested_str_weak(get_device_id),
+ /* K3 */ be_nested_str_weak(get_fabric_id),
+ /* K4 */ be_nested_str_weak(push),
+ /* K5 */ be_const_int(1),
+ }),
+ be_str_weak(sessions_active),
+ &be_const_str_solidified,
+ ( &(const binstruction[22]) { /* code */
+ 0x60040012, // 0000 GETGBL R1 G18
+ 0x7C040000, // 0001 CALL R1 0
+ 0x58080000, // 0002 LDCONST R2 K0
+ 0x600C000C, // 0003 GETGBL R3 G12
+ 0x88100101, // 0004 GETMBR R4 R0 K1
+ 0x7C0C0200, // 0005 CALL R3 1
+ 0x140C0403, // 0006 LT R3 R2 R3
+ 0x780E000C, // 0007 JMPF R3 #0015
+ 0x880C0101, // 0008 GETMBR R3 R0 K1
+ 0x940C0602, // 0009 GETIDX R3 R3 R2
+ 0x8C100702, // 000A GETMET R4 R3 K2
+ 0x7C100200, // 000B CALL R4 1
+ 0x78120005, // 000C JMPF R4 #0013
+ 0x8C100703, // 000D GETMET R4 R3 K3
+ 0x7C100200, // 000E CALL R4 1
+ 0x78120002, // 000F JMPF R4 #0013
+ 0x8C100304, // 0010 GETMET R4 R1 K4
+ 0x5C180600, // 0011 MOVE R6 R3
+ 0x7C100400, // 0012 CALL R4 2
+ 0x00080505, // 0013 ADD R2 R2 K5
+ 0x7001FFED, // 0014 JMP #0003
+ 0x80040200, // 0015 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: create_fabric
+********************************************************************/
+be_local_closure(Matter_Session_Store_create_fabric, /* name */
+ be_nested_proto(
+ 4, /* nstack */
+ 1, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 2]) { /* constants */
+ /* K0 */ be_nested_str_weak(matter),
+ /* K1 */ be_nested_str_weak(Fabric),
+ }),
+ be_str_weak(create_fabric),
+ &be_const_str_solidified,
+ ( &(const binstruction[ 5]) { /* code */
+ 0xB8060000, // 0000 GETNGBL R1 K0
+ 0x8C040301, // 0001 GETMET R1 R1 K1
+ 0x5C0C0000, // 0002 MOVE R3 R0
+ 0x7C040400, // 0003 CALL R1 2
+ 0x80040200, // 0004 RET 1 R1
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified function: add_fabric
+********************************************************************/
+be_local_closure(Matter_Session_Store_add_fabric, /* name */
+ be_nested_proto(
+ 5, /* nstack */
+ 2, /* argc */
+ 2, /* varg */
+ 0, /* has upvals */
+ NULL, /* no upvals */
+ 0, /* has sup protos */
+ NULL, /* no sub protos */
+ 1, /* has constants */
+ ( &(const bvalue[ 8]) { /* constants */
+ /* K0 */ be_nested_str_weak(matter),
+ /* K1 */ be_nested_str_weak(Fabric),
+ /* K2 */ be_nested_str_weak(value_error),
+ /* K3 */ be_nested_str_weak(must_X20be_X20of_X20class_X20matter_X2EFabric),
+ /* K4 */ be_nested_str_weak(fabrics),
+ /* K5 */ be_nested_str_weak(find),
+ /* K6 */ be_nested_str_weak(remove_redundant_fabric),
+ /* K7 */ be_nested_str_weak(push),
+ }),
+ be_str_weak(add_fabric),
+ &be_const_str_solidified,
+ ( &(const binstruction[22]) { /* code */
+ 0x6008000F, // 0000 GETGBL R2 G15
+ 0x5C0C0200, // 0001 MOVE R3 R1
+ 0xB8120000, // 0002 GETNGBL R4 K0
+ 0x88100901, // 0003 GETMBR R4 R4 K1
+ 0x7C080400, // 0004 CALL R2 2
+ 0x740A0000, // 0005 JMPT R2 #0007
+ 0xB0060503, // 0006 RAISE 1 K2 K3
+ 0x88080104, // 0007 GETMBR R2 R0 K4
+ 0x8C080505, // 0008 GETMET R2 R2 K5
+ 0x5C100200, // 0009 MOVE R4 R1
+ 0x7C080400, // 000A CALL R2 2
+ 0x4C0C0000, // 000B LDNIL R3
+ 0x1C080403, // 000C EQ R2 R2 R3
+ 0x780A0006, // 000D JMPF R2 #0015
+ 0x8C080106, // 000E GETMET R2 R0 K6
+ 0x5C100200, // 000F MOVE R4 R1
+ 0x7C080400, // 0010 CALL R2 2
+ 0x88080104, // 0011 GETMBR R2 R0 K4
+ 0x8C080507, // 0012 GETMET R2 R2 K7
+ 0x5C100200, // 0013 MOVE R4 R1
+ 0x7C080400, // 0014 CALL R2 2
+ 0x80000000, // 0015 RET 0
+ })
+ )
+);
+/*******************************************************************/
+
+
+/********************************************************************
+** Solidified class: Matter_Session_Store
+********************************************************************/
+be_local_class(Matter_Session_Store,
+ 2,
+ NULL,
+ be_nested_map(26,
+ ( (struct bmapnode*) &(const bmapnode[]) {
+ { be_const_key_weak(gen_local_session_id, 25), be_const_closure(Matter_Session_Store_gen_local_session_id_closure) },
+ { be_const_key_weak(remove_redundant_fabric, 15), be_const_closure(Matter_Session_Store_remove_redundant_fabric_closure) },
+ { be_const_key_weak(find_session_by_resumption_id, -1), be_const_closure(Matter_Session_Store_find_session_by_resumption_id_closure) },
+ { be_const_key_weak(fabrics, 5), be_const_var(1) },
+ { be_const_key_weak(add_fabric, -1), be_const_closure(Matter_Session_Store_add_fabric_closure) },
+ { be_const_key_weak(create_fabric, -1), be_const_closure(Matter_Session_Store_create_fabric_closure) },
+ { be_const_key_weak(sessions_active, -1), be_const_closure(Matter_Session_Store_sessions_active_closure) },
+ { be_const_key_weak(add_session, -1), be_const_closure(Matter_Session_Store_add_session_closure) },
+ { be_const_key_weak(count_active_fabrics, -1), be_const_closure(Matter_Session_Store_count_active_fabrics_closure) },
+ { be_const_key_weak(remove_expired, 17), be_const_closure(Matter_Session_Store_remove_expired_closure) },
+ { be_const_key_weak(_FABRICS, -1), be_nested_str_weak(_matter_fabrics_X2Ejson) },
+ { be_const_key_weak(find_fabric_by_index, -1), be_const_closure(Matter_Session_Store_find_fabric_by_index_closure) },
+ { be_const_key_weak(sessions, 4), be_const_var(0) },
+ { be_const_key_weak(get_session_by_source_node_id, 11), be_const_closure(Matter_Session_Store_get_session_by_source_node_id_closure) },
+ { be_const_key_weak(next_fabric_idx, -1), be_const_closure(Matter_Session_Store_next_fabric_idx_closure) },
+ { be_const_key_weak(get_session_by_local_session_id, 24), be_const_closure(Matter_Session_Store_get_session_by_local_session_id_closure) },
+ { be_const_key_weak(active_fabrics, -1), be_const_closure(Matter_Session_Store_active_fabrics_closure) },
+ { be_const_key_weak(every_second, -1), be_const_closure(Matter_Session_Store_every_second_closure) },
+ { be_const_key_weak(remove_session, -1), be_const_closure(Matter_Session_Store_remove_session_closure) },
+ { be_const_key_weak(init, -1), be_const_closure(Matter_Session_Store_init_closure) },
+ { be_const_key_weak(create_session, -1), be_const_closure(Matter_Session_Store_create_session_closure) },
+ { be_const_key_weak(save_fabrics, -1), be_const_closure(Matter_Session_Store_save_fabrics_closure) },
+ { be_const_key_weak(load_fabrics, -1), be_const_closure(Matter_Session_Store_load_fabrics_closure) },
+ { be_const_key_weak(remove_fabric, 6), be_const_closure(Matter_Session_Store_remove_fabric_closure) },
+ { be_const_key_weak(find_children_fabrics, -1), be_const_closure(Matter_Session_Store_find_children_fabrics_closure) },
+ { be_const_key_weak(find_session_source_id_unsecure, -1), be_const_closure(Matter_Session_Store_find_session_source_id_unsecure_closure) },
+ })),
+ be_str_weak(Matter_Session_Store)
+);
+/*******************************************************************/
+
+void be_load_Matter_Session_Store_class(bvm *vm) {
+ be_pushntvclass(vm, &be_class_Matter_Session_Store);
+ be_setglobal(vm, "Matter_Session_Store");
+ be_pop(vm, 1);
+}
+/********************************************************************/
+/* End of solidification */