From 69b2b93d611b3f1a64cd039d7dea1313318445da Mon Sep 17 00:00:00 2001
From: s-hadinger <49731213+s-hadinger@users.noreply.github.com>
Date: Mon, 12 Jun 2023 19:45:18 +0200
Subject: [PATCH] Matter UI and logs polishing (#18866)
---
.../berry_matter/src/be_matter_module.c | 23 +-
.../src/embedded/Matter_Commissioning.be | 116 +-
.../src/embedded/Matter_Control_Message.be | 2 +-
.../src/embedded/Matter_Device.be | 126 +-
.../src/embedded/Matter_Fabric.be | 4 +-
.../src/embedded/Matter_HTTP_remote.be | 8 +-
.../berry_matter/src/embedded/Matter_IM.be | 48 +-
.../src/embedded/Matter_IM_Message.be | 14 +-
.../src/embedded/Matter_IM_Subscription.be | 4 +-
.../src/embedded/Matter_Message.be | 6 +-
.../src/embedded/Matter_MessageHandler.be | 30 +-
.../src/embedded/Matter_Plugin.be | 1 +
.../embedded/Matter_Plugin_Bridge_Light0.be | 1 +
.../embedded/Matter_Plugin_Bridge_OnOff.be | 1 +
.../embedded/Matter_Plugin_Bridge_Sensor.be | 1 +
.../Matter_Plugin_Bridge_Sensor_Occupancy.be | 1 +
.../src/embedded/Matter_Plugin_OnOff.be | 1 +
.../src/embedded/Matter_Plugin_Root.be | 20 +-
.../src/embedded/Matter_Plugin_Sensor.be | 1 +
.../Matter_Plugin_Sensor_Occupancy.be | 1 +
.../embedded/Matter_Plugin_Sensor_OnOff.be | 3 +-
.../src/embedded/Matter_Plugin_Shutter.be | 5 +-
.../src/embedded/Matter_Session.be | 3 +-
.../src/embedded/Matter_Session_Store.be | 6 +-
.../src/embedded/Matter_UDPServer.be | 12 +-
.../berry_matter/src/embedded/Matter_UI.be | 134 +-
.../solidified_Matter_Commissioning.h | 2700 +++--
.../solidified_Matter_Control_Message.h | 7 +-
.../src/solidify/solidified_Matter_Device.h | 8847 +++++++++--------
.../src/solidify/solidified_Matter_Fabric.h | 4 +-
.../solidify/solidified_Matter_HTTP_remote.h | 6 +-
.../src/solidify/solidified_Matter_IM.h | 644 +-
.../solidify/solidified_Matter_IM_Message.h | 186 +-
.../solidified_Matter_IM_Subscription.h | 4 +-
.../src/solidify/solidified_Matter_Message.h | 23 +-
.../solidified_Matter_MessageHandler.h | 838 +-
.../src/solidify/solidified_Matter_Plugin.h | 1493 +--
.../solidified_Matter_Plugin_Bridge_Light0.h | 653 +-
.../solidified_Matter_Plugin_Bridge_OnOff.h | 11 +-
.../solidified_Matter_Plugin_Bridge_Sensor.h | 251 +-
...ed_Matter_Plugin_Bridge_Sensor_Occupancy.h | 207 +-
.../solidify/solidified_Matter_Plugin_OnOff.h | 317 +-
.../solidify/solidified_Matter_Plugin_Root.h | 1247 ++-
.../solidified_Matter_Plugin_Sensor.h | 123 +-
...olidified_Matter_Plugin_Sensor_Occupancy.h | 83 +-
.../solidified_Matter_Plugin_Sensor_OnOff.h | 85 +-
.../solidified_Matter_Plugin_Shutter.h | 668 +-
.../src/solidify/solidified_Matter_Session.h | 63 +-
.../solidified_Matter_Session_Store.h | 51 +-
.../solidify/solidified_Matter_UDPServer.h | 168 +-
.../src/solidify/solidified_Matter_UI.h | 5221 +++++-----
tasmota/tasmota_support/support_wifi.ino | 2 +-
52 files changed, 12055 insertions(+), 12419 deletions(-)
diff --git a/lib/libesp32/berry_matter/src/be_matter_module.c b/lib/libesp32/berry_matter/src/be_matter_module.c
index 6f7af2ab0..edd3923c2 100644
--- a/lib/libesp32/berry_matter/src/be_matter_module.c
+++ b/lib/libesp32/berry_matter/src/be_matter_module.c
@@ -39,13 +39,21 @@ static const uint8_t MATTER_LOGO[] =
// Matter stylesheet
static const uint8_t MATTER_STYLESHEET[] =
- "";
+ "";
+
+static const uint8_t MATTER_ADD_ENDPOINT_HINTS_JS[] =
+ "";
extern uint32_t matter_convert_seconds_to_dhm(uint32_t seconds, char *unit, uint32_t *color, bbool days);
@@ -256,6 +264,7 @@ static int matter_CD_FFF1_8000(bvm *vm) { return matter_return_static_bytes(vm,
module matter (scope: global, strings: weak) {
_LOGO, comptr(MATTER_LOGO)
_STYLESHEET, comptr(MATTER_STYLESHEET)
+ _ADD_ENDPOINT_JS, comptr(MATTER_ADD_ENDPOINT_HINTS_JS)
MATTER_OPTION, int(151) // SetOption151 enables Matter
seconds_to_dhm, ctype_func(matter_seconds_to_dhm)
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be
index 2231d7960..0251076ba 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be
@@ -46,7 +46,7 @@ class Matter_Commisioning_Context
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)
+ tasmota.log(string.format("MTR: add_session local_session_id=%i initiator_session_id=%i", local_session_id, initiator_session_id), 4)
var session = self.device.sessions.create_session(local_session_id, initiator_session_id)
session.set_keys(i2r, r2i, ac)
@@ -59,7 +59,7 @@ class Matter_Commisioning_Context
return false
end
- tasmota.log("MTR: received message " + matter.inspect(msg), 4)
+ # tasmota.log("MTR: received message " + matter.inspect(msg), 4)
if msg.opcode == 0x10
# don't need to do anything, the message is acked already before this call
elif msg.opcode == 0x20
@@ -113,7 +113,7 @@ class Matter_Commisioning_Context
# sanity checks
if msg.opcode != 0x20 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid PBKDFParamRequest message", 2)
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -125,7 +125,7 @@ class Matter_Commisioning_Context
# sanity check for PBKDFParamRequest
if pbkdfparamreq.passcodeId != 0
tasmota.log("MTR: non-zero passcode id", 2)
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -133,7 +133,7 @@ class Matter_Commisioning_Context
# record the initiator_session_id
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)
+ tasmota.log(string.format("MTR: New_Session(%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
# prepare response
var pbkdfparamresp = matter.PBKDFParamResponse()
@@ -159,11 +159,13 @@ class Matter_Commisioning_Context
def parse_Pake1(msg)
import crypto
+ import string
+
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)
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ tasmota.log("MTR: invalid Pake1 message", 3)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -236,6 +238,9 @@ class Matter_Commisioning_Context
var resp = msg.build_response(0x23 #-pake-2-#, true) # no reliable flag
var raw = resp.encode_frame(pake2_raw)
+ # log the fact that a new commissioning is starting
+ tasmota.log(string.format("MTR: New Commissioning (PASE id=%i) from [%s]:%i", session.__future_local_session_id, session._ip, session._port))
+
self.responder.send_response_frame(resp)
return true
end
@@ -245,8 +250,8 @@ class Matter_Commisioning_Context
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)
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ tasmota.log("MTR: invalid Pake3 message", 3)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -257,8 +262,8 @@ class Matter_Commisioning_Context
# check the value against computed
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)
+ tasmota.log("MTR: invalid cA received", 3)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -288,18 +293,18 @@ class Matter_Commisioning_Context
import crypto
# Validate Sigma1 Destination ID, p.162
# traverse all existing fabrics
- tasmota.log("MTR: SEARCHING: destinationId=" + destinationId.tohex(), 3)
+ tasmota.log("MTR: SEARCHING: destinationId=" + destinationId.tohex(), 4)
for fabric : self.device.sessions.fabrics
if fabric.noc == nil || fabric.fabric_id == nil || fabric.device_id == nil continue end
# compute candidateDestinationId, Section 4.13.2.4.1, “Destination Identifier”
var destinationMessage = initiatorRandom + fabric.get_ca_pub() + fabric.fabric_id + fabric.device_id
var key = fabric.get_ipk_group_key()
- tasmota.log("MTR: SIGMA1: destinationMessage=" + destinationMessage.tohex(), 3)
- tasmota.log("MTR: SIGMA1: key_ipk=" + key.tohex(), 4)
+ tasmota.log("MTR: SIGMA1: destinationMessage=" + destinationMessage.tohex(), 4)
+ # tasmota.log("MTR: SIGMA1: key_ipk=" + key.tohex(), 4)
var h = crypto.HMAC_SHA256(key)
h.update(destinationMessage)
var candidateDestinationId = h.out()
- tasmota.log("MTR: SIGMA1: candidateDestinationId=" + candidateDestinationId.tohex(), 3)
+ tasmota.log("MTR: SIGMA1: candidateDestinationId=" + candidateDestinationId.tohex(), 4)
if candidateDestinationId == destinationId
return fabric
end
@@ -318,19 +323,19 @@ class Matter_Commisioning_Context
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)
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ # tasmota.log("MTR: invalid Sigma1 message", 3)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
var sigma1 = matter.Sigma1().parse(msg.raw, msg.app_payload_idx)
- tasmota.log(string.format("MTR: sigma1=%s", matter.inspect(sigma1)), 4)
+ # tasmota.log(string.format("MTR: sigma1=%s", matter.inspect(sigma1)), 4)
session.__initiator_pub = sigma1.initiatorEphPubKey
# find session
var is_resumption = (sigma1.resumptionID != nil && sigma1.initiatorResumeMIC != nil)
- tasmota.log(string.format("MTR: is_resumption=%i", is_resumption ? 1 : 0), 4)
+ # tasmota.log(string.format("MTR: is_resumption=%i", is_resumption ? 1 : 0), 4)
# TODO disable resumption until fixed
is_resumption = false
@@ -338,7 +343,7 @@ class Matter_Commisioning_Context
var session_resumption
if is_resumption
session_resumption = self.device.sessions.find_session_by_resumption_id(sigma1.resumptionID)
- tasmota.log(string.format("MTR: session_resumption found session=%s session_resumption=%s", matter.inspect(session), matter.inspect(session_resumption)), 4)
+ # tasmota.log(string.format("MTR: session_resumption found session=%s session_resumption=%s", matter.inspect(session), matter.inspect(session_resumption)), 4)
if session_resumption == nil || session_resumption._fabric == nil
is_resumption = false
end
@@ -370,7 +375,7 @@ 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()
- tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 2)
+ tasmota.log(string.format("MTR: New_Session(%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
# Generate and Send Sigma2_Resume
session.shared_secret = session_resumption.shared_secret
@@ -449,7 +454,7 @@ class Matter_Commisioning_Context
session._fabric = fabric
if session == nil || session._fabric == nil
- tasmota.log("MTR: StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS)", 2)
+ tasmota.log("MTR: StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0001, false)
return false
end
@@ -458,26 +463,26 @@ 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()
- tasmota.log(string.format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 2)
+ tasmota.log(string.format("MTR: New_Session(%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
- tasmota.log("MTR: fabric="+matter.inspect(session._fabric), 4)
- tasmota.log("MTR: no_private_key="+session.get_pk().tohex(), 4)
- tasmota.log("MTR: noc ="+session.get_noc().tohex(), 4)
- if fabric.get_icac()
- tasmota.log("MTR: icac ="+fabric.get_icac().tohex(), 4)
- end
- tasmota.log("MTR: root_ca_cert ="+fabric.get_ca().tohex(), 4)
+ # tasmota.log("MTR: fabric="+matter.inspect(session._fabric), 4)
+ # tasmota.log("MTR: no_private_key="+session.get_pk().tohex(), 4)
+ # tasmota.log("MTR: noc ="+session.get_noc().tohex(), 4)
+ # if fabric.get_icac()
+ # tasmota.log("MTR: icac ="+fabric.get_icac().tohex(), 4)
+ # end
+ # tasmota.log("MTR: root_ca_cert ="+fabric.get_ca().tohex(), 4)
# Compute Sigma2, p.162
session.resumption_id = crypto.random(16) # generate a new resumption id
session.__responder_priv = crypto.random(32)
session.__responder_pub = crypto.EC_P256().public_key(session.__responder_priv)
- tasmota.log("MTR: ResponderEph_priv ="+session.__responder_priv.tohex(), 4)
- tasmota.log("MTR: ResponderEph_pub ="+session.__responder_pub.tohex(), 4)
+ # 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(session.__responder_priv, sigma1.initiatorEphPubKey)
- tasmota.log("MTR: * shared_secret = " + session.shared_secret.tohex(), 4)
+ # tasmota.log("MTR: * shared_secret = " + session.shared_secret.tohex(), 4)
var sigma2_tbsdata = matter.TLV.Matter_TLV_struct()
sigma2_tbsdata.add_TLV(1, matter.TLV.B2, fabric.get_noc())
@@ -486,10 +491,10 @@ class Matter_Commisioning_Context
sigma2_tbsdata.add_TLV(4, matter.TLV.B2, sigma1.initiatorEphPubKey)
var TBSData2Signature = crypto.EC_P256().ecdsa_sign_sha256(fabric.get_pk(), sigma2_tbsdata.tlv2raw())
- tasmota.log("****************************************", 4)
- tasmota.log("MTR: * fabric.get_pk = " + str(fabric.get_pk()), 4)
- tasmota.log("MTR: * sigma2_tbsdata = " + str(sigma2_tbsdata), 4)
- tasmota.log("MTR: * TBSData2Signature = " + TBSData2Signature.tohex(), 4)
+ # tasmota.log("****************************************", 4)
+ # tasmota.log("MTR: * fabric.get_pk = " + str(fabric.get_pk()), 4)
+ # tasmota.log("MTR: * sigma2_tbsdata = " + str(sigma2_tbsdata), 4)
+ # tasmota.log("MTR: * TBSData2Signature = " + TBSData2Signature.tohex(), 4)
var sigma2_tbedata = matter.TLV.Matter_TLV_struct()
sigma2_tbedata.add_TLV(1, matter.TLV.B2, fabric.get_noc())
@@ -498,37 +503,37 @@ class Matter_Commisioning_Context
sigma2_tbedata.add_TLV(4, matter.TLV.B2, session.resumption_id)
# compute TranscriptHash = Crypto_Hash(message = Msg1)
- tasmota.log("****************************************", 4)
+ # tasmota.log("****************************************", 4)
session.__Msg1 = sigma1.Msg1
- tasmota.log("MTR: * resumptionid = " + session.resumption_id.tohex(), 4)
- tasmota.log("MTR: * MSG1 = " + session.__Msg1.tohex(), 4)
+ # tasmota.log("MTR: * resumptionid = " + session.resumption_id.tohex(), 4)
+ # tasmota.log("MTR: * MSG1 = " + session.__Msg1.tohex(), 4)
var TranscriptHash = crypto.SHA256().update(session.__Msg1).out()
- tasmota.log("MTR: TranscriptHash =" + TranscriptHash.tohex(), 4)
+ # tasmota.log("MTR: TranscriptHash =" + TranscriptHash.tohex(), 4)
# Compute S2K, p.175
var s2k_info = bytes().fromstring(self.S2K_Info)
var s2k_salt = fabric.get_ipk_group_key() + responderRandom + session.__responder_pub + TranscriptHash
var s2k = crypto.HKDF_SHA256().derive(session.shared_secret, s2k_salt, s2k_info, 16)
- tasmota.log("MTR: * SharedSecret = " + session.shared_secret.tohex(), 4)
- tasmota.log("MTR: * s2k_salt = " + s2k_salt.tohex(), 4)
- tasmota.log("MTR: * s2k = " + s2k.tohex(), 4)
+ # tasmota.log("MTR: * SharedSecret = " + session.shared_secret.tohex(), 4)
+ # tasmota.log("MTR: * s2k_salt = " + s2k_salt.tohex(), 4)
+ # tasmota.log("MTR: * s2k = " + s2k.tohex(), 4)
var sigma2_tbedata_raw = sigma2_tbedata.tlv2raw()
- tasmota.log("MTR: * TBEData2Raw = " + sigma2_tbedata_raw.tohex(), 4)
+ # tasmota.log("MTR: * TBEData2Raw = " + sigma2_tbedata_raw.tohex(), 4)
# // `AES_CCM.init(secret_key:bytes(16 or 32), iv:bytes(7..13), aad:bytes(), data_len:int, tag_len:int) -> instance`
var aes = crypto.AES_CCM(s2k, bytes().fromstring(self.TBEData2_Nonce), bytes(), size(sigma2_tbedata_raw), 16)
var TBEData2Encrypted = aes.encrypt(sigma2_tbedata_raw) + aes.tag()
- tasmota.log("MTR: * TBEData2Enc = " + TBEData2Encrypted.tohex(), 4)
- tasmota.log("****************************************", 4)
+ # tasmota.log("MTR: * TBEData2Enc = " + TBEData2Encrypted.tohex(), 4)
+ # tasmota.log("****************************************", 4)
var sigma2 = matter.Sigma2()
sigma2.responderRandom = responderRandom
sigma2.responderSessionId = session.__future_local_session_id
sigma2.responderEphPubKey = session.__responder_pub
sigma2.encrypted2 = TBEData2Encrypted
- tasmota.log("MTR: sigma2: " + matter.inspect(sigma2), 4)
+ # tasmota.log("MTR: sigma2: " + matter.inspect(sigma2), 4)
var sigma2_raw = sigma2.tlv2raw()
session.__Msg2 = sigma2_raw
# tasmota.log("MTR: sigma2_raw: " + sigma2_raw.tohex(), 4)
@@ -537,6 +542,9 @@ class Matter_Commisioning_Context
var resp = msg.build_response(0x31 #-sigma-2-#, true) # no reliable flag
var raw = resp.encode_frame(sigma2_raw)
+ # log the fact that a new connection is starting
+ tasmota.log(string.format("MTR: New Connection (CASE id=%i) from [%s]:%i", session.__future_local_session_id, session._ip, session._port))
+
self.responder.send_response_frame(resp)
return true
end
@@ -548,7 +556,7 @@ class Matter_Commisioning_Context
import crypto
# sanity checks
if msg.opcode != 0x32 || msg.local_session_id != 0 || msg.protocol_id != 0
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -584,8 +592,8 @@ class Matter_Commisioning_Context
# tasmota.log("****************************************", 4)
if TBETag3 != tag
- tasmota.log("MTR: Tag don't match", 2)
- tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
+ tasmota.log("MTR: Tag don't match", 3)
+ tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@@ -601,12 +609,12 @@ class Matter_Commisioning_Context
# Success = Crypto_VerifyChain(certificates = [TBEData3.initiatorNOC, TBEData3.initiatorICAC, TrustedRCAC]), when TBEData3.initiatorICAC is present
# TODO
var initiatorNOCTLV = matter.TLV.parse(initiatorNOC)
- tasmota.log("MTR: initiatorNOCTLV = " + str(initiatorNOCTLV), 3)
+ # tasmota.log("MTR: initiatorNOCTLV = " + str(initiatorNOCTLV), 4)
var initiatorNOCPubKey = initiatorNOCTLV.findsubval(9)
var initiatorNOCListDN = initiatorNOCTLV.findsub(6)
var initiatorFabricId = initiatorNOCListDN.findsubval(17)
if type(initiatorFabricId) == 'int' session.peer_node_id = int64.fromu32(initiatorFabricId).tobytes() else session.peer_node_id = initiatorFabricId.tobytes() end
- tasmota.log("MTR: initiatorFabricId="+str(session.peer_node_id), 3)
+ # tasmota.log("MTR: initiatorFabricId="+str(session.peer_node_id), 4)
var sigma3_tbs = matter.TLV.Matter_TLV_struct()
sigma3_tbs.add_TLV(1, matter.TLV.B1, initiatorNOC)
@@ -684,7 +692,7 @@ class Matter_Commisioning_Context
# placeholder, nothing to run for now
def parse_StatusReport(msg)
var session = msg.session
- tasmota.log("MTR: >Status "+msg.raw[msg.app_payload_idx..].tohex(), 2)
+ tasmota.log("MTR: >Status "+msg.raw[msg.app_payload_idx..].tohex(), 3)
return false # we don't explicitly ack the message
end
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Control_Message.be b/lib/libesp32/berry_matter/src/embedded/Matter_Control_Message.be
index d2d3192ba..df9edf361 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_Control_Message.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Control_Message.be
@@ -39,7 +39,7 @@ class Matter_Control_Message
def process_incoming_control_message(msg)
- tasmota.log("MTR: received control message " + matter.inspect(msg), 2)
+ tasmota.log("MTR: received control message " + matter.inspect(msg), 3)
if msg.opcode == 0x00
return self.parse_MsgCounterSyncReq(msg)
elif msg.opcode == 0x01
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be
index f4db53a39..26c889135 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be
@@ -159,7 +159,7 @@ class Matter_Device
# show Manual pairing code in logs
var pairing_code = self.compute_manual_pairing_code()
- tasmota.log(string.format("MTR: Manual pairing code: %s-%s-%s", pairing_code[0..3], pairing_code[4..6], pairing_code[7..]), 2)
+ tasmota.log(string.format("MTR: Manual pairing code: %s", pairing_code), 2)
# output MQTT
var qr_code = self.compute_qrcode_content()
@@ -178,6 +178,7 @@ class Matter_Device
for fabric_index : sub_fabrics
var fabric = self.sessions.find_fabric_by_index(fabric_index)
if fabric != nil
+ tasmota.log("MTR: removing fabric " + fabric.get_fabric_id().copy().reverse().tohex(), 2)
self.message_handler.im.subs_shop.remove_by_fabric(fabric)
self.mdns_remove_op_discovery(fabric)
self.sessions.remove_fabric(fabric)
@@ -379,7 +380,7 @@ class Matter_Device
def _start_udp(port)
if self.udp_server return end # already started
if port == nil port = 5540 end
- tasmota.log("MTR: starting UDP server on port: " + str(port), 2)
+ tasmota.log("MTR: Starting UDP server on port: " + str(port), 2)
self.udp_server = matter.UDPServer("", port)
self.udp_server.start(/ raw, addr, port -> self.msg_received(raw, addr, port))
end
@@ -426,7 +427,11 @@ class Matter_Device
#
# Stop basic commissioning.
def start_commissioning_complete(session)
- tasmota.log("MTR: *** Commissioning complete ***", 2)
+ import string
+ var fabric = session.get_fabric()
+ var fabric_id = fabric.get_fabric_id().copy().reverse().tohex()
+ var vendor_name = fabric.get_admin_vendor_name()
+ tasmota.log(string.format("MTR: --- Commissioning complete for Fabric '%s' (Vendor %s) ---", fabric_id, vendor_name), 2)
self.stop_basic_commissioning() # by default close commissioning when it's complete
end
@@ -567,7 +572,7 @@ class Matter_Device
for cl: keys_sorted(all[ep])
for at: keys_sorted(all[ep][cl])
for pi: all[ep][cl][at]
- tasmota.log(string.format("MTR: expansion [%02X]%04X/%04X", ep, cl, at), 3)
+ # tasmota.log(string.format("MTR: expansion [%02X]%04X/%04X", ep, cl, at), 3)
ctx.endpoint = ep
ctx.cluster = cl
ctx.attribute = at
@@ -637,7 +642,7 @@ class Matter_Device
var f = open(self.FILENAME, "w")
f.write(j)
f.close()
- tasmota.log(string.format("MTR: =Saved parameters%s", self.plugins_persist ? " and configuration" : ""), 2)
+ tasmota.log(string.format("MTR: =Saved parameters%s", self.plugins_persist ? " and configuration" : ""), 3)
return j
except .. as e, m
tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
@@ -686,6 +691,18 @@ class Matter_Device
if dirty self.save_param() end
end
+ #############################################################
+ # Convert a configuration to a log string
+ static def conf_to_log(plugin_conf)
+ import string
+ var param_log = ''
+ for k:_class.k2l(plugin_conf)
+ if k == 'type' continue end
+ param_log += string.format(" %s = %s", k, plugin_conf[k])
+ end
+ return param_log
+ end
+
#############################################################
# Load plugins configuration from json
#
@@ -696,21 +713,21 @@ class Matter_Device
import string
var endpoints = self.k2l_num(config)
- tasmota.log("MTR: endpoints to be configured "+str(endpoints), 3)
+ # tasmota.log("MTR: endpoints to be configured "+str(endpoints), 4)
+ tasmota.log("MTR: Configuring endpoints", 2)
# start with mandatory endpoint 0 for root node
self.plugins.push(matter.Plugin_Root(self, 0, {}))
- tasmota.log(string.format("MTR: endpoint:%i type:%s%s", 0, 'root', ''), 2)
+ tasmota.log(string.format("MTR: endpoint = %5i type = %s%s", 0, 'root', ''), 2)
# always include an aggregator for dynamic endpoints
self.plugins.push(matter.Plugin_Aggregator(self, 0xFF00, {}))
- tasmota.log(string.format("MTR: endpoint:%i type:%s%s", 0xFF00, 'aggregator', ''), 2)
for ep: endpoints
if ep == 0 continue end # skip endpoint 0
try
var plugin_conf = config[str(ep)]
- tasmota.log(string.format("MTR: endpoint %i config %s", ep, plugin_conf), 3)
+ # tasmota.log(string.format("MTR: endpoint %i config %s", ep, plugin_conf), 3)
var pi_class_name = plugin_conf.find('type')
if pi_class_name == nil tasmota.log("MTR: no class name, skipping", 3) continue end
@@ -721,16 +738,12 @@ class Matter_Device
var pi = pi_class(self, ep, plugin_conf)
self.plugins.push(pi)
- var param_log = ''
- for k:self.k2l(plugin_conf)
- if k == 'type' continue end
- param_log += string.format(" %s:%s", k, plugin_conf[k])
- end
- tasmota.log(string.format("MTR: endpoint:%i type:%s%s", ep, pi_class_name, param_log), 2)
+ tasmota.log(string.format("MTR: endpoint = %5i type = %s%s", ep, pi_class_name, self.conf_to_log(plugin_conf)), 2)
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
end
+ tasmota.log(string.format("MTR: endpoint = %5i type = %s%s", 0xFF00, 'aggregator', ''), 2)
tasmota.publish_result('{"Matter":{"Initialized":1}}', 'Matter')
end
@@ -800,7 +813,7 @@ class Matter_Device
var eth = tasmota.eth()
self.hostname_eth = string.replace(eth.find("mac"), ':', '')
if !self.ipv4only
- tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')), 3)
+ # tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')), 4)
mdns.add_hostname(self.hostname_eth, eth.find('ip6local',''), eth.find('ip',''), eth.find('ip6',''))
else
tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, eth.find('ip','')), 3)
@@ -810,14 +823,14 @@ class Matter_Device
var wifi = tasmota.wifi()
self.hostname_wifi = string.replace(wifi.find("mac"), ':', '')
if !self.ipv4only
- tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')), 3)
+ # tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')), 4)
mdns.add_hostname(self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip',''), wifi.find('ip6',''))
else
tasmota.log(string.format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, wifi.find('ip','')), 3)
mdns.add_hostname(self.hostname_wifi, wifi.find('ip',''))
end
end
- tasmota.log(string.format("MTR: start mDNS on %s host '%s.local'", is_eth ? "eth" : "wifi", is_eth ? self.hostname_eth : self.hostname_wifi), 2)
+ tasmota.log(string.format("MTR: start mDNS on %s host '%s.local'", is_eth ? "eth" : "wifi", is_eth ? self.hostname_eth : self.hostname_wifi), 3)
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
@@ -846,7 +859,7 @@ class Matter_Device
try
if self.hostname_eth
# Add Matter `_matterc._udp` service
- tasmota.log(string.format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_eth, self.hostname_eth), 3)
+ # tasmota.log(string.format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_eth, self.hostname_eth), 4)
mdns.add_service("_matterc", "_udp", 5540, services, self.commissioning_instance_eth, self.hostname_eth)
self.mdns_pase_eth = true
@@ -854,38 +867,38 @@ class Matter_Device
# `mdns.add_subtype(service:string, proto:string, instance:string, hostname:string, subtype:string) -> nil`
var subtype = "_L" + str(self.commissioning_discriminator & 0xFFF)
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8)
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
subtype = "_V" + str(self.vendorid)
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
subtype = "_CM1"
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
end
if self.hostname_wifi
- tasmota.log(string.format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_wifi, self.hostname_wifi), 3)
+ # tasmota.log(string.format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_wifi, self.hostname_wifi), 4)
mdns.add_service("_matterc", "_udp", 5540, services, self.commissioning_instance_wifi, self.hostname_wifi)
self.mdns_pase_wifi = true
- tasmota.log(string.format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", "wifi", self.commissioning_instance_wifi, self.hostname_wifi), 2)
+ tasmota.log(string.format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", "wifi", self.commissioning_instance_wifi, self.hostname_wifi), 3)
# `mdns.add_subtype(service:string, proto:string, instance:string, hostname:string, subtype:string) -> nil`
var subtype = "_L" + str(self.commissioning_discriminator & 0xFFF)
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8)
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
subtype = "_V" + str(self.vendorid)
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
subtype = "_CM1"
- tasmota.log("MTR: adding subtype: "+subtype, 2)
+ tasmota.log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
end
except .. as e, m
@@ -903,13 +916,13 @@ class Matter_Device
try
if self.mdns_pase_eth
tasmota.log(string.format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth), 3)
- tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "eth", self.commissioning_instance_eth), 2)
+ tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "eth", self.commissioning_instance_eth), 3)
self.mdns_pase_eth = false
mdns.remove_service("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth)
end
if self.mdns_pase_wifi
tasmota.log(string.format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi), 3)
- tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "wifi", self.commissioning_instance_wifi), 2)
+ tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "wifi", self.commissioning_instance_wifi), 3)
self.mdns_pase_wifi = false
mdns.remove_service("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi)
end
@@ -937,7 +950,7 @@ class Matter_Device
var device_id = fabric.get_device_id().copy().reverse()
var k_fabric = fabric.get_fabric_compressed()
var op_node = k_fabric.tohex() + "-" + device_id.tohex()
- tasmota.log("MTR: Operational Discovery node = " + op_node, 2)
+ tasmota.log("MTR: Operational Discovery node = " + op_node, 3)
# mdns
if (tasmota.eth().find("up"))
@@ -981,11 +994,11 @@ class Matter_Device
# mdns
if (tasmota.eth().find("up"))
- tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "eth", op_node), 2)
+ tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "eth", op_node), 3)
mdns.remove_service("_matter", "_tcp", op_node, self.hostname_eth)
end
if (tasmota.wifi().find("up"))
- tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "wifi", op_node), 2)
+ tasmota.log(string.format("MTR: remove mDNS on %s '%s'", "wifi", op_node), 3)
mdns.remove_service("_matter", "_tcp", op_node, self.hostname_wifi)
end
except .. as e, m
@@ -1228,8 +1241,9 @@ class Matter_Device
# `plugin_conf`: map of configuration as native Berry map
# returns endpoint number newly allocated, or `nil` if failed
def bridge_add_endpoint(pi_class_name, plugin_conf)
+ import string
var pi_class = self.plugins_classes.find(pi_class_name)
- if pi_class == nil tasmota.log("MTR: unknown class name '"+str(pi_class_name)+"' skipping", 2) return end
+ if pi_class == nil tasmota.log("MTR: unknown class name '"+str(pi_class_name)+"' skipping", 3) return end
# get the next allocated endpoint number
var ep = self.next_ep
@@ -1246,6 +1260,7 @@ class Matter_Device
pi_conf[k] = plugin_conf[k]
end
# add to main
+ tasmota.log(string.format("MTR: adding endpoint = %i type = %s%s", ep, pi_class_name, self.conf_to_log(plugin_conf)), 2)
self.plugins_config[ep_str] = pi_conf
self.plugins_persist = true
self.next_ep += 1 # increment next allocated endpoint before saving
@@ -1272,6 +1287,7 @@ class Matter_Device
tasmota.log("MTR: Cannot remove an enpoint not configured: " + ep_str, 3)
return
end
+ tasmota.log(string.format("MTR: deleting endpoint = %i", ep), 2)
self.plugins_config.remove(ep_str)
self.plugins_persist = true
@@ -1373,29 +1389,31 @@ class Matter_Device
import introspect
import string
- var remotes_map = {} # key: remote object, value: count of references
-
# init all remotes with count 0
- for http_remote: self.http_remotes
- remotes_map[http_remote] = 0
- end
-
- # scan all endpoints
- for pi: self.plugins
- var http_remote = introspect.get(pi, "http_remote")
- if http_remote != nil
- remotes_map[http_remote] = remotes_map.find(http_remote, 0) + 1
+ if self.http_remotes
+ var remotes_map = {} # key: remote object, value: count of references
+
+ for http_remote: self.http_remotes
+ remotes_map[http_remote] = 0
end
- end
- tasmota.log("MTR: remotes references: " + str(remotes_map))
+ # scan all endpoints
+ for pi: self.plugins
+ var http_remote = introspect.get(pi, "http_remote")
+ if http_remote != nil
+ remotes_map[http_remote] = remotes_map.find(http_remote, 0) + 1
+ end
+ end
- for remote:remotes_map.keys()
- if remotes_map[remote] == 0
- # remove
- tasmota.log("MTR: remove unused remote: " + remote.addr, 3)
- remote.close()
- self.http_remotes.remove(remote)
+ # tasmota.log("MTR: remotes references: " + str(remotes_map), 3)
+
+ for remote:remotes_map.keys()
+ if remotes_map[remote] == 0
+ # remove
+ tasmota.log("MTR: remove unused remote: " + remote.addr, 3)
+ remote.close()
+ self.http_remotes.remove(remote)
+ end
end
end
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be b/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be
index 14f538e24..c37ed7459 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_Fabric.be
@@ -217,14 +217,14 @@ class Matter_Fabric : Matter_Expirable
# Called before removal
def log_new_fabric()
import string
- tasmota.log(string.format("MTR: +Fabric fab='%s' vendorid=%s", self.get_fabric_id().copy().reverse().tohex(), self.get_admin_vendor_name()), 2)
+ tasmota.log(string.format("MTR: +Fabric fab='%s' vendorid=%s", self.get_fabric_id().copy().reverse().tohex(), self.get_admin_vendor_name()), 3)
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)
+ tasmota.log(string.format("MTR: -Fabric fab='%s' (removed)", self.get_fabric_id().copy().reverse().tohex()), 3)
end
#############################################################
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_HTTP_remote.be b/lib/libesp32/berry_matter/src/embedded/Matter_HTTP_remote.be
index 05b16d9b7..5e1d919d0 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_HTTP_remote.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_HTTP_remote.be
@@ -142,11 +142,11 @@ class Matter_HTTP_remote : Matter_HTTP_async
self.current_cmd = nil
var cmd_url = "/cm?cmnd=" + string.tr(cmd, ' ', '+')
- tasmota.log(string.format("MTR: HTTP sync request 'http://%s:%i%s'", self.addr, self.port, cmd_url), 2)
+ tasmota.log(string.format("MTR: HTTP sync request 'http://%s:%i%s'", self.addr, self.port, cmd_url), 3)
var ret = super(self).begin_sync(cmd_url, timeout)
var payload_short = (ret) ? ret : 'nil'
if size(payload_short) > 30 payload_short = payload_short[0..29] + '...' end
- tasmota.log(string.format("MTR: HTTP sync-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 2)
+ tasmota.log(string.format("MTR: HTTP sync-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 3)
return ret
end
@@ -155,7 +155,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
import string
var payload_short = (self.payload != nil) ? self.payload : 'nil'
if size(payload_short) > 30 payload_short = payload_short[0..29] + '...' end
- tasmota.log(string.format("MTR: HTTP async-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 2)
+ tasmota.log(string.format("MTR: HTTP async-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 3)
self.dispatch_cb(self.http_status, self.payload)
end
def event_http_failed()
@@ -166,7 +166,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
def event_http_timeout()
import string
if self.current_cmd == nil return end # do nothing if sync request
- tasmota.log(string.format("MTR: HTTP timeout http_status=%i phase=%i tcp_status=%i size_payload=%i", self.http_status, self.phase, self.status, size(self.payload)), 2)
+ tasmota.log(string.format("MTR: HTTP timeout http_status=%i phase=%i tcp_status=%i size_payload=%i", self.http_status, self.phase, self.status, size(self.payload)), 3)
self.dispatch_cb(self.http_status, nil)
end
diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be
index b10be36bd..f6e470d53 100644
--- a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be
+++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be
@@ -86,7 +86,7 @@ class Matter_IM
import string
# check if there is an exchange_id interested in receiving this
var message = self.find_sendqueue_by_exchangeid(msg.exchange_id)
- tasmota.log(string.format("MTR: process_incoming_ack exch=%i message=%i", msg.exchange_id, message != nil ? 1 : 0), 3)
+ # tasmota.log(string.format("MTR: process_incoming_ack exch=%i message=%i", msg.exchange_id, message != nil ? 1 : 0), 4)
if message
return message.ack_received(msg) # dispatch to IM_Message
end
@@ -116,7 +116,7 @@ class Matter_IM
end
if message.finish
- tasmota.log("MTR: remove IM message exch="+str(message.resp.exchange_id), 3)
+ tasmota.log("MTR: remove IM message exch="+str(message.resp.exchange_id), 4)
self.send_queue.remove(idx)
else
idx += 1
@@ -190,7 +190,7 @@ class Matter_IM
end
else
# error
- tasmota.log(string.format("MTR: >Status ERROR = 0x%02X", status), 2)
+ tasmota.log(string.format("MTR: >Status ERROR = 0x%02X", status), 3)
if message
message.status_error_received(msg)
self.remove_sendqueue_by_exchangeid(msg.exchange_id)
@@ -242,7 +242,7 @@ class Matter_IM
# tasmota.log(string.format("MTR: guessed len=%i actual=%i '%s'", a1_len, size(a1_raw), a1_raw.tohex()), 2)
if !no_log
- tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - %s", session.local_session_id, str(ctx), attr_name, res_str), 2)
+ tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - %s", session.local_session_id, str(ctx), attr_name, res_str), 3)
end
elif ctx.status != nil
if direct # we report an error only if a concrete direct read, not with wildcards
@@ -260,10 +260,10 @@ class Matter_IM
var a1_bytes = bytes(a1_len) # pre-size bytes() to the actual size
a1_raw = a1_tlv.tlv2raw(a1_bytes)
- tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - STATUS: 0x%02X %s", session.local_session_id, str(ctx), attr_name, ctx.status, ctx.status == matter.UNSUPPORTED_ATTRIBUTE ? "UNSUPPORTED_ATTRIBUTE" : ""), 2)
+ tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - STATUS: 0x%02X %s", session.local_session_id, str(ctx), attr_name, ctx.status, ctx.status == matter.UNSUPPORTED_ATTRIBUTE ? "UNSUPPORTED_ATTRIBUTE" : ""), 3)
end
else
- tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - IGNORED", session.local_session_id, str(ctx), attr_name), 2)
+ tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - IGNORED", session.local_session_id, str(ctx), attr_name), 3)
# ignore if content is nil and status is undefined
found = false
end
@@ -307,9 +307,9 @@ class Matter_IM
# we need expansion, log first
if ctx.cluster != nil && ctx.attribute != nil
var attr_name = matter.get_attribute_name(ctx.cluster, ctx.attribute)
- tasmota.log(string.format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx) + (attr_name ? " (" + attr_name + ")" : "")), 2)
+ tasmota.log(string.format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx) + (attr_name ? " (" + attr_name + ")" : "")), 3)
else
- tasmota.log(string.format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx)), 2)
+ tasmota.log(string.format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx)), 3)
end
end
@@ -367,7 +367,7 @@ class Matter_IM
attr_req.push(str(ctx))
end
tasmota.log(string.format("MTR: >Subscribe (%6i) %s (min=%i, max=%i, keep=%i) sub=%i",
- msg.session.local_session_id, attr_req.concat(" "), sub.min_interval, sub.max_interval, query.keep_subscriptions ? 1 : 0, sub.subscription_id), 2)
+ msg.session.local_session_id, attr_req.concat(" "), sub.min_interval, sub.max_interval, query.keep_subscriptions ? 1 : 0, sub.subscription_id), 3)
var ret = self._inner_process_read_request(msg.session, query, true #-no_log-#)
# ret is of type `Matter_ReportDataMessage`
@@ -405,7 +405,7 @@ class Matter_IM
var ctx_str = str(ctx) # keep string before invoking, it is modified by response
var res = self.device.invoke_request(msg.session, q.command_fields, ctx)
var params_log = (ctx.log != nil) ? "(" + str(ctx.log) + ") " : ""
- tasmota.log(string.format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 2)
+ tasmota.log(string.format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), ctx.endpoint != 0 ? 2 : 3 #- don't log for endpoint 0 -# )
ctx.log = nil
var a1 = matter.InvokeResponseIB()
if res == true || ctx.status == matter.SUCCESS # special case, just respond ok
@@ -417,7 +417,7 @@ class Matter_IM
a1.status.status = matter.StatusIB()
a1.status.status.status = matter.SUCCESS
ret.invoke_responses.push(a1)
- tasmota.log(string.format("MTR:
Unable to connect to '%s'
", webserver.html_escape(url))) @@ -679,9 +714,9 @@ class Matter_UI try # debug information about parameters - for i:0..webserver.arg_size()-1 - tasmota.log(string.format("MTR: Arg%i '%s' = '%s'", i, webserver.arg_name(i), webserver.arg(i))) - end + # for i:0..webserver.arg_size()-1 + # tasmota.log(string.format("MTR: Arg%i '%s' = '%s'", i, webserver.arg_name(i), webserver.arg(i))) + # end #---------------------------------------------------------------------# # Change Passcode and/or Passcode @@ -807,7 +842,7 @@ class Matter_UI self.device.save_param() end #- and reload -# - webserver.redirect("/cn?") + webserver.redirect("/matterc?") end #---------------------------------------------------------------------# # Add new endpoint for local sensor or device @@ -881,7 +916,6 @@ class Matter_UI end # check if we found an endpoint to be deleted if ep_deleted != nil - tasmota.log(string.format("MTR: deleting endpoint %i", ep_deleted), 2) self.device.bridge_remove_endpoint(ep_deleted) webserver.redirect("/matterc?") end diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h index 1123b4a22..fc766de36 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h @@ -28,7 +28,7 @@ be_local_closure(Matter_Commisioning_Context_parse_StatusReport, /* name */ /* K5 */ be_nested_str_weak(app_payload_idx), /* K6 */ be_const_int(2147483647), /* K7 */ be_nested_str_weak(tohex), - /* K8 */ be_const_int(2), + /* K8 */ be_const_int(3), }), be_str_weak(parse_StatusReport), &be_const_str_solidified, @@ -66,109 +66,100 @@ be_local_closure(Matter_Commisioning_Context_find_fabric_by_destination_id, /* 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[21]) { /* constants */ + ( &(const bvalue[19]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(tasmota), /* K2 */ be_nested_str_weak(log), /* K3 */ be_nested_str_weak(MTR_X3A_X20SEARCHING_X3A_X20destinationId_X3D), /* K4 */ be_nested_str_weak(tohex), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(device), - /* K7 */ be_nested_str_weak(sessions), - /* K8 */ be_nested_str_weak(fabrics), - /* K9 */ be_nested_str_weak(noc), - /* K10 */ be_nested_str_weak(fabric_id), - /* K11 */ be_nested_str_weak(device_id), - /* K12 */ be_nested_str_weak(get_ca_pub), - /* K13 */ be_nested_str_weak(get_ipk_group_key), - /* K14 */ be_nested_str_weak(MTR_X3A_X20SIGMA1_X3A_X20destinationMessage_X3D), - /* K15 */ be_nested_str_weak(MTR_X3A_X20SIGMA1_X3A_X20key_ipk_X3D), - /* K16 */ be_nested_str_weak(HMAC_SHA256), - /* K17 */ be_nested_str_weak(update), - /* K18 */ be_nested_str_weak(out), - /* K19 */ be_nested_str_weak(MTR_X3A_X20SIGMA1_X3A_X20candidateDestinationId_X3D), - /* K20 */ be_nested_str_weak(stop_iteration), + /* K5 */ be_nested_str_weak(device), + /* K6 */ be_nested_str_weak(sessions), + /* K7 */ be_nested_str_weak(fabrics), + /* K8 */ be_nested_str_weak(noc), + /* K9 */ be_nested_str_weak(fabric_id), + /* K10 */ be_nested_str_weak(device_id), + /* K11 */ be_nested_str_weak(get_ca_pub), + /* K12 */ be_nested_str_weak(get_ipk_group_key), + /* K13 */ be_nested_str_weak(MTR_X3A_X20SIGMA1_X3A_X20destinationMessage_X3D), + /* K14 */ be_nested_str_weak(HMAC_SHA256), + /* K15 */ be_nested_str_weak(update), + /* K16 */ be_nested_str_weak(out), + /* K17 */ be_nested_str_weak(MTR_X3A_X20SIGMA1_X3A_X20candidateDestinationId_X3D), + /* K18 */ be_nested_str_weak(stop_iteration), }), be_str_weak(find_fabric_by_destination_id), &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ + ( &(const binstruction[70]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 0x8C180304, // 0003 GETMET R6 R1 K4 0x7C180200, // 0004 CALL R6 1 0x001A0606, // 0005 ADD R6 K3 R6 - 0x581C0005, // 0006 LDCONST R7 K5 + 0x541E0003, // 0006 LDINT R7 4 0x7C100600, // 0007 CALL R4 3 0x60100010, // 0008 GETGBL R4 G16 - 0x88140106, // 0009 GETMBR R5 R0 K6 - 0x88140B07, // 000A GETMBR R5 R5 K7 - 0x88140B08, // 000B GETMBR R5 R5 K8 + 0x88140105, // 0009 GETMBR R5 R0 K5 + 0x88140B06, // 000A GETMBR R5 R5 K6 + 0x88140B07, // 000B GETMBR R5 R5 K7 0x7C100200, // 000C CALL R4 1 - 0xA8020039, // 000D EXBLK 0 #0048 + 0xA8020032, // 000D EXBLK 0 #0041 0x5C140800, // 000E MOVE R5 R4 0x7C140000, // 000F CALL R5 0 - 0x88180B09, // 0010 GETMBR R6 R5 K9 + 0x88180B08, // 0010 GETMBR R6 R5 K8 0x4C1C0000, // 0011 LDNIL R7 0x1C180C07, // 0012 EQ R6 R6 R7 0x741A0007, // 0013 JMPT R6 #001C - 0x88180B0A, // 0014 GETMBR R6 R5 K10 + 0x88180B09, // 0014 GETMBR R6 R5 K9 0x4C1C0000, // 0015 LDNIL R7 0x1C180C07, // 0016 EQ R6 R6 R7 0x741A0003, // 0017 JMPT R6 #001C - 0x88180B0B, // 0018 GETMBR R6 R5 K11 + 0x88180B0A, // 0018 GETMBR R6 R5 K10 0x4C1C0000, // 0019 LDNIL R7 0x1C180C07, // 001A EQ R6 R6 R7 0x781A0000, // 001B JMPF R6 #001D 0x7001FFF0, // 001C JMP #000E - 0x8C180B0C, // 001D GETMET R6 R5 K12 + 0x8C180B0B, // 001D GETMET R6 R5 K11 0x7C180200, // 001E CALL R6 1 0x00180406, // 001F ADD R6 R2 R6 - 0x881C0B0A, // 0020 GETMBR R7 R5 K10 + 0x881C0B09, // 0020 GETMBR R7 R5 K9 0x00180C07, // 0021 ADD R6 R6 R7 - 0x881C0B0B, // 0022 GETMBR R7 R5 K11 + 0x881C0B0A, // 0022 GETMBR R7 R5 K10 0x00180C07, // 0023 ADD R6 R6 R7 - 0x8C1C0B0D, // 0024 GETMET R7 R5 K13 + 0x8C1C0B0C, // 0024 GETMET R7 R5 K12 0x7C1C0200, // 0025 CALL R7 1 0xB8220200, // 0026 GETNGBL R8 K1 0x8C201102, // 0027 GETMET R8 R8 K2 0x8C280D04, // 0028 GETMET R10 R6 K4 0x7C280200, // 0029 CALL R10 1 - 0x002A1C0A, // 002A ADD R10 K14 R10 - 0x582C0005, // 002B LDCONST R11 K5 + 0x002A1A0A, // 002A ADD R10 K13 R10 + 0x542E0003, // 002B LDINT R11 4 0x7C200600, // 002C CALL R8 3 - 0xB8220200, // 002D GETNGBL R8 K1 - 0x8C201102, // 002E GETMET R8 R8 K2 - 0x8C280F04, // 002F GETMET R10 R7 K4 - 0x7C280200, // 0030 CALL R10 1 - 0x002A1E0A, // 0031 ADD R10 K15 R10 - 0x542E0003, // 0032 LDINT R11 4 - 0x7C200600, // 0033 CALL R8 3 - 0x8C200710, // 0034 GETMET R8 R3 K16 - 0x5C280E00, // 0035 MOVE R10 R7 - 0x7C200400, // 0036 CALL R8 2 - 0x8C241111, // 0037 GETMET R9 R8 K17 - 0x5C2C0C00, // 0038 MOVE R11 R6 - 0x7C240400, // 0039 CALL R9 2 - 0x8C241112, // 003A GETMET R9 R8 K18 - 0x7C240200, // 003B CALL R9 1 - 0xB82A0200, // 003C GETNGBL R10 K1 - 0x8C281502, // 003D GETMET R10 R10 K2 - 0x8C301304, // 003E GETMET R12 R9 K4 - 0x7C300200, // 003F CALL R12 1 - 0x0032260C, // 0040 ADD R12 K19 R12 - 0x58340005, // 0041 LDCONST R13 K5 - 0x7C280600, // 0042 CALL R10 3 - 0x1C281201, // 0043 EQ R10 R9 R1 - 0x782A0001, // 0044 JMPF R10 #0047 - 0xA8040001, // 0045 EXBLK 1 1 - 0x80040A00, // 0046 RET 1 R5 - 0x7001FFC5, // 0047 JMP #000E - 0x58100014, // 0048 LDCONST R4 K20 - 0xAC100200, // 0049 CATCH R4 1 0 - 0xB0080000, // 004A RAISE 2 R0 R0 - 0x4C100000, // 004B LDNIL R4 - 0x80040800, // 004C RET 1 R4 + 0x8C20070E, // 002D GETMET R8 R3 K14 + 0x5C280E00, // 002E MOVE R10 R7 + 0x7C200400, // 002F CALL R8 2 + 0x8C24110F, // 0030 GETMET R9 R8 K15 + 0x5C2C0C00, // 0031 MOVE R11 R6 + 0x7C240400, // 0032 CALL R9 2 + 0x8C241110, // 0033 GETMET R9 R8 K16 + 0x7C240200, // 0034 CALL R9 1 + 0xB82A0200, // 0035 GETNGBL R10 K1 + 0x8C281502, // 0036 GETMET R10 R10 K2 + 0x8C301304, // 0037 GETMET R12 R9 K4 + 0x7C300200, // 0038 CALL R12 1 + 0x0032220C, // 0039 ADD R12 K17 R12 + 0x54360003, // 003A LDINT R13 4 + 0x7C280600, // 003B CALL R10 3 + 0x1C281201, // 003C EQ R10 R9 R1 + 0x782A0001, // 003D JMPF R10 #0040 + 0xA8040001, // 003E EXBLK 1 1 + 0x80040A00, // 003F RET 1 R5 + 0x7001FFCC, // 0040 JMP #000E + 0x58100012, // 0041 LDCONST R4 K18 + 0xAC100200, // 0042 CATCH R4 1 0 + 0xB0080000, // 0043 RAISE 2 R0 R0 + 0x4C100000, // 0044 LDNIL R4 + 0x80040800, // 0045 RET 1 R4 }) ) ); @@ -212,17 +203,16 @@ be_local_closure(Matter_Commisioning_Context_add_session, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ + ( &(const bvalue[ 9]) { /* constants */ /* K0 */ be_nested_str_weak(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), + /* K5 */ be_nested_str_weak(device), + /* K6 */ be_nested_str_weak(sessions), + /* K7 */ be_nested_str_weak(create_session), + /* K8 */ be_nested_str_weak(set_keys), }), be_str_weak(add_session), &be_const_str_solidified, @@ -235,15 +225,15 @@ be_local_closure(Matter_Commisioning_Context_add_session, /* name */ 0x5C300200, // 0005 MOVE R12 R1 0x5C340400, // 0006 MOVE R13 R2 0x7C240800, // 0007 CALL R9 4 - 0x58280005, // 0008 LDCONST R10 K5 + 0x542A0003, // 0008 LDINT R10 4 0x7C1C0600, // 0009 CALL R7 3 - 0x881C0106, // 000A GETMBR R7 R0 K6 - 0x881C0F07, // 000B GETMBR R7 R7 K7 - 0x8C1C0F08, // 000C GETMET R7 R7 K8 + 0x881C0105, // 000A GETMBR R7 R0 K5 + 0x881C0F06, // 000B GETMBR R7 R7 K6 + 0x8C1C0F07, // 000C GETMET R7 R7 K7 0x5C240200, // 000D MOVE R9 R1 0x5C280400, // 000E MOVE R10 R2 0x7C1C0600, // 000F CALL R7 3 - 0x8C200F09, // 0010 GETMET R8 R7 K9 + 0x8C200F08, // 0010 GETMET R8 R7 K8 0x5C280600, // 0011 MOVE R10 R3 0x5C2C0800, // 0012 MOVE R11 R4 0x5C300A00, // 0013 MOVE R12 R5 @@ -268,7 +258,7 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[49]) { /* constants */ + ( &(const bvalue[50]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(session), @@ -281,43 +271,44 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name /* 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(tlv2raw), - /* K44 */ be_nested_str_weak(__Msg2), - /* K45 */ be_nested_str_weak(build_response), - /* K46 */ be_nested_str_weak(encode_frame), - /* K47 */ be_nested_str_weak(responder), - /* K48 */ be_nested_str_weak(send_response_frame), + /* K12 */ be_const_int(3), + /* K13 */ be_nested_str_weak(send_status_report), + /* K14 */ be_const_int(1), + /* K15 */ be_nested_str_weak(matter), + /* K16 */ be_nested_str_weak(PBKDFParamRequest), + /* K17 */ be_nested_str_weak(parse), + /* K18 */ be_nested_str_weak(raw), + /* K19 */ be_nested_str_weak(app_payload_idx), + /* K20 */ be_nested_str_weak(set_mode_PASE), + /* K21 */ be_nested_str_weak(__Msg1), + /* K22 */ be_const_int(2147483647), + /* K23 */ be_nested_str_weak(passcodeId), + /* K24 */ be_nested_str_weak(MTR_X3A_X20non_X2Dzero_X20passcode_X20id), + /* K25 */ be_nested_str_weak(__future_initiator_session_id), + /* K26 */ be_nested_str_weak(initiator_session_id), + /* K27 */ be_nested_str_weak(__future_local_session_id), + /* K28 */ be_nested_str_weak(device), + /* K29 */ be_nested_str_weak(sessions), + /* K30 */ be_nested_str_weak(gen_local_session_id), + /* K31 */ be_nested_str_weak(format), + /* K32 */ be_nested_str_weak(MTR_X3A_X20New_Session_X28_X256i_X29_X20from_X20_X27_X5B_X25s_X5D_X3A_X25i_X27), + /* K33 */ be_nested_str_weak(remote_ip), + /* K34 */ be_nested_str_weak(remote_port), + /* K35 */ be_nested_str_weak(PBKDFParamResponse), + /* K36 */ be_nested_str_weak(initiatorRandom), + /* K37 */ be_nested_str_weak(responderRandom), + /* K38 */ be_nested_str_weak(random), + /* K39 */ be_nested_str_weak(responderSessionId), + /* K40 */ be_nested_str_weak(pbkdf_parameters_salt), + /* K41 */ be_nested_str_weak(commissioning_salt), + /* K42 */ be_nested_str_weak(pbkdf_parameters_iterations), + /* K43 */ be_nested_str_weak(commissioning_iterations), + /* K44 */ be_nested_str_weak(tlv2raw), + /* K45 */ be_nested_str_weak(__Msg2), + /* K46 */ be_nested_str_weak(build_response), + /* K47 */ be_nested_str_weak(encode_frame), + /* K48 */ be_nested_str_weak(responder), + /* K49 */ be_nested_str_weak(send_response_frame), }), be_str_weak(parse_PBKDFParamRequest), &be_const_str_solidified, @@ -343,100 +334,100 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name 0xB8160E00, // 0012 GETNGBL R5 K7 0x8C140B08, // 0013 GETMET R5 R5 K8 0x581C000B, // 0014 LDCONST R7 K11 - 0x5820000A, // 0015 LDCONST R8 K10 + 0x5820000C, // 0015 LDCONST R8 K12 0x7C140600, // 0016 CALL R5 3 - 0x8C14010C, // 0017 GETMET R5 R0 K12 + 0x8C14010D, // 0017 GETMET R5 R0 K13 0x5C1C0200, // 0018 MOVE R7 R1 - 0x5820000D, // 0019 LDCONST R8 K13 + 0x5820000E, // 0019 LDCONST R8 K14 0x58240005, // 001A LDCONST R9 K5 0x5828000A, // 001B LDCONST R10 K10 0x502C0000, // 001C LDBOOL R11 0 0 0x7C140C00, // 001D CALL R5 6 0x50140000, // 001E LDBOOL R5 0 0 0x80040A00, // 001F RET 1 R5 - 0xB8161C00, // 0020 GETNGBL R5 K14 - 0x8C140B0F, // 0021 GETMET R5 R5 K15 + 0xB8161E00, // 0020 GETNGBL R5 K15 + 0x8C140B10, // 0021 GETMET R5 R5 K16 0x7C140200, // 0022 CALL R5 1 - 0x8C140B10, // 0023 GETMET R5 R5 K16 - 0x881C0311, // 0024 GETMBR R7 R1 K17 - 0x88200312, // 0025 GETMBR R8 R1 K18 + 0x8C140B11, // 0023 GETMET R5 R5 K17 + 0x881C0312, // 0024 GETMBR R7 R1 K18 + 0x88200313, // 0025 GETMBR R8 R1 K19 0x7C140600, // 0026 CALL R5 3 0x88180302, // 0027 GETMBR R6 R1 K2 - 0x8C180D13, // 0028 GETMET R6 R6 K19 + 0x8C180D14, // 0028 GETMET R6 R6 K20 0x7C180200, // 0029 CALL R6 1 - 0x88180312, // 002A GETMBR R6 R1 K18 - 0x40180D15, // 002B CONNECT R6 R6 K21 - 0x881C0311, // 002C GETMBR R7 R1 K17 + 0x88180313, // 002A GETMBR R6 R1 K19 + 0x40180D16, // 002B CONNECT R6 R6 K22 + 0x881C0312, // 002C GETMBR R7 R1 K18 0x94180E06, // 002D GETIDX R6 R7 R6 - 0x90122806, // 002E SETMBR R4 K20 R6 - 0x88180B16, // 002F GETMBR R6 R5 K22 + 0x90122A06, // 002E SETMBR R4 K21 R6 + 0x88180B17, // 002F GETMBR R6 R5 K23 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 + 0x58200018, // 0034 LDCONST R8 K24 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 + 0x5824000C, // 003A LDCONST R9 K12 0x7C180600, // 003B CALL R6 3 - 0x8C18010C, // 003C GETMET R6 R0 K12 + 0x8C18010D, // 003C GETMET R6 R0 K13 0x5C200200, // 003D MOVE R8 R1 - 0x5824000D, // 003E LDCONST R9 K13 + 0x5824000E, // 003E LDCONST R9 K14 0x58280005, // 003F LDCONST R10 K5 0x582C000A, // 0040 LDCONST R11 K10 0x50300000, // 0041 LDBOOL R12 0 0 0x7C180C00, // 0042 CALL R6 6 0x50180000, // 0043 LDBOOL R6 0 0 0x80040C00, // 0044 RET 1 R6 - 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 + 0x88180B1A, // 0045 GETMBR R6 R5 K26 + 0x90123206, // 0046 SETMBR R4 K25 R6 + 0x8818011C, // 0047 GETMBR R6 R0 K28 + 0x88180D1D, // 0048 GETMBR R6 R6 K29 + 0x8C180D1E, // 0049 GETMET R6 R6 K30 0x7C180200, // 004A CALL R6 1 - 0x90123406, // 004B SETMBR R4 K26 R6 + 0x90123606, // 004B SETMBR R4 K27 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 + 0x8C20071F, // 004E GETMET R8 R3 K31 + 0x58280020, // 004F LDCONST R10 K32 + 0x882C091B, // 0050 GETMBR R11 R4 K27 + 0x88300321, // 0051 GETMBR R12 R1 K33 + 0x88340322, // 0052 GETMBR R13 R1 K34 0x7C200A00, // 0053 CALL R8 5 - 0x5824000A, // 0054 LDCONST R9 K10 + 0x5824000C, // 0054 LDCONST R9 K12 0x7C180600, // 0055 CALL R6 3 - 0xB81A1C00, // 0056 GETNGBL R6 K14 - 0x8C180D22, // 0057 GETMET R6 R6 K34 + 0xB81A1E00, // 0056 GETNGBL R6 K15 + 0x8C180D23, // 0057 GETMET R6 R6 K35 0x7C180200, // 0058 CALL R6 1 - 0x881C0B23, // 0059 GETMBR R7 R5 K35 - 0x901A4607, // 005A SETMBR R6 K35 R7 - 0x8C1C0525, // 005B GETMET R7 R2 K37 + 0x881C0B24, // 0059 GETMBR R7 R5 K36 + 0x901A4807, // 005A SETMBR R6 K36 R7 + 0x8C1C0526, // 005B GETMET R7 R2 K38 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 - 0x8C1C0D2B, // 0067 GETMET R7 R6 K43 + 0x901A4A07, // 005E SETMBR R6 K37 R7 + 0x881C091B, // 005F GETMBR R7 R4 K27 + 0x901A4E07, // 0060 SETMBR R6 K39 R7 + 0x881C011C, // 0061 GETMBR R7 R0 K28 + 0x881C0F29, // 0062 GETMBR R7 R7 K41 + 0x901A5007, // 0063 SETMBR R6 K40 R7 + 0x881C011C, // 0064 GETMBR R7 R0 K28 + 0x881C0F2B, // 0065 GETMBR R7 R7 K43 + 0x901A5407, // 0066 SETMBR R6 K42 R7 + 0x8C1C0D2C, // 0067 GETMET R7 R6 K44 0x7C1C0200, // 0068 CALL R7 1 - 0x90125807, // 0069 SETMBR R4 K44 R7 - 0x8C20032D, // 006A GETMET R8 R1 K45 + 0x90125A07, // 0069 SETMBR R4 K45 R7 + 0x8C20032E, // 006A GETMET R8 R1 K46 0x542A0020, // 006B LDINT R10 33 0x502C0200, // 006C LDBOOL R11 1 0 0x7C200600, // 006D CALL R8 3 - 0x8C24112E, // 006E GETMET R9 R8 K46 + 0x8C24112F, // 006E GETMET R9 R8 K47 0x5C2C0E00, // 006F MOVE R11 R7 0x7C240400, // 0070 CALL R9 2 - 0x8828012F, // 0071 GETMBR R10 R0 K47 - 0x8C281530, // 0072 GETMET R10 R10 K48 + 0x88280130, // 0071 GETMBR R10 R0 K48 + 0x8C281531, // 0072 GETMET R10 R10 K49 0x5C301000, // 0073 MOVE R12 R8 0x7C280400, // 0074 CALL R10 2 0x50280200, // 0075 LDBOOL R10 1 0 @@ -508,7 +499,7 @@ be_local_closure(Matter_Commisioning_Context_send_status_report, /* name */ ********************************************************************/ be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */ be_nested_proto( - 17, /* nstack */ + 23, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -516,163 +507,180 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[47]) { /* constants */ + ( &(const bvalue[54]) { /* 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), + /* 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_X20Pake1_X20message), + /* K10 */ be_const_int(3), + /* 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_const_int(2), + /* K15 */ be_nested_str_weak(matter), + /* K16 */ be_nested_str_weak(Pake1), + /* K17 */ be_nested_str_weak(parse), + /* K18 */ be_nested_str_weak(raw), + /* K19 */ be_nested_str_weak(app_payload_idx), + /* K20 */ be_nested_str_weak(pA), + /* K21 */ be_nested_str_weak(SPAKE2P_Matter), + /* K22 */ be_nested_str_weak(device), + /* K23 */ be_nested_str_weak(commissioning_w0), + /* K24 */ be_nested_str_weak(commissioning_L), + /* K25 */ be_nested_str_weak(random), + /* K26 */ be_nested_str_weak(compute_pB), + /* K27 */ be_nested_str_weak(compute_ZV_verifier), + /* K28 */ be_nested_str_weak(SHA256), + /* K29 */ be_nested_str_weak(update), + /* K30 */ be_nested_str_weak(fromstring), + /* K31 */ be_nested_str_weak(Matter_Context_Prefix), + /* K32 */ be_nested_str_weak(__Msg1), + /* K33 */ be_nested_str_weak(__Msg2), + /* K34 */ be_nested_str_weak(out), + /* K35 */ be_nested_str_weak(set_context), + /* K36 */ be_nested_str_weak(compute_TT_hash), + /* K37 */ be_nested_str_weak(Pake2), + /* K38 */ be_nested_str_weak(pB), + /* K39 */ be_nested_str_weak(cB), + /* K40 */ be_nested_str_weak(tlv2raw), + /* K41 */ be_nested_str_weak(__spake_cA), + /* K42 */ be_nested_str_weak(cA), + /* K43 */ be_nested_str_weak(__spake_Ke), + /* K44 */ be_nested_str_weak(Ke), + /* K45 */ be_nested_str_weak(build_response), + /* K46 */ be_nested_str_weak(encode_frame), + /* K47 */ be_nested_str_weak(format), + /* K48 */ be_nested_str_weak(MTR_X3A_X20New_X20Commissioning_X20_X28PASE_X20id_X3D_X25i_X29_X20from_X20_X5B_X25s_X5D_X3A_X25i), + /* K49 */ be_nested_str_weak(__future_local_session_id), + /* K50 */ be_nested_str_weak(_ip), + /* K51 */ be_nested_str_weak(_port), + /* K52 */ be_nested_str_weak(responder), + /* K53 */ be_nested_str_weak(send_response_frame), }), be_str_weak(parse_Pake1), &be_const_str_solidified, - ( &(const binstruction[105]) { /* code */ + ( &(const binstruction[115]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 - 0x880C0301, // 0001 GETMBR R3 R1 K1 + 0xA40E0200, // 0001 IMPORT R3 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 + 0x88140303, // 0003 GETMBR R5 R1 K3 + 0x541A0021, // 0004 LDINT R6 34 + 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 - 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 - 0x50100000, // 001D LDBOOL R4 0 0 - 0x80040800, // 001E RET 1 R4 - 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 + 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 + 0x5828000E, // 001B LDCONST R10 K14 + 0x502C0000, // 001C LDBOOL R11 0 0 + 0x7C140C00, // 001D CALL R5 6 + 0x50140000, // 001E LDBOOL R5 0 0 + 0x80040A00, // 001F RET 1 R5 + 0xB8161E00, // 0020 GETNGBL R5 K15 + 0x8C140B10, // 0021 GETMET R5 R5 K16 + 0x7C140200, // 0022 CALL R5 1 + 0x8C140B11, // 0023 GETMET R5 R5 K17 + 0x881C0312, // 0024 GETMBR R7 R1 K18 + 0x88200313, // 0025 GETMBR R8 R1 K19 + 0x7C140600, // 0026 CALL R5 3 + 0x88180B14, // 0027 GETMBR R6 R5 K20 + 0x8C1C0515, // 0028 GETMET R7 R2 K21 + 0x88240116, // 0029 GETMBR R9 R0 K22 + 0x88241317, // 002A GETMBR R9 R9 K23 + 0x4C280000, // 002B LDNIL R10 + 0x882C0116, // 002C GETMBR R11 R0 K22 + 0x882C1718, // 002D GETMBR R11 R11 K24 + 0x7C1C0800, // 002E CALL R7 4 + 0x8C200519, // 002F GETMET R8 R2 K25 + 0x542A001F, // 0030 LDINT R10 32 + 0x7C200400, // 0031 CALL R8 2 + 0x8C240F1A, // 0032 GETMET R9 R7 K26 + 0x5C2C1000, // 0033 MOVE R11 R8 + 0x7C240400, // 0034 CALL R9 2 + 0x8C240F1B, // 0035 GETMET R9 R7 K27 + 0x5C2C0C00, // 0036 MOVE R11 R6 + 0x7C240400, // 0037 CALL R9 2 + 0x8C24051C, // 0038 GETMET R9 R2 K28 + 0x7C240200, // 0039 CALL R9 1 + 0x8C28131D, // 003A GETMET R10 R9 K29 + 0x60300015, // 003B GETGBL R12 G21 + 0x7C300000, // 003C CALL R12 0 + 0x8C30191E, // 003D GETMET R12 R12 K30 + 0x8838011F, // 003E GETMBR R14 R0 K31 + 0x7C300400, // 003F CALL R12 2 + 0x7C280400, // 0040 CALL R10 2 + 0x8C28131D, // 0041 GETMET R10 R9 K29 + 0x88300920, // 0042 GETMBR R12 R4 K32 + 0x7C280400, // 0043 CALL R10 2 + 0x8C28131D, // 0044 GETMET R10 R9 K29 + 0x88300921, // 0045 GETMBR R12 R4 K33 + 0x7C280400, // 0046 CALL R10 2 + 0x8C281322, // 0047 GETMET R10 R9 K34 + 0x7C280200, // 0048 CALL R10 1 + 0x901E2806, // 0049 SETMBR R7 K20 R6 + 0x8C2C0F23, // 004A GETMET R11 R7 K35 + 0x5C341400, // 004B MOVE R13 R10 + 0x7C2C0400, // 004C CALL R11 2 + 0x8C2C0F24, // 004D GETMET R11 R7 K36 + 0x50340200, // 004E LDBOOL R13 1 0 + 0x7C2C0400, // 004F CALL R11 2 + 0xB82E1E00, // 0050 GETNGBL R11 K15 + 0x8C2C1725, // 0051 GETMET R11 R11 K37 + 0x7C2C0200, // 0052 CALL R11 1 + 0x88300F26, // 0053 GETMBR R12 R7 K38 + 0x902E4C0C, // 0054 SETMBR R11 K38 R12 + 0x88300F27, // 0055 GETMBR R12 R7 K39 + 0x902E4E0C, // 0056 SETMBR R11 K39 R12 + 0x8C301728, // 0057 GETMET R12 R11 K40 + 0x7C300200, // 0058 CALL R12 1 + 0x88340F2A, // 0059 GETMBR R13 R7 K42 + 0x9012520D, // 005A SETMBR R4 K41 R13 + 0x88340F2C, // 005B GETMBR R13 R7 K44 + 0x9012560D, // 005C SETMBR R4 K43 R13 + 0x8C34032D, // 005D GETMET R13 R1 K45 + 0x543E0022, // 005E LDINT R15 35 + 0x50400200, // 005F LDBOOL R16 1 0 + 0x7C340600, // 0060 CALL R13 3 + 0x8C381B2E, // 0061 GETMET R14 R13 K46 + 0x5C401800, // 0062 MOVE R16 R12 + 0x7C380400, // 0063 CALL R14 2 + 0xB83E0E00, // 0064 GETNGBL R15 K7 + 0x8C3C1F08, // 0065 GETMET R15 R15 K8 + 0x8C44072F, // 0066 GETMET R17 R3 K47 + 0x584C0030, // 0067 LDCONST R19 K48 + 0x88500931, // 0068 GETMBR R20 R4 K49 + 0x88540932, // 0069 GETMBR R21 R4 K50 + 0x88580933, // 006A GETMBR R22 R4 K51 + 0x7C440A00, // 006B CALL R17 5 + 0x7C3C0400, // 006C CALL R15 2 + 0x883C0134, // 006D GETMBR R15 R0 K52 + 0x8C3C1F35, // 006E GETMET R15 R15 K53 + 0x5C441A00, // 006F MOVE R17 R13 + 0x7C3C0400, // 0070 CALL R15 2 + 0x503C0200, // 0071 LDBOOL R15 1 0 + 0x80041E00, // 0072 RET 1 R15 }) ) ); @@ -724,7 +732,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[31]) { /* constants */ + ( &(const bvalue[32]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(session), /* K2 */ be_nested_str_weak(opcode), @@ -734,28 +742,29 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ /* 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), + /* K9 */ be_const_int(3), /* 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), + /* K13 */ be_const_int(2), + /* K14 */ be_nested_str_weak(matter), + /* K15 */ be_nested_str_weak(Pake3), + /* 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(cA), + /* K20 */ be_nested_str_weak(__spake_cA), + /* K21 */ be_nested_str_weak(MTR_X3A_X20invalid_X20cA_X20received), + /* K22 */ be_nested_str_weak(rtc), + /* K23 */ be_nested_str_weak(utc), + /* K24 */ be_nested_str_weak(HKDF_SHA256), + /* K25 */ be_nested_str_weak(derive), + /* K26 */ be_nested_str_weak(__spake_Ke), + /* K27 */ be_nested_str_weak(fromstring), + /* K28 */ be_nested_str_weak(SEKeys_Info), + /* K29 */ be_nested_str_weak(add_session), + /* K30 */ be_nested_str_weak(__future_local_session_id), + /* K31 */ be_nested_str_weak(__future_initiator_session_id), }), be_str_weak(parse_Pake3), &be_const_str_solidified, @@ -786,25 +795,25 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0x5C180200, // 0017 MOVE R6 R1 0x581C000C, // 0018 LDCONST R7 K12 0x58200004, // 0019 LDCONST R8 K4 - 0x58240009, // 001A LDCONST R9 K9 + 0x5824000D, // 001A LDCONST R9 K13 0x50280000, // 001B LDBOOL R10 0 0 0x7C100C00, // 001C CALL R4 6 0x50100000, // 001D LDBOOL R4 0 0 0x80040800, // 001E RET 1 R4 - 0xB8121A00, // 001F GETNGBL R4 K13 - 0x8C10090E, // 0020 GETMET R4 R4 K14 + 0xB8121C00, // 001F GETNGBL R4 K14 + 0x8C10090F, // 0020 GETMET R4 R4 K15 0x7C100200, // 0021 CALL R4 1 - 0x8C10090F, // 0022 GETMET R4 R4 K15 - 0x88180310, // 0023 GETMBR R6 R1 K16 - 0x881C0311, // 0024 GETMBR R7 R1 K17 + 0x8C100910, // 0022 GETMET R4 R4 K16 + 0x88180311, // 0023 GETMBR R6 R1 K17 + 0x881C0312, // 0024 GETMBR R7 R1 K18 0x7C100600, // 0025 CALL R4 3 - 0x88140912, // 0026 GETMBR R5 R4 K18 - 0x88180713, // 0027 GETMBR R6 R3 K19 + 0x88140913, // 0026 GETMBR R5 R4 K19 + 0x88180714, // 0027 GETMBR R6 R3 K20 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 + 0x58200015, // 002C LDCONST R8 K21 0x58240009, // 002D LDCONST R9 K9 0x7C180600, // 002E CALL R6 3 0xB81A0C00, // 002F GETNGBL R6 K6 @@ -816,25 +825,25 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0x5C200200, // 0035 MOVE R8 R1 0x5824000C, // 0036 LDCONST R9 K12 0x58280004, // 0037 LDCONST R10 K4 - 0x582C0009, // 0038 LDCONST R11 K9 + 0x582C000D, // 0038 LDCONST R11 K13 0x50300000, // 0039 LDBOOL R12 0 0 0x7C180C00, // 003A CALL R6 6 0x50180000, // 003B LDBOOL R6 0 0 0x80040C00, // 003C RET 1 R6 0xB81A0C00, // 003D GETNGBL R6 K6 - 0x8C180D15, // 003E GETMET R6 R6 K21 + 0x8C180D16, // 003E GETMET R6 R6 K22 0x7C180200, // 003F CALL R6 1 - 0x94180D16, // 0040 GETIDX R6 R6 K22 - 0x8C1C0517, // 0041 GETMET R7 R2 K23 + 0x94180D17, // 0040 GETIDX R6 R6 K23 + 0x8C1C0518, // 0041 GETMET R7 R2 K24 0x7C1C0200, // 0042 CALL R7 1 - 0x8C1C0F18, // 0043 GETMET R7 R7 K24 - 0x88240719, // 0044 GETMBR R9 R3 K25 + 0x8C1C0F19, // 0043 GETMET R7 R7 K25 + 0x8824071A, // 0044 GETMBR R9 R3 K26 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 + 0x8C2C171B, // 0049 GETMET R11 R11 K27 + 0x8834011C, // 004A GETMBR R13 R0 K28 0x7C2C0400, // 004B CALL R11 2 0x5432002F, // 004C LDINT R12 48 0x7C1C0A00, // 004D CALL R7 5 @@ -856,9 +865,9 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0x58400004, // 005D LDCONST R16 K4 0x50440000, // 005E LDBOOL R17 0 0 0x7C2C0C00, // 005F CALL R11 6 - 0x8C2C011C, // 0060 GETMET R11 R0 K28 - 0x8834071D, // 0061 GETMBR R13 R3 K29 - 0x8838071E, // 0062 GETMBR R14 R3 K30 + 0x8C2C011D, // 0060 GETMET R11 R0 K29 + 0x8834071E, // 0061 GETMBR R13 R3 K30 + 0x8838071F, // 0062 GETMBR R14 R3 K31 0x5C3C1000, // 0063 MOVE R15 R8 0x5C401200, // 0064 MOVE R16 R9 0x5C441400, // 0065 MOVE R17 R10 @@ -885,7 +894,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[69]) { /* constants */ + ( &(const bvalue[67]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(opcode), /* K2 */ be_nested_str_weak(local_session_id), @@ -894,71 +903,69 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ /* K5 */ be_nested_str_weak(tasmota), /* K6 */ be_nested_str_weak(log), /* K7 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28General_X20Code_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20INVALID_PARAMETER_X29), - /* K8 */ be_const_int(2), + /* K8 */ be_const_int(3), /* K9 */ be_nested_str_weak(send_status_report), /* K10 */ be_const_int(1), - /* K11 */ be_nested_str_weak(session), - /* K12 */ be_nested_str_weak(matter), - /* K13 */ be_nested_str_weak(Sigma3), - /* 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(SHA256), - /* K18 */ be_nested_str_weak(update), - /* K19 */ be_nested_str_weak(__Msg1), - /* K20 */ be_nested_str_weak(__Msg2), - /* K21 */ be_nested_str_weak(out), - /* K22 */ be_nested_str_weak(fromstring), - /* K23 */ be_nested_str_weak(S3K_Info), - /* K24 */ be_nested_str_weak(HKDF_SHA256), - /* K25 */ be_nested_str_weak(derive), - /* K26 */ be_nested_str_weak(shared_secret), - /* K27 */ be_nested_str_weak(get_ipk_group_key), - /* K28 */ be_nested_str_weak(TBEData3Encrypted), - /* K29 */ be_const_int(2147483647), - /* K30 */ be_nested_str_weak(AES_CCM), - /* K31 */ be_nested_str_weak(TBEData3_Nonce), - /* K32 */ be_nested_str_weak(decrypt), - /* K33 */ be_nested_str_weak(tag), - /* K34 */ be_nested_str_weak(MTR_X3A_X20Tag_X20don_X27t_X20match), - /* K35 */ be_nested_str_weak(TLV), - /* K36 */ be_nested_str_weak(findsubval), - /* K37 */ be_const_int(3), - /* K38 */ be_nested_str_weak(MTR_X3A_X20initiatorNOCTLV_X20_X3D_X20), - /* K39 */ be_nested_str_weak(findsub), - /* K40 */ be_nested_str_weak(int), - /* K41 */ be_nested_str_weak(peer_node_id), - /* K42 */ be_nested_str_weak(int64), - /* K43 */ be_nested_str_weak(fromu32), - /* K44 */ be_nested_str_weak(tobytes), - /* K45 */ be_nested_str_weak(MTR_X3A_X20initiatorFabricId_X3D), - /* K46 */ be_nested_str_weak(Matter_TLV_struct), - /* K47 */ be_nested_str_weak(add_TLV), - /* K48 */ be_nested_str_weak(B1), - /* K49 */ be_nested_str_weak(__initiator_pub), - /* K50 */ be_nested_str_weak(__responder_pub), - /* K51 */ be_nested_str_weak(tlv2raw), - /* K52 */ be_nested_str_weak(EC_P256), - /* K53 */ be_nested_str_weak(ecdsa_verify_sha256), - /* K54 */ be_nested_str_weak(MTR_X3A_X20sigma3_tbs_X20does_X20not_X20have_X20a_X20valid_X20signature), - /* K55 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X20Invalid_X20signature_X2C_X20trying_X20anyways), - /* K56 */ be_nested_str_weak(MTR_X3A_X20Sigma3_X20verified_X2C_X20computing_X20new_X20keys), - /* K57 */ be_nested_str_weak(Msg3), - /* K58 */ be_nested_str_weak(SEKeys_Info), - /* K59 */ be_nested_str_weak(rtc), - /* K60 */ be_nested_str_weak(utc), - /* K61 */ be_nested_str_weak(close), - /* K62 */ be_nested_str_weak(set_keys), - /* K63 */ be_nested_str_weak(_breadcrumb), - /* K64 */ be_nested_str_weak(counter_snd_next), - /* K65 */ be_nested_str_weak(set_persist), - /* K66 */ be_nested_str_weak(set_no_expiration), - /* K67 */ be_nested_str_weak(persist_to_fabric), - /* K68 */ be_nested_str_weak(save), + /* K11 */ be_const_int(2), + /* K12 */ be_nested_str_weak(session), + /* K13 */ be_nested_str_weak(matter), + /* K14 */ be_nested_str_weak(Sigma3), + /* 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(SHA256), + /* K19 */ be_nested_str_weak(update), + /* K20 */ be_nested_str_weak(__Msg1), + /* K21 */ be_nested_str_weak(__Msg2), + /* K22 */ be_nested_str_weak(out), + /* K23 */ be_nested_str_weak(fromstring), + /* K24 */ be_nested_str_weak(S3K_Info), + /* K25 */ be_nested_str_weak(HKDF_SHA256), + /* K26 */ be_nested_str_weak(derive), + /* K27 */ be_nested_str_weak(shared_secret), + /* K28 */ be_nested_str_weak(get_ipk_group_key), + /* K29 */ be_nested_str_weak(TBEData3Encrypted), + /* K30 */ be_const_int(2147483647), + /* K31 */ be_nested_str_weak(AES_CCM), + /* K32 */ be_nested_str_weak(TBEData3_Nonce), + /* K33 */ be_nested_str_weak(decrypt), + /* K34 */ be_nested_str_weak(tag), + /* K35 */ be_nested_str_weak(MTR_X3A_X20Tag_X20don_X27t_X20match), + /* K36 */ be_nested_str_weak(TLV), + /* K37 */ be_nested_str_weak(findsubval), + /* K38 */ be_nested_str_weak(findsub), + /* K39 */ be_nested_str_weak(int), + /* K40 */ be_nested_str_weak(peer_node_id), + /* K41 */ be_nested_str_weak(int64), + /* K42 */ be_nested_str_weak(fromu32), + /* K43 */ be_nested_str_weak(tobytes), + /* K44 */ be_nested_str_weak(Matter_TLV_struct), + /* K45 */ be_nested_str_weak(add_TLV), + /* K46 */ be_nested_str_weak(B1), + /* K47 */ be_nested_str_weak(__initiator_pub), + /* K48 */ be_nested_str_weak(__responder_pub), + /* K49 */ be_nested_str_weak(tlv2raw), + /* K50 */ be_nested_str_weak(EC_P256), + /* K51 */ be_nested_str_weak(ecdsa_verify_sha256), + /* K52 */ be_nested_str_weak(MTR_X3A_X20sigma3_tbs_X20does_X20not_X20have_X20a_X20valid_X20signature), + /* K53 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X20Invalid_X20signature_X2C_X20trying_X20anyways), + /* K54 */ be_nested_str_weak(MTR_X3A_X20Sigma3_X20verified_X2C_X20computing_X20new_X20keys), + /* K55 */ be_nested_str_weak(Msg3), + /* K56 */ be_nested_str_weak(SEKeys_Info), + /* K57 */ be_nested_str_weak(rtc), + /* K58 */ be_nested_str_weak(utc), + /* K59 */ be_nested_str_weak(close), + /* K60 */ be_nested_str_weak(set_keys), + /* K61 */ be_nested_str_weak(_breadcrumb), + /* K62 */ be_nested_str_weak(counter_snd_next), + /* K63 */ be_nested_str_weak(set_persist), + /* K64 */ be_nested_str_weak(set_no_expiration), + /* K65 */ be_nested_str_weak(persist_to_fabric), + /* K66 */ be_nested_str_weak(save), }), be_str_weak(parse_Sigma3), &be_const_str_solidified, - ( &(const binstruction[303]) { /* code */ + ( &(const binstruction[287]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0x880C0301, // 0001 GETMBR R3 R1 K1 0x54120031, // 0002 LDINT R4 50 @@ -979,39 +986,39 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x5C140200, // 0011 MOVE R5 R1 0x5818000A, // 0012 LDCONST R6 K10 0x581C0003, // 0013 LDCONST R7 K3 - 0x58200008, // 0014 LDCONST R8 K8 + 0x5820000B, // 0014 LDCONST R8 K11 0x50240000, // 0015 LDBOOL R9 0 0 0x7C0C0C00, // 0016 CALL R3 6 0x500C0000, // 0017 LDBOOL R3 0 0 0x80040600, // 0018 RET 1 R3 - 0x880C030B, // 0019 GETMBR R3 R1 K11 - 0xB8121800, // 001A GETNGBL R4 K12 - 0x8C10090D, // 001B GETMET R4 R4 K13 + 0x880C030C, // 0019 GETMBR R3 R1 K12 + 0xB8121A00, // 001A GETNGBL R4 K13 + 0x8C10090E, // 001B GETMET R4 R4 K14 0x7C100200, // 001C CALL R4 1 - 0x8C10090E, // 001D GETMET R4 R4 K14 - 0x8818030F, // 001E GETMBR R6 R1 K15 - 0x881C0310, // 001F GETMBR R7 R1 K16 + 0x8C10090F, // 001D GETMET R4 R4 K15 + 0x88180310, // 001E GETMBR R6 R1 K16 + 0x881C0311, // 001F GETMBR R7 R1 K17 0x7C100600, // 0020 CALL R4 3 - 0x8C140511, // 0021 GETMET R5 R2 K17 + 0x8C140512, // 0021 GETMET R5 R2 K18 0x7C140200, // 0022 CALL R5 1 - 0x8C140B12, // 0023 GETMET R5 R5 K18 - 0x881C0713, // 0024 GETMBR R7 R3 K19 + 0x8C140B13, // 0023 GETMET R5 R5 K19 + 0x881C0714, // 0024 GETMBR R7 R3 K20 0x7C140400, // 0025 CALL R5 2 - 0x8C140B12, // 0026 GETMET R5 R5 K18 - 0x881C0714, // 0027 GETMBR R7 R3 K20 + 0x8C140B13, // 0026 GETMET R5 R5 K19 + 0x881C0715, // 0027 GETMBR R7 R3 K21 0x7C140400, // 0028 CALL R5 2 - 0x8C140B15, // 0029 GETMET R5 R5 K21 + 0x8C140B16, // 0029 GETMET R5 R5 K22 0x7C140200, // 002A CALL R5 1 0x60180015, // 002B GETGBL R6 G21 0x7C180000, // 002C CALL R6 0 - 0x8C180D16, // 002D GETMET R6 R6 K22 - 0x88200117, // 002E GETMBR R8 R0 K23 + 0x8C180D17, // 002D GETMET R6 R6 K23 + 0x88200118, // 002E GETMBR R8 R0 K24 0x7C180400, // 002F CALL R6 2 - 0x8C1C0518, // 0030 GETMET R7 R2 K24 + 0x8C1C0519, // 0030 GETMET R7 R2 K25 0x7C1C0200, // 0031 CALL R7 1 - 0x8C1C0F19, // 0032 GETMET R7 R7 K25 - 0x8824071A, // 0033 GETMBR R9 R3 K26 - 0x8C28071B, // 0034 GETMET R10 R3 K27 + 0x8C1C0F1A, // 0032 GETMET R7 R7 K26 + 0x8824071B, // 0033 GETMBR R9 R3 K27 + 0x8C28071C, // 0034 GETMET R10 R3 K28 0x7C280200, // 0035 CALL R10 1 0x00281405, // 0036 ADD R10 R10 R5 0x5C2C0C00, // 0037 MOVE R11 R6 @@ -1019,18 +1026,18 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x7C1C0A00, // 0039 CALL R7 5 0x5421FFEE, // 003A LDINT R8 -17 0x40220608, // 003B CONNECT R8 K3 R8 - 0x8824091C, // 003C GETMBR R9 R4 K28 + 0x8824091D, // 003C GETMBR R9 R4 K29 0x94201208, // 003D GETIDX R8 R9 R8 0x5429FFEF, // 003E LDINT R10 -16 - 0x4028151D, // 003F CONNECT R10 R10 K29 - 0x882C091C, // 0040 GETMBR R11 R4 K28 + 0x4028151E, // 003F CONNECT R10 R10 K30 + 0x882C091D, // 0040 GETMBR R11 R4 K29 0x9424160A, // 0041 GETIDX R9 R11 R10 - 0x8C30051E, // 0042 GETMET R12 R2 K30 + 0x8C30051F, // 0042 GETMET R12 R2 K31 0x5C380E00, // 0043 MOVE R14 R7 0x603C0015, // 0044 GETGBL R15 G21 0x7C3C0000, // 0045 CALL R15 0 - 0x8C3C1F16, // 0046 GETMET R15 R15 K22 - 0x8844011F, // 0047 GETMBR R17 R0 K31 + 0x8C3C1F17, // 0046 GETMET R15 R15 K23 + 0x88440120, // 0047 GETMBR R17 R0 K32 0x7C3C0400, // 0048 CALL R15 2 0x60400015, // 0049 GETGBL R16 G21 0x7C400000, // 004A CALL R16 0 @@ -1040,17 +1047,17 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x544A000F, // 004E LDINT R18 16 0x7C300C00, // 004F CALL R12 6 0x5C281800, // 0050 MOVE R10 R12 - 0x8C301520, // 0051 GETMET R12 R10 K32 + 0x8C301521, // 0051 GETMET R12 R10 K33 0x5C381000, // 0052 MOVE R14 R8 0x7C300400, // 0053 CALL R12 2 0x5C2C1800, // 0054 MOVE R11 R12 - 0x8C301521, // 0055 GETMET R12 R10 K33 + 0x8C301522, // 0055 GETMET R12 R10 K34 0x7C300200, // 0056 CALL R12 1 0x20341809, // 0057 NE R13 R12 R9 0x78360012, // 0058 JMPF R13 #006C 0xB8360A00, // 0059 GETNGBL R13 K5 0x8C341B06, // 005A GETMET R13 R13 K6 - 0x583C0022, // 005B LDCONST R15 K34 + 0x583C0023, // 005B LDCONST R15 K35 0x58400008, // 005C LDCONST R16 K8 0x7C340600, // 005D CALL R13 3 0xB8360A00, // 005E GETNGBL R13 K5 @@ -1062,206 +1069,190 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x5C3C0200, // 0064 MOVE R15 R1 0x5840000A, // 0065 LDCONST R16 K10 0x58440003, // 0066 LDCONST R17 K3 - 0x58480008, // 0067 LDCONST R18 K8 + 0x5848000B, // 0067 LDCONST R18 K11 0x504C0000, // 0068 LDBOOL R19 0 0 0x7C340C00, // 0069 CALL R13 6 0x50340000, // 006A LDBOOL R13 0 0 0x80041A00, // 006B RET 1 R13 - 0xB8361800, // 006C GETNGBL R13 K12 - 0x88341B23, // 006D GETMBR R13 R13 K35 - 0x8C341B0E, // 006E GETMET R13 R13 K14 + 0xB8361A00, // 006C GETNGBL R13 K13 + 0x88341B24, // 006D GETMBR R13 R13 K36 + 0x8C341B0F, // 006E GETMET R13 R13 K15 0x5C3C1600, // 006F MOVE R15 R11 0x7C340400, // 0070 CALL R13 2 - 0x8C381B24, // 0071 GETMET R14 R13 K36 + 0x8C381B25, // 0071 GETMET R14 R13 K37 0x5840000A, // 0072 LDCONST R16 K10 0x7C380400, // 0073 CALL R14 2 - 0x8C3C1B24, // 0074 GETMET R15 R13 K36 - 0x58440008, // 0075 LDCONST R17 K8 + 0x8C3C1B25, // 0074 GETMET R15 R13 K37 + 0x5844000B, // 0075 LDCONST R17 K11 0x7C3C0400, // 0076 CALL R15 2 - 0x8C401B24, // 0077 GETMET R16 R13 K36 - 0x58480025, // 0078 LDCONST R18 K37 + 0x8C401B25, // 0077 GETMET R16 R13 K37 + 0x58480008, // 0078 LDCONST R18 K8 0x7C400400, // 0079 CALL R16 2 - 0xB8461800, // 007A GETNGBL R17 K12 - 0x88442323, // 007B GETMBR R17 R17 K35 - 0x8C44230E, // 007C GETMET R17 R17 K14 + 0xB8461A00, // 007A GETNGBL R17 K13 + 0x88442324, // 007B GETMBR R17 R17 K36 + 0x8C44230F, // 007C GETMET R17 R17 K15 0x5C4C1C00, // 007D MOVE R19 R14 0x7C440400, // 007E CALL R17 2 - 0xB84A0A00, // 007F GETNGBL R18 K5 - 0x8C482506, // 0080 GETMET R18 R18 K6 - 0x60500008, // 0081 GETGBL R20 G8 - 0x5C542200, // 0082 MOVE R21 R17 - 0x7C500200, // 0083 CALL R20 1 - 0x00524C14, // 0084 ADD R20 K38 R20 - 0x58540025, // 0085 LDCONST R21 K37 - 0x7C480600, // 0086 CALL R18 3 - 0x8C482324, // 0087 GETMET R18 R17 K36 - 0x54520008, // 0088 LDINT R20 9 - 0x7C480400, // 0089 CALL R18 2 - 0x8C4C2327, // 008A GETMET R19 R17 K39 - 0x54560005, // 008B LDINT R21 6 - 0x7C4C0400, // 008C CALL R19 2 - 0x8C502724, // 008D GETMET R20 R19 K36 - 0x545A0010, // 008E LDINT R22 17 - 0x7C500400, // 008F CALL R20 2 - 0x60540004, // 0090 GETGBL R21 G4 - 0x5C582800, // 0091 MOVE R22 R20 + 0x8C482325, // 007F GETMET R18 R17 K37 + 0x54520008, // 0080 LDINT R20 9 + 0x7C480400, // 0081 CALL R18 2 + 0x8C4C2326, // 0082 GETMET R19 R17 K38 + 0x54560005, // 0083 LDINT R21 6 + 0x7C4C0400, // 0084 CALL R19 2 + 0x8C502725, // 0085 GETMET R20 R19 K37 + 0x545A0010, // 0086 LDINT R22 17 + 0x7C500400, // 0087 CALL R20 2 + 0x60540004, // 0088 GETGBL R21 G4 + 0x5C582800, // 0089 MOVE R22 R20 + 0x7C540200, // 008A CALL R21 1 + 0x1C542B27, // 008B EQ R21 R21 K39 + 0x78560007, // 008C JMPF R21 #0095 + 0xB8565200, // 008D GETNGBL R21 K41 + 0x8C542B2A, // 008E GETMET R21 R21 K42 + 0x5C5C2800, // 008F MOVE R23 R20 + 0x7C540400, // 0090 CALL R21 2 + 0x8C542B2B, // 0091 GETMET R21 R21 K43 0x7C540200, // 0092 CALL R21 1 - 0x1C542B28, // 0093 EQ R21 R21 K40 - 0x78560007, // 0094 JMPF R21 #009D - 0xB8565400, // 0095 GETNGBL R21 K42 - 0x8C542B2B, // 0096 GETMET R21 R21 K43 - 0x5C5C2800, // 0097 MOVE R23 R20 - 0x7C540400, // 0098 CALL R21 2 - 0x8C542B2C, // 0099 GETMET R21 R21 K44 - 0x7C540200, // 009A CALL R21 1 - 0x900E5215, // 009B SETMBR R3 K41 R21 - 0x70020002, // 009C JMP #00A0 - 0x8C54292C, // 009D GETMET R21 R20 K44 - 0x7C540200, // 009E CALL R21 1 - 0x900E5215, // 009F SETMBR R3 K41 R21 - 0xB8560A00, // 00A0 GETNGBL R21 K5 - 0x8C542B06, // 00A1 GETMET R21 R21 K6 - 0x605C0008, // 00A2 GETGBL R23 G8 - 0x88600729, // 00A3 GETMBR R24 R3 K41 - 0x7C5C0200, // 00A4 CALL R23 1 - 0x005E5A17, // 00A5 ADD R23 K45 R23 - 0x58600025, // 00A6 LDCONST R24 K37 - 0x7C540600, // 00A7 CALL R21 3 - 0xB8561800, // 00A8 GETNGBL R21 K12 - 0x88542B23, // 00A9 GETMBR R21 R21 K35 - 0x8C542B2E, // 00AA GETMET R21 R21 K46 - 0x7C540200, // 00AB CALL R21 1 - 0x8C582B2F, // 00AC GETMET R22 R21 K47 - 0x5860000A, // 00AD LDCONST R24 K10 - 0xB8661800, // 00AE GETNGBL R25 K12 - 0x88643323, // 00AF GETMBR R25 R25 K35 - 0x88643330, // 00B0 GETMBR R25 R25 K48 - 0x5C681C00, // 00B1 MOVE R26 R14 - 0x7C580800, // 00B2 CALL R22 4 - 0x8C582B2F, // 00B3 GETMET R22 R21 K47 - 0x58600008, // 00B4 LDCONST R24 K8 - 0xB8661800, // 00B5 GETNGBL R25 K12 - 0x88643323, // 00B6 GETMBR R25 R25 K35 - 0x88643330, // 00B7 GETMBR R25 R25 K48 - 0x5C681E00, // 00B8 MOVE R26 R15 - 0x7C580800, // 00B9 CALL R22 4 - 0x8C582B2F, // 00BA GETMET R22 R21 K47 - 0x58600025, // 00BB LDCONST R24 K37 - 0xB8661800, // 00BC GETNGBL R25 K12 - 0x88643323, // 00BD GETMBR R25 R25 K35 - 0x88643330, // 00BE GETMBR R25 R25 K48 - 0x88680731, // 00BF GETMBR R26 R3 K49 - 0x7C580800, // 00C0 CALL R22 4 - 0x8C582B2F, // 00C1 GETMET R22 R21 K47 - 0x54620003, // 00C2 LDINT R24 4 - 0xB8661800, // 00C3 GETNGBL R25 K12 - 0x88643323, // 00C4 GETMBR R25 R25 K35 - 0x88643330, // 00C5 GETMBR R25 R25 K48 - 0x88680732, // 00C6 GETMBR R26 R3 K50 - 0x7C580800, // 00C7 CALL R22 4 - 0x8C582B33, // 00C8 GETMET R22 R21 K51 - 0x7C580200, // 00C9 CALL R22 1 - 0x8C5C0534, // 00CA GETMET R23 R2 K52 - 0x7C5C0200, // 00CB CALL R23 1 - 0x8C5C2F35, // 00CC GETMET R23 R23 K53 - 0x5C642400, // 00CD MOVE R25 R18 - 0x5C682C00, // 00CE MOVE R26 R22 - 0x5C6C2000, // 00CF MOVE R27 R16 - 0x7C5C0800, // 00D0 CALL R23 4 - 0x5C602E00, // 00D1 MOVE R24 R23 - 0x7462000A, // 00D2 JMPT R24 #00DE - 0xB8620A00, // 00D3 GETNGBL R24 K5 - 0x8C603106, // 00D4 GETMET R24 R24 K6 - 0x58680036, // 00D5 LDCONST R26 K54 - 0x586C0008, // 00D6 LDCONST R27 K8 - 0x7C600600, // 00D7 CALL R24 3 - 0xB8620A00, // 00D8 GETNGBL R24 K5 - 0x8C603106, // 00D9 GETMET R24 R24 K6 - 0x58680037, // 00DA LDCONST R26 K55 - 0x586C0008, // 00DB LDCONST R27 K8 - 0x7C600600, // 00DC CALL R24 3 - 0x70020004, // 00DD JMP #00E3 - 0xB8620A00, // 00DE GETNGBL R24 K5 - 0x8C603106, // 00DF GETMET R24 R24 K6 - 0x58680038, // 00E0 LDCONST R26 K56 - 0x586C0025, // 00E1 LDCONST R27 K37 - 0x7C600600, // 00E2 CALL R24 3 - 0x8C600511, // 00E3 GETMET R24 R2 K17 - 0x7C600200, // 00E4 CALL R24 1 - 0x8C603112, // 00E5 GETMET R24 R24 K18 - 0x88680713, // 00E6 GETMBR R26 R3 K19 - 0x7C600400, // 00E7 CALL R24 2 - 0x8C603112, // 00E8 GETMET R24 R24 K18 - 0x88680714, // 00E9 GETMBR R26 R3 K20 - 0x7C600400, // 00EA CALL R24 2 - 0x8C603112, // 00EB GETMET R24 R24 K18 - 0x88680939, // 00EC GETMBR R26 R4 K57 - 0x7C600400, // 00ED CALL R24 2 - 0x8C603115, // 00EE GETMET R24 R24 K21 - 0x7C600200, // 00EF CALL R24 1 - 0x5C143000, // 00F0 MOVE R5 R24 - 0x4C600000, // 00F1 LDNIL R24 - 0x900E2618, // 00F2 SETMBR R3 K19 R24 - 0x4C600000, // 00F3 LDNIL R24 - 0x900E2818, // 00F4 SETMBR R3 K20 R24 - 0x8C600518, // 00F5 GETMET R24 R2 K24 - 0x7C600200, // 00F6 CALL R24 1 - 0x8C603119, // 00F7 GETMET R24 R24 K25 - 0x8868071A, // 00F8 GETMBR R26 R3 K26 - 0x8C6C071B, // 00F9 GETMET R27 R3 K27 - 0x7C6C0200, // 00FA CALL R27 1 - 0x006C3605, // 00FB ADD R27 R27 R5 - 0x60700015, // 00FC GETGBL R28 G21 - 0x7C700000, // 00FD CALL R28 0 - 0x8C703916, // 00FE GETMET R28 R28 K22 - 0x8878013A, // 00FF GETMBR R30 R0 K58 - 0x7C700400, // 0100 CALL R28 2 - 0x5476002F, // 0101 LDINT R29 48 - 0x7C600A00, // 0102 CALL R24 5 - 0x5466000E, // 0103 LDINT R25 15 - 0x40660619, // 0104 CONNECT R25 K3 R25 - 0x94643019, // 0105 GETIDX R25 R24 R25 - 0x546A000F, // 0106 LDINT R26 16 - 0x546E001E, // 0107 LDINT R27 31 - 0x4068341B, // 0108 CONNECT R26 R26 R27 - 0x9468301A, // 0109 GETIDX R26 R24 R26 - 0x546E001F, // 010A LDINT R27 32 - 0x5472002E, // 010B LDINT R28 47 - 0x406C361C, // 010C CONNECT R27 R27 R28 - 0x946C301B, // 010D GETIDX R27 R24 R27 - 0xB8720A00, // 010E GETNGBL R28 K5 - 0x8C70393B, // 010F GETMET R28 R28 K59 - 0x7C700200, // 0110 CALL R28 1 - 0x9470393C, // 0111 GETIDX R28 R28 K60 - 0x8C740109, // 0112 GETMET R29 R0 K9 - 0x5C7C0200, // 0113 MOVE R31 R1 - 0x58800003, // 0114 LDCONST R32 K3 - 0x58840003, // 0115 LDCONST R33 K3 - 0x58880003, // 0116 LDCONST R34 K3 - 0x508C0200, // 0117 LDBOOL R35 1 0 - 0x7C740C00, // 0118 CALL R29 6 - 0x8C74073D, // 0119 GETMET R29 R3 K61 + 0x900E5015, // 0093 SETMBR R3 K40 R21 + 0x70020002, // 0094 JMP #0098 + 0x8C54292B, // 0095 GETMET R21 R20 K43 + 0x7C540200, // 0096 CALL R21 1 + 0x900E5015, // 0097 SETMBR R3 K40 R21 + 0xB8561A00, // 0098 GETNGBL R21 K13 + 0x88542B24, // 0099 GETMBR R21 R21 K36 + 0x8C542B2C, // 009A GETMET R21 R21 K44 + 0x7C540200, // 009B CALL R21 1 + 0x8C582B2D, // 009C GETMET R22 R21 K45 + 0x5860000A, // 009D LDCONST R24 K10 + 0xB8661A00, // 009E GETNGBL R25 K13 + 0x88643324, // 009F GETMBR R25 R25 K36 + 0x8864332E, // 00A0 GETMBR R25 R25 K46 + 0x5C681C00, // 00A1 MOVE R26 R14 + 0x7C580800, // 00A2 CALL R22 4 + 0x8C582B2D, // 00A3 GETMET R22 R21 K45 + 0x5860000B, // 00A4 LDCONST R24 K11 + 0xB8661A00, // 00A5 GETNGBL R25 K13 + 0x88643324, // 00A6 GETMBR R25 R25 K36 + 0x8864332E, // 00A7 GETMBR R25 R25 K46 + 0x5C681E00, // 00A8 MOVE R26 R15 + 0x7C580800, // 00A9 CALL R22 4 + 0x8C582B2D, // 00AA GETMET R22 R21 K45 + 0x58600008, // 00AB LDCONST R24 K8 + 0xB8661A00, // 00AC GETNGBL R25 K13 + 0x88643324, // 00AD GETMBR R25 R25 K36 + 0x8864332E, // 00AE GETMBR R25 R25 K46 + 0x8868072F, // 00AF GETMBR R26 R3 K47 + 0x7C580800, // 00B0 CALL R22 4 + 0x8C582B2D, // 00B1 GETMET R22 R21 K45 + 0x54620003, // 00B2 LDINT R24 4 + 0xB8661A00, // 00B3 GETNGBL R25 K13 + 0x88643324, // 00B4 GETMBR R25 R25 K36 + 0x8864332E, // 00B5 GETMBR R25 R25 K46 + 0x88680730, // 00B6 GETMBR R26 R3 K48 + 0x7C580800, // 00B7 CALL R22 4 + 0x8C582B31, // 00B8 GETMET R22 R21 K49 + 0x7C580200, // 00B9 CALL R22 1 + 0x8C5C0532, // 00BA GETMET R23 R2 K50 + 0x7C5C0200, // 00BB CALL R23 1 + 0x8C5C2F33, // 00BC GETMET R23 R23 K51 + 0x5C642400, // 00BD MOVE R25 R18 + 0x5C682C00, // 00BE MOVE R26 R22 + 0x5C6C2000, // 00BF MOVE R27 R16 + 0x7C5C0800, // 00C0 CALL R23 4 + 0x5C602E00, // 00C1 MOVE R24 R23 + 0x7462000A, // 00C2 JMPT R24 #00CE + 0xB8620A00, // 00C3 GETNGBL R24 K5 + 0x8C603106, // 00C4 GETMET R24 R24 K6 + 0x58680034, // 00C5 LDCONST R26 K52 + 0x586C000B, // 00C6 LDCONST R27 K11 + 0x7C600600, // 00C7 CALL R24 3 + 0xB8620A00, // 00C8 GETNGBL R24 K5 + 0x8C603106, // 00C9 GETMET R24 R24 K6 + 0x58680035, // 00CA LDCONST R26 K53 + 0x586C000B, // 00CB LDCONST R27 K11 + 0x7C600600, // 00CC CALL R24 3 + 0x70020004, // 00CD JMP #00D3 + 0xB8620A00, // 00CE GETNGBL R24 K5 + 0x8C603106, // 00CF GETMET R24 R24 K6 + 0x58680036, // 00D0 LDCONST R26 K54 + 0x586C0008, // 00D1 LDCONST R27 K8 + 0x7C600600, // 00D2 CALL R24 3 + 0x8C600512, // 00D3 GETMET R24 R2 K18 + 0x7C600200, // 00D4 CALL R24 1 + 0x8C603113, // 00D5 GETMET R24 R24 K19 + 0x88680714, // 00D6 GETMBR R26 R3 K20 + 0x7C600400, // 00D7 CALL R24 2 + 0x8C603113, // 00D8 GETMET R24 R24 K19 + 0x88680715, // 00D9 GETMBR R26 R3 K21 + 0x7C600400, // 00DA CALL R24 2 + 0x8C603113, // 00DB GETMET R24 R24 K19 + 0x88680937, // 00DC GETMBR R26 R4 K55 + 0x7C600400, // 00DD CALL R24 2 + 0x8C603116, // 00DE GETMET R24 R24 K22 + 0x7C600200, // 00DF CALL R24 1 + 0x5C143000, // 00E0 MOVE R5 R24 + 0x4C600000, // 00E1 LDNIL R24 + 0x900E2818, // 00E2 SETMBR R3 K20 R24 + 0x4C600000, // 00E3 LDNIL R24 + 0x900E2A18, // 00E4 SETMBR R3 K21 R24 + 0x8C600519, // 00E5 GETMET R24 R2 K25 + 0x7C600200, // 00E6 CALL R24 1 + 0x8C60311A, // 00E7 GETMET R24 R24 K26 + 0x8868071B, // 00E8 GETMBR R26 R3 K27 + 0x8C6C071C, // 00E9 GETMET R27 R3 K28 + 0x7C6C0200, // 00EA CALL R27 1 + 0x006C3605, // 00EB ADD R27 R27 R5 + 0x60700015, // 00EC GETGBL R28 G21 + 0x7C700000, // 00ED CALL R28 0 + 0x8C703917, // 00EE GETMET R28 R28 K23 + 0x88780138, // 00EF GETMBR R30 R0 K56 + 0x7C700400, // 00F0 CALL R28 2 + 0x5476002F, // 00F1 LDINT R29 48 + 0x7C600A00, // 00F2 CALL R24 5 + 0x5466000E, // 00F3 LDINT R25 15 + 0x40660619, // 00F4 CONNECT R25 K3 R25 + 0x94643019, // 00F5 GETIDX R25 R24 R25 + 0x546A000F, // 00F6 LDINT R26 16 + 0x546E001E, // 00F7 LDINT R27 31 + 0x4068341B, // 00F8 CONNECT R26 R26 R27 + 0x9468301A, // 00F9 GETIDX R26 R24 R26 + 0x546E001F, // 00FA LDINT R27 32 + 0x5472002E, // 00FB LDINT R28 47 + 0x406C361C, // 00FC CONNECT R27 R27 R28 + 0x946C301B, // 00FD GETIDX R27 R24 R27 + 0xB8720A00, // 00FE GETNGBL R28 K5 + 0x8C703939, // 00FF GETMET R28 R28 K57 + 0x7C700200, // 0100 CALL R28 1 + 0x9470393A, // 0101 GETIDX R28 R28 K58 + 0x8C740109, // 0102 GETMET R29 R0 K9 + 0x5C7C0200, // 0103 MOVE R31 R1 + 0x58800003, // 0104 LDCONST R32 K3 + 0x58840003, // 0105 LDCONST R33 K3 + 0x58880003, // 0106 LDCONST R34 K3 + 0x508C0200, // 0107 LDBOOL R35 1 0 + 0x7C740C00, // 0108 CALL R29 6 + 0x8C74073B, // 0109 GETMET R29 R3 K59 + 0x7C740200, // 010A CALL R29 1 + 0x8C74073C, // 010B GETMET R29 R3 K60 + 0x5C7C3200, // 010C MOVE R31 R25 + 0x5C803400, // 010D MOVE R32 R26 + 0x5C843600, // 010E MOVE R33 R27 + 0x5C883800, // 010F MOVE R34 R28 + 0x7C740A00, // 0110 CALL R29 5 + 0x900E7B03, // 0111 SETMBR R3 K61 K3 + 0x8C74073E, // 0112 GETMET R29 R3 K62 + 0x7C740200, // 0113 CALL R29 1 + 0x8C74073F, // 0114 GETMET R29 R3 K63 + 0x507C0200, // 0115 LDBOOL R31 1 0 + 0x7C740400, // 0116 CALL R29 2 + 0x8C740740, // 0117 GETMET R29 R3 K64 + 0x7C740200, // 0118 CALL R29 1 + 0x8C740741, // 0119 GETMET R29 R3 K65 0x7C740200, // 011A CALL R29 1 - 0x8C74073E, // 011B GETMET R29 R3 K62 - 0x5C7C3200, // 011C MOVE R31 R25 - 0x5C803400, // 011D MOVE R32 R26 - 0x5C843600, // 011E MOVE R33 R27 - 0x5C883800, // 011F MOVE R34 R28 - 0x7C740A00, // 0120 CALL R29 5 - 0x900E7F03, // 0121 SETMBR R3 K63 K3 - 0x8C740740, // 0122 GETMET R29 R3 K64 - 0x7C740200, // 0123 CALL R29 1 - 0x8C740741, // 0124 GETMET R29 R3 K65 - 0x507C0200, // 0125 LDBOOL R31 1 0 - 0x7C740400, // 0126 CALL R29 2 - 0x8C740742, // 0127 GETMET R29 R3 K66 - 0x7C740200, // 0128 CALL R29 1 - 0x8C740743, // 0129 GETMET R29 R3 K67 - 0x7C740200, // 012A CALL R29 1 - 0x8C740744, // 012B GETMET R29 R3 K68 - 0x7C740200, // 012C CALL R29 1 - 0x50740200, // 012D LDBOOL R29 1 0 - 0x80043A00, // 012E RET 1 R29 + 0x8C740742, // 011B GETMET R29 R3 K66 + 0x7C740200, // 011C CALL R29 1 + 0x50740200, // 011D LDBOOL R29 1 0 + 0x80043A00, // 011E RET 1 R29 }) ) ); @@ -1281,7 +1272,7 @@ be_local_closure(Matter_Commisioning_Context_process_incoming, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ + ( &(const bvalue[16]) { /* constants */ /* K0 */ be_nested_str_weak(device), /* K1 */ be_nested_str_weak(is_commissioning_open), /* K2 */ be_nested_str_weak(opcode), @@ -1289,22 +1280,19 @@ be_local_closure(Matter_Commisioning_Context_process_incoming, /* name */ /* 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_nested_str_weak(parse_PBKDFParamRequest), - /* K11 */ be_nested_str_weak(parse_Pake1), - /* K12 */ be_nested_str_weak(parse_Pake3), - /* K13 */ be_nested_str_weak(parse_Sigma1), - /* K14 */ be_nested_str_weak(parse_Sigma3), - /* K15 */ be_nested_str_weak(parse_StatusReport), - /* K16 */ be_nested_str_weak(string), - /* K17 */ be_nested_str_weak(format), - /* K18 */ 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), + /* K7 */ be_nested_str_weak(parse_PBKDFParamRequest), + /* K8 */ be_nested_str_weak(parse_Pake1), + /* K9 */ be_nested_str_weak(parse_Pake3), + /* K10 */ be_nested_str_weak(parse_Sigma1), + /* K11 */ be_nested_str_weak(parse_Sigma3), + /* K12 */ be_nested_str_weak(parse_StatusReport), + /* K13 */ be_nested_str_weak(string), + /* K14 */ be_nested_str_weak(format), + /* K15 */ 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 */ + ( &(const binstruction[91]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x8C080501, // 0001 GETMET R2 R2 K1 0x7C080200, // 0002 CALL R2 1 @@ -1324,87 +1312,78 @@ be_local_closure(Matter_Commisioning_Context_process_incoming, /* name */ 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 - 0x54160003, // 001A LDINT R5 4 - 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, // 0013 GETMBR R2 R1 K2 + 0x540E000F, // 0014 LDINT R3 16 + 0x1C080403, // 0015 EQ R2 R2 R3 + 0x780A0000, // 0016 JMPF R2 #0018 + 0x70020040, // 0017 JMP #0059 + 0x88080302, // 0018 GETMBR R2 R1 K2 + 0x540E001F, // 0019 LDINT R3 32 + 0x1C080403, // 001A EQ R2 R2 R3 + 0x780A0004, // 001B JMPF R2 #0021 + 0x8C080107, // 001C GETMET R2 R0 K7 + 0x5C100200, // 001D MOVE R4 R1 + 0x7C080400, // 001E CALL R2 2 + 0x80040400, // 001F RET 1 R2 + 0x70020037, // 0020 JMP #0059 0x88080302, // 0021 GETMBR R2 R1 K2 - 0x540E001F, // 0022 LDINT R3 32 + 0x540E0021, // 0022 LDINT R3 34 0x1C080403, // 0023 EQ R2 R2 R3 0x780A0004, // 0024 JMPF R2 #002A - 0x8C08010A, // 0025 GETMET R2 R0 K10 + 0x8C080108, // 0025 GETMET R2 R0 K8 0x5C100200, // 0026 MOVE R4 R1 0x7C080400, // 0027 CALL R2 2 0x80040400, // 0028 RET 1 R2 - 0x70020037, // 0029 JMP #0062 + 0x7002002E, // 0029 JMP #0059 0x88080302, // 002A GETMBR R2 R1 K2 - 0x540E0021, // 002B LDINT R3 34 + 0x540E0023, // 002B LDINT R3 36 0x1C080403, // 002C EQ R2 R2 R3 0x780A0004, // 002D JMPF R2 #0033 - 0x8C08010B, // 002E GETMET R2 R0 K11 + 0x8C080109, // 002E GETMET R2 R0 K9 0x5C100200, // 002F MOVE R4 R1 0x7C080400, // 0030 CALL R2 2 0x80040400, // 0031 RET 1 R2 - 0x7002002E, // 0032 JMP #0062 + 0x70020025, // 0032 JMP #0059 0x88080302, // 0033 GETMBR R2 R1 K2 - 0x540E0023, // 0034 LDINT R3 36 + 0x540E002F, // 0034 LDINT R3 48 0x1C080403, // 0035 EQ R2 R2 R3 0x780A0004, // 0036 JMPF R2 #003C - 0x8C08010C, // 0037 GETMET R2 R0 K12 + 0x8C08010A, // 0037 GETMET R2 R0 K10 0x5C100200, // 0038 MOVE R4 R1 0x7C080400, // 0039 CALL R2 2 0x80040400, // 003A RET 1 R2 - 0x70020025, // 003B JMP #0062 + 0x7002001C, // 003B JMP #0059 0x88080302, // 003C GETMBR R2 R1 K2 - 0x540E002F, // 003D LDINT R3 48 + 0x540E0031, // 003D LDINT R3 50 0x1C080403, // 003E EQ R2 R2 R3 0x780A0004, // 003F JMPF R2 #0045 - 0x8C08010D, // 0040 GETMET R2 R0 K13 + 0x8C08010B, // 0040 GETMET R2 R0 K11 0x5C100200, // 0041 MOVE R4 R1 0x7C080400, // 0042 CALL R2 2 0x80040400, // 0043 RET 1 R2 - 0x7002001C, // 0044 JMP #0062 + 0x70020013, // 0044 JMP #0059 0x88080302, // 0045 GETMBR R2 R1 K2 - 0x540E0031, // 0046 LDINT R3 50 + 0x540E003F, // 0046 LDINT R3 64 0x1C080403, // 0047 EQ R2 R2 R3 0x780A0004, // 0048 JMPF R2 #004E - 0x8C08010E, // 0049 GETMET R2 R0 K14 + 0x8C08010C, // 0049 GETMET R2 R0 K12 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 - 0x8C08010F, // 0052 GETMET R2 R0 K15 - 0x5C100200, // 0053 MOVE R4 R1 - 0x7C080400, // 0054 CALL R2 2 - 0x80040400, // 0055 RET 1 R2 - 0x7002000A, // 0056 JMP #0062 - 0xA40A2000, // 0057 IMPORT R2 K16 - 0xB80E0600, // 0058 GETNGBL R3 K3 - 0x8C0C0704, // 0059 GETMET R3 R3 K4 - 0x8C140511, // 005A GETMET R5 R2 K17 - 0x581C0012, // 005B LDCONST R7 K18 - 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 + 0x7002000A, // 004D JMP #0059 + 0xA40A1A00, // 004E IMPORT R2 K13 + 0xB80E0600, // 004F GETNGBL R3 K3 + 0x8C0C0704, // 0050 GETMET R3 R3 K4 + 0x8C14050E, // 0051 GETMET R5 R2 K14 + 0x581C000F, // 0052 LDCONST R7 K15 + 0x88200302, // 0053 GETMBR R8 R1 K2 + 0x7C140600, // 0054 CALL R5 3 + 0x58180006, // 0055 LDCONST R6 K6 + 0x7C0C0600, // 0056 CALL R3 3 + 0x500C0000, // 0057 LDBOOL R3 0 0 + 0x80040600, // 0058 RET 1 R3 + 0x50080000, // 0059 LDBOOL R2 0 0 + 0x80040400, // 005A RET 1 R2 }) ) ); @@ -1424,7 +1403,7 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[130]) { /* constants */ + ( &(const bvalue[106]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(session), @@ -1435,130 +1414,106 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ /* 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), + /* K10 */ be_const_int(3), /* 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), - /* K29 */ be_nested_str_weak(MTR_X3A_X20session_resumption_X20found_X20session_X3D_X25s_X20session_resumption_X3D_X25s), - /* K30 */ be_nested_str_weak(_fabric), - /* K31 */ be_nested_str_weak(initiatorRandom), - /* K32 */ be_nested_str_weak(fromstring), - /* K33 */ be_nested_str_weak(Sigma1_Resume), - /* K34 */ be_nested_str_weak(HKDF_SHA256), - /* K35 */ be_nested_str_weak(derive), - /* K36 */ be_nested_str_weak(shared_secret), - /* K37 */ be_nested_str_weak(NCASE_SigmaS1), - /* K38 */ be_const_int(2147483647), - /* K39 */ be_nested_str_weak(AES_CCM), - /* K40 */ be_nested_str_weak(decrypt), - /* K41 */ be_nested_str_weak(tag), - /* K42 */ be_nested_str_weak(_source_node_id), - /* K43 */ be_nested_str_weak(source_node_id), - /* K44 */ be_nested_str_weak(set_mode_CASE), - /* K45 */ be_nested_str_weak(__future_initiator_session_id), - /* K46 */ be_nested_str_weak(initiator_session_id), - /* K47 */ be_nested_str_weak(__future_local_session_id), - /* K48 */ be_nested_str_weak(gen_local_session_id), - /* K49 */ be_nested_str_weak(MTR_X3A_X20_X2BSession_X20_X20_X20_X28_X256i_X29_X20from_X20_X27_X5B_X25s_X5D_X3A_X25i_X27), - /* K50 */ be_nested_str_weak(remote_ip), - /* K51 */ be_nested_str_weak(remote_port), - /* K52 */ be_nested_str_weak(resumption_id), - /* K53 */ be_nested_str_weak(random), - /* K54 */ be_nested_str_weak(Sigma2_Resume), - /* K55 */ be_nested_str_weak(NCASE_SigmaS2), - /* K56 */ be_nested_str_weak(Sigma2Resume), - /* K57 */ be_nested_str_weak(responderSessionID), - /* K58 */ be_nested_str_weak(sigma2ResumeMIC), - /* K59 */ be_nested_str_weak(SessionResumptionKeys), - /* K60 */ be_nested_str_weak(rtc), - /* K61 */ be_nested_str_weak(utc), - /* K62 */ be_nested_str_weak(tlv2raw), - /* K63 */ be_nested_str_weak(__Msg1), - /* K64 */ be_nested_str_weak(build_response), - /* K65 */ be_nested_str_weak(encode_frame), - /* K66 */ be_nested_str_weak(responder), - /* K67 */ be_nested_str_weak(send_response_frame), - /* K68 */ be_nested_str_weak(close), - /* K69 */ be_nested_str_weak(set_keys), - /* K70 */ be_nested_str_weak(_breadcrumb), - /* K71 */ be_nested_str_weak(counter_snd_next), - /* K72 */ be_nested_str_weak(set_persist), - /* K73 */ be_nested_str_weak(set_no_expiration), - /* K74 */ be_nested_str_weak(persist_to_fabric), - /* K75 */ be_nested_str_weak(save), - /* K76 */ be_nested_str_weak(find_fabric_by_destination_id), - /* K77 */ be_nested_str_weak(destinationId), - /* K78 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28GeneralCode_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20NO_SHARED_TRUST_ROOTS_X29), - /* K79 */ be_nested_str_weak(MTR_X3A_X20fabric_X3D), - /* K80 */ be_nested_str_weak(MTR_X3A_X20no_private_key_X3D), - /* K81 */ be_nested_str_weak(get_pk), - /* K82 */ be_nested_str_weak(tohex), - /* K83 */ be_nested_str_weak(MTR_X3A_X20noc_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D), - /* K84 */ be_nested_str_weak(get_noc), - /* K85 */ be_nested_str_weak(get_icac), - /* K86 */ be_nested_str_weak(MTR_X3A_X20icac_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D), - /* K87 */ be_nested_str_weak(MTR_X3A_X20root_ca_cert_X20_X20_X3D), - /* K88 */ be_nested_str_weak(get_ca), - /* K89 */ be_nested_str_weak(__responder_priv), - /* K90 */ be_nested_str_weak(__responder_pub), - /* K91 */ be_nested_str_weak(EC_P256), - /* K92 */ be_nested_str_weak(public_key), - /* K93 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_priv_X20_X20_X3D), - /* K94 */ be_nested_str_weak(MTR_X3A_X20ResponderEph_pub_X20_X20_X3D), - /* K95 */ be_nested_str_weak(shared_key), - /* K96 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20shared_secret_X20_X20_X3D_X20), - /* K97 */ be_nested_str_weak(TLV), - /* K98 */ be_nested_str_weak(Matter_TLV_struct), - /* K99 */ be_nested_str_weak(add_TLV), - /* K100 */ be_nested_str_weak(B2), - /* K101 */ be_const_int(3), - /* K102 */ be_nested_str_weak(ecdsa_sign_sha256), - /* K103 */ be_nested_str_weak(_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A_X2A), - /* K104 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20fabric_X2Eget_pk_X20_X20_X3D_X20), - /* K105 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20sigma2_tbsdata_X20_X20_X3D_X20), - /* K106 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBSData2Signature_X20_X20_X3D_X20), - /* K107 */ be_nested_str_weak(Msg1), - /* K108 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20resumptionid_X20_X20_X3D_X20), - /* K109 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20MSG1_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K110 */ be_nested_str_weak(SHA256), - /* K111 */ be_nested_str_weak(update), - /* K112 */ be_nested_str_weak(out), - /* K113 */ be_nested_str_weak(MTR_X3A_X20TranscriptHash_X20_X3D), - /* K114 */ be_nested_str_weak(S2K_Info), - /* K115 */ be_nested_str_weak(get_ipk_group_key), - /* K116 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20SharedSecret_X20_X20_X3D_X20), - /* K117 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_salt_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K118 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20s2k_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X3D_X20), - /* K119 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Raw_X20_X20_X20_X3D_X20), - /* K120 */ be_nested_str_weak(TBEData2_Nonce), - /* K121 */ be_nested_str_weak(encrypt), - /* K122 */ be_nested_str_weak(MTR_X3A_X20_X2A_X20TBEData2Enc_X20_X20_X20_X3D_X20), - /* K123 */ be_nested_str_weak(Sigma2), - /* K124 */ be_nested_str_weak(responderRandom), - /* K125 */ be_nested_str_weak(responderSessionId), - /* K126 */ be_nested_str_weak(responderEphPubKey), - /* K127 */ be_nested_str_weak(encrypted2), - /* K128 */ be_nested_str_weak(MTR_X3A_X20sigma2_X3A_X20), - /* K129 */ be_nested_str_weak(__Msg2), + /* K13 */ be_const_int(2), + /* K14 */ be_nested_str_weak(matter), + /* K15 */ be_nested_str_weak(Sigma1), + /* 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(__initiator_pub), + /* K20 */ be_nested_str_weak(initiatorEphPubKey), + /* K21 */ be_nested_str_weak(resumptionID), + /* K22 */ be_nested_str_weak(initiatorResumeMIC), + /* K23 */ be_nested_str_weak(device), + /* K24 */ be_nested_str_weak(sessions), + /* K25 */ be_nested_str_weak(find_session_by_resumption_id), + /* K26 */ be_nested_str_weak(_fabric), + /* K27 */ be_nested_str_weak(initiatorRandom), + /* K28 */ be_nested_str_weak(fromstring), + /* K29 */ be_nested_str_weak(Sigma1_Resume), + /* K30 */ be_nested_str_weak(HKDF_SHA256), + /* K31 */ be_nested_str_weak(derive), + /* K32 */ be_nested_str_weak(shared_secret), + /* K33 */ be_nested_str_weak(NCASE_SigmaS1), + /* K34 */ be_const_int(2147483647), + /* K35 */ be_nested_str_weak(AES_CCM), + /* K36 */ be_nested_str_weak(decrypt), + /* K37 */ be_nested_str_weak(tag), + /* K38 */ be_nested_str_weak(_source_node_id), + /* K39 */ be_nested_str_weak(source_node_id), + /* K40 */ be_nested_str_weak(set_mode_CASE), + /* K41 */ be_nested_str_weak(__future_initiator_session_id), + /* K42 */ be_nested_str_weak(initiator_session_id), + /* K43 */ be_nested_str_weak(__future_local_session_id), + /* K44 */ be_nested_str_weak(gen_local_session_id), + /* K45 */ be_nested_str_weak(format), + /* K46 */ be_nested_str_weak(MTR_X3A_X20New_Session_X28_X256i_X29_X20from_X20_X27_X5B_X25s_X5D_X3A_X25i_X27), + /* K47 */ be_nested_str_weak(remote_ip), + /* K48 */ be_nested_str_weak(remote_port), + /* K49 */ be_nested_str_weak(resumption_id), + /* K50 */ be_nested_str_weak(random), + /* K51 */ be_nested_str_weak(Sigma2_Resume), + /* K52 */ be_nested_str_weak(NCASE_SigmaS2), + /* K53 */ be_nested_str_weak(Sigma2Resume), + /* K54 */ be_nested_str_weak(responderSessionID), + /* K55 */ be_nested_str_weak(sigma2ResumeMIC), + /* K56 */ be_nested_str_weak(SessionResumptionKeys), + /* K57 */ be_nested_str_weak(rtc), + /* K58 */ be_nested_str_weak(utc), + /* K59 */ be_nested_str_weak(tlv2raw), + /* K60 */ be_nested_str_weak(__Msg1), + /* K61 */ be_nested_str_weak(build_response), + /* K62 */ be_nested_str_weak(encode_frame), + /* K63 */ be_nested_str_weak(responder), + /* K64 */ be_nested_str_weak(send_response_frame), + /* K65 */ be_nested_str_weak(close), + /* K66 */ be_nested_str_weak(set_keys), + /* K67 */ be_nested_str_weak(_breadcrumb), + /* K68 */ be_nested_str_weak(counter_snd_next), + /* K69 */ be_nested_str_weak(set_persist), + /* K70 */ be_nested_str_weak(set_no_expiration), + /* K71 */ be_nested_str_weak(persist_to_fabric), + /* K72 */ be_nested_str_weak(save), + /* K73 */ be_nested_str_weak(find_fabric_by_destination_id), + /* K74 */ be_nested_str_weak(destinationId), + /* K75 */ be_nested_str_weak(MTR_X3A_X20StatusReport_X28GeneralCode_X3A_X20FAILURE_X2C_X20ProtocolId_X3A_X20SECURE_CHANNEL_X2C_X20ProtocolCode_X3A_X20NO_SHARED_TRUST_ROOTS_X29), + /* K76 */ be_nested_str_weak(__responder_priv), + /* K77 */ be_nested_str_weak(__responder_pub), + /* K78 */ be_nested_str_weak(EC_P256), + /* K79 */ be_nested_str_weak(public_key), + /* K80 */ be_nested_str_weak(shared_key), + /* K81 */ be_nested_str_weak(TLV), + /* K82 */ be_nested_str_weak(Matter_TLV_struct), + /* K83 */ be_nested_str_weak(add_TLV), + /* K84 */ be_nested_str_weak(B2), + /* K85 */ be_nested_str_weak(get_noc), + /* K86 */ be_nested_str_weak(get_icac), + /* K87 */ be_nested_str_weak(ecdsa_sign_sha256), + /* K88 */ be_nested_str_weak(get_pk), + /* K89 */ be_nested_str_weak(Msg1), + /* K90 */ be_nested_str_weak(SHA256), + /* K91 */ be_nested_str_weak(update), + /* K92 */ be_nested_str_weak(out), + /* K93 */ be_nested_str_weak(S2K_Info), + /* K94 */ be_nested_str_weak(get_ipk_group_key), + /* K95 */ be_nested_str_weak(TBEData2_Nonce), + /* K96 */ be_nested_str_weak(encrypt), + /* K97 */ be_nested_str_weak(Sigma2), + /* K98 */ be_nested_str_weak(responderRandom), + /* K99 */ be_nested_str_weak(responderSessionId), + /* K100 */ be_nested_str_weak(responderEphPubKey), + /* K101 */ be_nested_str_weak(encrypted2), + /* K102 */ be_nested_str_weak(__Msg2), + /* K103 */ be_nested_str_weak(MTR_X3A_X20New_X20Connection_X20_X28CASE_X20id_X3D_X25i_X29_X20from_X20_X5B_X25s_X5D_X3A_X25i), + /* K104 */ be_nested_str_weak(_ip), + /* K105 */ be_nested_str_weak(_port), }), be_str_weak(parse_Sigma1), &be_const_str_solidified, - ( &(const binstruction[689]) { /* code */ + ( &(const binstruction[482]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0x88100302, // 0002 GETMBR R4 R1 K2 @@ -1581,673 +1536,466 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x5C1C0200, // 0013 MOVE R7 R1 0x5820000C, // 0014 LDCONST R8 K12 0x58240005, // 0015 LDCONST R9 K5 - 0x5828000A, // 0016 LDCONST R10 K10 + 0x5828000D, // 0016 LDCONST R10 K13 0x502C0000, // 0017 LDBOOL R11 0 0 0x7C140C00, // 0018 CALL R5 6 0x50140000, // 0019 LDBOOL R5 0 0 0x80040A00, // 001A RET 1 R5 - 0xB8161A00, // 001B GETNGBL R5 K13 - 0x8C140B0E, // 001C GETMET R5 R5 K14 + 0xB8161C00, // 001B GETNGBL R5 K14 + 0x8C140B0F, // 001C GETMET R5 R5 K15 0x7C140200, // 001D CALL R5 1 - 0x8C140B0F, // 001E GETMET R5 R5 K15 - 0x881C0310, // 001F GETMBR R7 R1 K16 - 0x88200311, // 0020 GETMBR R8 R1 K17 + 0x8C140B10, // 001E GETMET R5 R5 K16 + 0x881C0311, // 001F GETMBR R7 R1 K17 + 0x88200312, // 0020 GETMBR R8 R1 K18 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 - 0x781A001C, // 0046 JMPF R6 #0064 - 0x8820011A, // 0047 GETMBR R8 R0 K26 - 0x8820111B, // 0048 GETMBR R8 R8 K27 - 0x8C20111C, // 0049 GETMET R8 R8 K28 - 0x88280B17, // 004A GETMBR R10 R5 K23 - 0x7C200400, // 004B CALL R8 2 - 0x5C1C1000, // 004C MOVE R7 R8 - 0xB8220E00, // 004D GETNGBL R8 K7 - 0x8C201108, // 004E GETMET R8 R8 K8 - 0x8C280712, // 004F GETMET R10 R3 K18 - 0x5830001D, // 0050 LDCONST R12 K29 - 0xB8361A00, // 0051 GETNGBL R13 K13 - 0x8C341B14, // 0052 GETMET R13 R13 K20 - 0x5C3C0800, // 0053 MOVE R15 R4 - 0x7C340400, // 0054 CALL R13 2 - 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 - 0x542E0003, // 005A LDINT R11 4 - 0x7C200600, // 005B CALL R8 3 - 0x4C200000, // 005C LDNIL R8 - 0x1C200E08, // 005D EQ R8 R7 R8 - 0x74220003, // 005E JMPT R8 #0063 - 0x88200F1E, // 005F GETMBR R8 R7 K30 - 0x4C240000, // 0060 LDNIL R9 - 0x1C201009, // 0061 EQ R8 R8 R9 - 0x78220000, // 0062 JMPF R8 #0064 - 0x50180000, // 0063 LDBOOL R6 0 0 - 0x781A00B6, // 0064 JMPF R6 #011C - 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 - 0x8C241320, // 006A GETMET R9 R9 K32 - 0x582C0021, // 006B LDCONST R11 K33 - 0x7C240400, // 006C CALL R9 2 - 0x8C280522, // 006D GETMET R10 R2 K34 - 0x7C280200, // 006E CALL R10 1 - 0x8C281523, // 006F GETMET R10 R10 K35 - 0x88300F24, // 0070 GETMBR R12 R7 K36 - 0x5C341000, // 0071 MOVE R13 R8 - 0x5C381200, // 0072 MOVE R14 R9 - 0x543E000F, // 0073 LDINT R15 16 - 0x7C280A00, // 0074 CALL R10 5 - 0x602C0015, // 0075 GETGBL R11 G21 - 0x7C2C0000, // 0076 CALL R11 0 - 0x8C2C1720, // 0077 GETMET R11 R11 K32 - 0x58340025, // 0078 LDCONST R13 K37 - 0x7C2C0400, // 0079 CALL R11 2 - 0x5431FFEE, // 007A LDINT R12 -17 - 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 - 0x883C0B18, // 0080 GETMBR R15 R5 K24 - 0x94341E0E, // 0081 GETIDX R13 R15 R14 - 0x8C400527, // 0082 GETMET R16 R2 K39 - 0x5C481400, // 0083 MOVE R18 R10 - 0x5C4C1600, // 0084 MOVE R19 R11 - 0x60500015, // 0085 GETGBL R20 G21 - 0x7C500000, // 0086 CALL R20 0 - 0x6054000C, // 0087 GETGBL R21 G12 - 0x5C581800, // 0088 MOVE R22 R12 - 0x7C540200, // 0089 CALL R21 1 - 0x545A000F, // 008A LDINT R22 16 - 0x7C400C00, // 008B CALL R16 6 - 0x5C382000, // 008C MOVE R14 R16 - 0x8C401D28, // 008D GETMET R16 R14 K40 - 0x5C481800, // 008E MOVE R18 R12 - 0x7C400400, // 008F CALL R16 2 - 0x5C3C2000, // 0090 MOVE R15 R16 - 0x8C401D29, // 0091 GETMET R16 R14 K41 - 0x7C400200, // 0092 CALL R16 1 - 0x1C441A10, // 0093 EQ R17 R13 R16 - 0x78460085, // 0094 JMPF R17 #011B - 0x88440F1E, // 0095 GETMBR R17 R7 K30 - 0x90123C11, // 0096 SETMBR R4 K30 R17 - 0x8844032B, // 0097 GETMBR R17 R1 K43 - 0x90125411, // 0098 SETMBR R4 K42 R17 - 0x8C44092C, // 0099 GETMET R17 R4 K44 - 0x7C440200, // 009A CALL R17 1 - 0x88440B2E, // 009B GETMBR R17 R5 K46 - 0x90125A11, // 009C SETMBR R4 K45 R17 - 0x8844011A, // 009D GETMBR R17 R0 K26 - 0x8844231B, // 009E GETMBR R17 R17 K27 - 0x8C442330, // 009F GETMET R17 R17 K48 - 0x7C440200, // 00A0 CALL R17 1 - 0x90125E11, // 00A1 SETMBR R4 K47 R17 - 0xB8460E00, // 00A2 GETNGBL R17 K7 - 0x8C442308, // 00A3 GETMET R17 R17 K8 - 0x8C4C0712, // 00A4 GETMET R19 R3 K18 - 0x58540031, // 00A5 LDCONST R21 K49 - 0x8858092F, // 00A6 GETMBR R22 R4 K47 - 0x885C0332, // 00A7 GETMBR R23 R1 K50 - 0x88600333, // 00A8 GETMBR R24 R1 K51 - 0x7C4C0A00, // 00A9 CALL R19 5 - 0x5850000A, // 00AA LDCONST R20 K10 - 0x7C440600, // 00AB CALL R17 3 - 0x88440F24, // 00AC GETMBR R17 R7 K36 - 0x90124811, // 00AD SETMBR R4 K36 R17 - 0x8C440535, // 00AE GETMET R17 R2 K53 - 0x544E000F, // 00AF LDINT R19 16 - 0x7C440400, // 00B0 CALL R17 2 - 0x90126811, // 00B1 SETMBR R4 K52 R17 - 0x60440015, // 00B2 GETGBL R17 G21 - 0x7C440000, // 00B3 CALL R17 0 - 0x8C442320, // 00B4 GETMET R17 R17 K32 - 0x584C0036, // 00B5 LDCONST R19 K54 - 0x7C440400, // 00B6 CALL R17 2 - 0x88480B1F, // 00B7 GETMBR R18 R5 K31 - 0x884C0934, // 00B8 GETMBR R19 R4 K52 - 0x00482413, // 00B9 ADD R18 R18 R19 - 0x8C4C0522, // 00BA GETMET R19 R2 K34 - 0x7C4C0200, // 00BB CALL R19 1 - 0x8C4C2723, // 00BC GETMET R19 R19 K35 - 0x88540924, // 00BD GETMBR R21 R4 K36 - 0x5C582400, // 00BE MOVE R22 R18 - 0x5C5C2200, // 00BF MOVE R23 R17 - 0x5462000F, // 00C0 LDINT R24 16 - 0x7C4C0A00, // 00C1 CALL R19 5 - 0x8C500527, // 00C2 GETMET R20 R2 K39 - 0x5C582600, // 00C3 MOVE R22 R19 - 0x605C0015, // 00C4 GETGBL R23 G21 - 0x7C5C0000, // 00C5 CALL R23 0 - 0x8C5C2F20, // 00C6 GETMET R23 R23 K32 - 0x58640037, // 00C7 LDCONST R25 K55 - 0x7C5C0400, // 00C8 CALL R23 2 - 0x60600015, // 00C9 GETGBL R24 G21 - 0x7C600000, // 00CA CALL R24 0 - 0x58640005, // 00CB LDCONST R25 K5 - 0x546A000F, // 00CC LDINT R26 16 - 0x7C500C00, // 00CD CALL R20 6 - 0x8C542929, // 00CE GETMET R21 R20 K41 - 0x7C540200, // 00CF CALL R21 1 - 0xB85A1A00, // 00D0 GETNGBL R22 K13 - 0x8C582D38, // 00D1 GETMET R22 R22 K56 - 0x7C580200, // 00D2 CALL R22 1 - 0x885C0934, // 00D3 GETMBR R23 R4 K52 - 0x905A2E17, // 00D4 SETMBR R22 K23 R23 - 0x885C092F, // 00D5 GETMBR R23 R4 K47 - 0x905A7217, // 00D6 SETMBR R22 K57 R23 - 0x905A7415, // 00D7 SETMBR R22 K58 R21 - 0x8C5C0522, // 00D8 GETMET R23 R2 K34 - 0x7C5C0200, // 00D9 CALL R23 1 - 0x8C5C2F23, // 00DA GETMET R23 R23 K35 - 0x88640924, // 00DB GETMBR R25 R4 K36 - 0x88680B1F, // 00DC GETMBR R26 R5 K31 - 0x886C0934, // 00DD GETMBR R27 R4 K52 - 0x0068341B, // 00DE ADD R26 R26 R27 - 0x606C0015, // 00DF GETGBL R27 G21 - 0x7C6C0000, // 00E0 CALL R27 0 - 0x8C6C3720, // 00E1 GETMET R27 R27 K32 - 0x5874003B, // 00E2 LDCONST R29 K59 - 0x7C6C0400, // 00E3 CALL R27 2 - 0x5472002F, // 00E4 LDINT R28 48 - 0x7C5C0A00, // 00E5 CALL R23 5 - 0x5462000E, // 00E6 LDINT R24 15 - 0x40620A18, // 00E7 CONNECT R24 K5 R24 - 0x94602E18, // 00E8 GETIDX R24 R23 R24 - 0x5466000F, // 00E9 LDINT R25 16 - 0x546A001E, // 00EA LDINT R26 31 - 0x4064321A, // 00EB CONNECT R25 R25 R26 - 0x94642E19, // 00EC GETIDX R25 R23 R25 - 0x546A001F, // 00ED LDINT R26 32 - 0x546E002E, // 00EE LDINT R27 47 - 0x4068341B, // 00EF CONNECT R26 R26 R27 - 0x94682E1A, // 00F0 GETIDX R26 R23 R26 - 0xB86E0E00, // 00F1 GETNGBL R27 K7 - 0x8C6C373C, // 00F2 GETMET R27 R27 K60 - 0x7C6C0200, // 00F3 CALL R27 1 - 0x946C373D, // 00F4 GETIDX R27 R27 K61 - 0x8C702D3E, // 00F5 GETMET R28 R22 K62 - 0x7C700200, // 00F6 CALL R28 1 - 0x4C740000, // 00F7 LDNIL R29 - 0x90127E1D, // 00F8 SETMBR R4 K63 R29 - 0x8C740340, // 00F9 GETMET R29 R1 K64 - 0x547E0032, // 00FA LDINT R31 51 - 0x50800200, // 00FB LDBOOL R32 1 0 - 0x7C740600, // 00FC CALL R29 3 - 0x8C783B41, // 00FD GETMET R30 R29 K65 - 0x5C803800, // 00FE MOVE R32 R28 - 0x7C780400, // 00FF CALL R30 2 - 0x887C0142, // 0100 GETMBR R31 R0 K66 - 0x8C7C3F43, // 0101 GETMET R31 R31 K67 - 0x5C843A00, // 0102 MOVE R33 R29 - 0x7C7C0400, // 0103 CALL R31 2 - 0x8C7C0944, // 0104 GETMET R31 R4 K68 - 0x7C7C0200, // 0105 CALL R31 1 - 0x8C7C0945, // 0106 GETMET R31 R4 K69 - 0x5C843000, // 0107 MOVE R33 R24 - 0x5C883200, // 0108 MOVE R34 R25 - 0x5C8C3400, // 0109 MOVE R35 R26 - 0x5C903600, // 010A MOVE R36 R27 - 0x7C7C0A00, // 010B CALL R31 5 - 0x90128D05, // 010C SETMBR R4 K70 K5 - 0x8C7C0947, // 010D GETMET R31 R4 K71 - 0x7C7C0200, // 010E CALL R31 1 - 0x8C7C0948, // 010F GETMET R31 R4 K72 - 0x50840200, // 0110 LDBOOL R33 1 0 - 0x7C7C0400, // 0111 CALL R31 2 - 0x8C7C0949, // 0112 GETMET R31 R4 K73 - 0x7C7C0200, // 0113 CALL R31 1 - 0x8C7C094A, // 0114 GETMET R31 R4 K74 - 0x7C7C0200, // 0115 CALL R31 1 - 0x8C7C094B, // 0116 GETMET R31 R4 K75 - 0x7C7C0200, // 0117 CALL R31 1 - 0x507C0200, // 0118 LDBOOL R31 1 0 - 0x80043E00, // 0119 RET 1 R31 - 0x70020000, // 011A JMP #011C - 0x50180000, // 011B LDBOOL R6 0 0 - 0x5C200C00, // 011C MOVE R8 R6 - 0x74220190, // 011D JMPT R8 #02AF - 0x8C20014C, // 011E GETMET R8 R0 K76 - 0x88280B4D, // 011F GETMBR R10 R5 K77 - 0x882C0B1F, // 0120 GETMBR R11 R5 K31 - 0x7C200600, // 0121 CALL R8 3 - 0x90123C08, // 0122 SETMBR R4 K30 R8 - 0x4C240000, // 0123 LDNIL R9 - 0x1C240809, // 0124 EQ R9 R4 R9 - 0x74260003, // 0125 JMPT R9 #012A - 0x8824091E, // 0126 GETMBR R9 R4 K30 - 0x4C280000, // 0127 LDNIL R10 - 0x1C24120A, // 0128 EQ R9 R9 R10 - 0x7826000D, // 0129 JMPF R9 #0138 - 0xB8260E00, // 012A GETNGBL R9 K7 - 0x8C241308, // 012B GETMET R9 R9 K8 - 0x582C004E, // 012C LDCONST R11 K78 - 0x5830000A, // 012D LDCONST R12 K10 - 0x7C240600, // 012E CALL R9 3 - 0x8C24010B, // 012F GETMET R9 R0 K11 - 0x5C2C0200, // 0130 MOVE R11 R1 - 0x5830000C, // 0131 LDCONST R12 K12 - 0x58340005, // 0132 LDCONST R13 K5 - 0x5838000C, // 0133 LDCONST R14 K12 - 0x503C0000, // 0134 LDBOOL R15 0 0 - 0x7C240C00, // 0135 CALL R9 6 - 0x50240000, // 0136 LDBOOL R9 0 0 - 0x80041200, // 0137 RET 1 R9 - 0x8824032B, // 0138 GETMBR R9 R1 K43 - 0x90125409, // 0139 SETMBR R4 K42 R9 - 0x8C24092C, // 013A GETMET R9 R4 K44 - 0x7C240200, // 013B CALL R9 1 - 0x88240B2E, // 013C GETMBR R9 R5 K46 - 0x90125A09, // 013D SETMBR R4 K45 R9 - 0x8824011A, // 013E GETMBR R9 R0 K26 - 0x8824131B, // 013F GETMBR R9 R9 K27 - 0x8C241330, // 0140 GETMET R9 R9 K48 - 0x7C240200, // 0141 CALL R9 1 - 0x90125E09, // 0142 SETMBR R4 K47 R9 - 0xB8260E00, // 0143 GETNGBL R9 K7 - 0x8C241308, // 0144 GETMET R9 R9 K8 - 0x8C2C0712, // 0145 GETMET R11 R3 K18 - 0x58340031, // 0146 LDCONST R13 K49 - 0x8838092F, // 0147 GETMBR R14 R4 K47 - 0x883C0332, // 0148 GETMBR R15 R1 K50 - 0x88400333, // 0149 GETMBR R16 R1 K51 - 0x7C2C0A00, // 014A CALL R11 5 - 0x5830000A, // 014B LDCONST R12 K10 - 0x7C240600, // 014C CALL R9 3 - 0xB8260E00, // 014D GETNGBL R9 K7 - 0x8C241308, // 014E GETMET R9 R9 K8 - 0xB82E1A00, // 014F GETNGBL R11 K13 - 0x8C2C1714, // 0150 GETMET R11 R11 K20 - 0x8834091E, // 0151 GETMBR R13 R4 K30 - 0x7C2C0400, // 0152 CALL R11 2 - 0x002E9E0B, // 0153 ADD R11 K79 R11 - 0x54320003, // 0154 LDINT R12 4 - 0x7C240600, // 0155 CALL R9 3 - 0xB8260E00, // 0156 GETNGBL R9 K7 - 0x8C241308, // 0157 GETMET R9 R9 K8 - 0x8C2C0951, // 0158 GETMET R11 R4 K81 - 0x7C2C0200, // 0159 CALL R11 1 - 0x8C2C1752, // 015A GETMET R11 R11 K82 - 0x7C2C0200, // 015B CALL R11 1 - 0x002EA00B, // 015C ADD R11 K80 R11 - 0x54320003, // 015D LDINT R12 4 - 0x7C240600, // 015E CALL R9 3 - 0xB8260E00, // 015F GETNGBL R9 K7 - 0x8C241308, // 0160 GETMET R9 R9 K8 - 0x8C2C0954, // 0161 GETMET R11 R4 K84 - 0x7C2C0200, // 0162 CALL R11 1 - 0x8C2C1752, // 0163 GETMET R11 R11 K82 - 0x7C2C0200, // 0164 CALL R11 1 - 0x002EA60B, // 0165 ADD R11 K83 R11 - 0x54320003, // 0166 LDINT R12 4 - 0x7C240600, // 0167 CALL R9 3 - 0x8C241155, // 0168 GETMET R9 R8 K85 - 0x7C240200, // 0169 CALL R9 1 - 0x78260008, // 016A JMPF R9 #0174 - 0xB8260E00, // 016B GETNGBL R9 K7 - 0x8C241308, // 016C GETMET R9 R9 K8 - 0x8C2C1155, // 016D GETMET R11 R8 K85 - 0x7C2C0200, // 016E CALL R11 1 - 0x8C2C1752, // 016F GETMET R11 R11 K82 - 0x7C2C0200, // 0170 CALL R11 1 - 0x002EAC0B, // 0171 ADD R11 K86 R11 - 0x54320003, // 0172 LDINT R12 4 - 0x7C240600, // 0173 CALL R9 3 - 0xB8260E00, // 0174 GETNGBL R9 K7 - 0x8C241308, // 0175 GETMET R9 R9 K8 - 0x8C2C1158, // 0176 GETMET R11 R8 K88 - 0x7C2C0200, // 0177 CALL R11 1 - 0x8C2C1752, // 0178 GETMET R11 R11 K82 - 0x7C2C0200, // 0179 CALL R11 1 - 0x002EAE0B, // 017A ADD R11 K87 R11 - 0x54320003, // 017B LDINT R12 4 - 0x7C240600, // 017C CALL R9 3 - 0x8C240535, // 017D GETMET R9 R2 K53 - 0x542E000F, // 017E LDINT R11 16 - 0x7C240400, // 017F CALL R9 2 - 0x90126809, // 0180 SETMBR R4 K52 R9 - 0x8C240535, // 0181 GETMET R9 R2 K53 - 0x542E001F, // 0182 LDINT R11 32 - 0x7C240400, // 0183 CALL R9 2 - 0x9012B209, // 0184 SETMBR R4 K89 R9 - 0x8C24055B, // 0185 GETMET R9 R2 K91 - 0x7C240200, // 0186 CALL R9 1 - 0x8C24135C, // 0187 GETMET R9 R9 K92 - 0x882C0959, // 0188 GETMBR R11 R4 K89 - 0x7C240400, // 0189 CALL R9 2 - 0x9012B409, // 018A SETMBR R4 K90 R9 - 0xB8260E00, // 018B GETNGBL R9 K7 - 0x8C241308, // 018C GETMET R9 R9 K8 - 0x882C0959, // 018D GETMBR R11 R4 K89 - 0x8C2C1752, // 018E GETMET R11 R11 K82 - 0x7C2C0200, // 018F CALL R11 1 - 0x002EBA0B, // 0190 ADD R11 K93 R11 - 0x54320003, // 0191 LDINT R12 4 - 0x7C240600, // 0192 CALL R9 3 - 0xB8260E00, // 0193 GETNGBL R9 K7 - 0x8C241308, // 0194 GETMET R9 R9 K8 - 0x882C095A, // 0195 GETMBR R11 R4 K90 - 0x8C2C1752, // 0196 GETMET R11 R11 K82 - 0x7C2C0200, // 0197 CALL R11 1 - 0x002EBC0B, // 0198 ADD R11 K94 R11 - 0x54320003, // 0199 LDINT R12 4 - 0x7C240600, // 019A CALL R9 3 - 0x8C240535, // 019B GETMET R9 R2 K53 - 0x542E001F, // 019C LDINT R11 32 - 0x7C240400, // 019D CALL R9 2 - 0x8C28055B, // 019E GETMET R10 R2 K91 - 0x7C280200, // 019F CALL R10 1 - 0x8C28155F, // 01A0 GETMET R10 R10 K95 - 0x88300959, // 01A1 GETMBR R12 R4 K89 - 0x88340B16, // 01A2 GETMBR R13 R5 K22 - 0x7C280600, // 01A3 CALL R10 3 - 0x9012480A, // 01A4 SETMBR R4 K36 R10 - 0xB82A0E00, // 01A5 GETNGBL R10 K7 - 0x8C281508, // 01A6 GETMET R10 R10 K8 - 0x88300924, // 01A7 GETMBR R12 R4 K36 - 0x8C301952, // 01A8 GETMET R12 R12 K82 - 0x7C300200, // 01A9 CALL R12 1 - 0x0032C00C, // 01AA ADD R12 K96 R12 - 0x54360003, // 01AB LDINT R13 4 - 0x7C280600, // 01AC CALL R10 3 - 0xB82A1A00, // 01AD GETNGBL R10 K13 - 0x88281561, // 01AE GETMBR R10 R10 K97 - 0x8C281562, // 01AF GETMET R10 R10 K98 - 0x7C280200, // 01B0 CALL R10 1 - 0x8C2C1563, // 01B1 GETMET R11 R10 K99 - 0x5834000C, // 01B2 LDCONST R13 K12 - 0xB83A1A00, // 01B3 GETNGBL R14 K13 - 0x88381D61, // 01B4 GETMBR R14 R14 K97 - 0x88381D64, // 01B5 GETMBR R14 R14 K100 - 0x8C3C1154, // 01B6 GETMET R15 R8 K84 - 0x7C3C0200, // 01B7 CALL R15 1 - 0x7C2C0800, // 01B8 CALL R11 4 - 0x8C2C1563, // 01B9 GETMET R11 R10 K99 - 0x5834000A, // 01BA LDCONST R13 K10 - 0xB83A1A00, // 01BB GETNGBL R14 K13 - 0x88381D61, // 01BC GETMBR R14 R14 K97 - 0x88381D64, // 01BD GETMBR R14 R14 K100 - 0x8C3C1155, // 01BE GETMET R15 R8 K85 - 0x7C3C0200, // 01BF CALL R15 1 - 0x7C2C0800, // 01C0 CALL R11 4 - 0x8C2C1563, // 01C1 GETMET R11 R10 K99 - 0x58340065, // 01C2 LDCONST R13 K101 - 0xB83A1A00, // 01C3 GETNGBL R14 K13 - 0x88381D61, // 01C4 GETMBR R14 R14 K97 - 0x88381D64, // 01C5 GETMBR R14 R14 K100 - 0x883C095A, // 01C6 GETMBR R15 R4 K90 - 0x7C2C0800, // 01C7 CALL R11 4 - 0x8C2C1563, // 01C8 GETMET R11 R10 K99 - 0x54360003, // 01C9 LDINT R13 4 - 0xB83A1A00, // 01CA GETNGBL R14 K13 - 0x88381D61, // 01CB GETMBR R14 R14 K97 - 0x88381D64, // 01CC GETMBR R14 R14 K100 - 0x883C0B16, // 01CD GETMBR R15 R5 K22 - 0x7C2C0800, // 01CE CALL R11 4 - 0x8C2C055B, // 01CF GETMET R11 R2 K91 - 0x7C2C0200, // 01D0 CALL R11 1 - 0x8C2C1766, // 01D1 GETMET R11 R11 K102 - 0x8C341151, // 01D2 GETMET R13 R8 K81 - 0x7C340200, // 01D3 CALL R13 1 - 0x8C38153E, // 01D4 GETMET R14 R10 K62 - 0x7C380200, // 01D5 CALL R14 1 - 0x7C2C0600, // 01D6 CALL R11 3 - 0xB8320E00, // 01D7 GETNGBL R12 K7 - 0x8C301908, // 01D8 GETMET R12 R12 K8 - 0x58380067, // 01D9 LDCONST R14 K103 - 0x543E0003, // 01DA LDINT R15 4 - 0x7C300600, // 01DB CALL R12 3 - 0xB8320E00, // 01DC GETNGBL R12 K7 - 0x8C301908, // 01DD GETMET R12 R12 K8 - 0x60380008, // 01DE GETGBL R14 G8 - 0x8C3C1151, // 01DF GETMET R15 R8 K81 - 0x7C3C0200, // 01E0 CALL R15 1 - 0x7C380200, // 01E1 CALL R14 1 - 0x003AD00E, // 01E2 ADD R14 K104 R14 - 0x543E0003, // 01E3 LDINT R15 4 - 0x7C300600, // 01E4 CALL R12 3 - 0xB8320E00, // 01E5 GETNGBL R12 K7 - 0x8C301908, // 01E6 GETMET R12 R12 K8 - 0x60380008, // 01E7 GETGBL R14 G8 - 0x5C3C1400, // 01E8 MOVE R15 R10 - 0x7C380200, // 01E9 CALL R14 1 - 0x003AD20E, // 01EA ADD R14 K105 R14 - 0x543E0003, // 01EB LDINT R15 4 - 0x7C300600, // 01EC CALL R12 3 - 0xB8320E00, // 01ED GETNGBL R12 K7 - 0x8C301908, // 01EE GETMET R12 R12 K8 - 0x8C381752, // 01EF GETMET R14 R11 K82 - 0x7C380200, // 01F0 CALL R14 1 - 0x003AD40E, // 01F1 ADD R14 K106 R14 - 0x543E0003, // 01F2 LDINT R15 4 - 0x7C300600, // 01F3 CALL R12 3 - 0xB8321A00, // 01F4 GETNGBL R12 K13 - 0x88301961, // 01F5 GETMBR R12 R12 K97 - 0x8C301962, // 01F6 GETMET R12 R12 K98 - 0x7C300200, // 01F7 CALL R12 1 - 0x8C341963, // 01F8 GETMET R13 R12 K99 - 0x583C000C, // 01F9 LDCONST R15 K12 - 0xB8421A00, // 01FA GETNGBL R16 K13 - 0x88402161, // 01FB GETMBR R16 R16 K97 - 0x88402164, // 01FC GETMBR R16 R16 K100 - 0x8C441154, // 01FD GETMET R17 R8 K84 - 0x7C440200, // 01FE CALL R17 1 - 0x7C340800, // 01FF CALL R13 4 - 0x8C341963, // 0200 GETMET R13 R12 K99 - 0x583C000A, // 0201 LDCONST R15 K10 - 0xB8421A00, // 0202 GETNGBL R16 K13 - 0x88402161, // 0203 GETMBR R16 R16 K97 - 0x88402164, // 0204 GETMBR R16 R16 K100 - 0x8C441155, // 0205 GETMET R17 R8 K85 - 0x7C440200, // 0206 CALL R17 1 - 0x7C340800, // 0207 CALL R13 4 - 0x8C341963, // 0208 GETMET R13 R12 K99 - 0x583C0065, // 0209 LDCONST R15 K101 - 0xB8421A00, // 020A GETNGBL R16 K13 - 0x88402161, // 020B GETMBR R16 R16 K97 - 0x88402164, // 020C GETMBR R16 R16 K100 - 0x5C441600, // 020D MOVE R17 R11 - 0x7C340800, // 020E CALL R13 4 - 0x8C341963, // 020F GETMET R13 R12 K99 - 0x543E0003, // 0210 LDINT R15 4 - 0xB8421A00, // 0211 GETNGBL R16 K13 - 0x88402161, // 0212 GETMBR R16 R16 K97 - 0x88402164, // 0213 GETMBR R16 R16 K100 - 0x88440934, // 0214 GETMBR R17 R4 K52 - 0x7C340800, // 0215 CALL R13 4 - 0xB8360E00, // 0216 GETNGBL R13 K7 - 0x8C341B08, // 0217 GETMET R13 R13 K8 - 0x583C0067, // 0218 LDCONST R15 K103 - 0x54420003, // 0219 LDINT R16 4 - 0x7C340600, // 021A CALL R13 3 - 0x88340B6B, // 021B GETMBR R13 R5 K107 - 0x90127E0D, // 021C SETMBR R4 K63 R13 - 0xB8360E00, // 021D GETNGBL R13 K7 - 0x8C341B08, // 021E GETMET R13 R13 K8 - 0x883C0934, // 021F GETMBR R15 R4 K52 - 0x8C3C1F52, // 0220 GETMET R15 R15 K82 - 0x7C3C0200, // 0221 CALL R15 1 - 0x003ED80F, // 0222 ADD R15 K108 R15 - 0x54420003, // 0223 LDINT R16 4 - 0x7C340600, // 0224 CALL R13 3 - 0xB8360E00, // 0225 GETNGBL R13 K7 - 0x8C341B08, // 0226 GETMET R13 R13 K8 - 0x883C093F, // 0227 GETMBR R15 R4 K63 - 0x8C3C1F52, // 0228 GETMET R15 R15 K82 - 0x7C3C0200, // 0229 CALL R15 1 - 0x003EDA0F, // 022A ADD R15 K109 R15 - 0x54420003, // 022B LDINT R16 4 - 0x7C340600, // 022C CALL R13 3 - 0x8C34056E, // 022D GETMET R13 R2 K110 - 0x7C340200, // 022E CALL R13 1 - 0x8C341B6F, // 022F GETMET R13 R13 K111 - 0x883C093F, // 0230 GETMBR R15 R4 K63 - 0x7C340400, // 0231 CALL R13 2 - 0x8C341B70, // 0232 GETMET R13 R13 K112 - 0x7C340200, // 0233 CALL R13 1 - 0xB83A0E00, // 0234 GETNGBL R14 K7 - 0x8C381D08, // 0235 GETMET R14 R14 K8 - 0x8C401B52, // 0236 GETMET R16 R13 K82 - 0x7C400200, // 0237 CALL R16 1 - 0x0042E210, // 0238 ADD R16 K113 R16 - 0x54460003, // 0239 LDINT R17 4 - 0x7C380600, // 023A CALL R14 3 - 0x60380015, // 023B GETGBL R14 G21 - 0x7C380000, // 023C CALL R14 0 - 0x8C381D20, // 023D GETMET R14 R14 K32 - 0x88400172, // 023E GETMBR R16 R0 K114 - 0x7C380400, // 023F CALL R14 2 - 0x8C3C1173, // 0240 GETMET R15 R8 K115 - 0x7C3C0200, // 0241 CALL R15 1 - 0x003C1E09, // 0242 ADD R15 R15 R9 - 0x8840095A, // 0243 GETMBR R16 R4 K90 - 0x003C1E10, // 0244 ADD R15 R15 R16 - 0x003C1E0D, // 0245 ADD R15 R15 R13 - 0x8C400522, // 0246 GETMET R16 R2 K34 - 0x7C400200, // 0247 CALL R16 1 - 0x8C402123, // 0248 GETMET R16 R16 K35 - 0x88480924, // 0249 GETMBR R18 R4 K36 - 0x5C4C1E00, // 024A MOVE R19 R15 - 0x5C501C00, // 024B MOVE R20 R14 - 0x5456000F, // 024C LDINT R21 16 - 0x7C400A00, // 024D CALL R16 5 - 0xB8460E00, // 024E GETNGBL R17 K7 - 0x8C442308, // 024F GETMET R17 R17 K8 - 0x884C0924, // 0250 GETMBR R19 R4 K36 - 0x8C4C2752, // 0251 GETMET R19 R19 K82 - 0x7C4C0200, // 0252 CALL R19 1 - 0x004EE813, // 0253 ADD R19 K116 R19 - 0x54520003, // 0254 LDINT R20 4 - 0x7C440600, // 0255 CALL R17 3 - 0xB8460E00, // 0256 GETNGBL R17 K7 - 0x8C442308, // 0257 GETMET R17 R17 K8 - 0x8C4C1F52, // 0258 GETMET R19 R15 K82 - 0x7C4C0200, // 0259 CALL R19 1 - 0x004EEA13, // 025A ADD R19 K117 R19 - 0x54520003, // 025B LDINT R20 4 - 0x7C440600, // 025C CALL R17 3 - 0xB8460E00, // 025D GETNGBL R17 K7 - 0x8C442308, // 025E GETMET R17 R17 K8 - 0x8C4C2152, // 025F GETMET R19 R16 K82 - 0x7C4C0200, // 0260 CALL R19 1 - 0x004EEC13, // 0261 ADD R19 K118 R19 - 0x54520003, // 0262 LDINT R20 4 - 0x7C440600, // 0263 CALL R17 3 - 0x8C44193E, // 0264 GETMET R17 R12 K62 - 0x7C440200, // 0265 CALL R17 1 - 0xB84A0E00, // 0266 GETNGBL R18 K7 - 0x8C482508, // 0267 GETMET R18 R18 K8 - 0x8C502352, // 0268 GETMET R20 R17 K82 - 0x7C500200, // 0269 CALL R20 1 - 0x0052EE14, // 026A ADD R20 K119 R20 - 0x54560003, // 026B LDINT R21 4 - 0x7C480600, // 026C CALL R18 3 - 0x8C480527, // 026D GETMET R18 R2 K39 - 0x5C502000, // 026E MOVE R20 R16 - 0x60540015, // 026F GETGBL R21 G21 - 0x7C540000, // 0270 CALL R21 0 - 0x8C542B20, // 0271 GETMET R21 R21 K32 - 0x885C0178, // 0272 GETMBR R23 R0 K120 - 0x7C540400, // 0273 CALL R21 2 - 0x60580015, // 0274 GETGBL R22 G21 - 0x7C580000, // 0275 CALL R22 0 - 0x605C000C, // 0276 GETGBL R23 G12 - 0x5C602200, // 0277 MOVE R24 R17 - 0x7C5C0200, // 0278 CALL R23 1 - 0x5462000F, // 0279 LDINT R24 16 - 0x7C480C00, // 027A CALL R18 6 - 0x8C4C2579, // 027B GETMET R19 R18 K121 - 0x5C542200, // 027C MOVE R21 R17 - 0x7C4C0400, // 027D CALL R19 2 - 0x8C502529, // 027E GETMET R20 R18 K41 - 0x7C500200, // 027F CALL R20 1 - 0x004C2614, // 0280 ADD R19 R19 R20 - 0xB8520E00, // 0281 GETNGBL R20 K7 - 0x8C502908, // 0282 GETMET R20 R20 K8 - 0x8C582752, // 0283 GETMET R22 R19 K82 - 0x7C580200, // 0284 CALL R22 1 - 0x005AF416, // 0285 ADD R22 K122 R22 - 0x545E0003, // 0286 LDINT R23 4 - 0x7C500600, // 0287 CALL R20 3 - 0xB8520E00, // 0288 GETNGBL R20 K7 - 0x8C502908, // 0289 GETMET R20 R20 K8 - 0x58580067, // 028A LDCONST R22 K103 - 0x545E0003, // 028B LDINT R23 4 - 0x7C500600, // 028C CALL R20 3 - 0xB8521A00, // 028D GETNGBL R20 K13 - 0x8C50297B, // 028E GETMET R20 R20 K123 - 0x7C500200, // 028F CALL R20 1 - 0x9052F809, // 0290 SETMBR R20 K124 R9 - 0x8854092F, // 0291 GETMBR R21 R4 K47 - 0x9052FA15, // 0292 SETMBR R20 K125 R21 - 0x8854095A, // 0293 GETMBR R21 R4 K90 - 0x9052FC15, // 0294 SETMBR R20 K126 R21 - 0x9052FE13, // 0295 SETMBR R20 K127 R19 - 0xB8560E00, // 0296 GETNGBL R21 K7 - 0x8C542B08, // 0297 GETMET R21 R21 K8 - 0xB85E1A00, // 0298 GETNGBL R23 K13 - 0x8C5C2F14, // 0299 GETMET R23 R23 K20 - 0x5C642800, // 029A MOVE R25 R20 - 0x7C5C0400, // 029B CALL R23 2 - 0x005F0017, // 029C ADD R23 K128 R23 - 0x54620003, // 029D LDINT R24 4 - 0x7C540600, // 029E CALL R21 3 - 0x8C54293E, // 029F GETMET R21 R20 K62 - 0x7C540200, // 02A0 CALL R21 1 - 0x90130215, // 02A1 SETMBR R4 K129 R21 - 0x8C580340, // 02A2 GETMET R22 R1 K64 - 0x54620030, // 02A3 LDINT R24 49 - 0x50640200, // 02A4 LDBOOL R25 1 0 - 0x7C580600, // 02A5 CALL R22 3 - 0x8C5C2D41, // 02A6 GETMET R23 R22 K65 - 0x5C642A00, // 02A7 MOVE R25 R21 - 0x7C5C0400, // 02A8 CALL R23 2 - 0x88600142, // 02A9 GETMBR R24 R0 K66 - 0x8C603143, // 02AA GETMET R24 R24 K67 - 0x5C682C00, // 02AB MOVE R26 R22 - 0x7C600400, // 02AC CALL R24 2 - 0x50600200, // 02AD LDBOOL R24 1 0 - 0x80043000, // 02AE RET 1 R24 - 0x50200200, // 02AF LDBOOL R8 1 0 - 0x80041000, // 02B0 RET 1 R8 + 0x88180B14, // 0022 GETMBR R6 R5 K20 + 0x90122606, // 0023 SETMBR R4 K19 R6 + 0x88180B15, // 0024 GETMBR R6 R5 K21 + 0x4C1C0000, // 0025 LDNIL R7 + 0x20180C07, // 0026 NE R6 R6 R7 + 0x781A0003, // 0027 JMPF R6 #002C + 0x88180B16, // 0028 GETMBR R6 R5 K22 + 0x4C1C0000, // 0029 LDNIL R7 + 0x20180C07, // 002A NE R6 R6 R7 + 0x741A0000, // 002B JMPT R6 #002D + 0x50180001, // 002C LDBOOL R6 0 1 + 0x50180200, // 002D LDBOOL R6 1 0 + 0x50180000, // 002E LDBOOL R6 0 0 + 0x4C1C0000, // 002F LDNIL R7 + 0x781A000D, // 0030 JMPF R6 #003F + 0x88200117, // 0031 GETMBR R8 R0 K23 + 0x88201118, // 0032 GETMBR R8 R8 K24 + 0x8C201119, // 0033 GETMET R8 R8 K25 + 0x88280B15, // 0034 GETMBR R10 R5 K21 + 0x7C200400, // 0035 CALL R8 2 + 0x5C1C1000, // 0036 MOVE R7 R8 + 0x4C200000, // 0037 LDNIL R8 + 0x1C200E08, // 0038 EQ R8 R7 R8 + 0x74220003, // 0039 JMPT R8 #003E + 0x88200F1A, // 003A GETMBR R8 R7 K26 + 0x4C240000, // 003B LDNIL R9 + 0x1C201009, // 003C EQ R8 R8 R9 + 0x78220000, // 003D JMPF R8 #003F + 0x50180000, // 003E LDBOOL R6 0 0 + 0x781A00B6, // 003F JMPF R6 #00F7 + 0x88200B1B, // 0040 GETMBR R8 R5 K27 + 0x88240B15, // 0041 GETMBR R9 R5 K21 + 0x00201009, // 0042 ADD R8 R8 R9 + 0x60240015, // 0043 GETGBL R9 G21 + 0x7C240000, // 0044 CALL R9 0 + 0x8C24131C, // 0045 GETMET R9 R9 K28 + 0x582C001D, // 0046 LDCONST R11 K29 + 0x7C240400, // 0047 CALL R9 2 + 0x8C28051E, // 0048 GETMET R10 R2 K30 + 0x7C280200, // 0049 CALL R10 1 + 0x8C28151F, // 004A GETMET R10 R10 K31 + 0x88300F20, // 004B GETMBR R12 R7 K32 + 0x5C341000, // 004C MOVE R13 R8 + 0x5C381200, // 004D MOVE R14 R9 + 0x543E000F, // 004E LDINT R15 16 + 0x7C280A00, // 004F CALL R10 5 + 0x602C0015, // 0050 GETGBL R11 G21 + 0x7C2C0000, // 0051 CALL R11 0 + 0x8C2C171C, // 0052 GETMET R11 R11 K28 + 0x58340021, // 0053 LDCONST R13 K33 + 0x7C2C0400, // 0054 CALL R11 2 + 0x5431FFEE, // 0055 LDINT R12 -17 + 0x40320A0C, // 0056 CONNECT R12 K5 R12 + 0x88340B16, // 0057 GETMBR R13 R5 K22 + 0x94301A0C, // 0058 GETIDX R12 R13 R12 + 0x5439FFEF, // 0059 LDINT R14 -16 + 0x40381D22, // 005A CONNECT R14 R14 K34 + 0x883C0B16, // 005B GETMBR R15 R5 K22 + 0x94341E0E, // 005C GETIDX R13 R15 R14 + 0x8C400523, // 005D GETMET R16 R2 K35 + 0x5C481400, // 005E MOVE R18 R10 + 0x5C4C1600, // 005F MOVE R19 R11 + 0x60500015, // 0060 GETGBL R20 G21 + 0x7C500000, // 0061 CALL R20 0 + 0x6054000C, // 0062 GETGBL R21 G12 + 0x5C581800, // 0063 MOVE R22 R12 + 0x7C540200, // 0064 CALL R21 1 + 0x545A000F, // 0065 LDINT R22 16 + 0x7C400C00, // 0066 CALL R16 6 + 0x5C382000, // 0067 MOVE R14 R16 + 0x8C401D24, // 0068 GETMET R16 R14 K36 + 0x5C481800, // 0069 MOVE R18 R12 + 0x7C400400, // 006A CALL R16 2 + 0x5C3C2000, // 006B MOVE R15 R16 + 0x8C401D25, // 006C GETMET R16 R14 K37 + 0x7C400200, // 006D CALL R16 1 + 0x1C441A10, // 006E EQ R17 R13 R16 + 0x78460085, // 006F JMPF R17 #00F6 + 0x88440F1A, // 0070 GETMBR R17 R7 K26 + 0x90123411, // 0071 SETMBR R4 K26 R17 + 0x88440327, // 0072 GETMBR R17 R1 K39 + 0x90124C11, // 0073 SETMBR R4 K38 R17 + 0x8C440928, // 0074 GETMET R17 R4 K40 + 0x7C440200, // 0075 CALL R17 1 + 0x88440B2A, // 0076 GETMBR R17 R5 K42 + 0x90125211, // 0077 SETMBR R4 K41 R17 + 0x88440117, // 0078 GETMBR R17 R0 K23 + 0x88442318, // 0079 GETMBR R17 R17 K24 + 0x8C44232C, // 007A GETMET R17 R17 K44 + 0x7C440200, // 007B CALL R17 1 + 0x90125611, // 007C SETMBR R4 K43 R17 + 0xB8460E00, // 007D GETNGBL R17 K7 + 0x8C442308, // 007E GETMET R17 R17 K8 + 0x8C4C072D, // 007F GETMET R19 R3 K45 + 0x5854002E, // 0080 LDCONST R21 K46 + 0x8858092B, // 0081 GETMBR R22 R4 K43 + 0x885C032F, // 0082 GETMBR R23 R1 K47 + 0x88600330, // 0083 GETMBR R24 R1 K48 + 0x7C4C0A00, // 0084 CALL R19 5 + 0x5850000A, // 0085 LDCONST R20 K10 + 0x7C440600, // 0086 CALL R17 3 + 0x88440F20, // 0087 GETMBR R17 R7 K32 + 0x90124011, // 0088 SETMBR R4 K32 R17 + 0x8C440532, // 0089 GETMET R17 R2 K50 + 0x544E000F, // 008A LDINT R19 16 + 0x7C440400, // 008B CALL R17 2 + 0x90126211, // 008C SETMBR R4 K49 R17 + 0x60440015, // 008D GETGBL R17 G21 + 0x7C440000, // 008E CALL R17 0 + 0x8C44231C, // 008F GETMET R17 R17 K28 + 0x584C0033, // 0090 LDCONST R19 K51 + 0x7C440400, // 0091 CALL R17 2 + 0x88480B1B, // 0092 GETMBR R18 R5 K27 + 0x884C0931, // 0093 GETMBR R19 R4 K49 + 0x00482413, // 0094 ADD R18 R18 R19 + 0x8C4C051E, // 0095 GETMET R19 R2 K30 + 0x7C4C0200, // 0096 CALL R19 1 + 0x8C4C271F, // 0097 GETMET R19 R19 K31 + 0x88540920, // 0098 GETMBR R21 R4 K32 + 0x5C582400, // 0099 MOVE R22 R18 + 0x5C5C2200, // 009A MOVE R23 R17 + 0x5462000F, // 009B LDINT R24 16 + 0x7C4C0A00, // 009C CALL R19 5 + 0x8C500523, // 009D GETMET R20 R2 K35 + 0x5C582600, // 009E MOVE R22 R19 + 0x605C0015, // 009F GETGBL R23 G21 + 0x7C5C0000, // 00A0 CALL R23 0 + 0x8C5C2F1C, // 00A1 GETMET R23 R23 K28 + 0x58640034, // 00A2 LDCONST R25 K52 + 0x7C5C0400, // 00A3 CALL R23 2 + 0x60600015, // 00A4 GETGBL R24 G21 + 0x7C600000, // 00A5 CALL R24 0 + 0x58640005, // 00A6 LDCONST R25 K5 + 0x546A000F, // 00A7 LDINT R26 16 + 0x7C500C00, // 00A8 CALL R20 6 + 0x8C542925, // 00A9 GETMET R21 R20 K37 + 0x7C540200, // 00AA CALL R21 1 + 0xB85A1C00, // 00AB GETNGBL R22 K14 + 0x8C582D35, // 00AC GETMET R22 R22 K53 + 0x7C580200, // 00AD CALL R22 1 + 0x885C0931, // 00AE GETMBR R23 R4 K49 + 0x905A2A17, // 00AF SETMBR R22 K21 R23 + 0x885C092B, // 00B0 GETMBR R23 R4 K43 + 0x905A6C17, // 00B1 SETMBR R22 K54 R23 + 0x905A6E15, // 00B2 SETMBR R22 K55 R21 + 0x8C5C051E, // 00B3 GETMET R23 R2 K30 + 0x7C5C0200, // 00B4 CALL R23 1 + 0x8C5C2F1F, // 00B5 GETMET R23 R23 K31 + 0x88640920, // 00B6 GETMBR R25 R4 K32 + 0x88680B1B, // 00B7 GETMBR R26 R5 K27 + 0x886C0931, // 00B8 GETMBR R27 R4 K49 + 0x0068341B, // 00B9 ADD R26 R26 R27 + 0x606C0015, // 00BA GETGBL R27 G21 + 0x7C6C0000, // 00BB CALL R27 0 + 0x8C6C371C, // 00BC GETMET R27 R27 K28 + 0x58740038, // 00BD LDCONST R29 K56 + 0x7C6C0400, // 00BE CALL R27 2 + 0x5472002F, // 00BF LDINT R28 48 + 0x7C5C0A00, // 00C0 CALL R23 5 + 0x5462000E, // 00C1 LDINT R24 15 + 0x40620A18, // 00C2 CONNECT R24 K5 R24 + 0x94602E18, // 00C3 GETIDX R24 R23 R24 + 0x5466000F, // 00C4 LDINT R25 16 + 0x546A001E, // 00C5 LDINT R26 31 + 0x4064321A, // 00C6 CONNECT R25 R25 R26 + 0x94642E19, // 00C7 GETIDX R25 R23 R25 + 0x546A001F, // 00C8 LDINT R26 32 + 0x546E002E, // 00C9 LDINT R27 47 + 0x4068341B, // 00CA CONNECT R26 R26 R27 + 0x94682E1A, // 00CB GETIDX R26 R23 R26 + 0xB86E0E00, // 00CC GETNGBL R27 K7 + 0x8C6C3739, // 00CD GETMET R27 R27 K57 + 0x7C6C0200, // 00CE CALL R27 1 + 0x946C373A, // 00CF GETIDX R27 R27 K58 + 0x8C702D3B, // 00D0 GETMET R28 R22 K59 + 0x7C700200, // 00D1 CALL R28 1 + 0x4C740000, // 00D2 LDNIL R29 + 0x9012781D, // 00D3 SETMBR R4 K60 R29 + 0x8C74033D, // 00D4 GETMET R29 R1 K61 + 0x547E0032, // 00D5 LDINT R31 51 + 0x50800200, // 00D6 LDBOOL R32 1 0 + 0x7C740600, // 00D7 CALL R29 3 + 0x8C783B3E, // 00D8 GETMET R30 R29 K62 + 0x5C803800, // 00D9 MOVE R32 R28 + 0x7C780400, // 00DA CALL R30 2 + 0x887C013F, // 00DB GETMBR R31 R0 K63 + 0x8C7C3F40, // 00DC GETMET R31 R31 K64 + 0x5C843A00, // 00DD MOVE R33 R29 + 0x7C7C0400, // 00DE CALL R31 2 + 0x8C7C0941, // 00DF GETMET R31 R4 K65 + 0x7C7C0200, // 00E0 CALL R31 1 + 0x8C7C0942, // 00E1 GETMET R31 R4 K66 + 0x5C843000, // 00E2 MOVE R33 R24 + 0x5C883200, // 00E3 MOVE R34 R25 + 0x5C8C3400, // 00E4 MOVE R35 R26 + 0x5C903600, // 00E5 MOVE R36 R27 + 0x7C7C0A00, // 00E6 CALL R31 5 + 0x90128705, // 00E7 SETMBR R4 K67 K5 + 0x8C7C0944, // 00E8 GETMET R31 R4 K68 + 0x7C7C0200, // 00E9 CALL R31 1 + 0x8C7C0945, // 00EA GETMET R31 R4 K69 + 0x50840200, // 00EB LDBOOL R33 1 0 + 0x7C7C0400, // 00EC CALL R31 2 + 0x8C7C0946, // 00ED GETMET R31 R4 K70 + 0x7C7C0200, // 00EE CALL R31 1 + 0x8C7C0947, // 00EF GETMET R31 R4 K71 + 0x7C7C0200, // 00F0 CALL R31 1 + 0x8C7C0948, // 00F1 GETMET R31 R4 K72 + 0x7C7C0200, // 00F2 CALL R31 1 + 0x507C0200, // 00F3 LDBOOL R31 1 0 + 0x80043E00, // 00F4 RET 1 R31 + 0x70020000, // 00F5 JMP #00F7 + 0x50180000, // 00F6 LDBOOL R6 0 0 + 0x5C200C00, // 00F7 MOVE R8 R6 + 0x742200E6, // 00F8 JMPT R8 #01E0 + 0x8C200149, // 00F9 GETMET R8 R0 K73 + 0x88280B4A, // 00FA GETMBR R10 R5 K74 + 0x882C0B1B, // 00FB GETMBR R11 R5 K27 + 0x7C200600, // 00FC CALL R8 3 + 0x90123408, // 00FD SETMBR R4 K26 R8 + 0x4C240000, // 00FE LDNIL R9 + 0x1C240809, // 00FF EQ R9 R4 R9 + 0x74260003, // 0100 JMPT R9 #0105 + 0x8824091A, // 0101 GETMBR R9 R4 K26 + 0x4C280000, // 0102 LDNIL R10 + 0x1C24120A, // 0103 EQ R9 R9 R10 + 0x7826000D, // 0104 JMPF R9 #0113 + 0xB8260E00, // 0105 GETNGBL R9 K7 + 0x8C241308, // 0106 GETMET R9 R9 K8 + 0x582C004B, // 0107 LDCONST R11 K75 + 0x5830000A, // 0108 LDCONST R12 K10 + 0x7C240600, // 0109 CALL R9 3 + 0x8C24010B, // 010A GETMET R9 R0 K11 + 0x5C2C0200, // 010B MOVE R11 R1 + 0x5830000C, // 010C LDCONST R12 K12 + 0x58340005, // 010D LDCONST R13 K5 + 0x5838000C, // 010E LDCONST R14 K12 + 0x503C0000, // 010F LDBOOL R15 0 0 + 0x7C240C00, // 0110 CALL R9 6 + 0x50240000, // 0111 LDBOOL R9 0 0 + 0x80041200, // 0112 RET 1 R9 + 0x88240327, // 0113 GETMBR R9 R1 K39 + 0x90124C09, // 0114 SETMBR R4 K38 R9 + 0x8C240928, // 0115 GETMET R9 R4 K40 + 0x7C240200, // 0116 CALL R9 1 + 0x88240B2A, // 0117 GETMBR R9 R5 K42 + 0x90125209, // 0118 SETMBR R4 K41 R9 + 0x88240117, // 0119 GETMBR R9 R0 K23 + 0x88241318, // 011A GETMBR R9 R9 K24 + 0x8C24132C, // 011B GETMET R9 R9 K44 + 0x7C240200, // 011C CALL R9 1 + 0x90125609, // 011D SETMBR R4 K43 R9 + 0xB8260E00, // 011E GETNGBL R9 K7 + 0x8C241308, // 011F GETMET R9 R9 K8 + 0x8C2C072D, // 0120 GETMET R11 R3 K45 + 0x5834002E, // 0121 LDCONST R13 K46 + 0x8838092B, // 0122 GETMBR R14 R4 K43 + 0x883C032F, // 0123 GETMBR R15 R1 K47 + 0x88400330, // 0124 GETMBR R16 R1 K48 + 0x7C2C0A00, // 0125 CALL R11 5 + 0x5830000A, // 0126 LDCONST R12 K10 + 0x7C240600, // 0127 CALL R9 3 + 0x8C240532, // 0128 GETMET R9 R2 K50 + 0x542E000F, // 0129 LDINT R11 16 + 0x7C240400, // 012A CALL R9 2 + 0x90126209, // 012B SETMBR R4 K49 R9 + 0x8C240532, // 012C GETMET R9 R2 K50 + 0x542E001F, // 012D LDINT R11 32 + 0x7C240400, // 012E CALL R9 2 + 0x90129809, // 012F SETMBR R4 K76 R9 + 0x8C24054E, // 0130 GETMET R9 R2 K78 + 0x7C240200, // 0131 CALL R9 1 + 0x8C24134F, // 0132 GETMET R9 R9 K79 + 0x882C094C, // 0133 GETMBR R11 R4 K76 + 0x7C240400, // 0134 CALL R9 2 + 0x90129A09, // 0135 SETMBR R4 K77 R9 + 0x8C240532, // 0136 GETMET R9 R2 K50 + 0x542E001F, // 0137 LDINT R11 32 + 0x7C240400, // 0138 CALL R9 2 + 0x8C28054E, // 0139 GETMET R10 R2 K78 + 0x7C280200, // 013A CALL R10 1 + 0x8C281550, // 013B GETMET R10 R10 K80 + 0x8830094C, // 013C GETMBR R12 R4 K76 + 0x88340B14, // 013D GETMBR R13 R5 K20 + 0x7C280600, // 013E CALL R10 3 + 0x9012400A, // 013F SETMBR R4 K32 R10 + 0xB82A1C00, // 0140 GETNGBL R10 K14 + 0x88281551, // 0141 GETMBR R10 R10 K81 + 0x8C281552, // 0142 GETMET R10 R10 K82 + 0x7C280200, // 0143 CALL R10 1 + 0x8C2C1553, // 0144 GETMET R11 R10 K83 + 0x5834000C, // 0145 LDCONST R13 K12 + 0xB83A1C00, // 0146 GETNGBL R14 K14 + 0x88381D51, // 0147 GETMBR R14 R14 K81 + 0x88381D54, // 0148 GETMBR R14 R14 K84 + 0x8C3C1155, // 0149 GETMET R15 R8 K85 + 0x7C3C0200, // 014A CALL R15 1 + 0x7C2C0800, // 014B CALL R11 4 + 0x8C2C1553, // 014C GETMET R11 R10 K83 + 0x5834000D, // 014D LDCONST R13 K13 + 0xB83A1C00, // 014E GETNGBL R14 K14 + 0x88381D51, // 014F GETMBR R14 R14 K81 + 0x88381D54, // 0150 GETMBR R14 R14 K84 + 0x8C3C1156, // 0151 GETMET R15 R8 K86 + 0x7C3C0200, // 0152 CALL R15 1 + 0x7C2C0800, // 0153 CALL R11 4 + 0x8C2C1553, // 0154 GETMET R11 R10 K83 + 0x5834000A, // 0155 LDCONST R13 K10 + 0xB83A1C00, // 0156 GETNGBL R14 K14 + 0x88381D51, // 0157 GETMBR R14 R14 K81 + 0x88381D54, // 0158 GETMBR R14 R14 K84 + 0x883C094D, // 0159 GETMBR R15 R4 K77 + 0x7C2C0800, // 015A CALL R11 4 + 0x8C2C1553, // 015B GETMET R11 R10 K83 + 0x54360003, // 015C LDINT R13 4 + 0xB83A1C00, // 015D GETNGBL R14 K14 + 0x88381D51, // 015E GETMBR R14 R14 K81 + 0x88381D54, // 015F GETMBR R14 R14 K84 + 0x883C0B14, // 0160 GETMBR R15 R5 K20 + 0x7C2C0800, // 0161 CALL R11 4 + 0x8C2C054E, // 0162 GETMET R11 R2 K78 + 0x7C2C0200, // 0163 CALL R11 1 + 0x8C2C1757, // 0164 GETMET R11 R11 K87 + 0x8C341158, // 0165 GETMET R13 R8 K88 + 0x7C340200, // 0166 CALL R13 1 + 0x8C38153B, // 0167 GETMET R14 R10 K59 + 0x7C380200, // 0168 CALL R14 1 + 0x7C2C0600, // 0169 CALL R11 3 + 0xB8321C00, // 016A GETNGBL R12 K14 + 0x88301951, // 016B GETMBR R12 R12 K81 + 0x8C301952, // 016C GETMET R12 R12 K82 + 0x7C300200, // 016D CALL R12 1 + 0x8C341953, // 016E GETMET R13 R12 K83 + 0x583C000C, // 016F LDCONST R15 K12 + 0xB8421C00, // 0170 GETNGBL R16 K14 + 0x88402151, // 0171 GETMBR R16 R16 K81 + 0x88402154, // 0172 GETMBR R16 R16 K84 + 0x8C441155, // 0173 GETMET R17 R8 K85 + 0x7C440200, // 0174 CALL R17 1 + 0x7C340800, // 0175 CALL R13 4 + 0x8C341953, // 0176 GETMET R13 R12 K83 + 0x583C000D, // 0177 LDCONST R15 K13 + 0xB8421C00, // 0178 GETNGBL R16 K14 + 0x88402151, // 0179 GETMBR R16 R16 K81 + 0x88402154, // 017A GETMBR R16 R16 K84 + 0x8C441156, // 017B GETMET R17 R8 K86 + 0x7C440200, // 017C CALL R17 1 + 0x7C340800, // 017D CALL R13 4 + 0x8C341953, // 017E GETMET R13 R12 K83 + 0x583C000A, // 017F LDCONST R15 K10 + 0xB8421C00, // 0180 GETNGBL R16 K14 + 0x88402151, // 0181 GETMBR R16 R16 K81 + 0x88402154, // 0182 GETMBR R16 R16 K84 + 0x5C441600, // 0183 MOVE R17 R11 + 0x7C340800, // 0184 CALL R13 4 + 0x8C341953, // 0185 GETMET R13 R12 K83 + 0x543E0003, // 0186 LDINT R15 4 + 0xB8421C00, // 0187 GETNGBL R16 K14 + 0x88402151, // 0188 GETMBR R16 R16 K81 + 0x88402154, // 0189 GETMBR R16 R16 K84 + 0x88440931, // 018A GETMBR R17 R4 K49 + 0x7C340800, // 018B CALL R13 4 + 0x88340B59, // 018C GETMBR R13 R5 K89 + 0x9012780D, // 018D SETMBR R4 K60 R13 + 0x8C34055A, // 018E GETMET R13 R2 K90 + 0x7C340200, // 018F CALL R13 1 + 0x8C341B5B, // 0190 GETMET R13 R13 K91 + 0x883C093C, // 0191 GETMBR R15 R4 K60 + 0x7C340400, // 0192 CALL R13 2 + 0x8C341B5C, // 0193 GETMET R13 R13 K92 + 0x7C340200, // 0194 CALL R13 1 + 0x60380015, // 0195 GETGBL R14 G21 + 0x7C380000, // 0196 CALL R14 0 + 0x8C381D1C, // 0197 GETMET R14 R14 K28 + 0x8840015D, // 0198 GETMBR R16 R0 K93 + 0x7C380400, // 0199 CALL R14 2 + 0x8C3C115E, // 019A GETMET R15 R8 K94 + 0x7C3C0200, // 019B CALL R15 1 + 0x003C1E09, // 019C ADD R15 R15 R9 + 0x8840094D, // 019D GETMBR R16 R4 K77 + 0x003C1E10, // 019E ADD R15 R15 R16 + 0x003C1E0D, // 019F ADD R15 R15 R13 + 0x8C40051E, // 01A0 GETMET R16 R2 K30 + 0x7C400200, // 01A1 CALL R16 1 + 0x8C40211F, // 01A2 GETMET R16 R16 K31 + 0x88480920, // 01A3 GETMBR R18 R4 K32 + 0x5C4C1E00, // 01A4 MOVE R19 R15 + 0x5C501C00, // 01A5 MOVE R20 R14 + 0x5456000F, // 01A6 LDINT R21 16 + 0x7C400A00, // 01A7 CALL R16 5 + 0x8C44193B, // 01A8 GETMET R17 R12 K59 + 0x7C440200, // 01A9 CALL R17 1 + 0x8C480523, // 01AA GETMET R18 R2 K35 + 0x5C502000, // 01AB MOVE R20 R16 + 0x60540015, // 01AC GETGBL R21 G21 + 0x7C540000, // 01AD CALL R21 0 + 0x8C542B1C, // 01AE GETMET R21 R21 K28 + 0x885C015F, // 01AF GETMBR R23 R0 K95 + 0x7C540400, // 01B0 CALL R21 2 + 0x60580015, // 01B1 GETGBL R22 G21 + 0x7C580000, // 01B2 CALL R22 0 + 0x605C000C, // 01B3 GETGBL R23 G12 + 0x5C602200, // 01B4 MOVE R24 R17 + 0x7C5C0200, // 01B5 CALL R23 1 + 0x5462000F, // 01B6 LDINT R24 16 + 0x7C480C00, // 01B7 CALL R18 6 + 0x8C4C2560, // 01B8 GETMET R19 R18 K96 + 0x5C542200, // 01B9 MOVE R21 R17 + 0x7C4C0400, // 01BA CALL R19 2 + 0x8C502525, // 01BB GETMET R20 R18 K37 + 0x7C500200, // 01BC CALL R20 1 + 0x004C2614, // 01BD ADD R19 R19 R20 + 0xB8521C00, // 01BE GETNGBL R20 K14 + 0x8C502961, // 01BF GETMET R20 R20 K97 + 0x7C500200, // 01C0 CALL R20 1 + 0x9052C409, // 01C1 SETMBR R20 K98 R9 + 0x8854092B, // 01C2 GETMBR R21 R4 K43 + 0x9052C615, // 01C3 SETMBR R20 K99 R21 + 0x8854094D, // 01C4 GETMBR R21 R4 K77 + 0x9052C815, // 01C5 SETMBR R20 K100 R21 + 0x9052CA13, // 01C6 SETMBR R20 K101 R19 + 0x8C54293B, // 01C7 GETMET R21 R20 K59 + 0x7C540200, // 01C8 CALL R21 1 + 0x9012CC15, // 01C9 SETMBR R4 K102 R21 + 0x8C58033D, // 01CA GETMET R22 R1 K61 + 0x54620030, // 01CB LDINT R24 49 + 0x50640200, // 01CC LDBOOL R25 1 0 + 0x7C580600, // 01CD CALL R22 3 + 0x8C5C2D3E, // 01CE GETMET R23 R22 K62 + 0x5C642A00, // 01CF MOVE R25 R21 + 0x7C5C0400, // 01D0 CALL R23 2 + 0xB8620E00, // 01D1 GETNGBL R24 K7 + 0x8C603108, // 01D2 GETMET R24 R24 K8 + 0x8C68072D, // 01D3 GETMET R26 R3 K45 + 0x58700067, // 01D4 LDCONST R28 K103 + 0x8874092B, // 01D5 GETMBR R29 R4 K43 + 0x88780968, // 01D6 GETMBR R30 R4 K104 + 0x887C0969, // 01D7 GETMBR R31 R4 K105 + 0x7C680A00, // 01D8 CALL R26 5 + 0x7C600400, // 01D9 CALL R24 2 + 0x8860013F, // 01DA GETMBR R24 R0 K63 + 0x8C603140, // 01DB GETMET R24 R24 K64 + 0x5C682C00, // 01DC MOVE R26 R22 + 0x7C600400, // 01DD CALL R24 2 + 0x50600200, // 01DE LDBOOL R24 1 0 + 0x80043000, // 01DF RET 1 R24 + 0x50200200, // 01E0 LDBOOL R8 1 0 + 0x80041000, // 01E1 RET 1 R8 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Control_Message.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Control_Message.h index 967c09a27..a7d268200 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Control_Message.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Control_Message.h @@ -155,13 +155,13 @@ be_local_closure(Matter_Control_Message_process_incoming_control_message, /* n 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[14]) { /* constants */ + ( &(const bvalue[15]) { /* constants */ /* K0 */ be_nested_str_weak(tasmota), /* K1 */ be_nested_str_weak(log), /* K2 */ be_nested_str_weak(MTR_X3A_X20received_X20control_X20message_X20), /* K3 */ be_nested_str_weak(matter), /* K4 */ be_nested_str_weak(inspect), - /* K5 */ be_const_int(2), + /* K5 */ be_const_int(3), /* K6 */ be_nested_str_weak(opcode), /* K7 */ be_const_int(0), /* K8 */ be_nested_str_weak(parse_MsgCounterSyncReq), @@ -170,6 +170,7 @@ be_local_closure(Matter_Control_Message_process_incoming_control_message, /* n /* K11 */ be_nested_str_weak(string), /* K12 */ be_nested_str_weak(format), /* K13 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X20Unknown_X20OpCode_X20_X28control_X20message_X29_X20_X2502X), + /* K14 */ be_const_int(2), }), be_str_weak(process_incoming_control_message), &be_const_str_solidified, @@ -206,7 +207,7 @@ be_local_closure(Matter_Control_Message_process_incoming_control_message, /* n 0x581C000D, // 001D LDCONST R7 K13 0x88200306, // 001E GETMBR R8 R1 K6 0x7C140600, // 001F CALL R5 3 - 0x58180005, // 0020 LDCONST R6 K5 + 0x5818000E, // 0020 LDCONST R6 K14 0x7C0C0600, // 0021 CALL R3 3 0x500C0000, // 0022 LDBOOL R3 0 0 0x80040600, // 0023 RET 1 R3 diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h index 2844d3a78..3425d547a 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h @@ -7,288 +7,9 @@ extern const bclass be_class_Matter_Device; /******************************************************************** -** Solidified function: get_plugin_class_arg +** Solidified function: is_commissioning_open ********************************************************************/ -be_local_closure(Matter_Device_get_plugin_class_arg, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_nested_str_weak(), - }), - be_str_weak(get_plugin_class_arg), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_remove_op_discovery_all_fabrics -********************************************************************/ -be_local_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics, /* 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(sessions), - /* K1 */ be_nested_str_weak(active_fabrics), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(mdns_remove_op_discovery_all_fabrics), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _start_udp -********************************************************************/ -be_local_closure(Matter_Device__start_udp, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(msg_received), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x680C0000, // 0000 GETUPV R3 U0 - 0x8C0C0700, // 0001 GETMET R3 R3 K0 - 0x5C140000, // 0002 MOVE R5 R0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x7C0C0800, // 0005 CALL R3 4 - 0x80040600, // 0006 RET 1 R3 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), - /* K4 */ be_const_int(2), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(UDPServer), - /* K7 */ be_nested_str_weak(), - /* K8 */ be_nested_str_weak(start), - }), - be_str_weak(_start_udp), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x80000400, // 0002 RET 0 - 0x4C080000, // 0003 LDNIL R2 - 0x1C080202, // 0004 EQ R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540615A3, // 0006 LDINT R1 5540 - 0xB80A0200, // 0007 GETNGBL R2 K1 - 0x8C080502, // 0008 GETMET R2 R2 K2 - 0x60100008, // 0009 GETGBL R4 G8 - 0x5C140200, // 000A MOVE R5 R1 - 0x7C100200, // 000B CALL R4 1 - 0x00120604, // 000C ADD R4 K3 R4 - 0x58140004, // 000D LDCONST R5 K4 - 0x7C080600, // 000E CALL R2 3 - 0xB80A0A00, // 000F GETNGBL R2 K5 - 0x8C080506, // 0010 GETMET R2 R2 K6 - 0x58100007, // 0011 LDCONST R4 K7 - 0x5C140200, // 0012 MOVE R5 R1 - 0x7C080600, // 0013 CALL R2 3 - 0x90020002, // 0014 SETMBR R0 K0 R2 - 0x88080100, // 0015 GETMBR R2 R0 K0 - 0x8C080508, // 0016 GETMET R2 R2 K8 - 0x84100000, // 0017 CLOSURE R4 P0 - 0x7C080400, // 0018 CALL R2 2 - 0xA0000000, // 0019 CLOSE R0 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_plugin_by_endpoint -********************************************************************/ -be_local_closure(Matter_Device_find_plugin_by_endpoint, /* 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[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(get_endpoint), - /* K3 */ be_const_int(1), - }), - be_str_weak(find_plugin_by_endpoint), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x600C000C, // 0001 GETGBL R3 G12 - 0x88100101, // 0002 GETMBR R4 R0 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x140C0403, // 0004 LT R3 R2 R3 - 0x780E0008, // 0005 JMPF R3 #000F - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x940C0602, // 0007 GETIDX R3 R3 R2 - 0x8C100702, // 0008 GETMET R4 R3 K2 - 0x7C100200, // 0009 CALL R4 1 - 0x1C100801, // 000A EQ R4 R4 R1 - 0x78120000, // 000B JMPF R4 #000D - 0x80040600, // 000C RET 1 R3 - 0x00080503, // 000D ADD R2 R2 K3 - 0x7001FFF1, // 000E JMP #0001 - 0x4C0C0000, // 000F LDNIL R3 - 0x80040600, // 0010 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_active_endpoints -********************************************************************/ -be_local_closure(Matter_Device_get_active_endpoints, /* 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[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins), - /* K1 */ be_nested_str_weak(get_endpoint), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(get_active_endpoints), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x60080012, // 0000 GETGBL R2 G18 - 0x7C080000, // 0001 CALL R2 0 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x88100100, // 0003 GETMBR R4 R0 K0 - 0x7C0C0200, // 0004 CALL R3 1 - 0xA8020011, // 0005 EXBLK 0 #0018 - 0x5C100600, // 0006 MOVE R4 R3 - 0x7C100000, // 0007 CALL R4 0 - 0x8C140901, // 0008 GETMET R5 R4 K1 - 0x7C140200, // 0009 CALL R5 1 - 0x78060002, // 000A JMPF R1 #000E - 0x1C180B02, // 000B EQ R6 R5 K2 - 0x781A0000, // 000C JMPF R6 #000E - 0x7001FFF7, // 000D JMP #0006 - 0x8C180503, // 000E GETMET R6 R2 K3 - 0x5C200A00, // 000F MOVE R8 R5 - 0x7C180400, // 0010 CALL R6 2 - 0x4C1C0000, // 0011 LDNIL R7 - 0x1C180C07, // 0012 EQ R6 R6 R7 - 0x781A0002, // 0013 JMPF R6 #0017 - 0x8C180504, // 0014 GETMET R6 R2 K4 - 0x5C200A00, // 0015 MOVE R8 R5 - 0x7C180400, // 0016 CALL R6 2 - 0x7001FFED, // 0017 JMP #0006 - 0x580C0005, // 0018 LDCONST R3 K5 - 0xAC0C0200, // 0019 CATCH R3 1 0 - 0xB0080000, // 001A RAISE 2 R0 R0 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_root_commissioning_open -********************************************************************/ -be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ +be_local_closure(Matter_Device_is_commissioning_open, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -298,24 +19,16 @@ be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ + ( &(const bvalue[ 1]) { /* constants */ /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(commissioning_admin_fabric), }), - be_str_weak(is_root_commissioning_open), + be_str_weak(is_commissioning_open), &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ + ( &(const binstruction[ 4]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 0x4C080000, // 0001 LDNIL R2 0x20040202, // 0002 NE R1 R1 R2 - 0x78060003, // 0003 JMPF R1 #0008 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x4C080000, // 0005 LDNIL R2 - 0x1C040202, // 0006 EQ R1 R1 R2 - 0x74060000, // 0007 JMPT R1 #0009 - 0x50040001, // 0008 LDBOOL R1 0 1 - 0x50040200, // 0009 LDBOOL R1 1 0 - 0x80040200, // 000A RET 1 R1 + 0x80040200, // 0003 RET 1 R1 }) ) ); @@ -323,285 +36,190 @@ be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ /******************************************************************** -** Solidified function: register_commands +** Solidified function: _mdns_announce_hostname ********************************************************************/ -be_local_closure(Matter_Device_register_commands, /* name */ +be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(MtrJoin), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x8C100900, // 0001 GETMET R4 R4 K0 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80040800, // 0007 RET 1 R4 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(add_cmd), - /* K2 */ be_nested_str_weak(MtrJoin), - }), - be_str_weak(register_commands), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x580C0002, // 0002 LDCONST R3 K2 - 0x84100000, // 0003 CLOSURE R4 P0 - 0x7C040600, // 0004 CALL R1 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_remove_PASE -********************************************************************/ -be_local_closure(Matter_Device_mdns_remove_PASE, /* name */ - be_nested_proto( - 12, /* nstack */ - 1, /* argc */ + 15, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[22]) { /* constants */ + ( &(const bvalue[27]) { /* constants */ /* K0 */ be_nested_str_weak(mdns), /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(mdns_pase_eth), + /* K2 */ be_nested_str_weak(start), /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(log), - /* K5 */ be_nested_str_weak(format), - /* K6 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K7 */ be_nested_str_weak(_matterc), - /* K8 */ be_nested_str_weak(_udp), - /* K9 */ be_nested_str_weak(commissioning_instance_eth), - /* K10 */ be_nested_str_weak(hostname_eth), - /* K11 */ be_const_int(3), - /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K13 */ be_nested_str_weak(eth), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(remove_service), - /* K16 */ be_nested_str_weak(mdns_pase_wifi), - /* K17 */ be_nested_str_weak(commissioning_instance_wifi), - /* K18 */ be_nested_str_weak(hostname_wifi), - /* K19 */ be_nested_str_weak(wifi), - /* K20 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K21 */ be_nested_str_weak(_X7C), + /* K4 */ be_nested_str_weak(eth), + /* K5 */ be_nested_str_weak(hostname_eth), + /* K6 */ be_nested_str_weak(replace), + /* K7 */ be_nested_str_weak(find), + /* K8 */ be_nested_str_weak(mac), + /* K9 */ be_nested_str_weak(_X3A), + /* K10 */ be_nested_str_weak(), + /* K11 */ be_nested_str_weak(ipv4only), + /* K12 */ be_nested_str_weak(add_hostname), + /* K13 */ be_nested_str_weak(ip6local), + /* K14 */ be_nested_str_weak(ip), + /* K15 */ be_nested_str_weak(ip6), + /* K16 */ be_nested_str_weak(log), + /* K17 */ be_nested_str_weak(format), + /* K18 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), + /* K19 */ be_const_int(3), + /* K20 */ be_nested_str_weak(wifi), + /* K21 */ be_nested_str_weak(hostname_wifi), + /* K22 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), + /* K23 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K24 */ be_nested_str_weak(_X7C), + /* K25 */ be_const_int(2), + /* K26 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), }), - be_str_weak(mdns_remove_PASE), + be_str_weak(_mdns_announce_hostname), &be_const_str_solidified, - ( &(const binstruction[83]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA802003D, // 0002 EXBLK 0 #0041 - 0x880C0102, // 0003 GETMBR R3 R0 K2 - 0x780E001B, // 0004 JMPF R3 #0021 - 0xB80E0600, // 0005 GETNGBL R3 K3 - 0x8C0C0704, // 0006 GETMET R3 R3 K4 - 0x8C140505, // 0007 GETMET R5 R2 K5 - 0x581C0006, // 0008 LDCONST R7 K6 - 0x58200007, // 0009 LDCONST R8 K7 - 0x58240008, // 000A LDCONST R9 K8 - 0x88280109, // 000B GETMBR R10 R0 K9 - 0x882C010A, // 000C GETMBR R11 R0 K10 - 0x7C140C00, // 000D CALL R5 6 - 0x5818000B, // 000E LDCONST R6 K11 - 0x7C0C0600, // 000F CALL R3 3 - 0xB80E0600, // 0010 GETNGBL R3 K3 - 0x8C0C0704, // 0011 GETMET R3 R3 K4 - 0x8C140505, // 0012 GETMET R5 R2 K5 - 0x581C000C, // 0013 LDCONST R7 K12 - 0x5820000D, // 0014 LDCONST R8 K13 - 0x88240109, // 0015 GETMBR R9 R0 K9 - 0x7C140800, // 0016 CALL R5 4 - 0x5818000E, // 0017 LDCONST R6 K14 - 0x7C0C0600, // 0018 CALL R3 3 - 0x500C0000, // 0019 LDBOOL R3 0 0 - 0x90020403, // 001A SETMBR R0 K2 R3 - 0x8C0C030F, // 001B GETMET R3 R1 K15 - 0x58140007, // 001C LDCONST R5 K7 - 0x58180008, // 001D LDCONST R6 K8 - 0x881C0109, // 001E GETMBR R7 R0 K9 - 0x8820010A, // 001F GETMBR R8 R0 K10 - 0x7C0C0A00, // 0020 CALL R3 5 - 0x880C0110, // 0021 GETMBR R3 R0 K16 - 0x780E001B, // 0022 JMPF R3 #003F - 0xB80E0600, // 0023 GETNGBL R3 K3 - 0x8C0C0704, // 0024 GETMET R3 R3 K4 - 0x8C140505, // 0025 GETMET R5 R2 K5 - 0x581C0006, // 0026 LDCONST R7 K6 - 0x58200007, // 0027 LDCONST R8 K7 - 0x58240008, // 0028 LDCONST R9 K8 - 0x88280111, // 0029 GETMBR R10 R0 K17 - 0x882C0112, // 002A GETMBR R11 R0 K18 - 0x7C140C00, // 002B CALL R5 6 - 0x5818000B, // 002C LDCONST R6 K11 - 0x7C0C0600, // 002D CALL R3 3 - 0xB80E0600, // 002E GETNGBL R3 K3 - 0x8C0C0704, // 002F GETMET R3 R3 K4 - 0x8C140505, // 0030 GETMET R5 R2 K5 - 0x581C000C, // 0031 LDCONST R7 K12 - 0x58200013, // 0032 LDCONST R8 K19 - 0x88240111, // 0033 GETMBR R9 R0 K17 - 0x7C140800, // 0034 CALL R5 4 - 0x5818000E, // 0035 LDCONST R6 K14 - 0x7C0C0600, // 0036 CALL R3 3 - 0x500C0000, // 0037 LDBOOL R3 0 0 - 0x90022003, // 0038 SETMBR R0 K16 R3 - 0x8C0C030F, // 0039 GETMET R3 R1 K15 - 0x58140007, // 003A LDCONST R5 K7 - 0x58180008, // 003B LDCONST R6 K8 - 0x881C0111, // 003C GETMBR R7 R0 K17 - 0x88200112, // 003D GETMBR R8 R0 K18 - 0x7C0C0A00, // 003E CALL R3 5 - 0xA8040001, // 003F EXBLK 1 1 - 0x70020010, // 0040 JMP #0052 - 0xAC0C0002, // 0041 CATCH R3 0 2 - 0x7002000D, // 0042 JMP #0051 - 0xB8160600, // 0043 GETNGBL R5 K3 - 0x8C140B04, // 0044 GETMET R5 R5 K4 - 0x601C0008, // 0045 GETGBL R7 G8 - 0x5C200600, // 0046 MOVE R8 R3 - 0x7C1C0200, // 0047 CALL R7 1 - 0x001E2807, // 0048 ADD R7 K20 R7 - 0x001C0F15, // 0049 ADD R7 R7 K21 - 0x60200008, // 004A GETGBL R8 G8 - 0x5C240800, // 004B MOVE R9 R4 - 0x7C200200, // 004C CALL R8 1 - 0x001C0E08, // 004D ADD R7 R7 R8 - 0x5820000E, // 004E LDCONST R8 K14 - 0x7C140600, // 004F CALL R5 3 - 0x70020000, // 0050 JMP #0052 - 0xB0080000, // 0051 RAISE 2 R0 R0 - 0x80000000, // 0052 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_250ms -********************************************************************/ -be_local_closure(Matter_Device_every_250ms, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(every_250ms), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins), - /* K4 */ be_const_int(1), - }), - be_str_weak(every_250ms), - &be_const_str_solidified, - ( &(const binstruction[16]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x58040002, // 0003 LDCONST R1 K2 - 0x6008000C, // 0004 GETGBL R2 G12 - 0x880C0103, // 0005 GETMBR R3 R0 K3 - 0x7C080200, // 0006 CALL R2 1 - 0x14080202, // 0007 LT R2 R1 R2 - 0x780A0005, // 0008 JMPF R2 #000F - 0x88080103, // 0009 GETMBR R2 R0 K3 - 0x94080401, // 000A GETIDX R2 R2 R1 - 0x8C080501, // 000B GETMET R2 R2 K1 - 0x7C080200, // 000C CALL R2 1 - 0x00040304, // 000D ADD R1 R1 K4 - 0x7001FFF4, // 000E JMP #0004 - 0x80000000, // 000F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: adjust_next_ep -********************************************************************/ -be_local_closure(Matter_Device_adjust_next_ep, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(next_ep), - /* K3 */ be_const_int(1), - /* K4 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(adjust_next_ep), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000A, // 0005 EXBLK 0 #0011 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x600C0009, // 0008 GETGBL R3 G9 - 0x5C100400, // 0009 MOVE R4 R2 - 0x7C0C0200, // 000A CALL R3 1 - 0x88100102, // 000B GETMBR R4 R0 K2 - 0x28100604, // 000C GE R4 R3 R4 - 0x78120001, // 000D JMPF R4 #0010 - 0x00100703, // 000E ADD R4 R3 K3 - 0x90020404, // 000F SETMBR R0 K2 R4 - 0x7001FFF4, // 0010 JMP #0006 - 0x58040004, // 0011 LDCONST R1 K4 - 0xAC040200, // 0012 CATCH R1 1 0 - 0xB0080000, // 0013 RAISE 2 R0 R0 - 0x80000000, // 0014 RET 0 + ( &(const binstruction[140]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0x8C100502, // 0002 GETMET R4 R2 K2 + 0x7C100200, // 0003 CALL R4 1 + 0xA8020072, // 0004 EXBLK 0 #0078 + 0x78060030, // 0005 JMPF R1 #0037 + 0xB8120600, // 0006 GETNGBL R4 K3 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140706, // 0009 GETMET R5 R3 K6 + 0x8C1C0907, // 000A GETMET R7 R4 K7 + 0x58240008, // 000B LDCONST R9 K8 + 0x7C1C0400, // 000C CALL R7 2 + 0x58200009, // 000D LDCONST R8 K9 + 0x5824000A, // 000E LDCONST R9 K10 + 0x7C140800, // 000F CALL R5 4 + 0x90020A05, // 0010 SETMBR R0 K5 R5 + 0x8814010B, // 0011 GETMBR R5 R0 K11 + 0x7416000F, // 0012 JMPT R5 #0023 + 0x8C14050C, // 0013 GETMET R5 R2 K12 + 0x881C0105, // 0014 GETMBR R7 R0 K5 + 0x8C200907, // 0015 GETMET R8 R4 K7 + 0x5828000D, // 0016 LDCONST R10 K13 + 0x582C000A, // 0017 LDCONST R11 K10 + 0x7C200600, // 0018 CALL R8 3 + 0x8C240907, // 0019 GETMET R9 R4 K7 + 0x582C000E, // 001A LDCONST R11 K14 + 0x5830000A, // 001B LDCONST R12 K10 + 0x7C240600, // 001C CALL R9 3 + 0x8C280907, // 001D GETMET R10 R4 K7 + 0x5830000F, // 001E LDCONST R12 K15 + 0x5834000A, // 001F LDCONST R13 K10 + 0x7C280600, // 0020 CALL R10 3 + 0x7C140A00, // 0021 CALL R5 5 + 0x70020012, // 0022 JMP #0036 + 0xB8160600, // 0023 GETNGBL R5 K3 + 0x8C140B10, // 0024 GETMET R5 R5 K16 + 0x8C1C0711, // 0025 GETMET R7 R3 K17 + 0x58240012, // 0026 LDCONST R9 K18 + 0x88280105, // 0027 GETMBR R10 R0 K5 + 0x8C2C0907, // 0028 GETMET R11 R4 K7 + 0x5834000E, // 0029 LDCONST R13 K14 + 0x5838000A, // 002A LDCONST R14 K10 + 0x7C2C0600, // 002B CALL R11 3 + 0x7C1C0800, // 002C CALL R7 4 + 0x58200013, // 002D LDCONST R8 K19 + 0x7C140600, // 002E CALL R5 3 + 0x8C14050C, // 002F GETMET R5 R2 K12 + 0x881C0105, // 0030 GETMBR R7 R0 K5 + 0x8C200907, // 0031 GETMET R8 R4 K7 + 0x5828000E, // 0032 LDCONST R10 K14 + 0x582C000A, // 0033 LDCONST R11 K10 + 0x7C200600, // 0034 CALL R8 3 + 0x7C140600, // 0035 CALL R5 3 + 0x7002002F, // 0036 JMP #0067 + 0xB8120600, // 0037 GETNGBL R4 K3 + 0x8C100914, // 0038 GETMET R4 R4 K20 + 0x7C100200, // 0039 CALL R4 1 + 0x8C140706, // 003A GETMET R5 R3 K6 + 0x8C1C0907, // 003B GETMET R7 R4 K7 + 0x58240008, // 003C LDCONST R9 K8 + 0x7C1C0400, // 003D CALL R7 2 + 0x58200009, // 003E LDCONST R8 K9 + 0x5824000A, // 003F LDCONST R9 K10 + 0x7C140800, // 0040 CALL R5 4 + 0x90022A05, // 0041 SETMBR R0 K21 R5 + 0x8814010B, // 0042 GETMBR R5 R0 K11 + 0x7416000F, // 0043 JMPT R5 #0054 + 0x8C14050C, // 0044 GETMET R5 R2 K12 + 0x881C0115, // 0045 GETMBR R7 R0 K21 + 0x8C200907, // 0046 GETMET R8 R4 K7 + 0x5828000D, // 0047 LDCONST R10 K13 + 0x582C000A, // 0048 LDCONST R11 K10 + 0x7C200600, // 0049 CALL R8 3 + 0x8C240907, // 004A GETMET R9 R4 K7 + 0x582C000E, // 004B LDCONST R11 K14 + 0x5830000A, // 004C LDCONST R12 K10 + 0x7C240600, // 004D CALL R9 3 + 0x8C280907, // 004E GETMET R10 R4 K7 + 0x5830000F, // 004F LDCONST R12 K15 + 0x5834000A, // 0050 LDCONST R13 K10 + 0x7C280600, // 0051 CALL R10 3 + 0x7C140A00, // 0052 CALL R5 5 + 0x70020012, // 0053 JMP #0067 + 0xB8160600, // 0054 GETNGBL R5 K3 + 0x8C140B10, // 0055 GETMET R5 R5 K16 + 0x8C1C0711, // 0056 GETMET R7 R3 K17 + 0x58240012, // 0057 LDCONST R9 K18 + 0x88280105, // 0058 GETMBR R10 R0 K5 + 0x8C2C0907, // 0059 GETMET R11 R4 K7 + 0x5834000E, // 005A LDCONST R13 K14 + 0x5838000A, // 005B LDCONST R14 K10 + 0x7C2C0600, // 005C CALL R11 3 + 0x7C1C0800, // 005D CALL R7 4 + 0x58200013, // 005E LDCONST R8 K19 + 0x7C140600, // 005F CALL R5 3 + 0x8C14050C, // 0060 GETMET R5 R2 K12 + 0x881C0115, // 0061 GETMBR R7 R0 K21 + 0x8C200907, // 0062 GETMET R8 R4 K7 + 0x5828000E, // 0063 LDCONST R10 K14 + 0x582C000A, // 0064 LDCONST R11 K10 + 0x7C200600, // 0065 CALL R8 3 + 0x7C140600, // 0066 CALL R5 3 + 0xB8120600, // 0067 GETNGBL R4 K3 + 0x8C100910, // 0068 GETMET R4 R4 K16 + 0x8C180711, // 0069 GETMET R6 R3 K17 + 0x58200016, // 006A LDCONST R8 K22 + 0x78060001, // 006B JMPF R1 #006E + 0x58240004, // 006C LDCONST R9 K4 + 0x70020000, // 006D JMP #006F + 0x58240014, // 006E LDCONST R9 K20 + 0x78060001, // 006F JMPF R1 #0072 + 0x88280105, // 0070 GETMBR R10 R0 K5 + 0x70020000, // 0071 JMP #0073 + 0x88280115, // 0072 GETMBR R10 R0 K21 + 0x7C180800, // 0073 CALL R6 4 + 0x581C0013, // 0074 LDCONST R7 K19 + 0x7C100600, // 0075 CALL R4 3 + 0xA8040001, // 0076 EXBLK 1 1 + 0x70020010, // 0077 JMP #0089 + 0xAC100002, // 0078 CATCH R4 0 2 + 0x7002000D, // 0079 JMP #0088 + 0xB81A0600, // 007A GETNGBL R6 K3 + 0x8C180D10, // 007B GETMET R6 R6 K16 + 0x60200008, // 007C GETGBL R8 G8 + 0x5C240800, // 007D MOVE R9 R4 + 0x7C200200, // 007E CALL R8 1 + 0x00222E08, // 007F ADD R8 K23 R8 + 0x00201118, // 0080 ADD R8 R8 K24 + 0x60240008, // 0081 GETGBL R9 G8 + 0x5C280A00, // 0082 MOVE R10 R5 + 0x7C240200, // 0083 CALL R9 1 + 0x00201009, // 0084 ADD R8 R8 R9 + 0x58240019, // 0085 LDCONST R9 K25 + 0x7C180600, // 0086 CALL R6 3 + 0x70020000, // 0087 JMP #0089 + 0xB0080000, // 0088 RAISE 2 R0 R0 + 0x8C10011A, // 0089 GETMET R4 R0 K26 + 0x7C100200, // 008A CALL R4 1 + 0x80000000, // 008B RET 0 }) ) ); @@ -639,1499 +257,6 @@ be_local_closure(Matter_Device_save_before_restart, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Device_invoke_request, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* 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_const_int(0), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_nested_str_weak(invoke_request), - /* K4 */ be_const_int(1), - /* K5 */ be_nested_str_weak(status), - /* K6 */ be_nested_str_weak(matter), - /* K7 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58100000, // 0000 LDCONST R4 K0 - 0x88140701, // 0001 GETMBR R5 R3 K1 - 0x6018000C, // 0002 GETGBL R6 G12 - 0x881C0102, // 0003 GETMBR R7 R0 K2 - 0x7C180200, // 0004 CALL R6 1 - 0x14180806, // 0005 LT R6 R4 R6 - 0x781A000C, // 0006 JMPF R6 #0014 - 0x88180102, // 0007 GETMBR R6 R0 K2 - 0x94180C04, // 0008 GETIDX R6 R6 R4 - 0x881C0D01, // 0009 GETMBR R7 R6 K1 - 0x1C1C0E05, // 000A EQ R7 R7 R5 - 0x781E0005, // 000B JMPF R7 #0012 - 0x8C1C0D03, // 000C GETMET R7 R6 K3 - 0x5C240200, // 000D MOVE R9 R1 - 0x5C280400, // 000E MOVE R10 R2 - 0x5C2C0600, // 000F MOVE R11 R3 - 0x7C1C0800, // 0010 CALL R7 4 - 0x80040E00, // 0011 RET 1 R7 - 0x00100904, // 0012 ADD R4 R4 K4 - 0x7001FFED, // 0013 JMP #0002 - 0xB81A0C00, // 0014 GETNGBL R6 K6 - 0x88180D07, // 0015 GETMBR R6 R6 K7 - 0x900E0A06, // 0016 SETMBR R3 K5 R6 - 0x80000000, // 0017 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _instantiate_plugins_from_config -********************************************************************/ -be_local_closure(Matter_Device__instantiate_plugins_from_config, /* name */ - be_nested_proto( - 19, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[34]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(k2l_num), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(log), - /* K4 */ be_nested_str_weak(MTR_X3A_X20endpoints_X20to_X20be_X20configured_X20), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(plugins), - /* K7 */ be_nested_str_weak(push), - /* K8 */ be_nested_str_weak(matter), - /* K9 */ be_nested_str_weak(Plugin_Root), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(format), - /* K12 */ be_nested_str_weak(MTR_X3A_X20endpoint_X3A_X25i_X20type_X3A_X25s_X25s), - /* K13 */ be_nested_str_weak(root), - /* K14 */ be_nested_str_weak(), - /* K15 */ be_const_int(2), - /* K16 */ be_nested_str_weak(Plugin_Aggregator), - /* K17 */ be_nested_str_weak(aggregator), - /* K18 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25i_X20config_X20_X25s), - /* K19 */ be_nested_str_weak(find), - /* K20 */ be_nested_str_weak(type), - /* K21 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping), - /* K22 */ be_nested_str_weak(MTR_X3A_X20only_X20one_X20root_X20node_X20allowed), - /* K23 */ be_nested_str_weak(plugins_classes), - /* K24 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), - /* K25 */ be_nested_str_weak(_X27_X20skipping), - /* K26 */ be_nested_str_weak(k2l), - /* K27 */ be_nested_str_weak(_X20_X25s_X3A_X25s), - /* K28 */ be_nested_str_weak(stop_iteration), - /* K29 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K30 */ be_nested_str_weak(_X7C), - /* K31 */ be_nested_str_weak(publish_result), - /* K32 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D), - /* K33 */ be_nested_str_weak(Matter), - }), - be_str_weak(_instantiate_plugins_from_config), - &be_const_str_solidified, - ( &(const binstruction[185]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0101, // 0001 GETMET R3 R0 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0xB8120400, // 0004 GETNGBL R4 K2 - 0x8C100903, // 0005 GETMET R4 R4 K3 - 0x60180008, // 0006 GETGBL R6 G8 - 0x5C1C0600, // 0007 MOVE R7 R3 - 0x7C180200, // 0008 CALL R6 1 - 0x001A0806, // 0009 ADD R6 K4 R6 - 0x581C0005, // 000A LDCONST R7 K5 - 0x7C100600, // 000B CALL R4 3 - 0x88100106, // 000C GETMBR R4 R0 K6 - 0x8C100907, // 000D GETMET R4 R4 K7 - 0xB81A1000, // 000E GETNGBL R6 K8 - 0x8C180D09, // 000F GETMET R6 R6 K9 - 0x5C200000, // 0010 MOVE R8 R0 - 0x5824000A, // 0011 LDCONST R9 K10 - 0x60280013, // 0012 GETGBL R10 G19 - 0x7C280000, // 0013 CALL R10 0 - 0x7C180800, // 0014 CALL R6 4 - 0x7C100400, // 0015 CALL R4 2 - 0xB8120400, // 0016 GETNGBL R4 K2 - 0x8C100903, // 0017 GETMET R4 R4 K3 - 0x8C18050B, // 0018 GETMET R6 R2 K11 - 0x5820000C, // 0019 LDCONST R8 K12 - 0x5824000A, // 001A LDCONST R9 K10 - 0x5828000D, // 001B LDCONST R10 K13 - 0x582C000E, // 001C LDCONST R11 K14 - 0x7C180A00, // 001D CALL R6 5 - 0x581C000F, // 001E LDCONST R7 K15 - 0x7C100600, // 001F CALL R4 3 - 0x88100106, // 0020 GETMBR R4 R0 K6 - 0x8C100907, // 0021 GETMET R4 R4 K7 - 0xB81A1000, // 0022 GETNGBL R6 K8 - 0x8C180D10, // 0023 GETMET R6 R6 K16 - 0x5C200000, // 0024 MOVE R8 R0 - 0x5426FEFF, // 0025 LDINT R9 65280 - 0x60280013, // 0026 GETGBL R10 G19 - 0x7C280000, // 0027 CALL R10 0 - 0x7C180800, // 0028 CALL R6 4 - 0x7C100400, // 0029 CALL R4 2 - 0xB8120400, // 002A GETNGBL R4 K2 - 0x8C100903, // 002B GETMET R4 R4 K3 - 0x8C18050B, // 002C GETMET R6 R2 K11 - 0x5820000C, // 002D LDCONST R8 K12 - 0x5426FEFF, // 002E LDINT R9 65280 - 0x58280011, // 002F LDCONST R10 K17 - 0x582C000E, // 0030 LDCONST R11 K14 - 0x7C180A00, // 0031 CALL R6 5 - 0x581C000F, // 0032 LDCONST R7 K15 - 0x7C100600, // 0033 CALL R4 3 - 0x60100010, // 0034 GETGBL R4 G16 - 0x5C140600, // 0035 MOVE R5 R3 - 0x7C100200, // 0036 CALL R4 1 - 0xA8020077, // 0037 EXBLK 0 #00B0 - 0x5C140800, // 0038 MOVE R5 R4 - 0x7C140000, // 0039 CALL R5 0 - 0x1C180B0A, // 003A EQ R6 R5 K10 - 0x781A0000, // 003B JMPF R6 #003D - 0x7001FFFA, // 003C JMP #0038 - 0xA802005F, // 003D EXBLK 0 #009E - 0x60180008, // 003E GETGBL R6 G8 - 0x5C1C0A00, // 003F MOVE R7 R5 - 0x7C180200, // 0040 CALL R6 1 - 0x94180206, // 0041 GETIDX R6 R1 R6 - 0xB81E0400, // 0042 GETNGBL R7 K2 - 0x8C1C0F03, // 0043 GETMET R7 R7 K3 - 0x8C24050B, // 0044 GETMET R9 R2 K11 - 0x582C0012, // 0045 LDCONST R11 K18 - 0x5C300A00, // 0046 MOVE R12 R5 - 0x5C340C00, // 0047 MOVE R13 R6 - 0x7C240800, // 0048 CALL R9 4 - 0x58280005, // 0049 LDCONST R10 K5 - 0x7C1C0600, // 004A CALL R7 3 - 0x8C1C0D13, // 004B GETMET R7 R6 K19 - 0x58240014, // 004C LDCONST R9 K20 - 0x7C1C0400, // 004D CALL R7 2 - 0x4C200000, // 004E LDNIL R8 - 0x1C200E08, // 004F EQ R8 R7 R8 - 0x78220006, // 0050 JMPF R8 #0058 - 0xB8220400, // 0051 GETNGBL R8 K2 - 0x8C201103, // 0052 GETMET R8 R8 K3 - 0x58280015, // 0053 LDCONST R10 K21 - 0x582C0005, // 0054 LDCONST R11 K5 - 0x7C200600, // 0055 CALL R8 3 - 0xA8040001, // 0056 EXBLK 1 1 - 0x7001FFDF, // 0057 JMP #0038 - 0x1C200F0D, // 0058 EQ R8 R7 K13 - 0x78220006, // 0059 JMPF R8 #0061 - 0xB8220400, // 005A GETNGBL R8 K2 - 0x8C201103, // 005B GETMET R8 R8 K3 - 0x58280016, // 005C LDCONST R10 K22 - 0x582C0005, // 005D LDCONST R11 K5 - 0x7C200600, // 005E CALL R8 3 - 0xA8040001, // 005F EXBLK 1 1 - 0x7001FFD6, // 0060 JMP #0038 - 0x88200117, // 0061 GETMBR R8 R0 K23 - 0x8C201113, // 0062 GETMET R8 R8 K19 - 0x5C280E00, // 0063 MOVE R10 R7 - 0x7C200400, // 0064 CALL R8 2 - 0x4C240000, // 0065 LDNIL R9 - 0x1C241009, // 0066 EQ R9 R8 R9 - 0x7826000A, // 0067 JMPF R9 #0073 - 0xB8260400, // 0068 GETNGBL R9 K2 - 0x8C241303, // 0069 GETMET R9 R9 K3 - 0x602C0008, // 006A GETGBL R11 G8 - 0x5C300E00, // 006B MOVE R12 R7 - 0x7C2C0200, // 006C CALL R11 1 - 0x002E300B, // 006D ADD R11 K24 R11 - 0x002C1719, // 006E ADD R11 R11 K25 - 0x5830000F, // 006F LDCONST R12 K15 - 0x7C240600, // 0070 CALL R9 3 - 0xA8040001, // 0071 EXBLK 1 1 - 0x7001FFC4, // 0072 JMP #0038 - 0x5C241000, // 0073 MOVE R9 R8 - 0x5C280000, // 0074 MOVE R10 R0 - 0x5C2C0A00, // 0075 MOVE R11 R5 - 0x5C300C00, // 0076 MOVE R12 R6 - 0x7C240600, // 0077 CALL R9 3 - 0x88280106, // 0078 GETMBR R10 R0 K6 - 0x8C281507, // 0079 GETMET R10 R10 K7 - 0x5C301200, // 007A MOVE R12 R9 - 0x7C280400, // 007B CALL R10 2 - 0x5828000E, // 007C LDCONST R10 K14 - 0x602C0010, // 007D GETGBL R11 G16 - 0x8C30011A, // 007E GETMET R12 R0 K26 - 0x5C380C00, // 007F MOVE R14 R6 - 0x7C300400, // 0080 CALL R12 2 - 0x7C2C0200, // 0081 CALL R11 1 - 0xA802000B, // 0082 EXBLK 0 #008F - 0x5C301600, // 0083 MOVE R12 R11 - 0x7C300000, // 0084 CALL R12 0 - 0x1C341914, // 0085 EQ R13 R12 K20 - 0x78360000, // 0086 JMPF R13 #0088 - 0x7001FFFA, // 0087 JMP #0083 - 0x8C34050B, // 0088 GETMET R13 R2 K11 - 0x583C001B, // 0089 LDCONST R15 K27 - 0x5C401800, // 008A MOVE R16 R12 - 0x94440C0C, // 008B GETIDX R17 R6 R12 - 0x7C340800, // 008C CALL R13 4 - 0x0028140D, // 008D ADD R10 R10 R13 - 0x7001FFF3, // 008E JMP #0083 - 0x582C001C, // 008F LDCONST R11 K28 - 0xAC2C0200, // 0090 CATCH R11 1 0 - 0xB0080000, // 0091 RAISE 2 R0 R0 - 0xB82E0400, // 0092 GETNGBL R11 K2 - 0x8C2C1703, // 0093 GETMET R11 R11 K3 - 0x8C34050B, // 0094 GETMET R13 R2 K11 - 0x583C000C, // 0095 LDCONST R15 K12 - 0x5C400A00, // 0096 MOVE R16 R5 - 0x5C440E00, // 0097 MOVE R17 R7 - 0x5C481400, // 0098 MOVE R18 R10 - 0x7C340A00, // 0099 CALL R13 5 - 0x5838000F, // 009A LDCONST R14 K15 - 0x7C2C0600, // 009B CALL R11 3 - 0xA8040001, // 009C EXBLK 1 1 - 0x70020010, // 009D JMP #00AF - 0xAC180002, // 009E CATCH R6 0 2 - 0x7002000D, // 009F JMP #00AE - 0xB8220400, // 00A0 GETNGBL R8 K2 - 0x8C201103, // 00A1 GETMET R8 R8 K3 - 0x60280008, // 00A2 GETGBL R10 G8 - 0x5C2C0C00, // 00A3 MOVE R11 R6 - 0x7C280200, // 00A4 CALL R10 1 - 0x002A3A0A, // 00A5 ADD R10 K29 R10 - 0x0028151E, // 00A6 ADD R10 R10 K30 - 0x602C0008, // 00A7 GETGBL R11 G8 - 0x5C300E00, // 00A8 MOVE R12 R7 - 0x7C2C0200, // 00A9 CALL R11 1 - 0x0028140B, // 00AA ADD R10 R10 R11 - 0x582C000F, // 00AB LDCONST R11 K15 - 0x7C200600, // 00AC CALL R8 3 - 0x70020000, // 00AD JMP #00AF - 0xB0080000, // 00AE RAISE 2 R0 R0 - 0x7001FF87, // 00AF JMP #0038 - 0x5810001C, // 00B0 LDCONST R4 K28 - 0xAC100200, // 00B1 CATCH R4 1 0 - 0xB0080000, // 00B2 RAISE 2 R0 R0 - 0xB8120400, // 00B3 GETNGBL R4 K2 - 0x8C10091F, // 00B4 GETMET R4 R4 K31 - 0x58180020, // 00B5 LDCONST R6 K32 - 0x581C0021, // 00B6 LDCONST R7 K33 - 0x7C100600, // 00B7 CALL R4 3 - 0x80000000, // 00B8 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_commissioning_complete -********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(log), - /* K2 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20Commissioning_X20complete_X20_X2A_X2A_X2A), - /* K3 */ be_const_int(2), - /* K4 */ be_nested_str_weak(stop_basic_commissioning), - }), - be_str_weak(start_commissioning_complete), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C080600, // 0004 CALL R2 3 - 0x8C080104, // 0005 GETMET R2 R0 K4 - 0x7C080200, // 0006 CALL R2 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: k2l -********************************************************************/ -be_local_closure(Matter_Device_k2l, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 4, /* 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_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(1), - /* K5 */ be_const_int(0), - }), - be_str_weak(k2l), - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0003, // 0004 EQ R3 R0 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x80040400, // 0006 RET 1 R2 - 0x600C0010, // 0007 GETGBL R3 G16 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x7C0C0200, // 000A CALL R3 1 - 0xA8020005, // 000B EXBLK 0 #0012 - 0x5C100600, // 000C MOVE R4 R3 - 0x7C100000, // 000D CALL R4 0 - 0x8C140502, // 000E GETMET R5 R2 K2 - 0x5C1C0800, // 000F MOVE R7 R4 - 0x7C140400, // 0010 CALL R5 2 - 0x7001FFF9, // 0011 JMP #000C - 0x580C0003, // 0012 LDCONST R3 K3 - 0xAC0C0200, // 0013 CATCH R3 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x600C0010, // 0015 GETGBL R3 G16 - 0x6010000C, // 0016 GETGBL R4 G12 - 0x5C140400, // 0017 MOVE R5 R2 - 0x7C100200, // 0018 CALL R4 1 - 0x04100904, // 0019 SUB R4 R4 K4 - 0x40120804, // 001A CONNECT R4 K4 R4 - 0x7C0C0200, // 001B CALL R3 1 - 0xA8020010, // 001C EXBLK 0 #002E - 0x5C100600, // 001D MOVE R4 R3 - 0x7C100000, // 001E CALL R4 0 - 0x94140404, // 001F GETIDX R5 R2 R4 - 0x5C180800, // 0020 MOVE R6 R4 - 0x241C0D05, // 0021 GT R7 R6 K5 - 0x781E0008, // 0022 JMPF R7 #002C - 0x041C0D04, // 0023 SUB R7 R6 K4 - 0x941C0407, // 0024 GETIDX R7 R2 R7 - 0x241C0E05, // 0025 GT R7 R7 R5 - 0x781E0004, // 0026 JMPF R7 #002C - 0x041C0D04, // 0027 SUB R7 R6 K4 - 0x941C0407, // 0028 GETIDX R7 R2 R7 - 0x98080C07, // 0029 SETIDX R2 R6 R7 - 0x04180D04, // 002A SUB R6 R6 K4 - 0x7001FFF4, // 002B JMP #0021 - 0x98080C05, // 002C SETIDX R2 R6 R5 - 0x7001FFEE, // 002D JMP #001D - 0x580C0003, // 002E LDCONST R3 K3 - 0xAC0C0200, // 002F CATCH R3 1 0 - 0xB0080000, // 0030 RAISE 2 R0 R0 - 0x80040400, // 0031 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_operational_discovery_deferred -********************************************************************/ -be_local_closure(Matter_Device_start_operational_discovery_deferred, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ - be_local_const_upval(1, 0), - be_local_const_upval(1, 1), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_operational_discovery), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), - }), - be_str_weak(start_operational_discovery_deferred), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_qrcode_content -********************************************************************/ -be_local_closure(Matter_Device_compute_qrcode_content, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(resize), - /* K1 */ be_nested_str_weak(setbits), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(vendorid), - /* K4 */ be_nested_str_weak(productid), - /* K5 */ be_nested_str_weak(root_discriminator), - /* K6 */ be_nested_str_weak(root_passcode), - /* K7 */ be_const_int(134217727), - /* K8 */ be_nested_str_weak(MT_X3A), - /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(Base38), - /* K11 */ be_nested_str_weak(encode), - }), - be_str_weak(compute_qrcode_content), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0x60040015, // 0000 GETGBL R1 G21 - 0x7C040000, // 0001 CALL R1 0 - 0x8C040300, // 0002 GETMET R1 R1 K0 - 0x540E000A, // 0003 LDINT R3 11 - 0x7C040400, // 0004 CALL R1 2 - 0x8C080301, // 0005 GETMET R2 R1 K1 - 0x58100002, // 0006 LDCONST R4 K2 - 0x5416000F, // 0007 LDINT R5 16 - 0x88180103, // 0008 GETMBR R6 R0 K3 - 0x7C080800, // 0009 CALL R2 4 - 0x8C080301, // 000A GETMET R2 R1 K1 - 0x54120012, // 000B LDINT R4 19 - 0x5416000F, // 000C LDINT R5 16 - 0x88180104, // 000D GETMBR R6 R0 K4 - 0x7C080800, // 000E CALL R2 4 - 0x8C080301, // 000F GETMET R2 R1 K1 - 0x54120024, // 0010 LDINT R4 37 - 0x54160007, // 0011 LDINT R5 8 - 0x541A0003, // 0012 LDINT R6 4 - 0x7C080800, // 0013 CALL R2 4 - 0x8C080301, // 0014 GETMET R2 R1 K1 - 0x5412002C, // 0015 LDINT R4 45 - 0x5416000B, // 0016 LDINT R5 12 - 0x88180105, // 0017 GETMBR R6 R0 K5 - 0x541E0FFE, // 0018 LDINT R7 4095 - 0x2C180C07, // 0019 AND R6 R6 R7 - 0x7C080800, // 001A CALL R2 4 - 0x8C080301, // 001B GETMET R2 R1 K1 - 0x54120038, // 001C LDINT R4 57 - 0x5416001A, // 001D LDINT R5 27 - 0x88180106, // 001E GETMBR R6 R0 K6 - 0x2C180D07, // 001F AND R6 R6 K7 - 0x7C080800, // 0020 CALL R2 4 - 0xB80A1200, // 0021 GETNGBL R2 K9 - 0x8808050A, // 0022 GETMBR R2 R2 K10 - 0x8C08050B, // 0023 GETMET R2 R2 K11 - 0x5C100200, // 0024 MOVE R4 R1 - 0x7C080400, // 0025 CALL R2 2 - 0x000A1002, // 0026 ADD R2 K8 R2 - 0x80040400, // 0027 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: sort_distinct -********************************************************************/ -be_local_closure(Matter_Device_sort_distinct, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_const_int(1), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_nested_str_weak(remove), - }), - be_str_weak(sort_distinct), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080010, // 0001 GETGBL R2 G16 - 0x600C000C, // 0002 GETGBL R3 G12 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x040C0701, // 0005 SUB R3 R3 K1 - 0x400E0203, // 0006 CONNECT R3 K1 R3 - 0x7C080200, // 0007 CALL R2 1 - 0xA8020010, // 0008 EXBLK 0 #001A - 0x5C0C0400, // 0009 MOVE R3 R2 - 0x7C0C0000, // 000A CALL R3 0 - 0x94100003, // 000B GETIDX R4 R0 R3 - 0x5C140600, // 000C MOVE R5 R3 - 0x24180B02, // 000D GT R6 R5 K2 - 0x781A0008, // 000E JMPF R6 #0018 - 0x04180B01, // 000F SUB R6 R5 K1 - 0x94180006, // 0010 GETIDX R6 R0 R6 - 0x24180C04, // 0011 GT R6 R6 R4 - 0x781A0004, // 0012 JMPF R6 #0018 - 0x04180B01, // 0013 SUB R6 R5 K1 - 0x94180006, // 0014 GETIDX R6 R0 R6 - 0x98000A06, // 0015 SETIDX R0 R5 R6 - 0x04140B01, // 0016 SUB R5 R5 K1 - 0x7001FFF4, // 0017 JMP #000D - 0x98000A04, // 0018 SETIDX R0 R5 R4 - 0x7001FFEE, // 0019 JMP #0009 - 0x58080003, // 001A LDCONST R2 K3 - 0xAC080200, // 001B CATCH R2 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x58080001, // 001D LDCONST R2 K1 - 0x600C000C, // 001E GETGBL R3 G12 - 0x5C100000, // 001F MOVE R4 R0 - 0x7C0C0200, // 0020 CALL R3 1 - 0x180C0701, // 0021 LE R3 R3 K1 - 0x780E0000, // 0022 JMPF R3 #0024 - 0x80040000, // 0023 RET 1 R0 - 0x940C0102, // 0024 GETIDX R3 R0 K2 - 0x6010000C, // 0025 GETGBL R4 G12 - 0x5C140000, // 0026 MOVE R5 R0 - 0x7C100200, // 0027 CALL R4 1 - 0x14100404, // 0028 LT R4 R2 R4 - 0x78120009, // 0029 JMPF R4 #0034 - 0x94100002, // 002A GETIDX R4 R0 R2 - 0x1C100803, // 002B EQ R4 R4 R3 - 0x78120003, // 002C JMPF R4 #0031 - 0x8C100104, // 002D GETMET R4 R0 K4 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x70020001, // 0030 JMP #0033 - 0x940C0002, // 0031 GETIDX R3 R0 R2 - 0x00080501, // 0032 ADD R2 R2 K1 - 0x7001FFF0, // 0033 JMP #0025 - 0x80040000, // 0034 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: register_http_remote -********************************************************************/ -be_local_closure(Matter_Device_register_http_remote, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(http_remotes), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(get_timeout), - /* K3 */ be_nested_str_weak(set_timeout), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(HTTP_remote), - }), - be_str_weak(register_http_remote), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x1C0C0604, // 0002 EQ R3 R3 R4 - 0x780E0002, // 0003 JMPF R3 #0007 - 0x600C0013, // 0004 GETGBL R3 G19 - 0x7C0C0000, // 0005 CALL R3 0 - 0x90020003, // 0006 SETMBR R0 K0 R3 - 0x4C0C0000, // 0007 LDNIL R3 - 0x88100100, // 0008 GETMBR R4 R0 K0 - 0x8C100901, // 0009 GETMET R4 R4 K1 - 0x5C180200, // 000A MOVE R6 R1 - 0x7C100400, // 000B CALL R4 2 - 0x78120009, // 000C JMPF R4 #0017 - 0x88100100, // 000D GETMBR R4 R0 K0 - 0x940C0801, // 000E GETIDX R3 R4 R1 - 0x8C140702, // 000F GETMET R5 R3 K2 - 0x7C140200, // 0010 CALL R5 1 - 0x14140405, // 0011 LT R5 R2 R5 - 0x78160002, // 0012 JMPF R5 #0016 - 0x8C140703, // 0013 GETMET R5 R3 K3 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x7C140400, // 0015 CALL R5 2 - 0x70020007, // 0016 JMP #001F - 0xB8120800, // 0017 GETNGBL R4 K4 - 0x8C100905, // 0018 GETMET R4 R4 K5 - 0x5C180200, // 0019 MOVE R6 R1 - 0x5C1C0400, // 001A MOVE R7 R2 - 0x7C100600, // 001B CALL R4 3 - 0x5C0C0800, // 001C MOVE R3 R4 - 0x88100100, // 001D GETMBR R4 R0 K0 - 0x98100203, // 001E SETIDX R4 R1 R3 - 0x80040600, // 001F RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: register_plugin_class -********************************************************************/ -be_local_closure(Matter_Device_register_plugin_class, /* 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(introspect), - /* K1 */ be_nested_str_weak(get), - /* K2 */ be_nested_str_weak(TYPE), - /* K3 */ be_nested_str_weak(plugins_classes), - }), - be_str_weak(register_plugin_class), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0501, // 0001 GETMET R3 R2 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x58180002, // 0003 LDCONST R6 K2 - 0x7C0C0600, // 0004 CALL R3 3 - 0x780E0001, // 0005 JMPF R3 #0008 - 0x88100103, // 0006 GETMBR R4 R0 K3 - 0x98100601, // 0007 SETIDX R4 R3 R1 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: clean_remotes -********************************************************************/ -be_local_closure(Matter_Device_clean_remotes, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(introspect), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(http_remotes), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str_weak(stop_iteration), - /* K5 */ be_nested_str_weak(plugins), - /* K6 */ be_nested_str_weak(get), - /* K7 */ be_nested_str_weak(http_remote), - /* K8 */ be_nested_str_weak(find), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(tasmota), - /* K11 */ be_nested_str_weak(log), - /* K12 */ be_nested_str_weak(MTR_X3A_X20remotes_X20references_X3A_X20), - /* K13 */ be_nested_str_weak(keys), - /* K14 */ be_nested_str_weak(MTR_X3A_X20remove_X20unused_X20remote_X3A_X20), - /* K15 */ be_nested_str_weak(addr), - /* K16 */ be_const_int(3), - /* K17 */ be_nested_str_weak(close), - /* K18 */ be_nested_str_weak(remove), - }), - be_str_weak(clean_remotes), - &be_const_str_solidified, - ( &(const binstruction[72]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x600C0013, // 0002 GETGBL R3 G19 - 0x7C0C0000, // 0003 CALL R3 0 - 0x60100010, // 0004 GETGBL R4 G16 - 0x88140102, // 0005 GETMBR R5 R0 K2 - 0x7C100200, // 0006 CALL R4 1 - 0xA8020003, // 0007 EXBLK 0 #000C - 0x5C140800, // 0008 MOVE R5 R4 - 0x7C140000, // 0009 CALL R5 0 - 0x980C0B03, // 000A SETIDX R3 R5 K3 - 0x7001FFFB, // 000B JMP #0008 - 0x58100004, // 000C LDCONST R4 K4 - 0xAC100200, // 000D CATCH R4 1 0 - 0xB0080000, // 000E RAISE 2 R0 R0 - 0x60100010, // 000F GETGBL R4 G16 - 0x88140105, // 0010 GETMBR R5 R0 K5 - 0x7C100200, // 0011 CALL R4 1 - 0xA802000F, // 0012 EXBLK 0 #0023 - 0x5C140800, // 0013 MOVE R5 R4 - 0x7C140000, // 0014 CALL R5 0 - 0x8C180306, // 0015 GETMET R6 R1 K6 - 0x5C200A00, // 0016 MOVE R8 R5 - 0x58240007, // 0017 LDCONST R9 K7 - 0x7C180600, // 0018 CALL R6 3 - 0x4C1C0000, // 0019 LDNIL R7 - 0x201C0C07, // 001A NE R7 R6 R7 - 0x781E0005, // 001B JMPF R7 #0022 - 0x8C1C0708, // 001C GETMET R7 R3 K8 - 0x5C240C00, // 001D MOVE R9 R6 - 0x58280003, // 001E LDCONST R10 K3 - 0x7C1C0600, // 001F CALL R7 3 - 0x001C0F09, // 0020 ADD R7 R7 K9 - 0x980C0C07, // 0021 SETIDX R3 R6 R7 - 0x7001FFEF, // 0022 JMP #0013 - 0x58100004, // 0023 LDCONST R4 K4 - 0xAC100200, // 0024 CATCH R4 1 0 - 0xB0080000, // 0025 RAISE 2 R0 R0 - 0xB8121400, // 0026 GETNGBL R4 K10 - 0x8C10090B, // 0027 GETMET R4 R4 K11 - 0x60180008, // 0028 GETGBL R6 G8 - 0x5C1C0600, // 0029 MOVE R7 R3 - 0x7C180200, // 002A CALL R6 1 - 0x001A1806, // 002B ADD R6 K12 R6 - 0x7C100400, // 002C CALL R4 2 - 0x60100010, // 002D GETGBL R4 G16 - 0x8C14070D, // 002E GETMET R5 R3 K13 - 0x7C140200, // 002F CALL R5 1 - 0x7C100200, // 0030 CALL R4 1 - 0xA8020011, // 0031 EXBLK 0 #0044 - 0x5C140800, // 0032 MOVE R5 R4 - 0x7C140000, // 0033 CALL R5 0 - 0x94180605, // 0034 GETIDX R6 R3 R5 - 0x1C180D03, // 0035 EQ R6 R6 K3 - 0x781A000B, // 0036 JMPF R6 #0043 - 0xB81A1400, // 0037 GETNGBL R6 K10 - 0x8C180D0B, // 0038 GETMET R6 R6 K11 - 0x88200B0F, // 0039 GETMBR R8 R5 K15 - 0x00221C08, // 003A ADD R8 K14 R8 - 0x58240010, // 003B LDCONST R9 K16 - 0x7C180600, // 003C CALL R6 3 - 0x8C180B11, // 003D GETMET R6 R5 K17 - 0x7C180200, // 003E CALL R6 1 - 0x88180102, // 003F GETMBR R6 R0 K2 - 0x8C180D12, // 0040 GETMET R6 R6 K18 - 0x5C200A00, // 0041 MOVE R8 R5 - 0x7C180400, // 0042 CALL R6 2 - 0x7001FFED, // 0043 JMP #0032 - 0x58100004, // 0044 LDCONST R4 K4 - 0xAC100200, // 0045 CATCH R4 1 0 - 0xB0080000, // 0046 RAISE 2 R0 R0 - 0x80000000, // 0047 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_announce_op_discovery_all_fabrics -********************************************************************/ -be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* 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(sessions), - /* K1 */ be_nested_str_weak(active_fabrics), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(mdns_announce_op_discovery), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(mdns_announce_op_discovery_all_fabrics), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: signal_endpoints_changed -********************************************************************/ -be_local_closure(Matter_Device_signal_endpoints_changed, /* 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[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(attribute_updated), - /* K1 */ be_const_int(0), - /* K2 */ be_const_int(3), - }), - be_str_weak(signal_endpoints_changed), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x580C0001, // 0001 LDCONST R3 K1 - 0x5412001C, // 0002 LDINT R4 29 - 0x58140002, // 0003 LDCONST R5 K2 - 0x50180000, // 0004 LDBOOL R6 0 0 - 0x7C040A00, // 0005 CALL R1 5 - 0x8C040100, // 0006 GETMET R1 R0 K0 - 0x540EFEFF, // 0007 LDINT R3 65280 - 0x5412001C, // 0008 LDINT R4 29 - 0x58140002, // 0009 LDCONST R5 K2 - 0x50180000, // 000A LDBOOL R6 0 0 - 0x7C040A00, // 000B CALL R1 5 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_plugin_class_displayname -********************************************************************/ -be_local_closure(Matter_Device_get_plugin_class_displayname, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(NAME), - /* K3 */ be_nested_str_weak(), - }), - be_str_weak(get_plugin_class_displayname), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: generate_random_passcode -********************************************************************/ -be_local_closure(Matter_Device_generate_random_passcode, /* 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[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(random), - /* K2 */ be_nested_str_weak(get), - /* K3 */ be_const_int(0), - /* K4 */ be_const_int(134217727), - /* K5 */ be_const_int(99999998), - /* K6 */ be_nested_str_weak(PASSCODE_INVALID), - /* K7 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(generate_random_passcode), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x500C0200, // 0002 LDBOOL R3 1 0 - 0x780E001D, // 0003 JMPF R3 #0022 - 0x8C0C0301, // 0004 GETMET R3 R1 K1 - 0x54160003, // 0005 LDINT R5 4 - 0x7C0C0400, // 0006 CALL R3 2 - 0x8C0C0702, // 0007 GETMET R3 R3 K2 - 0x58140003, // 0008 LDCONST R5 K3 - 0x541A0003, // 0009 LDINT R6 4 - 0x7C0C0600, // 000A CALL R3 3 - 0x2C0C0704, // 000B AND R3 R3 K4 - 0x5C080600, // 000C MOVE R2 R3 - 0x240C0505, // 000D GT R3 R2 K5 - 0x780E0000, // 000E JMPF R3 #0010 - 0x7001FFF1, // 000F JMP #0002 - 0x600C0010, // 0010 GETGBL R3 G16 - 0x88100106, // 0011 GETMBR R4 R0 K6 - 0x7C0C0200, // 0012 CALL R3 1 - 0xA8020005, // 0013 EXBLK 0 #001A - 0x5C100600, // 0014 MOVE R4 R3 - 0x7C100000, // 0015 CALL R4 0 - 0x1C140404, // 0016 EQ R5 R2 R4 - 0x78160000, // 0017 JMPF R5 #0019 - 0x4C080000, // 0018 LDNIL R2 - 0x7001FFF9, // 0019 JMP #0014 - 0x580C0007, // 001A LDCONST R3 K7 - 0xAC0C0200, // 001B CATCH R3 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x4C0C0000, // 001D LDNIL R3 - 0x200C0403, // 001E NE R3 R2 R3 - 0x780E0000, // 001F JMPF R3 #0021 - 0x80040400, // 0020 RET 1 R2 - 0x7001FFDF, // 0021 JMP #0002 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: MtrJoin -********************************************************************/ -be_local_closure(Matter_Device_MtrJoin, /* 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[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(start_root_basic_commissioning), - /* K1 */ be_nested_str_weak(stop_basic_commissioning), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(resp_cmnd_done), - }), - be_str_weak(MtrJoin), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x60140009, // 0000 GETGBL R5 G9 - 0x5C180600, // 0001 MOVE R6 R3 - 0x7C140200, // 0002 CALL R5 1 - 0x78160002, // 0003 JMPF R5 #0007 - 0x8C180100, // 0004 GETMET R6 R0 K0 - 0x7C180200, // 0005 CALL R6 1 - 0x70020001, // 0006 JMP #0009 - 0x8C180101, // 0007 GETMET R6 R0 K1 - 0x7C180200, // 0008 CALL R6 1 - 0xB81A0400, // 0009 GETNGBL R6 K2 - 0x8C180D03, // 000A GETMET R6 R6 K3 - 0x7C180200, // 000B CALL R6 1 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_fabric -********************************************************************/ -be_local_closure(Matter_Device_remove_fabric, /* 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[12]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(find_children_fabrics), - /* K2 */ be_nested_str_weak(get_fabric_index), - /* K3 */ be_nested_str_weak(find_fabric_by_index), - /* K4 */ be_nested_str_weak(message_handler), - /* K5 */ be_nested_str_weak(im), - /* K6 */ be_nested_str_weak(subs_shop), - /* K7 */ be_nested_str_weak(remove_by_fabric), - /* K8 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K9 */ be_nested_str_weak(remove_fabric), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(save_fabrics), - }), - be_str_weak(remove_fabric), - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x8C100302, // 0002 GETMET R4 R1 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x7C080400, // 0004 CALL R2 2 - 0x4C0C0000, // 0005 LDNIL R3 - 0x1C0C0403, // 0006 EQ R3 R2 R3 - 0x780E0000, // 0007 JMPF R3 #0009 - 0x80000600, // 0008 RET 0 - 0x600C0010, // 0009 GETGBL R3 G16 - 0x5C100400, // 000A MOVE R4 R2 - 0x7C0C0200, // 000B CALL R3 1 - 0xA8020016, // 000C EXBLK 0 #0024 - 0x5C100600, // 000D MOVE R4 R3 - 0x7C100000, // 000E CALL R4 0 - 0x88140100, // 000F GETMBR R5 R0 K0 - 0x8C140B03, // 0010 GETMET R5 R5 K3 - 0x5C1C0800, // 0011 MOVE R7 R4 - 0x7C140400, // 0012 CALL R5 2 - 0x4C180000, // 0013 LDNIL R6 - 0x20180A06, // 0014 NE R6 R5 R6 - 0x781A000C, // 0015 JMPF R6 #0023 - 0x88180104, // 0016 GETMBR R6 R0 K4 - 0x88180D05, // 0017 GETMBR R6 R6 K5 - 0x88180D06, // 0018 GETMBR R6 R6 K6 - 0x8C180D07, // 0019 GETMET R6 R6 K7 - 0x5C200A00, // 001A MOVE R8 R5 - 0x7C180400, // 001B CALL R6 2 - 0x8C180108, // 001C GETMET R6 R0 K8 - 0x5C200A00, // 001D MOVE R8 R5 - 0x7C180400, // 001E CALL R6 2 - 0x88180100, // 001F GETMBR R6 R0 K0 - 0x8C180D09, // 0020 GETMET R6 R6 K9 - 0x5C200A00, // 0021 MOVE R8 R5 - 0x7C180400, // 0022 CALL R6 2 - 0x7001FFE8, // 0023 JMP #000D - 0x580C000A, // 0024 LDCONST R3 K10 - 0xAC0C0200, // 0025 CATCH R3 1 0 - 0xB0080000, // 0026 RAISE 2 R0 R0 - 0x880C0100, // 0027 GETMBR R3 R0 K0 - 0x8C0C070B, // 0028 GETMET R3 R3 K11 - 0x7C0C0200, // 0029 CALL R3 1 - 0x80000000, // 002A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_attribute_expansion -********************************************************************/ -be_local_closure(Matter_Device_process_attribute_expansion, /* name */ - be_nested_proto( - 29, /* nstack */ - 3, /* 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 */ - 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(keys), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(stop_iteration), - /* K3 */ be_const_int(1), - /* K4 */ be_const_int(0), - }), - be_str_weak(keys_sorted), - &be_const_str_solidified, - ( &(const binstruction[45]) { /* code */ - 0x60040012, // 0000 GETGBL R1 G18 - 0x7C040000, // 0001 CALL R1 0 - 0x60080010, // 0002 GETGBL R2 G16 - 0x8C0C0100, // 0003 GETMET R3 R0 K0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x7C080200, // 0005 CALL R2 1 - 0xA8020005, // 0006 EXBLK 0 #000D - 0x5C0C0400, // 0007 MOVE R3 R2 - 0x7C0C0000, // 0008 CALL R3 0 - 0x8C100301, // 0009 GETMET R4 R1 K1 - 0x5C180600, // 000A MOVE R6 R3 - 0x7C100400, // 000B CALL R4 2 - 0x7001FFF9, // 000C JMP #0007 - 0x58080002, // 000D LDCONST R2 K2 - 0xAC080200, // 000E CATCH R2 1 0 - 0xB0080000, // 000F RAISE 2 R0 R0 - 0x60080010, // 0010 GETGBL R2 G16 - 0x600C000C, // 0011 GETGBL R3 G12 - 0x5C100200, // 0012 MOVE R4 R1 - 0x7C0C0200, // 0013 CALL R3 1 - 0x040C0703, // 0014 SUB R3 R3 K3 - 0x400E0603, // 0015 CONNECT R3 K3 R3 - 0x7C080200, // 0016 CALL R2 1 - 0xA8020010, // 0017 EXBLK 0 #0029 - 0x5C0C0400, // 0018 MOVE R3 R2 - 0x7C0C0000, // 0019 CALL R3 0 - 0x94100203, // 001A GETIDX R4 R1 R3 - 0x5C140600, // 001B MOVE R5 R3 - 0x24180B04, // 001C GT R6 R5 K4 - 0x781A0008, // 001D JMPF R6 #0027 - 0x04180B03, // 001E SUB R6 R5 K3 - 0x94180206, // 001F GETIDX R6 R1 R6 - 0x24180C04, // 0020 GT R6 R6 R4 - 0x781A0004, // 0021 JMPF R6 #0027 - 0x04180B03, // 0022 SUB R6 R5 K3 - 0x94180206, // 0023 GETIDX R6 R1 R6 - 0x98040A06, // 0024 SETIDX R1 R5 R6 - 0x04140B03, // 0025 SUB R5 R5 K3 - 0x7001FFF4, // 0026 JMP #001C - 0x98040A04, // 0027 SETIDX R1 R5 R4 - 0x7001FFEE, // 0028 JMP #0018 - 0x58080002, // 0029 LDCONST R2 K2 - 0xAC080200, // 002A CATCH R2 1 0 - 0xB0080000, // 002B RAISE 2 R0 R0 - 0x80040200, // 002C RET 1 R1 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[22]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(attribute), - /* K4 */ be_nested_str_weak(plugins), - /* K5 */ be_nested_str_weak(get_endpoint), - /* K6 */ be_nested_str_weak(contains), - /* K7 */ be_nested_str_weak(get_cluster_list), - /* K8 */ be_nested_str_weak(get_attribute_list), - /* K9 */ be_nested_str_weak(push), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(tasmota), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(MTR_X3A_X20expansion_X20_X5B_X2502X_X5D_X2504X_X2F_X2504X), - /* K15 */ be_const_int(3), - /* K16 */ be_nested_str_weak(status), - /* K17 */ be_nested_str_weak(matter), - /* K18 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - /* K19 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), - /* K20 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - /* K21 */ be_nested_str_weak(UNREPORTABLE_ATTRIBUTE), - }), - be_str_weak(process_attribute_expansion), - &be_const_str_solidified, - ( &(const binstruction[216]) { /* code */ - 0x840C0000, // 0000 CLOSURE R3 P0 - 0xA4120000, // 0001 IMPORT R4 K0 - 0x88140301, // 0002 GETMBR R5 R1 K1 - 0x50180000, // 0003 LDBOOL R6 0 0 - 0x881C0302, // 0004 GETMBR R7 R1 K2 - 0x50200000, // 0005 LDBOOL R8 0 0 - 0x88240303, // 0006 GETMBR R9 R1 K3 - 0x50280000, // 0007 LDBOOL R10 0 0 - 0x882C0301, // 0008 GETMBR R11 R1 K1 - 0x4C300000, // 0009 LDNIL R12 - 0x202C160C, // 000A NE R11 R11 R12 - 0x782E0007, // 000B JMPF R11 #0014 - 0x882C0302, // 000C GETMBR R11 R1 K2 - 0x4C300000, // 000D LDNIL R12 - 0x202C160C, // 000E NE R11 R11 R12 - 0x782E0003, // 000F JMPF R11 #0014 - 0x882C0303, // 0010 GETMBR R11 R1 K3 - 0x4C300000, // 0011 LDNIL R12 - 0x202C160C, // 0012 NE R11 R11 R12 - 0x742E0000, // 0013 JMPT R11 #0015 - 0x502C0001, // 0014 LDBOOL R11 0 1 - 0x502C0200, // 0015 LDBOOL R11 1 0 - 0x60300013, // 0016 GETGBL R12 G19 - 0x7C300000, // 0017 CALL R12 0 - 0x60340010, // 0018 GETGBL R13 G16 - 0x88380104, // 0019 GETMBR R14 R0 K4 - 0x7C340200, // 001A CALL R13 1 - 0xA8020055, // 001B EXBLK 0 #0072 - 0x5C381A00, // 001C MOVE R14 R13 - 0x7C380000, // 001D CALL R14 0 - 0x8C3C1D05, // 001E GETMET R15 R14 K5 - 0x7C3C0200, // 001F CALL R15 1 - 0x4C400000, // 0020 LDNIL R16 - 0x20400A10, // 0021 NE R16 R5 R16 - 0x78420002, // 0022 JMPF R16 #0026 - 0x20401E05, // 0023 NE R16 R15 R5 - 0x78420000, // 0024 JMPF R16 #0026 - 0x7001FFF5, // 0025 JMP #001C - 0x8C401906, // 0026 GETMET R16 R12 K6 - 0x5C481E00, // 0027 MOVE R18 R15 - 0x7C400400, // 0028 CALL R16 2 - 0x74420002, // 0029 JMPT R16 #002D - 0x60400013, // 002A GETGBL R16 G19 - 0x7C400000, // 002B CALL R16 0 - 0x98301E10, // 002C SETIDX R12 R15 R16 - 0x50180200, // 002D LDBOOL R6 1 0 - 0x8C401D07, // 002E GETMET R16 R14 K7 - 0x5C481E00, // 002F MOVE R18 R15 - 0x7C400400, // 0030 CALL R16 2 - 0x60440010, // 0031 GETGBL R17 G16 - 0x5C482000, // 0032 MOVE R18 R16 - 0x7C440200, // 0033 CALL R17 1 - 0xA8020038, // 0034 EXBLK 0 #006E - 0x5C482200, // 0035 MOVE R18 R17 - 0x7C480000, // 0036 CALL R18 0 - 0x4C4C0000, // 0037 LDNIL R19 - 0x204C0E13, // 0038 NE R19 R7 R19 - 0x784E0002, // 0039 JMPF R19 #003D - 0x204C2407, // 003A NE R19 R18 R7 - 0x784E0000, // 003B JMPF R19 #003D - 0x7001FFF7, // 003C JMP #0035 - 0x944C180F, // 003D GETIDX R19 R12 R15 - 0x8C4C2706, // 003E GETMET R19 R19 K6 - 0x5C542400, // 003F MOVE R21 R18 - 0x7C4C0400, // 0040 CALL R19 2 - 0x744E0003, // 0041 JMPT R19 #0046 - 0x944C180F, // 0042 GETIDX R19 R12 R15 - 0x60500013, // 0043 GETGBL R20 G19 - 0x7C500000, // 0044 CALL R20 0 - 0x984C2414, // 0045 SETIDX R19 R18 R20 - 0x50200200, // 0046 LDBOOL R8 1 0 - 0x8C4C1D08, // 0047 GETMET R19 R14 K8 - 0x5C541E00, // 0048 MOVE R21 R15 - 0x5C582400, // 0049 MOVE R22 R18 - 0x7C4C0600, // 004A CALL R19 3 - 0x60500010, // 004B GETGBL R20 G16 - 0x5C542600, // 004C MOVE R21 R19 - 0x7C500200, // 004D CALL R20 1 - 0xA802001A, // 004E EXBLK 0 #006A - 0x5C542800, // 004F MOVE R21 R20 - 0x7C540000, // 0050 CALL R21 0 - 0x4C580000, // 0051 LDNIL R22 - 0x20581216, // 0052 NE R22 R9 R22 - 0x785A0002, // 0053 JMPF R22 #0057 - 0x20582A09, // 0054 NE R22 R21 R9 - 0x785A0000, // 0055 JMPF R22 #0057 - 0x7001FFF7, // 0056 JMP #004F - 0x9458180F, // 0057 GETIDX R22 R12 R15 - 0x94582C12, // 0058 GETIDX R22 R22 R18 - 0x8C582D06, // 0059 GETMET R22 R22 K6 - 0x5C602A00, // 005A MOVE R24 R21 - 0x7C580400, // 005B CALL R22 2 - 0x745A0004, // 005C JMPT R22 #0062 - 0x9458180F, // 005D GETIDX R22 R12 R15 - 0x94582C12, // 005E GETIDX R22 R22 R18 - 0x605C0012, // 005F GETGBL R23 G18 - 0x7C5C0000, // 0060 CALL R23 0 - 0x98582A17, // 0061 SETIDX R22 R21 R23 - 0x50280200, // 0062 LDBOOL R10 1 0 - 0x9458180F, // 0063 GETIDX R22 R12 R15 - 0x94582C12, // 0064 GETIDX R22 R22 R18 - 0x94582C15, // 0065 GETIDX R22 R22 R21 - 0x8C582D09, // 0066 GETMET R22 R22 K9 - 0x5C601C00, // 0067 MOVE R24 R14 - 0x7C580400, // 0068 CALL R22 2 - 0x7001FFE4, // 0069 JMP #004F - 0x5850000A, // 006A LDCONST R20 K10 - 0xAC500200, // 006B CATCH R20 1 0 - 0xB0080000, // 006C RAISE 2 R0 R0 - 0x7001FFC6, // 006D JMP #0035 - 0x5844000A, // 006E LDCONST R17 K10 - 0xAC440200, // 006F CATCH R17 1 0 - 0xB0080000, // 0070 RAISE 2 R0 R0 - 0x7001FFA9, // 0071 JMP #001C - 0x5834000A, // 0072 LDCONST R13 K10 - 0xAC340200, // 0073 CATCH R13 1 0 - 0xB0080000, // 0074 RAISE 2 R0 R0 - 0x60340010, // 0075 GETGBL R13 G16 - 0x5C380600, // 0076 MOVE R14 R3 - 0x5C3C1800, // 0077 MOVE R15 R12 - 0x7C380200, // 0078 CALL R14 1 - 0x7C340200, // 0079 CALL R13 1 - 0xA802003D, // 007A EXBLK 0 #00B9 - 0x5C381A00, // 007B MOVE R14 R13 - 0x7C380000, // 007C CALL R14 0 - 0x603C0010, // 007D GETGBL R15 G16 - 0x5C400600, // 007E MOVE R16 R3 - 0x9444180E, // 007F GETIDX R17 R12 R14 - 0x7C400200, // 0080 CALL R16 1 - 0x7C3C0200, // 0081 CALL R15 1 - 0xA8020031, // 0082 EXBLK 0 #00B5 - 0x5C401E00, // 0083 MOVE R16 R15 - 0x7C400000, // 0084 CALL R16 0 - 0x60440010, // 0085 GETGBL R17 G16 - 0x5C480600, // 0086 MOVE R18 R3 - 0x944C180E, // 0087 GETIDX R19 R12 R14 - 0x944C2610, // 0088 GETIDX R19 R19 R16 - 0x7C480200, // 0089 CALL R18 1 - 0x7C440200, // 008A CALL R17 1 - 0xA8020024, // 008B EXBLK 0 #00B1 - 0x5C482200, // 008C MOVE R18 R17 - 0x7C480000, // 008D CALL R18 0 - 0x604C0010, // 008E GETGBL R19 G16 - 0x9450180E, // 008F GETIDX R20 R12 R14 - 0x94502810, // 0090 GETIDX R20 R20 R16 - 0x94502812, // 0091 GETIDX R20 R20 R18 - 0x7C4C0200, // 0092 CALL R19 1 - 0xA8020018, // 0093 EXBLK 0 #00AD - 0x5C502600, // 0094 MOVE R20 R19 - 0x7C500000, // 0095 CALL R20 0 - 0xB8561600, // 0096 GETNGBL R21 K11 - 0x8C542B0C, // 0097 GETMET R21 R21 K12 - 0x8C5C090D, // 0098 GETMET R23 R4 K13 - 0x5864000E, // 0099 LDCONST R25 K14 - 0x5C681C00, // 009A MOVE R26 R14 - 0x5C6C2000, // 009B MOVE R27 R16 - 0x5C702400, // 009C MOVE R28 R18 - 0x7C5C0A00, // 009D CALL R23 5 - 0x5860000F, // 009E LDCONST R24 K15 - 0x7C540600, // 009F CALL R21 3 - 0x9006020E, // 00A0 SETMBR R1 K1 R14 - 0x90060410, // 00A1 SETMBR R1 K2 R16 - 0x90060612, // 00A2 SETMBR R1 K3 R18 - 0x5C540400, // 00A3 MOVE R21 R2 - 0x5C582800, // 00A4 MOVE R22 R20 - 0x5C5C0200, // 00A5 MOVE R23 R1 - 0x5C601600, // 00A6 MOVE R24 R11 - 0x7C540600, // 00A7 CALL R21 3 - 0x782E0002, // 00A8 JMPF R11 #00AC - 0x78560001, // 00A9 JMPF R21 #00AC - 0xA8040004, // 00AA EXBLK 1 4 - 0x80002C00, // 00AB RET 0 - 0x7001FFE6, // 00AC JMP #0094 - 0x584C000A, // 00AD LDCONST R19 K10 - 0xAC4C0200, // 00AE CATCH R19 1 0 - 0xB0080000, // 00AF RAISE 2 R0 R0 - 0x7001FFDA, // 00B0 JMP #008C - 0x5844000A, // 00B1 LDCONST R17 K10 - 0xAC440200, // 00B2 CATCH R17 1 0 - 0xB0080000, // 00B3 RAISE 2 R0 R0 - 0x7001FFCD, // 00B4 JMP #0083 - 0x583C000A, // 00B5 LDCONST R15 K10 - 0xAC3C0200, // 00B6 CATCH R15 1 0 - 0xB0080000, // 00B7 RAISE 2 R0 R0 - 0x7001FFC1, // 00B8 JMP #007B - 0x5834000A, // 00B9 LDCONST R13 K10 - 0xAC340200, // 00BA CATCH R13 1 0 - 0xB0080000, // 00BB RAISE 2 R0 R0 - 0x782E0019, // 00BC JMPF R11 #00D7 - 0x5C340C00, // 00BD MOVE R13 R6 - 0x74360003, // 00BE JMPT R13 #00C3 - 0xB8362200, // 00BF GETNGBL R13 K17 - 0x88341B12, // 00C0 GETMBR R13 R13 K18 - 0x9006200D, // 00C1 SETMBR R1 K16 R13 - 0x7002000E, // 00C2 JMP #00D2 - 0x5C341000, // 00C3 MOVE R13 R8 - 0x74360003, // 00C4 JMPT R13 #00C9 - 0xB8362200, // 00C5 GETNGBL R13 K17 - 0x88341B13, // 00C6 GETMBR R13 R13 K19 - 0x9006200D, // 00C7 SETMBR R1 K16 R13 - 0x70020008, // 00C8 JMP #00D2 - 0x5C341400, // 00C9 MOVE R13 R10 - 0x74360003, // 00CA JMPT R13 #00CF - 0xB8362200, // 00CB GETNGBL R13 K17 - 0x88341B14, // 00CC GETMBR R13 R13 K20 - 0x9006200D, // 00CD SETMBR R1 K16 R13 - 0x70020002, // 00CE JMP #00D2 - 0xB8362200, // 00CF GETNGBL R13 K17 - 0x88341B15, // 00D0 GETMBR R13 R13 K21 - 0x9006200D, // 00D1 SETMBR R1 K16 R13 - 0x5C340400, // 00D2 MOVE R13 R2 - 0x4C380000, // 00D3 LDNIL R14 - 0x5C3C0200, // 00D4 MOVE R15 R1 - 0x50400200, // 00D5 LDBOOL R16 1 0 - 0x7C340600, // 00D6 CALL R13 3 - 0x80000000, // 00D7 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: mdns_remove_op_discovery ********************************************************************/ @@ -2145,7 +270,7 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[24]) { /* constants */ + ( &(const bvalue[25]) { /* constants */ /* K0 */ be_nested_str_weak(mdns), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(get_device_id), @@ -2161,7 +286,7 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ /* K12 */ be_nested_str_weak(log), /* K13 */ be_nested_str_weak(format), /* K14 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K15 */ be_const_int(2), + /* K15 */ be_const_int(3), /* K16 */ be_nested_str_weak(remove_service), /* K17 */ be_nested_str_weak(_matter), /* K18 */ be_nested_str_weak(_tcp), @@ -2170,6 +295,7 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ /* K21 */ be_nested_str_weak(hostname_wifi), /* K22 */ be_nested_str_weak(MTR_X3A_X20Exception), /* K23 */ be_nested_str_weak(_X7C), + /* K24 */ be_const_int(2), }), be_str_weak(mdns_remove_op_discovery), &be_const_str_solidified, @@ -2250,7 +376,7 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ 0x5C280A00, // 0049 MOVE R10 R5 0x7C240200, // 004A CALL R9 1 0x00201009, // 004B ADD R8 R8 R9 - 0x5824000F, // 004C LDCONST R9 K15 + 0x58240018, // 004C LDCONST R9 K24 0x7C180600, // 004D CALL R6 3 0x70020000, // 004E JMP #0050 0xB0080000, // 004F RAISE 2 R0 R0 @@ -2262,11 +388,11 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ /******************************************************************** -** Solidified function: mdns_announce_PASE +** Solidified function: every_second ********************************************************************/ -be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ +be_local_closure(Matter_Device_every_second, /* name */ be_nested_proto( - 16, /* nstack */ + 4, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2274,363 +400,35 @@ be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[44]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(crypto), - /* K3 */ be_nested_str_weak(VP), - /* K4 */ be_nested_str_weak(vendorid), - /* K5 */ be_nested_str_weak(_X2B), - /* K6 */ be_nested_str_weak(productid), - /* K7 */ be_nested_str_weak(D), - /* K8 */ be_nested_str_weak(commissioning_discriminator), - /* K9 */ be_nested_str_weak(CM), - /* K10 */ be_const_int(1), - /* K11 */ be_nested_str_weak(T), - /* K12 */ be_const_int(0), - /* K13 */ be_nested_str_weak(SII), - /* K14 */ be_nested_str_weak(SAI), - /* K15 */ be_nested_str_weak(commissioning_instance_wifi), - /* K16 */ be_nested_str_weak(random), - /* K17 */ be_nested_str_weak(tohex), - /* K18 */ be_nested_str_weak(commissioning_instance_eth), - /* K19 */ be_nested_str_weak(hostname_eth), - /* K20 */ be_nested_str_weak(tasmota), - /* K21 */ be_nested_str_weak(log), - /* K22 */ be_nested_str_weak(format), - /* K23 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25i_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K24 */ be_nested_str_weak(_matterc), - /* K25 */ be_nested_str_weak(_udp), - /* K26 */ be_const_int(3), - /* K27 */ be_nested_str_weak(add_service), - /* K28 */ be_nested_str_weak(mdns_pase_eth), - /* K29 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K30 */ be_nested_str_weak(eth), - /* K31 */ be_const_int(2), - /* K32 */ be_nested_str_weak(_L), - /* K33 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K34 */ be_nested_str_weak(add_subtype), - /* K35 */ be_nested_str_weak(_S), - /* K36 */ be_nested_str_weak(_V), - /* K37 */ be_nested_str_weak(_CM1), - /* K38 */ be_nested_str_weak(hostname_wifi), - /* K39 */ be_nested_str_weak(mdns_pase_wifi), - /* K40 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K41 */ be_nested_str_weak(wifi), - /* K42 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K43 */ be_nested_str_weak(_X7C), - }), - be_str_weak(mdns_announce_PASE), - &be_const_str_solidified, - ( &(const binstruction[267]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA40E0400, // 0002 IMPORT R3 K2 - 0x60100013, // 0003 GETGBL R4 G19 - 0x7C100000, // 0004 CALL R4 0 - 0x60140008, // 0005 GETGBL R5 G8 - 0x88180104, // 0006 GETMBR R6 R0 K4 - 0x7C140200, // 0007 CALL R5 1 - 0x00140B05, // 0008 ADD R5 R5 K5 - 0x60180008, // 0009 GETGBL R6 G8 - 0x881C0106, // 000A GETMBR R7 R0 K6 - 0x7C180200, // 000B CALL R6 1 - 0x00140A06, // 000C ADD R5 R5 R6 - 0x98120605, // 000D SETIDX R4 K3 R5 - 0x88140108, // 000E GETMBR R5 R0 K8 - 0x98120E05, // 000F SETIDX R4 K7 R5 - 0x9812130A, // 0010 SETIDX R4 K9 K10 - 0x9812170C, // 0011 SETIDX R4 K11 K12 - 0x54161387, // 0012 LDINT R5 5000 - 0x98121A05, // 0013 SETIDX R4 K13 R5 - 0x5416012B, // 0014 LDINT R5 300 - 0x98121C05, // 0015 SETIDX R4 K14 R5 - 0x8C140710, // 0016 GETMET R5 R3 K16 - 0x541E0007, // 0017 LDINT R7 8 - 0x7C140400, // 0018 CALL R5 2 - 0x8C140B11, // 0019 GETMET R5 R5 K17 - 0x7C140200, // 001A CALL R5 1 - 0x90021E05, // 001B SETMBR R0 K15 R5 - 0x8C140710, // 001C GETMET R5 R3 K16 - 0x541E0007, // 001D LDINT R7 8 - 0x7C140400, // 001E CALL R5 2 - 0x8C140B11, // 001F GETMET R5 R5 K17 - 0x7C140200, // 0020 CALL R5 1 - 0x90022405, // 0021 SETMBR R0 K18 R5 - 0xA80200D5, // 0022 EXBLK 0 #00F9 - 0x88140113, // 0023 GETMBR R5 R0 K19 - 0x78160067, // 0024 JMPF R5 #008D - 0xB8162800, // 0025 GETNGBL R5 K20 - 0x8C140B15, // 0026 GETMET R5 R5 K21 - 0x8C1C0516, // 0027 GETMET R7 R2 K22 - 0x58240017, // 0028 LDCONST R9 K23 - 0x58280018, // 0029 LDCONST R10 K24 - 0x582C0019, // 002A LDCONST R11 K25 - 0x543215A3, // 002B LDINT R12 5540 - 0x60340008, // 002C GETGBL R13 G8 - 0x5C380800, // 002D MOVE R14 R4 - 0x7C340200, // 002E CALL R13 1 - 0x88380112, // 002F GETMBR R14 R0 K18 - 0x883C0113, // 0030 GETMBR R15 R0 K19 - 0x7C1C1000, // 0031 CALL R7 8 - 0x5820001A, // 0032 LDCONST R8 K26 - 0x7C140600, // 0033 CALL R5 3 - 0x8C14031B, // 0034 GETMET R5 R1 K27 - 0x581C0018, // 0035 LDCONST R7 K24 - 0x58200019, // 0036 LDCONST R8 K25 - 0x542615A3, // 0037 LDINT R9 5540 - 0x5C280800, // 0038 MOVE R10 R4 - 0x882C0112, // 0039 GETMBR R11 R0 K18 - 0x88300113, // 003A GETMBR R12 R0 K19 - 0x7C140E00, // 003B CALL R5 7 - 0x50140200, // 003C LDBOOL R5 1 0 - 0x90023805, // 003D SETMBR R0 K28 R5 - 0xB8162800, // 003E GETNGBL R5 K20 - 0x8C140B15, // 003F GETMET R5 R5 K21 - 0x8C1C0516, // 0040 GETMET R7 R2 K22 - 0x5824001D, // 0041 LDCONST R9 K29 - 0x5828001E, // 0042 LDCONST R10 K30 - 0x882C0112, // 0043 GETMBR R11 R0 K18 - 0x88300113, // 0044 GETMBR R12 R0 K19 - 0x7C1C0A00, // 0045 CALL R7 5 - 0x5820001F, // 0046 LDCONST R8 K31 - 0x7C140600, // 0047 CALL R5 3 - 0x60140008, // 0048 GETGBL R5 G8 - 0x88180108, // 0049 GETMBR R6 R0 K8 - 0x541E0FFE, // 004A LDINT R7 4095 - 0x2C180C07, // 004B AND R6 R6 R7 - 0x7C140200, // 004C CALL R5 1 - 0x00164005, // 004D ADD R5 K32 R5 - 0xB81A2800, // 004E GETNGBL R6 K20 - 0x8C180D15, // 004F GETMET R6 R6 K21 - 0x00224205, // 0050 ADD R8 K33 R5 - 0x5824001F, // 0051 LDCONST R9 K31 - 0x7C180600, // 0052 CALL R6 3 - 0x8C180322, // 0053 GETMET R6 R1 K34 - 0x58200018, // 0054 LDCONST R8 K24 - 0x58240019, // 0055 LDCONST R9 K25 - 0x88280112, // 0056 GETMBR R10 R0 K18 - 0x882C0113, // 0057 GETMBR R11 R0 K19 - 0x5C300A00, // 0058 MOVE R12 R5 - 0x7C180C00, // 0059 CALL R6 6 - 0x60180008, // 005A GETGBL R6 G8 - 0x881C0108, // 005B GETMBR R7 R0 K8 - 0x54220EFF, // 005C LDINT R8 3840 - 0x2C1C0E08, // 005D AND R7 R7 R8 - 0x54220007, // 005E LDINT R8 8 - 0x3C1C0E08, // 005F SHR R7 R7 R8 - 0x7C180200, // 0060 CALL R6 1 - 0x001A4606, // 0061 ADD R6 K35 R6 - 0x5C140C00, // 0062 MOVE R5 R6 - 0xB81A2800, // 0063 GETNGBL R6 K20 - 0x8C180D15, // 0064 GETMET R6 R6 K21 - 0x00224205, // 0065 ADD R8 K33 R5 - 0x5824001F, // 0066 LDCONST R9 K31 - 0x7C180600, // 0067 CALL R6 3 - 0x8C180322, // 0068 GETMET R6 R1 K34 - 0x58200018, // 0069 LDCONST R8 K24 - 0x58240019, // 006A LDCONST R9 K25 - 0x88280112, // 006B GETMBR R10 R0 K18 - 0x882C0113, // 006C GETMBR R11 R0 K19 - 0x5C300A00, // 006D MOVE R12 R5 - 0x7C180C00, // 006E CALL R6 6 - 0x60180008, // 006F GETGBL R6 G8 - 0x881C0104, // 0070 GETMBR R7 R0 K4 - 0x7C180200, // 0071 CALL R6 1 - 0x001A4806, // 0072 ADD R6 K36 R6 - 0x5C140C00, // 0073 MOVE R5 R6 - 0xB81A2800, // 0074 GETNGBL R6 K20 - 0x8C180D15, // 0075 GETMET R6 R6 K21 - 0x00224205, // 0076 ADD R8 K33 R5 - 0x5824001F, // 0077 LDCONST R9 K31 - 0x7C180600, // 0078 CALL R6 3 - 0x8C180322, // 0079 GETMET R6 R1 K34 - 0x58200018, // 007A LDCONST R8 K24 - 0x58240019, // 007B LDCONST R9 K25 - 0x88280112, // 007C GETMBR R10 R0 K18 - 0x882C0113, // 007D GETMBR R11 R0 K19 - 0x5C300A00, // 007E MOVE R12 R5 - 0x7C180C00, // 007F CALL R6 6 - 0x58140025, // 0080 LDCONST R5 K37 - 0xB81A2800, // 0081 GETNGBL R6 K20 - 0x8C180D15, // 0082 GETMET R6 R6 K21 - 0x00224205, // 0083 ADD R8 K33 R5 - 0x5824001F, // 0084 LDCONST R9 K31 - 0x7C180600, // 0085 CALL R6 3 - 0x8C180322, // 0086 GETMET R6 R1 K34 - 0x58200018, // 0087 LDCONST R8 K24 - 0x58240019, // 0088 LDCONST R9 K25 - 0x88280112, // 0089 GETMBR R10 R0 K18 - 0x882C0113, // 008A GETMBR R11 R0 K19 - 0x5C300A00, // 008B MOVE R12 R5 - 0x7C180C00, // 008C CALL R6 6 - 0x88140126, // 008D GETMBR R5 R0 K38 - 0x78160067, // 008E JMPF R5 #00F7 - 0xB8162800, // 008F GETNGBL R5 K20 - 0x8C140B15, // 0090 GETMET R5 R5 K21 - 0x8C1C0516, // 0091 GETMET R7 R2 K22 - 0x58240017, // 0092 LDCONST R9 K23 - 0x58280018, // 0093 LDCONST R10 K24 - 0x582C0019, // 0094 LDCONST R11 K25 - 0x543215A3, // 0095 LDINT R12 5540 - 0x60340008, // 0096 GETGBL R13 G8 - 0x5C380800, // 0097 MOVE R14 R4 - 0x7C340200, // 0098 CALL R13 1 - 0x8838010F, // 0099 GETMBR R14 R0 K15 - 0x883C0126, // 009A GETMBR R15 R0 K38 - 0x7C1C1000, // 009B CALL R7 8 - 0x5820001A, // 009C LDCONST R8 K26 - 0x7C140600, // 009D CALL R5 3 - 0x8C14031B, // 009E GETMET R5 R1 K27 - 0x581C0018, // 009F LDCONST R7 K24 - 0x58200019, // 00A0 LDCONST R8 K25 - 0x542615A3, // 00A1 LDINT R9 5540 - 0x5C280800, // 00A2 MOVE R10 R4 - 0x882C010F, // 00A3 GETMBR R11 R0 K15 - 0x88300126, // 00A4 GETMBR R12 R0 K38 - 0x7C140E00, // 00A5 CALL R5 7 - 0x50140200, // 00A6 LDBOOL R5 1 0 - 0x90024E05, // 00A7 SETMBR R0 K39 R5 - 0xB8162800, // 00A8 GETNGBL R5 K20 - 0x8C140B15, // 00A9 GETMET R5 R5 K21 - 0x8C1C0516, // 00AA GETMET R7 R2 K22 - 0x58240028, // 00AB LDCONST R9 K40 - 0x58280029, // 00AC LDCONST R10 K41 - 0x882C010F, // 00AD GETMBR R11 R0 K15 - 0x88300126, // 00AE GETMBR R12 R0 K38 - 0x7C1C0A00, // 00AF CALL R7 5 - 0x5820001F, // 00B0 LDCONST R8 K31 - 0x7C140600, // 00B1 CALL R5 3 - 0x60140008, // 00B2 GETGBL R5 G8 - 0x88180108, // 00B3 GETMBR R6 R0 K8 - 0x541E0FFE, // 00B4 LDINT R7 4095 - 0x2C180C07, // 00B5 AND R6 R6 R7 - 0x7C140200, // 00B6 CALL R5 1 - 0x00164005, // 00B7 ADD R5 K32 R5 - 0xB81A2800, // 00B8 GETNGBL R6 K20 - 0x8C180D15, // 00B9 GETMET R6 R6 K21 - 0x00224205, // 00BA ADD R8 K33 R5 - 0x5824001F, // 00BB LDCONST R9 K31 - 0x7C180600, // 00BC CALL R6 3 - 0x8C180322, // 00BD GETMET R6 R1 K34 - 0x58200018, // 00BE LDCONST R8 K24 - 0x58240019, // 00BF LDCONST R9 K25 - 0x8828010F, // 00C0 GETMBR R10 R0 K15 - 0x882C0126, // 00C1 GETMBR R11 R0 K38 - 0x5C300A00, // 00C2 MOVE R12 R5 - 0x7C180C00, // 00C3 CALL R6 6 - 0x60180008, // 00C4 GETGBL R6 G8 - 0x881C0108, // 00C5 GETMBR R7 R0 K8 - 0x54220EFF, // 00C6 LDINT R8 3840 - 0x2C1C0E08, // 00C7 AND R7 R7 R8 - 0x54220007, // 00C8 LDINT R8 8 - 0x3C1C0E08, // 00C9 SHR R7 R7 R8 - 0x7C180200, // 00CA CALL R6 1 - 0x001A4606, // 00CB ADD R6 K35 R6 - 0x5C140C00, // 00CC MOVE R5 R6 - 0xB81A2800, // 00CD GETNGBL R6 K20 - 0x8C180D15, // 00CE GETMET R6 R6 K21 - 0x00224205, // 00CF ADD R8 K33 R5 - 0x5824001F, // 00D0 LDCONST R9 K31 - 0x7C180600, // 00D1 CALL R6 3 - 0x8C180322, // 00D2 GETMET R6 R1 K34 - 0x58200018, // 00D3 LDCONST R8 K24 - 0x58240019, // 00D4 LDCONST R9 K25 - 0x8828010F, // 00D5 GETMBR R10 R0 K15 - 0x882C0126, // 00D6 GETMBR R11 R0 K38 - 0x5C300A00, // 00D7 MOVE R12 R5 - 0x7C180C00, // 00D8 CALL R6 6 - 0x60180008, // 00D9 GETGBL R6 G8 - 0x881C0104, // 00DA GETMBR R7 R0 K4 - 0x7C180200, // 00DB CALL R6 1 - 0x001A4806, // 00DC ADD R6 K36 R6 - 0x5C140C00, // 00DD MOVE R5 R6 - 0xB81A2800, // 00DE GETNGBL R6 K20 - 0x8C180D15, // 00DF GETMET R6 R6 K21 - 0x00224205, // 00E0 ADD R8 K33 R5 - 0x5824001F, // 00E1 LDCONST R9 K31 - 0x7C180600, // 00E2 CALL R6 3 - 0x8C180322, // 00E3 GETMET R6 R1 K34 - 0x58200018, // 00E4 LDCONST R8 K24 - 0x58240019, // 00E5 LDCONST R9 K25 - 0x8828010F, // 00E6 GETMBR R10 R0 K15 - 0x882C0126, // 00E7 GETMBR R11 R0 K38 - 0x5C300A00, // 00E8 MOVE R12 R5 - 0x7C180C00, // 00E9 CALL R6 6 - 0x58140025, // 00EA LDCONST R5 K37 - 0xB81A2800, // 00EB GETNGBL R6 K20 - 0x8C180D15, // 00EC GETMET R6 R6 K21 - 0x00224205, // 00ED ADD R8 K33 R5 - 0x5824001F, // 00EE LDCONST R9 K31 - 0x7C180600, // 00EF CALL R6 3 - 0x8C180322, // 00F0 GETMET R6 R1 K34 - 0x58200018, // 00F1 LDCONST R8 K24 - 0x58240019, // 00F2 LDCONST R9 K25 - 0x8828010F, // 00F3 GETMBR R10 R0 K15 - 0x882C0126, // 00F4 GETMBR R11 R0 K38 - 0x5C300A00, // 00F5 MOVE R12 R5 - 0x7C180C00, // 00F6 CALL R6 6 - 0xA8040001, // 00F7 EXBLK 1 1 - 0x70020010, // 00F8 JMP #010A - 0xAC140002, // 00F9 CATCH R5 0 2 - 0x7002000D, // 00FA JMP #0109 - 0xB81E2800, // 00FB GETNGBL R7 K20 - 0x8C1C0F15, // 00FC GETMET R7 R7 K21 - 0x60240008, // 00FD GETGBL R9 G8 - 0x5C280A00, // 00FE MOVE R10 R5 - 0x7C240200, // 00FF CALL R9 1 - 0x00265409, // 0100 ADD R9 K42 R9 - 0x0024132B, // 0101 ADD R9 R9 K43 - 0x60280008, // 0102 GETGBL R10 G8 - 0x5C2C0C00, // 0103 MOVE R11 R6 - 0x7C280200, // 0104 CALL R10 1 - 0x0024120A, // 0105 ADD R9 R9 R10 - 0x5828001F, // 0106 LDCONST R10 K31 - 0x7C1C0600, // 0107 CALL R7 3 - 0x70020000, // 0108 JMP #010A - 0xB0080000, // 0109 RAISE 2 R0 R0 - 0x80000000, // 010A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: event_fabrics_saved -********************************************************************/ -be_local_closure(Matter_Device_event_fabrics_saved, /* 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[ 5]) { /* constants */ + ( &(const bvalue[ 6]) { /* constants */ /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins_persist), - /* K4 */ be_nested_str_weak(save_param), + /* K1 */ be_nested_str_weak(every_second), + /* K2 */ be_nested_str_weak(message_handler), + /* K3 */ be_nested_str_weak(commissioning_open), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(time_reached), }), - be_str_weak(event_fabrics_saved), + be_str_weak(every_second), &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ + ( &(const binstruction[18]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 0x8C040301, // 0001 GETMET R1 R1 K1 0x7C040200, // 0002 CALL R1 1 - 0x24040302, // 0003 GT R1 R1 K2 - 0x78060005, // 0004 JMPF R1 #000B - 0x88040103, // 0005 GETMBR R1 R0 K3 - 0x74060003, // 0006 JMPT R1 #000B - 0x50040200, // 0007 LDBOOL R1 1 0 - 0x90020601, // 0008 SETMBR R0 K3 R1 - 0x8C040104, // 0009 GETMET R1 R0 K4 - 0x7C040200, // 000A CALL R1 1 - 0x80000000, // 000B RET 0 + 0x88040102, // 0003 GETMBR R1 R0 K2 + 0x8C040301, // 0004 GETMET R1 R1 K1 + 0x7C040200, // 0005 CALL R1 1 + 0x88040103, // 0006 GETMBR R1 R0 K3 + 0x4C080000, // 0007 LDNIL R2 + 0x20040202, // 0008 NE R1 R1 R2 + 0x78060006, // 0009 JMPF R1 #0011 + 0xB8060800, // 000A GETNGBL R1 K4 + 0x8C040305, // 000B GETMET R1 R1 K5 + 0x880C0103, // 000C GETMBR R3 R0 K3 + 0x7C040400, // 000D CALL R1 2 + 0x78060001, // 000E JMPF R1 #0011 + 0x4C040000, // 000F LDNIL R1 + 0x90020601, // 0010 SETMBR R0 K3 R1 + 0x80000000, // 0011 RET 0 }) ) ); @@ -2638,11 +436,11 @@ be_local_closure(Matter_Device_event_fabrics_saved, /* name */ /******************************************************************** -** Solidified function: _init_basic_commissioning +** Solidified function: mdns_announce_op_discovery_all_fabrics ********************************************************************/ -be_local_closure(Matter_Device__init_basic_commissioning, /* name */ +be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name */ be_nested_proto( - 3, /* nstack */ + 6, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2650,580 +448,39 @@ be_local_closure(Matter_Device__init_basic_commissioning, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ + ( &(const bvalue[ 6]) { /* constants */ /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(start_root_basic_commissioning), + /* K1 */ be_nested_str_weak(active_fabrics), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(mdns_announce_op_discovery), + /* K5 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(_init_basic_commissioning), + be_str_weak(mdns_announce_op_discovery_all_fabrics), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x1C040302, // 0003 EQ R1 R1 K2 - 0x78060001, // 0004 JMPF R1 #0007 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x7C040200, // 0006 CALL R1 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _mdns_announce_hostname -********************************************************************/ -be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ - be_nested_proto( - 16, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[28]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(start), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(eth), - /* K5 */ be_nested_str_weak(hostname_eth), - /* K6 */ be_nested_str_weak(replace), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(mac), - /* K9 */ be_nested_str_weak(_X3A), - /* K10 */ be_nested_str_weak(), - /* K11 */ be_nested_str_weak(ipv4only), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K15 */ be_nested_str_weak(ip6local), - /* K16 */ be_nested_str_weak(ip), - /* K17 */ be_const_int(3), - /* K18 */ be_nested_str_weak(add_hostname), - /* K19 */ be_nested_str_weak(ip6), - /* K20 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), - /* K21 */ be_nested_str_weak(wifi), - /* K22 */ be_nested_str_weak(hostname_wifi), - /* K23 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), - /* K24 */ be_const_int(2), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K26 */ be_nested_str_weak(_X7C), - /* K27 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), - }), - be_str_weak(_mdns_announce_hostname), - &be_const_str_solidified, - ( &(const binstruction[172]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100502, // 0002 GETMET R4 R2 K2 - 0x7C100200, // 0003 CALL R4 1 - 0xA8020092, // 0004 EXBLK 0 #0098 - 0x78060040, // 0005 JMPF R1 #0047 - 0xB8120600, // 0006 GETNGBL R4 K3 - 0x8C100904, // 0007 GETMET R4 R4 K4 - 0x7C100200, // 0008 CALL R4 1 - 0x8C140706, // 0009 GETMET R5 R3 K6 - 0x8C1C0907, // 000A GETMET R7 R4 K7 - 0x58240008, // 000B LDCONST R9 K8 - 0x7C1C0400, // 000C CALL R7 2 - 0x58200009, // 000D LDCONST R8 K9 - 0x5824000A, // 000E LDCONST R9 K10 - 0x7C140800, // 000F CALL R5 4 - 0x90020A05, // 0010 SETMBR R0 K5 R5 - 0x8814010B, // 0011 GETMBR R5 R0 K11 - 0x7416001F, // 0012 JMPT R5 #0033 - 0xB8160600, // 0013 GETNGBL R5 K3 - 0x8C140B0C, // 0014 GETMET R5 R5 K12 - 0x8C1C070D, // 0015 GETMET R7 R3 K13 - 0x5824000E, // 0016 LDCONST R9 K14 - 0x88280105, // 0017 GETMBR R10 R0 K5 - 0x8C2C0907, // 0018 GETMET R11 R4 K7 - 0x5834000F, // 0019 LDCONST R13 K15 - 0x5838000A, // 001A LDCONST R14 K10 - 0x7C2C0600, // 001B CALL R11 3 - 0x8C300907, // 001C GETMET R12 R4 K7 - 0x58380010, // 001D LDCONST R14 K16 - 0x583C000A, // 001E LDCONST R15 K10 - 0x7C300600, // 001F CALL R12 3 - 0x7C1C0A00, // 0020 CALL R7 5 - 0x58200011, // 0021 LDCONST R8 K17 - 0x7C140600, // 0022 CALL R5 3 - 0x8C140512, // 0023 GETMET R5 R2 K18 - 0x881C0105, // 0024 GETMBR R7 R0 K5 - 0x8C200907, // 0025 GETMET R8 R4 K7 - 0x5828000F, // 0026 LDCONST R10 K15 - 0x582C000A, // 0027 LDCONST R11 K10 - 0x7C200600, // 0028 CALL R8 3 - 0x8C240907, // 0029 GETMET R9 R4 K7 - 0x582C0010, // 002A LDCONST R11 K16 - 0x5830000A, // 002B LDCONST R12 K10 - 0x7C240600, // 002C CALL R9 3 - 0x8C280907, // 002D GETMET R10 R4 K7 - 0x58300013, // 002E LDCONST R12 K19 - 0x5834000A, // 002F LDCONST R13 K10 - 0x7C280600, // 0030 CALL R10 3 - 0x7C140A00, // 0031 CALL R5 5 - 0x70020012, // 0032 JMP #0046 - 0xB8160600, // 0033 GETNGBL R5 K3 - 0x8C140B0C, // 0034 GETMET R5 R5 K12 - 0x8C1C070D, // 0035 GETMET R7 R3 K13 - 0x58240014, // 0036 LDCONST R9 K20 - 0x88280105, // 0037 GETMBR R10 R0 K5 - 0x8C2C0907, // 0038 GETMET R11 R4 K7 - 0x58340010, // 0039 LDCONST R13 K16 - 0x5838000A, // 003A LDCONST R14 K10 - 0x7C2C0600, // 003B CALL R11 3 - 0x7C1C0800, // 003C CALL R7 4 - 0x58200011, // 003D LDCONST R8 K17 - 0x7C140600, // 003E CALL R5 3 - 0x8C140512, // 003F GETMET R5 R2 K18 - 0x881C0105, // 0040 GETMBR R7 R0 K5 - 0x8C200907, // 0041 GETMET R8 R4 K7 - 0x58280010, // 0042 LDCONST R10 K16 - 0x582C000A, // 0043 LDCONST R11 K10 - 0x7C200600, // 0044 CALL R8 3 - 0x7C140600, // 0045 CALL R5 3 - 0x7002003F, // 0046 JMP #0087 - 0xB8120600, // 0047 GETNGBL R4 K3 - 0x8C100915, // 0048 GETMET R4 R4 K21 - 0x7C100200, // 0049 CALL R4 1 - 0x8C140706, // 004A GETMET R5 R3 K6 - 0x8C1C0907, // 004B GETMET R7 R4 K7 - 0x58240008, // 004C LDCONST R9 K8 - 0x7C1C0400, // 004D CALL R7 2 - 0x58200009, // 004E LDCONST R8 K9 - 0x5824000A, // 004F LDCONST R9 K10 - 0x7C140800, // 0050 CALL R5 4 - 0x90022C05, // 0051 SETMBR R0 K22 R5 - 0x8814010B, // 0052 GETMBR R5 R0 K11 - 0x7416001F, // 0053 JMPT R5 #0074 - 0xB8160600, // 0054 GETNGBL R5 K3 - 0x8C140B0C, // 0055 GETMET R5 R5 K12 - 0x8C1C070D, // 0056 GETMET R7 R3 K13 - 0x5824000E, // 0057 LDCONST R9 K14 - 0x88280116, // 0058 GETMBR R10 R0 K22 - 0x8C2C0907, // 0059 GETMET R11 R4 K7 - 0x5834000F, // 005A LDCONST R13 K15 - 0x5838000A, // 005B LDCONST R14 K10 - 0x7C2C0600, // 005C CALL R11 3 - 0x8C300907, // 005D GETMET R12 R4 K7 - 0x58380010, // 005E LDCONST R14 K16 - 0x583C000A, // 005F LDCONST R15 K10 - 0x7C300600, // 0060 CALL R12 3 - 0x7C1C0A00, // 0061 CALL R7 5 - 0x58200011, // 0062 LDCONST R8 K17 - 0x7C140600, // 0063 CALL R5 3 - 0x8C140512, // 0064 GETMET R5 R2 K18 - 0x881C0116, // 0065 GETMBR R7 R0 K22 - 0x8C200907, // 0066 GETMET R8 R4 K7 - 0x5828000F, // 0067 LDCONST R10 K15 - 0x582C000A, // 0068 LDCONST R11 K10 - 0x7C200600, // 0069 CALL R8 3 - 0x8C240907, // 006A GETMET R9 R4 K7 - 0x582C0010, // 006B LDCONST R11 K16 - 0x5830000A, // 006C LDCONST R12 K10 - 0x7C240600, // 006D CALL R9 3 - 0x8C280907, // 006E GETMET R10 R4 K7 - 0x58300013, // 006F LDCONST R12 K19 - 0x5834000A, // 0070 LDCONST R13 K10 - 0x7C280600, // 0071 CALL R10 3 - 0x7C140A00, // 0072 CALL R5 5 - 0x70020012, // 0073 JMP #0087 - 0xB8160600, // 0074 GETNGBL R5 K3 - 0x8C140B0C, // 0075 GETMET R5 R5 K12 - 0x8C1C070D, // 0076 GETMET R7 R3 K13 - 0x58240014, // 0077 LDCONST R9 K20 - 0x88280105, // 0078 GETMBR R10 R0 K5 - 0x8C2C0907, // 0079 GETMET R11 R4 K7 - 0x58340010, // 007A LDCONST R13 K16 - 0x5838000A, // 007B LDCONST R14 K10 - 0x7C2C0600, // 007C CALL R11 3 - 0x7C1C0800, // 007D CALL R7 4 - 0x58200011, // 007E LDCONST R8 K17 - 0x7C140600, // 007F CALL R5 3 - 0x8C140512, // 0080 GETMET R5 R2 K18 - 0x881C0116, // 0081 GETMBR R7 R0 K22 - 0x8C200907, // 0082 GETMET R8 R4 K7 - 0x58280010, // 0083 LDCONST R10 K16 - 0x582C000A, // 0084 LDCONST R11 K10 - 0x7C200600, // 0085 CALL R8 3 - 0x7C140600, // 0086 CALL R5 3 - 0xB8120600, // 0087 GETNGBL R4 K3 - 0x8C10090C, // 0088 GETMET R4 R4 K12 - 0x8C18070D, // 0089 GETMET R6 R3 K13 - 0x58200017, // 008A LDCONST R8 K23 - 0x78060001, // 008B JMPF R1 #008E - 0x58240004, // 008C LDCONST R9 K4 - 0x70020000, // 008D JMP #008F - 0x58240015, // 008E LDCONST R9 K21 - 0x78060001, // 008F JMPF R1 #0092 - 0x88280105, // 0090 GETMBR R10 R0 K5 - 0x70020000, // 0091 JMP #0093 - 0x88280116, // 0092 GETMBR R10 R0 K22 - 0x7C180800, // 0093 CALL R6 4 - 0x581C0018, // 0094 LDCONST R7 K24 - 0x7C100600, // 0095 CALL R4 3 - 0xA8040001, // 0096 EXBLK 1 1 - 0x70020010, // 0097 JMP #00A9 - 0xAC100002, // 0098 CATCH R4 0 2 - 0x7002000D, // 0099 JMP #00A8 - 0xB81A0600, // 009A GETNGBL R6 K3 - 0x8C180D0C, // 009B GETMET R6 R6 K12 - 0x60200008, // 009C GETGBL R8 G8 - 0x5C240800, // 009D MOVE R9 R4 - 0x7C200200, // 009E CALL R8 1 - 0x00223208, // 009F ADD R8 K25 R8 - 0x0020111A, // 00A0 ADD R8 R8 K26 - 0x60240008, // 00A1 GETGBL R9 G8 - 0x5C280A00, // 00A2 MOVE R10 R5 - 0x7C240200, // 00A3 CALL R9 1 - 0x00201009, // 00A4 ADD R8 R8 R9 - 0x58240018, // 00A5 LDCONST R9 K24 - 0x7C180600, // 00A6 CALL R6 3 - 0x70020000, // 00A7 JMP #00A9 - 0xB0080000, // 00A8 RAISE 2 R0 R0 - 0x8C10011B, // 00A9 GETMET R4 R0 K27 - 0x7C100200, // 00AA CALL R4 1 - 0x80000000, // 00AB RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: register_native_classes -********************************************************************/ -be_local_closure(Matter_Device_register_native_classes, /* name */ - be_nested_proto( - 12, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(introspect), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(members), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(get), - /* K5 */ be_nested_str_weak(class), - /* K6 */ be_nested_str_weak(find), - /* K7 */ be_nested_str_weak(Plugin_), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(register_plugin_class), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(tasmota), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(MTR_X3A_X20registered_X20classes_X20), - /* K14 */ be_nested_str_weak(k2l), - /* K15 */ be_nested_str_weak(plugins_classes), - /* K16 */ be_const_int(3), - }), - be_str_weak(register_native_classes), - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xA4120200, // 0001 IMPORT R4 K1 - 0x60140010, // 0002 GETGBL R5 G16 - 0x8C180702, // 0003 GETMET R6 R3 K2 - 0xB8220600, // 0004 GETNGBL R8 K3 - 0x7C180400, // 0005 CALL R6 2 - 0x7C140200, // 0006 CALL R5 1 - 0xA8020014, // 0007 EXBLK 0 #001D - 0x5C180A00, // 0008 MOVE R6 R5 - 0x7C180000, // 0009 CALL R6 0 - 0x8C1C0704, // 000A GETMET R7 R3 K4 - 0xB8260600, // 000B GETNGBL R9 K3 - 0x5C280C00, // 000C MOVE R10 R6 - 0x7C1C0600, // 000D CALL R7 3 - 0x60200004, // 000E GETGBL R8 G4 - 0x5C240E00, // 000F MOVE R9 R7 - 0x7C200200, // 0010 CALL R8 1 - 0x1C201105, // 0011 EQ R8 R8 K5 - 0x78220008, // 0012 JMPF R8 #001C - 0x8C200906, // 0013 GETMET R8 R4 K6 - 0x5C280C00, // 0014 MOVE R10 R6 - 0x582C0007, // 0015 LDCONST R11 K7 - 0x7C200600, // 0016 CALL R8 3 - 0x1C201108, // 0017 EQ R8 R8 K8 - 0x78220002, // 0018 JMPF R8 #001C - 0x8C200109, // 0019 GETMET R8 R0 K9 - 0x5C280E00, // 001A MOVE R10 R7 - 0x7C200400, // 001B CALL R8 2 - 0x7001FFEA, // 001C JMP #0008 - 0x5814000A, // 001D LDCONST R5 K10 - 0xAC140200, // 001E CATCH R5 1 0 - 0xB0080000, // 001F RAISE 2 R0 R0 - 0xB8161600, // 0020 GETNGBL R5 K11 - 0x8C140B0C, // 0021 GETMET R5 R5 K12 - 0x601C0008, // 0022 GETGBL R7 G8 - 0x8C20010E, // 0023 GETMET R8 R0 K14 - 0x8828010F, // 0024 GETMBR R10 R0 K15 - 0x7C200400, // 0025 CALL R8 2 - 0x7C1C0200, // 0026 CALL R7 1 - 0x001E1A07, // 0027 ADD R7 K13 R7 - 0x58200010, // 0028 LDCONST R8 K16 - 0x7C140600, // 0029 CALL R5 3 - 0x80000000, // 002A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_50ms -********************************************************************/ -be_local_closure(Matter_Device_every_50ms, /* 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(tick), - /* K1 */ be_const_int(1), - }), - be_str_weak(every_50ms), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x00040301, // 0001 ADD R1 R1 K1 - 0x90020001, // 0002 SETMBR R0 K0 R1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_start_basic_commissioning, /* name */ - be_nested_proto( - 13, /* nstack */ - 8, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(millis), - /* K3 */ be_nested_str_weak(commissioning_iterations), - /* K4 */ be_nested_str_weak(commissioning_discriminator), - /* K5 */ be_nested_str_weak(commissioning_salt), - /* K6 */ be_nested_str_weak(commissioning_w0), - /* K7 */ be_nested_str_weak(commissioning_L), - /* K8 */ be_nested_str_weak(commissioning_admin_fabric), - /* K9 */ be_nested_str_weak(wifi), - /* K10 */ be_nested_str_weak(up), - /* K11 */ be_nested_str_weak(eth), - /* K12 */ be_nested_str_weak(mdns_announce_PASE), - /* K13 */ be_nested_str_weak(add_rule), - /* K14 */ be_nested_str_weak(Wifi_X23Connected), - /* K15 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0xB8220200, // 0000 GETNGBL R8 K1 - 0x8C201102, // 0001 GETMET R8 R8 K2 - 0x7C200200, // 0002 CALL R8 1 - 0x542603E7, // 0003 LDINT R9 1000 - 0x08240209, // 0004 MUL R9 R1 R9 - 0x00201009, // 0005 ADD R8 R8 R9 - 0x90020008, // 0006 SETMBR R0 K0 R8 - 0x90020602, // 0007 SETMBR R0 K3 R2 - 0x90020803, // 0008 SETMBR R0 K4 R3 - 0x90020A04, // 0009 SETMBR R0 K5 R4 - 0x90020C05, // 000A SETMBR R0 K6 R5 - 0x90020E06, // 000B SETMBR R0 K7 R6 - 0x90021007, // 000C SETMBR R0 K8 R7 - 0xB8220200, // 000D GETNGBL R8 K1 - 0x8C201109, // 000E GETMET R8 R8 K9 - 0x7C200200, // 000F CALL R8 1 - 0x9420110A, // 0010 GETIDX R8 R8 K10 - 0x74220004, // 0011 JMPT R8 #0017 - 0xB8220200, // 0012 GETNGBL R8 K1 - 0x8C20110B, // 0013 GETMET R8 R8 K11 - 0x7C200200, // 0014 CALL R8 1 - 0x9420110A, // 0015 GETIDX R8 R8 K10 - 0x78220002, // 0016 JMPF R8 #001A - 0x8C20010C, // 0017 GETMET R8 R0 K12 - 0x7C200200, // 0018 CALL R8 1 - 0x7002000B, // 0019 JMP #0026 - 0xB8220200, // 001A GETNGBL R8 K1 - 0x8C20110D, // 001B GETMET R8 R8 K13 - 0x5828000E, // 001C LDCONST R10 K14 - 0x842C0000, // 001D CLOSURE R11 P0 - 0x5830000C, // 001E LDCONST R12 K12 - 0x7C200800, // 001F CALL R8 4 - 0xB8220200, // 0020 GETNGBL R8 K1 - 0x8C20110D, // 0021 GETMET R8 R8 K13 - 0x5828000F, // 0022 LDCONST R10 K15 - 0x842C0001, // 0023 CLOSURE R11 P1 - 0x5830000C, // 0024 LDCONST R12 K12 - 0x7C200800, // 0025 CALL R8 4 - 0xA0000000, // 0026 CLOSE R0 - 0x80000000, // 0027 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _compute_pbkdf -********************************************************************/ -be_local_closure(Matter_Device__compute_pbkdf, /* name */ - be_nested_proto( - 14, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(add), - /* K3 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), - /* K4 */ be_nested_str_weak(derive), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(root_w0), - /* K7 */ be_nested_str_weak(EC_P256), - /* K8 */ be_nested_str_weak(mod), - /* K9 */ be_nested_str_weak(root_L), - /* K10 */ be_nested_str_weak(public_key), - }), - be_str_weak(_compute_pbkdf), - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0xA4160200, // 0001 IMPORT R5 K1 - 0x60180015, // 0002 GETGBL R6 G21 - 0x7C180000, // 0003 CALL R6 0 - 0x8C180D02, // 0004 GETMET R6 R6 K2 - 0x5C200200, // 0005 MOVE R8 R1 - 0x54260003, // 0006 LDINT R9 4 - 0x7C180600, // 0007 CALL R6 3 - 0x8C1C0903, // 0008 GETMET R7 R4 K3 - 0x7C1C0200, // 0009 CALL R7 1 - 0x8C1C0F04, // 000A GETMET R7 R7 K4 - 0x5C240C00, // 000B MOVE R9 R6 - 0x5C280600, // 000C MOVE R10 R3 - 0x5C2C0400, // 000D MOVE R11 R2 - 0x5432004F, // 000E LDINT R12 80 - 0x7C1C0A00, // 000F CALL R7 5 - 0x54220026, // 0010 LDINT R8 39 - 0x40220A08, // 0011 CONNECT R8 K5 R8 - 0x94200E08, // 0012 GETIDX R8 R7 R8 - 0x54260027, // 0013 LDINT R9 40 - 0x542A004E, // 0014 LDINT R10 79 - 0x4024120A, // 0015 CONNECT R9 R9 R10 - 0x94240E09, // 0016 GETIDX R9 R7 R9 - 0x8C280907, // 0017 GETMET R10 R4 K7 - 0x7C280200, // 0018 CALL R10 1 - 0x8C281508, // 0019 GETMET R10 R10 K8 - 0x5C301000, // 001A MOVE R12 R8 - 0x7C280400, // 001B CALL R10 2 - 0x90020C0A, // 001C SETMBR R0 K6 R10 - 0x8C280907, // 001D GETMET R10 R4 K7 - 0x7C280200, // 001E CALL R10 1 - 0x8C281508, // 001F GETMET R10 R10 K8 - 0x5C301200, // 0020 MOVE R12 R9 - 0x7C280400, // 0021 CALL R10 2 - 0x8C2C0907, // 0022 GETMET R11 R4 K7 - 0x7C2C0200, // 0023 CALL R11 1 - 0x8C2C170A, // 0024 GETMET R11 R11 K10 - 0x5C341400, // 0025 MOVE R13 R10 - 0x7C2C0400, // 0026 CALL R11 2 - 0x9002120B, // 0027 SETMBR R0 K9 R11 - 0x80000000, // 0028 RET 0 + ( &(const binstruction[22]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000B, // 0005 EXBLK 0 #0012 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x8C0C0502, // 0008 GETMET R3 R2 K2 + 0x7C0C0200, // 0009 CALL R3 1 + 0x780E0005, // 000A JMPF R3 #0011 + 0x8C0C0503, // 000B GETMET R3 R2 K3 + 0x7C0C0200, // 000C CALL R3 1 + 0x780E0002, // 000D JMPF R3 #0011 + 0x8C0C0104, // 000E GETMET R3 R0 K4 + 0x5C140400, // 000F MOVE R5 R2 + 0x7C0C0400, // 0010 CALL R3 2 + 0x7001FFF3, // 0011 JMP #0006 + 0x58040005, // 0012 LDCONST R1 K5 + 0xAC040200, // 0013 CATCH R1 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x80000000, // 0015 RET 0 }) ) ); @@ -3392,9 +649,9 @@ be_local_closure(Matter_Device_autoconf_sensors_list, /* name */ /******************************************************************** -** Solidified function: stop +** Solidified function: every_250ms ********************************************************************/ -be_local_closure(Matter_Device_stop, /* name */ +be_local_closure(Matter_Device_every_250ms, /* name */ be_nested_proto( 4, /* nstack */ 1, /* argc */ @@ -3404,25 +661,422 @@ be_local_closure(Matter_Device_stop, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(remove_driver), - /* K2 */ be_nested_str_weak(udp_server), - /* K3 */ be_nested_str_weak(stop), + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(every_250ms), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins), + /* K4 */ be_const_int(1), }), - be_str_weak(stop), + be_str_weak(every_250ms), &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 + ( &(const binstruction[16]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x88040102, // 0004 GETMBR R1 R0 K2 - 0x78060002, // 0005 JMPF R1 #0009 - 0x88040102, // 0006 GETMBR R1 R0 K2 - 0x8C040303, // 0007 GETMET R1 R1 K3 - 0x7C040200, // 0008 CALL R1 1 - 0x80000000, // 0009 RET 0 + 0x7C040200, // 0002 CALL R1 1 + 0x58040002, // 0003 LDCONST R1 K2 + 0x6008000C, // 0004 GETGBL R2 G12 + 0x880C0103, // 0005 GETMBR R3 R0 K3 + 0x7C080200, // 0006 CALL R2 1 + 0x14080202, // 0007 LT R2 R1 R2 + 0x780A0005, // 0008 JMPF R2 #000F + 0x88080103, // 0009 GETMBR R2 R0 K3 + 0x94080401, // 000A GETIDX R2 R2 R1 + 0x8C080501, // 000B GETMET R2 R2 K1 + 0x7C080200, // 000C CALL R2 1 + 0x00040304, // 000D ADD R1 R1 K4 + 0x7001FFF4, // 000E JMP #0004 + 0x80000000, // 000F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_attribute_expansion +********************************************************************/ +be_local_closure(Matter_Device_process_attribute_expansion, /* name */ + be_nested_proto( + 25, /* nstack */ + 3, /* 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 */ + 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(keys), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(stop_iteration), + /* K3 */ be_const_int(1), + /* K4 */ be_const_int(0), + }), + be_str_weak(keys_sorted), + &be_const_str_solidified, + ( &(const binstruction[45]) { /* code */ + 0x60040012, // 0000 GETGBL R1 G18 + 0x7C040000, // 0001 CALL R1 0 + 0x60080010, // 0002 GETGBL R2 G16 + 0x8C0C0100, // 0003 GETMET R3 R0 K0 + 0x7C0C0200, // 0004 CALL R3 1 + 0x7C080200, // 0005 CALL R2 1 + 0xA8020005, // 0006 EXBLK 0 #000D + 0x5C0C0400, // 0007 MOVE R3 R2 + 0x7C0C0000, // 0008 CALL R3 0 + 0x8C100301, // 0009 GETMET R4 R1 K1 + 0x5C180600, // 000A MOVE R6 R3 + 0x7C100400, // 000B CALL R4 2 + 0x7001FFF9, // 000C JMP #0007 + 0x58080002, // 000D LDCONST R2 K2 + 0xAC080200, // 000E CATCH R2 1 0 + 0xB0080000, // 000F RAISE 2 R0 R0 + 0x60080010, // 0010 GETGBL R2 G16 + 0x600C000C, // 0011 GETGBL R3 G12 + 0x5C100200, // 0012 MOVE R4 R1 + 0x7C0C0200, // 0013 CALL R3 1 + 0x040C0703, // 0014 SUB R3 R3 K3 + 0x400E0603, // 0015 CONNECT R3 K3 R3 + 0x7C080200, // 0016 CALL R2 1 + 0xA8020010, // 0017 EXBLK 0 #0029 + 0x5C0C0400, // 0018 MOVE R3 R2 + 0x7C0C0000, // 0019 CALL R3 0 + 0x94100203, // 001A GETIDX R4 R1 R3 + 0x5C140600, // 001B MOVE R5 R3 + 0x24180B04, // 001C GT R6 R5 K4 + 0x781A0008, // 001D JMPF R6 #0027 + 0x04180B03, // 001E SUB R6 R5 K3 + 0x94180206, // 001F GETIDX R6 R1 R6 + 0x24180C04, // 0020 GT R6 R6 R4 + 0x781A0004, // 0021 JMPF R6 #0027 + 0x04180B03, // 0022 SUB R6 R5 K3 + 0x94180206, // 0023 GETIDX R6 R1 R6 + 0x98040A06, // 0024 SETIDX R1 R5 R6 + 0x04140B03, // 0025 SUB R5 R5 K3 + 0x7001FFF4, // 0026 JMP #001C + 0x98040A04, // 0027 SETIDX R1 R5 R4 + 0x7001FFEE, // 0028 JMP #0018 + 0x58080002, // 0029 LDCONST R2 K2 + 0xAC080200, // 002A CATCH R2 1 0 + 0xB0080000, // 002B RAISE 2 R0 R0 + 0x80040200, // 002C RET 1 R1 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(attribute), + /* K4 */ be_nested_str_weak(plugins), + /* K5 */ be_nested_str_weak(get_endpoint), + /* K6 */ be_nested_str_weak(contains), + /* K7 */ be_nested_str_weak(get_cluster_list), + /* K8 */ be_nested_str_weak(get_attribute_list), + /* K9 */ be_nested_str_weak(push), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(status), + /* K12 */ be_nested_str_weak(matter), + /* K13 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + /* K14 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), + /* K15 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), + /* K16 */ be_nested_str_weak(UNREPORTABLE_ATTRIBUTE), + }), + be_str_weak(process_attribute_expansion), + &be_const_str_solidified, + ( &(const binstruction[206]) { /* code */ + 0x840C0000, // 0000 CLOSURE R3 P0 + 0xA4120000, // 0001 IMPORT R4 K0 + 0x88140301, // 0002 GETMBR R5 R1 K1 + 0x50180000, // 0003 LDBOOL R6 0 0 + 0x881C0302, // 0004 GETMBR R7 R1 K2 + 0x50200000, // 0005 LDBOOL R8 0 0 + 0x88240303, // 0006 GETMBR R9 R1 K3 + 0x50280000, // 0007 LDBOOL R10 0 0 + 0x882C0301, // 0008 GETMBR R11 R1 K1 + 0x4C300000, // 0009 LDNIL R12 + 0x202C160C, // 000A NE R11 R11 R12 + 0x782E0007, // 000B JMPF R11 #0014 + 0x882C0302, // 000C GETMBR R11 R1 K2 + 0x4C300000, // 000D LDNIL R12 + 0x202C160C, // 000E NE R11 R11 R12 + 0x782E0003, // 000F JMPF R11 #0014 + 0x882C0303, // 0010 GETMBR R11 R1 K3 + 0x4C300000, // 0011 LDNIL R12 + 0x202C160C, // 0012 NE R11 R11 R12 + 0x742E0000, // 0013 JMPT R11 #0015 + 0x502C0001, // 0014 LDBOOL R11 0 1 + 0x502C0200, // 0015 LDBOOL R11 1 0 + 0x60300013, // 0016 GETGBL R12 G19 + 0x7C300000, // 0017 CALL R12 0 + 0x60340010, // 0018 GETGBL R13 G16 + 0x88380104, // 0019 GETMBR R14 R0 K4 + 0x7C340200, // 001A CALL R13 1 + 0xA8020055, // 001B EXBLK 0 #0072 + 0x5C381A00, // 001C MOVE R14 R13 + 0x7C380000, // 001D CALL R14 0 + 0x8C3C1D05, // 001E GETMET R15 R14 K5 + 0x7C3C0200, // 001F CALL R15 1 + 0x4C400000, // 0020 LDNIL R16 + 0x20400A10, // 0021 NE R16 R5 R16 + 0x78420002, // 0022 JMPF R16 #0026 + 0x20401E05, // 0023 NE R16 R15 R5 + 0x78420000, // 0024 JMPF R16 #0026 + 0x7001FFF5, // 0025 JMP #001C + 0x8C401906, // 0026 GETMET R16 R12 K6 + 0x5C481E00, // 0027 MOVE R18 R15 + 0x7C400400, // 0028 CALL R16 2 + 0x74420002, // 0029 JMPT R16 #002D + 0x60400013, // 002A GETGBL R16 G19 + 0x7C400000, // 002B CALL R16 0 + 0x98301E10, // 002C SETIDX R12 R15 R16 + 0x50180200, // 002D LDBOOL R6 1 0 + 0x8C401D07, // 002E GETMET R16 R14 K7 + 0x5C481E00, // 002F MOVE R18 R15 + 0x7C400400, // 0030 CALL R16 2 + 0x60440010, // 0031 GETGBL R17 G16 + 0x5C482000, // 0032 MOVE R18 R16 + 0x7C440200, // 0033 CALL R17 1 + 0xA8020038, // 0034 EXBLK 0 #006E + 0x5C482200, // 0035 MOVE R18 R17 + 0x7C480000, // 0036 CALL R18 0 + 0x4C4C0000, // 0037 LDNIL R19 + 0x204C0E13, // 0038 NE R19 R7 R19 + 0x784E0002, // 0039 JMPF R19 #003D + 0x204C2407, // 003A NE R19 R18 R7 + 0x784E0000, // 003B JMPF R19 #003D + 0x7001FFF7, // 003C JMP #0035 + 0x944C180F, // 003D GETIDX R19 R12 R15 + 0x8C4C2706, // 003E GETMET R19 R19 K6 + 0x5C542400, // 003F MOVE R21 R18 + 0x7C4C0400, // 0040 CALL R19 2 + 0x744E0003, // 0041 JMPT R19 #0046 + 0x944C180F, // 0042 GETIDX R19 R12 R15 + 0x60500013, // 0043 GETGBL R20 G19 + 0x7C500000, // 0044 CALL R20 0 + 0x984C2414, // 0045 SETIDX R19 R18 R20 + 0x50200200, // 0046 LDBOOL R8 1 0 + 0x8C4C1D08, // 0047 GETMET R19 R14 K8 + 0x5C541E00, // 0048 MOVE R21 R15 + 0x5C582400, // 0049 MOVE R22 R18 + 0x7C4C0600, // 004A CALL R19 3 + 0x60500010, // 004B GETGBL R20 G16 + 0x5C542600, // 004C MOVE R21 R19 + 0x7C500200, // 004D CALL R20 1 + 0xA802001A, // 004E EXBLK 0 #006A + 0x5C542800, // 004F MOVE R21 R20 + 0x7C540000, // 0050 CALL R21 0 + 0x4C580000, // 0051 LDNIL R22 + 0x20581216, // 0052 NE R22 R9 R22 + 0x785A0002, // 0053 JMPF R22 #0057 + 0x20582A09, // 0054 NE R22 R21 R9 + 0x785A0000, // 0055 JMPF R22 #0057 + 0x7001FFF7, // 0056 JMP #004F + 0x9458180F, // 0057 GETIDX R22 R12 R15 + 0x94582C12, // 0058 GETIDX R22 R22 R18 + 0x8C582D06, // 0059 GETMET R22 R22 K6 + 0x5C602A00, // 005A MOVE R24 R21 + 0x7C580400, // 005B CALL R22 2 + 0x745A0004, // 005C JMPT R22 #0062 + 0x9458180F, // 005D GETIDX R22 R12 R15 + 0x94582C12, // 005E GETIDX R22 R22 R18 + 0x605C0012, // 005F GETGBL R23 G18 + 0x7C5C0000, // 0060 CALL R23 0 + 0x98582A17, // 0061 SETIDX R22 R21 R23 + 0x50280200, // 0062 LDBOOL R10 1 0 + 0x9458180F, // 0063 GETIDX R22 R12 R15 + 0x94582C12, // 0064 GETIDX R22 R22 R18 + 0x94582C15, // 0065 GETIDX R22 R22 R21 + 0x8C582D09, // 0066 GETMET R22 R22 K9 + 0x5C601C00, // 0067 MOVE R24 R14 + 0x7C580400, // 0068 CALL R22 2 + 0x7001FFE4, // 0069 JMP #004F + 0x5850000A, // 006A LDCONST R20 K10 + 0xAC500200, // 006B CATCH R20 1 0 + 0xB0080000, // 006C RAISE 2 R0 R0 + 0x7001FFC6, // 006D JMP #0035 + 0x5844000A, // 006E LDCONST R17 K10 + 0xAC440200, // 006F CATCH R17 1 0 + 0xB0080000, // 0070 RAISE 2 R0 R0 + 0x7001FFA9, // 0071 JMP #001C + 0x5834000A, // 0072 LDCONST R13 K10 + 0xAC340200, // 0073 CATCH R13 1 0 + 0xB0080000, // 0074 RAISE 2 R0 R0 + 0x60340010, // 0075 GETGBL R13 G16 + 0x5C380600, // 0076 MOVE R14 R3 + 0x5C3C1800, // 0077 MOVE R15 R12 + 0x7C380200, // 0078 CALL R14 1 + 0x7C340200, // 0079 CALL R13 1 + 0xA8020033, // 007A EXBLK 0 #00AF + 0x5C381A00, // 007B MOVE R14 R13 + 0x7C380000, // 007C CALL R14 0 + 0x603C0010, // 007D GETGBL R15 G16 + 0x5C400600, // 007E MOVE R16 R3 + 0x9444180E, // 007F GETIDX R17 R12 R14 + 0x7C400200, // 0080 CALL R16 1 + 0x7C3C0200, // 0081 CALL R15 1 + 0xA8020027, // 0082 EXBLK 0 #00AB + 0x5C401E00, // 0083 MOVE R16 R15 + 0x7C400000, // 0084 CALL R16 0 + 0x60440010, // 0085 GETGBL R17 G16 + 0x5C480600, // 0086 MOVE R18 R3 + 0x944C180E, // 0087 GETIDX R19 R12 R14 + 0x944C2610, // 0088 GETIDX R19 R19 R16 + 0x7C480200, // 0089 CALL R18 1 + 0x7C440200, // 008A CALL R17 1 + 0xA802001A, // 008B EXBLK 0 #00A7 + 0x5C482200, // 008C MOVE R18 R17 + 0x7C480000, // 008D CALL R18 0 + 0x604C0010, // 008E GETGBL R19 G16 + 0x9450180E, // 008F GETIDX R20 R12 R14 + 0x94502810, // 0090 GETIDX R20 R20 R16 + 0x94502812, // 0091 GETIDX R20 R20 R18 + 0x7C4C0200, // 0092 CALL R19 1 + 0xA802000E, // 0093 EXBLK 0 #00A3 + 0x5C502600, // 0094 MOVE R20 R19 + 0x7C500000, // 0095 CALL R20 0 + 0x9006020E, // 0096 SETMBR R1 K1 R14 + 0x90060410, // 0097 SETMBR R1 K2 R16 + 0x90060612, // 0098 SETMBR R1 K3 R18 + 0x5C540400, // 0099 MOVE R21 R2 + 0x5C582800, // 009A MOVE R22 R20 + 0x5C5C0200, // 009B MOVE R23 R1 + 0x5C601600, // 009C MOVE R24 R11 + 0x7C540600, // 009D CALL R21 3 + 0x782E0002, // 009E JMPF R11 #00A2 + 0x78560001, // 009F JMPF R21 #00A2 + 0xA8040004, // 00A0 EXBLK 1 4 + 0x80002C00, // 00A1 RET 0 + 0x7001FFF0, // 00A2 JMP #0094 + 0x584C000A, // 00A3 LDCONST R19 K10 + 0xAC4C0200, // 00A4 CATCH R19 1 0 + 0xB0080000, // 00A5 RAISE 2 R0 R0 + 0x7001FFE4, // 00A6 JMP #008C + 0x5844000A, // 00A7 LDCONST R17 K10 + 0xAC440200, // 00A8 CATCH R17 1 0 + 0xB0080000, // 00A9 RAISE 2 R0 R0 + 0x7001FFD7, // 00AA JMP #0083 + 0x583C000A, // 00AB LDCONST R15 K10 + 0xAC3C0200, // 00AC CATCH R15 1 0 + 0xB0080000, // 00AD RAISE 2 R0 R0 + 0x7001FFCB, // 00AE JMP #007B + 0x5834000A, // 00AF LDCONST R13 K10 + 0xAC340200, // 00B0 CATCH R13 1 0 + 0xB0080000, // 00B1 RAISE 2 R0 R0 + 0x782E0019, // 00B2 JMPF R11 #00CD + 0x5C340C00, // 00B3 MOVE R13 R6 + 0x74360003, // 00B4 JMPT R13 #00B9 + 0xB8361800, // 00B5 GETNGBL R13 K12 + 0x88341B0D, // 00B6 GETMBR R13 R13 K13 + 0x9006160D, // 00B7 SETMBR R1 K11 R13 + 0x7002000E, // 00B8 JMP #00C8 + 0x5C341000, // 00B9 MOVE R13 R8 + 0x74360003, // 00BA JMPT R13 #00BF + 0xB8361800, // 00BB GETNGBL R13 K12 + 0x88341B0E, // 00BC GETMBR R13 R13 K14 + 0x9006160D, // 00BD SETMBR R1 K11 R13 + 0x70020008, // 00BE JMP #00C8 + 0x5C341400, // 00BF MOVE R13 R10 + 0x74360003, // 00C0 JMPT R13 #00C5 + 0xB8361800, // 00C1 GETNGBL R13 K12 + 0x88341B0F, // 00C2 GETMBR R13 R13 K15 + 0x9006160D, // 00C3 SETMBR R1 K11 R13 + 0x70020002, // 00C4 JMP #00C8 + 0xB8361800, // 00C5 GETNGBL R13 K12 + 0x88341B10, // 00C6 GETMBR R13 R13 K16 + 0x9006160D, // 00C7 SETMBR R1 K11 R13 + 0x5C340400, // 00C8 MOVE R13 R2 + 0x4C380000, // 00C9 LDNIL R14 + 0x5C3C0200, // 00CA MOVE R15 R1 + 0x50400200, // 00CB LDBOOL R16 1 0 + 0x7C340600, // 00CC CALL R13 3 + 0x80000000, // 00CD RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _compute_pbkdf +********************************************************************/ +be_local_closure(Matter_Device__compute_pbkdf, /* name */ + be_nested_proto( + 14, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(add), + /* K3 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), + /* K4 */ be_nested_str_weak(derive), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(root_w0), + /* K7 */ be_nested_str_weak(EC_P256), + /* K8 */ be_nested_str_weak(mod), + /* K9 */ be_nested_str_weak(root_L), + /* K10 */ be_nested_str_weak(public_key), + }), + be_str_weak(_compute_pbkdf), + &be_const_str_solidified, + ( &(const binstruction[41]) { /* code */ + 0xA4120000, // 0000 IMPORT R4 K0 + 0xA4160200, // 0001 IMPORT R5 K1 + 0x60180015, // 0002 GETGBL R6 G21 + 0x7C180000, // 0003 CALL R6 0 + 0x8C180D02, // 0004 GETMET R6 R6 K2 + 0x5C200200, // 0005 MOVE R8 R1 + 0x54260003, // 0006 LDINT R9 4 + 0x7C180600, // 0007 CALL R6 3 + 0x8C1C0903, // 0008 GETMET R7 R4 K3 + 0x7C1C0200, // 0009 CALL R7 1 + 0x8C1C0F04, // 000A GETMET R7 R7 K4 + 0x5C240C00, // 000B MOVE R9 R6 + 0x5C280600, // 000C MOVE R10 R3 + 0x5C2C0400, // 000D MOVE R11 R2 + 0x5432004F, // 000E LDINT R12 80 + 0x7C1C0A00, // 000F CALL R7 5 + 0x54220026, // 0010 LDINT R8 39 + 0x40220A08, // 0011 CONNECT R8 K5 R8 + 0x94200E08, // 0012 GETIDX R8 R7 R8 + 0x54260027, // 0013 LDINT R9 40 + 0x542A004E, // 0014 LDINT R10 79 + 0x4024120A, // 0015 CONNECT R9 R9 R10 + 0x94240E09, // 0016 GETIDX R9 R7 R9 + 0x8C280907, // 0017 GETMET R10 R4 K7 + 0x7C280200, // 0018 CALL R10 1 + 0x8C281508, // 0019 GETMET R10 R10 K8 + 0x5C301000, // 001A MOVE R12 R8 + 0x7C280400, // 001B CALL R10 2 + 0x90020C0A, // 001C SETMBR R0 K6 R10 + 0x8C280907, // 001D GETMET R10 R4 K7 + 0x7C280200, // 001E CALL R10 1 + 0x8C281508, // 001F GETMET R10 R10 K8 + 0x5C301200, // 0020 MOVE R12 R9 + 0x7C280400, // 0021 CALL R10 2 + 0x8C2C0907, // 0022 GETMET R11 R4 K7 + 0x7C2C0200, // 0023 CALL R11 1 + 0x8C2C170A, // 0024 GETMET R11 R11 K10 + 0x5C341400, // 0025 MOVE R13 R10 + 0x7C2C0400, // 0026 CALL R11 2 + 0x9002120B, // 0027 SETMBR R0 K9 R11 + 0x80000000, // 0028 RET 0 }) ) ); @@ -3434,7 +1088,7 @@ be_local_closure(Matter_Device_stop, /* name */ ********************************************************************/ be_local_closure(Matter_Device_bridge_remove_endpoint, /* name */ be_nested_proto( - 11, /* nstack */ + 13, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3442,7 +1096,7 @@ be_local_closure(Matter_Device_bridge_remove_endpoint, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ + ( &(const bvalue[20]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(json), /* K2 */ be_nested_str_weak(plugins_config), @@ -3451,19 +1105,22 @@ be_local_closure(Matter_Device_bridge_remove_endpoint, /* name */ /* K5 */ be_nested_str_weak(log), /* K6 */ be_nested_str_weak(MTR_X3A_X20Cannot_X20remove_X20an_X20enpoint_X20not_X20configured_X3A_X20), /* K7 */ be_const_int(3), - /* K8 */ be_nested_str_weak(remove), - /* K9 */ be_nested_str_weak(plugins_persist), - /* K10 */ be_nested_str_weak(save_param), - /* K11 */ be_nested_str_weak(signal_endpoints_changed), - /* K12 */ be_const_int(0), - /* K13 */ be_nested_str_weak(plugins), - /* K14 */ be_nested_str_weak(get_endpoint), - /* K15 */ be_const_int(1), - /* K16 */ be_nested_str_weak(clean_remotes), + /* K8 */ be_nested_str_weak(format), + /* K9 */ be_nested_str_weak(MTR_X3A_X20deleting_X20endpoint_X20_X3D_X20_X25i), + /* K10 */ be_const_int(2), + /* K11 */ be_nested_str_weak(remove), + /* K12 */ be_nested_str_weak(plugins_persist), + /* K13 */ be_nested_str_weak(save_param), + /* K14 */ be_nested_str_weak(signal_endpoints_changed), + /* K15 */ be_const_int(0), + /* K16 */ be_nested_str_weak(plugins), + /* K17 */ be_nested_str_weak(get_endpoint), + /* K18 */ be_const_int(1), + /* K19 */ be_nested_str_weak(clean_remotes), }), be_str_weak(bridge_remove_endpoint), &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ + ( &(const binstruction[61]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 0x60100008, // 0002 GETGBL R4 G8 @@ -3482,419 +1139,49 @@ be_local_closure(Matter_Device_bridge_remove_endpoint, /* name */ 0x58280007, // 000F LDCONST R10 K7 0x7C1C0600, // 0010 CALL R7 3 0x80000E00, // 0011 RET 0 - 0x881C0102, // 0012 GETMBR R7 R0 K2 - 0x8C1C0F08, // 0013 GETMET R7 R7 K8 - 0x5C240800, // 0014 MOVE R9 R4 - 0x7C1C0400, // 0015 CALL R7 2 - 0x501C0200, // 0016 LDBOOL R7 1 0 - 0x90021207, // 0017 SETMBR R0 K9 R7 - 0x8C1C010A, // 0018 GETMET R7 R0 K10 - 0x7C1C0200, // 0019 CALL R7 1 - 0x8C1C010B, // 001A GETMET R7 R0 K11 - 0x7C1C0200, // 001B CALL R7 1 - 0x581C000C, // 001C LDCONST R7 K12 - 0x6020000C, // 001D GETGBL R8 G12 - 0x8824010D, // 001E GETMBR R9 R0 K13 - 0x7C200200, // 001F CALL R8 1 - 0x14200E08, // 0020 LT R8 R7 R8 - 0x7822000F, // 0021 JMPF R8 #0032 - 0x8820010D, // 0022 GETMBR R8 R0 K13 - 0x94201007, // 0023 GETIDX R8 R8 R7 - 0x8C20110E, // 0024 GETMET R8 R8 K14 - 0x7C200200, // 0025 CALL R8 1 - 0x1C200208, // 0026 EQ R8 R1 R8 - 0x78220007, // 0027 JMPF R8 #0030 - 0x8820010D, // 0028 GETMBR R8 R0 K13 - 0x8C201108, // 0029 GETMET R8 R8 K8 - 0x5C280E00, // 002A MOVE R10 R7 - 0x7C200400, // 002B CALL R8 2 - 0x8C20010B, // 002C GETMET R8 R0 K11 + 0xB81E0800, // 0012 GETNGBL R7 K4 + 0x8C1C0F05, // 0013 GETMET R7 R7 K5 + 0x8C240508, // 0014 GETMET R9 R2 K8 + 0x582C0009, // 0015 LDCONST R11 K9 + 0x5C300200, // 0016 MOVE R12 R1 + 0x7C240600, // 0017 CALL R9 3 + 0x5828000A, // 0018 LDCONST R10 K10 + 0x7C1C0600, // 0019 CALL R7 3 + 0x881C0102, // 001A GETMBR R7 R0 K2 + 0x8C1C0F0B, // 001B GETMET R7 R7 K11 + 0x5C240800, // 001C MOVE R9 R4 + 0x7C1C0400, // 001D CALL R7 2 + 0x501C0200, // 001E LDBOOL R7 1 0 + 0x90021807, // 001F SETMBR R0 K12 R7 + 0x8C1C010D, // 0020 GETMET R7 R0 K13 + 0x7C1C0200, // 0021 CALL R7 1 + 0x8C1C010E, // 0022 GETMET R7 R0 K14 + 0x7C1C0200, // 0023 CALL R7 1 + 0x581C000F, // 0024 LDCONST R7 K15 + 0x6020000C, // 0025 GETGBL R8 G12 + 0x88240110, // 0026 GETMBR R9 R0 K16 + 0x7C200200, // 0027 CALL R8 1 + 0x14200E08, // 0028 LT R8 R7 R8 + 0x7822000F, // 0029 JMPF R8 #003A + 0x88200110, // 002A GETMBR R8 R0 K16 + 0x94201007, // 002B GETIDX R8 R8 R7 + 0x8C201111, // 002C GETMET R8 R8 K17 0x7C200200, // 002D CALL R8 1 - 0x70020002, // 002E JMP #0032 - 0x70020000, // 002F JMP #0031 - 0x001C0F0F, // 0030 ADD R7 R7 K15 - 0x7001FFEA, // 0031 JMP #001D - 0x8C200110, // 0032 GETMET R8 R0 K16 - 0x7C200200, // 0033 CALL R8 1 - 0x80000000, // 0034 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _trigger_read_sensors -********************************************************************/ -be_local_closure(Matter_Device__trigger_read_sensors, /* 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[11]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(read_sensors), - /* K3 */ be_nested_str_weak(load), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(plugins), - /* K6 */ be_nested_str_weak(parse_sensors), - /* K7 */ be_const_int(1), - /* K8 */ be_nested_str_weak(log), - /* K9 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), - /* K10 */ be_const_int(3), - }), - be_str_weak(_trigger_read_sensors), - &be_const_str_solidified, - ( &(const binstruction[37]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x7C080200, // 0003 CALL R2 1 - 0x4C0C0000, // 0004 LDNIL R3 - 0x1C0C0403, // 0005 EQ R3 R2 R3 - 0x780E0000, // 0006 JMPF R3 #0008 - 0x80000600, // 0007 RET 0 - 0x8C0C0303, // 0008 GETMET R3 R1 K3 - 0x5C140400, // 0009 MOVE R5 R2 - 0x7C0C0400, // 000A CALL R3 2 - 0x4C100000, // 000B LDNIL R4 - 0x20100604, // 000C NE R4 R3 R4 - 0x7812000D, // 000D JMPF R4 #001C - 0x58100004, // 000E LDCONST R4 K4 - 0x6014000C, // 000F GETGBL R5 G12 - 0x88180105, // 0010 GETMBR R6 R0 K5 - 0x7C140200, // 0011 CALL R5 1 - 0x14140805, // 0012 LT R5 R4 R5 - 0x78160006, // 0013 JMPF R5 #001B - 0x88140105, // 0014 GETMBR R5 R0 K5 - 0x94140A04, // 0015 GETIDX R5 R5 R4 - 0x8C140B06, // 0016 GETMET R5 R5 K6 - 0x5C1C0600, // 0017 MOVE R7 R3 - 0x7C140400, // 0018 CALL R5 2 - 0x00100907, // 0019 ADD R4 R4 K7 - 0x7001FFF3, // 001A JMP #000F - 0x70020007, // 001B JMP #0024 - 0xB8120200, // 001C GETNGBL R4 K1 - 0x8C100908, // 001D GETMET R4 R4 K8 - 0x60180008, // 001E GETGBL R6 G8 - 0x5C1C0400, // 001F MOVE R7 R2 - 0x7C180200, // 0020 CALL R6 1 - 0x001A1206, // 0021 ADD R6 K9 R6 - 0x581C000A, // 0022 LDCONST R7 K10 - 0x7C100600, // 0023 CALL R4 3 - 0x80000000, // 0024 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: save_param -********************************************************************/ -be_local_closure(Matter_Device_save_param, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(json), - /* K2 */ be_nested_str_weak(format), - /* K3 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), - /* K4 */ be_nested_str_weak(root_discriminator), - /* K5 */ be_nested_str_weak(root_passcode), - /* K6 */ be_nested_str_weak(ipv4only), - /* K7 */ be_nested_str_weak(true), - /* K8 */ be_nested_str_weak(false), - /* K9 */ be_nested_str_weak(next_ep), - /* K10 */ be_nested_str_weak(plugins_persist), - /* K11 */ be_nested_str_weak(_X2C_X22config_X22_X3A), - /* K12 */ be_nested_str_weak(dump), - /* K13 */ be_nested_str_weak(plugins_config), - /* K14 */ be_nested_str_weak(_X7D), - /* K15 */ be_nested_str_weak(FILENAME), - /* 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(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), - /* K22 */ be_nested_str_weak(_X20and_X20configuration), - /* K23 */ be_nested_str_weak(), - /* K24 */ be_const_int(2), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), - /* K26 */ be_nested_str_weak(_X7C), - }), - be_str_weak(save_param), - &be_const_str_solidified, - ( &(const binstruction[66]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x88180104, // 0004 GETMBR R6 R0 K4 - 0x881C0105, // 0005 GETMBR R7 R0 K5 - 0x88200106, // 0006 GETMBR R8 R0 K6 - 0x78220001, // 0007 JMPF R8 #000A - 0x58200007, // 0008 LDCONST R8 K7 - 0x70020000, // 0009 JMP #000B - 0x58200008, // 000A LDCONST R8 K8 - 0x88240109, // 000B GETMBR R9 R0 K9 - 0x7C0C0C00, // 000C CALL R3 6 - 0x8810010A, // 000D GETMBR R4 R0 K10 - 0x78120004, // 000E JMPF R4 #0014 - 0x000C070B, // 000F ADD R3 R3 K11 - 0x8C10050C, // 0010 GETMET R4 R2 K12 - 0x8818010D, // 0011 GETMBR R6 R0 K13 - 0x7C100400, // 0012 CALL R4 2 - 0x000C0604, // 0013 ADD R3 R3 R4 - 0x000C070E, // 0014 ADD R3 R3 K14 - 0xA8020018, // 0015 EXBLK 0 #002F - 0x60100011, // 0016 GETGBL R4 G17 - 0x8814010F, // 0017 GETMBR R5 R0 K15 - 0x58180010, // 0018 LDCONST R6 K16 - 0x7C100400, // 0019 CALL R4 2 - 0x8C140911, // 001A GETMET R5 R4 K17 - 0x5C1C0600, // 001B MOVE R7 R3 - 0x7C140400, // 001C CALL R5 2 - 0x8C140912, // 001D GETMET R5 R4 K18 - 0x7C140200, // 001E CALL R5 1 - 0xB8162600, // 001F GETNGBL R5 K19 - 0x8C140B14, // 0020 GETMET R5 R5 K20 - 0x8C1C0302, // 0021 GETMET R7 R1 K2 - 0x58240015, // 0022 LDCONST R9 K21 - 0x8828010A, // 0023 GETMBR R10 R0 K10 - 0x782A0001, // 0024 JMPF R10 #0027 - 0x58280016, // 0025 LDCONST R10 K22 - 0x70020000, // 0026 JMP #0028 - 0x58280017, // 0027 LDCONST R10 K23 - 0x7C1C0600, // 0028 CALL R7 3 - 0x58200018, // 0029 LDCONST R8 K24 - 0x7C140600, // 002A CALL R5 3 - 0xA8040001, // 002B EXBLK 1 1 - 0x80040600, // 002C RET 1 R3 - 0xA8040001, // 002D EXBLK 1 1 - 0x70020011, // 002E JMP #0041 - 0xAC100002, // 002F CATCH R4 0 2 - 0x7002000E, // 0030 JMP #0040 - 0xB81A2600, // 0031 GETNGBL R6 K19 - 0x8C180D14, // 0032 GETMET R6 R6 K20 - 0x60200008, // 0033 GETGBL R8 G8 - 0x5C240800, // 0034 MOVE R9 R4 + 0x1C200208, // 002E EQ R8 R1 R8 + 0x78220007, // 002F JMPF R8 #0038 + 0x88200110, // 0030 GETMBR R8 R0 K16 + 0x8C20110B, // 0031 GETMET R8 R8 K11 + 0x5C280E00, // 0032 MOVE R10 R7 + 0x7C200400, // 0033 CALL R8 2 + 0x8C20010E, // 0034 GETMET R8 R0 K14 0x7C200200, // 0035 CALL R8 1 - 0x00223208, // 0036 ADD R8 K25 R8 - 0x0020111A, // 0037 ADD R8 R8 K26 - 0x60240008, // 0038 GETGBL R9 G8 - 0x5C280A00, // 0039 MOVE R10 R5 - 0x7C240200, // 003A CALL R9 1 - 0x00201009, // 003B ADD R8 R8 R9 - 0x58240018, // 003C LDCONST R9 K24 - 0x7C180600, // 003D CALL R6 3 - 0x80040600, // 003E RET 1 R3 - 0x70020000, // 003F JMP #0041 - 0xB0080000, // 0040 RAISE 2 R0 R0 - 0x80000000, // 0041 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: k2l_num -********************************************************************/ -be_local_closure(Matter_Device_k2l_num, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 4, /* 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_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(1), - /* K5 */ be_const_int(0), - }), - be_str_weak(k2l_num), - &be_const_str_solidified, - ( &(const binstruction[52]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0003, // 0004 EQ R3 R0 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x80040400, // 0006 RET 1 R2 - 0x600C0010, // 0007 GETGBL R3 G16 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x7C0C0200, // 000A CALL R3 1 - 0xA8020007, // 000B EXBLK 0 #0014 - 0x5C100600, // 000C MOVE R4 R3 - 0x7C100000, // 000D CALL R4 0 - 0x8C140502, // 000E GETMET R5 R2 K2 - 0x601C0009, // 000F GETGBL R7 G9 - 0x5C200800, // 0010 MOVE R8 R4 - 0x7C1C0200, // 0011 CALL R7 1 - 0x7C140400, // 0012 CALL R5 2 - 0x7001FFF7, // 0013 JMP #000C - 0x580C0003, // 0014 LDCONST R3 K3 - 0xAC0C0200, // 0015 CATCH R3 1 0 - 0xB0080000, // 0016 RAISE 2 R0 R0 - 0x600C0010, // 0017 GETGBL R3 G16 - 0x6010000C, // 0018 GETGBL R4 G12 - 0x5C140400, // 0019 MOVE R5 R2 - 0x7C100200, // 001A CALL R4 1 - 0x04100904, // 001B SUB R4 R4 K4 - 0x40120804, // 001C CONNECT R4 K4 R4 - 0x7C0C0200, // 001D CALL R3 1 - 0xA8020010, // 001E EXBLK 0 #0030 - 0x5C100600, // 001F MOVE R4 R3 - 0x7C100000, // 0020 CALL R4 0 - 0x94140404, // 0021 GETIDX R5 R2 R4 - 0x5C180800, // 0022 MOVE R6 R4 - 0x241C0D05, // 0023 GT R7 R6 K5 - 0x781E0008, // 0024 JMPF R7 #002E - 0x041C0D04, // 0025 SUB R7 R6 K4 - 0x941C0407, // 0026 GETIDX R7 R2 R7 - 0x241C0E05, // 0027 GT R7 R7 R5 - 0x781E0004, // 0028 JMPF R7 #002E - 0x041C0D04, // 0029 SUB R7 R6 K4 - 0x941C0407, // 002A GETIDX R7 R2 R7 - 0x98080C07, // 002B SETIDX R2 R6 R7 - 0x04180D04, // 002C SUB R6 R6 K4 - 0x7001FFF4, // 002D JMP #0023 - 0x98080C05, // 002E SETIDX R2 R6 R5 - 0x7001FFEE, // 002F JMP #001F - 0x580C0003, // 0030 LDCONST R3 K3 - 0xAC0C0200, // 0031 CATCH R3 1 0 - 0xB0080000, // 0032 RAISE 2 R0 R0 - 0x80040400, // 0033 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_manual_pairing_code -********************************************************************/ -be_local_closure(Matter_Device_compute_manual_pairing_code, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(root_discriminator), - /* K2 */ be_nested_str_weak(root_passcode), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(_X251i_X2505i_X2504i), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(Verhoeff), - /* K7 */ be_nested_str_weak(checksum), - }), - be_str_weak(compute_manual_pairing_code), - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x540E0FFE, // 0002 LDINT R3 4095 - 0x2C080403, // 0003 AND R2 R2 R3 - 0x540E0009, // 0004 LDINT R3 10 - 0x3C080403, // 0005 SHR R2 R2 R3 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x541202FF, // 0007 LDINT R4 768 - 0x2C0C0604, // 0008 AND R3 R3 R4 - 0x54120005, // 0009 LDINT R4 6 - 0x380C0604, // 000A SHL R3 R3 R4 - 0x88100102, // 000B GETMBR R4 R0 K2 - 0x54163FFE, // 000C LDINT R5 16383 - 0x2C100805, // 000D AND R4 R4 R5 - 0x300C0604, // 000E OR R3 R3 R4 - 0x88100102, // 000F GETMBR R4 R0 K2 - 0x5416000D, // 0010 LDINT R5 14 - 0x3C100805, // 0011 SHR R4 R4 R5 - 0x8C140303, // 0012 GETMET R5 R1 K3 - 0x581C0004, // 0013 LDCONST R7 K4 - 0x5C200400, // 0014 MOVE R8 R2 - 0x5C240600, // 0015 MOVE R9 R3 - 0x5C280800, // 0016 MOVE R10 R4 - 0x7C140A00, // 0017 CALL R5 5 - 0xB81A0A00, // 0018 GETNGBL R6 K5 - 0x88180D06, // 0019 GETMBR R6 R6 K6 - 0x8C180D07, // 001A GETMET R6 R6 K7 - 0x5C200A00, // 001B MOVE R8 R5 - 0x7C180400, // 001C CALL R6 2 - 0x00140A06, // 001D ADD R5 R5 R6 - 0x80040A00, // 001E RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_operational_discovery -********************************************************************/ -be_local_closure(Matter_Device_start_operational_discovery, /* 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_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(mdns), - /* K2 */ be_nested_str_weak(string), - /* K3 */ be_nested_str_weak(stop_basic_commissioning), - /* K4 */ be_nested_str_weak(root_w0), - /* K5 */ be_nested_str_weak(root_L), - /* K6 */ be_nested_str_weak(mdns_announce_op_discovery), - }), - be_str_weak(start_operational_discovery), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xA4120400, // 0002 IMPORT R4 K2 - 0x8C140103, // 0003 GETMET R5 R0 K3 - 0x7C140200, // 0004 CALL R5 1 - 0x4C140000, // 0005 LDNIL R5 - 0x90020805, // 0006 SETMBR R0 K4 R5 - 0x4C140000, // 0007 LDNIL R5 - 0x90020A05, // 0008 SETMBR R0 K5 R5 - 0x8C140106, // 0009 GETMET R5 R0 K6 - 0x5C1C0200, // 000A MOVE R7 R1 - 0x7C140400, // 000B CALL R5 2 - 0x80000000, // 000C RET 0 + 0x70020002, // 0036 JMP #003A + 0x70020000, // 0037 JMP #0039 + 0x001C0F12, // 0038 ADD R7 R7 K18 + 0x7001FFEA, // 0039 JMP #0025 + 0x8C200113, // 003A GETMET R8 R0 K19 + 0x7C200200, // 003B CALL R8 1 + 0x80000000, // 003C RET 0 }) ) ); @@ -3964,99 +1251,254 @@ be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ /******************************************************************** -** Solidified function: bridge_add_endpoint +** Solidified function: remove_fabric ********************************************************************/ -be_local_closure(Matter_Device_bridge_add_endpoint, /* name */ +be_local_closure(Matter_Device_remove_fabric, /* name */ + be_nested_proto( + 10, /* 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(sessions), + /* K1 */ be_nested_str_weak(find_children_fabrics), + /* K2 */ be_nested_str_weak(get_fabric_index), + /* K3 */ be_nested_str_weak(find_fabric_by_index), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), + /* K7 */ be_nested_str_weak(get_fabric_id), + /* K8 */ be_nested_str_weak(copy), + /* K9 */ be_nested_str_weak(reverse), + /* K10 */ be_nested_str_weak(tohex), + /* K11 */ be_const_int(2), + /* K12 */ be_nested_str_weak(message_handler), + /* K13 */ be_nested_str_weak(im), + /* K14 */ be_nested_str_weak(subs_shop), + /* K15 */ be_nested_str_weak(remove_by_fabric), + /* K16 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K17 */ be_nested_str_weak(remove_fabric), + /* K18 */ be_nested_str_weak(stop_iteration), + /* K19 */ be_nested_str_weak(save_fabrics), + }), + be_str_weak(remove_fabric), + &be_const_str_solidified, + ( &(const binstruction[56]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x8C100302, // 0002 GETMET R4 R1 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x7C080400, // 0004 CALL R2 2 + 0x4C0C0000, // 0005 LDNIL R3 + 0x1C0C0403, // 0006 EQ R3 R2 R3 + 0x780E0000, // 0007 JMPF R3 #0009 + 0x80000600, // 0008 RET 0 + 0x600C0010, // 0009 GETGBL R3 G16 + 0x5C100400, // 000A MOVE R4 R2 + 0x7C0C0200, // 000B CALL R3 1 + 0xA8020023, // 000C EXBLK 0 #0031 + 0x5C100600, // 000D MOVE R4 R3 + 0x7C100000, // 000E CALL R4 0 + 0x88140100, // 000F GETMBR R5 R0 K0 + 0x8C140B03, // 0010 GETMET R5 R5 K3 + 0x5C1C0800, // 0011 MOVE R7 R4 + 0x7C140400, // 0012 CALL R5 2 + 0x4C180000, // 0013 LDNIL R6 + 0x20180A06, // 0014 NE R6 R5 R6 + 0x781A0019, // 0015 JMPF R6 #0030 + 0xB81A0800, // 0016 GETNGBL R6 K4 + 0x8C180D05, // 0017 GETMET R6 R6 K5 + 0x8C200B07, // 0018 GETMET R8 R5 K7 + 0x7C200200, // 0019 CALL R8 1 + 0x8C201108, // 001A GETMET R8 R8 K8 + 0x7C200200, // 001B CALL R8 1 + 0x8C201109, // 001C GETMET R8 R8 K9 + 0x7C200200, // 001D CALL R8 1 + 0x8C20110A, // 001E GETMET R8 R8 K10 + 0x7C200200, // 001F CALL R8 1 + 0x00220C08, // 0020 ADD R8 K6 R8 + 0x5824000B, // 0021 LDCONST R9 K11 + 0x7C180600, // 0022 CALL R6 3 + 0x8818010C, // 0023 GETMBR R6 R0 K12 + 0x88180D0D, // 0024 GETMBR R6 R6 K13 + 0x88180D0E, // 0025 GETMBR R6 R6 K14 + 0x8C180D0F, // 0026 GETMET R6 R6 K15 + 0x5C200A00, // 0027 MOVE R8 R5 + 0x7C180400, // 0028 CALL R6 2 + 0x8C180110, // 0029 GETMET R6 R0 K16 + 0x5C200A00, // 002A MOVE R8 R5 + 0x7C180400, // 002B CALL R6 2 + 0x88180100, // 002C GETMBR R6 R0 K0 + 0x8C180D11, // 002D GETMET R6 R6 K17 + 0x5C200A00, // 002E MOVE R8 R5 + 0x7C180400, // 002F CALL R6 2 + 0x7001FFDB, // 0030 JMP #000D + 0x580C0012, // 0031 LDCONST R3 K18 + 0xAC0C0200, // 0032 CATCH R3 1 0 + 0xB0080000, // 0033 RAISE 2 R0 R0 + 0x880C0100, // 0034 GETMBR R3 R0 K0 + 0x8C0C0713, // 0035 GETMET R3 R3 K19 + 0x7C0C0200, // 0036 CALL R3 1 + 0x80000000, // 0037 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: save_param +********************************************************************/ +be_local_closure(Matter_Device_save_param, /* name */ be_nested_proto( 11, /* nstack */ - 3, /* argc */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[18]) { /* constants */ + ( &(const bvalue[28]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(json), + /* K2 */ be_nested_str_weak(format), + /* K3 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), + /* K4 */ be_nested_str_weak(root_discriminator), + /* K5 */ be_nested_str_weak(root_passcode), + /* K6 */ be_nested_str_weak(ipv4only), + /* K7 */ be_nested_str_weak(true), + /* K8 */ be_nested_str_weak(false), + /* K9 */ be_nested_str_weak(next_ep), + /* K10 */ be_nested_str_weak(plugins_persist), + /* K11 */ be_nested_str_weak(_X2C_X22config_X22_X3A), + /* K12 */ be_nested_str_weak(dump), + /* K13 */ be_nested_str_weak(plugins_config), + /* K14 */ be_nested_str_weak(_X7D), + /* K15 */ be_nested_str_weak(FILENAME), + /* 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(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), + /* K22 */ be_nested_str_weak(_X20and_X20configuration), + /* K23 */ be_nested_str_weak(), + /* K24 */ be_const_int(3), + /* K25 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), + /* K26 */ be_nested_str_weak(_X7C), + /* K27 */ be_const_int(2), + }), + be_str_weak(save_param), + &be_const_str_solidified, + ( &(const binstruction[66]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x88180104, // 0004 GETMBR R6 R0 K4 + 0x881C0105, // 0005 GETMBR R7 R0 K5 + 0x88200106, // 0006 GETMBR R8 R0 K6 + 0x78220001, // 0007 JMPF R8 #000A + 0x58200007, // 0008 LDCONST R8 K7 + 0x70020000, // 0009 JMP #000B + 0x58200008, // 000A LDCONST R8 K8 + 0x88240109, // 000B GETMBR R9 R0 K9 + 0x7C0C0C00, // 000C CALL R3 6 + 0x8810010A, // 000D GETMBR R4 R0 K10 + 0x78120004, // 000E JMPF R4 #0014 + 0x000C070B, // 000F ADD R3 R3 K11 + 0x8C10050C, // 0010 GETMET R4 R2 K12 + 0x8818010D, // 0011 GETMBR R6 R0 K13 + 0x7C100400, // 0012 CALL R4 2 + 0x000C0604, // 0013 ADD R3 R3 R4 + 0x000C070E, // 0014 ADD R3 R3 K14 + 0xA8020018, // 0015 EXBLK 0 #002F + 0x60100011, // 0016 GETGBL R4 G17 + 0x8814010F, // 0017 GETMBR R5 R0 K15 + 0x58180010, // 0018 LDCONST R6 K16 + 0x7C100400, // 0019 CALL R4 2 + 0x8C140911, // 001A GETMET R5 R4 K17 + 0x5C1C0600, // 001B MOVE R7 R3 + 0x7C140400, // 001C CALL R5 2 + 0x8C140912, // 001D GETMET R5 R4 K18 + 0x7C140200, // 001E CALL R5 1 + 0xB8162600, // 001F GETNGBL R5 K19 + 0x8C140B14, // 0020 GETMET R5 R5 K20 + 0x8C1C0302, // 0021 GETMET R7 R1 K2 + 0x58240015, // 0022 LDCONST R9 K21 + 0x8828010A, // 0023 GETMBR R10 R0 K10 + 0x782A0001, // 0024 JMPF R10 #0027 + 0x58280016, // 0025 LDCONST R10 K22 + 0x70020000, // 0026 JMP #0028 + 0x58280017, // 0027 LDCONST R10 K23 + 0x7C1C0600, // 0028 CALL R7 3 + 0x58200018, // 0029 LDCONST R8 K24 + 0x7C140600, // 002A CALL R5 3 + 0xA8040001, // 002B EXBLK 1 1 + 0x80040600, // 002C RET 1 R3 + 0xA8040001, // 002D EXBLK 1 1 + 0x70020011, // 002E JMP #0041 + 0xAC100002, // 002F CATCH R4 0 2 + 0x7002000E, // 0030 JMP #0040 + 0xB81A2600, // 0031 GETNGBL R6 K19 + 0x8C180D14, // 0032 GETMET R6 R6 K20 + 0x60200008, // 0033 GETGBL R8 G8 + 0x5C240800, // 0034 MOVE R9 R4 + 0x7C200200, // 0035 CALL R8 1 + 0x00223208, // 0036 ADD R8 K25 R8 + 0x0020111A, // 0037 ADD R8 R8 K26 + 0x60240008, // 0038 GETGBL R9 G8 + 0x5C280A00, // 0039 MOVE R10 R5 + 0x7C240200, // 003A CALL R9 1 + 0x00201009, // 003B ADD R8 R8 R9 + 0x5824001B, // 003C LDCONST R9 K27 + 0x7C180600, // 003D CALL R6 3 + 0x80040600, // 003E RET 1 R3 + 0x70020000, // 003F JMP #0041 + 0xB0080000, // 0040 RAISE 2 R0 R0 + 0x80000000, // 0041 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_plugin_class_arg +********************************************************************/ +be_local_closure(Matter_Device_get_plugin_class_arg, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(plugins_classes), /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(log), - /* K4 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), - /* K5 */ be_nested_str_weak(_X27_X20skipping), - /* K6 */ be_const_int(2), - /* K7 */ be_nested_str_weak(next_ep), - /* K8 */ be_nested_str_weak(plugins), - /* K9 */ be_nested_str_weak(push), - /* K10 */ be_nested_str_weak(type), - /* K11 */ be_nested_str_weak(keys), - /* K12 */ be_nested_str_weak(stop_iteration), - /* K13 */ be_nested_str_weak(plugins_config), - /* K14 */ be_nested_str_weak(plugins_persist), - /* K15 */ be_const_int(1), - /* K16 */ be_nested_str_weak(save_param), - /* K17 */ be_nested_str_weak(signal_endpoints_changed), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(), }), - be_str_weak(bridge_add_endpoint), + be_str_weak(get_plugin_class_arg), &be_const_str_solidified, - ( &(const binstruction[58]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x4C100000, // 0004 LDNIL R4 - 0x1C100604, // 0005 EQ R4 R3 R4 - 0x78120009, // 0006 JMPF R4 #0011 - 0xB8120400, // 0007 GETNGBL R4 K2 - 0x8C100903, // 0008 GETMET R4 R4 K3 - 0x60180008, // 0009 GETGBL R6 G8 - 0x5C1C0200, // 000A MOVE R7 R1 - 0x7C180200, // 000B CALL R6 1 - 0x001A0806, // 000C ADD R6 K4 R6 - 0x00180D05, // 000D ADD R6 R6 K5 - 0x581C0006, // 000E LDCONST R7 K6 - 0x7C100600, // 000F CALL R4 3 - 0x80000800, // 0010 RET 0 - 0x88100107, // 0011 GETMBR R4 R0 K7 - 0x60140008, // 0012 GETGBL R5 G8 - 0x5C180800, // 0013 MOVE R6 R4 - 0x7C140200, // 0014 CALL R5 1 - 0x5C180600, // 0015 MOVE R6 R3 - 0x5C1C0000, // 0016 MOVE R7 R0 - 0x5C200800, // 0017 MOVE R8 R4 - 0x5C240400, // 0018 MOVE R9 R2 - 0x7C180600, // 0019 CALL R6 3 - 0x881C0108, // 001A GETMBR R7 R0 K8 - 0x8C1C0F09, // 001B GETMET R7 R7 K9 - 0x5C240C00, // 001C MOVE R9 R6 - 0x7C1C0400, // 001D CALL R7 2 - 0x601C0013, // 001E GETGBL R7 G19 - 0x7C1C0000, // 001F CALL R7 0 - 0x981E1401, // 0020 SETIDX R7 K10 R1 - 0x60200010, // 0021 GETGBL R8 G16 - 0x8C24050B, // 0022 GETMET R9 R2 K11 - 0x7C240200, // 0023 CALL R9 1 - 0x7C200200, // 0024 CALL R8 1 - 0xA8020004, // 0025 EXBLK 0 #002B - 0x5C241000, // 0026 MOVE R9 R8 - 0x7C240000, // 0027 CALL R9 0 - 0x94280409, // 0028 GETIDX R10 R2 R9 - 0x981C120A, // 0029 SETIDX R7 R9 R10 - 0x7001FFFA, // 002A JMP #0026 - 0x5820000C, // 002B LDCONST R8 K12 - 0xAC200200, // 002C CATCH R8 1 0 - 0xB0080000, // 002D RAISE 2 R0 R0 - 0x8820010D, // 002E GETMBR R8 R0 K13 - 0x98200A07, // 002F SETIDX R8 R5 R7 - 0x50200200, // 0030 LDBOOL R8 1 0 - 0x90021C08, // 0031 SETMBR R0 K14 R8 - 0x88200107, // 0032 GETMBR R8 R0 K7 - 0x0020110F, // 0033 ADD R8 R8 K15 - 0x90020E08, // 0034 SETMBR R0 K7 R8 - 0x8C200110, // 0035 GETMET R8 R0 K16 - 0x7C200200, // 0036 CALL R8 1 - 0x8C200111, // 0037 GETMET R8 R0 K17 - 0x7C200200, // 0038 CALL R8 1 - 0x80040800, // 0039 RET 1 R4 + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 }) ) ); @@ -4064,280 +1506,9 @@ be_local_closure(Matter_Device_bridge_add_endpoint, /* name */ /******************************************************************** -** Solidified function: mdns_announce_op_discovery +** Solidified function: mdns_remove_PASE ********************************************************************/ -be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ - be_nested_proto( - 15, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[29]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(copy), - /* K4 */ be_nested_str_weak(reverse), - /* K5 */ be_nested_str_weak(get_fabric_compressed), - /* K6 */ be_nested_str_weak(tohex), - /* K7 */ be_nested_str_weak(_X2D), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(log), - /* K10 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), - /* K11 */ be_const_int(2), - /* K12 */ be_nested_str_weak(eth), - /* K13 */ be_nested_str_weak(find), - /* K14 */ be_nested_str_weak(up), - /* K15 */ be_nested_str_weak(format), - /* K16 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K17 */ be_nested_str_weak(hostname_eth), - /* K18 */ be_const_int(3), - /* K19 */ be_nested_str_weak(add_service), - /* K20 */ be_nested_str_weak(_matter), - /* K21 */ be_nested_str_weak(_tcp), - /* K22 */ be_nested_str_weak(_I), - /* K23 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K24 */ be_nested_str_weak(add_subtype), - /* K25 */ be_nested_str_weak(wifi), - /* K26 */ be_nested_str_weak(hostname_wifi), - /* K27 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K28 */ be_nested_str_weak(_X7C), - }), - be_str_weak(mdns_announce_op_discovery), - &be_const_str_solidified, - ( &(const binstruction[122]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xA8020064, // 0002 EXBLK 0 #0068 - 0x8C100302, // 0003 GETMET R4 R1 K2 - 0x7C100200, // 0004 CALL R4 1 - 0x8C100903, // 0005 GETMET R4 R4 K3 - 0x7C100200, // 0006 CALL R4 1 - 0x8C100904, // 0007 GETMET R4 R4 K4 - 0x7C100200, // 0008 CALL R4 1 - 0x8C140305, // 0009 GETMET R5 R1 K5 - 0x7C140200, // 000A CALL R5 1 - 0x8C180B06, // 000B GETMET R6 R5 K6 - 0x7C180200, // 000C CALL R6 1 - 0x00180D07, // 000D ADD R6 R6 K7 - 0x8C1C0906, // 000E GETMET R7 R4 K6 - 0x7C1C0200, // 000F CALL R7 1 - 0x00180C07, // 0010 ADD R6 R6 R7 - 0xB81E1000, // 0011 GETNGBL R7 K8 - 0x8C1C0F09, // 0012 GETMET R7 R7 K9 - 0x00261406, // 0013 ADD R9 K10 R6 - 0x5828000B, // 0014 LDCONST R10 K11 - 0x7C1C0600, // 0015 CALL R7 3 - 0xB81E1000, // 0016 GETNGBL R7 K8 - 0x8C1C0F0C, // 0017 GETMET R7 R7 K12 - 0x7C1C0200, // 0018 CALL R7 1 - 0x8C1C0F0D, // 0019 GETMET R7 R7 K13 - 0x5824000E, // 001A LDCONST R9 K14 - 0x7C1C0400, // 001B CALL R7 2 - 0x781E0020, // 001C JMPF R7 #003E - 0xB81E1000, // 001D GETNGBL R7 K8 - 0x8C1C0F09, // 001E GETMET R7 R7 K9 - 0x8C24070F, // 001F GETMET R9 R3 K15 - 0x582C0010, // 0020 LDCONST R11 K16 - 0x5830000C, // 0021 LDCONST R12 K12 - 0x5C340C00, // 0022 MOVE R13 R6 - 0x88380111, // 0023 GETMBR R14 R0 K17 - 0x7C240A00, // 0024 CALL R9 5 - 0x58280012, // 0025 LDCONST R10 K18 - 0x7C1C0600, // 0026 CALL R7 3 - 0x8C1C0513, // 0027 GETMET R7 R2 K19 - 0x58240014, // 0028 LDCONST R9 K20 - 0x58280015, // 0029 LDCONST R10 K21 - 0x542E15A3, // 002A LDINT R11 5540 - 0x4C300000, // 002B LDNIL R12 - 0x5C340C00, // 002C MOVE R13 R6 - 0x88380111, // 002D GETMBR R14 R0 K17 - 0x7C1C0E00, // 002E CALL R7 7 - 0x8C1C0B06, // 002F GETMET R7 R5 K6 - 0x7C1C0200, // 0030 CALL R7 1 - 0x001E2C07, // 0031 ADD R7 K22 R7 - 0xB8221000, // 0032 GETNGBL R8 K8 - 0x8C201109, // 0033 GETMET R8 R8 K9 - 0x002A2E07, // 0034 ADD R10 K23 R7 - 0x582C0012, // 0035 LDCONST R11 K18 - 0x7C200600, // 0036 CALL R8 3 - 0x8C200518, // 0037 GETMET R8 R2 K24 - 0x58280014, // 0038 LDCONST R10 K20 - 0x582C0015, // 0039 LDCONST R11 K21 - 0x5C300C00, // 003A MOVE R12 R6 - 0x88340111, // 003B GETMBR R13 R0 K17 - 0x5C380E00, // 003C MOVE R14 R7 - 0x7C200C00, // 003D CALL R8 6 - 0xB81E1000, // 003E GETNGBL R7 K8 - 0x8C1C0F19, // 003F GETMET R7 R7 K25 - 0x7C1C0200, // 0040 CALL R7 1 - 0x8C1C0F0D, // 0041 GETMET R7 R7 K13 - 0x5824000E, // 0042 LDCONST R9 K14 - 0x7C1C0400, // 0043 CALL R7 2 - 0x781E0020, // 0044 JMPF R7 #0066 - 0xB81E1000, // 0045 GETNGBL R7 K8 - 0x8C1C0F09, // 0046 GETMET R7 R7 K9 - 0x8C24070F, // 0047 GETMET R9 R3 K15 - 0x582C0010, // 0048 LDCONST R11 K16 - 0x58300019, // 0049 LDCONST R12 K25 - 0x5C340C00, // 004A MOVE R13 R6 - 0x8838011A, // 004B GETMBR R14 R0 K26 - 0x7C240A00, // 004C CALL R9 5 - 0x58280012, // 004D LDCONST R10 K18 - 0x7C1C0600, // 004E CALL R7 3 - 0x8C1C0513, // 004F GETMET R7 R2 K19 - 0x58240014, // 0050 LDCONST R9 K20 - 0x58280015, // 0051 LDCONST R10 K21 - 0x542E15A3, // 0052 LDINT R11 5540 - 0x4C300000, // 0053 LDNIL R12 - 0x5C340C00, // 0054 MOVE R13 R6 - 0x8838011A, // 0055 GETMBR R14 R0 K26 - 0x7C1C0E00, // 0056 CALL R7 7 - 0x8C1C0B06, // 0057 GETMET R7 R5 K6 - 0x7C1C0200, // 0058 CALL R7 1 - 0x001E2C07, // 0059 ADD R7 K22 R7 - 0xB8221000, // 005A GETNGBL R8 K8 - 0x8C201109, // 005B GETMET R8 R8 K9 - 0x002A2E07, // 005C ADD R10 K23 R7 - 0x582C0012, // 005D LDCONST R11 K18 - 0x7C200600, // 005E CALL R8 3 - 0x8C200518, // 005F GETMET R8 R2 K24 - 0x58280014, // 0060 LDCONST R10 K20 - 0x582C0015, // 0061 LDCONST R11 K21 - 0x5C300C00, // 0062 MOVE R12 R6 - 0x8834011A, // 0063 GETMBR R13 R0 K26 - 0x5C380E00, // 0064 MOVE R14 R7 - 0x7C200C00, // 0065 CALL R8 6 - 0xA8040001, // 0066 EXBLK 1 1 - 0x70020010, // 0067 JMP #0079 - 0xAC100002, // 0068 CATCH R4 0 2 - 0x7002000D, // 0069 JMP #0078 - 0xB81A1000, // 006A GETNGBL R6 K8 - 0x8C180D09, // 006B GETMET R6 R6 K9 - 0x60200008, // 006C GETGBL R8 G8 - 0x5C240800, // 006D MOVE R9 R4 - 0x7C200200, // 006E CALL R8 1 - 0x00223608, // 006F ADD R8 K27 R8 - 0x0020111C, // 0070 ADD R8 R8 K28 - 0x60240008, // 0071 GETGBL R9 G8 - 0x5C280A00, // 0072 MOVE R10 R5 - 0x7C240200, // 0073 CALL R9 1 - 0x00201009, // 0074 ADD R8 R8 R9 - 0x5824000B, // 0075 LDCONST R9 K11 - 0x7C180600, // 0076 CALL R6 3 - 0x70020000, // 0077 JMP #0079 - 0xB0080000, // 0078 RAISE 2 R0 R0 - 0x80000000, // 0079 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_root_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_start_root_basic_commissioning, /* 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[23]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(PASE_TIMEOUT), - /* K2 */ be_nested_str_weak(compute_manual_pairing_code), - /* 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_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), - /* K7 */ be_const_int(0), - /* K8 */ be_const_int(3), - /* K9 */ be_const_int(2147483647), - /* K10 */ be_const_int(2), - /* K11 */ be_nested_str_weak(compute_qrcode_content), - /* K12 */ be_nested_str_weak(publish_result), - /* K13 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A1_X2C_X22PairingCode_X22_X3A_X22_X25s_X22_X2C_X22QRCode_X22_X3A_X22_X25s_X22_X7D_X7D), - /* K14 */ be_nested_str_weak(Matter), - /* K15 */ be_nested_str_weak(_compute_pbkdf), - /* K16 */ be_nested_str_weak(root_passcode), - /* K17 */ be_nested_str_weak(root_iterations), - /* K18 */ be_nested_str_weak(root_salt), - /* K19 */ be_nested_str_weak(start_basic_commissioning), - /* K20 */ be_nested_str_weak(root_discriminator), - /* K21 */ be_nested_str_weak(root_w0), - /* K22 */ be_nested_str_weak(root_L), - }), - be_str_weak(start_root_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[49]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C0C0203, // 0002 EQ R3 R1 R3 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x8C0C0102, // 0005 GETMET R3 R0 K2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xB8120600, // 0007 GETNGBL R4 K3 - 0x8C100904, // 0008 GETMET R4 R4 K4 - 0x8C180505, // 0009 GETMET R6 R2 K5 - 0x58200006, // 000A LDCONST R8 K6 - 0x40260F08, // 000B CONNECT R9 K7 K8 - 0x94240609, // 000C GETIDX R9 R3 R9 - 0x542A0003, // 000D LDINT R10 4 - 0x542E0005, // 000E LDINT R11 6 - 0x4028140B, // 000F CONNECT R10 R10 R11 - 0x9428060A, // 0010 GETIDX R10 R3 R10 - 0x542E0006, // 0011 LDINT R11 7 - 0x402C1709, // 0012 CONNECT R11 R11 K9 - 0x942C060B, // 0013 GETIDX R11 R3 R11 - 0x7C180A00, // 0014 CALL R6 5 - 0x581C000A, // 0015 LDCONST R7 K10 - 0x7C100600, // 0016 CALL R4 3 - 0x8C10010B, // 0017 GETMET R4 R0 K11 - 0x7C100200, // 0018 CALL R4 1 - 0xB8160600, // 0019 GETNGBL R5 K3 - 0x8C140B0C, // 001A GETMET R5 R5 K12 - 0x8C1C0505, // 001B GETMET R7 R2 K5 - 0x5824000D, // 001C LDCONST R9 K13 - 0x5C280600, // 001D MOVE R10 R3 - 0x5C2C0800, // 001E MOVE R11 R4 - 0x7C1C0800, // 001F CALL R7 4 - 0x5820000E, // 0020 LDCONST R8 K14 - 0x7C140600, // 0021 CALL R5 3 - 0x8C14010F, // 0022 GETMET R5 R0 K15 - 0x881C0110, // 0023 GETMBR R7 R0 K16 - 0x88200111, // 0024 GETMBR R8 R0 K17 - 0x88240112, // 0025 GETMBR R9 R0 K18 - 0x7C140800, // 0026 CALL R5 4 - 0x8C140113, // 0027 GETMET R5 R0 K19 - 0x5C1C0200, // 0028 MOVE R7 R1 - 0x88200111, // 0029 GETMBR R8 R0 K17 - 0x88240114, // 002A GETMBR R9 R0 K20 - 0x88280112, // 002B GETMBR R10 R0 K18 - 0x882C0115, // 002C GETMBR R11 R0 K21 - 0x88300116, // 002D GETMBR R12 R0 K22 - 0x4C340000, // 002E LDNIL R13 - 0x7C141000, // 002F CALL R5 8 - 0x80000000, // 0030 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load_param -********************************************************************/ -be_local_closure(Matter_Device_load_param, /* name */ +be_local_closure(Matter_Device_mdns_remove_PASE, /* name */ be_nested_proto( 12, /* nstack */ 1, /* argc */ @@ -4347,148 +1518,116 @@ be_local_closure(Matter_Device_load_param, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[32]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(crypto), - /* K2 */ be_nested_str_weak(FILENAME), - /* K3 */ be_nested_str_weak(read), - /* K4 */ be_nested_str_weak(close), - /* K5 */ be_nested_str_weak(json), - /* K6 */ be_nested_str_weak(load), - /* K7 */ be_nested_str_weak(root_discriminator), - /* K8 */ be_nested_str_weak(find), - /* K9 */ be_nested_str_weak(distinguish), - /* K10 */ be_nested_str_weak(root_passcode), - /* K11 */ be_nested_str_weak(passcode), - /* K12 */ be_nested_str_weak(ipv4only), - /* K13 */ be_nested_str_weak(next_ep), - /* K14 */ be_nested_str_weak(nextep), - /* K15 */ be_nested_str_weak(plugins_config), - /* K16 */ be_nested_str_weak(config), - /* K17 */ be_nested_str_weak(tasmota), - /* K18 */ be_nested_str_weak(log), - /* K19 */ be_nested_str_weak(MTR_X3A_X20load_config_X20_X3D_X20), - /* K20 */ be_const_int(3), - /* K21 */ be_nested_str_weak(adjust_next_ep), - /* K22 */ be_nested_str_weak(plugins_persist), - /* K23 */ be_nested_str_weak(io_error), - /* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), - /* K25 */ be_nested_str_weak(_X7C), - /* K26 */ be_const_int(2), - /* K27 */ be_nested_str_weak(random), - /* K28 */ be_nested_str_weak(get), - /* K29 */ be_const_int(0), - /* K30 */ be_nested_str_weak(generate_random_passcode), - /* K31 */ be_nested_str_weak(save_param), + ( &(const bvalue[22]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(mdns_pase_eth), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(log), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K7 */ be_nested_str_weak(_matterc), + /* K8 */ be_nested_str_weak(_udp), + /* K9 */ be_nested_str_weak(commissioning_instance_eth), + /* K10 */ be_nested_str_weak(hostname_eth), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), + /* K13 */ be_nested_str_weak(eth), + /* K14 */ be_nested_str_weak(remove_service), + /* K15 */ be_nested_str_weak(mdns_pase_wifi), + /* K16 */ be_nested_str_weak(commissioning_instance_wifi), + /* K17 */ be_nested_str_weak(hostname_wifi), + /* K18 */ be_nested_str_weak(wifi), + /* K19 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K20 */ be_nested_str_weak(_X7C), + /* K21 */ be_const_int(2), }), - be_str_weak(load_param), + be_str_weak(mdns_remove_PASE), &be_const_str_solidified, - ( &(const binstruction[105]) { /* code */ + ( &(const binstruction[83]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA8020036, // 0002 EXBLK 0 #003A - 0x600C0011, // 0003 GETGBL R3 G17 - 0x88100102, // 0004 GETMBR R4 R0 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C100703, // 0006 GETMET R4 R3 K3 - 0x7C100200, // 0007 CALL R4 1 - 0x8C140704, // 0008 GETMET R5 R3 K4 - 0x7C140200, // 0009 CALL R5 1 - 0xA4160A00, // 000A IMPORT R5 K5 - 0x8C180B06, // 000B GETMET R6 R5 K6 - 0x5C200800, // 000C MOVE R8 R4 - 0x7C180400, // 000D CALL R6 2 - 0x8C1C0D08, // 000E GETMET R7 R6 K8 - 0x58240009, // 000F LDCONST R9 K9 - 0x88280107, // 0010 GETMBR R10 R0 K7 - 0x7C1C0600, // 0011 CALL R7 3 - 0x90020E07, // 0012 SETMBR R0 K7 R7 - 0x8C1C0D08, // 0013 GETMET R7 R6 K8 - 0x5824000B, // 0014 LDCONST R9 K11 - 0x8828010A, // 0015 GETMBR R10 R0 K10 - 0x7C1C0600, // 0016 CALL R7 3 - 0x90021407, // 0017 SETMBR R0 K10 R7 - 0x601C0017, // 0018 GETGBL R7 G23 - 0x8C200D08, // 0019 GETMET R8 R6 K8 - 0x5828000C, // 001A LDCONST R10 K12 - 0x502C0000, // 001B LDBOOL R11 0 0 - 0x7C200600, // 001C CALL R8 3 - 0x7C1C0200, // 001D CALL R7 1 - 0x90021807, // 001E SETMBR R0 K12 R7 - 0x8C1C0D08, // 001F GETMET R7 R6 K8 - 0x5824000E, // 0020 LDCONST R9 K14 - 0x8828010D, // 0021 GETMBR R10 R0 K13 - 0x7C1C0600, // 0022 CALL R7 3 - 0x90021A07, // 0023 SETMBR R0 K13 R7 - 0x8C1C0D08, // 0024 GETMET R7 R6 K8 - 0x58240010, // 0025 LDCONST R9 K16 - 0x7C1C0400, // 0026 CALL R7 2 - 0x90021E07, // 0027 SETMBR R0 K15 R7 - 0x881C010F, // 0028 GETMBR R7 R0 K15 - 0x4C200000, // 0029 LDNIL R8 - 0x201C0E08, // 002A NE R7 R7 R8 - 0x781E000B, // 002B JMPF R7 #0038 - 0xB81E2200, // 002C GETNGBL R7 K17 - 0x8C1C0F12, // 002D GETMET R7 R7 K18 - 0x60240008, // 002E GETGBL R9 G8 - 0x8828010F, // 002F GETMBR R10 R0 K15 - 0x7C240200, // 0030 CALL R9 1 - 0x00262609, // 0031 ADD R9 K19 R9 - 0x58280014, // 0032 LDCONST R10 K20 - 0x7C1C0600, // 0033 CALL R7 3 - 0x8C1C0115, // 0034 GETMET R7 R0 K21 - 0x7C1C0200, // 0035 CALL R7 1 - 0x501C0200, // 0036 LDBOOL R7 1 0 - 0x90022C07, // 0037 SETMBR R0 K22 R7 - 0xA8040001, // 0038 EXBLK 1 1 - 0x70020012, // 0039 JMP #004D - 0xAC0C0002, // 003A CATCH R3 0 2 - 0x7002000F, // 003B JMP #004C - 0x20140717, // 003C NE R5 R3 K23 - 0x7816000C, // 003D JMPF R5 #004B - 0xB8162200, // 003E GETNGBL R5 K17 - 0x8C140B12, // 003F GETMET R5 R5 K18 - 0x601C0008, // 0040 GETGBL R7 G8 - 0x5C200600, // 0041 MOVE R8 R3 - 0x7C1C0200, // 0042 CALL R7 1 - 0x001E3007, // 0043 ADD R7 K24 R7 - 0x001C0F19, // 0044 ADD R7 R7 K25 - 0x60200008, // 0045 GETGBL R8 G8 - 0x5C240800, // 0046 MOVE R9 R4 - 0x7C200200, // 0047 CALL R8 1 - 0x001C0E08, // 0048 ADD R7 R7 R8 - 0x5820001A, // 0049 LDCONST R8 K26 - 0x7C140600, // 004A CALL R5 3 - 0x70020000, // 004B JMP #004D - 0xB0080000, // 004C RAISE 2 R0 R0 - 0x500C0000, // 004D LDBOOL R3 0 0 - 0x88100107, // 004E GETMBR R4 R0 K7 - 0x4C140000, // 004F LDNIL R5 - 0x1C100805, // 0050 EQ R4 R4 R5 - 0x7812000A, // 0051 JMPF R4 #005D - 0x8C10051B, // 0052 GETMET R4 R2 K27 - 0x5818001A, // 0053 LDCONST R6 K26 - 0x7C100400, // 0054 CALL R4 2 - 0x8C10091C, // 0055 GETMET R4 R4 K28 - 0x5818001D, // 0056 LDCONST R6 K29 - 0x581C001A, // 0057 LDCONST R7 K26 - 0x7C100600, // 0058 CALL R4 3 - 0x54160FFE, // 0059 LDINT R5 4095 - 0x2C100805, // 005A AND R4 R4 R5 - 0x90020E04, // 005B SETMBR R0 K7 R4 - 0x500C0200, // 005C LDBOOL R3 1 0 - 0x8810010A, // 005D GETMBR R4 R0 K10 - 0x4C140000, // 005E LDNIL R5 - 0x1C100805, // 005F EQ R4 R4 R5 - 0x78120003, // 0060 JMPF R4 #0065 - 0x8C10011E, // 0061 GETMET R4 R0 K30 - 0x7C100200, // 0062 CALL R4 1 - 0x90021404, // 0063 SETMBR R0 K10 R4 - 0x500C0200, // 0064 LDBOOL R3 1 0 - 0x780E0001, // 0065 JMPF R3 #0068 - 0x8C10011F, // 0066 GETMET R4 R0 K31 - 0x7C100200, // 0067 CALL R4 1 - 0x80000000, // 0068 RET 0 + 0xA802003D, // 0002 EXBLK 0 #0041 + 0x880C0102, // 0003 GETMBR R3 R0 K2 + 0x780E001B, // 0004 JMPF R3 #0021 + 0xB80E0600, // 0005 GETNGBL R3 K3 + 0x8C0C0704, // 0006 GETMET R3 R3 K4 + 0x8C140505, // 0007 GETMET R5 R2 K5 + 0x581C0006, // 0008 LDCONST R7 K6 + 0x58200007, // 0009 LDCONST R8 K7 + 0x58240008, // 000A LDCONST R9 K8 + 0x88280109, // 000B GETMBR R10 R0 K9 + 0x882C010A, // 000C GETMBR R11 R0 K10 + 0x7C140C00, // 000D CALL R5 6 + 0x5818000B, // 000E LDCONST R6 K11 + 0x7C0C0600, // 000F CALL R3 3 + 0xB80E0600, // 0010 GETNGBL R3 K3 + 0x8C0C0704, // 0011 GETMET R3 R3 K4 + 0x8C140505, // 0012 GETMET R5 R2 K5 + 0x581C000C, // 0013 LDCONST R7 K12 + 0x5820000D, // 0014 LDCONST R8 K13 + 0x88240109, // 0015 GETMBR R9 R0 K9 + 0x7C140800, // 0016 CALL R5 4 + 0x5818000B, // 0017 LDCONST R6 K11 + 0x7C0C0600, // 0018 CALL R3 3 + 0x500C0000, // 0019 LDBOOL R3 0 0 + 0x90020403, // 001A SETMBR R0 K2 R3 + 0x8C0C030E, // 001B GETMET R3 R1 K14 + 0x58140007, // 001C LDCONST R5 K7 + 0x58180008, // 001D LDCONST R6 K8 + 0x881C0109, // 001E GETMBR R7 R0 K9 + 0x8820010A, // 001F GETMBR R8 R0 K10 + 0x7C0C0A00, // 0020 CALL R3 5 + 0x880C010F, // 0021 GETMBR R3 R0 K15 + 0x780E001B, // 0022 JMPF R3 #003F + 0xB80E0600, // 0023 GETNGBL R3 K3 + 0x8C0C0704, // 0024 GETMET R3 R3 K4 + 0x8C140505, // 0025 GETMET R5 R2 K5 + 0x581C0006, // 0026 LDCONST R7 K6 + 0x58200007, // 0027 LDCONST R8 K7 + 0x58240008, // 0028 LDCONST R9 K8 + 0x88280110, // 0029 GETMBR R10 R0 K16 + 0x882C0111, // 002A GETMBR R11 R0 K17 + 0x7C140C00, // 002B CALL R5 6 + 0x5818000B, // 002C LDCONST R6 K11 + 0x7C0C0600, // 002D CALL R3 3 + 0xB80E0600, // 002E GETNGBL R3 K3 + 0x8C0C0704, // 002F GETMET R3 R3 K4 + 0x8C140505, // 0030 GETMET R5 R2 K5 + 0x581C000C, // 0031 LDCONST R7 K12 + 0x58200012, // 0032 LDCONST R8 K18 + 0x88240110, // 0033 GETMBR R9 R0 K16 + 0x7C140800, // 0034 CALL R5 4 + 0x5818000B, // 0035 LDCONST R6 K11 + 0x7C0C0600, // 0036 CALL R3 3 + 0x500C0000, // 0037 LDBOOL R3 0 0 + 0x90021E03, // 0038 SETMBR R0 K15 R3 + 0x8C0C030E, // 0039 GETMET R3 R1 K14 + 0x58140007, // 003A LDCONST R5 K7 + 0x58180008, // 003B LDCONST R6 K8 + 0x881C0110, // 003C GETMBR R7 R0 K16 + 0x88200111, // 003D GETMBR R8 R0 K17 + 0x7C0C0A00, // 003E CALL R3 5 + 0xA8040001, // 003F EXBLK 1 1 + 0x70020010, // 0040 JMP #0052 + 0xAC0C0002, // 0041 CATCH R3 0 2 + 0x7002000D, // 0042 JMP #0051 + 0xB8160600, // 0043 GETNGBL R5 K3 + 0x8C140B04, // 0044 GETMET R5 R5 K4 + 0x601C0008, // 0045 GETGBL R7 G8 + 0x5C200600, // 0046 MOVE R8 R3 + 0x7C1C0200, // 0047 CALL R7 1 + 0x001E2607, // 0048 ADD R7 K19 R7 + 0x001C0F14, // 0049 ADD R7 R7 K20 + 0x60200008, // 004A GETGBL R8 G8 + 0x5C240800, // 004B MOVE R9 R4 + 0x7C200200, // 004C CALL R8 1 + 0x001C0E08, // 004D ADD R7 R7 R8 + 0x58200015, // 004E LDCONST R8 K21 + 0x7C140600, // 004F CALL R5 3 + 0x70020000, // 0050 JMP #0052 + 0xB0080000, // 0051 RAISE 2 R0 R0 + 0x80000000, // 0052 RET 0 }) ) ); @@ -4496,73 +1635,11 @@ be_local_closure(Matter_Device_load_param, /* name */ /******************************************************************** -** Solidified function: msg_send +** Solidified function: event_fabrics_saved ********************************************************************/ -be_local_closure(Matter_Device_msg_send, /* name */ +be_local_closure(Matter_Device_event_fabrics_saved, /* name */ be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(send_UDP), - }), - be_str_weak(msg_send), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: received_ack -********************************************************************/ -be_local_closure(Matter_Device_received_ack, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(received_ack), - }), - be_str_weak(received_ack), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -be_local_closure(Matter_Device_every_second, /* name */ - be_nested_proto( - 4, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -4570,35 +1647,90 @@ be_local_closure(Matter_Device_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ + ( &(const bvalue[ 5]) { /* constants */ /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(every_second), - /* K2 */ be_nested_str_weak(message_handler), - /* K3 */ be_nested_str_weak(commissioning_open), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(time_reached), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins_persist), + /* K4 */ be_nested_str_weak(save_param), }), - be_str_weak(every_second), + be_str_weak(event_fabrics_saved), &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ + ( &(const binstruction[12]) { /* 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 - 0x88040103, // 0006 GETMBR R1 R0 K3 - 0x4C080000, // 0007 LDNIL R2 - 0x20040202, // 0008 NE R1 R1 R2 - 0x78060006, // 0009 JMPF R1 #0011 - 0xB8060800, // 000A GETNGBL R1 K4 - 0x8C040305, // 000B GETMET R1 R1 K5 - 0x880C0103, // 000C GETMBR R3 R0 K3 - 0x7C040400, // 000D CALL R1 2 - 0x78060001, // 000E JMPF R1 #0011 - 0x4C040000, // 000F LDNIL R1 - 0x90020601, // 0010 SETMBR R0 K3 R1 - 0x80000000, // 0011 RET 0 + 0x24040302, // 0003 GT R1 R1 K2 + 0x78060005, // 0004 JMPF R1 #000B + 0x88040103, // 0005 GETMBR R1 R0 K3 + 0x74060003, // 0006 JMPT R1 #000B + 0x50040200, // 0007 LDBOOL R1 1 0 + 0x90020601, // 0008 SETMBR R0 K3 R1 + 0x8C040104, // 0009 GETMET R1 R0 K4 + 0x7C040200, // 000A CALL R1 1 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_commissioning_complete +********************************************************************/ +be_local_closure(Matter_Device_start_commissioning_complete, /* 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[13]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(get_fabric), + /* K2 */ be_nested_str_weak(get_fabric_id), + /* K3 */ be_nested_str_weak(copy), + /* K4 */ be_nested_str_weak(reverse), + /* K5 */ be_nested_str_weak(tohex), + /* K6 */ be_nested_str_weak(get_admin_vendor_name), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(log), + /* K9 */ be_nested_str_weak(format), + /* K10 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X20Commissioning_X20complete_X20for_X20Fabric_X20_X27_X25s_X27_X20_X28Vendor_X20_X25s_X29_X20_X2D_X2D_X2D), + /* K11 */ be_const_int(2), + /* K12 */ be_nested_str_weak(stop_basic_commissioning), + }), + be_str_weak(start_commissioning_complete), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x8C0C0301, // 0001 GETMET R3 R1 K1 + 0x7C0C0200, // 0002 CALL R3 1 + 0x8C100702, // 0003 GETMET R4 R3 K2 + 0x7C100200, // 0004 CALL R4 1 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x7C100200, // 0006 CALL R4 1 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C100905, // 0009 GETMET R4 R4 K5 + 0x7C100200, // 000A CALL R4 1 + 0x8C140706, // 000B GETMET R5 R3 K6 + 0x7C140200, // 000C CALL R5 1 + 0xB81A0E00, // 000D GETNGBL R6 K7 + 0x8C180D08, // 000E GETMET R6 R6 K8 + 0x8C200509, // 000F GETMET R8 R2 K9 + 0x5828000A, // 0010 LDCONST R10 K10 + 0x5C2C0800, // 0011 MOVE R11 R4 + 0x5C300A00, // 0012 MOVE R12 R5 + 0x7C200800, // 0013 CALL R8 4 + 0x5824000B, // 0014 LDCONST R9 K11 + 0x7C180600, // 0015 CALL R6 3 + 0x8C18010C, // 0016 GETMET R6 R0 K12 + 0x7C180200, // 0017 CALL R6 1 + 0x80000000, // 0018 RET 0 }) ) ); @@ -4638,6 +1770,804 @@ be_local_closure(Matter_Device_msg_received, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: _instantiate_plugins_from_config +********************************************************************/ +be_local_closure(Matter_Device__instantiate_plugins_from_config, /* 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[32]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(k2l_num), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(log), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Configuring_X20endpoints), + /* K5 */ be_const_int(2), + /* K6 */ be_nested_str_weak(plugins), + /* K7 */ be_nested_str_weak(push), + /* K8 */ be_nested_str_weak(matter), + /* K9 */ be_nested_str_weak(Plugin_Root), + /* K10 */ be_const_int(0), + /* K11 */ be_nested_str_weak(format), + /* K12 */ be_nested_str_weak(MTR_X3A_X20_X20_X20endpoint_X20_X3D_X20_X255i_X20type_X20_X3D_X20_X25s_X25s), + /* K13 */ be_nested_str_weak(root), + /* K14 */ be_nested_str_weak(), + /* K15 */ be_nested_str_weak(Plugin_Aggregator), + /* K16 */ be_nested_str_weak(find), + /* K17 */ be_nested_str_weak(type), + /* K18 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping), + /* K19 */ be_const_int(3), + /* K20 */ be_nested_str_weak(MTR_X3A_X20only_X20one_X20root_X20node_X20allowed), + /* K21 */ be_nested_str_weak(plugins_classes), + /* K22 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), + /* K23 */ be_nested_str_weak(_X27_X20skipping), + /* K24 */ be_nested_str_weak(conf_to_log), + /* K25 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K26 */ be_nested_str_weak(_X7C), + /* K27 */ be_nested_str_weak(stop_iteration), + /* K28 */ be_nested_str_weak(aggregator), + /* K29 */ be_nested_str_weak(publish_result), + /* K30 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D), + /* K31 */ be_nested_str_weak(Matter), + }), + be_str_weak(_instantiate_plugins_from_config), + &be_const_str_solidified, + ( &(const binstruction[153]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x8C0C0101, // 0001 GETMET R3 R0 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0xB8120400, // 0004 GETNGBL R4 K2 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x58180004, // 0006 LDCONST R6 K4 + 0x581C0005, // 0007 LDCONST R7 K5 + 0x7C100600, // 0008 CALL R4 3 + 0x88100106, // 0009 GETMBR R4 R0 K6 + 0x8C100907, // 000A GETMET R4 R4 K7 + 0xB81A1000, // 000B GETNGBL R6 K8 + 0x8C180D09, // 000C GETMET R6 R6 K9 + 0x5C200000, // 000D MOVE R8 R0 + 0x5824000A, // 000E LDCONST R9 K10 + 0x60280013, // 000F GETGBL R10 G19 + 0x7C280000, // 0010 CALL R10 0 + 0x7C180800, // 0011 CALL R6 4 + 0x7C100400, // 0012 CALL R4 2 + 0xB8120400, // 0013 GETNGBL R4 K2 + 0x8C100903, // 0014 GETMET R4 R4 K3 + 0x8C18050B, // 0015 GETMET R6 R2 K11 + 0x5820000C, // 0016 LDCONST R8 K12 + 0x5824000A, // 0017 LDCONST R9 K10 + 0x5828000D, // 0018 LDCONST R10 K13 + 0x582C000E, // 0019 LDCONST R11 K14 + 0x7C180A00, // 001A CALL R6 5 + 0x581C0005, // 001B LDCONST R7 K5 + 0x7C100600, // 001C CALL R4 3 + 0x88100106, // 001D GETMBR R4 R0 K6 + 0x8C100907, // 001E GETMET R4 R4 K7 + 0xB81A1000, // 001F GETNGBL R6 K8 + 0x8C180D0F, // 0020 GETMET R6 R6 K15 + 0x5C200000, // 0021 MOVE R8 R0 + 0x5426FEFF, // 0022 LDINT R9 65280 + 0x60280013, // 0023 GETGBL R10 G19 + 0x7C280000, // 0024 CALL R10 0 + 0x7C180800, // 0025 CALL R6 4 + 0x7C100400, // 0026 CALL R4 2 + 0x60100010, // 0027 GETGBL R4 G16 + 0x5C140600, // 0028 MOVE R5 R3 + 0x7C100200, // 0029 CALL R4 1 + 0xA802005A, // 002A EXBLK 0 #0086 + 0x5C140800, // 002B MOVE R5 R4 + 0x7C140000, // 002C CALL R5 0 + 0x1C180B0A, // 002D EQ R6 R5 K10 + 0x781A0000, // 002E JMPF R6 #0030 + 0x7001FFFA, // 002F JMP #002B + 0xA8020042, // 0030 EXBLK 0 #0074 + 0x60180008, // 0031 GETGBL R6 G8 + 0x5C1C0A00, // 0032 MOVE R7 R5 + 0x7C180200, // 0033 CALL R6 1 + 0x94180206, // 0034 GETIDX R6 R1 R6 + 0x8C1C0D10, // 0035 GETMET R7 R6 K16 + 0x58240011, // 0036 LDCONST R9 K17 + 0x7C1C0400, // 0037 CALL R7 2 + 0x4C200000, // 0038 LDNIL R8 + 0x1C200E08, // 0039 EQ R8 R7 R8 + 0x78220006, // 003A JMPF R8 #0042 + 0xB8220400, // 003B GETNGBL R8 K2 + 0x8C201103, // 003C GETMET R8 R8 K3 + 0x58280012, // 003D LDCONST R10 K18 + 0x582C0013, // 003E LDCONST R11 K19 + 0x7C200600, // 003F CALL R8 3 + 0xA8040001, // 0040 EXBLK 1 1 + 0x7001FFE8, // 0041 JMP #002B + 0x1C200F0D, // 0042 EQ R8 R7 K13 + 0x78220006, // 0043 JMPF R8 #004B + 0xB8220400, // 0044 GETNGBL R8 K2 + 0x8C201103, // 0045 GETMET R8 R8 K3 + 0x58280014, // 0046 LDCONST R10 K20 + 0x582C0013, // 0047 LDCONST R11 K19 + 0x7C200600, // 0048 CALL R8 3 + 0xA8040001, // 0049 EXBLK 1 1 + 0x7001FFDF, // 004A JMP #002B + 0x88200115, // 004B GETMBR R8 R0 K21 + 0x8C201110, // 004C GETMET R8 R8 K16 + 0x5C280E00, // 004D MOVE R10 R7 + 0x7C200400, // 004E CALL R8 2 + 0x4C240000, // 004F LDNIL R9 + 0x1C241009, // 0050 EQ R9 R8 R9 + 0x7826000A, // 0051 JMPF R9 #005D + 0xB8260400, // 0052 GETNGBL R9 K2 + 0x8C241303, // 0053 GETMET R9 R9 K3 + 0x602C0008, // 0054 GETGBL R11 G8 + 0x5C300E00, // 0055 MOVE R12 R7 + 0x7C2C0200, // 0056 CALL R11 1 + 0x002E2C0B, // 0057 ADD R11 K22 R11 + 0x002C1717, // 0058 ADD R11 R11 K23 + 0x58300005, // 0059 LDCONST R12 K5 + 0x7C240600, // 005A CALL R9 3 + 0xA8040001, // 005B EXBLK 1 1 + 0x7001FFCD, // 005C JMP #002B + 0x5C241000, // 005D MOVE R9 R8 + 0x5C280000, // 005E MOVE R10 R0 + 0x5C2C0A00, // 005F MOVE R11 R5 + 0x5C300C00, // 0060 MOVE R12 R6 + 0x7C240600, // 0061 CALL R9 3 + 0x88280106, // 0062 GETMBR R10 R0 K6 + 0x8C281507, // 0063 GETMET R10 R10 K7 + 0x5C301200, // 0064 MOVE R12 R9 + 0x7C280400, // 0065 CALL R10 2 + 0xB82A0400, // 0066 GETNGBL R10 K2 + 0x8C281503, // 0067 GETMET R10 R10 K3 + 0x8C30050B, // 0068 GETMET R12 R2 K11 + 0x5838000C, // 0069 LDCONST R14 K12 + 0x5C3C0A00, // 006A MOVE R15 R5 + 0x5C400E00, // 006B MOVE R16 R7 + 0x8C440118, // 006C GETMET R17 R0 K24 + 0x5C4C0C00, // 006D MOVE R19 R6 + 0x7C440400, // 006E CALL R17 2 + 0x7C300A00, // 006F CALL R12 5 + 0x58340005, // 0070 LDCONST R13 K5 + 0x7C280600, // 0071 CALL R10 3 + 0xA8040001, // 0072 EXBLK 1 1 + 0x70020010, // 0073 JMP #0085 + 0xAC180002, // 0074 CATCH R6 0 2 + 0x7002000D, // 0075 JMP #0084 + 0xB8220400, // 0076 GETNGBL R8 K2 + 0x8C201103, // 0077 GETMET R8 R8 K3 + 0x60280008, // 0078 GETGBL R10 G8 + 0x5C2C0C00, // 0079 MOVE R11 R6 + 0x7C280200, // 007A CALL R10 1 + 0x002A320A, // 007B ADD R10 K25 R10 + 0x0028151A, // 007C ADD R10 R10 K26 + 0x602C0008, // 007D GETGBL R11 G8 + 0x5C300E00, // 007E MOVE R12 R7 + 0x7C2C0200, // 007F CALL R11 1 + 0x0028140B, // 0080 ADD R10 R10 R11 + 0x582C0005, // 0081 LDCONST R11 K5 + 0x7C200600, // 0082 CALL R8 3 + 0x70020000, // 0083 JMP #0085 + 0xB0080000, // 0084 RAISE 2 R0 R0 + 0x7001FFA4, // 0085 JMP #002B + 0x5810001B, // 0086 LDCONST R4 K27 + 0xAC100200, // 0087 CATCH R4 1 0 + 0xB0080000, // 0088 RAISE 2 R0 R0 + 0xB8120400, // 0089 GETNGBL R4 K2 + 0x8C100903, // 008A GETMET R4 R4 K3 + 0x8C18050B, // 008B GETMET R6 R2 K11 + 0x5820000C, // 008C LDCONST R8 K12 + 0x5426FEFF, // 008D LDINT R9 65280 + 0x5828001C, // 008E LDCONST R10 K28 + 0x582C000E, // 008F LDCONST R11 K14 + 0x7C180A00, // 0090 CALL R6 5 + 0x581C0005, // 0091 LDCONST R7 K5 + 0x7C100600, // 0092 CALL R4 3 + 0xB8120400, // 0093 GETNGBL R4 K2 + 0x8C10091D, // 0094 GETMET R4 R4 K29 + 0x5818001E, // 0095 LDCONST R6 K30 + 0x581C001F, // 0096 LDCONST R7 K31 + 0x7C100600, // 0097 CALL R4 3 + 0x80000000, // 0098 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_active_endpoints +********************************************************************/ +be_local_closure(Matter_Device_get_active_endpoints, /* 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[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins), + /* K1 */ be_nested_str_weak(get_endpoint), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(get_active_endpoints), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x88100100, // 0003 GETMBR R4 R0 K0 + 0x7C0C0200, // 0004 CALL R3 1 + 0xA8020011, // 0005 EXBLK 0 #0018 + 0x5C100600, // 0006 MOVE R4 R3 + 0x7C100000, // 0007 CALL R4 0 + 0x8C140901, // 0008 GETMET R5 R4 K1 + 0x7C140200, // 0009 CALL R5 1 + 0x78060002, // 000A JMPF R1 #000E + 0x1C180B02, // 000B EQ R6 R5 K2 + 0x781A0000, // 000C JMPF R6 #000E + 0x7001FFF7, // 000D JMP #0006 + 0x8C180503, // 000E GETMET R6 R2 K3 + 0x5C200A00, // 000F MOVE R8 R5 + 0x7C180400, // 0010 CALL R6 2 + 0x4C1C0000, // 0011 LDNIL R7 + 0x1C180C07, // 0012 EQ R6 R6 R7 + 0x781A0002, // 0013 JMPF R6 #0017 + 0x8C180504, // 0014 GETMET R6 R2 K4 + 0x5C200A00, // 0015 MOVE R8 R5 + 0x7C180400, // 0016 CALL R6 2 + 0x7001FFED, // 0017 JMP #0006 + 0x580C0005, // 0018 LDCONST R3 K5 + 0xAC0C0200, // 0019 CATCH R3 1 0 + 0xB0080000, // 001A RAISE 2 R0 R0 + 0x80040400, // 001B RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _start_udp +********************************************************************/ +be_local_closure(Matter_Device__start_udp, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(msg_received), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x680C0000, // 0000 GETUPV R3 U0 + 0x8C0C0700, // 0001 GETMET R3 R3 K0 + 0x5C140000, // 0002 MOVE R5 R0 + 0x5C180200, // 0003 MOVE R6 R1 + 0x5C1C0400, // 0004 MOVE R7 R2 + 0x7C0C0800, // 0005 CALL R3 4 + 0x80040600, // 0006 RET 1 R3 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20Starting_X20UDP_X20server_X20on_X20port_X3A_X20), + /* K4 */ be_const_int(2), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(UDPServer), + /* K7 */ be_nested_str_weak(), + /* K8 */ be_nested_str_weak(start), + }), + be_str_weak(_start_udp), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x780A0000, // 0001 JMPF R2 #0003 + 0x80000400, // 0002 RET 0 + 0x4C080000, // 0003 LDNIL R2 + 0x1C080202, // 0004 EQ R2 R1 R2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x540615A3, // 0006 LDINT R1 5540 + 0xB80A0200, // 0007 GETNGBL R2 K1 + 0x8C080502, // 0008 GETMET R2 R2 K2 + 0x60100008, // 0009 GETGBL R4 G8 + 0x5C140200, // 000A MOVE R5 R1 + 0x7C100200, // 000B CALL R4 1 + 0x00120604, // 000C ADD R4 K3 R4 + 0x58140004, // 000D LDCONST R5 K4 + 0x7C080600, // 000E CALL R2 3 + 0xB80A0A00, // 000F GETNGBL R2 K5 + 0x8C080506, // 0010 GETMET R2 R2 K6 + 0x58100007, // 0011 LDCONST R4 K7 + 0x5C140200, // 0012 MOVE R5 R1 + 0x7C080600, // 0013 CALL R2 3 + 0x90020002, // 0014 SETMBR R0 K0 R2 + 0x88080100, // 0015 GETMBR R2 R0 K0 + 0x8C080508, // 0016 GETMET R2 R2 K8 + 0x84100000, // 0017 CLOSURE R4 P0 + 0x7C080400, // 0018 CALL R2 2 + 0xA0000000, // 0019 CLOSE R0 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_root_commissioning_open +********************************************************************/ +be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(is_root_commissioning_open), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x78060003, // 0003 JMPF R1 #0008 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x4C080000, // 0005 LDNIL R2 + 0x1C040202, // 0006 EQ R1 R1 R2 + 0x74060000, // 0007 JMPT R1 #0009 + 0x50040001, // 0008 LDBOOL R1 0 1 + 0x50040200, // 0009 LDBOOL R1 1 0 + 0x80040200, // 000A RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_root_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_root_basic_commissioning, /* 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[20]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(PASE_TIMEOUT), + /* K2 */ be_nested_str_weak(compute_manual_pairing_code), + /* 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_X20Manual_X20pairing_X20code_X3A_X20_X25s), + /* K7 */ be_const_int(2), + /* K8 */ be_nested_str_weak(compute_qrcode_content), + /* K9 */ be_nested_str_weak(publish_result), + /* K10 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A1_X2C_X22PairingCode_X22_X3A_X22_X25s_X22_X2C_X22QRCode_X22_X3A_X22_X25s_X22_X7D_X7D), + /* K11 */ be_nested_str_weak(Matter), + /* K12 */ be_nested_str_weak(_compute_pbkdf), + /* K13 */ be_nested_str_weak(root_passcode), + /* K14 */ be_nested_str_weak(root_iterations), + /* K15 */ be_nested_str_weak(root_salt), + /* K16 */ be_nested_str_weak(start_basic_commissioning), + /* K17 */ be_nested_str_weak(root_discriminator), + /* K18 */ be_nested_str_weak(root_w0), + /* K19 */ be_nested_str_weak(root_L), + }), + be_str_weak(start_root_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[41]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x4C0C0000, // 0001 LDNIL R3 + 0x1C0C0203, // 0002 EQ R3 R1 R3 + 0x780E0000, // 0003 JMPF R3 #0005 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x8C0C0102, // 0005 GETMET R3 R0 K2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xB8120600, // 0007 GETNGBL R4 K3 + 0x8C100904, // 0008 GETMET R4 R4 K4 + 0x8C180505, // 0009 GETMET R6 R2 K5 + 0x58200006, // 000A LDCONST R8 K6 + 0x5C240600, // 000B MOVE R9 R3 + 0x7C180600, // 000C CALL R6 3 + 0x581C0007, // 000D LDCONST R7 K7 + 0x7C100600, // 000E CALL R4 3 + 0x8C100108, // 000F GETMET R4 R0 K8 + 0x7C100200, // 0010 CALL R4 1 + 0xB8160600, // 0011 GETNGBL R5 K3 + 0x8C140B09, // 0012 GETMET R5 R5 K9 + 0x8C1C0505, // 0013 GETMET R7 R2 K5 + 0x5824000A, // 0014 LDCONST R9 K10 + 0x5C280600, // 0015 MOVE R10 R3 + 0x5C2C0800, // 0016 MOVE R11 R4 + 0x7C1C0800, // 0017 CALL R7 4 + 0x5820000B, // 0018 LDCONST R8 K11 + 0x7C140600, // 0019 CALL R5 3 + 0x8C14010C, // 001A GETMET R5 R0 K12 + 0x881C010D, // 001B GETMBR R7 R0 K13 + 0x8820010E, // 001C GETMBR R8 R0 K14 + 0x8824010F, // 001D GETMBR R9 R0 K15 + 0x7C140800, // 001E CALL R5 4 + 0x8C140110, // 001F GETMET R5 R0 K16 + 0x5C1C0200, // 0020 MOVE R7 R1 + 0x8820010E, // 0021 GETMBR R8 R0 K14 + 0x88240111, // 0022 GETMBR R9 R0 K17 + 0x8828010F, // 0023 GETMBR R10 R0 K15 + 0x882C0112, // 0024 GETMBR R11 R0 K18 + 0x88300113, // 0025 GETMBR R12 R0 K19 + 0x4C340000, // 0026 LDNIL R13 + 0x7C141000, // 0027 CALL R5 8 + 0x80000000, // 0028 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_commissioning_complete_deferred +********************************************************************/ +be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 3, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 2]) { /* upvals */ + be_local_const_upval(1, 0), + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(start_commissioning_complete), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080001, // 0002 GETUPV R2 U1 + 0x7C000400, // 0003 CALL R0 2 + 0x80040000, // 0004 RET 1 R0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_commissioning_complete_deferred), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: MtrJoin +********************************************************************/ +be_local_closure(Matter_Device_MtrJoin, /* 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[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(start_root_basic_commissioning), + /* K1 */ be_nested_str_weak(stop_basic_commissioning), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(resp_cmnd_done), + }), + be_str_weak(MtrJoin), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x60140009, // 0000 GETGBL R5 G9 + 0x5C180600, // 0001 MOVE R6 R3 + 0x7C140200, // 0002 CALL R5 1 + 0x78160002, // 0003 JMPF R5 #0007 + 0x8C180100, // 0004 GETMET R6 R0 K0 + 0x7C180200, // 0005 CALL R6 1 + 0x70020001, // 0006 JMP #0009 + 0x8C180101, // 0007 GETMET R6 R0 K1 + 0x7C180200, // 0008 CALL R6 1 + 0xB81A0400, // 0009 GETNGBL R6 K2 + 0x8C180D03, // 000A GETMET R6 R6 K3 + 0x7C180200, // 000B CALL R6 1 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start +********************************************************************/ +be_local_closure(Matter_Device_start, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 2, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(_trigger_read_sensors), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0x80000000, // 0003 RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(started), + /* K1 */ be_nested_str_weak(autoconf_device), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(add_cron), + /* K4 */ be_nested_str_weak(_X2A_X2F30_X20_X2A_X20_X2A_X20_X2A_X20_X2A_X20_X2A), + /* K5 */ be_nested_str_weak(matter_sensors_30s), + /* K6 */ be_nested_str_weak(_start_udp), + /* K7 */ be_nested_str_weak(UDP_PORT), + /* K8 */ be_nested_str_weak(start_mdns_announce_hostnames), + }), + be_str_weak(start), + &be_const_str_solidified, + ( &(const binstruction[20]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060000, // 0001 JMPF R1 #0003 + 0x80000200, // 0002 RET 0 + 0x8C040101, // 0003 GETMET R1 R0 K1 + 0x7C040200, // 0004 CALL R1 1 + 0xB8060400, // 0005 GETNGBL R1 K2 + 0x8C040303, // 0006 GETMET R1 R1 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x84100000, // 0008 CLOSURE R4 P0 + 0x58140005, // 0009 LDCONST R5 K5 + 0x7C040800, // 000A CALL R1 4 + 0x8C040106, // 000B GETMET R1 R0 K6 + 0x880C0107, // 000C GETMBR R3 R0 K7 + 0x7C040400, // 000D CALL R1 2 + 0x8C040108, // 000E GETMET R1 R0 K8 + 0x7C040200, // 000F CALL R1 1 + 0x50040200, // 0010 LDBOOL R1 1 0 + 0x90020001, // 0011 SETMBR R0 K0 R1 + 0xA0000000, // 0012 CLOSE R0 + 0x80000000, // 0013 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: conf_to_log +********************************************************************/ +be_local_closure(Matter_Device_conf_to_log, /* name */ + be_nested_proto( + 11, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(), + /* K3 */ be_nested_str_weak(k2l), + /* K4 */ be_nested_str_weak(type), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(_X20_X25s_X20_X3D_X20_X25s), + /* K7 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(conf_to_log), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x580C0002, // 0002 LDCONST R3 K2 + 0x60100010, // 0003 GETGBL R4 G16 + 0x8C140303, // 0004 GETMET R5 R1 K3 + 0x5C1C0000, // 0005 MOVE R7 R0 + 0x7C140400, // 0006 CALL R5 2 + 0x7C100200, // 0007 CALL R4 1 + 0xA802000B, // 0008 EXBLK 0 #0015 + 0x5C140800, // 0009 MOVE R5 R4 + 0x7C140000, // 000A CALL R5 0 + 0x1C180B04, // 000B EQ R6 R5 K4 + 0x781A0000, // 000C JMPF R6 #000E + 0x7001FFFA, // 000D JMP #0009 + 0x8C180505, // 000E GETMET R6 R2 K5 + 0x58200006, // 000F LDCONST R8 K6 + 0x5C240A00, // 0010 MOVE R9 R5 + 0x94280005, // 0011 GETIDX R10 R0 R5 + 0x7C180800, // 0012 CALL R6 4 + 0x000C0606, // 0013 ADD R3 R3 R6 + 0x7001FFF3, // 0014 JMP #0009 + 0x58100007, // 0015 LDCONST R4 K7 + 0xAC100200, // 0016 CATCH R4 1 0 + 0xB0080000, // 0017 RAISE 2 R0 R0 + 0x80040600, // 0018 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: attribute_updated +********************************************************************/ +be_local_closure(Matter_Device_attribute_updated, /* name */ + be_nested_proto( + 10, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(Path), + /* K2 */ be_nested_str_weak(endpoint), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_nested_str_weak(message_handler), + /* K6 */ be_nested_str_weak(im), + /* K7 */ be_nested_str_weak(subs_shop), + /* K8 */ be_nested_str_weak(attribute_updated_ctx), + }), + be_str_weak(attribute_updated), + &be_const_str_solidified, + ( &(const binstruction[18]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x1C140805, // 0001 EQ R5 R4 R5 + 0x78160000, // 0002 JMPF R5 #0004 + 0x50100000, // 0003 LDBOOL R4 0 0 + 0xB8160000, // 0004 GETNGBL R5 K0 + 0x8C140B01, // 0005 GETMET R5 R5 K1 + 0x7C140200, // 0006 CALL R5 1 + 0x90160401, // 0007 SETMBR R5 K2 R1 + 0x90160602, // 0008 SETMBR R5 K3 R2 + 0x90160803, // 0009 SETMBR R5 K4 R3 + 0x88180105, // 000A GETMBR R6 R0 K5 + 0x88180D06, // 000B GETMBR R6 R6 K6 + 0x88180D07, // 000C GETMBR R6 R6 K7 + 0x8C180D08, // 000D GETMET R6 R6 K8 + 0x5C200A00, // 000E MOVE R8 R5 + 0x5C240800, // 000F MOVE R9 R4 + 0x7C180600, // 0010 CALL R6 3 + 0x80000000, // 0011 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _init_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device__init_basic_commissioning, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(start_root_basic_commissioning), + }), + be_str_weak(_init_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x1C040302, // 0003 EQ R1 R1 K2 + 0x78060001, // 0004 JMPF R1 #0007 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x7C040200, // 0006 CALL R1 1 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: init ********************************************************************/ @@ -4874,20 +2804,673 @@ be_local_closure(Matter_Device_init, /* name */ /******************************************************************** -** Solidified function: start +** Solidified function: k2l ********************************************************************/ -be_local_closure(Matter_Device_start, /* name */ +be_local_closure(Matter_Device_k2l, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 4, /* 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_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_const_int(1), + /* K5 */ be_const_int(0), + }), + be_str_weak(k2l), + &be_const_str_solidified, + ( &(const binstruction[50]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x4C0C0000, // 0003 LDNIL R3 + 0x1C0C0003, // 0004 EQ R3 R0 R3 + 0x780E0000, // 0005 JMPF R3 #0007 + 0x80040400, // 0006 RET 1 R2 + 0x600C0010, // 0007 GETGBL R3 G16 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x7C0C0200, // 000A CALL R3 1 + 0xA8020005, // 000B EXBLK 0 #0012 + 0x5C100600, // 000C MOVE R4 R3 + 0x7C100000, // 000D CALL R4 0 + 0x8C140502, // 000E GETMET R5 R2 K2 + 0x5C1C0800, // 000F MOVE R7 R4 + 0x7C140400, // 0010 CALL R5 2 + 0x7001FFF9, // 0011 JMP #000C + 0x580C0003, // 0012 LDCONST R3 K3 + 0xAC0C0200, // 0013 CATCH R3 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x600C0010, // 0015 GETGBL R3 G16 + 0x6010000C, // 0016 GETGBL R4 G12 + 0x5C140400, // 0017 MOVE R5 R2 + 0x7C100200, // 0018 CALL R4 1 + 0x04100904, // 0019 SUB R4 R4 K4 + 0x40120804, // 001A CONNECT R4 K4 R4 + 0x7C0C0200, // 001B CALL R3 1 + 0xA8020010, // 001C EXBLK 0 #002E + 0x5C100600, // 001D MOVE R4 R3 + 0x7C100000, // 001E CALL R4 0 + 0x94140404, // 001F GETIDX R5 R2 R4 + 0x5C180800, // 0020 MOVE R6 R4 + 0x241C0D05, // 0021 GT R7 R6 K5 + 0x781E0008, // 0022 JMPF R7 #002C + 0x041C0D04, // 0023 SUB R7 R6 K4 + 0x941C0407, // 0024 GETIDX R7 R2 R7 + 0x241C0E05, // 0025 GT R7 R7 R5 + 0x781E0004, // 0026 JMPF R7 #002C + 0x041C0D04, // 0027 SUB R7 R6 K4 + 0x941C0407, // 0028 GETIDX R7 R2 R7 + 0x98080C07, // 0029 SETIDX R2 R6 R7 + 0x04180D04, // 002A SUB R6 R6 K4 + 0x7001FFF4, // 002B JMP #0021 + 0x98080C05, // 002C SETIDX R2 R6 R5 + 0x7001FFEE, // 002D JMP #001D + 0x580C0003, // 002E LDCONST R3 K3 + 0xAC0C0200, // 002F CATCH R3 1 0 + 0xB0080000, // 0030 RAISE 2 R0 R0 + 0x80040400, // 0031 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: adjust_next_ep +********************************************************************/ +be_local_closure(Matter_Device_adjust_next_ep, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_config), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(next_ep), + /* K3 */ be_const_int(1), + /* K4 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(adjust_next_ep), + &be_const_str_solidified, + ( &(const binstruction[21]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000A, // 0005 EXBLK 0 #0011 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x600C0009, // 0008 GETGBL R3 G9 + 0x5C100400, // 0009 MOVE R4 R2 + 0x7C0C0200, // 000A CALL R3 1 + 0x88100102, // 000B GETMBR R4 R0 K2 + 0x28100604, // 000C GE R4 R3 R4 + 0x78120001, // 000D JMPF R4 #0010 + 0x00100703, // 000E ADD R4 R3 K3 + 0x90020404, // 000F SETMBR R0 K2 R4 + 0x7001FFF4, // 0010 JMP #0006 + 0x58040004, // 0011 LDCONST R1 K4 + 0xAC040200, // 0012 CATCH R1 1 0 + 0xB0080000, // 0013 RAISE 2 R0 R0 + 0x80000000, // 0014 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_plugin_class_displayname +********************************************************************/ +be_local_closure(Matter_Device_get_plugin_class_displayname, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(NAME), + /* K3 */ be_nested_str_weak(), + }), + be_str_weak(get_plugin_class_displayname), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_op_discovery +********************************************************************/ +be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ + be_nested_proto( + 15, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[29]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(copy), + /* K4 */ be_nested_str_weak(reverse), + /* K5 */ be_nested_str_weak(get_fabric_compressed), + /* K6 */ be_nested_str_weak(tohex), + /* K7 */ be_nested_str_weak(_X2D), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(log), + /* K10 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(eth), + /* K13 */ be_nested_str_weak(find), + /* K14 */ be_nested_str_weak(up), + /* K15 */ be_nested_str_weak(format), + /* K16 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K17 */ be_nested_str_weak(hostname_eth), + /* K18 */ be_nested_str_weak(add_service), + /* K19 */ be_nested_str_weak(_matter), + /* K20 */ be_nested_str_weak(_tcp), + /* K21 */ be_nested_str_weak(_I), + /* K22 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K23 */ be_nested_str_weak(add_subtype), + /* K24 */ be_nested_str_weak(wifi), + /* K25 */ be_nested_str_weak(hostname_wifi), + /* K26 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K27 */ be_nested_str_weak(_X7C), + /* K28 */ be_const_int(2), + }), + be_str_weak(mdns_announce_op_discovery), + &be_const_str_solidified, + ( &(const binstruction[122]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA8020064, // 0002 EXBLK 0 #0068 + 0x8C100302, // 0003 GETMET R4 R1 K2 + 0x7C100200, // 0004 CALL R4 1 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x7C100200, // 0006 CALL R4 1 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140305, // 0009 GETMET R5 R1 K5 + 0x7C140200, // 000A CALL R5 1 + 0x8C180B06, // 000B GETMET R6 R5 K6 + 0x7C180200, // 000C CALL R6 1 + 0x00180D07, // 000D ADD R6 R6 K7 + 0x8C1C0906, // 000E GETMET R7 R4 K6 + 0x7C1C0200, // 000F CALL R7 1 + 0x00180C07, // 0010 ADD R6 R6 R7 + 0xB81E1000, // 0011 GETNGBL R7 K8 + 0x8C1C0F09, // 0012 GETMET R7 R7 K9 + 0x00261406, // 0013 ADD R9 K10 R6 + 0x5828000B, // 0014 LDCONST R10 K11 + 0x7C1C0600, // 0015 CALL R7 3 + 0xB81E1000, // 0016 GETNGBL R7 K8 + 0x8C1C0F0C, // 0017 GETMET R7 R7 K12 + 0x7C1C0200, // 0018 CALL R7 1 + 0x8C1C0F0D, // 0019 GETMET R7 R7 K13 + 0x5824000E, // 001A LDCONST R9 K14 + 0x7C1C0400, // 001B CALL R7 2 + 0x781E0020, // 001C JMPF R7 #003E + 0xB81E1000, // 001D GETNGBL R7 K8 + 0x8C1C0F09, // 001E GETMET R7 R7 K9 + 0x8C24070F, // 001F GETMET R9 R3 K15 + 0x582C0010, // 0020 LDCONST R11 K16 + 0x5830000C, // 0021 LDCONST R12 K12 + 0x5C340C00, // 0022 MOVE R13 R6 + 0x88380111, // 0023 GETMBR R14 R0 K17 + 0x7C240A00, // 0024 CALL R9 5 + 0x5828000B, // 0025 LDCONST R10 K11 + 0x7C1C0600, // 0026 CALL R7 3 + 0x8C1C0512, // 0027 GETMET R7 R2 K18 + 0x58240013, // 0028 LDCONST R9 K19 + 0x58280014, // 0029 LDCONST R10 K20 + 0x542E15A3, // 002A LDINT R11 5540 + 0x4C300000, // 002B LDNIL R12 + 0x5C340C00, // 002C MOVE R13 R6 + 0x88380111, // 002D GETMBR R14 R0 K17 + 0x7C1C0E00, // 002E CALL R7 7 + 0x8C1C0B06, // 002F GETMET R7 R5 K6 + 0x7C1C0200, // 0030 CALL R7 1 + 0x001E2A07, // 0031 ADD R7 K21 R7 + 0xB8221000, // 0032 GETNGBL R8 K8 + 0x8C201109, // 0033 GETMET R8 R8 K9 + 0x002A2C07, // 0034 ADD R10 K22 R7 + 0x582C000B, // 0035 LDCONST R11 K11 + 0x7C200600, // 0036 CALL R8 3 + 0x8C200517, // 0037 GETMET R8 R2 K23 + 0x58280013, // 0038 LDCONST R10 K19 + 0x582C0014, // 0039 LDCONST R11 K20 + 0x5C300C00, // 003A MOVE R12 R6 + 0x88340111, // 003B GETMBR R13 R0 K17 + 0x5C380E00, // 003C MOVE R14 R7 + 0x7C200C00, // 003D CALL R8 6 + 0xB81E1000, // 003E GETNGBL R7 K8 + 0x8C1C0F18, // 003F GETMET R7 R7 K24 + 0x7C1C0200, // 0040 CALL R7 1 + 0x8C1C0F0D, // 0041 GETMET R7 R7 K13 + 0x5824000E, // 0042 LDCONST R9 K14 + 0x7C1C0400, // 0043 CALL R7 2 + 0x781E0020, // 0044 JMPF R7 #0066 + 0xB81E1000, // 0045 GETNGBL R7 K8 + 0x8C1C0F09, // 0046 GETMET R7 R7 K9 + 0x8C24070F, // 0047 GETMET R9 R3 K15 + 0x582C0010, // 0048 LDCONST R11 K16 + 0x58300018, // 0049 LDCONST R12 K24 + 0x5C340C00, // 004A MOVE R13 R6 + 0x88380119, // 004B GETMBR R14 R0 K25 + 0x7C240A00, // 004C CALL R9 5 + 0x5828000B, // 004D LDCONST R10 K11 + 0x7C1C0600, // 004E CALL R7 3 + 0x8C1C0512, // 004F GETMET R7 R2 K18 + 0x58240013, // 0050 LDCONST R9 K19 + 0x58280014, // 0051 LDCONST R10 K20 + 0x542E15A3, // 0052 LDINT R11 5540 + 0x4C300000, // 0053 LDNIL R12 + 0x5C340C00, // 0054 MOVE R13 R6 + 0x88380119, // 0055 GETMBR R14 R0 K25 + 0x7C1C0E00, // 0056 CALL R7 7 + 0x8C1C0B06, // 0057 GETMET R7 R5 K6 + 0x7C1C0200, // 0058 CALL R7 1 + 0x001E2A07, // 0059 ADD R7 K21 R7 + 0xB8221000, // 005A GETNGBL R8 K8 + 0x8C201109, // 005B GETMET R8 R8 K9 + 0x002A2C07, // 005C ADD R10 K22 R7 + 0x582C000B, // 005D LDCONST R11 K11 + 0x7C200600, // 005E CALL R8 3 + 0x8C200517, // 005F GETMET R8 R2 K23 + 0x58280013, // 0060 LDCONST R10 K19 + 0x582C0014, // 0061 LDCONST R11 K20 + 0x5C300C00, // 0062 MOVE R12 R6 + 0x88340119, // 0063 GETMBR R13 R0 K25 + 0x5C380E00, // 0064 MOVE R14 R7 + 0x7C200C00, // 0065 CALL R8 6 + 0xA8040001, // 0066 EXBLK 1 1 + 0x70020010, // 0067 JMP #0079 + 0xAC100002, // 0068 CATCH R4 0 2 + 0x7002000D, // 0069 JMP #0078 + 0xB81A1000, // 006A GETNGBL R6 K8 + 0x8C180D09, // 006B GETMET R6 R6 K9 + 0x60200008, // 006C GETGBL R8 G8 + 0x5C240800, // 006D MOVE R9 R4 + 0x7C200200, // 006E CALL R8 1 + 0x00223408, // 006F ADD R8 K26 R8 + 0x0020111B, // 0070 ADD R8 R8 K27 + 0x60240008, // 0071 GETGBL R9 G8 + 0x5C280A00, // 0072 MOVE R10 R5 + 0x7C240200, // 0073 CALL R9 1 + 0x00201009, // 0074 ADD R8 R8 R9 + 0x5824001C, // 0075 LDCONST R9 K28 + 0x7C180600, // 0076 CALL R6 3 + 0x70020000, // 0077 JMP #0079 + 0xB0080000, // 0078 RAISE 2 R0 R0 + 0x80000000, // 0079 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: clean_remotes +********************************************************************/ +be_local_closure(Matter_Device_clean_remotes, /* name */ + be_nested_proto( + 11, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[18]) { /* constants */ + /* K0 */ be_nested_str_weak(introspect), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(http_remotes), + /* K3 */ be_const_int(0), + /* K4 */ be_nested_str_weak(stop_iteration), + /* K5 */ be_nested_str_weak(plugins), + /* K6 */ be_nested_str_weak(get), + /* K7 */ be_nested_str_weak(http_remote), + /* K8 */ be_nested_str_weak(find), + /* K9 */ be_const_int(1), + /* K10 */ be_nested_str_weak(keys), + /* K11 */ be_nested_str_weak(tasmota), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(MTR_X3A_X20remove_X20unused_X20remote_X3A_X20), + /* K14 */ be_nested_str_weak(addr), + /* K15 */ be_const_int(3), + /* K16 */ be_nested_str_weak(close), + /* K17 */ be_nested_str_weak(remove), + }), + be_str_weak(clean_remotes), + &be_const_str_solidified, + ( &(const binstruction[67]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x780E003D, // 0003 JMPF R3 #0042 + 0x600C0013, // 0004 GETGBL R3 G19 + 0x7C0C0000, // 0005 CALL R3 0 + 0x60100010, // 0006 GETGBL R4 G16 + 0x88140102, // 0007 GETMBR R5 R0 K2 + 0x7C100200, // 0008 CALL R4 1 + 0xA8020003, // 0009 EXBLK 0 #000E + 0x5C140800, // 000A MOVE R5 R4 + 0x7C140000, // 000B CALL R5 0 + 0x980C0B03, // 000C SETIDX R3 R5 K3 + 0x7001FFFB, // 000D JMP #000A + 0x58100004, // 000E LDCONST R4 K4 + 0xAC100200, // 000F CATCH R4 1 0 + 0xB0080000, // 0010 RAISE 2 R0 R0 + 0x60100010, // 0011 GETGBL R4 G16 + 0x88140105, // 0012 GETMBR R5 R0 K5 + 0x7C100200, // 0013 CALL R4 1 + 0xA802000F, // 0014 EXBLK 0 #0025 + 0x5C140800, // 0015 MOVE R5 R4 + 0x7C140000, // 0016 CALL R5 0 + 0x8C180306, // 0017 GETMET R6 R1 K6 + 0x5C200A00, // 0018 MOVE R8 R5 + 0x58240007, // 0019 LDCONST R9 K7 + 0x7C180600, // 001A CALL R6 3 + 0x4C1C0000, // 001B LDNIL R7 + 0x201C0C07, // 001C NE R7 R6 R7 + 0x781E0005, // 001D JMPF R7 #0024 + 0x8C1C0708, // 001E GETMET R7 R3 K8 + 0x5C240C00, // 001F MOVE R9 R6 + 0x58280003, // 0020 LDCONST R10 K3 + 0x7C1C0600, // 0021 CALL R7 3 + 0x001C0F09, // 0022 ADD R7 R7 K9 + 0x980C0C07, // 0023 SETIDX R3 R6 R7 + 0x7001FFEF, // 0024 JMP #0015 + 0x58100004, // 0025 LDCONST R4 K4 + 0xAC100200, // 0026 CATCH R4 1 0 + 0xB0080000, // 0027 RAISE 2 R0 R0 + 0x60100010, // 0028 GETGBL R4 G16 + 0x8C14070A, // 0029 GETMET R5 R3 K10 + 0x7C140200, // 002A CALL R5 1 + 0x7C100200, // 002B CALL R4 1 + 0xA8020011, // 002C EXBLK 0 #003F + 0x5C140800, // 002D MOVE R5 R4 + 0x7C140000, // 002E CALL R5 0 + 0x94180605, // 002F GETIDX R6 R3 R5 + 0x1C180D03, // 0030 EQ R6 R6 K3 + 0x781A000B, // 0031 JMPF R6 #003E + 0xB81A1600, // 0032 GETNGBL R6 K11 + 0x8C180D0C, // 0033 GETMET R6 R6 K12 + 0x88200B0E, // 0034 GETMBR R8 R5 K14 + 0x00221A08, // 0035 ADD R8 K13 R8 + 0x5824000F, // 0036 LDCONST R9 K15 + 0x7C180600, // 0037 CALL R6 3 + 0x8C180B10, // 0038 GETMET R6 R5 K16 + 0x7C180200, // 0039 CALL R6 1 + 0x88180102, // 003A GETMBR R6 R0 K2 + 0x8C180D11, // 003B GETMET R6 R6 K17 + 0x5C200A00, // 003C MOVE R8 R5 + 0x7C180400, // 003D CALL R6 2 + 0x7001FFED, // 003E JMP #002D + 0x58100004, // 003F LDCONST R4 K4 + 0xAC100200, // 0040 CATCH R4 1 0 + 0xB0080000, // 0041 RAISE 2 R0 R0 + 0x80000000, // 0042 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: k2l_num +********************************************************************/ +be_local_closure(Matter_Device_k2l_num, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 4, /* 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_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_const_int(1), + /* K5 */ be_const_int(0), + }), + be_str_weak(k2l_num), + &be_const_str_solidified, + ( &(const binstruction[52]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x4C0C0000, // 0003 LDNIL R3 + 0x1C0C0003, // 0004 EQ R3 R0 R3 + 0x780E0000, // 0005 JMPF R3 #0007 + 0x80040400, // 0006 RET 1 R2 + 0x600C0010, // 0007 GETGBL R3 G16 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x7C0C0200, // 000A CALL R3 1 + 0xA8020007, // 000B EXBLK 0 #0014 + 0x5C100600, // 000C MOVE R4 R3 + 0x7C100000, // 000D CALL R4 0 + 0x8C140502, // 000E GETMET R5 R2 K2 + 0x601C0009, // 000F GETGBL R7 G9 + 0x5C200800, // 0010 MOVE R8 R4 + 0x7C1C0200, // 0011 CALL R7 1 + 0x7C140400, // 0012 CALL R5 2 + 0x7001FFF7, // 0013 JMP #000C + 0x580C0003, // 0014 LDCONST R3 K3 + 0xAC0C0200, // 0015 CATCH R3 1 0 + 0xB0080000, // 0016 RAISE 2 R0 R0 + 0x600C0010, // 0017 GETGBL R3 G16 + 0x6010000C, // 0018 GETGBL R4 G12 + 0x5C140400, // 0019 MOVE R5 R2 + 0x7C100200, // 001A CALL R4 1 + 0x04100904, // 001B SUB R4 R4 K4 + 0x40120804, // 001C CONNECT R4 K4 R4 + 0x7C0C0200, // 001D CALL R3 1 + 0xA8020010, // 001E EXBLK 0 #0030 + 0x5C100600, // 001F MOVE R4 R3 + 0x7C100000, // 0020 CALL R4 0 + 0x94140404, // 0021 GETIDX R5 R2 R4 + 0x5C180800, // 0022 MOVE R6 R4 + 0x241C0D05, // 0023 GT R7 R6 K5 + 0x781E0008, // 0024 JMPF R7 #002E + 0x041C0D04, // 0025 SUB R7 R6 K4 + 0x941C0407, // 0026 GETIDX R7 R2 R7 + 0x241C0E05, // 0027 GT R7 R7 R5 + 0x781E0004, // 0028 JMPF R7 #002E + 0x041C0D04, // 0029 SUB R7 R6 K4 + 0x941C0407, // 002A GETIDX R7 R2 R7 + 0x98080C07, // 002B SETIDX R2 R6 R7 + 0x04180D04, // 002C SUB R6 R6 K4 + 0x7001FFF4, // 002D JMP #0023 + 0x98080C05, // 002E SETIDX R2 R6 R5 + 0x7001FFEE, // 002F JMP #001F + 0x580C0003, // 0030 LDCONST R3 K3 + 0xAC0C0200, // 0031 CATCH R3 1 0 + 0xB0080000, // 0032 RAISE 2 R0 R0 + 0x80040400, // 0033 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_50ms +********************************************************************/ +be_local_closure(Matter_Device_every_50ms, /* 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(tick), + /* K1 */ be_const_int(1), + }), + be_str_weak(every_50ms), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x00040301, // 0001 ADD R1 R1 K1 + 0x90020001, // 0002 SETMBR R0 K0 R1 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: stop +********************************************************************/ +be_local_closure(Matter_Device_stop, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(remove_driver), + /* K2 */ be_nested_str_weak(udp_server), + /* K3 */ be_nested_str_weak(stop), + }), + be_str_weak(stop), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x5C0C0000, // 0002 MOVE R3 R0 + 0x7C040400, // 0003 CALL R1 2 + 0x88040102, // 0004 GETMBR R1 R0 K2 + 0x78060002, // 0005 JMPF R1 #0009 + 0x88040102, // 0006 GETMBR R1 R0 K2 + 0x8C040303, // 0007 GETMET R1 R1 K3 + 0x7C040200, // 0008 CALL R1 1 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_remove_op_discovery_all_fabrics +********************************************************************/ +be_local_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics, /* 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(sessions), + /* K1 */ be_nested_str_weak(active_fabrics), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(mdns_remove_op_discovery_all_fabrics), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000B, // 0005 EXBLK 0 #0012 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x8C0C0502, // 0008 GETMET R3 R2 K2 + 0x7C0C0200, // 0009 CALL R3 1 + 0x780E0005, // 000A JMPF R3 #0011 + 0x8C0C0503, // 000B GETMET R3 R2 K3 + 0x7C0C0200, // 000C CALL R3 1 + 0x780E0002, // 000D JMPF R3 #0011 + 0x8C0C0104, // 000E GETMET R3 R0 K4 + 0x5C140400, // 000F MOVE R5 R2 + 0x7C0C0400, // 0010 CALL R3 2 + 0x7001FFF3, // 0011 JMP #0006 + 0x58040005, // 0012 LDCONST R1 K5 + 0xAC040200, // 0013 CATCH R1 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_commands +********************************************************************/ +be_local_closure(Matter_Device_register_commands, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ 1, /* has sup protos */ ( &(const struct bproto*[ 1]) { be_nested_proto( - 2, /* nstack */ - 0, /* argc */ + 10, /* nstack */ + 4, /* argc */ 0, /* varg */ 1, /* has upvals */ ( &(const bupvaldesc[ 1]) { /* upvals */ @@ -4897,53 +3480,38 @@ be_local_closure(Matter_Device_start, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(_trigger_read_sensors), + /* K0 */ be_nested_str_weak(MtrJoin), }), - be_str_weak(_anonymous_), + be_str_weak(_X3Clambda_X3E), &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80000000, // 0003 RET 0 + ( &(const binstruction[ 8]) { /* code */ + 0x68100000, // 0000 GETUPV R4 U0 + 0x8C100900, // 0001 GETMET R4 R4 K0 + 0x5C180000, // 0002 MOVE R6 R0 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80040800, // 0007 RET 1 R4 }) ), }), 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(started), - /* K1 */ be_nested_str_weak(autoconf_device), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(add_cron), - /* K4 */ be_nested_str_weak(_X2A_X2F30_X20_X2A_X20_X2A_X20_X2A_X20_X2A_X20_X2A), - /* K5 */ be_nested_str_weak(matter_sensors_30s), - /* K6 */ be_nested_str_weak(_start_udp), - /* K7 */ be_nested_str_weak(UDP_PORT), - /* K8 */ be_nested_str_weak(start_mdns_announce_hostnames), + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(add_cmd), + /* K2 */ be_nested_str_weak(MtrJoin), }), - be_str_weak(start), + be_str_weak(register_commands), &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060000, // 0001 JMPF R1 #0003 - 0x80000200, // 0002 RET 0 - 0x8C040101, // 0003 GETMET R1 R0 K1 - 0x7C040200, // 0004 CALL R1 1 - 0xB8060400, // 0005 GETNGBL R1 K2 - 0x8C040303, // 0006 GETMET R1 R1 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x84100000, // 0008 CLOSURE R4 P0 - 0x58140005, // 0009 LDCONST R5 K5 - 0x7C040800, // 000A CALL R1 4 - 0x8C040106, // 000B GETMET R1 R0 K6 - 0x880C0107, // 000C GETMBR R3 R0 K7 - 0x7C040400, // 000D CALL R1 2 - 0x8C040108, // 000E GETMET R1 R0 K8 - 0x7C040200, // 000F CALL R1 1 - 0x50040200, // 0010 LDBOOL R1 1 0 - 0x90020001, // 0011 SETMBR R0 K0 R1 - 0xA0000000, // 0012 CLOSE R0 - 0x80000000, // 0013 RET 0 + ( &(const binstruction[ 7]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x580C0002, // 0002 LDCONST R3 K2 + 0x84100000, // 0003 CLOSURE R4 P0 + 0x7C040600, // 0004 CALL R1 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 }) ) ); @@ -4951,9 +3519,698 @@ be_local_closure(Matter_Device_start, /* name */ /******************************************************************** -** Solidified function: start_commissioning_complete_deferred +** Solidified function: register_http_remote ********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name */ +be_local_closure(Matter_Device_register_http_remote, /* name */ + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(http_remotes), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(get_timeout), + /* K3 */ be_nested_str_weak(set_timeout), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(HTTP_remote), + }), + be_str_weak(register_http_remote), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x1C0C0604, // 0002 EQ R3 R3 R4 + 0x780E0002, // 0003 JMPF R3 #0007 + 0x600C0013, // 0004 GETGBL R3 G19 + 0x7C0C0000, // 0005 CALL R3 0 + 0x90020003, // 0006 SETMBR R0 K0 R3 + 0x4C0C0000, // 0007 LDNIL R3 + 0x88100100, // 0008 GETMBR R4 R0 K0 + 0x8C100901, // 0009 GETMET R4 R4 K1 + 0x5C180200, // 000A MOVE R6 R1 + 0x7C100400, // 000B CALL R4 2 + 0x78120009, // 000C JMPF R4 #0017 + 0x88100100, // 000D GETMBR R4 R0 K0 + 0x940C0801, // 000E GETIDX R3 R4 R1 + 0x8C140702, // 000F GETMET R5 R3 K2 + 0x7C140200, // 0010 CALL R5 1 + 0x14140405, // 0011 LT R5 R2 R5 + 0x78160002, // 0012 JMPF R5 #0016 + 0x8C140703, // 0013 GETMET R5 R3 K3 + 0x5C1C0400, // 0014 MOVE R7 R2 + 0x7C140400, // 0015 CALL R5 2 + 0x70020007, // 0016 JMP #001F + 0xB8120800, // 0017 GETNGBL R4 K4 + 0x8C100905, // 0018 GETMET R4 R4 K5 + 0x5C180200, // 0019 MOVE R6 R1 + 0x5C1C0400, // 001A MOVE R7 R2 + 0x7C100600, // 001B CALL R4 3 + 0x5C0C0800, // 001C MOVE R3 R4 + 0x88100100, // 001D GETMBR R4 R0 K0 + 0x98100203, // 001E SETIDX R4 R1 R3 + 0x80040600, // 001F RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_qrcode_content +********************************************************************/ +be_local_closure(Matter_Device_compute_qrcode_content, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(resize), + /* K1 */ be_nested_str_weak(setbits), + /* K2 */ be_const_int(3), + /* K3 */ be_nested_str_weak(vendorid), + /* K4 */ be_nested_str_weak(productid), + /* K5 */ be_nested_str_weak(root_discriminator), + /* K6 */ be_nested_str_weak(root_passcode), + /* K7 */ be_const_int(134217727), + /* K8 */ be_nested_str_weak(MT_X3A), + /* K9 */ be_nested_str_weak(matter), + /* K10 */ be_nested_str_weak(Base38), + /* K11 */ be_nested_str_weak(encode), + }), + be_str_weak(compute_qrcode_content), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0x60040015, // 0000 GETGBL R1 G21 + 0x7C040000, // 0001 CALL R1 0 + 0x8C040300, // 0002 GETMET R1 R1 K0 + 0x540E000A, // 0003 LDINT R3 11 + 0x7C040400, // 0004 CALL R1 2 + 0x8C080301, // 0005 GETMET R2 R1 K1 + 0x58100002, // 0006 LDCONST R4 K2 + 0x5416000F, // 0007 LDINT R5 16 + 0x88180103, // 0008 GETMBR R6 R0 K3 + 0x7C080800, // 0009 CALL R2 4 + 0x8C080301, // 000A GETMET R2 R1 K1 + 0x54120012, // 000B LDINT R4 19 + 0x5416000F, // 000C LDINT R5 16 + 0x88180104, // 000D GETMBR R6 R0 K4 + 0x7C080800, // 000E CALL R2 4 + 0x8C080301, // 000F GETMET R2 R1 K1 + 0x54120024, // 0010 LDINT R4 37 + 0x54160007, // 0011 LDINT R5 8 + 0x541A0003, // 0012 LDINT R6 4 + 0x7C080800, // 0013 CALL R2 4 + 0x8C080301, // 0014 GETMET R2 R1 K1 + 0x5412002C, // 0015 LDINT R4 45 + 0x5416000B, // 0016 LDINT R5 12 + 0x88180105, // 0017 GETMBR R6 R0 K5 + 0x541E0FFE, // 0018 LDINT R7 4095 + 0x2C180C07, // 0019 AND R6 R6 R7 + 0x7C080800, // 001A CALL R2 4 + 0x8C080301, // 001B GETMET R2 R1 K1 + 0x54120038, // 001C LDINT R4 57 + 0x5416001A, // 001D LDINT R5 27 + 0x88180106, // 001E GETMBR R6 R0 K6 + 0x2C180D07, // 001F AND R6 R6 K7 + 0x7C080800, // 0020 CALL R2 4 + 0xB80A1200, // 0021 GETNGBL R2 K9 + 0x8808050A, // 0022 GETMBR R2 R2 K10 + 0x8C08050B, // 0023 GETMET R2 R2 K11 + 0x5C100200, // 0024 MOVE R4 R1 + 0x7C080400, // 0025 CALL R2 2 + 0x000A1002, // 0026 ADD R2 K8 R2 + 0x80040400, // 0027 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_operational_discovery +********************************************************************/ +be_local_closure(Matter_Device_start_operational_discovery, /* 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_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(mdns), + /* K2 */ be_nested_str_weak(string), + /* K3 */ be_nested_str_weak(stop_basic_commissioning), + /* K4 */ be_nested_str_weak(root_w0), + /* K5 */ be_nested_str_weak(root_L), + /* K6 */ be_nested_str_weak(mdns_announce_op_discovery), + }), + be_str_weak(start_operational_discovery), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA4120400, // 0002 IMPORT R4 K2 + 0x8C140103, // 0003 GETMET R5 R0 K3 + 0x7C140200, // 0004 CALL R5 1 + 0x4C140000, // 0005 LDNIL R5 + 0x90020805, // 0006 SETMBR R0 K4 R5 + 0x4C140000, // 0007 LDNIL R5 + 0x90020A05, // 0008 SETMBR R0 K5 R5 + 0x8C140106, // 0009 GETMET R5 R0 K6 + 0x5C1C0200, // 000A MOVE R7 R1 + 0x7C140400, // 000B CALL R5 2 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_plugin_class +********************************************************************/ +be_local_closure(Matter_Device_register_plugin_class, /* 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(introspect), + /* K1 */ be_nested_str_weak(get), + /* K2 */ be_nested_str_weak(TYPE), + /* K3 */ be_nested_str_weak(plugins_classes), + }), + be_str_weak(register_plugin_class), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x8C0C0501, // 0001 GETMET R3 R2 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x58180002, // 0003 LDCONST R6 K2 + 0x7C0C0600, // 0004 CALL R3 3 + 0x780E0001, // 0005 JMPF R3 #0008 + 0x88100103, // 0006 GETMBR R4 R0 K3 + 0x98100601, // 0007 SETIDX R4 R3 R1 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _trigger_read_sensors +********************************************************************/ +be_local_closure(Matter_Device__trigger_read_sensors, /* 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[11]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(read_sensors), + /* K3 */ be_nested_str_weak(load), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(plugins), + /* K6 */ be_nested_str_weak(parse_sensors), + /* K7 */ be_const_int(1), + /* K8 */ be_nested_str_weak(log), + /* K9 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), + /* K10 */ be_const_int(3), + }), + be_str_weak(_trigger_read_sensors), + &be_const_str_solidified, + ( &(const binstruction[37]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x7C080200, // 0003 CALL R2 1 + 0x4C0C0000, // 0004 LDNIL R3 + 0x1C0C0403, // 0005 EQ R3 R2 R3 + 0x780E0000, // 0006 JMPF R3 #0008 + 0x80000600, // 0007 RET 0 + 0x8C0C0303, // 0008 GETMET R3 R1 K3 + 0x5C140400, // 0009 MOVE R5 R2 + 0x7C0C0400, // 000A CALL R3 2 + 0x4C100000, // 000B LDNIL R4 + 0x20100604, // 000C NE R4 R3 R4 + 0x7812000D, // 000D JMPF R4 #001C + 0x58100004, // 000E LDCONST R4 K4 + 0x6014000C, // 000F GETGBL R5 G12 + 0x88180105, // 0010 GETMBR R6 R0 K5 + 0x7C140200, // 0011 CALL R5 1 + 0x14140805, // 0012 LT R5 R4 R5 + 0x78160006, // 0013 JMPF R5 #001B + 0x88140105, // 0014 GETMBR R5 R0 K5 + 0x94140A04, // 0015 GETIDX R5 R5 R4 + 0x8C140B06, // 0016 GETMET R5 R5 K6 + 0x5C1C0600, // 0017 MOVE R7 R3 + 0x7C140400, // 0018 CALL R5 2 + 0x00100907, // 0019 ADD R4 R4 K7 + 0x7001FFF3, // 001A JMP #000F + 0x70020007, // 001B JMP #0024 + 0xB8120200, // 001C GETNGBL R4 K1 + 0x8C100908, // 001D GETMET R4 R4 K8 + 0x60180008, // 001E GETGBL R6 G8 + 0x5C1C0400, // 001F MOVE R7 R2 + 0x7C180200, // 0020 CALL R6 1 + 0x001A1206, // 0021 ADD R6 K9 R6 + 0x581C000A, // 0022 LDCONST R7 K10 + 0x7C100600, // 0023 CALL R4 3 + 0x80000000, // 0024 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: bridge_add_endpoint +********************************************************************/ +be_local_closure(Matter_Device_bridge_add_endpoint, /* name */ + be_nested_proto( + 19, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[23]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(plugins_classes), + /* K2 */ be_nested_str_weak(find), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(log), + /* K5 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), + /* K6 */ be_nested_str_weak(_X27_X20skipping), + /* K7 */ be_const_int(3), + /* K8 */ be_nested_str_weak(next_ep), + /* K9 */ be_nested_str_weak(plugins), + /* K10 */ be_nested_str_weak(push), + /* K11 */ be_nested_str_weak(type), + /* K12 */ be_nested_str_weak(keys), + /* K13 */ be_nested_str_weak(stop_iteration), + /* K14 */ be_nested_str_weak(format), + /* K15 */ be_nested_str_weak(MTR_X3A_X20adding_X20endpoint_X20_X3D_X20_X25i_X20type_X20_X3D_X20_X25s_X25s), + /* K16 */ be_nested_str_weak(conf_to_log), + /* K17 */ be_const_int(2), + /* K18 */ be_nested_str_weak(plugins_config), + /* K19 */ be_nested_str_weak(plugins_persist), + /* K20 */ be_const_int(1), + /* K21 */ be_nested_str_weak(save_param), + /* K22 */ be_nested_str_weak(signal_endpoints_changed), + }), + be_str_weak(bridge_add_endpoint), + &be_const_str_solidified, + ( &(const binstruction[71]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0x88100101, // 0001 GETMBR R4 R0 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x5C180200, // 0003 MOVE R6 R1 + 0x7C100400, // 0004 CALL R4 2 + 0x4C140000, // 0005 LDNIL R5 + 0x1C140805, // 0006 EQ R5 R4 R5 + 0x78160009, // 0007 JMPF R5 #0012 + 0xB8160600, // 0008 GETNGBL R5 K3 + 0x8C140B04, // 0009 GETMET R5 R5 K4 + 0x601C0008, // 000A GETGBL R7 G8 + 0x5C200200, // 000B MOVE R8 R1 + 0x7C1C0200, // 000C CALL R7 1 + 0x001E0A07, // 000D ADD R7 K5 R7 + 0x001C0F06, // 000E ADD R7 R7 K6 + 0x58200007, // 000F LDCONST R8 K7 + 0x7C140600, // 0010 CALL R5 3 + 0x80000A00, // 0011 RET 0 + 0x88140108, // 0012 GETMBR R5 R0 K8 + 0x60180008, // 0013 GETGBL R6 G8 + 0x5C1C0A00, // 0014 MOVE R7 R5 + 0x7C180200, // 0015 CALL R6 1 + 0x5C1C0800, // 0016 MOVE R7 R4 + 0x5C200000, // 0017 MOVE R8 R0 + 0x5C240A00, // 0018 MOVE R9 R5 + 0x5C280400, // 0019 MOVE R10 R2 + 0x7C1C0600, // 001A CALL R7 3 + 0x88200109, // 001B GETMBR R8 R0 K9 + 0x8C20110A, // 001C GETMET R8 R8 K10 + 0x5C280E00, // 001D MOVE R10 R7 + 0x7C200400, // 001E CALL R8 2 + 0x60200013, // 001F GETGBL R8 G19 + 0x7C200000, // 0020 CALL R8 0 + 0x98221601, // 0021 SETIDX R8 K11 R1 + 0x60240010, // 0022 GETGBL R9 G16 + 0x8C28050C, // 0023 GETMET R10 R2 K12 + 0x7C280200, // 0024 CALL R10 1 + 0x7C240200, // 0025 CALL R9 1 + 0xA8020004, // 0026 EXBLK 0 #002C + 0x5C281200, // 0027 MOVE R10 R9 + 0x7C280000, // 0028 CALL R10 0 + 0x942C040A, // 0029 GETIDX R11 R2 R10 + 0x9820140B, // 002A SETIDX R8 R10 R11 + 0x7001FFFA, // 002B JMP #0027 + 0x5824000D, // 002C LDCONST R9 K13 + 0xAC240200, // 002D CATCH R9 1 0 + 0xB0080000, // 002E RAISE 2 R0 R0 + 0xB8260600, // 002F GETNGBL R9 K3 + 0x8C241304, // 0030 GETMET R9 R9 K4 + 0x8C2C070E, // 0031 GETMET R11 R3 K14 + 0x5834000F, // 0032 LDCONST R13 K15 + 0x5C380A00, // 0033 MOVE R14 R5 + 0x5C3C0200, // 0034 MOVE R15 R1 + 0x8C400110, // 0035 GETMET R16 R0 K16 + 0x5C480400, // 0036 MOVE R18 R2 + 0x7C400400, // 0037 CALL R16 2 + 0x7C2C0A00, // 0038 CALL R11 5 + 0x58300011, // 0039 LDCONST R12 K17 + 0x7C240600, // 003A CALL R9 3 + 0x88240112, // 003B GETMBR R9 R0 K18 + 0x98240C08, // 003C SETIDX R9 R6 R8 + 0x50240200, // 003D LDBOOL R9 1 0 + 0x90022609, // 003E SETMBR R0 K19 R9 + 0x88240108, // 003F GETMBR R9 R0 K8 + 0x00241314, // 0040 ADD R9 R9 K20 + 0x90021009, // 0041 SETMBR R0 K8 R9 + 0x8C240115, // 0042 GETMET R9 R0 K21 + 0x7C240200, // 0043 CALL R9 1 + 0x8C240116, // 0044 GETMET R9 R0 K22 + 0x7C240200, // 0045 CALL R9 1 + 0x80040A00, // 0046 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: load_param +********************************************************************/ +be_local_closure(Matter_Device_load_param, /* name */ + be_nested_proto( + 12, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[32]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(crypto), + /* K2 */ be_nested_str_weak(FILENAME), + /* K3 */ be_nested_str_weak(read), + /* K4 */ be_nested_str_weak(close), + /* K5 */ be_nested_str_weak(json), + /* K6 */ be_nested_str_weak(load), + /* K7 */ be_nested_str_weak(root_discriminator), + /* K8 */ be_nested_str_weak(find), + /* K9 */ be_nested_str_weak(distinguish), + /* K10 */ be_nested_str_weak(root_passcode), + /* K11 */ be_nested_str_weak(passcode), + /* K12 */ be_nested_str_weak(ipv4only), + /* K13 */ be_nested_str_weak(next_ep), + /* K14 */ be_nested_str_weak(nextep), + /* K15 */ be_nested_str_weak(plugins_config), + /* K16 */ be_nested_str_weak(config), + /* K17 */ be_nested_str_weak(tasmota), + /* K18 */ be_nested_str_weak(log), + /* K19 */ be_nested_str_weak(MTR_X3A_X20load_config_X20_X3D_X20), + /* K20 */ be_const_int(3), + /* K21 */ be_nested_str_weak(adjust_next_ep), + /* K22 */ be_nested_str_weak(plugins_persist), + /* K23 */ be_nested_str_weak(io_error), + /* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), + /* K25 */ be_nested_str_weak(_X7C), + /* K26 */ be_const_int(2), + /* K27 */ be_nested_str_weak(random), + /* K28 */ be_nested_str_weak(get), + /* K29 */ be_const_int(0), + /* K30 */ be_nested_str_weak(generate_random_passcode), + /* K31 */ be_nested_str_weak(save_param), + }), + be_str_weak(load_param), + &be_const_str_solidified, + ( &(const binstruction[105]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA8020036, // 0002 EXBLK 0 #003A + 0x600C0011, // 0003 GETGBL R3 G17 + 0x88100102, // 0004 GETMBR R4 R0 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C100703, // 0006 GETMET R4 R3 K3 + 0x7C100200, // 0007 CALL R4 1 + 0x8C140704, // 0008 GETMET R5 R3 K4 + 0x7C140200, // 0009 CALL R5 1 + 0xA4160A00, // 000A IMPORT R5 K5 + 0x8C180B06, // 000B GETMET R6 R5 K6 + 0x5C200800, // 000C MOVE R8 R4 + 0x7C180400, // 000D CALL R6 2 + 0x8C1C0D08, // 000E GETMET R7 R6 K8 + 0x58240009, // 000F LDCONST R9 K9 + 0x88280107, // 0010 GETMBR R10 R0 K7 + 0x7C1C0600, // 0011 CALL R7 3 + 0x90020E07, // 0012 SETMBR R0 K7 R7 + 0x8C1C0D08, // 0013 GETMET R7 R6 K8 + 0x5824000B, // 0014 LDCONST R9 K11 + 0x8828010A, // 0015 GETMBR R10 R0 K10 + 0x7C1C0600, // 0016 CALL R7 3 + 0x90021407, // 0017 SETMBR R0 K10 R7 + 0x601C0017, // 0018 GETGBL R7 G23 + 0x8C200D08, // 0019 GETMET R8 R6 K8 + 0x5828000C, // 001A LDCONST R10 K12 + 0x502C0000, // 001B LDBOOL R11 0 0 + 0x7C200600, // 001C CALL R8 3 + 0x7C1C0200, // 001D CALL R7 1 + 0x90021807, // 001E SETMBR R0 K12 R7 + 0x8C1C0D08, // 001F GETMET R7 R6 K8 + 0x5824000E, // 0020 LDCONST R9 K14 + 0x8828010D, // 0021 GETMBR R10 R0 K13 + 0x7C1C0600, // 0022 CALL R7 3 + 0x90021A07, // 0023 SETMBR R0 K13 R7 + 0x8C1C0D08, // 0024 GETMET R7 R6 K8 + 0x58240010, // 0025 LDCONST R9 K16 + 0x7C1C0400, // 0026 CALL R7 2 + 0x90021E07, // 0027 SETMBR R0 K15 R7 + 0x881C010F, // 0028 GETMBR R7 R0 K15 + 0x4C200000, // 0029 LDNIL R8 + 0x201C0E08, // 002A NE R7 R7 R8 + 0x781E000B, // 002B JMPF R7 #0038 + 0xB81E2200, // 002C GETNGBL R7 K17 + 0x8C1C0F12, // 002D GETMET R7 R7 K18 + 0x60240008, // 002E GETGBL R9 G8 + 0x8828010F, // 002F GETMBR R10 R0 K15 + 0x7C240200, // 0030 CALL R9 1 + 0x00262609, // 0031 ADD R9 K19 R9 + 0x58280014, // 0032 LDCONST R10 K20 + 0x7C1C0600, // 0033 CALL R7 3 + 0x8C1C0115, // 0034 GETMET R7 R0 K21 + 0x7C1C0200, // 0035 CALL R7 1 + 0x501C0200, // 0036 LDBOOL R7 1 0 + 0x90022C07, // 0037 SETMBR R0 K22 R7 + 0xA8040001, // 0038 EXBLK 1 1 + 0x70020012, // 0039 JMP #004D + 0xAC0C0002, // 003A CATCH R3 0 2 + 0x7002000F, // 003B JMP #004C + 0x20140717, // 003C NE R5 R3 K23 + 0x7816000C, // 003D JMPF R5 #004B + 0xB8162200, // 003E GETNGBL R5 K17 + 0x8C140B12, // 003F GETMET R5 R5 K18 + 0x601C0008, // 0040 GETGBL R7 G8 + 0x5C200600, // 0041 MOVE R8 R3 + 0x7C1C0200, // 0042 CALL R7 1 + 0x001E3007, // 0043 ADD R7 K24 R7 + 0x001C0F19, // 0044 ADD R7 R7 K25 + 0x60200008, // 0045 GETGBL R8 G8 + 0x5C240800, // 0046 MOVE R9 R4 + 0x7C200200, // 0047 CALL R8 1 + 0x001C0E08, // 0048 ADD R7 R7 R8 + 0x5820001A, // 0049 LDCONST R8 K26 + 0x7C140600, // 004A CALL R5 3 + 0x70020000, // 004B JMP #004D + 0xB0080000, // 004C RAISE 2 R0 R0 + 0x500C0000, // 004D LDBOOL R3 0 0 + 0x88100107, // 004E GETMBR R4 R0 K7 + 0x4C140000, // 004F LDNIL R5 + 0x1C100805, // 0050 EQ R4 R4 R5 + 0x7812000A, // 0051 JMPF R4 #005D + 0x8C10051B, // 0052 GETMET R4 R2 K27 + 0x5818001A, // 0053 LDCONST R6 K26 + 0x7C100400, // 0054 CALL R4 2 + 0x8C10091C, // 0055 GETMET R4 R4 K28 + 0x5818001D, // 0056 LDCONST R6 K29 + 0x581C001A, // 0057 LDCONST R7 K26 + 0x7C100600, // 0058 CALL R4 3 + 0x54160FFE, // 0059 LDINT R5 4095 + 0x2C100805, // 005A AND R4 R4 R5 + 0x90020E04, // 005B SETMBR R0 K7 R4 + 0x500C0200, // 005C LDBOOL R3 1 0 + 0x8810010A, // 005D GETMBR R4 R0 K10 + 0x4C140000, // 005E LDNIL R5 + 0x1C100805, // 005F EQ R4 R4 R5 + 0x78120003, // 0060 JMPF R4 #0065 + 0x8C10011E, // 0061 GETMET R4 R0 K30 + 0x7C100200, // 0062 CALL R4 1 + 0x90021404, // 0063 SETMBR R0 K10 R4 + 0x500C0200, // 0064 LDBOOL R3 1 0 + 0x780E0001, // 0065 JMPF R3 #0068 + 0x8C10011F, // 0066 GETMET R4 R0 K31 + 0x7C100200, // 0067 CALL R4 1 + 0x80000000, // 0068 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_manual_pairing_code +********************************************************************/ +be_local_closure(Matter_Device_compute_manual_pairing_code, /* name */ + be_nested_proto( + 11, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(root_discriminator), + /* K2 */ be_nested_str_weak(root_passcode), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(_X251i_X2505i_X2504i), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(Verhoeff), + /* K7 */ be_nested_str_weak(checksum), + }), + be_str_weak(compute_manual_pairing_code), + &be_const_str_solidified, + ( &(const binstruction[31]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x540E0FFE, // 0002 LDINT R3 4095 + 0x2C080403, // 0003 AND R2 R2 R3 + 0x540E0009, // 0004 LDINT R3 10 + 0x3C080403, // 0005 SHR R2 R2 R3 + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x541202FF, // 0007 LDINT R4 768 + 0x2C0C0604, // 0008 AND R3 R3 R4 + 0x54120005, // 0009 LDINT R4 6 + 0x380C0604, // 000A SHL R3 R3 R4 + 0x88100102, // 000B GETMBR R4 R0 K2 + 0x54163FFE, // 000C LDINT R5 16383 + 0x2C100805, // 000D AND R4 R4 R5 + 0x300C0604, // 000E OR R3 R3 R4 + 0x88100102, // 000F GETMBR R4 R0 K2 + 0x5416000D, // 0010 LDINT R5 14 + 0x3C100805, // 0011 SHR R4 R4 R5 + 0x8C140303, // 0012 GETMET R5 R1 K3 + 0x581C0004, // 0013 LDCONST R7 K4 + 0x5C200400, // 0014 MOVE R8 R2 + 0x5C240600, // 0015 MOVE R9 R3 + 0x5C280800, // 0016 MOVE R10 R4 + 0x7C140A00, // 0017 CALL R5 5 + 0xB81A0A00, // 0018 GETNGBL R6 K5 + 0x88180D06, // 0019 GETMBR R6 R6 K6 + 0x8C180D07, // 001A GETMET R6 R6 K7 + 0x5C200A00, // 001B MOVE R8 R5 + 0x7C180400, // 001C CALL R6 2 + 0x00140A06, // 001D ADD R5 R5 R6 + 0x80040A00, // 001E RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Device_invoke_request, /* name */ + be_nested_proto( + 12, /* nstack */ + 4, /* 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_const_int(0), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_nested_str_weak(invoke_request), + /* K4 */ be_const_int(1), + /* K5 */ be_nested_str_weak(status), + /* K6 */ be_nested_str_weak(matter), + /* K7 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[24]) { /* code */ + 0x58100000, // 0000 LDCONST R4 K0 + 0x88140701, // 0001 GETMBR R5 R3 K1 + 0x6018000C, // 0002 GETGBL R6 G12 + 0x881C0102, // 0003 GETMBR R7 R0 K2 + 0x7C180200, // 0004 CALL R6 1 + 0x14180806, // 0005 LT R6 R4 R6 + 0x781A000C, // 0006 JMPF R6 #0014 + 0x88180102, // 0007 GETMBR R6 R0 K2 + 0x94180C04, // 0008 GETIDX R6 R6 R4 + 0x881C0D01, // 0009 GETMBR R7 R6 K1 + 0x1C1C0E05, // 000A EQ R7 R7 R5 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0D03, // 000C GETMET R7 R6 K3 + 0x5C240200, // 000D MOVE R9 R1 + 0x5C280400, // 000E MOVE R10 R2 + 0x5C2C0600, // 000F MOVE R11 R3 + 0x7C1C0800, // 0010 CALL R7 4 + 0x80040E00, // 0011 RET 1 R7 + 0x00100904, // 0012 ADD R4 R4 K4 + 0x7001FFED, // 0013 JMP #0002 + 0xB81A0C00, // 0014 GETNGBL R6 K6 + 0x88180D07, // 0015 GETMBR R6 R6 K7 + 0x900E0A06, // 0016 SETMBR R3 K5 R6 + 0x80000000, // 0017 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_operational_discovery_deferred +********************************************************************/ +be_local_closure(Matter_Device_start_operational_discovery_deferred, /* name */ be_nested_proto( 6, /* nstack */ 2, /* argc */ @@ -4975,7 +4232,7 @@ be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_commissioning_complete), + /* K0 */ be_nested_str_weak(start_operational_discovery), }), be_str_weak(_X3Clambda_X3E), &be_const_str_solidified, @@ -4994,7 +4251,7 @@ be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name /* K1 */ be_nested_str_weak(set_timer), /* K2 */ be_const_int(0), }), - be_str_weak(start_commissioning_complete_deferred), + be_str_weak(start_operational_discovery_deferred), &be_const_str_solidified, ( &(const binstruction[ 7]) { /* code */ 0xB80A0000, // 0000 GETNGBL R2 K0 @@ -5010,216 +4267,6 @@ be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name /*******************************************************************/ -/******************************************************************** -** Solidified function: start_mdns_announce_hostnames -********************************************************************/ -be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_mdns_announce_hostname), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080000, // 0002 LDBOOL R2 0 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_mdns_announce_hostname), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080200, // 0002 LDBOOL R2 1 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(wifi), - /* K2 */ be_nested_str_weak(up), - /* K3 */ be_nested_str_weak(_mdns_announce_hostname), - /* K4 */ be_nested_str_weak(add_rule), - /* K5 */ be_nested_str_weak(Wifi_X23Connected), - /* K6 */ be_nested_str_weak(matter_mdns_host), - /* K7 */ be_nested_str_weak(eth), - /* K8 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_mdns_announce_hostnames), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x94040302, // 0003 GETIDX R1 R1 K2 - 0x78060003, // 0004 JMPF R1 #0009 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x500C0000, // 0006 LDBOOL R3 0 0 - 0x7C040400, // 0007 CALL R1 2 - 0x70020005, // 0008 JMP #000F - 0xB8060000, // 0009 GETNGBL R1 K0 - 0x8C040304, // 000A GETMET R1 R1 K4 - 0x580C0005, // 000B LDCONST R3 K5 - 0x84100000, // 000C CLOSURE R4 P0 - 0x58140006, // 000D LDCONST R5 K6 - 0x7C040800, // 000E CALL R1 4 - 0xB8060000, // 000F GETNGBL R1 K0 - 0x8C040307, // 0010 GETMET R1 R1 K7 - 0x7C040200, // 0011 CALL R1 1 - 0x94040302, // 0012 GETIDX R1 R1 K2 - 0x78060003, // 0013 JMPF R1 #0018 - 0x8C040103, // 0014 GETMET R1 R0 K3 - 0x500C0200, // 0015 LDBOOL R3 1 0 - 0x7C040400, // 0016 CALL R1 2 - 0x70020005, // 0017 JMP #001E - 0xB8060000, // 0018 GETNGBL R1 K0 - 0x8C040304, // 0019 GETMET R1 R1 K4 - 0x580C0008, // 001A LDCONST R3 K8 - 0x84100001, // 001B CLOSURE R4 P1 - 0x58140006, // 001C LDCONST R5 K6 - 0x7C040800, // 001D CALL R1 4 - 0xA0000000, // 001E CLOSE R0 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_device -********************************************************************/ -be_local_closure(Matter_Device_autoconf_device, /* 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[16]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(json), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str_weak(plugins_persist), - /* K5 */ be_nested_str_weak(plugins_config), - /* K6 */ be_nested_str_weak(autoconf_device_map), - /* K7 */ be_nested_str_weak(adjust_next_ep), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(log), - /* K10 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), - /* K11 */ be_const_int(3), - /* K12 */ be_nested_str_weak(_instantiate_plugins_from_config), - /* K13 */ be_nested_str_weak(sessions), - /* K14 */ be_nested_str_weak(count_active_fabrics), - /* K15 */ be_nested_str_weak(save_param), - }), - be_str_weak(autoconf_device), - &be_const_str_solidified, - ( &(const binstruction[38]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x600C000C, // 0002 GETGBL R3 G12 - 0x88100102, // 0003 GETMBR R4 R0 K2 - 0x7C0C0200, // 0004 CALL R3 1 - 0x240C0703, // 0005 GT R3 R3 K3 - 0x780E0000, // 0006 JMPF R3 #0008 - 0x80000600, // 0007 RET 0 - 0x880C0104, // 0008 GETMBR R3 R0 K4 - 0x740E000C, // 0009 JMPT R3 #0017 - 0x8C0C0106, // 000A GETMET R3 R0 K6 - 0x7C0C0200, // 000B CALL R3 1 - 0x90020A03, // 000C SETMBR R0 K5 R3 - 0x8C0C0107, // 000D GETMET R3 R0 K7 - 0x7C0C0200, // 000E CALL R3 1 - 0xB80E1000, // 000F GETNGBL R3 K8 - 0x8C0C0709, // 0010 GETMET R3 R3 K9 - 0x60140008, // 0011 GETGBL R5 G8 - 0x88180105, // 0012 GETMBR R6 R0 K5 - 0x7C140200, // 0013 CALL R5 1 - 0x00161405, // 0014 ADD R5 K10 R5 - 0x5818000B, // 0015 LDCONST R6 K11 - 0x7C0C0600, // 0016 CALL R3 3 - 0x8C0C010C, // 0017 GETMET R3 R0 K12 - 0x88140105, // 0018 GETMBR R5 R0 K5 - 0x7C0C0400, // 0019 CALL R3 2 - 0x880C0104, // 001A GETMBR R3 R0 K4 - 0x740E0008, // 001B JMPT R3 #0025 - 0x880C010D, // 001C GETMBR R3 R0 K13 - 0x8C0C070E, // 001D GETMET R3 R3 K14 - 0x7C0C0200, // 001E CALL R3 1 - 0x240C0703, // 001F GT R3 R3 K3 - 0x780E0003, // 0020 JMPF R3 #0025 - 0x500C0200, // 0021 LDBOOL R3 1 0 - 0x90020803, // 0022 SETMBR R0 K4 R3 - 0x8C0C010F, // 0023 GETMET R3 R0 K15 - 0x7C0C0200, // 0024 CALL R3 1 - 0x80000000, // 0025 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: autoconf_device_map ********************************************************************/ @@ -5483,62 +4530,11 @@ be_local_closure(Matter_Device_autoconf_device_map, /* name */ /******************************************************************** -** Solidified function: attribute_updated +** Solidified function: autoconf_device ********************************************************************/ -be_local_closure(Matter_Device_attribute_updated, /* name */ +be_local_closure(Matter_Device_autoconf_device, /* name */ be_nested_proto( - 10, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(Path), - /* K2 */ be_nested_str_weak(endpoint), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_nested_str_weak(message_handler), - /* K6 */ be_nested_str_weak(im), - /* K7 */ be_nested_str_weak(subs_shop), - /* K8 */ be_nested_str_weak(attribute_updated_ctx), - }), - be_str_weak(attribute_updated), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140805, // 0001 EQ R5 R4 R5 - 0x78160000, // 0002 JMPF R5 #0004 - 0x50100000, // 0003 LDBOOL R4 0 0 - 0xB8160000, // 0004 GETNGBL R5 K0 - 0x8C140B01, // 0005 GETMET R5 R5 K1 - 0x7C140200, // 0006 CALL R5 1 - 0x90160401, // 0007 SETMBR R5 K2 R1 - 0x90160602, // 0008 SETMBR R5 K3 R2 - 0x90160803, // 0009 SETMBR R5 K4 R3 - 0x88180105, // 000A GETMBR R6 R0 K5 - 0x88180D06, // 000B GETMBR R6 R6 K6 - 0x88180D07, // 000C GETMBR R6 R6 K7 - 0x8C180D08, // 000D GETMET R6 R6 K8 - 0x5C200A00, // 000E MOVE R8 R5 - 0x5C240800, // 000F MOVE R9 R4 - 0x7C180600, // 0010 CALL R6 3 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_commissioning_open -********************************************************************/ -be_local_closure(Matter_Device_is_commissioning_open, /* name */ - be_nested_proto( - 3, /* nstack */ + 7, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -5546,16 +4542,1024 @@ be_local_closure(Matter_Device_is_commissioning_open, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(json), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_const_int(0), + /* K4 */ be_nested_str_weak(plugins_persist), + /* K5 */ be_nested_str_weak(plugins_config), + /* K6 */ be_nested_str_weak(autoconf_device_map), + /* K7 */ be_nested_str_weak(adjust_next_ep), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(log), + /* K10 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(_instantiate_plugins_from_config), + /* K13 */ be_nested_str_weak(sessions), + /* K14 */ be_nested_str_weak(count_active_fabrics), + /* K15 */ be_nested_str_weak(save_param), }), - be_str_weak(is_commissioning_open), + be_str_weak(autoconf_device), &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 + ( &(const binstruction[38]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x600C000C, // 0002 GETGBL R3 G12 + 0x88100102, // 0003 GETMBR R4 R0 K2 + 0x7C0C0200, // 0004 CALL R3 1 + 0x240C0703, // 0005 GT R3 R3 K3 + 0x780E0000, // 0006 JMPF R3 #0008 + 0x80000600, // 0007 RET 0 + 0x880C0104, // 0008 GETMBR R3 R0 K4 + 0x740E000C, // 0009 JMPT R3 #0017 + 0x8C0C0106, // 000A GETMET R3 R0 K6 + 0x7C0C0200, // 000B CALL R3 1 + 0x90020A03, // 000C SETMBR R0 K5 R3 + 0x8C0C0107, // 000D GETMET R3 R0 K7 + 0x7C0C0200, // 000E CALL R3 1 + 0xB80E1000, // 000F GETNGBL R3 K8 + 0x8C0C0709, // 0010 GETMET R3 R3 K9 + 0x60140008, // 0011 GETGBL R5 G8 + 0x88180105, // 0012 GETMBR R6 R0 K5 + 0x7C140200, // 0013 CALL R5 1 + 0x00161405, // 0014 ADD R5 K10 R5 + 0x5818000B, // 0015 LDCONST R6 K11 + 0x7C0C0600, // 0016 CALL R3 3 + 0x8C0C010C, // 0017 GETMET R3 R0 K12 + 0x88140105, // 0018 GETMBR R5 R0 K5 + 0x7C0C0400, // 0019 CALL R3 2 + 0x880C0104, // 001A GETMBR R3 R0 K4 + 0x740E0008, // 001B JMPT R3 #0025 + 0x880C010D, // 001C GETMBR R3 R0 K13 + 0x8C0C070E, // 001D GETMET R3 R3 K14 + 0x7C0C0200, // 001E CALL R3 1 + 0x240C0703, // 001F GT R3 R3 K3 + 0x780E0003, // 0020 JMPF R3 #0025 + 0x500C0200, // 0021 LDBOOL R3 1 0 + 0x90020803, // 0022 SETMBR R0 K4 R3 + 0x8C0C010F, // 0023 GETMET R3 R0 K15 + 0x7C0C0200, // 0024 CALL R3 1 + 0x80000000, // 0025 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: received_ack +********************************************************************/ +be_local_closure(Matter_Device_received_ack, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(received_ack), + }), + be_str_weak(received_ack), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: msg_send +********************************************************************/ +be_local_closure(Matter_Device_msg_send, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(send_UDP), + }), + be_str_weak(msg_send), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_basic_commissioning, /* name */ + be_nested_proto( + 13, /* nstack */ + 8, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(millis), + /* K3 */ be_nested_str_weak(commissioning_iterations), + /* K4 */ be_nested_str_weak(commissioning_discriminator), + /* K5 */ be_nested_str_weak(commissioning_salt), + /* K6 */ be_nested_str_weak(commissioning_w0), + /* K7 */ be_nested_str_weak(commissioning_L), + /* K8 */ be_nested_str_weak(commissioning_admin_fabric), + /* K9 */ be_nested_str_weak(wifi), + /* K10 */ be_nested_str_weak(up), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(mdns_announce_PASE), + /* K13 */ be_nested_str_weak(add_rule), + /* K14 */ be_nested_str_weak(Wifi_X23Connected), + /* K15 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0xB8220200, // 0000 GETNGBL R8 K1 + 0x8C201102, // 0001 GETMET R8 R8 K2 + 0x7C200200, // 0002 CALL R8 1 + 0x542603E7, // 0003 LDINT R9 1000 + 0x08240209, // 0004 MUL R9 R1 R9 + 0x00201009, // 0005 ADD R8 R8 R9 + 0x90020008, // 0006 SETMBR R0 K0 R8 + 0x90020602, // 0007 SETMBR R0 K3 R2 + 0x90020803, // 0008 SETMBR R0 K4 R3 + 0x90020A04, // 0009 SETMBR R0 K5 R4 + 0x90020C05, // 000A SETMBR R0 K6 R5 + 0x90020E06, // 000B SETMBR R0 K7 R6 + 0x90021007, // 000C SETMBR R0 K8 R7 + 0xB8220200, // 000D GETNGBL R8 K1 + 0x8C201109, // 000E GETMET R8 R8 K9 + 0x7C200200, // 000F CALL R8 1 + 0x9420110A, // 0010 GETIDX R8 R8 K10 + 0x74220004, // 0011 JMPT R8 #0017 + 0xB8220200, // 0012 GETNGBL R8 K1 + 0x8C20110B, // 0013 GETMET R8 R8 K11 + 0x7C200200, // 0014 CALL R8 1 + 0x9420110A, // 0015 GETIDX R8 R8 K10 + 0x78220002, // 0016 JMPF R8 #001A + 0x8C20010C, // 0017 GETMET R8 R0 K12 + 0x7C200200, // 0018 CALL R8 1 + 0x7002000B, // 0019 JMP #0026 + 0xB8220200, // 001A GETNGBL R8 K1 + 0x8C20110D, // 001B GETMET R8 R8 K13 + 0x5828000E, // 001C LDCONST R10 K14 + 0x842C0000, // 001D CLOSURE R11 P0 + 0x5830000C, // 001E LDCONST R12 K12 + 0x7C200800, // 001F CALL R8 4 + 0xB8220200, // 0020 GETNGBL R8 K1 + 0x8C20110D, // 0021 GETMET R8 R8 K13 + 0x5828000F, // 0022 LDCONST R10 K15 + 0x842C0001, // 0023 CLOSURE R11 P1 + 0x5830000C, // 0024 LDCONST R12 K12 + 0x7C200800, // 0025 CALL R8 4 + 0xA0000000, // 0026 CLOSE R0 + 0x80000000, // 0027 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: find_plugin_by_endpoint +********************************************************************/ +be_local_closure(Matter_Device_find_plugin_by_endpoint, /* 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[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(get_endpoint), + /* K3 */ be_const_int(1), + }), + be_str_weak(find_plugin_by_endpoint), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x58080000, // 0000 LDCONST R2 K0 + 0x600C000C, // 0001 GETGBL R3 G12 + 0x88100101, // 0002 GETMBR R4 R0 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x140C0403, // 0004 LT R3 R2 R3 + 0x780E0008, // 0005 JMPF R3 #000F + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x940C0602, // 0007 GETIDX R3 R3 R2 + 0x8C100702, // 0008 GETMET R4 R3 K2 + 0x7C100200, // 0009 CALL R4 1 + 0x1C100801, // 000A EQ R4 R4 R1 + 0x78120000, // 000B JMPF R4 #000D + 0x80040600, // 000C RET 1 R3 + 0x00080503, // 000D ADD R2 R2 K3 + 0x7001FFF1, // 000E JMP #0001 + 0x4C0C0000, // 000F LDNIL R3 + 0x80040600, // 0010 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_mdns_announce_hostnames +********************************************************************/ +be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080000, // 0002 LDBOOL R2 0 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080200, // 0002 LDBOOL R2 1 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(wifi), + /* K2 */ be_nested_str_weak(up), + /* K3 */ be_nested_str_weak(_mdns_announce_hostname), + /* K4 */ be_nested_str_weak(add_rule), + /* K5 */ be_nested_str_weak(Wifi_X23Connected), + /* K6 */ be_nested_str_weak(matter_mdns_host), + /* K7 */ be_nested_str_weak(eth), + /* K8 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_mdns_announce_hostnames), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x94040302, // 0003 GETIDX R1 R1 K2 + 0x78060003, // 0004 JMPF R1 #0009 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x500C0000, // 0006 LDBOOL R3 0 0 + 0x7C040400, // 0007 CALL R1 2 + 0x70020005, // 0008 JMP #000F + 0xB8060000, // 0009 GETNGBL R1 K0 + 0x8C040304, // 000A GETMET R1 R1 K4 + 0x580C0005, // 000B LDCONST R3 K5 + 0x84100000, // 000C CLOSURE R4 P0 + 0x58140006, // 000D LDCONST R5 K6 + 0x7C040800, // 000E CALL R1 4 + 0xB8060000, // 000F GETNGBL R1 K0 + 0x8C040307, // 0010 GETMET R1 R1 K7 + 0x7C040200, // 0011 CALL R1 1 + 0x94040302, // 0012 GETIDX R1 R1 K2 + 0x78060003, // 0013 JMPF R1 #0018 + 0x8C040103, // 0014 GETMET R1 R0 K3 + 0x500C0200, // 0015 LDBOOL R3 1 0 + 0x7C040400, // 0016 CALL R1 2 + 0x70020005, // 0017 JMP #001E + 0xB8060000, // 0018 GETNGBL R1 K0 + 0x8C040304, // 0019 GETMET R1 R1 K4 + 0x580C0008, // 001A LDCONST R3 K8 + 0x84100001, // 001B CLOSURE R4 P1 + 0x58140006, // 001C LDCONST R5 K6 + 0x7C040800, // 001D CALL R1 4 + 0xA0000000, // 001E CLOSE R0 + 0x80000000, // 001F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_PASE +********************************************************************/ +be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ + be_nested_proto( + 13, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[43]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(crypto), + /* K3 */ be_nested_str_weak(VP), + /* K4 */ be_nested_str_weak(vendorid), + /* K5 */ be_nested_str_weak(_X2B), + /* K6 */ be_nested_str_weak(productid), + /* K7 */ be_nested_str_weak(D), + /* K8 */ be_nested_str_weak(commissioning_discriminator), + /* K9 */ be_nested_str_weak(CM), + /* K10 */ be_const_int(1), + /* K11 */ be_nested_str_weak(T), + /* K12 */ be_const_int(0), + /* K13 */ be_nested_str_weak(SII), + /* K14 */ be_nested_str_weak(SAI), + /* K15 */ be_nested_str_weak(commissioning_instance_wifi), + /* K16 */ be_nested_str_weak(random), + /* K17 */ be_nested_str_weak(tohex), + /* K18 */ be_nested_str_weak(commissioning_instance_eth), + /* K19 */ be_nested_str_weak(hostname_eth), + /* K20 */ be_nested_str_weak(add_service), + /* K21 */ be_nested_str_weak(_matterc), + /* K22 */ be_nested_str_weak(_udp), + /* K23 */ be_nested_str_weak(mdns_pase_eth), + /* K24 */ be_nested_str_weak(tasmota), + /* K25 */ be_nested_str_weak(log), + /* K26 */ be_nested_str_weak(format), + /* K27 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K28 */ be_nested_str_weak(eth), + /* K29 */ be_const_int(2), + /* K30 */ be_nested_str_weak(_L), + /* K31 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K32 */ be_const_int(3), + /* K33 */ be_nested_str_weak(add_subtype), + /* K34 */ be_nested_str_weak(_S), + /* K35 */ be_nested_str_weak(_V), + /* K36 */ be_nested_str_weak(_CM1), + /* K37 */ be_nested_str_weak(hostname_wifi), + /* K38 */ be_nested_str_weak(mdns_pase_wifi), + /* K39 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K40 */ be_nested_str_weak(wifi), + /* K41 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K42 */ be_nested_str_weak(_X7C), + }), + be_str_weak(mdns_announce_PASE), + &be_const_str_solidified, + ( &(const binstruction[237]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA40E0400, // 0002 IMPORT R3 K2 + 0x60100013, // 0003 GETGBL R4 G19 + 0x7C100000, // 0004 CALL R4 0 + 0x60140008, // 0005 GETGBL R5 G8 + 0x88180104, // 0006 GETMBR R6 R0 K4 + 0x7C140200, // 0007 CALL R5 1 + 0x00140B05, // 0008 ADD R5 R5 K5 + 0x60180008, // 0009 GETGBL R6 G8 + 0x881C0106, // 000A GETMBR R7 R0 K6 + 0x7C180200, // 000B CALL R6 1 + 0x00140A06, // 000C ADD R5 R5 R6 + 0x98120605, // 000D SETIDX R4 K3 R5 + 0x88140108, // 000E GETMBR R5 R0 K8 + 0x98120E05, // 000F SETIDX R4 K7 R5 + 0x9812130A, // 0010 SETIDX R4 K9 K10 + 0x9812170C, // 0011 SETIDX R4 K11 K12 + 0x54161387, // 0012 LDINT R5 5000 + 0x98121A05, // 0013 SETIDX R4 K13 R5 + 0x5416012B, // 0014 LDINT R5 300 + 0x98121C05, // 0015 SETIDX R4 K14 R5 + 0x8C140710, // 0016 GETMET R5 R3 K16 + 0x541E0007, // 0017 LDINT R7 8 + 0x7C140400, // 0018 CALL R5 2 + 0x8C140B11, // 0019 GETMET R5 R5 K17 + 0x7C140200, // 001A CALL R5 1 + 0x90021E05, // 001B SETMBR R0 K15 R5 + 0x8C140710, // 001C GETMET R5 R3 K16 + 0x541E0007, // 001D LDINT R7 8 + 0x7C140400, // 001E CALL R5 2 + 0x8C140B11, // 001F GETMET R5 R5 K17 + 0x7C140200, // 0020 CALL R5 1 + 0x90022405, // 0021 SETMBR R0 K18 R5 + 0xA80200B7, // 0022 EXBLK 0 #00DB + 0x88140113, // 0023 GETMBR R5 R0 K19 + 0x78160058, // 0024 JMPF R5 #007E + 0x8C140314, // 0025 GETMET R5 R1 K20 + 0x581C0015, // 0026 LDCONST R7 K21 + 0x58200016, // 0027 LDCONST R8 K22 + 0x542615A3, // 0028 LDINT R9 5540 + 0x5C280800, // 0029 MOVE R10 R4 + 0x882C0112, // 002A GETMBR R11 R0 K18 + 0x88300113, // 002B GETMBR R12 R0 K19 + 0x7C140E00, // 002C CALL R5 7 + 0x50140200, // 002D LDBOOL R5 1 0 + 0x90022E05, // 002E SETMBR R0 K23 R5 + 0xB8163000, // 002F GETNGBL R5 K24 + 0x8C140B19, // 0030 GETMET R5 R5 K25 + 0x8C1C051A, // 0031 GETMET R7 R2 K26 + 0x5824001B, // 0032 LDCONST R9 K27 + 0x5828001C, // 0033 LDCONST R10 K28 + 0x882C0112, // 0034 GETMBR R11 R0 K18 + 0x88300113, // 0035 GETMBR R12 R0 K19 + 0x7C1C0A00, // 0036 CALL R7 5 + 0x5820001D, // 0037 LDCONST R8 K29 + 0x7C140600, // 0038 CALL R5 3 + 0x60140008, // 0039 GETGBL R5 G8 + 0x88180108, // 003A GETMBR R6 R0 K8 + 0x541E0FFE, // 003B LDINT R7 4095 + 0x2C180C07, // 003C AND R6 R6 R7 + 0x7C140200, // 003D CALL R5 1 + 0x00163C05, // 003E ADD R5 K30 R5 + 0xB81A3000, // 003F GETNGBL R6 K24 + 0x8C180D19, // 0040 GETMET R6 R6 K25 + 0x00223E05, // 0041 ADD R8 K31 R5 + 0x58240020, // 0042 LDCONST R9 K32 + 0x7C180600, // 0043 CALL R6 3 + 0x8C180321, // 0044 GETMET R6 R1 K33 + 0x58200015, // 0045 LDCONST R8 K21 + 0x58240016, // 0046 LDCONST R9 K22 + 0x88280112, // 0047 GETMBR R10 R0 K18 + 0x882C0113, // 0048 GETMBR R11 R0 K19 + 0x5C300A00, // 0049 MOVE R12 R5 + 0x7C180C00, // 004A CALL R6 6 + 0x60180008, // 004B GETGBL R6 G8 + 0x881C0108, // 004C GETMBR R7 R0 K8 + 0x54220EFF, // 004D LDINT R8 3840 + 0x2C1C0E08, // 004E AND R7 R7 R8 + 0x54220007, // 004F LDINT R8 8 + 0x3C1C0E08, // 0050 SHR R7 R7 R8 + 0x7C180200, // 0051 CALL R6 1 + 0x001A4406, // 0052 ADD R6 K34 R6 + 0x5C140C00, // 0053 MOVE R5 R6 + 0xB81A3000, // 0054 GETNGBL R6 K24 + 0x8C180D19, // 0055 GETMET R6 R6 K25 + 0x00223E05, // 0056 ADD R8 K31 R5 + 0x58240020, // 0057 LDCONST R9 K32 + 0x7C180600, // 0058 CALL R6 3 + 0x8C180321, // 0059 GETMET R6 R1 K33 + 0x58200015, // 005A LDCONST R8 K21 + 0x58240016, // 005B LDCONST R9 K22 + 0x88280112, // 005C GETMBR R10 R0 K18 + 0x882C0113, // 005D GETMBR R11 R0 K19 + 0x5C300A00, // 005E MOVE R12 R5 + 0x7C180C00, // 005F CALL R6 6 + 0x60180008, // 0060 GETGBL R6 G8 + 0x881C0104, // 0061 GETMBR R7 R0 K4 + 0x7C180200, // 0062 CALL R6 1 + 0x001A4606, // 0063 ADD R6 K35 R6 + 0x5C140C00, // 0064 MOVE R5 R6 + 0xB81A3000, // 0065 GETNGBL R6 K24 + 0x8C180D19, // 0066 GETMET R6 R6 K25 + 0x00223E05, // 0067 ADD R8 K31 R5 + 0x58240020, // 0068 LDCONST R9 K32 + 0x7C180600, // 0069 CALL R6 3 + 0x8C180321, // 006A GETMET R6 R1 K33 + 0x58200015, // 006B LDCONST R8 K21 + 0x58240016, // 006C LDCONST R9 K22 + 0x88280112, // 006D GETMBR R10 R0 K18 + 0x882C0113, // 006E GETMBR R11 R0 K19 + 0x5C300A00, // 006F MOVE R12 R5 + 0x7C180C00, // 0070 CALL R6 6 + 0x58140024, // 0071 LDCONST R5 K36 + 0xB81A3000, // 0072 GETNGBL R6 K24 + 0x8C180D19, // 0073 GETMET R6 R6 K25 + 0x00223E05, // 0074 ADD R8 K31 R5 + 0x58240020, // 0075 LDCONST R9 K32 + 0x7C180600, // 0076 CALL R6 3 + 0x8C180321, // 0077 GETMET R6 R1 K33 + 0x58200015, // 0078 LDCONST R8 K21 + 0x58240016, // 0079 LDCONST R9 K22 + 0x88280112, // 007A GETMBR R10 R0 K18 + 0x882C0113, // 007B GETMBR R11 R0 K19 + 0x5C300A00, // 007C MOVE R12 R5 + 0x7C180C00, // 007D CALL R6 6 + 0x88140125, // 007E GETMBR R5 R0 K37 + 0x78160058, // 007F JMPF R5 #00D9 + 0x8C140314, // 0080 GETMET R5 R1 K20 + 0x581C0015, // 0081 LDCONST R7 K21 + 0x58200016, // 0082 LDCONST R8 K22 + 0x542615A3, // 0083 LDINT R9 5540 + 0x5C280800, // 0084 MOVE R10 R4 + 0x882C010F, // 0085 GETMBR R11 R0 K15 + 0x88300125, // 0086 GETMBR R12 R0 K37 + 0x7C140E00, // 0087 CALL R5 7 + 0x50140200, // 0088 LDBOOL R5 1 0 + 0x90024C05, // 0089 SETMBR R0 K38 R5 + 0xB8163000, // 008A GETNGBL R5 K24 + 0x8C140B19, // 008B GETMET R5 R5 K25 + 0x8C1C051A, // 008C GETMET R7 R2 K26 + 0x58240027, // 008D LDCONST R9 K39 + 0x58280028, // 008E LDCONST R10 K40 + 0x882C010F, // 008F GETMBR R11 R0 K15 + 0x88300125, // 0090 GETMBR R12 R0 K37 + 0x7C1C0A00, // 0091 CALL R7 5 + 0x58200020, // 0092 LDCONST R8 K32 + 0x7C140600, // 0093 CALL R5 3 + 0x60140008, // 0094 GETGBL R5 G8 + 0x88180108, // 0095 GETMBR R6 R0 K8 + 0x541E0FFE, // 0096 LDINT R7 4095 + 0x2C180C07, // 0097 AND R6 R6 R7 + 0x7C140200, // 0098 CALL R5 1 + 0x00163C05, // 0099 ADD R5 K30 R5 + 0xB81A3000, // 009A GETNGBL R6 K24 + 0x8C180D19, // 009B GETMET R6 R6 K25 + 0x00223E05, // 009C ADD R8 K31 R5 + 0x58240020, // 009D LDCONST R9 K32 + 0x7C180600, // 009E CALL R6 3 + 0x8C180321, // 009F GETMET R6 R1 K33 + 0x58200015, // 00A0 LDCONST R8 K21 + 0x58240016, // 00A1 LDCONST R9 K22 + 0x8828010F, // 00A2 GETMBR R10 R0 K15 + 0x882C0125, // 00A3 GETMBR R11 R0 K37 + 0x5C300A00, // 00A4 MOVE R12 R5 + 0x7C180C00, // 00A5 CALL R6 6 + 0x60180008, // 00A6 GETGBL R6 G8 + 0x881C0108, // 00A7 GETMBR R7 R0 K8 + 0x54220EFF, // 00A8 LDINT R8 3840 + 0x2C1C0E08, // 00A9 AND R7 R7 R8 + 0x54220007, // 00AA LDINT R8 8 + 0x3C1C0E08, // 00AB SHR R7 R7 R8 + 0x7C180200, // 00AC CALL R6 1 + 0x001A4406, // 00AD ADD R6 K34 R6 + 0x5C140C00, // 00AE MOVE R5 R6 + 0xB81A3000, // 00AF GETNGBL R6 K24 + 0x8C180D19, // 00B0 GETMET R6 R6 K25 + 0x00223E05, // 00B1 ADD R8 K31 R5 + 0x58240020, // 00B2 LDCONST R9 K32 + 0x7C180600, // 00B3 CALL R6 3 + 0x8C180321, // 00B4 GETMET R6 R1 K33 + 0x58200015, // 00B5 LDCONST R8 K21 + 0x58240016, // 00B6 LDCONST R9 K22 + 0x8828010F, // 00B7 GETMBR R10 R0 K15 + 0x882C0125, // 00B8 GETMBR R11 R0 K37 + 0x5C300A00, // 00B9 MOVE R12 R5 + 0x7C180C00, // 00BA CALL R6 6 + 0x60180008, // 00BB GETGBL R6 G8 + 0x881C0104, // 00BC GETMBR R7 R0 K4 + 0x7C180200, // 00BD CALL R6 1 + 0x001A4606, // 00BE ADD R6 K35 R6 + 0x5C140C00, // 00BF MOVE R5 R6 + 0xB81A3000, // 00C0 GETNGBL R6 K24 + 0x8C180D19, // 00C1 GETMET R6 R6 K25 + 0x00223E05, // 00C2 ADD R8 K31 R5 + 0x58240020, // 00C3 LDCONST R9 K32 + 0x7C180600, // 00C4 CALL R6 3 + 0x8C180321, // 00C5 GETMET R6 R1 K33 + 0x58200015, // 00C6 LDCONST R8 K21 + 0x58240016, // 00C7 LDCONST R9 K22 + 0x8828010F, // 00C8 GETMBR R10 R0 K15 + 0x882C0125, // 00C9 GETMBR R11 R0 K37 + 0x5C300A00, // 00CA MOVE R12 R5 + 0x7C180C00, // 00CB CALL R6 6 + 0x58140024, // 00CC LDCONST R5 K36 + 0xB81A3000, // 00CD GETNGBL R6 K24 + 0x8C180D19, // 00CE GETMET R6 R6 K25 + 0x00223E05, // 00CF ADD R8 K31 R5 + 0x58240020, // 00D0 LDCONST R9 K32 + 0x7C180600, // 00D1 CALL R6 3 + 0x8C180321, // 00D2 GETMET R6 R1 K33 + 0x58200015, // 00D3 LDCONST R8 K21 + 0x58240016, // 00D4 LDCONST R9 K22 + 0x8828010F, // 00D5 GETMBR R10 R0 K15 + 0x882C0125, // 00D6 GETMBR R11 R0 K37 + 0x5C300A00, // 00D7 MOVE R12 R5 + 0x7C180C00, // 00D8 CALL R6 6 + 0xA8040001, // 00D9 EXBLK 1 1 + 0x70020010, // 00DA JMP #00EC + 0xAC140002, // 00DB CATCH R5 0 2 + 0x7002000D, // 00DC JMP #00EB + 0xB81E3000, // 00DD GETNGBL R7 K24 + 0x8C1C0F19, // 00DE GETMET R7 R7 K25 + 0x60240008, // 00DF GETGBL R9 G8 + 0x5C280A00, // 00E0 MOVE R10 R5 + 0x7C240200, // 00E1 CALL R9 1 + 0x00265209, // 00E2 ADD R9 K41 R9 + 0x0024132A, // 00E3 ADD R9 R9 K42 + 0x60280008, // 00E4 GETGBL R10 G8 + 0x5C2C0C00, // 00E5 MOVE R11 R6 + 0x7C280200, // 00E6 CALL R10 1 + 0x0024120A, // 00E7 ADD R9 R9 R10 + 0x5828001D, // 00E8 LDCONST R10 K29 + 0x7C1C0600, // 00E9 CALL R7 3 + 0x70020000, // 00EA JMP #00EC + 0xB0080000, // 00EB RAISE 2 R0 R0 + 0x80000000, // 00EC RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: generate_random_passcode +********************************************************************/ +be_local_closure(Matter_Device_generate_random_passcode, /* 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[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(random), + /* K2 */ be_nested_str_weak(get), + /* K3 */ be_const_int(0), + /* K4 */ be_const_int(134217727), + /* K5 */ be_const_int(99999998), + /* K6 */ be_nested_str_weak(PASSCODE_INVALID), + /* K7 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(generate_random_passcode), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 + 0x500C0200, // 0002 LDBOOL R3 1 0 + 0x780E001D, // 0003 JMPF R3 #0022 + 0x8C0C0301, // 0004 GETMET R3 R1 K1 + 0x54160003, // 0005 LDINT R5 4 + 0x7C0C0400, // 0006 CALL R3 2 + 0x8C0C0702, // 0007 GETMET R3 R3 K2 + 0x58140003, // 0008 LDCONST R5 K3 + 0x541A0003, // 0009 LDINT R6 4 + 0x7C0C0600, // 000A CALL R3 3 + 0x2C0C0704, // 000B AND R3 R3 K4 + 0x5C080600, // 000C MOVE R2 R3 + 0x240C0505, // 000D GT R3 R2 K5 + 0x780E0000, // 000E JMPF R3 #0010 + 0x7001FFF1, // 000F JMP #0002 + 0x600C0010, // 0010 GETGBL R3 G16 + 0x88100106, // 0011 GETMBR R4 R0 K6 + 0x7C0C0200, // 0012 CALL R3 1 + 0xA8020005, // 0013 EXBLK 0 #001A + 0x5C100600, // 0014 MOVE R4 R3 + 0x7C100000, // 0015 CALL R4 0 + 0x1C140404, // 0016 EQ R5 R2 R4 + 0x78160000, // 0017 JMPF R5 #0019 + 0x4C080000, // 0018 LDNIL R2 + 0x7001FFF9, // 0019 JMP #0014 + 0x580C0007, // 001A LDCONST R3 K7 + 0xAC0C0200, // 001B CATCH R3 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x4C0C0000, // 001D LDNIL R3 + 0x200C0403, // 001E NE R3 R2 R3 + 0x780E0000, // 001F JMPF R3 #0021 + 0x80040400, // 0020 RET 1 R2 + 0x7001FFDF, // 0021 JMP #0002 + 0x80000000, // 0022 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_native_classes +********************************************************************/ +be_local_closure(Matter_Device_register_native_classes, /* name */ + be_nested_proto( + 12, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(introspect), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(members), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(get), + /* K5 */ be_nested_str_weak(class), + /* K6 */ be_nested_str_weak(find), + /* K7 */ be_nested_str_weak(Plugin_), + /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(register_plugin_class), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(tasmota), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(MTR_X3A_X20registered_X20classes_X20), + /* K14 */ be_nested_str_weak(k2l), + /* K15 */ be_nested_str_weak(plugins_classes), + /* K16 */ be_const_int(3), + }), + be_str_weak(register_native_classes), + &be_const_str_solidified, + ( &(const binstruction[43]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xA4120200, // 0001 IMPORT R4 K1 + 0x60140010, // 0002 GETGBL R5 G16 + 0x8C180702, // 0003 GETMET R6 R3 K2 + 0xB8220600, // 0004 GETNGBL R8 K3 + 0x7C180400, // 0005 CALL R6 2 + 0x7C140200, // 0006 CALL R5 1 + 0xA8020014, // 0007 EXBLK 0 #001D + 0x5C180A00, // 0008 MOVE R6 R5 + 0x7C180000, // 0009 CALL R6 0 + 0x8C1C0704, // 000A GETMET R7 R3 K4 + 0xB8260600, // 000B GETNGBL R9 K3 + 0x5C280C00, // 000C MOVE R10 R6 + 0x7C1C0600, // 000D CALL R7 3 + 0x60200004, // 000E GETGBL R8 G4 + 0x5C240E00, // 000F MOVE R9 R7 + 0x7C200200, // 0010 CALL R8 1 + 0x1C201105, // 0011 EQ R8 R8 K5 + 0x78220008, // 0012 JMPF R8 #001C + 0x8C200906, // 0013 GETMET R8 R4 K6 + 0x5C280C00, // 0014 MOVE R10 R6 + 0x582C0007, // 0015 LDCONST R11 K7 + 0x7C200600, // 0016 CALL R8 3 + 0x1C201108, // 0017 EQ R8 R8 K8 + 0x78220002, // 0018 JMPF R8 #001C + 0x8C200109, // 0019 GETMET R8 R0 K9 + 0x5C280E00, // 001A MOVE R10 R7 + 0x7C200400, // 001B CALL R8 2 + 0x7001FFEA, // 001C JMP #0008 + 0x5814000A, // 001D LDCONST R5 K10 + 0xAC140200, // 001E CATCH R5 1 0 + 0xB0080000, // 001F RAISE 2 R0 R0 + 0xB8161600, // 0020 GETNGBL R5 K11 + 0x8C140B0C, // 0021 GETMET R5 R5 K12 + 0x601C0008, // 0022 GETGBL R7 G8 + 0x8C20010E, // 0023 GETMET R8 R0 K14 + 0x8828010F, // 0024 GETMBR R10 R0 K15 + 0x7C200400, // 0025 CALL R8 2 + 0x7C1C0200, // 0026 CALL R7 1 + 0x001E1A07, // 0027 ADD R7 K13 R7 + 0x58200010, // 0028 LDCONST R8 K16 + 0x7C140600, // 0029 CALL R5 3 + 0x80000000, // 002A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: sort_distinct +********************************************************************/ +be_local_closure(Matter_Device_sort_distinct, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_const_int(1), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_nested_str_weak(remove), + }), + be_str_weak(sort_distinct), + &be_const_str_solidified, + ( &(const binstruction[53]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080010, // 0001 GETGBL R2 G16 + 0x600C000C, // 0002 GETGBL R3 G12 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C0C0200, // 0004 CALL R3 1 + 0x040C0701, // 0005 SUB R3 R3 K1 + 0x400E0203, // 0006 CONNECT R3 K1 R3 + 0x7C080200, // 0007 CALL R2 1 + 0xA8020010, // 0008 EXBLK 0 #001A + 0x5C0C0400, // 0009 MOVE R3 R2 + 0x7C0C0000, // 000A CALL R3 0 + 0x94100003, // 000B GETIDX R4 R0 R3 + 0x5C140600, // 000C MOVE R5 R3 + 0x24180B02, // 000D GT R6 R5 K2 + 0x781A0008, // 000E JMPF R6 #0018 + 0x04180B01, // 000F SUB R6 R5 K1 + 0x94180006, // 0010 GETIDX R6 R0 R6 + 0x24180C04, // 0011 GT R6 R6 R4 + 0x781A0004, // 0012 JMPF R6 #0018 + 0x04180B01, // 0013 SUB R6 R5 K1 + 0x94180006, // 0014 GETIDX R6 R0 R6 + 0x98000A06, // 0015 SETIDX R0 R5 R6 + 0x04140B01, // 0016 SUB R5 R5 K1 + 0x7001FFF4, // 0017 JMP #000D + 0x98000A04, // 0018 SETIDX R0 R5 R4 + 0x7001FFEE, // 0019 JMP #0009 + 0x58080003, // 001A LDCONST R2 K3 + 0xAC080200, // 001B CATCH R2 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x58080001, // 001D LDCONST R2 K1 + 0x600C000C, // 001E GETGBL R3 G12 + 0x5C100000, // 001F MOVE R4 R0 + 0x7C0C0200, // 0020 CALL R3 1 + 0x180C0701, // 0021 LE R3 R3 K1 + 0x780E0000, // 0022 JMPF R3 #0024 + 0x80040000, // 0023 RET 1 R0 + 0x940C0102, // 0024 GETIDX R3 R0 K2 + 0x6010000C, // 0025 GETGBL R4 G12 + 0x5C140000, // 0026 MOVE R5 R0 + 0x7C100200, // 0027 CALL R4 1 + 0x14100404, // 0028 LT R4 R2 R4 + 0x78120009, // 0029 JMPF R4 #0034 + 0x94100002, // 002A GETIDX R4 R0 R2 + 0x1C100803, // 002B EQ R4 R4 R3 + 0x78120003, // 002C JMPF R4 #0031 + 0x8C100104, // 002D GETMET R4 R0 K4 + 0x5C180400, // 002E MOVE R6 R2 + 0x7C100400, // 002F CALL R4 2 + 0x70020001, // 0030 JMP #0033 + 0x940C0002, // 0031 GETIDX R3 R0 R2 + 0x00080501, // 0032 ADD R2 R2 K1 + 0x7001FFF0, // 0033 JMP #0025 + 0x80040000, // 0034 RET 1 R0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: signal_endpoints_changed +********************************************************************/ +be_local_closure(Matter_Device_signal_endpoints_changed, /* 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[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(attribute_updated), + /* K1 */ be_const_int(0), + /* K2 */ be_const_int(3), + }), + be_str_weak(signal_endpoints_changed), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x580C0001, // 0001 LDCONST R3 K1 + 0x5412001C, // 0002 LDINT R4 29 + 0x58140002, // 0003 LDCONST R5 K2 + 0x50180000, // 0004 LDBOOL R6 0 0 + 0x7C040A00, // 0005 CALL R1 5 + 0x8C040100, // 0006 GETMET R1 R0 K0 + 0x540EFEFF, // 0007 LDINT R3 65280 + 0x5412001C, // 0008 LDINT R4 29 + 0x58140002, // 0009 LDCONST R5 K2 + 0x50180000, // 000A LDBOOL R6 0 0 + 0x7C040A00, // 000B CALL R1 5 + 0x80000000, // 000C RET 0 }) ) ); @@ -5568,103 +5572,54 @@ be_local_closure(Matter_Device_is_commissioning_open, /* name */ be_local_class(Matter_Device, 34, NULL, - be_nested_map(103, + be_nested_map(104, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(Matter_Device_get_plugin_class_arg_closure) }, - { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, - { be_const_key_weak(find_plugin_by_endpoint, -1), be_const_closure(Matter_Device_find_plugin_by_endpoint_closure) }, - { be_const_key_weak(get_active_endpoints, 97), be_const_closure(Matter_Device_get_active_endpoints_closure) }, - { be_const_key_weak(is_root_commissioning_open, 102), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, - { be_const_key_weak(hostname_wifi, 95), be_const_var(19) }, - { be_const_key_weak(register_commands, 9), be_const_closure(Matter_Device_register_commands_closure) }, - { be_const_key_weak(commissioning_open, 70), be_const_var(10) }, - { be_const_key_weak(vendorid, 57), be_const_var(21) }, - { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, - { be_const_key_weak(is_commissioning_open, -1), be_const_closure(Matter_Device_is_commissioning_open_closure) }, - { be_const_key_weak(adjust_next_ep, 98), be_const_closure(Matter_Device_adjust_next_ep_closure) }, - { be_const_key_weak(root_L, -1), be_const_var(33) }, - { be_const_key_weak(autoconf_device_map, -1), be_const_closure(Matter_Device_autoconf_device_map_closure) }, - { be_const_key_weak(autoconf_device, 18), be_const_closure(Matter_Device_autoconf_device_closure) }, - { be_const_key_weak(commissioning_discriminator, -1), be_const_var(12) }, - { be_const_key_weak(tick, 45), be_const_var(9) }, - { be_const_key_weak(productid, 26), be_const_var(22) }, - { be_const_key_weak(start_commissioning_complete, 88), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, - { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, - { be_const_key_weak(commissioning_iterations, -1), be_const_var(11) }, - { be_const_key_weak(save_before_restart, 58), be_const_closure(Matter_Device_save_before_restart_closure) }, - { be_const_key_weak(plugins_persist, 40), be_const_var(2) }, - { be_const_key_weak(start_operational_discovery_deferred, -1), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, - { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, - { be_const_key_weak(plugins_classes, 55), be_const_var(3) }, - { be_const_key_weak(start, -1), be_const_closure(Matter_Device_start_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Device_init_closure) }, - { be_const_key_weak(register_native_classes, -1), be_const_closure(Matter_Device_register_native_classes_closure) }, - { be_const_key_weak(root_salt, -1), be_const_var(31) }, - { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, - { be_const_key_weak(clean_remotes, -1), be_const_closure(Matter_Device_clean_remotes_closure) }, - { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(signal_endpoints_changed, -1), be_const_closure(Matter_Device_signal_endpoints_changed_closure) }, - { be_const_key_weak(get_plugin_class_displayname, -1), be_const_closure(Matter_Device_get_plugin_class_displayname_closure) }, - { be_const_key_weak(msg_received, 53), be_const_closure(Matter_Device_msg_received_closure) }, - { be_const_key_weak(generate_random_passcode, -1), be_const_closure(Matter_Device_generate_random_passcode_closure) }, - { be_const_key_weak(MtrJoin, 30), be_const_closure(Matter_Device_MtrJoin_closure) }, - { be_const_key_weak(remove_fabric, 25), be_const_closure(Matter_Device_remove_fabric_closure) }, - { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, - { be_const_key_weak(PASE_TIMEOUT, 85), be_const_int(600) }, - { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, - { be_const_key_weak(http_remotes, 36), be_const_var(25) }, { be_const_key_weak(hostname_eth, -1), be_const_var(20) }, - { be_const_key_weak(root_discriminator, 89), be_const_var(26) }, - { be_const_key_weak(register_http_remote, 93), be_const_closure(Matter_Device_register_http_remote_closure) }, - { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, - { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(16) }, - { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(Matter_Device_event_fabrics_saved_closure) }, - { be_const_key_weak(_init_basic_commissioning, 61), be_const_closure(Matter_Device__init_basic_commissioning_closure) }, - { be_const_key_weak(invoke_request, 92), be_const_closure(Matter_Device_invoke_request_closure) }, - { be_const_key_weak(_compute_pbkdf, -1), be_const_closure(Matter_Device__compute_pbkdf_closure) }, + { be_const_key_weak(save_before_restart, -1), be_const_closure(Matter_Device_save_before_restart_closure) }, + { be_const_key_weak(is_commissioning_open, 65), be_const_closure(Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(plugins, 94), be_const_var(1) }, + { be_const_key_weak(plugins_config, 1), be_const_var(4) }, + { be_const_key_weak(save_param, 4), be_const_closure(Matter_Device_save_param_closure) }, + { be_const_key_weak(root_L, 24), be_const_var(33) }, + { be_const_key_weak(mdns_remove_op_discovery, 86), be_const_closure(Matter_Device_mdns_remove_op_discovery_closure) }, + { be_const_key_weak(plugins_classes, 36), be_const_var(3) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, + { be_const_key_weak(root_salt, -1), be_const_var(31) }, + { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, { be_const_key_weak(sessions, -1), be_const_var(7) }, - { be_const_key_weak(root_iterations, -1), be_const_var(30) }, - { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, - { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, - { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, - { be_const_key_weak(plugins, 13), be_const_var(1) }, - { be_const_key_weak(k2l, 52), be_const_static_closure(Matter_Device_k2l_closure) }, - { be_const_key_weak(autoconf_sensors_list, -1), be_const_closure(Matter_Device_autoconf_sensors_list_closure) }, - { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, - { be_const_key_weak(next_ep, -1), be_const_var(29) }, - { be_const_key_weak(plugins_config, 27), be_const_var(4) }, - { be_const_key_weak(sort_distinct, 84), be_const_static_closure(Matter_Device_sort_distinct_closure) }, - { be_const_key_weak(PRODUCT_ID, 83), be_const_int(32768) }, - { be_const_key_weak(save_param, 67), be_const_closure(Matter_Device_save_param_closure) }, - { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, - { be_const_key_weak(k2l_num, -1), be_const_static_closure(Matter_Device_k2l_num_closure) }, - { be_const_key_weak(_instantiate_plugins_from_config, 81), be_const_closure(Matter_Device__instantiate_plugins_from_config_closure) }, - { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, - { be_const_key_weak(start_operational_discovery, 28), be_const_closure(Matter_Device_start_operational_discovery_closure) }, - { be_const_key_weak(root_w0, -1), be_const_var(32) }, - { be_const_key_weak(started, -1), be_const_var(0) }, - { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, - { be_const_key_weak(commissioning_L, -1), be_const_var(15) }, - { be_const_key_weak(bridge_add_endpoint, -1), be_const_closure(Matter_Device_bridge_add_endpoint_closure) }, - { be_const_key_weak(compute_qrcode_content, 72), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, - { be_const_key_weak(UDP_PORT, -1), be_const_int(5540) }, - { be_const_key_weak(udp_server, -1), be_const_var(5) }, - { be_const_key_weak(root_passcode, -1), be_const_var(27) }, - { be_const_key_weak(compute_manual_pairing_code, -1), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, - { be_const_key_weak(commissioning_instance_eth, -1), be_const_var(18) }, - { be_const_key_weak(_trigger_read_sensors, 29), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, - { be_const_key_weak(bridge_remove_endpoint, -1), be_const_closure(Matter_Device_bridge_remove_endpoint_closure) }, - { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, - { be_const_key_weak(msg_send, -1), be_const_closure(Matter_Device_msg_send_closure) }, - { be_const_key_weak(received_ack, -1), be_const_closure(Matter_Device_received_ack_closure) }, - { be_const_key_weak(commissioning_salt, -1), be_const_var(13) }, - { be_const_key_weak(ui, -1), be_const_var(8) }, - { be_const_key_weak(message_handler, -1), be_const_var(6) }, - { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(24) }, - { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(autoconf_sensors_list, 29), be_const_closure(Matter_Device_autoconf_sensors_list_closure) }, + { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, + { be_const_key_weak(process_attribute_expansion, 60), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, { be_const_key_weak(mdns_pase_eth, -1), be_const_var(23) }, - { be_const_key_weak(PASSCODE_INVALID, 15), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + { be_const_key_weak(_compute_pbkdf, 76), be_const_closure(Matter_Device__compute_pbkdf_closure) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(14) }, + { be_const_key_weak(bridge_remove_endpoint, 48), be_const_closure(Matter_Device_bridge_remove_endpoint_closure) }, + { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, + { be_const_key_weak(http_remotes, -1), be_const_var(25) }, + { be_const_key_weak(vendorid, 56), be_const_var(21) }, + { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, + { be_const_key_weak(productid, -1), be_const_var(22) }, + { be_const_key_weak(_mdns_announce_hostname, 5), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(Matter_Device_get_plugin_class_arg_closure) }, + { be_const_key_weak(plugins_persist, -1), be_const_var(2) }, + { be_const_key_weak(generate_random_passcode, -1), be_const_closure(Matter_Device_generate_random_passcode_closure) }, + { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(Matter_Device_event_fabrics_saved_closure) }, + { be_const_key_weak(start_commissioning_complete, 82), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(msg_received, 54), be_const_closure(Matter_Device_msg_received_closure) }, + { be_const_key_weak(_instantiate_plugins_from_config, -1), be_const_closure(Matter_Device__instantiate_plugins_from_config_closure) }, + { be_const_key_weak(commissioning_instance_wifi, 74), be_const_var(17) }, + { be_const_key_weak(get_active_endpoints, 69), be_const_closure(Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(16) }, + { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(root_passcode, 88), be_const_var(27) }, + { be_const_key_weak(message_handler, -1), be_const_var(6) }, + { be_const_key_weak(FILENAME, 95), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(VENDOR_ID, 42), be_const_int(65521) }, + { be_const_key_weak(root_w0, 96), be_const_var(32) }, + { be_const_key_weak(MtrJoin, -1), be_const_closure(Matter_Device_MtrJoin_closure) }, + { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(PASSCODE_INVALID, 62), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(12, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), @@ -5680,14 +5635,64 @@ be_local_class(Matter_Device, be_const_int(12345678), be_const_int(87654321), })) ) } )) }, - { be_const_key_weak(mdns_remove_op_discovery, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_closure) }, - { be_const_key_weak(every_50ms, 20), be_const_closure(Matter_Device_every_50ms_closure) }, + { be_const_key_weak(started, 55), be_const_var(0) }, + { be_const_key_weak(start, -1), be_const_closure(Matter_Device_start_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Device_init_closure) }, + { be_const_key_weak(commissioning_salt, -1), be_const_var(13) }, + { be_const_key_weak(commissioning_instance_eth, 75), be_const_var(18) }, + { be_const_key_weak(k2l, -1), be_const_static_closure(Matter_Device_k2l_closure) }, + { be_const_key_weak(hostname_wifi, 51), be_const_var(19) }, + { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(Matter_Device__init_basic_commissioning_closure) }, + { be_const_key_weak(received_ack, -1), be_const_closure(Matter_Device_received_ack_closure) }, + { be_const_key_weak(clean_remotes, 43), be_const_closure(Matter_Device_clean_remotes_closure) }, + { be_const_key_weak(autoconf_device_map, -1), be_const_closure(Matter_Device_autoconf_device_map_closure) }, + { be_const_key_weak(commissioning_open, -1), be_const_var(10) }, + { be_const_key_weak(get_plugin_class_displayname, -1), be_const_closure(Matter_Device_get_plugin_class_displayname_closure) }, + { be_const_key_weak(commissioning_discriminator, 37), be_const_var(12) }, + { be_const_key_weak(is_root_commissioning_open, -1), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(24) }, + { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, + { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(every_250ms, 85), be_const_closure(Matter_Device_every_250ms_closure) }, + { be_const_key_weak(compute_manual_pairing_code, -1), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, + { be_const_key_weak(adjust_next_ep, 63), be_const_closure(Matter_Device_adjust_next_ep_closure) }, + { be_const_key_weak(register_commands, -1), be_const_closure(Matter_Device_register_commands_closure) }, + { be_const_key_weak(register_http_remote, -1), be_const_closure(Matter_Device_register_http_remote_closure) }, + { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, + { be_const_key_weak(root_discriminator, -1), be_const_var(26) }, + { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(conf_to_log, 81), be_const_static_closure(Matter_Device_conf_to_log_closure) }, + { be_const_key_weak(start_operational_discovery, -1), be_const_closure(Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(UDP_PORT, 14), be_const_int(5540) }, + { be_const_key_weak(root_iterations, -1), be_const_var(30) }, { be_const_key_weak(register_plugin_class, -1), be_const_closure(Matter_Device_register_plugin_class_closure) }, - { be_const_key_weak(commissioning_w0, -1), be_const_var(14) }, - { be_const_key_weak(commissioning_instance_wifi, 14), be_const_var(17) }, - { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Device_attribute_updated_closure) }, - { be_const_key_weak(ipv4only, 11), be_const_var(28) }, - { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Device_every_250ms_closure) }, + { be_const_key_weak(commissioning_iterations, -1), be_const_var(11) }, + { be_const_key_weak(udp_server, -1), be_const_var(5) }, + { be_const_key_weak(_trigger_read_sensors, -1), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, + { be_const_key_weak(bridge_add_endpoint, -1), be_const_closure(Matter_Device_bridge_add_endpoint_closure) }, + { be_const_key_weak(ipv4only, -1), be_const_var(28) }, + { be_const_key_weak(PBKDF_ITERATIONS, 44), be_const_int(1000) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Device_invoke_request_closure) }, + { be_const_key_weak(PRODUCT_ID, -1), be_const_int(32768) }, + { be_const_key_weak(every_50ms, -1), be_const_closure(Matter_Device_every_50ms_closure) }, + { be_const_key_weak(k2l_num, -1), be_const_static_closure(Matter_Device_k2l_num_closure) }, + { be_const_key_weak(autoconf_device, -1), be_const_closure(Matter_Device_autoconf_device_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(msg_send, -1), be_const_closure(Matter_Device_msg_send_closure) }, + { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_L, -1), be_const_var(15) }, + { be_const_key_weak(find_plugin_by_endpoint, -1), be_const_closure(Matter_Device_find_plugin_by_endpoint_closure) }, + { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, + { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, + { be_const_key_weak(next_ep, -1), be_const_var(29) }, + { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(start_operational_discovery_deferred, 25), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, + { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, + { be_const_key_weak(ui, 16), be_const_var(8) }, + { be_const_key_weak(tick, -1), be_const_var(9) }, + { be_const_key_weak(register_native_classes, -1), be_const_closure(Matter_Device_register_native_classes_closure) }, + { be_const_key_weak(sort_distinct, -1), be_const_static_closure(Matter_Device_sort_distinct_closure) }, + { be_const_key_weak(signal_endpoints_changed, -1), be_const_closure(Matter_Device_signal_endpoints_changed_closure) }, })), be_str_weak(Matter_Device) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h index fc973c915..7e77814f7 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Fabric.h @@ -994,7 +994,7 @@ be_local_closure(Matter_Fabric_before_remove, /* name */ /* K6 */ be_nested_str_weak(copy), /* K7 */ be_nested_str_weak(reverse), /* K8 */ be_nested_str_weak(tohex), - /* K9 */ be_const_int(2), + /* K9 */ be_const_int(3), }), be_str_weak(before_remove), &be_const_str_solidified, @@ -1352,7 +1352,7 @@ be_local_closure(Matter_Fabric_log_new_fabric, /* name */ /* K7 */ be_nested_str_weak(reverse), /* K8 */ be_nested_str_weak(tohex), /* K9 */ be_nested_str_weak(get_admin_vendor_name), - /* K10 */ be_const_int(2), + /* K10 */ be_const_int(3), }), be_str_weak(log_new_fabric), &be_const_str_solidified, diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_HTTP_remote.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_HTTP_remote.h index 7f0bad2b8..58b2b1bcf 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_HTTP_remote.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_HTTP_remote.h @@ -77,7 +77,7 @@ be_local_closure(Matter_HTTP_remote_call_sync, /* name */ /* K13 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20sync_X20request_X20_X27http_X3A_X2F_X2F_X25s_X3A_X25i_X25s_X27), /* K14 */ be_nested_str_weak(addr), /* K15 */ be_nested_str_weak(port), - /* K16 */ be_const_int(2), + /* K16 */ be_const_int(3), /* K17 */ be_nested_str_weak(begin_sync), /* K18 */ be_nested_str_weak(nil), /* K19 */ be_const_int(0), @@ -402,7 +402,7 @@ be_local_closure(Matter_HTTP_remote_event_http_finished, /* name */ /* K10 */ be_nested_str_weak(millis), /* K11 */ be_nested_str_weak(time_start), /* K12 */ be_nested_str_weak(addr), - /* K13 */ be_const_int(2), + /* K13 */ be_const_int(3), /* K14 */ be_nested_str_weak(dispatch_cb), /* K15 */ be_nested_str_weak(http_status), }), @@ -661,7 +661,7 @@ be_local_closure(Matter_HTTP_remote_event_http_timeout, /* name */ /* K7 */ be_nested_str_weak(phase), /* K8 */ be_nested_str_weak(status), /* K9 */ be_nested_str_weak(payload), - /* K10 */ be_const_int(2), + /* K10 */ be_const_int(3), /* K11 */ be_nested_str_weak(dispatch_cb), }), be_str_weak(event_http_timeout), diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h index 86017e501..85fde88ab 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h @@ -75,7 +75,7 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[44]) { /* constants */ + ( &(const bvalue[45]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(Path), @@ -104,26 +104,27 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ /* K25 */ be_nested_str_weak(format), /* K26 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s_X20_X25s), /* K27 */ be_nested_str_weak(local_session_id), - /* K28 */ be_const_int(2), - /* K29 */ be_nested_str_weak(InvokeResponseIB), - /* K30 */ be_nested_str_weak(SUCCESS), - /* K31 */ be_nested_str_weak(CommandStatusIB), - /* K32 */ be_nested_str_weak(CommandPathIB), - /* K33 */ be_nested_str_weak(StatusIB), - /* K34 */ be_nested_str_weak(push), - /* K35 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20OK_X20exch_X3D_X25i), - /* K36 */ be_nested_str_weak(exchange_id), - /* K37 */ be_nested_str_weak(CommandDataIB), - /* K38 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s), - /* K39 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20Status_X3D0x_X2502X_X20exch_X3D_X25i), - /* K40 */ be_nested_str_weak(MTR_X3A_X20_Ignore_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i), - /* K41 */ be_nested_str_weak(stop_iteration), - /* K42 */ be_const_int(0), - /* K43 */ be_nested_str_weak(send_invoke_response), + /* K28 */ be_const_int(0), + /* K29 */ be_const_int(2), + /* K30 */ be_const_int(3), + /* K31 */ be_nested_str_weak(InvokeResponseIB), + /* K32 */ be_nested_str_weak(SUCCESS), + /* K33 */ be_nested_str_weak(CommandStatusIB), + /* K34 */ be_nested_str_weak(CommandPathIB), + /* K35 */ be_nested_str_weak(StatusIB), + /* K36 */ be_nested_str_weak(push), + /* K37 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20OK_X20exch_X3D_X25i), + /* K38 */ be_nested_str_weak(exchange_id), + /* K39 */ be_nested_str_weak(CommandDataIB), + /* K40 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s), + /* K41 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20Status_X3D0x_X2502X_X20exch_X3D_X25i), + /* K42 */ be_nested_str_weak(MTR_X3A_X20_Ignore_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i), + /* K43 */ be_nested_str_weak(stop_iteration), + /* K44 */ be_nested_str_weak(send_invoke_response), }), be_str_weak(process_invoke_request), &be_const_str_solidified, - ( &(const binstruction[271]) { /* code */ + ( &(const binstruction[276]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 @@ -137,7 +138,7 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0x88180B05, // 000A GETMBR R6 R5 K5 0x4C1C0000, // 000B LDNIL R7 0x20180C07, // 000C NE R6 R6 R7 - 0x781A00FF, // 000D JMPF R6 #010E + 0x781A0104, // 000D JMPF R6 #0113 0xB81A0200, // 000E GETNGBL R6 K1 0x8C180D06, // 000F GETMET R6 R6 K6 0x7C180200, // 0010 CALL R6 1 @@ -149,7 +150,7 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0x601C0010, // 0016 GETGBL R7 G16 0x88200B05, // 0017 GETMBR R8 R5 K5 0x7C1C0200, // 0018 CALL R7 1 - 0xA80200E2, // 0019 EXBLK 0 #00FD + 0xA80200E7, // 0019 EXBLK 0 #0102 0x5C200E00, // 001A MOVE R8 R7 0x7C200000, // 001B CALL R8 0 0x8824110A, // 001C GETMBR R9 R8 K10 @@ -202,199 +203,204 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ 0x58500017, // 004B LDCONST R20 K23 0x5C541800, // 004C MOVE R21 R12 0x7C3C0C00, // 004D CALL R15 6 - 0x5840001C, // 004E LDCONST R16 K28 - 0x7C340600, // 004F CALL R13 3 - 0x4C340000, // 0050 LDNIL R13 - 0x9012280D, // 0051 SETMBR R4 K20 R13 - 0xB8360200, // 0052 GETNGBL R13 K1 - 0x8C341B1D, // 0053 GETMET R13 R13 K29 - 0x7C340200, // 0054 CALL R13 1 - 0x50380200, // 0055 LDBOOL R14 1 0 - 0x1C38160E, // 0056 EQ R14 R11 R14 - 0x743A0004, // 0057 JMPT R14 #005D - 0x8838090D, // 0058 GETMBR R14 R4 K13 - 0xB83E0200, // 0059 GETNGBL R15 K1 - 0x883C1F1E, // 005A GETMBR R15 R15 K30 - 0x1C381C0F, // 005B EQ R14 R14 R15 - 0x783A002D, // 005C JMPF R14 #008B - 0xB83A0200, // 005D GETNGBL R14 K1 - 0x8C381D1F, // 005E GETMET R14 R14 K31 - 0x7C380200, // 005F CALL R14 1 - 0x90361A0E, // 0060 SETMBR R13 K13 R14 - 0x88381B0D, // 0061 GETMBR R14 R13 K13 - 0xB83E0200, // 0062 GETNGBL R15 K1 - 0x8C3C1F20, // 0063 GETMET R15 R15 K32 - 0x7C3C0200, // 0064 CALL R15 1 - 0x903A140F, // 0065 SETMBR R14 K10 R15 + 0x88400909, // 004E GETMBR R16 R4 K9 + 0x2040211C, // 004F NE R16 R16 K28 + 0x78420001, // 0050 JMPF R16 #0053 + 0x5840001D, // 0051 LDCONST R16 K29 + 0x70020000, // 0052 JMP #0054 + 0x5840001E, // 0053 LDCONST R16 K30 + 0x7C340600, // 0054 CALL R13 3 + 0x4C340000, // 0055 LDNIL R13 + 0x9012280D, // 0056 SETMBR R4 K20 R13 + 0xB8360200, // 0057 GETNGBL R13 K1 + 0x8C341B1F, // 0058 GETMET R13 R13 K31 + 0x7C340200, // 0059 CALL R13 1 + 0x50380200, // 005A LDBOOL R14 1 0 + 0x1C38160E, // 005B EQ R14 R11 R14 + 0x743A0004, // 005C JMPT R14 #0062 + 0x8838090D, // 005D GETMBR R14 R4 K13 + 0xB83E0200, // 005E GETNGBL R15 K1 + 0x883C1F20, // 005F GETMBR R15 R15 K32 + 0x1C381C0F, // 0060 EQ R14 R14 R15 + 0x783A002D, // 0061 JMPF R14 #0090 + 0xB83A0200, // 0062 GETNGBL R14 K1 + 0x8C381D21, // 0063 GETMET R14 R14 K33 + 0x7C380200, // 0064 CALL R14 1 + 0x90361A0E, // 0065 SETMBR R13 K13 R14 0x88381B0D, // 0066 GETMBR R14 R13 K13 - 0x88381D0A, // 0067 GETMBR R14 R14 K10 - 0x883C0909, // 0068 GETMBR R15 R4 K9 - 0x903A120F, // 0069 SETMBR R14 K9 R15 - 0x88381B0D, // 006A GETMBR R14 R13 K13 - 0x88381D0A, // 006B GETMBR R14 R14 K10 - 0x883C090B, // 006C GETMBR R15 R4 K11 - 0x903A160F, // 006D SETMBR R14 K11 R15 - 0x88381B0D, // 006E GETMBR R14 R13 K13 - 0x88381D0A, // 006F GETMBR R14 R14 K10 - 0x883C090C, // 0070 GETMBR R15 R4 K12 - 0x903A180F, // 0071 SETMBR R14 K12 R15 - 0x88381B0D, // 0072 GETMBR R14 R13 K13 - 0xB83E0200, // 0073 GETNGBL R15 K1 - 0x8C3C1F21, // 0074 GETMET R15 R15 K33 - 0x7C3C0200, // 0075 CALL R15 1 - 0x903A1A0F, // 0076 SETMBR R14 K13 R15 + 0xB83E0200, // 0067 GETNGBL R15 K1 + 0x8C3C1F22, // 0068 GETMET R15 R15 K34 + 0x7C3C0200, // 0069 CALL R15 1 + 0x903A140F, // 006A SETMBR R14 K10 R15 + 0x88381B0D, // 006B GETMBR R14 R13 K13 + 0x88381D0A, // 006C GETMBR R14 R14 K10 + 0x883C0909, // 006D GETMBR R15 R4 K9 + 0x903A120F, // 006E SETMBR R14 K9 R15 + 0x88381B0D, // 006F GETMBR R14 R13 K13 + 0x88381D0A, // 0070 GETMBR R14 R14 K10 + 0x883C090B, // 0071 GETMBR R15 R4 K11 + 0x903A160F, // 0072 SETMBR R14 K11 R15 + 0x88381B0D, // 0073 GETMBR R14 R13 K13 + 0x88381D0A, // 0074 GETMBR R14 R14 K10 + 0x883C090C, // 0075 GETMBR R15 R4 K12 + 0x903A180F, // 0076 SETMBR R14 K12 R15 0x88381B0D, // 0077 GETMBR R14 R13 K13 - 0x88381D0D, // 0078 GETMBR R14 R14 K13 - 0xB83E0200, // 0079 GETNGBL R15 K1 - 0x883C1F1E, // 007A GETMBR R15 R15 K30 + 0xB83E0200, // 0078 GETNGBL R15 K1 + 0x8C3C1F23, // 0079 GETMET R15 R15 K35 + 0x7C3C0200, // 007A CALL R15 1 0x903A1A0F, // 007B SETMBR R14 K13 R15 - 0x88380D08, // 007C GETMBR R14 R6 K8 - 0x8C381D22, // 007D GETMET R14 R14 K34 - 0x5C401A00, // 007E MOVE R16 R13 - 0x7C380400, // 007F CALL R14 2 - 0xB83A3000, // 0080 GETNGBL R14 K24 - 0x8C381D14, // 0081 GETMET R14 R14 K20 - 0x8C400719, // 0082 GETMET R16 R3 K25 - 0x58480023, // 0083 LDCONST R18 K35 - 0x884C0312, // 0084 GETMBR R19 R1 K18 - 0x884C271B, // 0085 GETMBR R19 R19 K27 - 0x88500324, // 0086 GETMBR R20 R1 K36 - 0x7C400800, // 0087 CALL R16 4 - 0x5844001C, // 0088 LDCONST R17 K28 - 0x7C380600, // 0089 CALL R14 3 - 0x70020070, // 008A JMP #00FC - 0x4C380000, // 008B LDNIL R14 - 0x2038160E, // 008C NE R14 R11 R14 - 0x783A0031, // 008D JMPF R14 #00C0 - 0xB83A0200, // 008E GETNGBL R14 K1 - 0x8C381D25, // 008F GETMET R14 R14 K37 - 0x7C380200, // 0090 CALL R14 1 - 0x9036180E, // 0091 SETMBR R13 K12 R14 - 0x88381B0C, // 0092 GETMBR R14 R13 K12 - 0xB83E0200, // 0093 GETNGBL R15 K1 - 0x8C3C1F20, // 0094 GETMET R15 R15 K32 - 0x7C3C0200, // 0095 CALL R15 1 - 0x903A140F, // 0096 SETMBR R14 K10 R15 + 0x88381B0D, // 007C GETMBR R14 R13 K13 + 0x88381D0D, // 007D GETMBR R14 R14 K13 + 0xB83E0200, // 007E GETNGBL R15 K1 + 0x883C1F20, // 007F GETMBR R15 R15 K32 + 0x903A1A0F, // 0080 SETMBR R14 K13 R15 + 0x88380D08, // 0081 GETMBR R14 R6 K8 + 0x8C381D24, // 0082 GETMET R14 R14 K36 + 0x5C401A00, // 0083 MOVE R16 R13 + 0x7C380400, // 0084 CALL R14 2 + 0xB83A3000, // 0085 GETNGBL R14 K24 + 0x8C381D14, // 0086 GETMET R14 R14 K20 + 0x8C400719, // 0087 GETMET R16 R3 K25 + 0x58480025, // 0088 LDCONST R18 K37 + 0x884C0312, // 0089 GETMBR R19 R1 K18 + 0x884C271B, // 008A GETMBR R19 R19 K27 + 0x88500326, // 008B GETMBR R20 R1 K38 + 0x7C400800, // 008C CALL R16 4 + 0x5844001E, // 008D LDCONST R17 K30 + 0x7C380600, // 008E CALL R14 3 + 0x70020070, // 008F JMP #0101 + 0x4C380000, // 0090 LDNIL R14 + 0x2038160E, // 0091 NE R14 R11 R14 + 0x783A0031, // 0092 JMPF R14 #00C5 + 0xB83A0200, // 0093 GETNGBL R14 K1 + 0x8C381D27, // 0094 GETMET R14 R14 K39 + 0x7C380200, // 0095 CALL R14 1 + 0x9036180E, // 0096 SETMBR R13 K12 R14 0x88381B0C, // 0097 GETMBR R14 R13 K12 - 0x88381D0A, // 0098 GETMBR R14 R14 K10 - 0x883C0909, // 0099 GETMBR R15 R4 K9 - 0x903A120F, // 009A SETMBR R14 K9 R15 - 0x88381B0C, // 009B GETMBR R14 R13 K12 - 0x88381D0A, // 009C GETMBR R14 R14 K10 - 0x883C090B, // 009D GETMBR R15 R4 K11 - 0x903A160F, // 009E SETMBR R14 K11 R15 - 0x88381B0C, // 009F GETMBR R14 R13 K12 - 0x88381D0A, // 00A0 GETMBR R14 R14 K10 - 0x883C090C, // 00A1 GETMBR R15 R4 K12 - 0x903A180F, // 00A2 SETMBR R14 K12 R15 - 0x88381B0C, // 00A3 GETMBR R14 R13 K12 - 0x903A260B, // 00A4 SETMBR R14 K19 R11 - 0x88380D08, // 00A5 GETMBR R14 R6 K8 - 0x8C381D22, // 00A6 GETMET R14 R14 K34 - 0x5C401A00, // 00A7 MOVE R16 R13 - 0x7C380400, // 00A8 CALL R14 2 - 0xB83A0200, // 00A9 GETNGBL R14 K1 - 0x8C381D0F, // 00AA GETMET R14 R14 K15 - 0x8840090B, // 00AB GETMBR R16 R4 K11 - 0x8844090C, // 00AC GETMBR R17 R4 K12 - 0x7C380600, // 00AD CALL R14 3 - 0x5C241C00, // 00AE MOVE R9 R14 - 0xB83A3000, // 00AF GETNGBL R14 K24 - 0x8C381D14, // 00B0 GETMET R14 R14 K20 - 0x8C400719, // 00B1 GETMET R16 R3 K25 - 0x58480026, // 00B2 LDCONST R18 K38 - 0x884C0312, // 00B3 GETMBR R19 R1 K18 - 0x884C271B, // 00B4 GETMBR R19 R19 K27 - 0x60500008, // 00B5 GETGBL R20 G8 - 0x5C540800, // 00B6 MOVE R21 R4 - 0x7C500200, // 00B7 CALL R20 1 - 0x78260001, // 00B8 JMPF R9 #00BB - 0x5C541200, // 00B9 MOVE R21 R9 - 0x70020000, // 00BA JMP #00BC - 0x58540017, // 00BB LDCONST R21 K23 - 0x7C400A00, // 00BC CALL R16 5 - 0x5844001C, // 00BD LDCONST R17 K28 - 0x7C380600, // 00BE CALL R14 3 - 0x7002003B, // 00BF JMP #00FC - 0x8838090D, // 00C0 GETMBR R14 R4 K13 - 0x4C3C0000, // 00C1 LDNIL R15 - 0x20381C0F, // 00C2 NE R14 R14 R15 - 0x783A002D, // 00C3 JMPF R14 #00F2 - 0xB83A0200, // 00C4 GETNGBL R14 K1 - 0x8C381D1F, // 00C5 GETMET R14 R14 K31 - 0x7C380200, // 00C6 CALL R14 1 - 0x90361A0E, // 00C7 SETMBR R13 K13 R14 - 0x88381B0D, // 00C8 GETMBR R14 R13 K13 - 0xB83E0200, // 00C9 GETNGBL R15 K1 - 0x8C3C1F20, // 00CA GETMET R15 R15 K32 - 0x7C3C0200, // 00CB CALL R15 1 - 0x903A140F, // 00CC SETMBR R14 K10 R15 + 0xB83E0200, // 0098 GETNGBL R15 K1 + 0x8C3C1F22, // 0099 GETMET R15 R15 K34 + 0x7C3C0200, // 009A CALL R15 1 + 0x903A140F, // 009B SETMBR R14 K10 R15 + 0x88381B0C, // 009C GETMBR R14 R13 K12 + 0x88381D0A, // 009D GETMBR R14 R14 K10 + 0x883C0909, // 009E GETMBR R15 R4 K9 + 0x903A120F, // 009F SETMBR R14 K9 R15 + 0x88381B0C, // 00A0 GETMBR R14 R13 K12 + 0x88381D0A, // 00A1 GETMBR R14 R14 K10 + 0x883C090B, // 00A2 GETMBR R15 R4 K11 + 0x903A160F, // 00A3 SETMBR R14 K11 R15 + 0x88381B0C, // 00A4 GETMBR R14 R13 K12 + 0x88381D0A, // 00A5 GETMBR R14 R14 K10 + 0x883C090C, // 00A6 GETMBR R15 R4 K12 + 0x903A180F, // 00A7 SETMBR R14 K12 R15 + 0x88381B0C, // 00A8 GETMBR R14 R13 K12 + 0x903A260B, // 00A9 SETMBR R14 K19 R11 + 0x88380D08, // 00AA GETMBR R14 R6 K8 + 0x8C381D24, // 00AB GETMET R14 R14 K36 + 0x5C401A00, // 00AC MOVE R16 R13 + 0x7C380400, // 00AD CALL R14 2 + 0xB83A0200, // 00AE GETNGBL R14 K1 + 0x8C381D0F, // 00AF GETMET R14 R14 K15 + 0x8840090B, // 00B0 GETMBR R16 R4 K11 + 0x8844090C, // 00B1 GETMBR R17 R4 K12 + 0x7C380600, // 00B2 CALL R14 3 + 0x5C241C00, // 00B3 MOVE R9 R14 + 0xB83A3000, // 00B4 GETNGBL R14 K24 + 0x8C381D14, // 00B5 GETMET R14 R14 K20 + 0x8C400719, // 00B6 GETMET R16 R3 K25 + 0x58480028, // 00B7 LDCONST R18 K40 + 0x884C0312, // 00B8 GETMBR R19 R1 K18 + 0x884C271B, // 00B9 GETMBR R19 R19 K27 + 0x60500008, // 00BA GETGBL R20 G8 + 0x5C540800, // 00BB MOVE R21 R4 + 0x7C500200, // 00BC CALL R20 1 + 0x78260001, // 00BD JMPF R9 #00C0 + 0x5C541200, // 00BE MOVE R21 R9 + 0x70020000, // 00BF JMP #00C1 + 0x58540017, // 00C0 LDCONST R21 K23 + 0x7C400A00, // 00C1 CALL R16 5 + 0x5844001E, // 00C2 LDCONST R17 K30 + 0x7C380600, // 00C3 CALL R14 3 + 0x7002003B, // 00C4 JMP #0101 + 0x8838090D, // 00C5 GETMBR R14 R4 K13 + 0x4C3C0000, // 00C6 LDNIL R15 + 0x20381C0F, // 00C7 NE R14 R14 R15 + 0x783A002D, // 00C8 JMPF R14 #00F7 + 0xB83A0200, // 00C9 GETNGBL R14 K1 + 0x8C381D21, // 00CA GETMET R14 R14 K33 + 0x7C380200, // 00CB CALL R14 1 + 0x90361A0E, // 00CC SETMBR R13 K13 R14 0x88381B0D, // 00CD GETMBR R14 R13 K13 - 0x88381D0A, // 00CE GETMBR R14 R14 K10 - 0x883C0909, // 00CF GETMBR R15 R4 K9 - 0x903A120F, // 00D0 SETMBR R14 K9 R15 - 0x88381B0D, // 00D1 GETMBR R14 R13 K13 - 0x88381D0A, // 00D2 GETMBR R14 R14 K10 - 0x883C090B, // 00D3 GETMBR R15 R4 K11 - 0x903A160F, // 00D4 SETMBR R14 K11 R15 - 0x88381B0D, // 00D5 GETMBR R14 R13 K13 - 0x88381D0A, // 00D6 GETMBR R14 R14 K10 - 0x883C090C, // 00D7 GETMBR R15 R4 K12 - 0x903A180F, // 00D8 SETMBR R14 K12 R15 - 0x88381B0D, // 00D9 GETMBR R14 R13 K13 - 0xB83E0200, // 00DA GETNGBL R15 K1 - 0x8C3C1F21, // 00DB GETMET R15 R15 K33 - 0x7C3C0200, // 00DC CALL R15 1 - 0x903A1A0F, // 00DD SETMBR R14 K13 R15 + 0xB83E0200, // 00CE GETNGBL R15 K1 + 0x8C3C1F22, // 00CF GETMET R15 R15 K34 + 0x7C3C0200, // 00D0 CALL R15 1 + 0x903A140F, // 00D1 SETMBR R14 K10 R15 + 0x88381B0D, // 00D2 GETMBR R14 R13 K13 + 0x88381D0A, // 00D3 GETMBR R14 R14 K10 + 0x883C0909, // 00D4 GETMBR R15 R4 K9 + 0x903A120F, // 00D5 SETMBR R14 K9 R15 + 0x88381B0D, // 00D6 GETMBR R14 R13 K13 + 0x88381D0A, // 00D7 GETMBR R14 R14 K10 + 0x883C090B, // 00D8 GETMBR R15 R4 K11 + 0x903A160F, // 00D9 SETMBR R14 K11 R15 + 0x88381B0D, // 00DA GETMBR R14 R13 K13 + 0x88381D0A, // 00DB GETMBR R14 R14 K10 + 0x883C090C, // 00DC GETMBR R15 R4 K12 + 0x903A180F, // 00DD SETMBR R14 K12 R15 0x88381B0D, // 00DE GETMBR R14 R13 K13 - 0x88381D0D, // 00DF GETMBR R14 R14 K13 - 0x883C090D, // 00E0 GETMBR R15 R4 K13 - 0x903A1A0F, // 00E1 SETMBR R14 K13 R15 - 0x88380D08, // 00E2 GETMBR R14 R6 K8 - 0x8C381D22, // 00E3 GETMET R14 R14 K34 - 0x5C401A00, // 00E4 MOVE R16 R13 - 0x7C380400, // 00E5 CALL R14 2 - 0xB83A3000, // 00E6 GETNGBL R14 K24 - 0x8C381D14, // 00E7 GETMET R14 R14 K20 - 0x8C400719, // 00E8 GETMET R16 R3 K25 - 0x58480027, // 00E9 LDCONST R18 K39 - 0x884C0312, // 00EA GETMBR R19 R1 K18 - 0x884C271B, // 00EB GETMBR R19 R19 K27 - 0x8850090D, // 00EC GETMBR R20 R4 K13 - 0x88540324, // 00ED GETMBR R21 R1 K36 - 0x7C400A00, // 00EE CALL R16 5 - 0x5844001C, // 00EF LDCONST R17 K28 - 0x7C380600, // 00F0 CALL R14 3 - 0x70020009, // 00F1 JMP #00FC - 0xB83A3000, // 00F2 GETNGBL R14 K24 - 0x8C381D14, // 00F3 GETMET R14 R14 K20 - 0x8C400719, // 00F4 GETMET R16 R3 K25 - 0x58480028, // 00F5 LDCONST R18 K40 - 0x884C0312, // 00F6 GETMBR R19 R1 K18 - 0x884C271B, // 00F7 GETMBR R19 R19 K27 - 0x88500324, // 00F8 GETMBR R20 R1 K36 - 0x7C400800, // 00F9 CALL R16 4 - 0x5844001C, // 00FA LDCONST R17 K28 - 0x7C380600, // 00FB CALL R14 3 - 0x7001FF1C, // 00FC JMP #001A - 0x581C0029, // 00FD LDCONST R7 K41 - 0xAC1C0200, // 00FE CATCH R7 1 0 - 0xB0080000, // 00FF RAISE 2 R0 R0 - 0x601C000C, // 0100 GETGBL R7 G12 - 0x88200D08, // 0101 GETMBR R8 R6 K8 - 0x7C1C0200, // 0102 CALL R7 1 - 0x241C0F2A, // 0103 GT R7 R7 K42 - 0x781E0004, // 0104 JMPF R7 #010A - 0x8C1C012B, // 0105 GETMET R7 R0 K43 - 0x5C240200, // 0106 MOVE R9 R1 - 0x5C280C00, // 0107 MOVE R10 R6 - 0x7C1C0600, // 0108 CALL R7 3 - 0x70020001, // 0109 JMP #010C - 0x501C0000, // 010A LDBOOL R7 0 0 - 0x80040E00, // 010B RET 1 R7 - 0x501C0200, // 010C LDBOOL R7 1 0 - 0x80040E00, // 010D RET 1 R7 - 0x80000000, // 010E RET 0 + 0xB83E0200, // 00DF GETNGBL R15 K1 + 0x8C3C1F23, // 00E0 GETMET R15 R15 K35 + 0x7C3C0200, // 00E1 CALL R15 1 + 0x903A1A0F, // 00E2 SETMBR R14 K13 R15 + 0x88381B0D, // 00E3 GETMBR R14 R13 K13 + 0x88381D0D, // 00E4 GETMBR R14 R14 K13 + 0x883C090D, // 00E5 GETMBR R15 R4 K13 + 0x903A1A0F, // 00E6 SETMBR R14 K13 R15 + 0x88380D08, // 00E7 GETMBR R14 R6 K8 + 0x8C381D24, // 00E8 GETMET R14 R14 K36 + 0x5C401A00, // 00E9 MOVE R16 R13 + 0x7C380400, // 00EA CALL R14 2 + 0xB83A3000, // 00EB GETNGBL R14 K24 + 0x8C381D14, // 00EC GETMET R14 R14 K20 + 0x8C400719, // 00ED GETMET R16 R3 K25 + 0x58480029, // 00EE LDCONST R18 K41 + 0x884C0312, // 00EF GETMBR R19 R1 K18 + 0x884C271B, // 00F0 GETMBR R19 R19 K27 + 0x8850090D, // 00F1 GETMBR R20 R4 K13 + 0x88540326, // 00F2 GETMBR R21 R1 K38 + 0x7C400A00, // 00F3 CALL R16 5 + 0x5844001E, // 00F4 LDCONST R17 K30 + 0x7C380600, // 00F5 CALL R14 3 + 0x70020009, // 00F6 JMP #0101 + 0xB83A3000, // 00F7 GETNGBL R14 K24 + 0x8C381D14, // 00F8 GETMET R14 R14 K20 + 0x8C400719, // 00F9 GETMET R16 R3 K25 + 0x5848002A, // 00FA LDCONST R18 K42 + 0x884C0312, // 00FB GETMBR R19 R1 K18 + 0x884C271B, // 00FC GETMBR R19 R19 K27 + 0x88500326, // 00FD GETMBR R20 R1 K38 + 0x7C400800, // 00FE CALL R16 4 + 0x5844001E, // 00FF LDCONST R17 K30 + 0x7C380600, // 0100 CALL R14 3 + 0x7001FF17, // 0101 JMP #001A + 0x581C002B, // 0102 LDCONST R7 K43 + 0xAC1C0200, // 0103 CATCH R7 1 0 + 0xB0080000, // 0104 RAISE 2 R0 R0 + 0x601C000C, // 0105 GETGBL R7 G12 + 0x88200D08, // 0106 GETMBR R8 R6 K8 + 0x7C1C0200, // 0107 CALL R7 1 + 0x241C0F1C, // 0108 GT R7 R7 K28 + 0x781E0004, // 0109 JMPF R7 #010F + 0x8C1C012C, // 010A GETMET R7 R0 K44 + 0x5C240200, // 010B MOVE R9 R1 + 0x5C280C00, // 010C MOVE R10 R6 + 0x7C1C0600, // 010D CALL R7 3 + 0x70020001, // 010E JMP #0111 + 0x501C0000, // 010F LDBOOL R7 0 0 + 0x80040E00, // 0110 RET 1 R7 + 0x501C0200, // 0111 LDBOOL R7 1 0 + 0x80040E00, // 0112 RET 1 R7 + 0x80000000, // 0113 RET 0 }) ) ); @@ -443,7 +449,7 @@ be_local_closure(Matter_IM_subscribe_request, /* name */ /* K25 */ be_const_int(1), /* K26 */ be_const_int(0), /* K27 */ be_nested_str_weak(subscription_id), - /* K28 */ be_const_int(2), + /* K28 */ be_const_int(3), /* K29 */ be_nested_str_weak(_inner_process_read_request), /* K30 */ be_nested_str_weak(send_subscribe_response), }), @@ -557,7 +563,7 @@ be_local_closure(Matter_IM_process_write_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[26]) { /* constants */ + ( &(const bvalue[28]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(get_attribute_name), @@ -582,12 +588,14 @@ be_local_closure(Matter_IM_process_write_request, /* name */ /* K21 */ be_nested_str_weak(log), /* K22 */ be_nested_str_weak(format), /* K23 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), - /* K24 */ be_const_int(2), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20IGNORED), + /* K24 */ be_const_int(0), + /* K25 */ be_const_int(2), + /* K26 */ be_const_int(3), + /* K27 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20IGNORED), }), be_str_weak(write_single_attribute), &be_const_str_solidified, - ( &(const binstruction[97]) { /* code */ + ( &(const binstruction[102]) { /* code */ 0xA4160000, // 0000 IMPORT R5 K0 0xB81A0200, // 0001 GETNGBL R6 K1 0x8C180D02, // 0002 GETMET R6 R6 K2 @@ -621,8 +629,8 @@ be_local_closure(Matter_IM_process_write_request, /* name */ 0x88200508, // 001E GETMBR R8 R2 K8 0x4C240000, // 001F LDNIL R9 0x20201009, // 0020 NE R8 R8 R9 - 0x78220032, // 0021 JMPF R8 #0055 - 0x78120030, // 0022 JMPF R4 #0054 + 0x78220037, // 0021 JMPF R8 #005A + 0x78120035, // 0022 JMPF R4 #0059 0xB8220200, // 0023 GETNGBL R8 K1 0x8C20110D, // 0024 GETMET R8 R8 K13 0x7C200200, // 0025 CALL R8 1 @@ -668,23 +676,28 @@ be_local_closure(Matter_IM_process_write_request, /* name */ 0x70020000, // 004D JMP #004F 0x58440007, // 004E LDCONST R17 K7 0x7C2C0C00, // 004F CALL R11 6 - 0x58300018, // 0050 LDCONST R12 K24 - 0x7C240600, // 0051 CALL R9 3 - 0x50240200, // 0052 LDBOOL R9 1 0 - 0x80041200, // 0053 RET 1 R9 - 0x7002000A, // 0054 JMP #0060 - 0xB8222800, // 0055 GETNGBL R8 K20 - 0x8C201115, // 0056 GETMET R8 R8 K21 - 0x8C280B16, // 0057 GETMET R10 R5 K22 - 0x58300019, // 0058 LDCONST R12 K25 - 0x60340008, // 0059 GETGBL R13 G8 - 0x5C380400, // 005A MOVE R14 R2 - 0x7C340200, // 005B CALL R13 1 - 0x5C380C00, // 005C MOVE R14 R6 - 0x7C280800, // 005D CALL R10 4 - 0x582C0018, // 005E LDCONST R11 K24 - 0x7C200600, // 005F CALL R8 3 - 0x80000000, // 0060 RET 0 + 0x88300511, // 0050 GETMBR R12 R2 K17 + 0x20301918, // 0051 NE R12 R12 K24 + 0x78320001, // 0052 JMPF R12 #0055 + 0x58300019, // 0053 LDCONST R12 K25 + 0x70020000, // 0054 JMP #0056 + 0x5830001A, // 0055 LDCONST R12 K26 + 0x7C240600, // 0056 CALL R9 3 + 0x50240200, // 0057 LDBOOL R9 1 0 + 0x80041200, // 0058 RET 1 R9 + 0x7002000A, // 0059 JMP #0065 + 0xB8222800, // 005A GETNGBL R8 K20 + 0x8C201115, // 005B GETMET R8 R8 K21 + 0x8C280B16, // 005C GETMET R10 R5 K22 + 0x5830001B, // 005D LDCONST R12 K27 + 0x60340008, // 005E GETGBL R13 G8 + 0x5C380400, // 005F MOVE R14 R2 + 0x7C340200, // 0060 CALL R13 1 + 0x5C380C00, // 0061 MOVE R14 R6 + 0x7C280800, // 0062 CALL R10 4 + 0x582C001A, // 0063 LDCONST R11 K26 + 0x7C200600, // 0064 CALL R8 3 + 0x80000000, // 0065 RET 0 }) ), be_nested_proto( @@ -743,7 +756,7 @@ be_local_closure(Matter_IM_process_write_request, /* name */ /* K23 */ be_nested_str_weak(_X20_X28), /* K24 */ be_nested_str_weak(_X29), /* K25 */ be_nested_str_weak(), - /* K26 */ be_const_int(2), + /* K26 */ be_const_int(3), /* K27 */ be_nested_str_weak(process_attribute_expansion), /* K28 */ be_nested_str_weak(stop_iteration), /* K29 */ be_nested_str_weak(send_write_response), @@ -1160,7 +1173,7 @@ be_local_closure(Matter_IM_send_status, /* name */ ********************************************************************/ be_local_closure(Matter_IM_subscribe_response, /* name */ be_nested_proto( - 9, /* nstack */ + 7, /* nstack */ 3, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1168,19 +1181,15 @@ be_local_closure(Matter_IM_subscribe_response, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ + ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(SubscribeResponseMessage), /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20SubscribeResponsetMessage_X3D), - /* K7 */ be_const_int(2), }), be_str_weak(subscribe_response), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[ 9]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 @@ -1188,16 +1197,8 @@ be_local_closure(Matter_IM_subscribe_response, /* name */ 0x8C100903, // 0004 GETMET R4 R4 K3 0x5C180400, // 0005 MOVE R6 R2 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 + 0x50140000, // 0007 LDBOOL R5 0 0 + 0x80040A00, // 0008 RET 1 R5 }) ) ); @@ -1411,7 +1412,7 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ /* K24 */ be_nested_str_weak(format), /* K25 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20_X25s), /* K26 */ be_nested_str_weak(local_session_id), - /* K27 */ be_const_int(2), + /* K27 */ be_const_int(3), /* K28 */ be_nested_str_weak(status), /* K29 */ be_nested_str_weak(attribute_status), /* K30 */ be_nested_str_weak(AttributeStatusIB), @@ -1686,7 +1687,7 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ /* K19 */ be_nested_str_weak(_X20_X28), /* K20 */ be_nested_str_weak(_X29), /* K21 */ be_nested_str_weak(), - /* K22 */ be_const_int(2), + /* K22 */ be_const_int(3), /* K23 */ be_nested_str_weak(process_attribute_expansion), /* K24 */ be_nested_str_weak(stop_iteration), }), @@ -1848,7 +1849,7 @@ be_local_closure(Matter_IM_find_sendqueue_by_exchangeid, /* name */ ********************************************************************/ be_local_closure(Matter_IM_process_incoming_ack, /* name */ be_nested_proto( - 11, /* nstack */ + 7, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1856,47 +1857,26 @@ be_local_closure(Matter_IM_process_incoming_ack, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ + ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(find_sendqueue_by_exchangeid), /* K2 */ be_nested_str_weak(exchange_id), - /* 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_X20process_incoming_ack_X20exch_X3D_X25i_X20message_X3D_X25i), - /* K7 */ be_const_int(1), - /* K8 */ be_const_int(0), - /* K9 */ be_const_int(3), - /* K10 */ be_nested_str_weak(ack_received), + /* K3 */ be_nested_str_weak(ack_received), }), be_str_weak(process_incoming_ack), &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ + ( &(const binstruction[11]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0x8C0C0101, // 0001 GETMET R3 R0 K1 0x88140302, // 0002 GETMBR R5 R1 K2 0x7C0C0400, // 0003 CALL R3 2 - 0xB8120600, // 0004 GETNGBL R4 K3 - 0x8C100904, // 0005 GETMET R4 R4 K4 - 0x8C180505, // 0006 GETMET R6 R2 K5 - 0x58200006, // 0007 LDCONST R8 K6 - 0x88240302, // 0008 GETMBR R9 R1 K2 - 0x4C280000, // 0009 LDNIL R10 - 0x2028060A, // 000A NE R10 R3 R10 - 0x782A0001, // 000B JMPF R10 #000E - 0x58280007, // 000C LDCONST R10 K7 - 0x70020000, // 000D JMP #000F - 0x58280008, // 000E LDCONST R10 K8 - 0x7C180800, // 000F CALL R6 4 - 0x581C0009, // 0010 LDCONST R7 K9 - 0x7C100600, // 0011 CALL R4 3 - 0x780E0003, // 0012 JMPF R3 #0017 - 0x8C10070A, // 0013 GETMET R4 R3 K10 - 0x5C180200, // 0014 MOVE R6 R1 - 0x7C100400, // 0015 CALL R4 2 - 0x80040800, // 0016 RET 1 R4 - 0x50100000, // 0017 LDBOOL R4 0 0 - 0x80040800, // 0018 RET 1 R4 + 0x780E0003, // 0004 JMPF R3 #0009 + 0x8C100703, // 0005 GETMET R4 R3 K3 + 0x5C180200, // 0006 MOVE R6 R1 + 0x7C100400, // 0007 CALL R4 2 + 0x80040800, // 0008 RET 1 R4 + 0x50100000, // 0009 LDBOOL R4 0 0 + 0x80040800, // 000A RET 1 R4 }) ) ); @@ -2004,7 +1984,7 @@ be_local_closure(Matter_IM_process_status_response, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ + ( &(const bvalue[18]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(findsubval), /* K2 */ be_const_int(0), @@ -2021,9 +2001,8 @@ be_local_closure(Matter_IM_process_status_response, /* name */ /* K13 */ be_nested_str_weak(local_session_id), /* K14 */ be_const_int(3), /* K15 */ be_nested_str_weak(MTR_X3A_X20_X3EStatus_X20_X20_X20_X20ERROR_X20_X3D_X200x_X2502X), - /* K16 */ be_const_int(2), - /* K17 */ be_nested_str_weak(status_error_received), - /* K18 */ be_nested_str_weak(remove_sendqueue_by_exchangeid), + /* K16 */ be_nested_str_weak(status_error_received), + /* K17 */ be_nested_str_weak(remove_sendqueue_by_exchangeid), }), be_str_weak(process_status_response), &be_const_str_solidified, @@ -2063,13 +2042,13 @@ be_local_closure(Matter_IM_process_status_response, /* name */ 0x5828000F, // 0020 LDCONST R10 K15 0x5C2C0800, // 0021 MOVE R11 R4 0x7C200600, // 0022 CALL R8 3 - 0x58240010, // 0023 LDCONST R9 K16 + 0x5824000E, // 0023 LDCONST R9 K14 0x7C180600, // 0024 CALL R6 3 0x78160005, // 0025 JMPF R5 #002C - 0x8C180B11, // 0026 GETMET R6 R5 K17 + 0x8C180B10, // 0026 GETMET R6 R5 K16 0x5C200200, // 0027 MOVE R8 R1 0x7C180400, // 0028 CALL R6 2 - 0x8C180112, // 0029 GETMET R6 R0 K18 + 0x8C180111, // 0029 GETMET R6 R0 K17 0x88200304, // 002A GETMBR R8 R1 K4 0x7C180400, // 002B CALL R6 2 0x50180000, // 002C LDBOOL R6 0 0 @@ -2085,7 +2064,7 @@ be_local_closure(Matter_IM_process_status_response, /* name */ ********************************************************************/ be_local_closure(Matter_IM_process_write_response, /* name */ be_nested_proto( - 9, /* nstack */ + 7, /* nstack */ 3, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2093,19 +2072,15 @@ be_local_closure(Matter_IM_process_write_response, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ + ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(WriteResponseMessage), /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20WriteResponseMessage_X3D), - /* K7 */ be_const_int(2), }), be_str_weak(process_write_response), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[ 9]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 @@ -2113,16 +2088,8 @@ be_local_closure(Matter_IM_process_write_response, /* name */ 0x8C100903, // 0004 GETMET R4 R4 K3 0x5C180400, // 0005 MOVE R6 R2 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 + 0x50140000, // 0007 LDBOOL R5 0 0 + 0x80040A00, // 0008 RET 1 R5 }) ) ); @@ -2162,7 +2129,7 @@ be_local_closure(Matter_IM_send_subscribe_update, /* name */ /* K16 */ be_nested_str_weak(MTR_X3A_X20_X3CSub_Data_X20_X20_X28_X256i_X29_X20sub_X3D_X25i), /* K17 */ be_nested_str_weak(local_session_id), /* K18 */ be_nested_str_weak(subscription_id), - /* K19 */ be_const_int(2), + /* K19 */ be_const_int(3), /* K20 */ be_nested_str_weak(is_keep_alive), /* K21 */ be_nested_str_weak(_inner_process_read_request), /* K22 */ be_nested_str_weak(suppress_response), @@ -2260,7 +2227,7 @@ be_local_closure(Matter_IM_send_enqueued, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ + ( &(const bvalue[12]) { /* constants */ /* K0 */ be_const_int(0), /* K1 */ be_nested_str_weak(send_queue), /* K2 */ be_nested_str_weak(finish), @@ -2271,9 +2238,8 @@ be_local_closure(Matter_IM_send_enqueued, /* name */ /* K7 */ be_nested_str_weak(MTR_X3A_X20remove_X20IM_X20message_X20exch_X3D), /* K8 */ be_nested_str_weak(resp), /* K9 */ be_nested_str_weak(exchange_id), - /* K10 */ be_const_int(3), - /* K11 */ be_nested_str_weak(remove), - /* K12 */ be_const_int(1), + /* K10 */ be_nested_str_weak(remove), + /* K11 */ be_const_int(1), }), be_str_weak(send_enqueued), &be_const_str_solidified, @@ -2302,14 +2268,14 @@ be_local_closure(Matter_IM_send_enqueued, /* name */ 0x881C0F09, // 0015 GETMBR R7 R7 K9 0x7C180200, // 0016 CALL R6 1 0x001A0E06, // 0017 ADD R6 K7 R6 - 0x581C000A, // 0018 LDCONST R7 K10 + 0x541E0003, // 0018 LDINT R7 4 0x7C100600, // 0019 CALL R4 3 0x88100101, // 001A GETMBR R4 R0 K1 - 0x8C10090B, // 001B GETMET R4 R4 K11 + 0x8C10090A, // 001B GETMET R4 R4 K10 0x5C180400, // 001C MOVE R6 R2 0x7C100400, // 001D CALL R4 2 0x70020000, // 001E JMP #0020 - 0x0008050C, // 001F ADD R2 R2 K12 + 0x0008050B, // 001F ADD R2 R2 K11 0x7001FFDF, // 0020 JMP #0001 0x80000000, // 0021 RET 0 }) @@ -2343,7 +2309,7 @@ be_local_closure(Matter_IM_process_timed_request, /* name */ /* K8 */ be_nested_str_weak(session), /* K9 */ be_nested_str_weak(local_session_id), /* K10 */ be_nested_str_weak(timeout), - /* K11 */ be_const_int(2), + /* K11 */ be_const_int(3), /* K12 */ be_nested_str_weak(send_status), /* K13 */ be_nested_str_weak(SUCCESS), }), @@ -2385,7 +2351,7 @@ be_local_closure(Matter_IM_process_timed_request, /* name */ ********************************************************************/ be_local_closure(Matter_IM_report_data, /* name */ be_nested_proto( - 9, /* nstack */ + 7, /* nstack */ 3, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2393,19 +2359,15 @@ be_local_closure(Matter_IM_report_data, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ + ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(ReportDataMessage), /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20ReportDataMessage_X3D), - /* K7 */ be_const_int(2), }), be_str_weak(report_data), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[ 9]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 @@ -2413,16 +2375,8 @@ be_local_closure(Matter_IM_report_data, /* name */ 0x8C100903, // 0004 GETMET R4 R4 K3 0x5C180400, // 0005 MOVE R6 R2 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 + 0x50140000, // 0007 LDBOOL R5 0 0 + 0x80040A00, // 0008 RET 1 R5 }) ) ); @@ -2434,7 +2388,7 @@ be_local_closure(Matter_IM_report_data, /* name */ ********************************************************************/ be_local_closure(Matter_IM_process_invoke_response, /* name */ be_nested_proto( - 9, /* nstack */ + 7, /* nstack */ 3, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2442,19 +2396,15 @@ be_local_closure(Matter_IM_process_invoke_response, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ + ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(InvokeResponseMessage), /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20InvokeResponseMessage_X3D), - /* K7 */ be_const_int(2), }), be_str_weak(process_invoke_response), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[ 9]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x8C100902, // 0002 GETMET R4 R4 K2 @@ -2462,16 +2412,8 @@ be_local_closure(Matter_IM_process_invoke_response, /* name */ 0x8C100903, // 0004 GETMET R4 R4 K3 0x5C180400, // 0005 MOVE R6 R2 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 + 0x50140000, // 0007 LDBOOL R5 0 0 + 0x80040A00, // 0008 RET 1 R5 }) ) ); @@ -2539,7 +2481,7 @@ be_local_closure(Matter_IM_send_subscribe_heartbeat, /* name */ /* K5 */ be_nested_str_weak(MTR_X3A_X20_X3CSub_Alive_X20_X28_X256i_X29_X20sub_X3D_X25i), /* K6 */ be_nested_str_weak(local_session_id), /* K7 */ be_nested_str_weak(subscription_id), - /* K8 */ be_const_int(2), + /* K8 */ be_const_int(3), /* K9 */ be_nested_str_weak(is_keep_alive), /* K10 */ be_nested_str_weak(matter), /* K11 */ be_nested_str_weak(ReportDataMessage), diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h index b1b6f21da..cbf37c1b9 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h @@ -43,7 +43,7 @@ be_local_closure(Matter_IM_Message_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[21]) { /* constants */ + ( &(const bvalue[20]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(ready), /* K2 */ be_nested_str_weak(resp), @@ -61,10 +61,9 @@ be_local_closure(Matter_IM_Message_send_im, /* name */ /* K14 */ be_nested_str_weak(message_counter), /* K15 */ be_nested_str_weak(exchange_id), /* K16 */ be_nested_str_weak(ack_message_counter), - /* K17 */ be_const_int(3), - /* K18 */ be_nested_str_weak(send_response_frame), - /* K19 */ be_nested_str_weak(last_counter), - /* K20 */ be_nested_str_weak(finish), + /* K17 */ be_nested_str_weak(send_response_frame), + /* K18 */ be_nested_str_weak(last_counter), + /* K19 */ be_nested_str_weak(finish), }), be_str_weak(send_im), &be_const_str_solidified, @@ -94,15 +93,15 @@ be_local_closure(Matter_IM_Message_send_im, /* name */ 0x882C070F, // 0016 GETMBR R11 R3 K15 0x88300710, // 0017 GETMBR R12 R3 K16 0x7C180C00, // 0018 CALL R6 6 - 0x581C0011, // 0019 LDCONST R7 K17 + 0x541E0003, // 0019 LDINT R7 4 0x7C100600, // 001A CALL R4 3 - 0x8C100312, // 001B GETMET R4 R1 K18 + 0x8C100311, // 001B GETMET R4 R1 K17 0x5C180600, // 001C MOVE R6 R3 0x7C100400, // 001D CALL R4 2 0x8810070E, // 001E GETMBR R4 R3 K14 - 0x90022604, // 001F SETMBR R0 K19 R4 + 0x90022404, // 001F SETMBR R0 K18 R4 0x50100200, // 0020 LDBOOL R4 1 0 - 0x90022804, // 0021 SETMBR R0 K20 R4 + 0x90022604, // 0021 SETMBR R0 K19 R4 0x80000000, // 0022 RET 0 }) ) @@ -529,7 +528,7 @@ extern const bclass be_class_Matter_IM_ReportData; ********************************************************************/ be_local_closure(Matter_IM_ReportData_send_im, /* name */ be_nested_proto( - 19, /* nstack */ + 13, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -537,7 +536,7 @@ be_local_closure(Matter_IM_ReportData_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[31]) { /* constants */ + ( &(const bvalue[18]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(ready), /* K2 */ be_nested_str_weak(resp), @@ -547,32 +546,19 @@ be_local_closure(Matter_IM_ReportData_send_im, /* name */ /* K6 */ be_nested_str_weak(attribute_reports), /* K7 */ be_const_int(2147483647), /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(tasmota), - /* K10 */ be_nested_str_weak(log), - /* K11 */ be_nested_str_weak(format), - /* K12 */ be_nested_str_weak(MTR_X3A_X20_X2ERead_Attr_X20next_chunk_X20exch_X3D_X25i), - /* K13 */ be_nested_str_weak(get_exchangeid), - /* K14 */ be_const_int(3), - /* K15 */ be_nested_str_weak(MTR_X3A_X20_X2ERead_Attr_X20first_chunk_X20exch_X3D_X25i), - /* K16 */ be_nested_str_weak(to_TLV), - /* K17 */ be_nested_str_weak(tlv2raw), - /* K18 */ be_nested_str_weak(MAX_MESSAGE), - /* K19 */ be_nested_str_weak(encode_frame), - /* K20 */ be_nested_str_weak(encrypt), - /* K21 */ be_nested_str_weak(MTR_X3A_X20_X3Csnd_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20id_X3D_X25i_X20exch_X3D_X25i_X20rack_X3D_X25s), - /* K22 */ be_nested_str_weak(session), - /* K23 */ be_nested_str_weak(local_session_id), - /* K24 */ be_nested_str_weak(message_counter), - /* K25 */ be_nested_str_weak(exchange_id), - /* K26 */ be_nested_str_weak(ack_message_counter), - /* K27 */ be_nested_str_weak(send_response_frame), - /* K28 */ be_nested_str_weak(last_counter), - /* K29 */ be_nested_str_weak(MTR_X3A_X20to_be_sent_later_X20size_X3D_X25i_X20exch_X3D_X25i), - /* K30 */ be_nested_str_weak(finish), + /* K9 */ be_nested_str_weak(to_TLV), + /* K10 */ be_nested_str_weak(tlv2raw), + /* K11 */ be_nested_str_weak(MAX_MESSAGE), + /* K12 */ be_nested_str_weak(encode_frame), + /* K13 */ be_nested_str_weak(encrypt), + /* K14 */ be_nested_str_weak(send_response_frame), + /* K15 */ be_nested_str_weak(last_counter), + /* K16 */ be_nested_str_weak(message_counter), + /* K17 */ be_nested_str_weak(finish), }), be_str_weak(send_im), &be_const_str_solidified, - ( &(const binstruction[109]) { /* code */ + ( &(const binstruction[68]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0x880C0101, // 0001 GETMBR R3 R0 K1 0x740E0001, // 0002 JMPT R3 #0005 @@ -603,85 +589,44 @@ be_local_closure(Matter_IM_ReportData_send_im, /* name */ 0x70020001, // 001B JMP #001E 0x50200000, // 001C LDBOOL R8 0 0 0x90120808, // 001D SETMBR R4 K4 R8 - 0x78160008, // 001E JMPF R5 #0028 - 0xB8221200, // 001F GETNGBL R8 K9 - 0x8C20110A, // 0020 GETMET R8 R8 K10 - 0x8C28050B, // 0021 GETMET R10 R2 K11 - 0x5830000C, // 0022 LDCONST R12 K12 - 0x8C34010D, // 0023 GETMET R13 R0 K13 - 0x7C340200, // 0024 CALL R13 1 - 0x7C280600, // 0025 CALL R10 3 - 0x582C000E, // 0026 LDCONST R11 K14 - 0x7C200600, // 0027 CALL R8 3 - 0x88200904, // 0028 GETMBR R8 R4 K4 - 0x7822000A, // 0029 JMPF R8 #0035 - 0x5C200A00, // 002A MOVE R8 R5 - 0x74220008, // 002B JMPT R8 #0035 - 0xB8221200, // 002C GETNGBL R8 K9 - 0x8C20110A, // 002D GETMET R8 R8 K10 - 0x8C28050B, // 002E GETMET R10 R2 K11 - 0x5830000F, // 002F LDCONST R12 K15 - 0x8C34010D, // 0030 GETMET R13 R0 K13 - 0x7C340200, // 0031 CALL R13 1 - 0x7C280600, // 0032 CALL R10 3 - 0x582C000E, // 0033 LDCONST R11 K14 - 0x7C200600, // 0034 CALL R8 3 - 0x88200103, // 0035 GETMBR R8 R0 K3 - 0x8C201110, // 0036 GETMET R8 R8 K16 - 0x7C200200, // 0037 CALL R8 1 - 0x8C241111, // 0038 GETMET R9 R8 K17 - 0x602C0015, // 0039 GETGBL R11 G21 - 0x88300112, // 003A GETMBR R12 R0 K18 - 0x7C2C0200, // 003B CALL R11 1 - 0x7C240400, // 003C CALL R9 2 - 0x8C280713, // 003D GETMET R10 R3 K19 - 0x5C301200, // 003E MOVE R12 R9 - 0x7C280400, // 003F CALL R10 2 - 0x8C280714, // 0040 GETMET R10 R3 K20 - 0x7C280200, // 0041 CALL R10 1 - 0xB82A1200, // 0042 GETNGBL R10 K9 - 0x8C28150A, // 0043 GETMET R10 R10 K10 - 0x8C30050B, // 0044 GETMET R12 R2 K11 - 0x58380015, // 0045 LDCONST R14 K21 - 0x883C0716, // 0046 GETMBR R15 R3 K22 - 0x883C1F17, // 0047 GETMBR R15 R15 K23 - 0x88400718, // 0048 GETMBR R16 R3 K24 - 0x88440719, // 0049 GETMBR R17 R3 K25 - 0x8848071A, // 004A GETMBR R18 R3 K26 - 0x7C300C00, // 004B CALL R12 6 - 0x5834000E, // 004C LDCONST R13 K14 - 0x7C280600, // 004D CALL R10 3 - 0x8C28031B, // 004E GETMET R10 R1 K27 - 0x5C300600, // 004F MOVE R12 R3 - 0x7C280400, // 0050 CALL R10 2 - 0x88280718, // 0051 GETMBR R10 R3 K24 - 0x9002380A, // 0052 SETMBR R0 K28 R10 - 0x4C280000, // 0053 LDNIL R10 - 0x20280E0A, // 0054 NE R10 R7 R10 - 0x782A0013, // 0055 JMPF R10 #006A - 0x6028000C, // 0056 GETGBL R10 G12 - 0x5C2C0E00, // 0057 MOVE R11 R7 - 0x7C280200, // 0058 CALL R10 1 - 0x24281508, // 0059 GT R10 R10 K8 - 0x782A000E, // 005A JMPF R10 #006A - 0x90120C07, // 005B SETMBR R4 K6 R7 - 0xB82A1200, // 005C GETNGBL R10 K9 - 0x8C28150A, // 005D GETMET R10 R10 K10 - 0x8C30050B, // 005E GETMET R12 R2 K11 - 0x5838001D, // 005F LDCONST R14 K29 - 0x603C000C, // 0060 GETGBL R15 G12 - 0x88400906, // 0061 GETMBR R16 R4 K6 - 0x7C3C0200, // 0062 CALL R15 1 - 0x88400719, // 0063 GETMBR R16 R3 K25 - 0x7C300800, // 0064 CALL R12 4 - 0x5834000E, // 0065 LDCONST R13 K14 - 0x7C280600, // 0066 CALL R10 3 - 0x50280000, // 0067 LDBOOL R10 0 0 - 0x9002020A, // 0068 SETMBR R0 K1 R10 - 0x70020001, // 0069 JMP #006C - 0x50280200, // 006A LDBOOL R10 1 0 - 0x90023C0A, // 006B SETMBR R0 K30 R10 - 0x80000000, // 006C RET 0 + 0x7815FFFF, // 001E JMPF R5 #001F + 0x88200904, // 001F GETMBR R8 R4 K4 + 0x78220001, // 0020 JMPF R8 #0023 + 0x5C200A00, // 0021 MOVE R8 R5 + 0x7421FFFF, // 0022 JMPT R8 #0023 + 0x88200103, // 0023 GETMBR R8 R0 K3 + 0x8C201109, // 0024 GETMET R8 R8 K9 + 0x7C200200, // 0025 CALL R8 1 + 0x8C24110A, // 0026 GETMET R9 R8 K10 + 0x602C0015, // 0027 GETGBL R11 G21 + 0x8830010B, // 0028 GETMBR R12 R0 K11 + 0x7C2C0200, // 0029 CALL R11 1 + 0x7C240400, // 002A CALL R9 2 + 0x8C28070C, // 002B GETMET R10 R3 K12 + 0x5C301200, // 002C MOVE R12 R9 + 0x7C280400, // 002D CALL R10 2 + 0x8C28070D, // 002E GETMET R10 R3 K13 + 0x7C280200, // 002F CALL R10 1 + 0x8C28030E, // 0030 GETMET R10 R1 K14 + 0x5C300600, // 0031 MOVE R12 R3 + 0x7C280400, // 0032 CALL R10 2 + 0x88280710, // 0033 GETMBR R10 R3 K16 + 0x90021E0A, // 0034 SETMBR R0 K15 R10 + 0x4C280000, // 0035 LDNIL R10 + 0x20280E0A, // 0036 NE R10 R7 R10 + 0x782A0008, // 0037 JMPF R10 #0041 + 0x6028000C, // 0038 GETGBL R10 G12 + 0x5C2C0E00, // 0039 MOVE R11 R7 + 0x7C280200, // 003A CALL R10 1 + 0x24281508, // 003B GT R10 R10 K8 + 0x782A0003, // 003C JMPF R10 #0041 + 0x90120C07, // 003D SETMBR R4 K6 R7 + 0x50280000, // 003E LDBOOL R10 0 0 + 0x9002020A, // 003F SETMBR R0 K1 R10 + 0x70020001, // 0040 JMP #0043 + 0x50280200, // 0041 LDBOOL R10 1 0 + 0x9002220A, // 0042 SETMBR R0 K17 R10 + 0x80000000, // 0043 RET 0 }) ) ); @@ -811,7 +756,7 @@ be_local_closure(Matter_IM_ReportDataSubscribed_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[23]) { /* constants */ + ( &(const bvalue[22]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(ready), /* K2 */ be_nested_str_weak(data), @@ -832,9 +777,8 @@ be_local_closure(Matter_IM_ReportDataSubscribed_send_im, /* name */ /* K17 */ be_nested_str_weak(local_session_id), /* K18 */ be_nested_str_weak(ack_message_counter), /* K19 */ be_nested_str_weak(message_counter), - /* K20 */ be_const_int(3), - /* K21 */ be_nested_str_weak(send_response_frame), - /* K22 */ be_nested_str_weak(last_counter), + /* K20 */ be_nested_str_weak(send_response_frame), + /* K21 */ be_nested_str_weak(last_counter), }), be_str_weak(send_im), &be_const_str_solidified, @@ -885,13 +829,13 @@ be_local_closure(Matter_IM_ReportDataSubscribed_send_im, /* name */ 0x88280712, // 002B GETMBR R10 R3 K18 0x882C0713, // 002C GETMBR R11 R3 K19 0x7C180A00, // 002D CALL R6 5 - 0x581C0014, // 002E LDCONST R7 K20 + 0x541E0003, // 002E LDINT R7 4 0x7C100600, // 002F CALL R4 3 - 0x8C100315, // 0030 GETMET R4 R1 K21 + 0x8C100314, // 0030 GETMET R4 R1 K20 0x5C180600, // 0031 MOVE R6 R3 0x7C100400, // 0032 CALL R4 2 0x88100713, // 0033 GETMBR R4 R3 K19 - 0x90022C04, // 0034 SETMBR R0 K22 R4 + 0x90022A04, // 0034 SETMBR R0 K21 R4 0x50100200, // 0035 LDBOOL R4 1 0 0x90020E04, // 0036 SETMBR R0 K7 R4 0x7002000C, // 0037 JMP #0045 @@ -1419,7 +1363,7 @@ be_local_closure(Matter_IM_SubscribeResponse_status_ok_received, /* name */ /* K6 */ be_nested_str_weak(local_session_id), /* K7 */ be_nested_str_weak(sub), /* K8 */ be_nested_str_weak(subscription_id), - /* K9 */ be_const_int(2), + /* K9 */ be_const_int(3), /* K10 */ be_nested_str_weak(status_ok_received), }), be_str_weak(status_ok_received), diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h index e2f48b099..bfaf77df8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h @@ -190,7 +190,7 @@ be_local_closure(Matter_IM_Subscription_remove_self, /* name */ /* K1 */ be_nested_str_weak(log), /* K2 */ be_nested_str_weak(MTR_X3A_X20_X2DSub_Del_X20_X20_X20_X28_X20_X20_X20_X20_X20_X20_X29_X20sub_X3D), /* K3 */ be_nested_str_weak(subscription_id), - /* K4 */ be_const_int(2), + /* K4 */ be_const_int(3), /* K5 */ be_nested_str_weak(subs_shop), /* K6 */ be_nested_str_weak(remove_sub), }), @@ -347,7 +347,7 @@ be_local_closure(Matter_IM_Subscription_re_arm, /* name */ /* K12 */ be_nested_str_weak(format), /* K13 */ be_nested_str_weak(MTR_X3A_X20_X2ESub_Done_X20_X20_X28_X20_X20_X20_X20_X20_X20_X29_X20sub_X3D_X25i), /* K14 */ be_nested_str_weak(subscription_id), - /* K15 */ be_const_int(2), + /* K15 */ be_const_int(3), }), be_str_weak(re_arm), &be_const_str_solidified, diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h index 5bfbc0bee..1b67e8236 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Message.h @@ -309,7 +309,7 @@ be_local_closure(Matter_Frame_encrypt, /* name */ ********************************************************************/ be_local_closure(Matter_Frame_debug, /* name */ be_nested_proto( - 8, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -317,20 +317,16 @@ be_local_closure(Matter_Frame_debug, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ + ( &(const bvalue[ 5]) { /* constants */ /* K0 */ be_nested_str_weak(matter), /* K1 */ be_nested_str_weak(Frame), /* K2 */ be_nested_str_weak(message_handler), /* K3 */ be_nested_str_weak(decode_header), /* K4 */ be_nested_str_weak(decode_payload), - /* K5 */ be_nested_str_weak(tasmota), - /* K6 */ be_nested_str_weak(log), - /* K7 */ be_nested_str_weak(MTR_X3A_X20sending_X20decode_X3A_X20), - /* K8 */ be_nested_str_weak(inspect), }), be_str_weak(debug), &be_const_str_solidified, - ( &(const binstruction[19]) { /* code */ + ( &(const binstruction[10]) { /* code */ 0x80000400, // 0000 RET 0 0xB80A0000, // 0001 GETNGBL R2 K0 0x8C080501, // 0002 GETMET R2 R2 K1 @@ -341,15 +337,6 @@ be_local_closure(Matter_Frame_debug, /* name */ 0x7C0C0200, // 0007 CALL R3 1 0x8C0C0504, // 0008 GETMET R3 R2 K4 0x7C0C0200, // 0009 CALL R3 1 - 0xB80E0A00, // 000A GETNGBL R3 K5 - 0x8C0C0706, // 000B GETMET R3 R3 K6 - 0xB8160000, // 000C GETNGBL R5 K0 - 0x8C140B08, // 000D GETMET R5 R5 K8 - 0x5C1C0400, // 000E MOVE R7 R2 - 0x7C140400, // 000F CALL R5 2 - 0x00160E05, // 0010 ADD R5 K7 R5 - 0x541A0003, // 0011 LDINT R6 4 - 0x7C0C0600, // 0012 CALL R3 3 }) ) ); @@ -493,7 +480,7 @@ be_local_closure(Matter_Frame_build_response, /* name */ /* K28 */ be_nested_str_weak(tasmota), /* K29 */ be_nested_str_weak(log), /* K30 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s), - /* K31 */ be_const_int(2), + /* K31 */ be_const_int(3), }), be_str_weak(build_response), &be_const_str_solidified, @@ -1171,7 +1158,7 @@ be_local_closure(Matter_Frame_decrypt, /* name */ 0xB8320C00, // 0061 GETNGBL R12 K6 0x8C301907, // 0062 GETMET R12 R12 K7 0x5838001A, // 0063 LDCONST R14 K26 - 0x583C0009, // 0064 LDCONST R15 K9 + 0x583C0012, // 0064 LDCONST R15 K18 0x7C300600, // 0065 CALL R12 3 0x4C300000, // 0066 LDNIL R12 0x80041800, // 0067 RET 1 R12 diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h index a94a7c160..21f9a31e8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h @@ -50,7 +50,7 @@ be_local_closure(Matter_MessageHandler_send_encrypted_ack, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ + ( &(const bvalue[16]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(x_flag_r), /* K2 */ be_nested_str_weak(build_standalone_ack), @@ -66,8 +66,7 @@ be_local_closure(Matter_MessageHandler_send_encrypted_ack, /* name */ /* K12 */ be_nested_str_weak(message_counter), /* K13 */ be_nested_str_weak(_X7Breliable_X7D), /* K14 */ be_nested_str_weak(), - /* K15 */ be_const_int(3), - /* K16 */ be_nested_str_weak(send_response_frame), + /* K15 */ be_nested_str_weak(send_response_frame), }), be_str_weak(send_encrypted_ack), &be_const_str_solidified, @@ -95,9 +94,9 @@ be_local_closure(Matter_MessageHandler_send_encrypted_ack, /* name */ 0x70020000, // 0014 JMP #0016 0x5834000E, // 0015 LDCONST R13 K14 0x7C1C0C00, // 0016 CALL R7 6 - 0x5820000F, // 0017 LDCONST R8 K15 + 0x54220003, // 0017 LDINT R8 4 0x7C140600, // 0018 CALL R5 3 - 0x8C140110, // 0019 GETMET R5 R0 K16 + 0x8C14010F, // 0019 GETMET R5 R0 K15 0x5C1C0800, // 001A MOVE R7 R4 0x7C140400, // 001B CALL R5 2 0x80000000, // 001C RET 0 @@ -154,7 +153,7 @@ be_local_closure(Matter_MessageHandler_send_simple_ack, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ + ( &(const bvalue[15]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(x_flag_r), /* K2 */ be_nested_str_weak(build_standalone_ack), @@ -169,8 +168,7 @@ be_local_closure(Matter_MessageHandler_send_simple_ack, /* name */ /* K11 */ be_nested_str_weak(message_counter), /* K12 */ be_nested_str_weak(_X7Breliable_X7D), /* K13 */ be_nested_str_weak(), - /* K14 */ be_const_int(3), - /* K15 */ be_nested_str_weak(send_response_frame), + /* K14 */ be_nested_str_weak(send_response_frame), }), be_str_weak(send_simple_ack), &be_const_str_solidified, @@ -196,9 +194,9 @@ be_local_closure(Matter_MessageHandler_send_simple_ack, /* name */ 0x70020000, // 0012 JMP #0014 0x5834000D, // 0013 LDCONST R13 K13 0x7C1C0C00, // 0014 CALL R7 6 - 0x5820000E, // 0015 LDCONST R8 K14 + 0x54220003, // 0015 LDINT R8 4 0x7C140600, // 0016 CALL R5 3 - 0x8C14010F, // 0017 GETMET R5 R0 K15 + 0x8C14010E, // 0017 GETMET R5 R0 K14 0x5C1C0800, // 0018 MOVE R7 R4 0x7C140400, // 0019 CALL R5 2 0x80000000, // 001A RET 0 @@ -213,7 +211,7 @@ be_local_closure(Matter_MessageHandler_send_simple_ack, /* name */ ********************************************************************/ be_local_closure(Matter_MessageHandler_msg_received, /* name */ be_nested_proto( - 24, /* nstack */ + 21, /* nstack */ 4, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -221,89 +219,82 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[75]) { /* constants */ + ( &(const bvalue[68]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(Frame), /* K3 */ be_nested_str_weak(decode_header), /* K4 */ be_nested_str_weak(sec_p), - /* K5 */ be_nested_str_weak(tasmota), - /* K6 */ be_nested_str_weak(log), - /* K7 */ be_nested_str_weak(MTR_X3A_X20CONTROL_X20MESSAGE_X3D), - /* K8 */ be_nested_str_weak(inspect), - /* K9 */ be_nested_str_weak(device), - /* K10 */ be_nested_str_weak(sessions), - /* K11 */ be_nested_str_weak(find_session_source_id_unsecure), - /* K12 */ be_nested_str_weak(source_node_id), - /* K13 */ be_nested_str_weak(MTR_X3A_X20find_X20session_X20by_X20source_node_id_X20_X3D_X20), - /* K14 */ be_nested_str_weak(_X20session_id_X20_X3D_X20), - /* K15 */ be_nested_str_weak(local_session_id), - /* K16 */ be_nested_str_weak(control_message), - /* K17 */ be_nested_str_weak(process_incoming_control_message), - /* K18 */ be_const_int(0), - /* K19 */ be_nested_str_weak(sec_sesstype), - /* K20 */ be_nested_str_weak(_ip), - /* K21 */ be_nested_str_weak(_port), - /* K22 */ be_nested_str_weak(_message_handler), - /* K23 */ be_nested_str_weak(session), - /* K24 */ be_nested_str_weak(_counter_insecure_rcv), - /* K25 */ be_nested_str_weak(validate), - /* K26 */ be_nested_str_weak(message_counter), - /* K27 */ be_nested_str_weak(format), - /* K28 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20unencrypted_X20message_X20_X3D_X20_X25i_X20ref_X20_X3D_X20_X25i), - /* K29 */ be_nested_str_weak(val), - /* K30 */ be_const_int(3), - /* K31 */ be_nested_str_weak(send_simple_ack), - /* K32 */ be_nested_str_weak(decode_payload), - /* K33 */ be_nested_str_weak(received_ack), - /* K34 */ be_nested_str_weak(opcode), - /* K35 */ be_nested_str_weak(get_opcode_name), - /* K36 */ be_nested_str_weak(0x_X2502X), - /* K37 */ be_nested_str_weak(MTR_X3A_X20_X3EReceived_X20_X20_X28_X256i_X29_X20_X25s_X20rid_X3D_X25i_X20exch_X3D_X25i_X20from_X20_X5B_X25s_X5D_X3A_X25i), - /* K38 */ be_nested_str_weak(exchange_id), - /* K39 */ be_const_int(2), - /* K40 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20Ack_X20_X20_X20_X28_X256i_X29_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), - /* K41 */ be_nested_str_weak(x_flag_r), - /* K42 */ be_nested_str_weak(_X7Breliable_X7D_X20), - /* K43 */ be_nested_str_weak(), - /* K44 */ be_nested_str_weak(ack_message_counter), - /* K45 */ be_nested_str_weak(commissioning), - /* K46 */ be_nested_str_weak(process_incoming), - /* K47 */ be_nested_str_weak(MTR_X3A_X20decode_X20header_X3A_X20local_session_id_X3D_X25i_X20message_counter_X3D_X25i), - /* K48 */ be_nested_str_weak(get_session_by_local_session_id), - /* K49 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), - /* K50 */ be_nested_str_weak(counter_rcv_validate), - /* K51 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20encrypted_X20message_X20_X3D_X20), - /* K52 */ be_nested_str_weak(_X20counter_X3D), - /* K53 */ be_nested_str_weak(counter_rcv), - /* K54 */ be_nested_str_weak(send_encrypted_ack), - /* K55 */ be_nested_str_weak(decrypt), - /* K56 */ be_nested_str_weak(raw), - /* K57 */ be_nested_str_weak(payload_idx), - /* K58 */ be_const_int(1), - /* K59 */ be_nested_str_weak(MTR_X3A_X20idx_X3D_X25i_X20clear_X3D_X25s), - /* K60 */ be_nested_str_weak(tohex), - /* K61 */ be_nested_str_weak(MTR_X3A_X20_X3E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Decrypted_X20message_X3A_X20protocol_id_X3A), - /* K62 */ be_nested_str_weak(protocol_id), - /* K63 */ be_nested_str_weak(_X20opcode_X3D), - /* K64 */ be_nested_str_weak(_X20exchange_id_X3D), - /* K65 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20_X5B_X2502X_X2F_X2502X_X5D_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), - /* K66 */ be_nested_str_weak(im), - /* K67 */ be_nested_str_weak(process_incoming_ack), - /* K68 */ be_nested_str_weak(send_enqueued), - /* K69 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), - /* K70 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), - /* K71 */ be_nested_str_weak(_X3B), - /* K72 */ be_nested_str_weak(_debug_present), - /* K73 */ be_nested_str_weak(debug), - /* K74 */ be_nested_str_weak(traceback), + /* K5 */ be_nested_str_weak(device), + /* K6 */ be_nested_str_weak(sessions), + /* K7 */ be_nested_str_weak(find_session_source_id_unsecure), + /* K8 */ be_nested_str_weak(source_node_id), + /* K9 */ be_nested_str_weak(control_message), + /* K10 */ be_nested_str_weak(process_incoming_control_message), + /* K11 */ be_nested_str_weak(local_session_id), + /* K12 */ be_const_int(0), + /* K13 */ be_nested_str_weak(sec_sesstype), + /* K14 */ be_nested_str_weak(_ip), + /* K15 */ be_nested_str_weak(_port), + /* K16 */ be_nested_str_weak(_message_handler), + /* K17 */ be_nested_str_weak(session), + /* K18 */ be_nested_str_weak(_counter_insecure_rcv), + /* K19 */ be_nested_str_weak(validate), + /* K20 */ be_nested_str_weak(message_counter), + /* K21 */ be_nested_str_weak(tasmota), + /* K22 */ be_nested_str_weak(log), + /* K23 */ be_nested_str_weak(format), + /* K24 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20unencrypted_X20message_X20_X3D_X20_X25i_X20ref_X20_X3D_X20_X25i), + /* K25 */ be_nested_str_weak(val), + /* K26 */ be_nested_str_weak(send_simple_ack), + /* K27 */ be_nested_str_weak(decode_payload), + /* K28 */ be_nested_str_weak(received_ack), + /* K29 */ be_nested_str_weak(opcode), + /* K30 */ be_nested_str_weak(get_opcode_name), + /* K31 */ be_nested_str_weak(0x_X2502X), + /* K32 */ be_nested_str_weak(MTR_X3A_X20_X3EReceived_X20_X20_X28_X256i_X29_X20_X25s_X20rid_X3D_X25i_X20exch_X3D_X25i_X20from_X20_X5B_X25s_X5D_X3A_X25i), + /* K33 */ be_nested_str_weak(exchange_id), + /* K34 */ be_const_int(3), + /* K35 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20Ack_X20_X20_X20_X28_X256i_X29_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), + /* K36 */ be_nested_str_weak(x_flag_r), + /* K37 */ be_nested_str_weak(_X7Breliable_X7D_X20), + /* K38 */ be_nested_str_weak(), + /* K39 */ be_nested_str_weak(ack_message_counter), + /* K40 */ be_nested_str_weak(commissioning), + /* K41 */ be_nested_str_weak(process_incoming), + /* K42 */ be_nested_str_weak(MTR_X3A_X20decode_X20header_X3A_X20local_session_id_X3D_X25i_X20message_counter_X3D_X25i), + /* K43 */ be_nested_str_weak(get_session_by_local_session_id), + /* K44 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), + /* K45 */ be_nested_str_weak(counter_rcv_validate), + /* K46 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20encrypted_X20message_X20_X3D_X20), + /* K47 */ be_nested_str_weak(_X20counter_X3D), + /* K48 */ be_nested_str_weak(counter_rcv), + /* K49 */ be_nested_str_weak(send_encrypted_ack), + /* K50 */ be_nested_str_weak(decrypt), + /* K51 */ be_nested_str_weak(raw), + /* K52 */ be_nested_str_weak(payload_idx), + /* K53 */ be_const_int(1), + /* K54 */ be_nested_str_weak(MTR_X3A_X20_X3E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Decrypted_X20message_X3A_X20protocol_id_X3A), + /* K55 */ be_nested_str_weak(protocol_id), + /* K56 */ be_nested_str_weak(_X20opcode_X3D), + /* K57 */ be_nested_str_weak(_X20exchange_id_X3D), + /* K58 */ be_nested_str_weak(im), + /* K59 */ be_nested_str_weak(process_incoming_ack), + /* K60 */ be_nested_str_weak(send_enqueued), + /* K61 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), + /* K62 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), + /* K63 */ be_nested_str_weak(_X3B), + /* K64 */ be_const_int(2), + /* K65 */ be_nested_str_weak(_debug_present), + /* K66 */ be_nested_str_weak(debug), + /* K67 */ be_nested_str_weak(traceback), }), be_str_weak(msg_received), &be_const_str_solidified, - ( &(const binstruction[391]) { /* code */ + ( &(const binstruction[324]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0x50140000, // 0001 LDBOOL R5 0 0 - 0xA802016A, // 0002 EXBLK 0 #016E + 0xA8020126, // 0002 EXBLK 0 #012A 0xB81A0200, // 0003 GETNGBL R6 K1 0x8C180D02, // 0004 GETMET R6 R6 K2 0x5C200000, // 0005 MOVE R8 R0 @@ -319,379 +310,312 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0xA8040001, // 000F EXBLK 1 1 0x80041000, // 0010 RET 1 R8 0x88200D04, // 0011 GETMBR R8 R6 K4 - 0x78220022, // 0012 JMPF R8 #0036 - 0xB8220A00, // 0013 GETNGBL R8 K5 - 0x8C201106, // 0014 GETMET R8 R8 K6 - 0xB82A0200, // 0015 GETNGBL R10 K1 - 0x8C281508, // 0016 GETMET R10 R10 K8 - 0x5C300C00, // 0017 MOVE R12 R6 - 0x7C280400, // 0018 CALL R10 2 - 0x002A0E0A, // 0019 ADD R10 K7 R10 - 0x542E0003, // 001A LDINT R11 4 - 0x7C200600, // 001B CALL R8 3 - 0x88200109, // 001C GETMBR R8 R0 K9 - 0x8820110A, // 001D GETMBR R8 R8 K10 - 0x8C20110B, // 001E GETMET R8 R8 K11 - 0x88280D0C, // 001F GETMBR R10 R6 K12 - 0x542E0059, // 0020 LDINT R11 90 - 0x7C200600, // 0021 CALL R8 3 - 0xB8260A00, // 0022 GETNGBL R9 K5 - 0x8C241306, // 0023 GETMET R9 R9 K6 - 0x602C0008, // 0024 GETGBL R11 G8 - 0x88300D0C, // 0025 GETMBR R12 R6 K12 - 0x7C2C0200, // 0026 CALL R11 1 - 0x002E1A0B, // 0027 ADD R11 K13 R11 - 0x002C170E, // 0028 ADD R11 R11 K14 - 0x60300008, // 0029 GETGBL R12 G8 - 0x8834110F, // 002A GETMBR R13 R8 K15 - 0x7C300200, // 002B CALL R12 1 - 0x002C160C, // 002C ADD R11 R11 R12 - 0x54320003, // 002D LDINT R12 4 - 0x7C240600, // 002E CALL R9 3 - 0x88240110, // 002F GETMBR R9 R0 K16 - 0x8C241311, // 0030 GETMET R9 R9 K17 - 0x5C2C0C00, // 0031 MOVE R11 R6 - 0x7C240400, // 0032 CALL R9 2 - 0xA8040001, // 0033 EXBLK 1 1 - 0x80041200, // 0034 RET 1 R9 - 0x70020133, // 0035 JMP #016A - 0x88200D0F, // 0036 GETMBR R8 R6 K15 - 0x1C201112, // 0037 EQ R8 R8 K18 - 0x7822007D, // 0038 JMPF R8 #00B7 - 0x88200D13, // 0039 GETMBR R8 R6 K19 - 0x1C201112, // 003A EQ R8 R8 K18 - 0x7822007A, // 003B JMPF R8 #00B7 - 0x88200109, // 003C GETMBR R8 R0 K9 - 0x8820110A, // 003D GETMBR R8 R8 K10 - 0x8C20110B, // 003E GETMET R8 R8 K11 - 0x88280D0C, // 003F GETMBR R10 R6 K12 - 0x542E0059, // 0040 LDINT R11 90 - 0x7C200600, // 0041 CALL R8 3 - 0xB8260A00, // 0042 GETNGBL R9 K5 - 0x8C241306, // 0043 GETMET R9 R9 K6 - 0x602C0008, // 0044 GETGBL R11 G8 - 0x88300D0C, // 0045 GETMBR R12 R6 K12 - 0x7C2C0200, // 0046 CALL R11 1 - 0x002E1A0B, // 0047 ADD R11 K13 R11 - 0x002C170E, // 0048 ADD R11 R11 K14 - 0x60300008, // 0049 GETGBL R12 G8 - 0x8834110F, // 004A GETMBR R13 R8 K15 - 0x7C300200, // 004B CALL R12 1 - 0x002C160C, // 004C ADD R11 R11 R12 - 0x54320003, // 004D LDINT R12 4 - 0x7C240600, // 004E CALL R9 3 - 0x780A0000, // 004F JMPF R2 #0051 - 0x90222802, // 0050 SETMBR R8 K20 R2 - 0x780E0000, // 0051 JMPF R3 #0053 - 0x90222A03, // 0052 SETMBR R8 K21 R3 - 0x90222C00, // 0053 SETMBR R8 K22 R0 - 0x901A2E08, // 0054 SETMBR R6 K23 R8 - 0x88241118, // 0055 GETMBR R9 R8 K24 - 0x8C241319, // 0056 GETMET R9 R9 K25 - 0x882C0D1A, // 0057 GETMBR R11 R6 K26 - 0x50300000, // 0058 LDBOOL R12 0 0 - 0x7C240600, // 0059 CALL R9 3 - 0x74260011, // 005A JMPT R9 #006D - 0xB8260A00, // 005B GETNGBL R9 K5 - 0x8C241306, // 005C GETMET R9 R9 K6 - 0x8C2C091B, // 005D GETMET R11 R4 K27 - 0x5834001C, // 005E LDCONST R13 K28 - 0x88380D1A, // 005F GETMBR R14 R6 K26 - 0x883C1118, // 0060 GETMBR R15 R8 K24 - 0x8C3C1F1D, // 0061 GETMET R15 R15 K29 - 0x7C3C0200, // 0062 CALL R15 1 - 0x7C2C0800, // 0063 CALL R11 4 - 0x5830001E, // 0064 LDCONST R12 K30 - 0x7C240600, // 0065 CALL R9 3 - 0x8C24011F, // 0066 GETMET R9 R0 K31 - 0x5C2C0C00, // 0067 MOVE R11 R6 - 0x50300000, // 0068 LDBOOL R12 0 0 - 0x7C240600, // 0069 CALL R9 3 - 0x50240000, // 006A LDBOOL R9 0 0 - 0xA8040001, // 006B EXBLK 1 1 - 0x80041200, // 006C RET 1 R9 - 0x8C240D20, // 006D GETMET R9 R6 K32 - 0x7C240200, // 006E CALL R9 1 - 0x74260002, // 006F JMPT R9 #0073 - 0x50240000, // 0070 LDBOOL R9 0 0 - 0xA8040001, // 0071 EXBLK 1 1 - 0x80041200, // 0072 RET 1 R9 - 0x88240109, // 0073 GETMBR R9 R0 K9 - 0x8C241321, // 0074 GETMET R9 R9 K33 - 0x5C2C0C00, // 0075 MOVE R11 R6 - 0x7C240400, // 0076 CALL R9 2 - 0x88240D22, // 0077 GETMBR R9 R6 K34 - 0x542A000F, // 0078 LDINT R10 16 - 0x2024120A, // 0079 NE R9 R9 R10 - 0x78260018, // 007A JMPF R9 #0094 - 0xB8260200, // 007B GETNGBL R9 K1 - 0x8C241323, // 007C GETMET R9 R9 K35 - 0x882C0D22, // 007D GETMBR R11 R6 K34 - 0x7C240400, // 007E CALL R9 2 - 0x5C281200, // 007F MOVE R10 R9 - 0x742A0004, // 0080 JMPT R10 #0086 - 0x8C28091B, // 0081 GETMET R10 R4 K27 - 0x58300024, // 0082 LDCONST R12 K36 - 0x88340D22, // 0083 GETMBR R13 R6 K34 - 0x7C280600, // 0084 CALL R10 3 - 0x5C241400, // 0085 MOVE R9 R10 - 0xB82A0A00, // 0086 GETNGBL R10 K5 - 0x8C281506, // 0087 GETMET R10 R10 K6 - 0x8C30091B, // 0088 GETMET R12 R4 K27 - 0x58380025, // 0089 LDCONST R14 K37 - 0x883C110F, // 008A GETMBR R15 R8 K15 - 0x5C401200, // 008B MOVE R16 R9 - 0x88440D1A, // 008C GETMBR R17 R6 K26 - 0x88480D26, // 008D GETMBR R18 R6 K38 - 0x5C4C0400, // 008E MOVE R19 R2 - 0x5C500600, // 008F MOVE R20 R3 - 0x7C301000, // 0090 CALL R12 8 - 0x58340027, // 0091 LDCONST R13 K39 - 0x7C280600, // 0092 CALL R10 3 - 0x70020013, // 0093 JMP #00A8 - 0xB8260A00, // 0094 GETNGBL R9 K5 - 0x8C241306, // 0095 GETMET R9 R9 K6 - 0x8C2C091B, // 0096 GETMET R11 R4 K27 - 0x58340028, // 0097 LDCONST R13 K40 - 0x8838110F, // 0098 GETMBR R14 R8 K15 - 0x883C0D1A, // 0099 GETMBR R15 R6 K26 - 0x88400D29, // 009A GETMBR R16 R6 K41 - 0x78420001, // 009B JMPF R16 #009E - 0x5840002A, // 009C LDCONST R16 K42 - 0x70020000, // 009D JMP #009F - 0x5840002B, // 009E LDCONST R16 K43 - 0x88440D26, // 009F GETMBR R17 R6 K38 - 0x60480008, // 00A0 GETGBL R18 G8 - 0x884C0D2C, // 00A1 GETMBR R19 R6 K44 - 0x7C480200, // 00A2 CALL R18 1 - 0x5C4C0400, // 00A3 MOVE R19 R2 - 0x5C500600, // 00A4 MOVE R20 R3 - 0x7C2C1200, // 00A5 CALL R11 9 - 0x5830001E, // 00A6 LDCONST R12 K30 - 0x7C240600, // 00A7 CALL R9 3 - 0x8824012D, // 00A8 GETMBR R9 R0 K45 - 0x8C24132E, // 00A9 GETMET R9 R9 K46 - 0x5C2C0C00, // 00AA MOVE R11 R6 - 0x7C240400, // 00AB CALL R9 2 - 0x5C141200, // 00AC MOVE R5 R9 - 0x5C240A00, // 00AD MOVE R9 R5 - 0x74260003, // 00AE JMPT R9 #00B3 - 0x8C24011F, // 00AF GETMET R9 R0 K31 - 0x5C2C0C00, // 00B0 MOVE R11 R6 - 0x50300000, // 00B1 LDBOOL R12 0 0 - 0x7C240600, // 00B2 CALL R9 3 - 0x50240200, // 00B3 LDBOOL R9 1 0 - 0xA8040001, // 00B4 EXBLK 1 1 - 0x80041200, // 00B5 RET 1 R9 - 0x700200B2, // 00B6 JMP #016A - 0xB8220A00, // 00B7 GETNGBL R8 K5 - 0x8C201106, // 00B8 GETMET R8 R8 K6 - 0x8C28091B, // 00B9 GETMET R10 R4 K27 - 0x5830002F, // 00BA LDCONST R12 K47 - 0x88340D0F, // 00BB GETMBR R13 R6 K15 - 0x88380D1A, // 00BC GETMBR R14 R6 K26 - 0x7C280800, // 00BD CALL R10 4 - 0x582C001E, // 00BE LDCONST R11 K30 - 0x7C200600, // 00BF CALL R8 3 - 0x88200109, // 00C0 GETMBR R8 R0 K9 - 0x8820110A, // 00C1 GETMBR R8 R8 K10 - 0x8C201130, // 00C2 GETMET R8 R8 K48 - 0x88280D0F, // 00C3 GETMBR R10 R6 K15 - 0x7C200400, // 00C4 CALL R8 2 - 0x4C240000, // 00C5 LDNIL R9 - 0x1C241009, // 00C6 EQ R9 R8 R9 - 0x7826000A, // 00C7 JMPF R9 #00D3 - 0xB8260A00, // 00C8 GETNGBL R9 K5 - 0x8C241306, // 00C9 GETMET R9 R9 K6 - 0x602C0008, // 00CA GETGBL R11 G8 - 0x88300D0F, // 00CB GETMBR R12 R6 K15 - 0x7C2C0200, // 00CC CALL R11 1 - 0x002E620B, // 00CD ADD R11 K49 R11 - 0x58300027, // 00CE LDCONST R12 K39 - 0x7C240600, // 00CF CALL R9 3 - 0x50240000, // 00D0 LDBOOL R9 0 0 - 0xA8040001, // 00D1 EXBLK 1 1 - 0x80041200, // 00D2 RET 1 R9 - 0x780A0000, // 00D3 JMPF R2 #00D5 - 0x90222802, // 00D4 SETMBR R8 K20 R2 - 0x780E0000, // 00D5 JMPF R3 #00D7 - 0x90222A03, // 00D6 SETMBR R8 K21 R3 - 0x90222C00, // 00D7 SETMBR R8 K22 R0 - 0x901A2E08, // 00D8 SETMBR R6 K23 R8 - 0x8C241132, // 00D9 GETMET R9 R8 K50 - 0x882C0D1A, // 00DA GETMBR R11 R6 K26 - 0x50300200, // 00DB LDBOOL R12 1 0 - 0x7C240600, // 00DC CALL R9 3 - 0x74260013, // 00DD JMPT R9 #00F2 - 0xB8260A00, // 00DE GETNGBL R9 K5 - 0x8C241306, // 00DF GETMET R9 R9 K6 - 0x602C0008, // 00E0 GETGBL R11 G8 - 0x88300D1A, // 00E1 GETMBR R12 R6 K26 - 0x7C2C0200, // 00E2 CALL R11 1 - 0x002E660B, // 00E3 ADD R11 K51 R11 - 0x002C1734, // 00E4 ADD R11 R11 K52 - 0x60300008, // 00E5 GETGBL R12 G8 - 0x88341135, // 00E6 GETMBR R13 R8 K53 - 0x7C300200, // 00E7 CALL R12 1 - 0x002C160C, // 00E8 ADD R11 R11 R12 - 0x5830001E, // 00E9 LDCONST R12 K30 - 0x7C240600, // 00EA CALL R9 3 - 0x8C240136, // 00EB GETMET R9 R0 K54 - 0x5C2C0C00, // 00EC MOVE R11 R6 - 0x50300000, // 00ED LDBOOL R12 0 0 - 0x7C240600, // 00EE CALL R9 3 - 0x50240000, // 00EF LDBOOL R9 0 0 - 0xA8040001, // 00F0 EXBLK 1 1 - 0x80041200, // 00F1 RET 1 R9 - 0x8C240D37, // 00F2 GETMET R9 R6 K55 - 0x7C240200, // 00F3 CALL R9 1 - 0x5C281200, // 00F4 MOVE R10 R9 - 0x742A0002, // 00F5 JMPT R10 #00F9 - 0x50280000, // 00F6 LDBOOL R10 0 0 - 0xA8040001, // 00F7 EXBLK 1 1 - 0x80041400, // 00F8 RET 1 R10 - 0x88280D39, // 00F9 GETMBR R10 R6 K57 - 0x0428153A, // 00FA SUB R10 R10 K58 - 0x402A240A, // 00FB CONNECT R10 K18 R10 - 0x882C0D38, // 00FC GETMBR R11 R6 K56 - 0x9428160A, // 00FD GETIDX R10 R11 R10 - 0x901A700A, // 00FE SETMBR R6 K56 R10 - 0x88280D38, // 00FF GETMBR R10 R6 K56 - 0x40281409, // 0100 CONNECT R10 R10 R9 - 0xB82A0A00, // 0101 GETNGBL R10 K5 - 0x8C281506, // 0102 GETMET R10 R10 K6 - 0x8C30091B, // 0103 GETMET R12 R4 K27 - 0x5838003B, // 0104 LDCONST R14 K59 - 0x883C0D39, // 0105 GETMBR R15 R6 K57 - 0x88400D38, // 0106 GETMBR R16 R6 K56 - 0x8C40213C, // 0107 GETMET R16 R16 K60 - 0x7C400200, // 0108 CALL R16 1 - 0x7C300800, // 0109 CALL R12 4 - 0x54360003, // 010A LDINT R13 4 - 0x7C280600, // 010B CALL R10 3 - 0x8C280D20, // 010C GETMET R10 R6 K32 - 0x7C280200, // 010D CALL R10 1 - 0xB82A0A00, // 010E GETNGBL R10 K5 - 0x8C281506, // 010F GETMET R10 R10 K6 - 0x60300008, // 0110 GETGBL R12 G8 - 0x88340D3E, // 0111 GETMBR R13 R6 K62 - 0x7C300200, // 0112 CALL R12 1 - 0x00327A0C, // 0113 ADD R12 K61 R12 - 0x0030193F, // 0114 ADD R12 R12 K63 - 0x60340008, // 0115 GETGBL R13 G8 - 0x88380D22, // 0116 GETMBR R14 R6 K34 - 0x7C340200, // 0117 CALL R13 1 - 0x0030180D, // 0118 ADD R12 R12 R13 - 0x00301940, // 0119 ADD R12 R12 K64 - 0x60340008, // 011A GETGBL R13 G8 - 0x88380D26, // 011B GETMBR R14 R6 K38 - 0x543EFFFE, // 011C LDINT R15 65535 - 0x2C381C0F, // 011D AND R14 R14 R15 - 0x7C340200, // 011E CALL R13 1 - 0x0030180D, // 011F ADD R12 R12 R13 - 0x5834001E, // 0120 LDCONST R13 K30 - 0x7C280600, // 0121 CALL R10 3 - 0xB82A0A00, // 0122 GETNGBL R10 K5 - 0x8C281506, // 0123 GETMET R10 R10 K6 - 0x8C30091B, // 0124 GETMET R12 R4 K27 - 0x58380041, // 0125 LDCONST R14 K65 - 0x883C110F, // 0126 GETMBR R15 R8 K15 - 0x88400D3E, // 0127 GETMBR R16 R6 K62 - 0x88440D22, // 0128 GETMBR R17 R6 K34 - 0x88480D1A, // 0129 GETMBR R18 R6 K26 - 0x884C0D26, // 012A GETMBR R19 R6 K38 - 0x60500008, // 012B GETGBL R20 G8 - 0x88540D2C, // 012C GETMBR R21 R6 K44 - 0x7C500200, // 012D CALL R20 1 - 0x88540D29, // 012E GETMBR R21 R6 K41 - 0x78560001, // 012F JMPF R21 #0132 - 0x5854002A, // 0130 LDCONST R21 K42 - 0x70020000, // 0131 JMP #0133 - 0x5854002B, // 0132 LDCONST R21 K43 - 0x5C580400, // 0133 MOVE R22 R2 - 0x5C5C0600, // 0134 MOVE R23 R3 - 0x7C301600, // 0135 CALL R12 11 - 0x5834001E, // 0136 LDCONST R13 K30 - 0x7C280600, // 0137 CALL R10 3 - 0x88280109, // 0138 GETMBR R10 R0 K9 - 0x8C281521, // 0139 GETMET R10 R10 K33 - 0x5C300C00, // 013A MOVE R12 R6 - 0x7C280400, // 013B CALL R10 2 - 0x88280D3E, // 013C GETMBR R10 R6 K62 - 0x1C2C1512, // 013D EQ R11 R10 K18 - 0x782E000F, // 013E JMPF R11 #014F - 0x882C0D22, // 013F GETMBR R11 R6 K34 - 0x5432000F, // 0140 LDINT R12 16 - 0x1C2C160C, // 0141 EQ R11 R11 R12 - 0x782E0009, // 0142 JMPF R11 #014D - 0x882C0142, // 0143 GETMBR R11 R0 K66 - 0x8C2C1743, // 0144 GETMET R11 R11 K67 - 0x5C340C00, // 0145 MOVE R13 R6 - 0x7C2C0400, // 0146 CALL R11 2 - 0x5C141600, // 0147 MOVE R5 R11 - 0x78160003, // 0148 JMPF R5 #014D - 0x882C0142, // 0149 GETMBR R11 R0 K66 - 0x8C2C1744, // 014A GETMET R11 R11 K68 - 0x5C340000, // 014B MOVE R13 R0 - 0x7C2C0400, // 014C CALL R11 2 - 0x50140200, // 014D LDBOOL R5 1 0 - 0x7002001A, // 014E JMP #016A - 0x1C2C153A, // 014F EQ R11 R10 K58 - 0x782E0010, // 0150 JMPF R11 #0162 - 0x882C0142, // 0151 GETMBR R11 R0 K66 - 0x8C2C172E, // 0152 GETMET R11 R11 K46 - 0x5C340C00, // 0153 MOVE R13 R6 - 0x7C2C0400, // 0154 CALL R11 2 - 0x5C141600, // 0155 MOVE R5 R11 - 0x78160004, // 0156 JMPF R5 #015C - 0x882C0142, // 0157 GETMBR R11 R0 K66 - 0x8C2C1744, // 0158 GETMET R11 R11 K68 - 0x5C340000, // 0159 MOVE R13 R0 - 0x7C2C0400, // 015A CALL R11 2 - 0x70020003, // 015B JMP #0160 - 0x8C2C0136, // 015C GETMET R11 R0 K54 - 0x5C340C00, // 015D MOVE R13 R6 - 0x50380200, // 015E LDBOOL R14 1 0 - 0x7C2C0600, // 015F CALL R11 3 - 0x50140200, // 0160 LDBOOL R5 1 0 - 0x70020007, // 0161 JMP #016A - 0xB82E0A00, // 0162 GETNGBL R11 K5 - 0x8C2C1706, // 0163 GETMET R11 R11 K6 - 0x60340008, // 0164 GETGBL R13 G8 - 0x5C381400, // 0165 MOVE R14 R10 - 0x7C340200, // 0166 CALL R13 1 - 0x00368A0D, // 0167 ADD R13 K69 R13 - 0x5838001E, // 0168 LDCONST R14 K30 - 0x7C2C0600, // 0169 CALL R11 3 - 0xA8040001, // 016A EXBLK 1 1 - 0x80040A00, // 016B RET 1 R5 - 0xA8040001, // 016C EXBLK 1 1 - 0x70020017, // 016D JMP #0186 - 0xAC180002, // 016E CATCH R6 0 2 - 0x70020014, // 016F JMP #0185 - 0xB8220A00, // 0170 GETNGBL R8 K5 - 0x8C201106, // 0171 GETMET R8 R8 K6 - 0x60280008, // 0172 GETGBL R10 G8 - 0x5C2C0C00, // 0173 MOVE R11 R6 - 0x7C280200, // 0174 CALL R10 1 - 0x002A8C0A, // 0175 ADD R10 K70 R10 - 0x00281547, // 0176 ADD R10 R10 K71 - 0x602C0008, // 0177 GETGBL R11 G8 - 0x5C300E00, // 0178 MOVE R12 R7 - 0x7C2C0200, // 0179 CALL R11 1 - 0x0028140B, // 017A ADD R10 R10 R11 - 0x7C200400, // 017B CALL R8 2 - 0xB8220A00, // 017C GETNGBL R8 K5 - 0x88201148, // 017D GETMBR R8 R8 K72 - 0x78220002, // 017E JMPF R8 #0182 - 0xA4229200, // 017F IMPORT R8 K73 - 0x8C24114A, // 0180 GETMET R9 R8 K74 - 0x7C240200, // 0181 CALL R9 1 - 0x50200000, // 0182 LDBOOL R8 0 0 - 0x80041000, // 0183 RET 1 R8 - 0x70020000, // 0184 JMP #0186 - 0xB0080000, // 0185 RAISE 2 R0 R0 - 0x80000000, // 0186 RET 0 + 0x7822000C, // 0012 JMPF R8 #0020 + 0x88200105, // 0013 GETMBR R8 R0 K5 + 0x88201106, // 0014 GETMBR R8 R8 K6 + 0x8C201107, // 0015 GETMET R8 R8 K7 + 0x88280D08, // 0016 GETMBR R10 R6 K8 + 0x542E0059, // 0017 LDINT R11 90 + 0x7C200600, // 0018 CALL R8 3 + 0x88240109, // 0019 GETMBR R9 R0 K9 + 0x8C24130A, // 001A GETMET R9 R9 K10 + 0x5C2C0C00, // 001B MOVE R11 R6 + 0x7C240400, // 001C CALL R9 2 + 0xA8040001, // 001D EXBLK 1 1 + 0x80041200, // 001E RET 1 R9 + 0x70020105, // 001F JMP #0126 + 0x88200D0B, // 0020 GETMBR R8 R6 K11 + 0x1C20110C, // 0021 EQ R8 R8 K12 + 0x78220070, // 0022 JMPF R8 #0094 + 0x88200D0D, // 0023 GETMBR R8 R6 K13 + 0x1C20110C, // 0024 EQ R8 R8 K12 + 0x7822006D, // 0025 JMPF R8 #0094 + 0x88200105, // 0026 GETMBR R8 R0 K5 + 0x88201106, // 0027 GETMBR R8 R8 K6 + 0x8C201107, // 0028 GETMET R8 R8 K7 + 0x88280D08, // 0029 GETMBR R10 R6 K8 + 0x542E0059, // 002A LDINT R11 90 + 0x7C200600, // 002B CALL R8 3 + 0x780A0000, // 002C JMPF R2 #002E + 0x90221C02, // 002D SETMBR R8 K14 R2 + 0x780E0000, // 002E JMPF R3 #0030 + 0x90221E03, // 002F SETMBR R8 K15 R3 + 0x90222000, // 0030 SETMBR R8 K16 R0 + 0x901A2208, // 0031 SETMBR R6 K17 R8 + 0x88241112, // 0032 GETMBR R9 R8 K18 + 0x8C241313, // 0033 GETMET R9 R9 K19 + 0x882C0D14, // 0034 GETMBR R11 R6 K20 + 0x50300000, // 0035 LDBOOL R12 0 0 + 0x7C240600, // 0036 CALL R9 3 + 0x74260011, // 0037 JMPT R9 #004A + 0xB8262A00, // 0038 GETNGBL R9 K21 + 0x8C241316, // 0039 GETMET R9 R9 K22 + 0x8C2C0917, // 003A GETMET R11 R4 K23 + 0x58340018, // 003B LDCONST R13 K24 + 0x88380D14, // 003C GETMBR R14 R6 K20 + 0x883C1112, // 003D GETMBR R15 R8 K18 + 0x8C3C1F19, // 003E GETMET R15 R15 K25 + 0x7C3C0200, // 003F CALL R15 1 + 0x7C2C0800, // 0040 CALL R11 4 + 0x54320003, // 0041 LDINT R12 4 + 0x7C240600, // 0042 CALL R9 3 + 0x8C24011A, // 0043 GETMET R9 R0 K26 + 0x5C2C0C00, // 0044 MOVE R11 R6 + 0x50300000, // 0045 LDBOOL R12 0 0 + 0x7C240600, // 0046 CALL R9 3 + 0x50240000, // 0047 LDBOOL R9 0 0 + 0xA8040001, // 0048 EXBLK 1 1 + 0x80041200, // 0049 RET 1 R9 + 0x8C240D1B, // 004A GETMET R9 R6 K27 + 0x7C240200, // 004B CALL R9 1 + 0x74260002, // 004C JMPT R9 #0050 + 0x50240000, // 004D LDBOOL R9 0 0 + 0xA8040001, // 004E EXBLK 1 1 + 0x80041200, // 004F RET 1 R9 + 0x88240105, // 0050 GETMBR R9 R0 K5 + 0x8C24131C, // 0051 GETMET R9 R9 K28 + 0x5C2C0C00, // 0052 MOVE R11 R6 + 0x7C240400, // 0053 CALL R9 2 + 0x88240D1D, // 0054 GETMBR R9 R6 K29 + 0x542A000F, // 0055 LDINT R10 16 + 0x2024120A, // 0056 NE R9 R9 R10 + 0x78260018, // 0057 JMPF R9 #0071 + 0xB8260200, // 0058 GETNGBL R9 K1 + 0x8C24131E, // 0059 GETMET R9 R9 K30 + 0x882C0D1D, // 005A GETMBR R11 R6 K29 + 0x7C240400, // 005B CALL R9 2 + 0x5C281200, // 005C MOVE R10 R9 + 0x742A0004, // 005D JMPT R10 #0063 + 0x8C280917, // 005E GETMET R10 R4 K23 + 0x5830001F, // 005F LDCONST R12 K31 + 0x88340D1D, // 0060 GETMBR R13 R6 K29 + 0x7C280600, // 0061 CALL R10 3 + 0x5C241400, // 0062 MOVE R9 R10 + 0xB82A2A00, // 0063 GETNGBL R10 K21 + 0x8C281516, // 0064 GETMET R10 R10 K22 + 0x8C300917, // 0065 GETMET R12 R4 K23 + 0x58380020, // 0066 LDCONST R14 K32 + 0x883C110B, // 0067 GETMBR R15 R8 K11 + 0x5C401200, // 0068 MOVE R16 R9 + 0x88440D14, // 0069 GETMBR R17 R6 K20 + 0x88480D21, // 006A GETMBR R18 R6 K33 + 0x5C4C0400, // 006B MOVE R19 R2 + 0x5C500600, // 006C MOVE R20 R3 + 0x7C301000, // 006D CALL R12 8 + 0x58340022, // 006E LDCONST R13 K34 + 0x7C280600, // 006F CALL R10 3 + 0x70020013, // 0070 JMP #0085 + 0xB8262A00, // 0071 GETNGBL R9 K21 + 0x8C241316, // 0072 GETMET R9 R9 K22 + 0x8C2C0917, // 0073 GETMET R11 R4 K23 + 0x58340023, // 0074 LDCONST R13 K35 + 0x8838110B, // 0075 GETMBR R14 R8 K11 + 0x883C0D14, // 0076 GETMBR R15 R6 K20 + 0x88400D24, // 0077 GETMBR R16 R6 K36 + 0x78420001, // 0078 JMPF R16 #007B + 0x58400025, // 0079 LDCONST R16 K37 + 0x70020000, // 007A JMP #007C + 0x58400026, // 007B LDCONST R16 K38 + 0x88440D21, // 007C GETMBR R17 R6 K33 + 0x60480008, // 007D GETGBL R18 G8 + 0x884C0D27, // 007E GETMBR R19 R6 K39 + 0x7C480200, // 007F CALL R18 1 + 0x5C4C0400, // 0080 MOVE R19 R2 + 0x5C500600, // 0081 MOVE R20 R3 + 0x7C2C1200, // 0082 CALL R11 9 + 0x54320003, // 0083 LDINT R12 4 + 0x7C240600, // 0084 CALL R9 3 + 0x88240128, // 0085 GETMBR R9 R0 K40 + 0x8C241329, // 0086 GETMET R9 R9 K41 + 0x5C2C0C00, // 0087 MOVE R11 R6 + 0x7C240400, // 0088 CALL R9 2 + 0x5C141200, // 0089 MOVE R5 R9 + 0x5C240A00, // 008A MOVE R9 R5 + 0x74260003, // 008B JMPT R9 #0090 + 0x8C24011A, // 008C GETMET R9 R0 K26 + 0x5C2C0C00, // 008D MOVE R11 R6 + 0x50300000, // 008E LDBOOL R12 0 0 + 0x7C240600, // 008F CALL R9 3 + 0x50240200, // 0090 LDBOOL R9 1 0 + 0xA8040001, // 0091 EXBLK 1 1 + 0x80041200, // 0092 RET 1 R9 + 0x70020091, // 0093 JMP #0126 + 0xB8222A00, // 0094 GETNGBL R8 K21 + 0x8C201116, // 0095 GETMET R8 R8 K22 + 0x8C280917, // 0096 GETMET R10 R4 K23 + 0x5830002A, // 0097 LDCONST R12 K42 + 0x88340D0B, // 0098 GETMBR R13 R6 K11 + 0x88380D14, // 0099 GETMBR R14 R6 K20 + 0x7C280800, // 009A CALL R10 4 + 0x542E0003, // 009B LDINT R11 4 + 0x7C200600, // 009C CALL R8 3 + 0x88200105, // 009D GETMBR R8 R0 K5 + 0x88201106, // 009E GETMBR R8 R8 K6 + 0x8C20112B, // 009F GETMET R8 R8 K43 + 0x88280D0B, // 00A0 GETMBR R10 R6 K11 + 0x7C200400, // 00A1 CALL R8 2 + 0x4C240000, // 00A2 LDNIL R9 + 0x1C241009, // 00A3 EQ R9 R8 R9 + 0x7826000A, // 00A4 JMPF R9 #00B0 + 0xB8262A00, // 00A5 GETNGBL R9 K21 + 0x8C241316, // 00A6 GETMET R9 R9 K22 + 0x602C0008, // 00A7 GETGBL R11 G8 + 0x88300D0B, // 00A8 GETMBR R12 R6 K11 + 0x7C2C0200, // 00A9 CALL R11 1 + 0x002E580B, // 00AA ADD R11 K44 R11 + 0x58300022, // 00AB LDCONST R12 K34 + 0x7C240600, // 00AC CALL R9 3 + 0x50240000, // 00AD LDBOOL R9 0 0 + 0xA8040001, // 00AE EXBLK 1 1 + 0x80041200, // 00AF RET 1 R9 + 0x780A0000, // 00B0 JMPF R2 #00B2 + 0x90221C02, // 00B1 SETMBR R8 K14 R2 + 0x780E0000, // 00B2 JMPF R3 #00B4 + 0x90221E03, // 00B3 SETMBR R8 K15 R3 + 0x90222000, // 00B4 SETMBR R8 K16 R0 + 0x901A2208, // 00B5 SETMBR R6 K17 R8 + 0x8C24112D, // 00B6 GETMET R9 R8 K45 + 0x882C0D14, // 00B7 GETMBR R11 R6 K20 + 0x50300200, // 00B8 LDBOOL R12 1 0 + 0x7C240600, // 00B9 CALL R9 3 + 0x74260013, // 00BA JMPT R9 #00CF + 0xB8262A00, // 00BB GETNGBL R9 K21 + 0x8C241316, // 00BC GETMET R9 R9 K22 + 0x602C0008, // 00BD GETGBL R11 G8 + 0x88300D14, // 00BE GETMBR R12 R6 K20 + 0x7C2C0200, // 00BF CALL R11 1 + 0x002E5C0B, // 00C0 ADD R11 K46 R11 + 0x002C172F, // 00C1 ADD R11 R11 K47 + 0x60300008, // 00C2 GETGBL R12 G8 + 0x88341130, // 00C3 GETMBR R13 R8 K48 + 0x7C300200, // 00C4 CALL R12 1 + 0x002C160C, // 00C5 ADD R11 R11 R12 + 0x54320003, // 00C6 LDINT R12 4 + 0x7C240600, // 00C7 CALL R9 3 + 0x8C240131, // 00C8 GETMET R9 R0 K49 + 0x5C2C0C00, // 00C9 MOVE R11 R6 + 0x50300000, // 00CA LDBOOL R12 0 0 + 0x7C240600, // 00CB CALL R9 3 + 0x50240000, // 00CC LDBOOL R9 0 0 + 0xA8040001, // 00CD EXBLK 1 1 + 0x80041200, // 00CE RET 1 R9 + 0x8C240D32, // 00CF GETMET R9 R6 K50 + 0x7C240200, // 00D0 CALL R9 1 + 0x5C281200, // 00D1 MOVE R10 R9 + 0x742A0002, // 00D2 JMPT R10 #00D6 + 0x50280000, // 00D3 LDBOOL R10 0 0 + 0xA8040001, // 00D4 EXBLK 1 1 + 0x80041400, // 00D5 RET 1 R10 + 0x88280D34, // 00D6 GETMBR R10 R6 K52 + 0x04281535, // 00D7 SUB R10 R10 K53 + 0x402A180A, // 00D8 CONNECT R10 K12 R10 + 0x882C0D33, // 00D9 GETMBR R11 R6 K51 + 0x9428160A, // 00DA GETIDX R10 R11 R10 + 0x901A660A, // 00DB SETMBR R6 K51 R10 + 0x88280D33, // 00DC GETMBR R10 R6 K51 + 0x40281409, // 00DD CONNECT R10 R10 R9 + 0x8C280D1B, // 00DE GETMET R10 R6 K27 + 0x7C280200, // 00DF CALL R10 1 + 0xB82A2A00, // 00E0 GETNGBL R10 K21 + 0x8C281516, // 00E1 GETMET R10 R10 K22 + 0x60300008, // 00E2 GETGBL R12 G8 + 0x88340D37, // 00E3 GETMBR R13 R6 K55 + 0x7C300200, // 00E4 CALL R12 1 + 0x00326C0C, // 00E5 ADD R12 K54 R12 + 0x00301938, // 00E6 ADD R12 R12 K56 + 0x60340008, // 00E7 GETGBL R13 G8 + 0x88380D1D, // 00E8 GETMBR R14 R6 K29 + 0x7C340200, // 00E9 CALL R13 1 + 0x0030180D, // 00EA ADD R12 R12 R13 + 0x00301939, // 00EB ADD R12 R12 K57 + 0x60340008, // 00EC GETGBL R13 G8 + 0x88380D21, // 00ED GETMBR R14 R6 K33 + 0x543EFFFE, // 00EE LDINT R15 65535 + 0x2C381C0F, // 00EF AND R14 R14 R15 + 0x7C340200, // 00F0 CALL R13 1 + 0x0030180D, // 00F1 ADD R12 R12 R13 + 0x54360003, // 00F2 LDINT R13 4 + 0x7C280600, // 00F3 CALL R10 3 + 0x88280105, // 00F4 GETMBR R10 R0 K5 + 0x8C28151C, // 00F5 GETMET R10 R10 K28 + 0x5C300C00, // 00F6 MOVE R12 R6 + 0x7C280400, // 00F7 CALL R10 2 + 0x88280D37, // 00F8 GETMBR R10 R6 K55 + 0x1C2C150C, // 00F9 EQ R11 R10 K12 + 0x782E000F, // 00FA JMPF R11 #010B + 0x882C0D1D, // 00FB GETMBR R11 R6 K29 + 0x5432000F, // 00FC LDINT R12 16 + 0x1C2C160C, // 00FD EQ R11 R11 R12 + 0x782E0009, // 00FE JMPF R11 #0109 + 0x882C013A, // 00FF GETMBR R11 R0 K58 + 0x8C2C173B, // 0100 GETMET R11 R11 K59 + 0x5C340C00, // 0101 MOVE R13 R6 + 0x7C2C0400, // 0102 CALL R11 2 + 0x5C141600, // 0103 MOVE R5 R11 + 0x78160003, // 0104 JMPF R5 #0109 + 0x882C013A, // 0105 GETMBR R11 R0 K58 + 0x8C2C173C, // 0106 GETMET R11 R11 K60 + 0x5C340000, // 0107 MOVE R13 R0 + 0x7C2C0400, // 0108 CALL R11 2 + 0x50140200, // 0109 LDBOOL R5 1 0 + 0x7002001A, // 010A JMP #0126 + 0x1C2C1535, // 010B EQ R11 R10 K53 + 0x782E0010, // 010C JMPF R11 #011E + 0x882C013A, // 010D GETMBR R11 R0 K58 + 0x8C2C1729, // 010E GETMET R11 R11 K41 + 0x5C340C00, // 010F MOVE R13 R6 + 0x7C2C0400, // 0110 CALL R11 2 + 0x5C141600, // 0111 MOVE R5 R11 + 0x78160004, // 0112 JMPF R5 #0118 + 0x882C013A, // 0113 GETMBR R11 R0 K58 + 0x8C2C173C, // 0114 GETMET R11 R11 K60 + 0x5C340000, // 0115 MOVE R13 R0 + 0x7C2C0400, // 0116 CALL R11 2 + 0x70020003, // 0117 JMP #011C + 0x8C2C0131, // 0118 GETMET R11 R0 K49 + 0x5C340C00, // 0119 MOVE R13 R6 + 0x50380200, // 011A LDBOOL R14 1 0 + 0x7C2C0600, // 011B CALL R11 3 + 0x50140200, // 011C LDBOOL R5 1 0 + 0x70020007, // 011D JMP #0126 + 0xB82E2A00, // 011E GETNGBL R11 K21 + 0x8C2C1716, // 011F GETMET R11 R11 K22 + 0x60340008, // 0120 GETGBL R13 G8 + 0x5C381400, // 0121 MOVE R14 R10 + 0x7C340200, // 0122 CALL R13 1 + 0x00367A0D, // 0123 ADD R13 K61 R13 + 0x58380022, // 0124 LDCONST R14 K34 + 0x7C2C0600, // 0125 CALL R11 3 + 0xA8040001, // 0126 EXBLK 1 1 + 0x80040A00, // 0127 RET 1 R5 + 0xA8040001, // 0128 EXBLK 1 1 + 0x70020018, // 0129 JMP #0143 + 0xAC180002, // 012A CATCH R6 0 2 + 0x70020015, // 012B JMP #0142 + 0xB8222A00, // 012C GETNGBL R8 K21 + 0x8C201116, // 012D GETMET R8 R8 K22 + 0x60280008, // 012E GETGBL R10 G8 + 0x5C2C0C00, // 012F MOVE R11 R6 + 0x7C280200, // 0130 CALL R10 1 + 0x002A7C0A, // 0131 ADD R10 K62 R10 + 0x0028153F, // 0132 ADD R10 R10 K63 + 0x602C0008, // 0133 GETGBL R11 G8 + 0x5C300E00, // 0134 MOVE R12 R7 + 0x7C2C0200, // 0135 CALL R11 1 + 0x0028140B, // 0136 ADD R10 R10 R11 + 0x582C0040, // 0137 LDCONST R11 K64 + 0x7C200600, // 0138 CALL R8 3 + 0xB8222A00, // 0139 GETNGBL R8 K21 + 0x88201141, // 013A GETMBR R8 R8 K65 + 0x78220002, // 013B JMPF R8 #013F + 0xA4228400, // 013C IMPORT R8 K66 + 0x8C241143, // 013D GETMET R9 R8 K67 + 0x7C240200, // 013E CALL R9 1 + 0x50200000, // 013F LDBOOL R8 0 0 + 0x80041000, // 0140 RET 1 R8 + 0x70020000, // 0141 JMP #0143 + 0xB0080000, // 0142 RAISE 2 R0 R0 + 0x80000000, // 0143 RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h index 135f1d210..63f6c88a8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h @@ -6,6 +6,459 @@ extern const bclass be_class_Matter_Plugin; +/******************************************************************** +** Solidified function: every_250ms +********************************************************************/ +be_local_closure(Matter_Plugin_every_250ms, /* 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[10]) { /* constants */ + /* K0 */ be_nested_str_weak(update_next), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(jitter), + /* K3 */ be_nested_str_weak(UPDATE_TIME), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(time_reached), + /* K6 */ be_nested_str_weak(tick), + /* K7 */ be_nested_str_weak(device), + /* K8 */ be_nested_str_weak(update_shadow), + /* K9 */ be_nested_str_weak(millis), + }), + be_str_weak(every_250ms), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x1C040202, // 0002 EQ R1 R1 R2 + 0x78060005, // 0003 JMPF R1 #000A + 0xB8060200, // 0004 GETNGBL R1 K1 + 0x8C040302, // 0005 GETMET R1 R1 K2 + 0x880C0103, // 0006 GETMBR R3 R0 K3 + 0x7C040400, // 0007 CALL R1 2 + 0x90020001, // 0008 SETMBR R0 K0 R1 + 0x70020010, // 0009 JMP #001B + 0xB8060800, // 000A GETNGBL R1 K4 + 0x8C040305, // 000B GETMET R1 R1 K5 + 0x880C0100, // 000C GETMBR R3 R0 K0 + 0x7C040400, // 000D CALL R1 2 + 0x7806000B, // 000E JMPF R1 #001B + 0x88040106, // 000F GETMBR R1 R0 K6 + 0x88080107, // 0010 GETMBR R2 R0 K7 + 0x88080506, // 0011 GETMBR R2 R2 K6 + 0x20040202, // 0012 NE R1 R1 R2 + 0x78060001, // 0013 JMPF R1 #0016 + 0x8C040108, // 0014 GETMET R1 R0 K8 + 0x7C040200, // 0015 CALL R1 1 + 0xB8060800, // 0016 GETNGBL R1 K4 + 0x8C040309, // 0017 GETMET R1 R1 K9 + 0x880C0103, // 0018 GETMBR R3 R0 K3 + 0x7C040400, // 0019 CALL R1 2 + 0x90020001, // 001A SETMBR R0 K0 R1 + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_cluster_list +********************************************************************/ +be_local_closure(Matter_Plugin_get_cluster_list, /* 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[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(clusters), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(get_cluster_list), + &be_const_str_solidified, + ( &(const binstruction[18]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x88100100, // 0003 GETMBR R4 R0 K0 + 0x8C100901, // 0004 GETMET R4 R4 K1 + 0x7C100200, // 0005 CALL R4 1 + 0x7C0C0200, // 0006 CALL R3 1 + 0xA8020005, // 0007 EXBLK 0 #000E + 0x5C100600, // 0008 MOVE R4 R3 + 0x7C100000, // 0009 CALL R4 0 + 0x8C140502, // 000A GETMET R5 R2 K2 + 0x5C1C0800, // 000B MOVE R7 R4 + 0x7C140400, // 000C CALL R5 2 + 0x7001FFF9, // 000D JMP #0008 + 0x580C0003, // 000E LDCONST R3 K3 + 0xAC0C0200, // 000F CATCH R3 1 0 + 0xB0080000, // 0010 RAISE 2 R0 R0 + 0x80040400, // 0011 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: