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: Command (%6i) TimedRequest=%i", msg.session.local_session_id, query.timeout), 2) + tasmota.log(string.format("MTR: >Command (%6i) TimedRequest=%i", msg.session.local_session_id, query.timeout), 3) # Send success status report self.send_status(msg, matter.SUCCESS) @@ -637,7 +637,7 @@ class Matter_IM fake_read.attributes_requests.push(p1) end - tasmota.log(string.format("MTR: >>>> send elements after encode") resp.encrypt() # print(">>>>> send elements after encrypt") - tasmota.log(string.format("MTR: 0 data.attribute_reports = next_elemnts - tasmota.log(string.format("MTR: to_be_sent_later size=%i exch=%i", size(data.attribute_reports), resp.exchange_id), 3) + # tasmota.log(string.format("MTR: to_be_sent_later size=%i exch=%i", size(data.attribute_reports), resp.exchange_id), 4) self.ready = false # wait for Status Report before continuing sending # keep alive else @@ -302,7 +302,7 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData var resp = self.resp.build_standalone_ack(false) resp.encode_frame() resp.encrypt() - tasmota.log(string.format("MTR: Sub_OK (%6i) sub=%i", msg.session.local_session_id, self.sub.subscription_id), 2) + tasmota.log(string.format("MTR: >Sub_OK (%6i) sub=%i", msg.session.local_session_id, self.sub.subscription_id), 3) return super(self).status_ok_received(msg) end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be index 0f526d987..967817c7c 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Subscription.be @@ -86,7 +86,7 @@ class Matter_IM_Subscription # remove self from subs_shop list def remove_self() - tasmota.log("MTR: -Sub_Del ( ) sub=" + str(self.subscription_id), 2) + tasmota.log("MTR: -Sub_Del ( ) sub=" + str(self.subscription_id), 3) self.subs_shop.remove_sub(self) end @@ -104,7 +104,7 @@ class Matter_IM_Subscription self.expiration = now + (self.max_interval - self.MAX_INTERVAL_MARGIN) * 1000 self.not_before = now + self.min_interval * 1000 - 1 if !self.is_keep_alive - tasmota.log(string.format("MTR: .Sub_Done ( ) sub=%i", self.subscription_id), 2) + tasmota.log(string.format("MTR: .Sub_Done ( ) sub=%i", self.subscription_id), 3) end end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Message.be b/lib/libesp32/berry_matter/src/embedded/Matter_Message.be index 39cf74e30..6a83702aa 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Message.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Message.be @@ -302,7 +302,7 @@ class Matter_Frame if resp.local_session_id == 0 var op_name = matter.get_opcode_name(resp.opcode) if !op_name op_name = string.format("0x%02X", resp.opcode) end - tasmota.log(string.format("MTR: Received (%6i) %s rid=%i exch=%i from [%s]:%i", session.local_session_id, op_name, frame.message_counter, frame.exchange_id, addr, port), 2) + tasmota.log(string.format("MTR: >Received (%6i) %s rid=%i exch=%i from [%s]:%i", session.local_session_id, op_name, frame.message_counter, frame.exchange_id, addr, port), 3) else - tasmota.log(string.format("MTR: >rcv Ack (%6i) rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.message_counter, frame.x_flag_r ? "{reliable} " : "", frame.exchange_id, str(frame.ack_message_counter), addr, port), 3) + tasmota.log(string.format("MTR: >rcv Ack (%6i) rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.message_counter, frame.x_flag_r ? "{reliable} " : "", frame.exchange_id, str(frame.ack_message_counter), addr, port), 4) end ret = self.commissioning.process_incoming(frame) # if ret is false, the implicit Ack was not sent @@ -126,11 +126,11 @@ class Matter_MessageHandler else ############################################################# # encrypted message - tasmota.log(string.format("MTR: decode header: local_session_id=%i message_counter=%i", frame.local_session_id, frame.message_counter), 3) + tasmota.log(string.format("MTR: decode header: local_session_id=%i message_counter=%i", frame.local_session_id, frame.message_counter), 4) var session = self.device.sessions.get_session_by_local_session_id(frame.local_session_id) if session == nil - tasmota.log("MTR: unknown local_session_id="+str(frame.local_session_id), 2) + tasmota.log("MTR: unknown local_session_id="+str(frame.local_session_id), 3) # tasmota.log("MTR: frame="+matter.inspect(frame), 3) return false end @@ -141,7 +141,7 @@ class Matter_MessageHandler # check if it's a duplicate if !session.counter_rcv_validate(frame.message_counter, true) - tasmota.log("MTR: . Duplicate encrypted message = " + str(frame.message_counter) + " counter=" + str(session.counter_rcv), 3) + tasmota.log("MTR: . Duplicate encrypted message = " + str(frame.message_counter) + " counter=" + str(session.counter_rcv), 4) self.send_encrypted_ack(frame, false #-not reliable-#) return false end @@ -154,11 +154,11 @@ class Matter_MessageHandler frame.raw .. cleartext # add cleartext # continue decoding - tasmota.log(string.format("MTR: idx=%i clear=%s", frame.payload_idx, frame.raw.tohex()), 4) + # tasmota.log(string.format("MTR: idx=%i clear=%s", frame.payload_idx, frame.raw.tohex()), 4) frame.decode_payload() - tasmota.log("MTR: > Decrypted message: protocol_id:"+str(frame.protocol_id)+" opcode="+str(frame.opcode)+" exchange_id="+str(frame.exchange_id & 0xFFFF), 3) + tasmota.log("MTR: > Decrypted message: protocol_id:"+str(frame.protocol_id)+" opcode="+str(frame.opcode)+" exchange_id="+str(frame.exchange_id & 0xFFFF), 4) - tasmota.log(string.format("MTR: >rcv (%6i) [%02X/%02X] rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.protocol_id, frame.opcode, frame.message_counter, frame.exchange_id, str(frame.ack_message_counter), frame.x_flag_r ? "{reliable} " : "", addr, port), 3) + # tasmota.log(string.format("MTR: >rcv (%6i) [%02X/%02X] rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.protocol_id, frame.opcode, frame.message_counter, frame.exchange_id, str(frame.ack_message_counter), frame.x_flag_r ? "{reliable} " : "", addr, port), 3) self.device.received_ack(frame) # remove acknowledge packet from sending list @@ -202,7 +202,7 @@ class Matter_MessageHandler return ret except .. as e, m - tasmota.log("MTR: MessageHandler::msg_received exception: "+str(e)+";"+str(m)) + tasmota.log("MTR: MessageHandler::msg_received exception: "+str(e)+";"+str(m), 2) if tasmota._debug_present import debug debug.traceback() diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be index 4084b1260..92023ec0a 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be @@ -30,6 +30,7 @@ class Matter_Plugin static var NAME = "" # display name of the plug-in static var ARG = "" # additional argument name (or empty if none) static var ARG_TYPE = / x -> str(x) # function to convert argument to the right type + static var ARG_HINT = "_Not used_" # Hint for entering the Argument (inside 'placeholder') # Behavior of the plugin, frequency at which `update_shadow()` is called static var UPDATE_TIME = 5000 # default is every 5 seconds var update_next # next timestamp for update diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Light0.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Light0.be index 3b692d6b9..dde2e8435 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Light0.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Light0.be @@ -30,6 +30,7 @@ class Matter_Plugin_Bridge_Light0 : Matter_Plugin_Bridge_HTTP static var TYPE = "http_light0" # name of the plug-in in json static var NAME = "Light 0 On" # display name of the plug-in static var ARG = "relay" # additional argument name (or empty if none) + static var ARG_HINT = "Enter Power number" static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type # static var UPDATE_TIME = 3000 # update every 3s # static var UPDATE_CMD = "Status 11" # command to send for updates diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_OnOff.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_OnOff.be index 8d8832bae..3baaada45 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_OnOff.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_OnOff.be @@ -29,6 +29,7 @@ class Matter_Plugin_Bridge_Light0 end class Matter_Plugin_Bridge_OnOff : Matter_Plugin_Bridge_Light0 static var TYPE = "http_relay" # name of the plug-in in json static var NAME = "Relay" # display name of the plug-in + static var ARG_HINT = "Enter Relay number" static var TYPES = { 0x010A: 2 } # On/Off Plug-in Unit ############################################################# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor.be index e2e0a191a..efb70b964 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor.be @@ -31,6 +31,7 @@ class Matter_Plugin_Bridge_Sensor : Matter_Plugin_Bridge_HTTP # static var NAME = "" # display name of the plug-in static var ARG = "filter" # additional argument name (or empty if none) static var ARG_HTTP = "url" # domain name + static var ARG_HINT = "Enter Filter pattern" static var UPDATE_TIME = 5000 # update every 5s static var UPDATE_CMD = "Status 8" # command to send for updates static var PROBE_TIMEOUT = 1700 # timeout of 1700 ms for probing, which gives at least 1s for TCP recovery diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor_Occupancy.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor_Occupancy.be index 1e171b5cd..33bc9763f 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor_Occupancy.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Bridge_Sensor_Occupancy.be @@ -30,6 +30,7 @@ class Matter_Plugin_Bridge_Sensor_Occupancy : Matter_Plugin_Bridge_HTTP static var TYPE = "http_occupancy" # name of the plug-in in json static var NAME = "Occupancy" # display name of the plug-in static var ARG = "switch" # additional argument name (or empty if none) + static var ARG_HINT = "Enter Switch number" static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var UPDATE_TIME = 5000 # update every 5s static var UPDATE_CMD = "Status 8" # command to send for updates diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be index 45a2d0ab7..4a511a9cd 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be @@ -31,6 +31,7 @@ class Matter_Plugin_OnOff : Matter_Plugin_Device static var NAME = "Relay" # display name of the plug-in static var ARG = "relay" # additional argument name (or empty if none) static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type + static var ARG_HINT = "Enter Relay number" static var UPDATE_TIME = 250 # update every 250ms static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be index 39ab5e064..58a3b54b6 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be @@ -416,7 +416,7 @@ class Matter_Plugin_Root : Matter_Plugin var ac = session.get_ac() var attestation_tbs = attestation_message + ac - tasmota.log("MTR: attestation_tbs=" + attestation_tbs.tohex(), 3) + # tasmota.log("MTR: attestation_tbs=" + attestation_tbs.tohex(), 4) var attestation_signature = crypto.EC_P256().ecdsa_sign_sha256(matter.DAC_Priv_FFF1_8000(), attestation_tbs) @@ -433,7 +433,7 @@ class Matter_Plugin_Root : Matter_Plugin var CSRNonce = val.findsubval(0) # octstr 32 if size(CSRNonce) != 32 return nil end # check size on nonce var IsForUpdateNOC = val.findsubval(1, false) # bool - tasmota.log(string.format("MTR: CSRRequest CSRNonce=%s IsForUpdateNOC=%s", str(CSRNonce), str(IsForUpdateNOC)), 3) + # tasmota.log(string.format("MTR: CSRRequest CSRNonce=%s IsForUpdateNOC=%s", str(CSRNonce), str(IsForUpdateNOC)), 4) var csr = session.gen_CSR() @@ -443,7 +443,7 @@ class Matter_Plugin_Root : Matter_Plugin var nocsr_elements_message = nocsr_elements.tlv2raw() # sign with attestation challenge var nocsr_tbs = nocsr_elements_message + session.get_ac() - tasmota.log("MTR: nocsr_tbs=" + nocsr_tbs.tohex(), 3) + # tasmota.log("MTR: nocsr_tbs=" + nocsr_tbs.tohex(), 4) var attestation_signature = crypto.EC_P256().ecdsa_sign_sha256(matter.DAC_Priv_FFF1_8000(), nocsr_tbs) # create CSRResponse @@ -459,12 +459,12 @@ class Matter_Plugin_Root : Matter_Plugin var RootCACertificate = val.findsubval(0) # octstr 400 max # TODO - additional tests are expected according to 11.17.7.13. AddTrustedRootCertificate Command session.set_temp_ca(RootCACertificate) - tasmota.log("MTR: received ca_root="+RootCACertificate.tohex(), 3) + # tasmota.log("MTR: received ca_root="+RootCACertificate.tohex(), 4) ctx.status = matter.SUCCESS # OK return nil # trigger a standalone ack elif command == 0x0006 # ---------- AddNOC ---------- - tasmota.log("MTR: AddNoc Args=" + str(val), 3) + tasmota.log("MTR: AddNoc Args=" + str(val), 4) var NOCValue = val.findsubval(0) # octstr max 400 var ICACValue = val.findsubval(1) # octstr max 400 # Apple sends an empty ICAC instead of a missing attribute, fix this @@ -550,7 +550,7 @@ class Matter_Plugin_Root : Matter_Plugin elif command == 0x0009 # ---------- UpdateFabricLabel ---------- var label = val.findsubval(0) # Label string max 32 session.set_fabric_label(label) - tasmota.log(string.format("MTR: . Update fabric '%s' label='%s'", session._fabric.get_fabric_id().copy().reverse().tohex(), str(label)), 2) + tasmota.log(string.format("MTR: . Update fabric '%s' label='%s'", session._fabric.get_fabric_id().copy().reverse().tohex(), str(label)), 3) ctx.status = matter.SUCCESS # OK return nil # trigger a standalone ack @@ -560,7 +560,7 @@ class Matter_Plugin_Root : Matter_Plugin for fab: self.device.sessions.active_fabrics() if fab.get_fabric_index() == index - tasmota.log("MTR: removing fabric " + fab.get_fabric_id().copy().reverse().tohex(), 2) + # tasmota.log("MTR: removing fabric " + fab.get_fabric_id().copy().reverse().tohex(), 2) # defer actual removal to send a response tasmota.set_timer(2000, def () self.device.remove_fabric(fab) end) return true # Ok @@ -583,7 +583,7 @@ class Matter_Plugin_Root : Matter_Plugin var salt = val.findsubval(4) # Salt octstr tasmota.log(string.format("MTR: OpenCommissioningWindow(timeout=%i, passcode=%s, discriminator=%i, iterations=%i, salt=%s)", - timeout, passcode_verifier.tohex(), discriminator, iterations, salt.tohex()), 2) + timeout, passcode_verifier.tohex(), discriminator, iterations, salt.tohex()), 4) # check values if timeout == nil || passcode_verifier == nil || discriminator == nil || iterations == nil || salt == nil @@ -591,7 +591,7 @@ class Matter_Plugin_Root : Matter_Plugin return nil # trigger a standalone ack end if size(passcode_verifier) != 32+65 || size(salt) < 16 || size(salt) > 32 - tasmota.log("MTR: wrong size for PAKE parameters") + tasmota.log("MTR: wrong size for PAKE parameters", 2) ctx.status = matter.CONSTRAINT_ERROR return nil # trigger a standalone ack end @@ -604,7 +604,7 @@ class Matter_Plugin_Root : Matter_Plugin return true # OK elif command == 0x0001 # ---------- OpenBasicCommissioningWindow ---------- var commissioning_timeout = val.findsubval(0) # CommissioningTimeout - tasmota.log("MTR: OpenBasicCommissioningWindow commissioning_timeout="+str(commissioning_timeout), 2) + tasmota.log("MTR: OpenBasicCommissioningWindow commissioning_timeout="+str(commissioning_timeout), 3) self.device.start_root_basic_commissioning(commissioning_timeout) return true elif command == 0x0002 # ---------- RevokeCommissioning ---------- diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be index 5cd808209..c335a75ed 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be @@ -28,6 +28,7 @@ class Matter_Plugin_Device end class Matter_Plugin_Sensor : Matter_Plugin_Device static var ARG = "filter" # additional argument name (or empty if none) + static var ARG_HINT = "Enter Filter pattern" static var UPDATE_TIME = 5000 # update sensor every 5s var tasmota_sensor_filter # Rule-type filter to the value, like "ESP32#Temperature" var tasmota_sensor_matcher # Actual matcher object diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Occupancy.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Occupancy.be index e036bada5..7184beaf1 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Occupancy.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Occupancy.be @@ -30,6 +30,7 @@ class Matter_Plugin_Sensor_Occupancy : Matter_Plugin_Device static var TYPE = "occupancy" # name of the plug-in in json static var NAME = "Occupancy" # display name of the plug-in static var ARG = "switch" # additional argument name (or empty if none) + static var ARG_HINT = "Enter Switch number" static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var UPDATE_TIME = 5000 # update every 250ms static var CLUSTERS = { diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_OnOff.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_OnOff.be index e754c4466..f70caeb61 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_OnOff.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_OnOff.be @@ -26,8 +26,9 @@ class Matter_Plugin_Device end class Matter_Plugin_Sensor_OnOff : Matter_Plugin_Device static var TYPE = "onoff" # name of the plug-in in json - static var NAME = "OnOff" # display name of the plug-in + static var NAME = "OnOff Sensor" # display name of the plug-in static var ARG = "switch" # additional argument name (or empty if none) + static var ARG_HINT = "Enter Switch number" static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var UPDATE_TIME = 5000 # update every 250ms static var CLUSTERS = { diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be index fec02219d..e3b1bb4f5 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be @@ -31,6 +31,7 @@ class Matter_Plugin_Shutter : Matter_Plugin_Device static var NAME = "Shutter" # display name of the plug-in static var ARG = "shutter" # additional argument name (or empty if none) static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type + static var ARG_HINT = "Enter Relay number" static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 # 0x0003: inherited # Identify 1.2 p.16 @@ -68,10 +69,10 @@ class Matter_Plugin_Shutter : Matter_Plugin_Device if r_st13.contains('StatusSHT') r_st13 = r_st13['StatusSHT'] # skip root var d = r_st13.find("SHT"+str(self.tasmota_shutter_index), {}).find('Opt') - tasmota.log("MTR: opt: "+str(d)) + # tasmota.log("MTR: opt: "+str(d)) if d != nil self.shadow_shutter_inverted = int(d[size(d)-1]) # inverted is at the most right character - tasmota.log("MTR: Inverted flag: "+str(self.shadow_shutter_inverted)) + # tasmota.log("MTR: Inverted flag: "+str(self.shadow_shutter_inverted)) end end end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be index 5066c3199..57aec2765 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be @@ -130,8 +130,7 @@ class Matter_Session : Matter_Expirable def counter_snd_next() import string var next = self._counter_snd_impl.next() - tasmota.log(string.format("MTR: . Counter_snd=%i", next), 3) - # print(">>> NEXT counter_snd=", self.counter_snd, "_impl=", self._counter_snd_impl.val(), 4) + # tasmota.log(string.format("MTR: . Counter_snd=%i", next), 4) if matter.Counter.is_greater(next, self.counter_snd) self.counter_snd = next + self._COUNTER_SND_INCR if self.does_persist() diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be index 27dfdd520..25122e01e 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session_Store.be @@ -281,9 +281,9 @@ class Matter_Session_Store var sessions = self.sessions while i < size(sessions) var session = sessions[i] - tasmota.log(string.format("MTR: session.resumption_id=%s vs %s", str(session.resumption_id), str(resumption_id)), 3) + tasmota.log(string.format("MTR: session.resumption_id=%s vs %s", str(session.resumption_id), str(resumption_id)), 4) if session.resumption_id == resumption_id && session.shared_secret != nil - tasmota.log(string.format("MTR: session.shared_secret=%s", str(session.shared_secret)), 3) + # tasmota.log(string.format("MTR: session.shared_secret=%s", str(session.shared_secret)), 4) session.update() return session end @@ -328,7 +328,7 @@ class Matter_Session_Store var f = open(self._FABRICS, "w") f.write(fabs) f.close() - tasmota.log(string.format("MTR: =Saved %i fabric(s) and %i session(s)", fabs_size, sessions_saved), 2) + tasmota.log(string.format("MTR: =Saved %i fabric(s) and %i session(s)", fabs_size, sessions_saved), 3) self.device.event_fabrics_saved() # signal event except .. as e, m tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be b/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be index 3578b7155..079b83e2a 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be @@ -125,7 +125,7 @@ class Matter_UDPServer packet_read += 1 var from_addr = self.udp_socket.remote_ip var from_port = self.udp_socket.remote_port - tasmota.log(string.format("MTR: UDP received from [%s]:%i", from_addr, from_port), 3) + tasmota.log(string.format("MTR: UDP received from [%s]:%i", from_addr, from_port), 4) if self.dispatch_cb self.dispatch_cb(packet, from_addr, from_port) end @@ -149,7 +149,7 @@ class Matter_UDPServer if ok tasmota.log(string.format("MTR: sending packet to '[%s]:%i'", packet.addr, packet.port), 4) else - tasmota.log(string.format("MTR: error sending packet to '[%s]:%i'", packet.addr, packet.port), 2) + tasmota.log(string.format("MTR: error sending packet to '[%s]:%i'", packet.addr, packet.port), 3) end return ok end @@ -169,7 +169,7 @@ class Matter_UDPServer var packet = self.packets_sent[idx] if tasmota.time_reached(packet.next_try) if packet.retries <= self.RETRIES - tasmota.log("MTR: . Resending packet id=" + str(packet.msg_id), 3) + tasmota.log("MTR: . Resending packet id=" + str(packet.msg_id), 4) self.send(packet) packet.next_try = tasmota.millis() + self._backoff_time(packet.retries) packet.retries += 1 @@ -177,7 +177,7 @@ class Matter_UDPServer else import string self.packets_sent.remove(idx) - tasmota.log(string.format("MTR: . (%6i) Unacked packet '[%s]:%i' msg_id=%i", packet.session_id, packet.addr, packet.port, packet.msg_id), 2) + tasmota.log(string.format("MTR: . (%6i) Unacked packet '[%s]:%i' msg_id=%i", packet.session_id, packet.addr, packet.port, packet.msg_id), 3) end else idx += 1 @@ -191,13 +191,13 @@ class Matter_UDPServer var id = msg.ack_message_counter var exch = msg.exchange_id if id == nil return end - tasmota.log("MTR: receveived ACK id="+str(id), 3) + # tasmota.log("MTR: receveived ACK id="+str(id), 4) var idx = 0 while idx < size(self.packets_sent) var packet = self.packets_sent[idx] if packet.msg_id == id && packet.exchange_id == exch self.packets_sent.remove(idx) - tasmota.log("MTR: . Removed packet from sending list id=" + str(id), 3) + tasmota.log("MTR: . Removed packet from sending list id=" + str(id), 4) else idx += 1 end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be index 2f1ff5b0a..0053b7dd8 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be @@ -92,7 +92,7 @@ class Matter_UI import string var matter_enabled = self.matter_enabled - webserver.content_send("
 Matter  

" + webserver.content_send("
 Matter  " "

Check the Matter documentation.

" "
") @@ -107,7 +107,7 @@ class Matter_UI end webserver.content_send("

" - "

") + "

") end #- ---------------------------------------------------------------------- -# @@ -243,9 +243,55 @@ class Matter_UI end - #- ---------------------------------------------------------------------- -# + #----------------------------------------------------------------------- -# + #- Show Javasrcript hints for classes arguments + #----------------------------------------------------------------------- -# + # + # Exmaple: + # var hm = {"relay":0,"shutter+tilt":0,"light2":1,"illuminance":2,"onoff":1,"pressure":2,"light1":1,"humidity":2,"shutter":0,"occupancy":3,"temperature":2,"light3":1,"light0":1}; + # var hl = ["Enter Relay number","Not used","Enter Filter pattern","Enter Switch number"]; + def show_plugins_hints_js(*class_list) + import webserver + import string + import json + + var class_types = [] + for cl: class_list + class_types += string.split(cl, '|') + end + + var hm = {} + var hl = [] + + for typ: class_types + if typ == '' continue end + var cl = self.device.plugins_classes.find(typ) + if cl != nil + var hint = cl.ARG_HINT + if hint != nil + var idx = hl.find(hint) + if idx == nil # not already in list, add it + idx = size(hl) # save index for assignment + hl.push(hint) + end + hm[typ] = idx + end + end + end + + webserver.content_send(string.format( + "", json.dump(hm), json.dump(hl))) + + webserver.content_send(matter._ADD_ENDPOINT_JS) + + end + + #----------------------------------------------------------------------- -# #- Show plugins configuration - #- ---------------------------------------------------------------------- -# + #----------------------------------------------------------------------- -# def show_plugins_configuration() import webserver import string @@ -253,10 +299,7 @@ class Matter_UI webserver.content_send("
 Current Configuration 

") - # webserver.content_send("

") - # webserver.content_send("

") - - webserver.content_send("
" "

Local sensors and devices

" "" "") @@ -283,11 +326,11 @@ class Matter_UI end found = true - webserver.content_send(string.format("", ep)) + webserver.content_send(string.format("", ep)) - webserver.content_send(string.format("", self.plugin_name(conf.find('type', '')))) - webserver.content_send(string.format("", - ep, webserver.html_escape(arg))) + webserver.content_send(string.format("", self.plugin_name(conf.find('type', '')))) + webserver.content_send(string.format("", + ep, webserver.html_escape(arg), cl ? webserver.html_escape(cl.ARG_HINT) : '')) webserver.content_send(string.format("", i)) - # webserver.content_send(string.format("")) - # webserver.content_send(string.format("", i)) - - - # remote devices - webserver.content_send("

") # iterate on each remote device - var remotes = [] for conf: self.device.plugins_config var url = conf.find("url") @@ -324,7 +355,7 @@ class Matter_UI end end self.device.sort_distinct(remotes) - tasmota.log("MTR: remotes: "+str(remotes), 3) + # tasmota.log("MTR: remotes: "+str(remotes), 4) for remote: remotes @@ -352,10 +383,10 @@ class Matter_UI end found = true - webserver.content_send(string.format("", ep)) + webserver.content_send(string.format("", ep)) - webserver.content_send(string.format("", self.plugin_name(conf.find('type', '')))) - webserver.content_send(string.format("", + webserver.content_send(string.format("", self.plugin_name(conf.find('type', '')))) + webserver.content_send(string.format("", ep, webserver.html_escape(arg))) webserver.content_send(string.format("" - "") + webserver.content_send("" + "") i += 1 end # empty line for new endpoint - webserver.content_send(string.format("" - "") + webserver.content_send("" + "") # end of table webserver.content_send("
#TypeParameter
%i
%i%s%s
%i
%i%s%s
") - webserver.content_send(string.format("", - i, webserver.html_escape(arg))) - webserver.content_send("
") + webserver.content_send(string.format("", + i, i, webserver.html_escape(arg), cl ? webserver.html_escape(cl.ARG_HINT) : '')) + webserver.content_send("
") - webserver.content_send(string.format("", - i, '')) - webserver.content_send("
") + webserver.content_send(string.format("", + i, i, '')) + webserver.content_send("
") @@ -633,7 +668,7 @@ class Matter_UI webserver.content_send("
") - webserver.content_send("

") + webserver.content_send("") else webserver.content_send(string.format("

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: +********************************************************************/ +be_local_closure(Matter_Plugin__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040008, // 0000 GETGBL R1 G8 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_local_device +********************************************************************/ +be_local_closure(Matter_Plugin_is_local_device, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(is_local_device), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x50040200, // 0000 LDBOOL R1 1 0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: write_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_write_attribute, /* name */ + be_nested_proto( + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(write_attribute), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_invoke_request, /* name */ + be_nested_proto( + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: consolidate_clusters +********************************************************************/ +be_local_closure(Matter_Plugin_consolidate_clusters, /* name */ + be_nested_proto( + 12, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(real_super), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040003, // 0000 GETGBL R1 G3 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(CLUSTERS), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(contains), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(consolidate_clusters), + &be_const_str_solidified, + ( &(const binstruction[53]) { /* code */ + 0x84040000, // 0000 CLOSURE R1 P0 + 0x60080013, // 0001 GETGBL R2 G19 + 0x7C080000, // 0002 CALL R2 0 + 0x5C0C0000, // 0003 MOVE R3 R0 + 0x4C100000, // 0004 LDNIL R4 + 0x20100604, // 0005 NE R4 R3 R4 + 0x7812002C, // 0006 JMPF R4 #0034 + 0x88100700, // 0007 GETMBR R4 R3 K0 + 0x60140010, // 0008 GETGBL R5 G16 + 0x8C180901, // 0009 GETMET R6 R4 K1 + 0x7C180200, // 000A CALL R6 1 + 0x7C140200, // 000B CALL R5 1 + 0xA802001E, // 000C EXBLK 0 #002C + 0x5C180A00, // 000D MOVE R6 R5 + 0x7C180000, // 000E CALL R6 0 + 0x8C1C0502, // 000F GETMET R7 R2 K2 + 0x5C240C00, // 0010 MOVE R9 R6 + 0x7C1C0400, // 0011 CALL R7 2 + 0x741E0002, // 0012 JMPT R7 #0016 + 0x601C0012, // 0013 GETGBL R7 G18 + 0x7C1C0000, // 0014 CALL R7 0 + 0x98080C07, // 0015 SETIDX R2 R6 R7 + 0x601C0010, // 0016 GETGBL R7 G16 + 0x94200806, // 0017 GETIDX R8 R4 R6 + 0x7C1C0200, // 0018 CALL R7 1 + 0xA802000D, // 0019 EXBLK 0 #0028 + 0x5C200E00, // 001A MOVE R8 R7 + 0x7C200000, // 001B CALL R8 0 + 0x94240406, // 001C GETIDX R9 R2 R6 + 0x8C241303, // 001D GETMET R9 R9 K3 + 0x5C2C1000, // 001E MOVE R11 R8 + 0x7C240400, // 001F CALL R9 2 + 0x4C280000, // 0020 LDNIL R10 + 0x1C24120A, // 0021 EQ R9 R9 R10 + 0x78260003, // 0022 JMPF R9 #0027 + 0x94240406, // 0023 GETIDX R9 R2 R6 + 0x8C241304, // 0024 GETMET R9 R9 K4 + 0x5C2C1000, // 0025 MOVE R11 R8 + 0x7C240400, // 0026 CALL R9 2 + 0x7001FFF1, // 0027 JMP #001A + 0x581C0005, // 0028 LDCONST R7 K5 + 0xAC1C0200, // 0029 CATCH R7 1 0 + 0xB0080000, // 002A RAISE 2 R0 R0 + 0x7001FFE0, // 002B JMP #000D + 0x58140005, // 002C LDCONST R5 K5 + 0xAC140200, // 002D CATCH R5 1 0 + 0xB0080000, // 002E RAISE 2 R0 R0 + 0x5C140200, // 002F MOVE R5 R1 + 0x5C180600, // 0030 MOVE R6 R3 + 0x7C140200, // 0031 CALL R5 1 + 0x5C0C0A00, // 0032 MOVE R3 R5 + 0x7001FFCF, // 0033 JMP #0004 + 0x80040400, // 0034 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: attribute_updated +********************************************************************/ +be_local_closure(Matter_Plugin_attribute_updated, /* name */ + be_nested_proto( + 10, /* nstack */ + 4, /* 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(device), + /* K1 */ be_nested_str_weak(attribute_updated), + /* K2 */ be_nested_str_weak(endpoint), + }), + be_str_weak(attribute_updated), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0x88180102, // 0002 GETMBR R6 R0 K2 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_sensors +********************************************************************/ +be_local_closure(Matter_Plugin_parse_sensors, /* name */ + be_nested_proto( + 2, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(parse_sensors), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: has +********************************************************************/ +be_local_closure(Matter_Plugin_has, /* name */ + be_nested_proto( + 6, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(clusters), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(endpoints), + /* K3 */ be_nested_str_weak(find), + }), + be_str_weak(has), + &be_const_str_solidified, + ( &(const binstruction[15]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0x780E0006, // 0004 JMPF R3 #000C + 0x880C0102, // 0005 GETMBR R3 R0 K2 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x5C140400, // 0007 MOVE R5 R2 + 0x7C0C0400, // 0008 CALL R3 2 + 0x4C100000, // 0009 LDNIL R4 + 0x200C0604, // 000A NE R3 R3 R4 + 0x740E0000, // 000B JMPT R3 #000D + 0x500C0001, // 000C LDBOOL R3 0 1 + 0x500C0200, // 000D LDBOOL R3 1 0 + 0x80040600, // 000E RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: update_shadow_lazy +********************************************************************/ +be_local_closure(Matter_Plugin_update_shadow_lazy, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tick), + /* K1 */ be_nested_str_weak(device), + /* K2 */ be_nested_str_weak(update_shadow), + }), + be_str_weak(update_shadow_lazy), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x88080500, // 0002 GETMBR R2 R2 K0 + 0x20040202, // 0003 NE R1 R1 R2 + 0x78060004, // 0004 JMPF R1 #000A + 0x8C040102, // 0005 GETMET R1 R0 K2 + 0x7C040200, // 0006 CALL R1 1 + 0x88040101, // 0007 GETMBR R1 R0 K1 + 0x88040300, // 0008 GETMBR R1 R1 K0 + 0x90020001, // 0009 SETMBR R0 K0 R1 + 0x80000000, // 000A RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_endpoint ********************************************************************/ @@ -33,6 +486,231 @@ be_local_closure(Matter_Plugin_get_endpoint, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_init, /* name */ + be_nested_proto( + 7, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(clusters), + /* K3 */ be_nested_str_weak(consolidate_clusters), + /* K4 */ be_nested_str_weak(parse_configuration), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x90020202, // 0001 SETMBR R0 K1 R2 + 0x8C100103, // 0002 GETMET R4 R0 K3 + 0x7C100200, // 0003 CALL R4 1 + 0x90020404, // 0004 SETMBR R0 K2 R4 + 0x8C100104, // 0005 GETMET R4 R0 K4 + 0x5C180600, // 0006 MOVE R6 R3 + 0x7C100400, // 0007 CALL R4 2 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: read_event +********************************************************************/ +be_local_closure(Matter_Plugin_read_event, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(read_event), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: subscribe_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(subscribe_attribute), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_configuration +********************************************************************/ +be_local_closure(Matter_Plugin_parse_configuration, /* name */ + be_nested_proto( + 2, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(parse_configuration), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: subscribe_event +********************************************************************/ +be_local_closure(Matter_Plugin_subscribe_event, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(subscribe_event), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_attribute_list +********************************************************************/ +be_local_closure(Matter_Plugin_get_attribute_list, /* name */ + be_nested_proto( + 7, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(clusters), + /* K1 */ be_nested_str_weak(find), + }), + be_str_weak(get_attribute_list), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x5C140400, // 0002 MOVE R5 R2 + 0x60180012, // 0003 GETGBL R6 G18 + 0x7C180000, // 0004 CALL R6 0 + 0x7C0C0600, // 0005 CALL R3 3 + 0x80040600, // 0006 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: timed_request +********************************************************************/ +be_local_closure(Matter_Plugin_timed_request, /* name */ + be_nested_proto( + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(timed_request), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: update_shadow +********************************************************************/ +be_local_closure(Matter_Plugin_update_shadow, /* 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_nested_str_weak(device), + }), + be_str_weak(update_shadow), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040101, // 0000 GETMBR R1 R0 K1 + 0x88040300, // 0001 GETMBR R1 R1 K0 + 0x90020001, // 0002 SETMBR R0 K0 R1 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -180,6 +858,43 @@ be_local_closure(Matter_Plugin_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: ui_string_to_conf +********************************************************************/ +be_local_closure(Matter_Plugin_ui_string_to_conf, /* name */ + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Plugin), + /* K1 */ be_nested_str_weak(ARG), + /* K2 */ be_nested_str_weak(ARG_TYPE), + }), + be_str_weak(ui_string_to_conf), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x580C0000, // 0000 LDCONST R3 K0 + 0x88100101, // 0001 GETMBR R4 R0 K1 + 0x88140102, // 0002 GETMBR R5 R0 K2 + 0x780A0004, // 0003 JMPF R2 #0009 + 0x78120003, // 0004 JMPF R4 #0009 + 0x5C180A00, // 0005 MOVE R6 R5 + 0x5C1C0400, // 0006 MOVE R7 R2 + 0x7C180200, // 0007 CALL R6 1 + 0x98040806, // 0008 SETIDX R1 R4 R6 + 0x80040200, // 0009 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: ui_conf_to_string ********************************************************************/ @@ -220,758 +935,41 @@ be_local_closure(Matter_Plugin_ui_conf_to_string, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: is_local_device -********************************************************************/ -be_local_closure(Matter_Plugin_is_local_device, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(is_local_device), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x50040200, // 0000 LDBOOL R1 1 0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_configuration -********************************************************************/ -be_local_closure(Matter_Plugin_parse_configuration, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(parse_configuration), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: has -********************************************************************/ -be_local_closure(Matter_Plugin_has, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(clusters), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(endpoints), - /* K3 */ be_nested_str_weak(find), - }), - be_str_weak(has), - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x780E0006, // 0004 JMPF R3 #000C - 0x880C0102, // 0005 GETMBR R3 R0 K2 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x5C140400, // 0007 MOVE R5 R2 - 0x7C0C0400, // 0008 CALL R3 2 - 0x4C100000, // 0009 LDNIL R4 - 0x200C0604, // 000A NE R3 R3 R4 - 0x740E0000, // 000B JMPT R3 #000D - 0x500C0001, // 000C LDBOOL R3 0 1 - 0x500C0200, // 000D LDBOOL R3 1 0 - 0x80040600, // 000E RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: consolidate_clusters -********************************************************************/ -be_local_closure(Matter_Plugin_consolidate_clusters, /* name */ - be_nested_proto( - 12, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(real_super), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040003, // 0000 GETGBL R1 G3 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(CLUSTERS), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(contains), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(consolidate_clusters), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x84040000, // 0000 CLOSURE R1 P0 - 0x60080013, // 0001 GETGBL R2 G19 - 0x7C080000, // 0002 CALL R2 0 - 0x5C0C0000, // 0003 MOVE R3 R0 - 0x4C100000, // 0004 LDNIL R4 - 0x20100604, // 0005 NE R4 R3 R4 - 0x7812002C, // 0006 JMPF R4 #0034 - 0x88100700, // 0007 GETMBR R4 R3 K0 - 0x60140010, // 0008 GETGBL R5 G16 - 0x8C180901, // 0009 GETMET R6 R4 K1 - 0x7C180200, // 000A CALL R6 1 - 0x7C140200, // 000B CALL R5 1 - 0xA802001E, // 000C EXBLK 0 #002C - 0x5C180A00, // 000D MOVE R6 R5 - 0x7C180000, // 000E CALL R6 0 - 0x8C1C0502, // 000F GETMET R7 R2 K2 - 0x5C240C00, // 0010 MOVE R9 R6 - 0x7C1C0400, // 0011 CALL R7 2 - 0x741E0002, // 0012 JMPT R7 #0016 - 0x601C0012, // 0013 GETGBL R7 G18 - 0x7C1C0000, // 0014 CALL R7 0 - 0x98080C07, // 0015 SETIDX R2 R6 R7 - 0x601C0010, // 0016 GETGBL R7 G16 - 0x94200806, // 0017 GETIDX R8 R4 R6 - 0x7C1C0200, // 0018 CALL R7 1 - 0xA802000D, // 0019 EXBLK 0 #0028 - 0x5C200E00, // 001A MOVE R8 R7 - 0x7C200000, // 001B CALL R8 0 - 0x94240406, // 001C GETIDX R9 R2 R6 - 0x8C241303, // 001D GETMET R9 R9 K3 - 0x5C2C1000, // 001E MOVE R11 R8 - 0x7C240400, // 001F CALL R9 2 - 0x4C280000, // 0020 LDNIL R10 - 0x1C24120A, // 0021 EQ R9 R9 R10 - 0x78260003, // 0022 JMPF R9 #0027 - 0x94240406, // 0023 GETIDX R9 R2 R6 - 0x8C241304, // 0024 GETMET R9 R9 K4 - 0x5C2C1000, // 0025 MOVE R11 R8 - 0x7C240400, // 0026 CALL R9 2 - 0x7001FFF1, // 0027 JMP #001A - 0x581C0005, // 0028 LDCONST R7 K5 - 0xAC1C0200, // 0029 CATCH R7 1 0 - 0xB0080000, // 002A RAISE 2 R0 R0 - 0x7001FFE0, // 002B JMP #000D - 0x58140005, // 002C LDCONST R5 K5 - 0xAC140200, // 002D CATCH R5 1 0 - 0xB0080000, // 002E RAISE 2 R0 R0 - 0x5C140200, // 002F MOVE R5 R1 - 0x5C180600, // 0030 MOVE R6 R3 - 0x7C140200, // 0031 CALL R5 1 - 0x5C0C0A00, // 0032 MOVE R3 R5 - 0x7001FFCF, // 0033 JMP #0004 - 0x80040400, // 0034 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_attribute_list -********************************************************************/ -be_local_closure(Matter_Plugin_get_attribute_list, /* name */ - be_nested_proto( - 7, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(clusters), - /* K1 */ be_nested_str_weak(find), - }), - be_str_weak(get_attribute_list), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140400, // 0002 MOVE R5 R2 - 0x60180012, // 0003 GETGBL R6 G18 - 0x7C180000, // 0004 CALL R6 0 - 0x7C0C0600, // 0005 CALL R3 3 - 0x80040600, // 0006 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040008, // 0000 GETGBL R1 G8 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update_shadow_lazy -********************************************************************/ -be_local_closure(Matter_Plugin_update_shadow_lazy, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tick), - /* K1 */ be_nested_str_weak(device), - /* K2 */ be_nested_str_weak(update_shadow), - }), - be_str_weak(update_shadow_lazy), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x88080500, // 0002 GETMBR R2 R2 K0 - 0x20040202, // 0003 NE R1 R1 R2 - 0x78060004, // 0004 JMPF R1 #000A - 0x8C040102, // 0005 GETMET R1 R0 K2 - 0x7C040200, // 0006 CALL R1 1 - 0x88040101, // 0007 GETMBR R1 R0 K1 - 0x88040300, // 0008 GETMBR R1 R1 K0 - 0x90020001, // 0009 SETMBR R0 K0 R1 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_sensors -********************************************************************/ -be_local_closure(Matter_Plugin_parse_sensors, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(parse_sensors), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: attribute_updated -********************************************************************/ -be_local_closure(Matter_Plugin_attribute_updated, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* 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(device), - /* K1 */ be_nested_str_weak(attribute_updated), - /* K2 */ be_nested_str_weak(endpoint), - }), - be_str_weak(attribute_updated), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x8C100901, // 0001 GETMET R4 R4 K1 - 0x88180102, // 0002 GETMBR R6 R0 K2 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subscribe_event -********************************************************************/ -be_local_closure(Matter_Plugin_subscribe_event, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(subscribe_event), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_write_attribute, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(write_attribute), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: 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: subscribe_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(subscribe_attribute), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: ui_string_to_conf -********************************************************************/ -be_local_closure(Matter_Plugin_ui_string_to_conf, /* name */ - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Plugin), - /* K1 */ be_nested_str_weak(ARG), - /* K2 */ be_nested_str_weak(ARG_TYPE), - }), - be_str_weak(ui_string_to_conf), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x580C0000, // 0000 LDCONST R3 K0 - 0x88100101, // 0001 GETMBR R4 R0 K1 - 0x88140102, // 0002 GETMBR R5 R0 K2 - 0x780A0004, // 0003 JMPF R2 #0009 - 0x78120003, // 0004 JMPF R4 #0009 - 0x5C180A00, // 0005 MOVE R6 R5 - 0x5C1C0400, // 0006 MOVE R7 R2 - 0x7C180200, // 0007 CALL R6 1 - 0x98040806, // 0008 SETIDX R1 R4 R6 - 0x80040200, // 0009 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read_event -********************************************************************/ -be_local_closure(Matter_Plugin_read_event, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(read_event), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update_shadow -********************************************************************/ -be_local_closure(Matter_Plugin_update_shadow, /* 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_nested_str_weak(device), - }), - be_str_weak(update_shadow), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040101, // 0000 GETMBR R1 R0 K1 - 0x88040300, // 0001 GETMBR R1 R1 K0 - 0x90020001, // 0002 SETMBR R0 K0 R1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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: timed_request -********************************************************************/ -be_local_closure(Matter_Plugin_timed_request, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(timed_request), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Plugin_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(clusters), - /* K3 */ be_nested_str_weak(consolidate_clusters), - /* K4 */ be_nested_str_weak(parse_configuration), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x90020202, // 0001 SETMBR R0 K1 R2 - 0x8C100103, // 0002 GETMET R4 R0 K3 - 0x7C100200, // 0003 CALL R4 1 - 0x90020404, // 0004 SETMBR R0 K2 R4 - 0x8C100104, // 0005 GETMET R4 R0 K4 - 0x5C180600, // 0006 MOVE R6 R3 - 0x7C100400, // 0007 CALL R4 2 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_invoke_request, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified class: Matter_Plugin ********************************************************************/ be_local_class(Matter_Plugin, 5, NULL, - be_nested_map(33, + be_nested_map(34, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(clusters, -1), be_const_var(3) }, - { be_const_key_weak(get_endpoint, 25), be_const_closure(Matter_Plugin_get_endpoint_closure) }, - { be_const_key_weak(update_next, -1), be_const_var(0) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_read_attribute_closure) }, - { be_const_key_weak(ui_conf_to_string, 23), be_const_static_closure(Matter_Plugin_ui_conf_to_string_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_init_closure) }, + { be_const_key_weak(every_250ms, 18), be_const_closure(Matter_Plugin_every_250ms_closure) }, + { be_const_key_weak(get_cluster_list, 3), be_const_closure(Matter_Plugin_get_cluster_list_closure) }, { be_const_key_weak(NAME, -1), be_nested_str_weak() }, - { be_const_key_weak(endpoint, -1), be_const_var(2) }, - { be_const_key_weak(tick, -1), be_const_var(4) }, - { be_const_key_weak(UPDATE_TIME, 5), be_const_int(5000) }, - { be_const_key_weak(parse_configuration, 21), be_const_closure(Matter_Plugin_parse_configuration_closure) }, - { be_const_key_weak(timed_request, -1), be_const_closure(Matter_Plugin_timed_request_closure) }, - { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Plugin_attribute_updated_closure) }, - { be_const_key_weak(update_shadow, 26), be_const_closure(Matter_Plugin_update_shadow_closure) }, - { be_const_key_weak(consolidate_clusters, -1), be_const_closure(Matter_Plugin_consolidate_clusters_closure) }, - { be_const_key_weak(get_attribute_list, 24), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, - { be_const_key_weak(is_local_device, 31), be_const_closure(Matter_Plugin_is_local_device_closure) }, - { be_const_key_weak(update_shadow_lazy, -1), be_const_closure(Matter_Plugin_update_shadow_lazy_closure) }, - { be_const_key_weak(ARG, 30), be_nested_str_weak() }, - { be_const_key_weak(has, 12), be_const_closure(Matter_Plugin_has_closure) }, - { be_const_key_weak(subscribe_event, 11), be_const_closure(Matter_Plugin_subscribe_event_closure) }, - { be_const_key_weak(write_attribute, -1), be_const_closure(Matter_Plugin_write_attribute_closure) }, - { be_const_key_weak(get_cluster_list, -1), be_const_closure(Matter_Plugin_get_cluster_list_closure) }, - { be_const_key_weak(TYPE, -1), be_nested_str_weak() }, - { be_const_key_weak(read_event, -1), be_const_closure(Matter_Plugin_read_event_closure) }, - { be_const_key_weak(ui_string_to_conf, -1), be_const_static_closure(Matter_Plugin_ui_string_to_conf_closure) }, - { be_const_key_weak(subscribe_attribute, -1), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, { be_const_key_weak(device, -1), be_const_var(1) }, - { be_const_key_weak(CLUSTERS, 13), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(tick, -1), be_const_var(4) }, + { be_const_key_weak(write_attribute, 27), be_const_closure(Matter_Plugin_write_attribute_closure) }, + { be_const_key_weak(has, -1), be_const_closure(Matter_Plugin_has_closure) }, + { be_const_key_weak(invoke_request, 6), be_const_closure(Matter_Plugin_invoke_request_closure) }, + { be_const_key_weak(consolidate_clusters, 29), be_const_closure(Matter_Plugin_consolidate_clusters_closure) }, + { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Plugin_attribute_updated_closure) }, + { be_const_key_weak(update_shadow_lazy, -1), be_const_closure(Matter_Plugin_update_shadow_lazy_closure) }, + { be_const_key_weak(ui_string_to_conf, -1), be_const_static_closure(Matter_Plugin_ui_string_to_conf_closure) }, + { be_const_key_weak(is_local_device, 10), be_const_closure(Matter_Plugin_is_local_device_closure) }, + { be_const_key_weak(get_endpoint, -1), be_const_closure(Matter_Plugin_get_endpoint_closure) }, + { be_const_key_weak(clusters, -1), be_const_var(3) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_init_closure) }, + { be_const_key_weak(read_event, 11), be_const_closure(Matter_Plugin_read_event_closure) }, + { be_const_key_weak(read_attribute, 24), be_const_closure(Matter_Plugin_read_attribute_closure) }, + { be_const_key_weak(update_next, -1), be_const_var(0) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(_Not_X20used_) }, + { be_const_key_weak(subscribe_event, -1), be_const_closure(Matter_Plugin_subscribe_event_closure) }, + { be_const_key_weak(get_attribute_list, -1), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, + { be_const_key_weak(timed_request, -1), be_const_closure(Matter_Plugin_timed_request_closure) }, + { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_update_shadow_closure) }, + { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak() }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(2, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(29, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -990,10 +988,13 @@ be_local_class(Matter_Plugin, be_const_int(17), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Plugin_every_250ms_closure) }, + { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_parse_configuration_closure) }, + { be_const_key_weak(ARG_TYPE, 17), be_const_static_closure(Matter_Plugin__X3Clambda_X3E_closure) }, + { be_const_key_weak(subscribe_attribute, 33), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, + { be_const_key_weak(ui_conf_to_string, -1), be_const_static_closure(Matter_Plugin_ui_conf_to_string_closure) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak() }, + { be_const_key_weak(endpoint, 4), be_const_var(2) }, { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_parse_sensors_closure) }, - { be_const_key_weak(ARG_TYPE, 0), be_const_static_closure(Matter_Plugin__X3Clambda_X3E_closure) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_invoke_request_closure) }, })), be_str_weak(Matter_Plugin) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Light0.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Light0.h index 3db488780..26f213ca9 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Light0.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Light0.h @@ -6,6 +6,320 @@ extern const bclass be_class_Matter_Plugin_Bridge_Light0; +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Light0_init, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(shadow_onoff), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(ARG), + /* K5 */ be_const_int(1), + /* K6 */ be_const_int(0), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x5C200600, // 0006 MOVE R8 R3 + 0x7C100800, // 0007 CALL R4 4 + 0x50100000, // 0008 LDBOOL R4 0 0 + 0x90020204, // 0009 SETMBR R0 K1 R4 + 0x60100009, // 000A GETGBL R4 G9 + 0x8C140703, // 000B GETMET R5 R3 K3 + 0x881C0104, // 000C GETMBR R7 R0 K4 + 0x58200005, // 000D LDCONST R8 K5 + 0x7C140600, // 000E CALL R5 3 + 0x7C100200, // 000F CALL R4 1 + 0x90020404, // 0010 SETMBR R0 K2 R4 + 0x88100102, // 0011 GETMBR R4 R0 K2 + 0x18100906, // 0012 LE R4 R4 K6 + 0x78120000, // 0013 JMPF R4 #0015 + 0x90020505, // 0014 SETMBR R0 K2 K5 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_update +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Light0_parse_update, /* 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[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota_relay_index), + /* K1 */ be_const_int(1), + /* K2 */ be_nested_str_weak(contains), + /* K3 */ be_nested_str_weak(POWER), + /* K4 */ be_nested_str_weak(find), + /* K5 */ be_nested_str_weak(ON), + /* K6 */ be_nested_str_weak(shadow_onoff), + /* K7 */ be_nested_str_weak(attribute_updated), + /* K8 */ be_const_int(0), + }), + be_str_weak(parse_update), + &be_const_str_solidified, + ( &(const binstruction[41]) { /* code */ + 0x540E000A, // 0000 LDINT R3 11 + 0x1C0C0403, // 0001 EQ R3 R2 R3 + 0x780E0024, // 0002 JMPF R3 #0028 + 0x500C0000, // 0003 LDBOOL R3 0 0 + 0x88100100, // 0004 GETMBR R4 R0 K0 + 0x1C100901, // 0005 EQ R4 R4 K1 + 0x78120009, // 0006 JMPF R4 #0011 + 0x8C100302, // 0007 GETMET R4 R1 K2 + 0x58180003, // 0008 LDCONST R6 K3 + 0x7C100400, // 0009 CALL R4 2 + 0x78120005, // 000A JMPF R4 #0011 + 0x8C100304, // 000B GETMET R4 R1 K4 + 0x58180003, // 000C LDCONST R6 K3 + 0x7C100400, // 000D CALL R4 2 + 0x1C100905, // 000E EQ R4 R4 K5 + 0x5C0C0800, // 000F MOVE R3 R4 + 0x70020007, // 0010 JMP #0019 + 0x8C100304, // 0011 GETMET R4 R1 K4 + 0x60180008, // 0012 GETGBL R6 G8 + 0x881C0100, // 0013 GETMBR R7 R0 K0 + 0x7C180200, // 0014 CALL R6 1 + 0x001A0606, // 0015 ADD R6 K3 R6 + 0x7C100400, // 0016 CALL R4 2 + 0x1C100905, // 0017 EQ R4 R4 K5 + 0x5C0C0800, // 0018 MOVE R3 R4 + 0x88100106, // 0019 GETMBR R4 R0 K6 + 0x4C140000, // 001A LDNIL R5 + 0x20100805, // 001B NE R4 R4 R5 + 0x78120009, // 001C JMPF R4 #0027 + 0x88100106, // 001D GETMBR R4 R0 K6 + 0x60140017, // 001E GETGBL R5 G23 + 0x5C180600, // 001F MOVE R6 R3 + 0x7C140200, // 0020 CALL R5 1 + 0x20100805, // 0021 NE R4 R4 R5 + 0x78120003, // 0022 JMPF R4 #0027 + 0x8C100107, // 0023 GETMET R4 R0 K7 + 0x541A0005, // 0024 LDINT R6 6 + 0x581C0008, // 0025 LDCONST R7 K8 + 0x7C100600, // 0026 CALL R4 3 + 0x90020C03, // 0027 SETMBR R0 K6 R3 + 0x80000000, // 0028 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: web_values +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Light0_web_values, /* 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[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(content_send), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(_X7C_X20Light_X20_X25s), + /* K5 */ be_nested_str_weak(web_value_onoff), + /* K6 */ be_nested_str_weak(shadow_onoff), + }), + be_str_weak(web_values), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x8C200105, // 0005 GETMET R8 R0 K5 + 0x88280106, // 0006 GETMBR R10 R0 K6 + 0x7C200400, // 0007 CALL R8 2 + 0x7C140600, // 0008 CALL R5 3 + 0x7C0C0400, // 0009 CALL R3 2 + 0x80000000, // 000A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_onoff +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Light0_set_onoff, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(call_remote_sync), + /* K1 */ be_nested_str_weak(Power), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(1), + /* K4 */ be_nested_str_weak(0), + /* K5 */ be_nested_str_weak(parse_update), + }), + be_str_weak(set_onoff), + &be_const_str_solidified, + ( &(const binstruction[18]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x60100008, // 0001 GETGBL R4 G8 + 0x88140102, // 0002 GETMBR R5 R0 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x00120204, // 0004 ADD R4 K1 R4 + 0x78060001, // 0005 JMPF R1 #0008 + 0x58140003, // 0006 LDCONST R5 K3 + 0x70020000, // 0007 JMP #0009 + 0x58140004, // 0008 LDCONST R5 K4 + 0x7C080600, // 0009 CALL R2 3 + 0x4C0C0000, // 000A LDNIL R3 + 0x200C0403, // 000B NE R3 R2 R3 + 0x780E0003, // 000C JMPF R3 #0011 + 0x8C0C0105, // 000D GETMET R3 R0 K5 + 0x5C140400, // 000E MOVE R5 R2 + 0x541A000A, // 000F LDINT R6 11 + 0x7C0C0600, // 0010 CALL R3 3 + 0x80000000, // 0011 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Light0__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Light0_invoke_request, /* name */ + be_nested_proto( + 10, /* nstack */ + 4, /* 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(matter), + /* K1 */ be_nested_str_weak(TLV), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(command), + /* K4 */ be_nested_str_weak(update_shadow_lazy), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(set_onoff), + /* K7 */ be_const_int(1), + /* K8 */ be_const_int(2), + /* K9 */ be_nested_str_weak(shadow_onoff), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[36]) { /* code */ + 0xB8120000, // 0000 GETNGBL R4 K0 + 0x88100901, // 0001 GETMBR R4 R4 K1 + 0x88140702, // 0002 GETMBR R5 R3 K2 + 0x88180703, // 0003 GETMBR R6 R3 K3 + 0x541E0005, // 0004 LDINT R7 6 + 0x1C1C0A07, // 0005 EQ R7 R5 R7 + 0x781E001B, // 0006 JMPF R7 #0023 + 0x8C1C0104, // 0007 GETMET R7 R0 K4 + 0x7C1C0200, // 0008 CALL R7 1 + 0x1C1C0D05, // 0009 EQ R7 R6 K5 + 0x781E0005, // 000A JMPF R7 #0011 + 0x8C1C0106, // 000B GETMET R7 R0 K6 + 0x50240000, // 000C LDBOOL R9 0 0 + 0x7C1C0400, // 000D CALL R7 2 + 0x501C0200, // 000E LDBOOL R7 1 0 + 0x80040E00, // 000F RET 1 R7 + 0x70020011, // 0010 JMP #0023 + 0x1C1C0D07, // 0011 EQ R7 R6 K7 + 0x781E0005, // 0012 JMPF R7 #0019 + 0x8C1C0106, // 0013 GETMET R7 R0 K6 + 0x50240200, // 0014 LDBOOL R9 1 0 + 0x7C1C0400, // 0015 CALL R7 2 + 0x501C0200, // 0016 LDBOOL R7 1 0 + 0x80040E00, // 0017 RET 1 R7 + 0x70020009, // 0018 JMP #0023 + 0x1C1C0D08, // 0019 EQ R7 R6 K8 + 0x781E0007, // 001A JMPF R7 #0023 + 0x8C1C0106, // 001B GETMET R7 R0 K6 + 0x88240109, // 001C GETMBR R9 R0 K9 + 0x78260000, // 001D JMPF R9 #001F + 0x50240001, // 001E LDBOOL R9 0 1 + 0x50240200, // 001F LDBOOL R9 1 0 + 0x7C1C0400, // 0020 CALL R7 2 + 0x501C0200, // 0021 LDBOOL R7 1 0 + 0x80040E00, // 0022 RET 1 R7 + 0x80000000, // 0023 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -87,320 +401,6 @@ be_local_closure(Matter_Plugin_Bridge_Light0_read_attribute, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Light0__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_values -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Light0_web_values, /* 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[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(content_send), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(_X7C_X20Light_X20_X25s), - /* K5 */ be_nested_str_weak(web_value_onoff), - /* K6 */ be_nested_str_weak(shadow_onoff), - }), - be_str_weak(web_values), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x8C140503, // 0003 GETMET R5 R2 K3 - 0x581C0004, // 0004 LDCONST R7 K4 - 0x8C200105, // 0005 GETMET R8 R0 K5 - 0x88280106, // 0006 GETMBR R10 R0 K6 - 0x7C200400, // 0007 CALL R8 2 - 0x7C140600, // 0008 CALL R5 3 - 0x7C0C0400, // 0009 CALL R3 2 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Light0_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(shadow_onoff), - /* K2 */ be_nested_str_weak(tasmota_relay_index), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(ARG), - /* K5 */ be_const_int(1), - /* K6 */ be_const_int(0), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60100003, // 0000 GETGBL R4 G3 - 0x5C140000, // 0001 MOVE R5 R0 - 0x7C100200, // 0002 CALL R4 1 - 0x8C100900, // 0003 GETMET R4 R4 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x5C200600, // 0006 MOVE R8 R3 - 0x7C100800, // 0007 CALL R4 4 - 0x50100000, // 0008 LDBOOL R4 0 0 - 0x90020204, // 0009 SETMBR R0 K1 R4 - 0x60100009, // 000A GETGBL R4 G9 - 0x8C140703, // 000B GETMET R5 R3 K3 - 0x881C0104, // 000C GETMBR R7 R0 K4 - 0x58200005, // 000D LDCONST R8 K5 - 0x7C140600, // 000E CALL R5 3 - 0x7C100200, // 000F CALL R4 1 - 0x90020404, // 0010 SETMBR R0 K2 R4 - 0x88100102, // 0011 GETMBR R4 R0 K2 - 0x18100906, // 0012 LE R4 R4 K6 - 0x78120000, // 0013 JMPF R4 #0015 - 0x90020505, // 0014 SETMBR R0 K2 K5 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_onoff -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Light0_set_onoff, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(call_remote_sync), - /* K1 */ be_nested_str_weak(Power), - /* K2 */ be_nested_str_weak(tasmota_relay_index), - /* K3 */ be_nested_str_weak(1), - /* K4 */ be_nested_str_weak(0), - /* K5 */ be_nested_str_weak(parse_update), - }), - be_str_weak(set_onoff), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x60100008, // 0001 GETGBL R4 G8 - 0x88140102, // 0002 GETMBR R5 R0 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x00120204, // 0004 ADD R4 K1 R4 - 0x78060001, // 0005 JMPF R1 #0008 - 0x58140003, // 0006 LDCONST R5 K3 - 0x70020000, // 0007 JMP #0009 - 0x58140004, // 0008 LDCONST R5 K4 - 0x7C080600, // 0009 CALL R2 3 - 0x4C0C0000, // 000A LDNIL R3 - 0x200C0403, // 000B NE R3 R2 R3 - 0x780E0003, // 000C JMPF R3 #0011 - 0x8C0C0105, // 000D GETMET R3 R0 K5 - 0x5C140400, // 000E MOVE R5 R2 - 0x541A000A, // 000F LDINT R6 11 - 0x7C0C0600, // 0010 CALL R3 3 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Light0_invoke_request, /* name */ - be_nested_proto( - 10, /* nstack */ - 4, /* 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(matter), - /* K1 */ be_nested_str_weak(TLV), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(command), - /* K4 */ be_nested_str_weak(update_shadow_lazy), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(set_onoff), - /* K7 */ be_const_int(1), - /* K8 */ be_const_int(2), - /* K9 */ be_nested_str_weak(shadow_onoff), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[36]) { /* code */ - 0xB8120000, // 0000 GETNGBL R4 K0 - 0x88100901, // 0001 GETMBR R4 R4 K1 - 0x88140702, // 0002 GETMBR R5 R3 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 - 0x541E0005, // 0004 LDINT R7 6 - 0x1C1C0A07, // 0005 EQ R7 R5 R7 - 0x781E001B, // 0006 JMPF R7 #0023 - 0x8C1C0104, // 0007 GETMET R7 R0 K4 - 0x7C1C0200, // 0008 CALL R7 1 - 0x1C1C0D05, // 0009 EQ R7 R6 K5 - 0x781E0005, // 000A JMPF R7 #0011 - 0x8C1C0106, // 000B GETMET R7 R0 K6 - 0x50240000, // 000C LDBOOL R9 0 0 - 0x7C1C0400, // 000D CALL R7 2 - 0x501C0200, // 000E LDBOOL R7 1 0 - 0x80040E00, // 000F RET 1 R7 - 0x70020011, // 0010 JMP #0023 - 0x1C1C0D07, // 0011 EQ R7 R6 K7 - 0x781E0005, // 0012 JMPF R7 #0019 - 0x8C1C0106, // 0013 GETMET R7 R0 K6 - 0x50240200, // 0014 LDBOOL R9 1 0 - 0x7C1C0400, // 0015 CALL R7 2 - 0x501C0200, // 0016 LDBOOL R7 1 0 - 0x80040E00, // 0017 RET 1 R7 - 0x70020009, // 0018 JMP #0023 - 0x1C1C0D08, // 0019 EQ R7 R6 K8 - 0x781E0007, // 001A JMPF R7 #0023 - 0x8C1C0106, // 001B GETMET R7 R0 K6 - 0x88240109, // 001C GETMBR R9 R0 K9 - 0x78260000, // 001D JMPF R9 #001F - 0x50240001, // 001E LDBOOL R9 0 1 - 0x50240200, // 001F LDBOOL R9 1 0 - 0x7C1C0400, // 0020 CALL R7 2 - 0x501C0200, // 0021 LDBOOL R7 1 0 - 0x80040E00, // 0022 RET 1 R7 - 0x80000000, // 0023 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_update -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Light0_parse_update, /* 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[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota_relay_index), - /* K1 */ be_const_int(1), - /* K2 */ be_nested_str_weak(contains), - /* K3 */ be_nested_str_weak(POWER), - /* K4 */ be_nested_str_weak(find), - /* K5 */ be_nested_str_weak(ON), - /* K6 */ be_nested_str_weak(shadow_onoff), - /* K7 */ be_nested_str_weak(attribute_updated), - /* K8 */ be_const_int(0), - }), - be_str_weak(parse_update), - &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0x540E000A, // 0000 LDINT R3 11 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E0024, // 0002 JMPF R3 #0028 - 0x500C0000, // 0003 LDBOOL R3 0 0 - 0x88100100, // 0004 GETMBR R4 R0 K0 - 0x1C100901, // 0005 EQ R4 R4 K1 - 0x78120009, // 0006 JMPF R4 #0011 - 0x8C100302, // 0007 GETMET R4 R1 K2 - 0x58180003, // 0008 LDCONST R6 K3 - 0x7C100400, // 0009 CALL R4 2 - 0x78120005, // 000A JMPF R4 #0011 - 0x8C100304, // 000B GETMET R4 R1 K4 - 0x58180003, // 000C LDCONST R6 K3 - 0x7C100400, // 000D CALL R4 2 - 0x1C100905, // 000E EQ R4 R4 K5 - 0x5C0C0800, // 000F MOVE R3 R4 - 0x70020007, // 0010 JMP #0019 - 0x8C100304, // 0011 GETMET R4 R1 K4 - 0x60180008, // 0012 GETGBL R6 G8 - 0x881C0100, // 0013 GETMBR R7 R0 K0 - 0x7C180200, // 0014 CALL R6 1 - 0x001A0606, // 0015 ADD R6 K3 R6 - 0x7C100400, // 0016 CALL R4 2 - 0x1C100905, // 0017 EQ R4 R4 K5 - 0x5C0C0800, // 0018 MOVE R3 R4 - 0x88100106, // 0019 GETMBR R4 R0 K6 - 0x4C140000, // 001A LDNIL R5 - 0x20100805, // 001B NE R4 R4 R5 - 0x78120009, // 001C JMPF R4 #0027 - 0x88100106, // 001D GETMBR R4 R0 K6 - 0x60140017, // 001E GETGBL R5 G23 - 0x5C180600, // 001F MOVE R6 R3 - 0x7C140200, // 0020 CALL R5 1 - 0x20100805, // 0021 NE R4 R4 R5 - 0x78120003, // 0022 JMPF R4 #0027 - 0x8C100107, // 0023 GETMET R4 R0 K7 - 0x541A0005, // 0024 LDINT R6 6 - 0x581C0008, // 0025 LDCONST R7 K8 - 0x7C100600, // 0026 CALL R4 3 - 0x90020C03, // 0027 SETMBR R0 K6 R3 - 0x80000000, // 0028 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified class: Matter_Plugin_Bridge_Light0 ********************************************************************/ @@ -408,23 +408,26 @@ extern const bclass be_class_Matter_Plugin_Bridge_HTTP; be_local_class(Matter_Plugin_Bridge_Light0, 2, &be_class_Matter_Plugin_Bridge_HTTP, - be_nested_map(14, + be_nested_map(15, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(read_attribute, 11), be_const_closure(Matter_Plugin_Bridge_Light0_read_attribute_closure) }, + { be_const_key_weak(init, 11), be_const_closure(Matter_Plugin_Bridge_Light0_init_closure) }, + { be_const_key_weak(parse_update, -1), be_const_closure(Matter_Plugin_Bridge_Light0_parse_update_closure) }, + { be_const_key_weak(web_values, 10), be_const_closure(Matter_Plugin_Bridge_Light0_web_values_closure) }, + { be_const_key_weak(set_onoff, -1), be_const_closure(Matter_Plugin_Bridge_Light0_set_onoff_closure) }, + { be_const_key_weak(ARG_TYPE, 8), be_const_static_closure(Matter_Plugin_Bridge_Light0__X3Clambda_X3E_closure) }, + { be_const_key_weak(tasmota_relay_index, 7), be_const_var(0) }, { be_const_key_weak(ARG, -1), be_nested_str_weak(relay) }, - { be_const_key_weak(ARG_TYPE, 12), be_const_static_closure(Matter_Plugin_Bridge_Light0__X3Clambda_X3E_closure) }, - { be_const_key_weak(TYPE, -1), be_nested_str_weak(http_light0) }, - { be_const_key_weak(web_values, -1), be_const_closure(Matter_Plugin_Bridge_Light0_web_values_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Bridge_Light0_init_closure) }, - { be_const_key_weak(set_onoff, 13), be_const_closure(Matter_Plugin_Bridge_Light0_set_onoff_closure) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Bridge_Light0_invoke_request_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(Light_X200_X20On) }, - { be_const_key_weak(tasmota_relay_index, -1), be_const_var(0) }, { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(256, -1), be_const_int(2) }, })) ) } )) }, + { be_const_key_weak(TYPE, 14), be_nested_str_weak(http_light0) }, + { be_const_key_weak(NAME, 6), be_nested_str_weak(Light_X200_X20On) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Bridge_Light0_invoke_request_closure) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Enter_X20Power_X3Cx_X3E_X20number) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Bridge_Light0_read_attribute_closure) }, + { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -436,8 +439,6 @@ be_local_class(Matter_Plugin_Bridge_Light0, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(parse_update, -1), be_const_closure(Matter_Plugin_Bridge_Light0_parse_update_closure) }, - { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, })), be_str_weak(Matter_Plugin_Bridge_Light0) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_OnOff.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_OnOff.h index c9b570e5b..4599435a9 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_OnOff.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_OnOff.h @@ -57,16 +57,17 @@ extern const bclass be_class_Matter_Plugin_Bridge_Light0; be_local_class(Matter_Plugin_Bridge_OnOff, 0, &be_class_Matter_Plugin_Bridge_Light0, - be_nested_map(4, + be_nested_map(5, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(web_values, -1), be_const_closure(Matter_Plugin_Bridge_OnOff_web_values_closure) }, - { be_const_key_weak(TYPE, -1), be_nested_str_weak(http_relay) }, - { be_const_key_weak(NAME, 3), be_nested_str_weak(Relay) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(TYPES, 3), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(266, -1), be_const_int(2) }, })) ) } )) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Relay) }, + { be_const_key_weak(web_values, -1), be_const_closure(Matter_Plugin_Bridge_OnOff_web_values_closure) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Enter_X20Relay_X3Cx_X3E_X20number) }, + { be_const_key_weak(TYPE, 1), be_nested_str_weak(http_relay) }, })), be_str_weak(Matter_Plugin_Bridge_OnOff) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor.h index c8e26217a..039eb69ed 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor.h @@ -6,119 +6,6 @@ extern const bclass be_class_Matter_Plugin_Bridge_Sensor; -/******************************************************************** -** Solidified function: pre_value -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Sensor_pre_value, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(pre_value), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80040200, // 0000 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: filter_name_html -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Sensor_filter_name_html, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota_sensor_filter), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(webserver), - /* K3 */ be_nested_str_weak(html_escape), - /* K4 */ be_nested_str_weak(split), - /* K5 */ be_nested_str_weak(_X23), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(), - }), - be_str_weak(filter_name_html), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060009, // 0001 JMPF R1 #000C - 0xA4060200, // 0002 IMPORT R1 K1 - 0xA40A0400, // 0003 IMPORT R2 K2 - 0x8C0C0503, // 0004 GETMET R3 R2 K3 - 0x8C140304, // 0005 GETMET R5 R1 K4 - 0x881C0100, // 0006 GETMBR R7 R0 K0 - 0x58200005, // 0007 LDCONST R8 K5 - 0x7C140600, // 0008 CALL R5 3 - 0x94140B06, // 0009 GETIDX R5 R5 K6 - 0x7C0C0400, // 000A CALL R3 2 - 0x80040600, // 000B RET 1 R3 - 0x80060E00, // 000C RET 1 K7 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_configuration -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Sensor_parse_configuration, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota_sensor_filter), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_nested_str_weak(tasmota_sensor_matcher), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(Rule_Matcher), - /* K6 */ be_nested_str_weak(parse), - }), - be_str_weak(parse_configuration), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x8C080301, // 0000 GETMET R2 R1 K1 - 0x88100102, // 0001 GETMBR R4 R0 K2 - 0x7C080400, // 0002 CALL R2 2 - 0x90020002, // 0003 SETMBR R0 K0 R2 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x780A0005, // 0005 JMPF R2 #000C - 0xB80A0800, // 0006 GETNGBL R2 K4 - 0x88080505, // 0007 GETMBR R2 R2 K5 - 0x8C080506, // 0008 GETMET R2 R2 K6 - 0x88100100, // 0009 GETMBR R4 R0 K0 - 0x7C080400, // 000A CALL R2 2 - 0x90020602, // 000B SETMBR R0 K3 R2 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: parse_update ********************************************************************/ @@ -172,6 +59,51 @@ be_local_closure(Matter_Plugin_Bridge_Sensor_parse_update, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: filter_name_html +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Sensor_filter_name_html, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota_sensor_filter), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(webserver), + /* K3 */ be_nested_str_weak(html_escape), + /* K4 */ be_nested_str_weak(split), + /* K5 */ be_nested_str_weak(_X23), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(), + }), + be_str_weak(filter_name_html), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060009, // 0001 JMPF R1 #000C + 0xA4060200, // 0002 IMPORT R1 K1 + 0xA40A0400, // 0003 IMPORT R2 K2 + 0x8C0C0503, // 0004 GETMET R3 R2 K3 + 0x8C140304, // 0005 GETMET R5 R1 K4 + 0x881C0100, // 0006 GETMBR R7 R0 K0 + 0x58200005, // 0007 LDCONST R8 K5 + 0x7C140600, // 0008 CALL R5 3 + 0x94140B06, // 0009 GETIDX R5 R5 K6 + 0x7C0C0400, // 000A CALL R3 2 + 0x80040600, // 000B RET 1 R3 + 0x80060E00, // 000C RET 1 K7 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: value_changed ********************************************************************/ @@ -196,6 +128,74 @@ be_local_closure(Matter_Plugin_Bridge_Sensor_value_changed, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: pre_value +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Sensor_pre_value, /* name */ + be_nested_proto( + 2, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(pre_value), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80040200, // 0000 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_configuration +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Sensor_parse_configuration, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota_sensor_filter), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(tasmota_sensor_matcher), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(Rule_Matcher), + /* K6 */ be_nested_str_weak(parse), + }), + be_str_weak(parse_configuration), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x8C080301, // 0000 GETMET R2 R1 K1 + 0x88100102, // 0001 GETMBR R4 R0 K2 + 0x7C080400, // 0002 CALL R2 2 + 0x90020002, // 0003 SETMBR R0 K0 R2 + 0x88080100, // 0004 GETMBR R2 R0 K0 + 0x780A0005, // 0005 JMPF R2 #000C + 0xB80A0800, // 0006 GETNGBL R2 K4 + 0x88080505, // 0007 GETMBR R2 R2 K5 + 0x8C080506, // 0008 GETMET R2 R2 K6 + 0x88100100, // 0009 GETMBR R4 R0 K0 + 0x7C080400, // 000A CALL R2 2 + 0x90020602, // 000B SETMBR R0 K3 R2 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Bridge_Sensor ********************************************************************/ @@ -203,21 +203,22 @@ extern const bclass be_class_Matter_Plugin_Bridge_HTTP; be_local_class(Matter_Plugin_Bridge_Sensor, 3, &be_class_Matter_Plugin_Bridge_HTTP, - be_nested_map(13, + be_nested_map(14, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(ARG, 1), be_nested_str_weak(filter) }, - { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_value_changed_closure) }, - { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, - { be_const_key_weak(pre_value, 12), be_const_closure(Matter_Plugin_Bridge_Sensor_pre_value_closure) }, - { be_const_key_weak(tasmota_sensor_matcher, -1), be_const_var(1) }, - { be_const_key_weak(PROBE_TIMEOUT, -1), be_const_int(1700) }, + { be_const_key_weak(UPDATE_CMD, -1), be_nested_str_weak(Status_X208) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak(filter) }, + { be_const_key_weak(parse_update, 10), be_const_closure(Matter_Plugin_Bridge_Sensor_parse_update_closure) }, { be_const_key_weak(filter_name_html, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_filter_name_html_closure) }, - { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_parse_configuration_closure) }, - { be_const_key_weak(shadow_value, -1), be_const_var(2) }, - { be_const_key_weak(parse_update, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_parse_update_closure) }, - { be_const_key_weak(UPDATE_CMD, 8), be_nested_str_weak(Status_X208) }, - { be_const_key_weak(ARG_HTTP, 2), be_nested_str_weak(url) }, { be_const_key_weak(tasmota_sensor_filter, -1), be_const_var(0) }, + { be_const_key_weak(value_changed, 0), be_const_closure(Matter_Plugin_Bridge_Sensor_value_changed_closure) }, + { be_const_key_weak(tasmota_sensor_matcher, -1), be_const_var(1) }, + { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_parse_configuration_closure) }, + { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_pre_value_closure) }, + { be_const_key_weak(ARG_HINT, 7), be_nested_str_weak(Enter_X20Filter_X20pattern) }, + { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, + { be_const_key_weak(shadow_value, 9), be_const_var(2) }, + { be_const_key_weak(ARG_HTTP, -1), be_nested_str_weak(url) }, + { be_const_key_weak(PROBE_TIMEOUT, -1), be_const_int(1700) }, })), be_str_weak(Matter_Plugin_Bridge_Sensor) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor_Occupancy.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor_Occupancy.h index 56978494b..79b92713a 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor_Occupancy.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Bridge_Sensor_Occupancy.h @@ -6,6 +6,65 @@ extern const bclass be_class_Matter_Plugin_Bridge_Sensor_Occupancy; +/******************************************************************** +** Solidified function: parse_update +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Sensor_Occupancy_parse_update, /* 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[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(find), + /* K1 */ be_nested_str_weak(Switch), + /* K2 */ be_nested_str_weak(tasmota_switch_index), + /* K3 */ be_nested_str_weak(ON), + /* K4 */ be_nested_str_weak(shadow_occupancy), + /* K5 */ be_nested_str_weak(attribute_updated), + /* K6 */ be_const_int(0), + }), + be_str_weak(parse_update), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x540E0007, // 0000 LDINT R3 8 + 0x1C0C0403, // 0001 EQ R3 R2 R3 + 0x780E0017, // 0002 JMPF R3 #001B + 0x500C0000, // 0003 LDBOOL R3 0 0 + 0x8C100300, // 0004 GETMET R4 R1 K0 + 0x60180008, // 0005 GETGBL R6 G8 + 0x881C0102, // 0006 GETMBR R7 R0 K2 + 0x7C180200, // 0007 CALL R6 1 + 0x001A0206, // 0008 ADD R6 K1 R6 + 0x7C100400, // 0009 CALL R4 2 + 0x1C100903, // 000A EQ R4 R4 K3 + 0x5C0C0800, // 000B MOVE R3 R4 + 0x88100104, // 000C GETMBR R4 R0 K4 + 0x4C140000, // 000D LDNIL R5 + 0x20100805, // 000E NE R4 R4 R5 + 0x78120009, // 000F JMPF R4 #001A + 0x88100104, // 0010 GETMBR R4 R0 K4 + 0x60140017, // 0011 GETGBL R5 G23 + 0x5C180600, // 0012 MOVE R6 R3 + 0x7C140200, // 0013 CALL R5 1 + 0x20100805, // 0014 NE R4 R4 R5 + 0x78120003, // 0015 JMPF R4 #001A + 0x8C100105, // 0016 GETMET R4 R0 K5 + 0x541A0405, // 0017 LDINT R6 1030 + 0x581C0006, // 0018 LDCONST R7 K6 + 0x7C100600, // 0019 CALL R4 3 + 0x90020803, // 001A SETMBR R0 K4 R3 + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: web_values ********************************************************************/ @@ -50,6 +109,33 @@ be_local_closure(Matter_Plugin_Bridge_Sensor_Occupancy_web_values, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_Bridge_Sensor_Occupancy__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -158,92 +244,6 @@ be_local_closure(Matter_Plugin_Bridge_Sensor_Occupancy_read_attribute, /* name /*******************************************************************/ -/******************************************************************** -** Solidified function: parse_update -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Sensor_Occupancy_parse_update, /* 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[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(find), - /* K1 */ be_nested_str_weak(Switch), - /* K2 */ be_nested_str_weak(tasmota_switch_index), - /* K3 */ be_nested_str_weak(ON), - /* K4 */ be_nested_str_weak(shadow_occupancy), - /* K5 */ be_nested_str_weak(attribute_updated), - /* K6 */ be_const_int(0), - }), - be_str_weak(parse_update), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x540E0007, // 0000 LDINT R3 8 - 0x1C0C0403, // 0001 EQ R3 R2 R3 - 0x780E0017, // 0002 JMPF R3 #001B - 0x500C0000, // 0003 LDBOOL R3 0 0 - 0x8C100300, // 0004 GETMET R4 R1 K0 - 0x60180008, // 0005 GETGBL R6 G8 - 0x881C0102, // 0006 GETMBR R7 R0 K2 - 0x7C180200, // 0007 CALL R6 1 - 0x001A0206, // 0008 ADD R6 K1 R6 - 0x7C100400, // 0009 CALL R4 2 - 0x1C100903, // 000A EQ R4 R4 K3 - 0x5C0C0800, // 000B MOVE R3 R4 - 0x88100104, // 000C GETMBR R4 R0 K4 - 0x4C140000, // 000D LDNIL R5 - 0x20100805, // 000E NE R4 R4 R5 - 0x78120009, // 000F JMPF R4 #001A - 0x88100104, // 0010 GETMBR R4 R0 K4 - 0x60140017, // 0011 GETGBL R5 G23 - 0x5C180600, // 0012 MOVE R6 R3 - 0x7C140200, // 0013 CALL R5 1 - 0x20100805, // 0014 NE R4 R4 R5 - 0x78120003, // 0015 JMPF R4 #001A - 0x8C100105, // 0016 GETMET R4 R0 K5 - 0x541A0405, // 0017 LDINT R6 1030 - 0x581C0006, // 0018 LDCONST R7 K6 - 0x7C100600, // 0019 CALL R4 3 - 0x90020803, // 001A SETMBR R0 K4 R3 - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin_Bridge_Sensor_Occupancy__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: init ********************************************************************/ @@ -301,9 +301,24 @@ extern const bclass be_class_Matter_Plugin_Bridge_HTTP; be_local_class(Matter_Plugin_Bridge_Sensor_Occupancy, 2, &be_class_Matter_Plugin_Bridge_HTTP, - be_nested_map(14, + be_nested_map(15, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(CLUSTERS, 6), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(ARG_HINT, 3), be_nested_str_weak(Enter_X20Switch_X3Cx_X3E_X20number) }, + { be_const_key_weak(parse_update, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_parse_update_closure) }, + { be_const_key_weak(web_values, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_web_values_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_init_closure) }, + { be_const_key_weak(ARG_TYPE, 11), be_const_static_closure(Matter_Plugin_Bridge_Sensor_Occupancy__X3Clambda_X3E_closure) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(263, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, + { be_const_key_weak(tasmota_switch_index, -1), be_const_var(0) }, + { be_const_key_weak(ARG, 13), be_nested_str_weak(switch) }, + { be_const_key_weak(UPDATE_CMD, 8), be_nested_str_weak(Status_X208) }, + { be_const_key_weak(shadow_occupancy, -1), be_const_var(1) }, + { be_const_key_weak(CLUSTERS, 14), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(1030, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -316,23 +331,9 @@ be_local_class(Matter_Plugin_Bridge_Sensor_Occupancy, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(ARG, -1), be_nested_str_weak(switch) }, - { be_const_key_weak(UPDATE_TIME, 7), be_const_int(5000) }, - { be_const_key_weak(TYPE, -1), be_nested_str_weak(http_occupancy) }, - { be_const_key_weak(web_values, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_web_values_closure) }, - { be_const_key_weak(UPDATE_CMD, 9), be_nested_str_weak(Status_X208) }, { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_read_attribute_closure) }, - { be_const_key_weak(tasmota_switch_index, 11), be_const_var(0) }, { be_const_key_weak(NAME, -1), be_nested_str_weak(Occupancy) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_init_closure) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(263, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(ARG_TYPE, 12), be_const_static_closure(Matter_Plugin_Bridge_Sensor_Occupancy__X3Clambda_X3E_closure) }, - { be_const_key_weak(parse_update, -1), be_const_closure(Matter_Plugin_Bridge_Sensor_Occupancy_parse_update_closure) }, - { be_const_key_weak(shadow_occupancy, -1), be_const_var(1) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(http_occupancy) }, })), be_str_weak(Matter_Plugin_Bridge_Sensor_Occupancy) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h index 693f354e5..7d4ac79ea 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h @@ -6,147 +6,6 @@ extern const bclass be_class_Matter_Plugin_OnOff; -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(shadow_onoff), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x60100003, // 0000 GETGBL R4 G3 - 0x5C140000, // 0001 MOVE R5 R0 - 0x7C100200, // 0002 CALL R4 1 - 0x8C100900, // 0003 GETMET R4 R4 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x5C200600, // 0006 MOVE R8 R3 - 0x7C100800, // 0007 CALL R4 4 - 0x50100000, // 0008 LDBOOL R4 0 0 - 0x90020204, // 0009 SETMBR R0 K1 R4 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_invoke_request, /* name */ - be_nested_proto( - 10, /* 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(matter), - /* K1 */ be_nested_str_weak(TLV), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(command), - /* K4 */ be_nested_str_weak(update_shadow_lazy), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(set_onoff), - /* K7 */ be_nested_str_weak(update_shadow), - /* K8 */ be_const_int(1), - /* K9 */ be_const_int(2), - /* K10 */ be_nested_str_weak(shadow_onoff), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[42]) { /* code */ - 0xB8120000, // 0000 GETNGBL R4 K0 - 0x88100901, // 0001 GETMBR R4 R4 K1 - 0x88140702, // 0002 GETMBR R5 R3 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 - 0x541E0005, // 0004 LDINT R7 6 - 0x1C1C0A07, // 0005 EQ R7 R5 R7 - 0x781E0021, // 0006 JMPF R7 #0029 - 0x8C1C0104, // 0007 GETMET R7 R0 K4 - 0x7C1C0200, // 0008 CALL R7 1 - 0x1C1C0D05, // 0009 EQ R7 R6 K5 - 0x781E0007, // 000A JMPF R7 #0013 - 0x8C1C0106, // 000B GETMET R7 R0 K6 - 0x50240000, // 000C LDBOOL R9 0 0 - 0x7C1C0400, // 000D CALL R7 2 - 0x8C1C0107, // 000E GETMET R7 R0 K7 - 0x7C1C0200, // 000F CALL R7 1 - 0x501C0200, // 0010 LDBOOL R7 1 0 - 0x80040E00, // 0011 RET 1 R7 - 0x70020015, // 0012 JMP #0029 - 0x1C1C0D08, // 0013 EQ R7 R6 K8 - 0x781E0007, // 0014 JMPF R7 #001D - 0x8C1C0106, // 0015 GETMET R7 R0 K6 - 0x50240200, // 0016 LDBOOL R9 1 0 - 0x7C1C0400, // 0017 CALL R7 2 - 0x8C1C0107, // 0018 GETMET R7 R0 K7 - 0x7C1C0200, // 0019 CALL R7 1 - 0x501C0200, // 001A LDBOOL R7 1 0 - 0x80040E00, // 001B RET 1 R7 - 0x7002000B, // 001C JMP #0029 - 0x1C1C0D09, // 001D EQ R7 R6 K9 - 0x781E0009, // 001E JMPF R7 #0029 - 0x8C1C0106, // 001F GETMET R7 R0 K6 - 0x8824010A, // 0020 GETMBR R9 R0 K10 - 0x78260000, // 0021 JMPF R9 #0023 - 0x50240001, // 0022 LDBOOL R9 0 1 - 0x50240200, // 0023 LDBOOL R9 1 0 - 0x7C1C0400, // 0024 CALL R7 2 - 0x8C1C0107, // 0025 GETMET R7 R0 K7 - 0x7C1C0200, // 0026 CALL R7 1 - 0x501C0200, // 0027 LDBOOL R7 1 0 - 0x80040E00, // 0028 RET 1 R7 - 0x80000000, // 0029 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: set_onoff ********************************************************************/ @@ -187,6 +46,43 @@ be_local_closure(Matter_Plugin_OnOff_set_onoff, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_init, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(shadow_onoff), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x5C200600, // 0006 MOVE R8 R3 + 0x7C100800, // 0007 CALL R4 4 + 0x50100000, // 0008 LDBOOL R4 0 0 + 0x90020204, // 0009 SETMBR R0 K1 R4 + 0x80000000, // 000A RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: update_shadow ********************************************************************/ @@ -370,6 +266,110 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_invoke_request, /* name */ + be_nested_proto( + 10, /* 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(matter), + /* K1 */ be_nested_str_weak(TLV), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(command), + /* K4 */ be_nested_str_weak(update_shadow_lazy), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(set_onoff), + /* K7 */ be_nested_str_weak(update_shadow), + /* K8 */ be_const_int(1), + /* K9 */ be_const_int(2), + /* K10 */ be_nested_str_weak(shadow_onoff), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[42]) { /* code */ + 0xB8120000, // 0000 GETNGBL R4 K0 + 0x88100901, // 0001 GETMBR R4 R4 K1 + 0x88140702, // 0002 GETMBR R5 R3 K2 + 0x88180703, // 0003 GETMBR R6 R3 K3 + 0x541E0005, // 0004 LDINT R7 6 + 0x1C1C0A07, // 0005 EQ R7 R5 R7 + 0x781E0021, // 0006 JMPF R7 #0029 + 0x8C1C0104, // 0007 GETMET R7 R0 K4 + 0x7C1C0200, // 0008 CALL R7 1 + 0x1C1C0D05, // 0009 EQ R7 R6 K5 + 0x781E0007, // 000A JMPF R7 #0013 + 0x8C1C0106, // 000B GETMET R7 R0 K6 + 0x50240000, // 000C LDBOOL R9 0 0 + 0x7C1C0400, // 000D CALL R7 2 + 0x8C1C0107, // 000E GETMET R7 R0 K7 + 0x7C1C0200, // 000F CALL R7 1 + 0x501C0200, // 0010 LDBOOL R7 1 0 + 0x80040E00, // 0011 RET 1 R7 + 0x70020015, // 0012 JMP #0029 + 0x1C1C0D08, // 0013 EQ R7 R6 K8 + 0x781E0007, // 0014 JMPF R7 #001D + 0x8C1C0106, // 0015 GETMET R7 R0 K6 + 0x50240200, // 0016 LDBOOL R9 1 0 + 0x7C1C0400, // 0017 CALL R7 2 + 0x8C1C0107, // 0018 GETMET R7 R0 K7 + 0x7C1C0200, // 0019 CALL R7 1 + 0x501C0200, // 001A LDBOOL R7 1 0 + 0x80040E00, // 001B RET 1 R7 + 0x7002000B, // 001C JMP #0029 + 0x1C1C0D09, // 001D EQ R7 R6 K9 + 0x781E0009, // 001E JMPF R7 #0029 + 0x8C1C0106, // 001F GETMET R7 R0 K6 + 0x8824010A, // 0020 GETMBR R9 R0 K10 + 0x78260000, // 0021 JMPF R9 #0023 + 0x50240001, // 0022 LDBOOL R9 0 1 + 0x50240200, // 0023 LDBOOL R9 1 0 + 0x7C1C0400, // 0024 CALL R7 2 + 0x8C1C0107, // 0025 GETMET R7 R0 K7 + 0x7C1C0200, // 0026 CALL R7 1 + 0x501C0200, // 0027 LDBOOL R7 1 0 + 0x80040E00, // 0028 RET 1 R7 + 0x80000000, // 0029 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_OnOff ********************************************************************/ @@ -377,23 +377,18 @@ extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_OnOff, 2, &be_class_Matter_Plugin_Device, - be_nested_map(15, + be_nested_map(16, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_OnOff_init_closure) }, - { be_const_key_weak(ARG, -1), be_nested_str_weak(relay) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_OnOff_invoke_request_closure) }, + { be_const_key_weak(shadow_onoff, 4), be_const_var(1) }, + { be_const_key_weak(tasmota_relay_index, 12), be_const_var(0) }, { be_const_key_weak(set_onoff, -1), be_const_closure(Matter_Plugin_OnOff_set_onoff_closure) }, - { be_const_key_weak(ARG_TYPE, 10), be_const_static_closure(Matter_Plugin_OnOff__X3Clambda_X3E_closure) }, - { be_const_key_weak(tasmota_relay_index, 7), be_const_var(0) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_OnOff_init_closure) }, + { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_OnOff__X3Clambda_X3E_closure) }, + { be_const_key_weak(update_shadow, 15), be_const_closure(Matter_Plugin_OnOff_update_shadow_closure) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Relay) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak(relay) }, { be_const_key_weak(UPDATE_TIME, -1), be_const_int(250) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(266, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(TYPE, 14), be_nested_str_weak(relay) }, - { be_const_key_weak(NAME, 1), be_nested_str_weak(Relay) }, - { be_const_key_weak(CLUSTERS, 11), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(CLUSTERS, 14), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(6, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -404,10 +399,16 @@ be_local_class(Matter_Plugin_OnOff, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(parse_configuration, 8), be_const_closure(Matter_Plugin_OnOff_parse_configuration_closure) }, + { be_const_key_weak(TYPES, 9), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(266, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_OnOff_invoke_request_closure) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Enter_X20Relay_X3Cx_X3E_X20number) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(relay) }, { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_OnOff_read_attribute_closure) }, - { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_OnOff_update_shadow_closure) }, + { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_OnOff_parse_configuration_closure) }, })), be_str_weak(Matter_Plugin_OnOff) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h index a4fc4a4ec..a695431fd 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h @@ -47,7 +47,7 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ ), }), 1, /* has constants */ - ( &(const bvalue[107]) { /* constants */ + ( &(const bvalue[102]) { /* constants */ /* K0 */ be_nested_str_weak(crypto), /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(matter), @@ -87,78 +87,73 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ /* K36 */ be_nested_str_weak(utc), /* K37 */ be_nested_str_weak(tlv2raw), /* K38 */ be_nested_str_weak(get_ac), - /* K39 */ be_nested_str_weak(log), - /* K40 */ be_nested_str_weak(MTR_X3A_X20attestation_tbs_X3D), - /* K41 */ be_nested_str_weak(tohex), - /* K42 */ be_nested_str_weak(EC_P256), - /* K43 */ be_nested_str_weak(ecdsa_sign_sha256), - /* K44 */ be_nested_str_weak(DAC_Priv_FFF1_8000), - /* K45 */ be_nested_str_weak(format), - /* K46 */ be_nested_str_weak(MTR_X3A_X20CSRRequest_X20CSRNonce_X3D_X25s_X20IsForUpdateNOC_X3D_X25s), - /* K47 */ be_nested_str_weak(gen_CSR), - /* K48 */ be_nested_str_weak(MTR_X3A_X20nocsr_tbs_X3D), - /* K49 */ be_nested_str_weak(set_temp_ca), - /* K50 */ be_nested_str_weak(MTR_X3A_X20received_X20ca_root_X3D), - /* K51 */ be_nested_str_weak(SUCCESS), - /* K52 */ be_nested_str_weak(MTR_X3A_X20AddNoc_X20Args_X3D), - /* K53 */ be_nested_str_weak(get_temp_ca), - /* K54 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20AdNOC_X20without_X20CA), - /* K55 */ be_nested_str_weak(sessions), - /* K56 */ be_nested_str_weak(create_fabric), - /* K57 */ be_nested_str_weak(set_ca), - /* K58 */ be_nested_str_weak(set_noc_icac), - /* K59 */ be_nested_str_weak(set_ipk_epoch_key), - /* K60 */ be_nested_str_weak(set_admin_subject_vendor), - /* K61 */ be_nested_str_weak(set_pk), - /* K62 */ be_nested_str_weak(get_pk), - /* K63 */ be_nested_str_weak(parse), - /* K64 */ be_nested_str_weak(findsub), - /* K65 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20no_X20fabricid_X20nor_X20deviceid_X20in_X20NOC_X20certificate), - /* K66 */ be_nested_str_weak(int), - /* K67 */ be_nested_str_weak(int64), - /* K68 */ be_nested_str_weak(fromu32), - /* K69 */ be_nested_str_weak(tobytes), - /* K70 */ be_nested_str_weak(get_temp_ca_pub), - /* K71 */ be_const_int(2147483647), - /* K72 */ be_nested_str_weak(fromstring), - /* K73 */ be_nested_str_weak(CompressedFabric), - /* K74 */ be_nested_str_weak(HKDF_SHA256), - /* K75 */ be_nested_str_weak(copy), - /* K76 */ be_nested_str_weak(reverse), - /* K77 */ be_nested_str_weak(derive), - /* K78 */ be_nested_str_weak(commissioning_admin_fabric), - /* K79 */ be_nested_str_weak(set_fabric_device), - /* K80 */ be_nested_str_weak(fabric_candidate), - /* K81 */ be_nested_str_weak(start_operational_discovery_deferred), - /* K82 */ be_nested_str_weak(is_PASE), - /* K83 */ be_nested_str_weak(set_expire_in_seconds), - /* K84 */ be_nested_str_weak(log_new_fabric), - /* K85 */ be_nested_str_weak(set_fabric_label), - /* K86 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Update_X20fabric_X20_X27_X25s_X27_X20label_X3D_X27_X25s_X27), - /* K87 */ be_nested_str_weak(get_fabric_id), - /* K88 */ be_nested_str_weak(fabric_index_X3A), - /* K89 */ be_nested_str_weak(active_fabrics), - /* K90 */ be_nested_str_weak(get_fabric_index), - /* K91 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), - /* K92 */ be_nested_str_weak(set_timer), - /* K93 */ be_nested_str_weak(stop_iteration), - /* K94 */ be_nested_str_weak(MTR_X3A_X20RemoveFabric_X20fabric_X28), - /* K95 */ be_nested_str_weak(_X29_X20not_X20found), - /* K96 */ be_nested_str_weak(INVALID_ACTION), - /* K97 */ be_nested_str_weak(MTR_X3A_X20OpenCommissioningWindow_X28timeout_X3D_X25i_X2C_X20passcode_X3D_X25s_X2C_X20discriminator_X3D_X25i_X2C_X20iterations_X3D_X25i_X2C_X20salt_X3D_X25s_X29), - /* K98 */ be_nested_str_weak(INVALID_DATA_TYPE), - /* K99 */ be_nested_str_weak(MTR_X3A_X20wrong_X20size_X20for_X20PAKE_X20parameters), - /* K100 */ be_nested_str_weak(CONSTRAINT_ERROR), - /* K101 */ be_nested_str_weak(start_basic_commissioning), - /* K102 */ be_nested_str_weak(get_fabric), - /* K103 */ be_nested_str_weak(MTR_X3A_X20OpenBasicCommissioningWindow_X20commissioning_timeout_X3D), - /* K104 */ be_nested_str_weak(start_root_basic_commissioning), - /* K105 */ be_nested_str_weak(stop_basic_commissioning), - /* K106 */ be_nested_str_weak(invoke_request), + /* K39 */ be_nested_str_weak(EC_P256), + /* K40 */ be_nested_str_weak(ecdsa_sign_sha256), + /* K41 */ be_nested_str_weak(DAC_Priv_FFF1_8000), + /* K42 */ be_nested_str_weak(gen_CSR), + /* K43 */ be_nested_str_weak(set_temp_ca), + /* K44 */ be_nested_str_weak(SUCCESS), + /* K45 */ be_nested_str_weak(log), + /* K46 */ be_nested_str_weak(MTR_X3A_X20AddNoc_X20Args_X3D), + /* K47 */ be_nested_str_weak(get_temp_ca), + /* K48 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20AdNOC_X20without_X20CA), + /* K49 */ be_nested_str_weak(sessions), + /* K50 */ be_nested_str_weak(create_fabric), + /* K51 */ be_nested_str_weak(set_ca), + /* K52 */ be_nested_str_weak(set_noc_icac), + /* K53 */ be_nested_str_weak(set_ipk_epoch_key), + /* K54 */ be_nested_str_weak(set_admin_subject_vendor), + /* K55 */ be_nested_str_weak(set_pk), + /* K56 */ be_nested_str_weak(get_pk), + /* K57 */ be_nested_str_weak(parse), + /* K58 */ be_nested_str_weak(findsub), + /* K59 */ be_nested_str_weak(MTR_X3A_X20Error_X3A_X20no_X20fabricid_X20nor_X20deviceid_X20in_X20NOC_X20certificate), + /* K60 */ be_nested_str_weak(int), + /* K61 */ be_nested_str_weak(int64), + /* K62 */ be_nested_str_weak(fromu32), + /* K63 */ be_nested_str_weak(tobytes), + /* K64 */ be_nested_str_weak(get_temp_ca_pub), + /* K65 */ be_const_int(2147483647), + /* K66 */ be_nested_str_weak(fromstring), + /* K67 */ be_nested_str_weak(CompressedFabric), + /* K68 */ be_nested_str_weak(HKDF_SHA256), + /* K69 */ be_nested_str_weak(copy), + /* K70 */ be_nested_str_weak(reverse), + /* K71 */ be_nested_str_weak(derive), + /* K72 */ be_nested_str_weak(commissioning_admin_fabric), + /* K73 */ be_nested_str_weak(set_fabric_device), + /* K74 */ be_nested_str_weak(fabric_candidate), + /* K75 */ be_nested_str_weak(start_operational_discovery_deferred), + /* K76 */ be_nested_str_weak(is_PASE), + /* K77 */ be_nested_str_weak(set_expire_in_seconds), + /* K78 */ be_nested_str_weak(log_new_fabric), + /* K79 */ be_nested_str_weak(set_fabric_label), + /* K80 */ be_nested_str_weak(format), + /* K81 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Update_X20fabric_X20_X27_X25s_X27_X20label_X3D_X27_X25s_X27), + /* K82 */ be_nested_str_weak(get_fabric_id), + /* K83 */ be_nested_str_weak(tohex), + /* K84 */ be_nested_str_weak(fabric_index_X3A), + /* K85 */ be_nested_str_weak(active_fabrics), + /* K86 */ be_nested_str_weak(get_fabric_index), + /* K87 */ be_nested_str_weak(set_timer), + /* K88 */ be_nested_str_weak(stop_iteration), + /* K89 */ be_nested_str_weak(MTR_X3A_X20RemoveFabric_X20fabric_X28), + /* K90 */ be_nested_str_weak(_X29_X20not_X20found), + /* K91 */ be_nested_str_weak(INVALID_ACTION), + /* K92 */ be_nested_str_weak(MTR_X3A_X20OpenCommissioningWindow_X28timeout_X3D_X25i_X2C_X20passcode_X3D_X25s_X2C_X20discriminator_X3D_X25i_X2C_X20iterations_X3D_X25i_X2C_X20salt_X3D_X25s_X29), + /* K93 */ be_nested_str_weak(INVALID_DATA_TYPE), + /* K94 */ be_nested_str_weak(MTR_X3A_X20wrong_X20size_X20for_X20PAKE_X20parameters), + /* K95 */ be_nested_str_weak(CONSTRAINT_ERROR), + /* K96 */ be_nested_str_weak(start_basic_commissioning), + /* K97 */ be_nested_str_weak(get_fabric), + /* K98 */ be_nested_str_weak(MTR_X3A_X20OpenBasicCommissioningWindow_X20commissioning_timeout_X3D), + /* K99 */ be_nested_str_weak(start_root_basic_commissioning), + /* K100 */ be_nested_str_weak(stop_basic_commissioning), + /* K101 */ be_nested_str_weak(invoke_request), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[755]) { /* code */ + ( &(const binstruction[709]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xA4160200, // 0001 IMPORT R5 K1 0xB81A0400, // 0002 GETNGBL R6 K2 @@ -257,10 +252,10 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0x80041200, // 005F RET 1 R9 0x70020000, // 0060 JMP #0062 0xB0063119, // 0061 RAISE 1 K24 K25 - 0x7002028D, // 0062 JMP #02F1 + 0x7002025F, // 0062 JMP #02C3 0x5426003D, // 0063 LDINT R9 62 0x1C240E09, // 0064 EQ R9 R7 R9 - 0x782601EF, // 0065 JMPF R9 #0256 + 0x782601C0, // 0065 JMPF R9 #0227 0x1C24110F, // 0066 EQ R9 R8 K15 0x7826001D, // 0067 JMPF R9 #0086 0x8C240507, // 0068 GETMET R9 R2 K7 @@ -292,9 +287,9 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0x7C2C0800, // 0082 CALL R11 4 0x900E0B11, // 0083 SETMBR R3 K5 K17 0x80041400, // 0084 RET 1 R10 - 0x700201CE, // 0085 JMP #0255 + 0x7002019F, // 0085 JMP #0226 0x1C241106, // 0086 EQ R9 R8 K6 - 0x78260044, // 0087 JMPF R9 #00CD + 0x7826003D, // 0087 JMPF R9 #00C6 0x8C240507, // 0088 GETMET R9 R2 K7 0x582C0006, // 0089 LDCONST R11 K6 0x7C240400, // 008A CALL R9 2 @@ -334,586 +329,540 @@ be_local_closure(Matter_Plugin_Root_invoke_request, /* name */ 0x8C300326, // 00AC GETMET R12 R1 K38 0x7C300200, // 00AD CALL R12 1 0x0034160C, // 00AE ADD R13 R11 R12 - 0xB83A4400, // 00AF GETNGBL R14 K34 - 0x8C381D27, // 00B0 GETMET R14 R14 K39 - 0x8C401B29, // 00B1 GETMET R16 R13 K41 - 0x7C400200, // 00B2 CALL R16 1 - 0x00425010, // 00B3 ADD R16 K40 R16 - 0x58440011, // 00B4 LDCONST R17 K17 - 0x7C380600, // 00B5 CALL R14 3 - 0x8C38092A, // 00B6 GETMET R14 R4 K42 - 0x7C380200, // 00B7 CALL R14 1 - 0x8C381D2B, // 00B8 GETMET R14 R14 K43 - 0xB8420400, // 00B9 GETNGBL R16 K2 - 0x8C40212C, // 00BA GETMET R16 R16 K44 - 0x7C400200, // 00BB CALL R16 1 - 0x5C441A00, // 00BC MOVE R17 R13 - 0x7C380600, // 00BD CALL R14 3 - 0x8C3C0D0A, // 00BE GETMET R15 R6 K10 - 0x7C3C0200, // 00BF CALL R15 1 - 0x8C401F0B, // 00C0 GETMET R16 R15 K11 - 0x58480006, // 00C1 LDCONST R18 K6 - 0x884C0D1C, // 00C2 GETMBR R19 R6 K28 - 0x5C501600, // 00C3 MOVE R20 R11 - 0x7C400800, // 00C4 CALL R16 4 - 0x8C401F0B, // 00C5 GETMET R16 R15 K11 - 0x58480008, // 00C6 LDCONST R18 K8 - 0x884C0D20, // 00C7 GETMBR R19 R6 K32 - 0x5C501C00, // 00C8 MOVE R20 R14 - 0x7C400800, // 00C9 CALL R16 4 - 0x900E0B08, // 00CA SETMBR R3 K5 K8 - 0x80041E00, // 00CB RET 1 R15 - 0x70020187, // 00CC JMP #0255 - 0x54260003, // 00CD LDINT R9 4 - 0x1C241009, // 00CE EQ R9 R8 R9 - 0x7826004D, // 00CF JMPF R9 #011E - 0x8C240507, // 00D0 GETMET R9 R2 K7 - 0x582C0006, // 00D1 LDCONST R11 K6 - 0x7C240400, // 00D2 CALL R9 2 - 0x6028000C, // 00D3 GETGBL R10 G12 - 0x5C2C1200, // 00D4 MOVE R11 R9 - 0x7C280200, // 00D5 CALL R10 1 - 0x542E001F, // 00D6 LDINT R11 32 - 0x2028140B, // 00D7 NE R10 R10 R11 - 0x782A0001, // 00D8 JMPF R10 #00DB - 0x4C280000, // 00D9 LDNIL R10 - 0x80041400, // 00DA RET 1 R10 - 0x8C280507, // 00DB GETMET R10 R2 K7 - 0x58300008, // 00DC LDCONST R12 K8 - 0x50340000, // 00DD LDBOOL R13 0 0 - 0x7C280600, // 00DE CALL R10 3 - 0xB82E4400, // 00DF GETNGBL R11 K34 - 0x8C2C1727, // 00E0 GETMET R11 R11 K39 - 0x8C340B2D, // 00E1 GETMET R13 R5 K45 - 0x583C002E, // 00E2 LDCONST R15 K46 - 0x60400008, // 00E3 GETGBL R16 G8 + 0x8C380927, // 00AF GETMET R14 R4 K39 + 0x7C380200, // 00B0 CALL R14 1 + 0x8C381D28, // 00B1 GETMET R14 R14 K40 + 0xB8420400, // 00B2 GETNGBL R16 K2 + 0x8C402129, // 00B3 GETMET R16 R16 K41 + 0x7C400200, // 00B4 CALL R16 1 + 0x5C441A00, // 00B5 MOVE R17 R13 + 0x7C380600, // 00B6 CALL R14 3 + 0x8C3C0D0A, // 00B7 GETMET R15 R6 K10 + 0x7C3C0200, // 00B8 CALL R15 1 + 0x8C401F0B, // 00B9 GETMET R16 R15 K11 + 0x58480006, // 00BA LDCONST R18 K6 + 0x884C0D1C, // 00BB GETMBR R19 R6 K28 + 0x5C501600, // 00BC MOVE R20 R11 + 0x7C400800, // 00BD CALL R16 4 + 0x8C401F0B, // 00BE GETMET R16 R15 K11 + 0x58480008, // 00BF LDCONST R18 K8 + 0x884C0D20, // 00C0 GETMBR R19 R6 K32 + 0x5C501C00, // 00C1 MOVE R20 R14 + 0x7C400800, // 00C2 CALL R16 4 + 0x900E0B08, // 00C3 SETMBR R3 K5 K8 + 0x80041E00, // 00C4 RET 1 R15 + 0x7002015F, // 00C5 JMP #0226 + 0x54260003, // 00C6 LDINT R9 4 + 0x1C241009, // 00C7 EQ R9 R8 R9 + 0x78260039, // 00C8 JMPF R9 #0103 + 0x8C240507, // 00C9 GETMET R9 R2 K7 + 0x582C0006, // 00CA LDCONST R11 K6 + 0x7C240400, // 00CB CALL R9 2 + 0x6028000C, // 00CC GETGBL R10 G12 + 0x5C2C1200, // 00CD MOVE R11 R9 + 0x7C280200, // 00CE CALL R10 1 + 0x542E001F, // 00CF LDINT R11 32 + 0x2028140B, // 00D0 NE R10 R10 R11 + 0x782A0001, // 00D1 JMPF R10 #00D4 + 0x4C280000, // 00D2 LDNIL R10 + 0x80041400, // 00D3 RET 1 R10 + 0x8C280507, // 00D4 GETMET R10 R2 K7 + 0x58300008, // 00D5 LDCONST R12 K8 + 0x50340000, // 00D6 LDBOOL R13 0 0 + 0x7C280600, // 00D7 CALL R10 3 + 0x8C2C032A, // 00D8 GETMET R11 R1 K42 + 0x7C2C0200, // 00D9 CALL R11 1 + 0x8C300D0A, // 00DA GETMET R12 R6 K10 + 0x7C300200, // 00DB CALL R12 1 + 0x8C34190B, // 00DC GETMET R13 R12 K11 + 0x583C0008, // 00DD LDCONST R15 K8 + 0x88400D1C, // 00DE GETMBR R16 R6 K28 + 0x5C441600, // 00DF MOVE R17 R11 + 0x7C340800, // 00E0 CALL R13 4 + 0x8C34190B, // 00E1 GETMET R13 R12 K11 + 0x583C000F, // 00E2 LDCONST R15 K15 + 0x88400D20, // 00E3 GETMBR R16 R6 K32 0x5C441200, // 00E4 MOVE R17 R9 - 0x7C400200, // 00E5 CALL R16 1 - 0x60440008, // 00E6 GETGBL R17 G8 - 0x5C481400, // 00E7 MOVE R18 R10 - 0x7C440200, // 00E8 CALL R17 1 - 0x7C340800, // 00E9 CALL R13 4 - 0x58380011, // 00EA LDCONST R14 K17 - 0x7C2C0600, // 00EB CALL R11 3 - 0x8C2C032F, // 00EC GETMET R11 R1 K47 - 0x7C2C0200, // 00ED CALL R11 1 - 0x8C300D0A, // 00EE GETMET R12 R6 K10 - 0x7C300200, // 00EF CALL R12 1 - 0x8C34190B, // 00F0 GETMET R13 R12 K11 - 0x583C0008, // 00F1 LDCONST R15 K8 - 0x88400D1C, // 00F2 GETMBR R16 R6 K28 - 0x5C441600, // 00F3 MOVE R17 R11 - 0x7C340800, // 00F4 CALL R13 4 - 0x8C34190B, // 00F5 GETMET R13 R12 K11 - 0x583C000F, // 00F6 LDCONST R15 K15 - 0x88400D20, // 00F7 GETMBR R16 R6 K32 - 0x5C441200, // 00F8 MOVE R17 R9 - 0x7C340800, // 00F9 CALL R13 4 - 0x8C341925, // 00FA GETMET R13 R12 K37 - 0x7C340200, // 00FB CALL R13 1 - 0x8C380326, // 00FC GETMET R14 R1 K38 - 0x7C380200, // 00FD CALL R14 1 - 0x00381A0E, // 00FE ADD R14 R13 R14 - 0xB83E4400, // 00FF GETNGBL R15 K34 - 0x8C3C1F27, // 0100 GETMET R15 R15 K39 - 0x8C441D29, // 0101 GETMET R17 R14 K41 - 0x7C440200, // 0102 CALL R17 1 - 0x00466011, // 0103 ADD R17 K48 R17 - 0x58480011, // 0104 LDCONST R18 K17 - 0x7C3C0600, // 0105 CALL R15 3 - 0x8C3C092A, // 0106 GETMET R15 R4 K42 - 0x7C3C0200, // 0107 CALL R15 1 - 0x8C3C1F2B, // 0108 GETMET R15 R15 K43 - 0xB8460400, // 0109 GETNGBL R17 K2 - 0x8C44232C, // 010A GETMET R17 R17 K44 - 0x7C440200, // 010B CALL R17 1 - 0x5C481C00, // 010C MOVE R18 R14 - 0x7C3C0600, // 010D CALL R15 3 - 0x8C400D0A, // 010E GETMET R16 R6 K10 - 0x7C400200, // 010F CALL R16 1 - 0x8C44210B, // 0110 GETMET R17 R16 K11 - 0x584C0006, // 0111 LDCONST R19 K6 - 0x88500D1C, // 0112 GETMBR R20 R6 K28 - 0x5C541A00, // 0113 MOVE R21 R13 - 0x7C440800, // 0114 CALL R17 4 - 0x8C44210B, // 0115 GETMET R17 R16 K11 - 0x584C0008, // 0116 LDCONST R19 K8 - 0x88500D20, // 0117 GETMBR R20 R6 K32 - 0x5C541E00, // 0118 MOVE R21 R15 - 0x7C440800, // 0119 CALL R17 4 - 0x54460004, // 011A LDINT R17 5 - 0x900E0A11, // 011B SETMBR R3 K5 R17 - 0x80042000, // 011C RET 1 R16 - 0x70020136, // 011D JMP #0255 - 0x5426000A, // 011E LDINT R9 11 - 0x1C241009, // 011F EQ R9 R8 R9 - 0x78260012, // 0120 JMPF R9 #0134 - 0x8C240507, // 0121 GETMET R9 R2 K7 - 0x582C0006, // 0122 LDCONST R11 K6 - 0x7C240400, // 0123 CALL R9 2 - 0x8C280331, // 0124 GETMET R10 R1 K49 - 0x5C301200, // 0125 MOVE R12 R9 - 0x7C280400, // 0126 CALL R10 2 - 0xB82A4400, // 0127 GETNGBL R10 K34 - 0x8C281527, // 0128 GETMET R10 R10 K39 - 0x8C301329, // 0129 GETMET R12 R9 K41 - 0x7C300200, // 012A CALL R12 1 - 0x0032640C, // 012B ADD R12 K50 R12 - 0x58340011, // 012C LDCONST R13 K17 - 0x7C280600, // 012D CALL R10 3 - 0xB82A0400, // 012E GETNGBL R10 K2 - 0x88281533, // 012F GETMBR R10 R10 K51 - 0x900E340A, // 0130 SETMBR R3 K26 R10 - 0x4C280000, // 0131 LDNIL R10 - 0x80041400, // 0132 RET 1 R10 - 0x70020120, // 0133 JMP #0255 - 0x54260005, // 0134 LDINT R9 6 - 0x1C241009, // 0135 EQ R9 R8 R9 - 0x782600B9, // 0136 JMPF R9 #01F1 - 0xB8264400, // 0137 GETNGBL R9 K34 - 0x8C241327, // 0138 GETMET R9 R9 K39 - 0x602C0008, // 0139 GETGBL R11 G8 - 0x5C300400, // 013A MOVE R12 R2 - 0x7C2C0200, // 013B CALL R11 1 - 0x002E680B, // 013C ADD R11 K52 R11 - 0x58300011, // 013D LDCONST R12 K17 - 0x7C240600, // 013E CALL R9 3 - 0x8C240507, // 013F GETMET R9 R2 K7 - 0x582C0006, // 0140 LDCONST R11 K6 - 0x7C240400, // 0141 CALL R9 2 - 0x8C280507, // 0142 GETMET R10 R2 K7 - 0x58300008, // 0143 LDCONST R12 K8 - 0x7C280400, // 0144 CALL R10 2 - 0x602C000C, // 0145 GETGBL R11 G12 - 0x5C301400, // 0146 MOVE R12 R10 - 0x7C2C0200, // 0147 CALL R11 1 - 0x1C2C1706, // 0148 EQ R11 R11 K6 - 0x782E0000, // 0149 JMPF R11 #014B - 0x4C280000, // 014A LDNIL R10 - 0x8C2C0507, // 014B GETMET R11 R2 K7 - 0x5834000F, // 014C LDCONST R13 K15 - 0x7C2C0400, // 014D CALL R11 2 - 0x8C300507, // 014E GETMET R12 R2 K7 - 0x58380011, // 014F LDCONST R14 K17 - 0x7C300400, // 0150 CALL R12 2 - 0x8C340507, // 0151 GETMET R13 R2 K7 - 0x543E0003, // 0152 LDINT R15 4 - 0x7C340400, // 0153 CALL R13 2 - 0x8C380335, // 0154 GETMET R14 R1 K53 - 0x7C380200, // 0155 CALL R14 1 - 0x4C3C0000, // 0156 LDNIL R15 - 0x1C381C0F, // 0157 EQ R14 R14 R15 - 0x783A0006, // 0158 JMPF R14 #0160 - 0xB83A4400, // 0159 GETNGBL R14 K34 - 0x8C381D27, // 015A GETMET R14 R14 K39 - 0x58400036, // 015B LDCONST R16 K54 - 0x5844000F, // 015C LDCONST R17 K15 - 0x7C380600, // 015D CALL R14 3 - 0x4C380000, // 015E LDNIL R14 - 0x80041C00, // 015F RET 1 R14 - 0x88380116, // 0160 GETMBR R14 R0 K22 - 0x88381D37, // 0161 GETMBR R14 R14 K55 - 0x8C381D38, // 0162 GETMET R14 R14 K56 - 0x7C380200, // 0163 CALL R14 1 - 0x8C3C1D39, // 0164 GETMET R15 R14 K57 - 0x8C440335, // 0165 GETMET R17 R1 K53 - 0x7C440200, // 0166 CALL R17 1 - 0x7C3C0400, // 0167 CALL R15 2 - 0x8C3C1D3A, // 0168 GETMET R15 R14 K58 - 0x5C441200, // 0169 MOVE R17 R9 - 0x5C481400, // 016A MOVE R18 R10 - 0x7C3C0600, // 016B CALL R15 3 - 0x8C3C1D3B, // 016C GETMET R15 R14 K59 - 0x5C441600, // 016D MOVE R17 R11 - 0x7C3C0400, // 016E CALL R15 2 - 0x8C3C1D3C, // 016F GETMET R15 R14 K60 - 0x5C441800, // 0170 MOVE R17 R12 - 0x5C481A00, // 0171 MOVE R18 R13 - 0x7C3C0600, // 0172 CALL R15 3 - 0x8C3C1D3D, // 0173 GETMET R15 R14 K61 - 0x8C44033E, // 0174 GETMET R17 R1 K62 - 0x7C440200, // 0175 CALL R17 1 - 0x7C3C0400, // 0176 CALL R15 2 - 0xB83E0400, // 0177 GETNGBL R15 K2 - 0x883C1F03, // 0178 GETMBR R15 R15 K3 - 0x8C3C1F3F, // 0179 GETMET R15 R15 K63 - 0x5C441200, // 017A MOVE R17 R9 - 0x7C3C0400, // 017B CALL R15 2 - 0x8C401F40, // 017C GETMET R16 R15 K64 - 0x544A0005, // 017D LDINT R18 6 - 0x7C400400, // 017E CALL R16 2 - 0x8C442107, // 017F GETMET R17 R16 K7 - 0x544E0014, // 0180 LDINT R19 21 - 0x7C440400, // 0181 CALL R17 2 - 0x8C482107, // 0182 GETMET R18 R16 K7 - 0x54520010, // 0183 LDINT R20 17 - 0x7C480400, // 0184 CALL R18 2 - 0x5C4C2200, // 0185 MOVE R19 R17 - 0x784E0001, // 0186 JMPF R19 #0189 - 0x5C4C2400, // 0187 MOVE R19 R18 - 0x744E0006, // 0188 JMPT R19 #0190 - 0xB84E4400, // 0189 GETNGBL R19 K34 - 0x8C4C2727, // 018A GETMET R19 R19 K39 - 0x58540041, // 018B LDCONST R21 K65 - 0x5858000F, // 018C LDCONST R22 K15 - 0x7C4C0600, // 018D CALL R19 3 - 0x504C0000, // 018E LDBOOL R19 0 0 - 0x80042600, // 018F RET 1 R19 - 0x604C0004, // 0190 GETGBL R19 G4 - 0x5C502200, // 0191 MOVE R20 R17 - 0x7C4C0200, // 0192 CALL R19 1 - 0x1C4C2742, // 0193 EQ R19 R19 K66 - 0x784E0007, // 0194 JMPF R19 #019D - 0xB84E8600, // 0195 GETNGBL R19 K67 - 0x8C4C2744, // 0196 GETMET R19 R19 K68 - 0x5C542200, // 0197 MOVE R21 R17 - 0x7C4C0400, // 0198 CALL R19 2 - 0x8C4C2745, // 0199 GETMET R19 R19 K69 - 0x7C4C0200, // 019A CALL R19 1 - 0x5C442600, // 019B MOVE R17 R19 - 0x70020002, // 019C JMP #01A0 - 0x8C4C2345, // 019D GETMET R19 R17 K69 - 0x7C4C0200, // 019E CALL R19 1 - 0x5C442600, // 019F MOVE R17 R19 - 0x604C0004, // 01A0 GETGBL R19 G4 - 0x5C502400, // 01A1 MOVE R20 R18 - 0x7C4C0200, // 01A2 CALL R19 1 - 0x1C4C2742, // 01A3 EQ R19 R19 K66 - 0x784E0007, // 01A4 JMPF R19 #01AD - 0xB84E8600, // 01A5 GETNGBL R19 K67 - 0x8C4C2744, // 01A6 GETMET R19 R19 K68 - 0x5C542400, // 01A7 MOVE R21 R18 - 0x7C4C0400, // 01A8 CALL R19 2 - 0x8C4C2745, // 01A9 GETMET R19 R19 K69 - 0x7C4C0200, // 01AA CALL R19 1 - 0x5C482600, // 01AB MOVE R18 R19 - 0x70020002, // 01AC JMP #01B0 - 0x8C4C2545, // 01AD GETMET R19 R18 K69 - 0x7C4C0200, // 01AE CALL R19 1 - 0x5C482600, // 01AF MOVE R18 R19 - 0x8C4C0346, // 01B0 GETMET R19 R1 K70 - 0x7C4C0200, // 01B1 CALL R19 1 - 0x40521147, // 01B2 CONNECT R20 K8 K71 - 0x944C2614, // 01B3 GETIDX R19 R19 R20 - 0x60540015, // 01B4 GETGBL R21 G21 - 0x7C540000, // 01B5 CALL R21 0 - 0x8C542B48, // 01B6 GETMET R21 R21 K72 - 0x585C0049, // 01B7 LDCONST R23 K73 - 0x7C540400, // 01B8 CALL R21 2 - 0x5C502A00, // 01B9 MOVE R20 R21 - 0x8C54094A, // 01BA GETMET R21 R4 K74 - 0x7C540200, // 01BB CALL R21 1 - 0x8C58234B, // 01BC GETMET R22 R17 K75 - 0x7C580200, // 01BD CALL R22 1 - 0x8C582D4C, // 01BE GETMET R22 R22 K76 - 0x7C580200, // 01BF CALL R22 1 - 0x8C5C2B4D, // 01C0 GETMET R23 R21 K77 - 0x5C642600, // 01C1 MOVE R25 R19 - 0x5C682C00, // 01C2 MOVE R26 R22 - 0x5C6C2800, // 01C3 MOVE R27 R20 - 0x54720007, // 01C4 LDINT R28 8 - 0x7C5C0A00, // 01C5 CALL R23 5 - 0x88600312, // 01C6 GETMBR R24 R1 K18 - 0x78620001, // 01C7 JMPF R24 #01CA - 0x88600312, // 01C8 GETMBR R24 R1 K18 - 0x70020001, // 01C9 JMP #01CC - 0x88600116, // 01CA GETMBR R24 R0 K22 - 0x8860314E, // 01CB GETMBR R24 R24 K78 - 0x8C641D4F, // 01CC GETMET R25 R14 K79 - 0x5C6C2200, // 01CD MOVE R27 R17 - 0x5C702400, // 01CE MOVE R28 R18 - 0x5C742E00, // 01CF MOVE R29 R23 - 0x5C783000, // 01D0 MOVE R30 R24 - 0x7C640A00, // 01D1 CALL R25 5 - 0x8C641D50, // 01D2 GETMET R25 R14 K80 - 0x7C640200, // 01D3 CALL R25 1 - 0x88640116, // 01D4 GETMBR R25 R0 K22 - 0x8C643351, // 01D5 GETMET R25 R25 K81 - 0x5C6C1C00, // 01D6 MOVE R27 R14 - 0x7C640400, // 01D7 CALL R25 2 - 0x8C640352, // 01D8 GETMET R25 R1 K82 - 0x7C640200, // 01D9 CALL R25 1 - 0x78660002, // 01DA JMPF R25 #01DE - 0x8C640353, // 01DB GETMET R25 R1 K83 - 0x546E003B, // 01DC LDINT R27 60 - 0x7C640400, // 01DD CALL R25 2 - 0x8C641D54, // 01DE GETMET R25 R14 K84 - 0x7C640200, // 01DF CALL R25 1 - 0x8C640D0A, // 01E0 GETMET R25 R6 K10 - 0x7C640200, // 01E1 CALL R25 1 - 0x8C68330B, // 01E2 GETMET R26 R25 K11 - 0x58700006, // 01E3 LDCONST R28 K6 - 0x88740D0C, // 01E4 GETMBR R29 R6 K12 - 0xB87A0400, // 01E5 GETNGBL R30 K2 - 0x88783D33, // 01E6 GETMBR R30 R30 K51 - 0x7C680800, // 01E7 CALL R26 4 - 0x8C68330B, // 01E8 GETMET R26 R25 K11 - 0x58700008, // 01E9 LDCONST R28 K8 - 0x88740D0C, // 01EA GETMBR R29 R6 K12 - 0x58780008, // 01EB LDCONST R30 K8 - 0x7C680800, // 01EC CALL R26 4 - 0x546A0007, // 01ED LDINT R26 8 - 0x900E0A1A, // 01EE SETMBR R3 K5 R26 - 0x80043200, // 01EF RET 1 R25 - 0x70020063, // 01F0 JMP #0255 - 0x54260008, // 01F1 LDINT R9 9 + 0x7C340800, // 00E5 CALL R13 4 + 0x8C341925, // 00E6 GETMET R13 R12 K37 + 0x7C340200, // 00E7 CALL R13 1 + 0x8C380326, // 00E8 GETMET R14 R1 K38 + 0x7C380200, // 00E9 CALL R14 1 + 0x00381A0E, // 00EA ADD R14 R13 R14 + 0x8C3C0927, // 00EB GETMET R15 R4 K39 + 0x7C3C0200, // 00EC CALL R15 1 + 0x8C3C1F28, // 00ED GETMET R15 R15 K40 + 0xB8460400, // 00EE GETNGBL R17 K2 + 0x8C442329, // 00EF GETMET R17 R17 K41 + 0x7C440200, // 00F0 CALL R17 1 + 0x5C481C00, // 00F1 MOVE R18 R14 + 0x7C3C0600, // 00F2 CALL R15 3 + 0x8C400D0A, // 00F3 GETMET R16 R6 K10 + 0x7C400200, // 00F4 CALL R16 1 + 0x8C44210B, // 00F5 GETMET R17 R16 K11 + 0x584C0006, // 00F6 LDCONST R19 K6 + 0x88500D1C, // 00F7 GETMBR R20 R6 K28 + 0x5C541A00, // 00F8 MOVE R21 R13 + 0x7C440800, // 00F9 CALL R17 4 + 0x8C44210B, // 00FA GETMET R17 R16 K11 + 0x584C0008, // 00FB LDCONST R19 K8 + 0x88500D20, // 00FC GETMBR R20 R6 K32 + 0x5C541E00, // 00FD MOVE R21 R15 + 0x7C440800, // 00FE CALL R17 4 + 0x54460004, // 00FF LDINT R17 5 + 0x900E0A11, // 0100 SETMBR R3 K5 R17 + 0x80042000, // 0101 RET 1 R16 + 0x70020122, // 0102 JMP #0226 + 0x5426000A, // 0103 LDINT R9 11 + 0x1C241009, // 0104 EQ R9 R8 R9 + 0x7826000B, // 0105 JMPF R9 #0112 + 0x8C240507, // 0106 GETMET R9 R2 K7 + 0x582C0006, // 0107 LDCONST R11 K6 + 0x7C240400, // 0108 CALL R9 2 + 0x8C28032B, // 0109 GETMET R10 R1 K43 + 0x5C301200, // 010A MOVE R12 R9 + 0x7C280400, // 010B CALL R10 2 + 0xB82A0400, // 010C GETNGBL R10 K2 + 0x8828152C, // 010D GETMBR R10 R10 K44 + 0x900E340A, // 010E SETMBR R3 K26 R10 + 0x4C280000, // 010F LDNIL R10 + 0x80041400, // 0110 RET 1 R10 + 0x70020113, // 0111 JMP #0226 + 0x54260005, // 0112 LDINT R9 6 + 0x1C241009, // 0113 EQ R9 R8 R9 + 0x782600B9, // 0114 JMPF R9 #01CF + 0xB8264400, // 0115 GETNGBL R9 K34 + 0x8C24132D, // 0116 GETMET R9 R9 K45 + 0x602C0008, // 0117 GETGBL R11 G8 + 0x5C300400, // 0118 MOVE R12 R2 + 0x7C2C0200, // 0119 CALL R11 1 + 0x002E5C0B, // 011A ADD R11 K46 R11 + 0x54320003, // 011B LDINT R12 4 + 0x7C240600, // 011C CALL R9 3 + 0x8C240507, // 011D GETMET R9 R2 K7 + 0x582C0006, // 011E LDCONST R11 K6 + 0x7C240400, // 011F CALL R9 2 + 0x8C280507, // 0120 GETMET R10 R2 K7 + 0x58300008, // 0121 LDCONST R12 K8 + 0x7C280400, // 0122 CALL R10 2 + 0x602C000C, // 0123 GETGBL R11 G12 + 0x5C301400, // 0124 MOVE R12 R10 + 0x7C2C0200, // 0125 CALL R11 1 + 0x1C2C1706, // 0126 EQ R11 R11 K6 + 0x782E0000, // 0127 JMPF R11 #0129 + 0x4C280000, // 0128 LDNIL R10 + 0x8C2C0507, // 0129 GETMET R11 R2 K7 + 0x5834000F, // 012A LDCONST R13 K15 + 0x7C2C0400, // 012B CALL R11 2 + 0x8C300507, // 012C GETMET R12 R2 K7 + 0x58380011, // 012D LDCONST R14 K17 + 0x7C300400, // 012E CALL R12 2 + 0x8C340507, // 012F GETMET R13 R2 K7 + 0x543E0003, // 0130 LDINT R15 4 + 0x7C340400, // 0131 CALL R13 2 + 0x8C38032F, // 0132 GETMET R14 R1 K47 + 0x7C380200, // 0133 CALL R14 1 + 0x4C3C0000, // 0134 LDNIL R15 + 0x1C381C0F, // 0135 EQ R14 R14 R15 + 0x783A0006, // 0136 JMPF R14 #013E + 0xB83A4400, // 0137 GETNGBL R14 K34 + 0x8C381D2D, // 0138 GETMET R14 R14 K45 + 0x58400030, // 0139 LDCONST R16 K48 + 0x5844000F, // 013A LDCONST R17 K15 + 0x7C380600, // 013B CALL R14 3 + 0x4C380000, // 013C LDNIL R14 + 0x80041C00, // 013D RET 1 R14 + 0x88380116, // 013E GETMBR R14 R0 K22 + 0x88381D31, // 013F GETMBR R14 R14 K49 + 0x8C381D32, // 0140 GETMET R14 R14 K50 + 0x7C380200, // 0141 CALL R14 1 + 0x8C3C1D33, // 0142 GETMET R15 R14 K51 + 0x8C44032F, // 0143 GETMET R17 R1 K47 + 0x7C440200, // 0144 CALL R17 1 + 0x7C3C0400, // 0145 CALL R15 2 + 0x8C3C1D34, // 0146 GETMET R15 R14 K52 + 0x5C441200, // 0147 MOVE R17 R9 + 0x5C481400, // 0148 MOVE R18 R10 + 0x7C3C0600, // 0149 CALL R15 3 + 0x8C3C1D35, // 014A GETMET R15 R14 K53 + 0x5C441600, // 014B MOVE R17 R11 + 0x7C3C0400, // 014C CALL R15 2 + 0x8C3C1D36, // 014D GETMET R15 R14 K54 + 0x5C441800, // 014E MOVE R17 R12 + 0x5C481A00, // 014F MOVE R18 R13 + 0x7C3C0600, // 0150 CALL R15 3 + 0x8C3C1D37, // 0151 GETMET R15 R14 K55 + 0x8C440338, // 0152 GETMET R17 R1 K56 + 0x7C440200, // 0153 CALL R17 1 + 0x7C3C0400, // 0154 CALL R15 2 + 0xB83E0400, // 0155 GETNGBL R15 K2 + 0x883C1F03, // 0156 GETMBR R15 R15 K3 + 0x8C3C1F39, // 0157 GETMET R15 R15 K57 + 0x5C441200, // 0158 MOVE R17 R9 + 0x7C3C0400, // 0159 CALL R15 2 + 0x8C401F3A, // 015A GETMET R16 R15 K58 + 0x544A0005, // 015B LDINT R18 6 + 0x7C400400, // 015C CALL R16 2 + 0x8C442107, // 015D GETMET R17 R16 K7 + 0x544E0014, // 015E LDINT R19 21 + 0x7C440400, // 015F CALL R17 2 + 0x8C482107, // 0160 GETMET R18 R16 K7 + 0x54520010, // 0161 LDINT R20 17 + 0x7C480400, // 0162 CALL R18 2 + 0x5C4C2200, // 0163 MOVE R19 R17 + 0x784E0001, // 0164 JMPF R19 #0167 + 0x5C4C2400, // 0165 MOVE R19 R18 + 0x744E0006, // 0166 JMPT R19 #016E + 0xB84E4400, // 0167 GETNGBL R19 K34 + 0x8C4C272D, // 0168 GETMET R19 R19 K45 + 0x5854003B, // 0169 LDCONST R21 K59 + 0x5858000F, // 016A LDCONST R22 K15 + 0x7C4C0600, // 016B CALL R19 3 + 0x504C0000, // 016C LDBOOL R19 0 0 + 0x80042600, // 016D RET 1 R19 + 0x604C0004, // 016E GETGBL R19 G4 + 0x5C502200, // 016F MOVE R20 R17 + 0x7C4C0200, // 0170 CALL R19 1 + 0x1C4C273C, // 0171 EQ R19 R19 K60 + 0x784E0007, // 0172 JMPF R19 #017B + 0xB84E7A00, // 0173 GETNGBL R19 K61 + 0x8C4C273E, // 0174 GETMET R19 R19 K62 + 0x5C542200, // 0175 MOVE R21 R17 + 0x7C4C0400, // 0176 CALL R19 2 + 0x8C4C273F, // 0177 GETMET R19 R19 K63 + 0x7C4C0200, // 0178 CALL R19 1 + 0x5C442600, // 0179 MOVE R17 R19 + 0x70020002, // 017A JMP #017E + 0x8C4C233F, // 017B GETMET R19 R17 K63 + 0x7C4C0200, // 017C CALL R19 1 + 0x5C442600, // 017D MOVE R17 R19 + 0x604C0004, // 017E GETGBL R19 G4 + 0x5C502400, // 017F MOVE R20 R18 + 0x7C4C0200, // 0180 CALL R19 1 + 0x1C4C273C, // 0181 EQ R19 R19 K60 + 0x784E0007, // 0182 JMPF R19 #018B + 0xB84E7A00, // 0183 GETNGBL R19 K61 + 0x8C4C273E, // 0184 GETMET R19 R19 K62 + 0x5C542400, // 0185 MOVE R21 R18 + 0x7C4C0400, // 0186 CALL R19 2 + 0x8C4C273F, // 0187 GETMET R19 R19 K63 + 0x7C4C0200, // 0188 CALL R19 1 + 0x5C482600, // 0189 MOVE R18 R19 + 0x70020002, // 018A JMP #018E + 0x8C4C253F, // 018B GETMET R19 R18 K63 + 0x7C4C0200, // 018C CALL R19 1 + 0x5C482600, // 018D MOVE R18 R19 + 0x8C4C0340, // 018E GETMET R19 R1 K64 + 0x7C4C0200, // 018F CALL R19 1 + 0x40521141, // 0190 CONNECT R20 K8 K65 + 0x944C2614, // 0191 GETIDX R19 R19 R20 + 0x60540015, // 0192 GETGBL R21 G21 + 0x7C540000, // 0193 CALL R21 0 + 0x8C542B42, // 0194 GETMET R21 R21 K66 + 0x585C0043, // 0195 LDCONST R23 K67 + 0x7C540400, // 0196 CALL R21 2 + 0x5C502A00, // 0197 MOVE R20 R21 + 0x8C540944, // 0198 GETMET R21 R4 K68 + 0x7C540200, // 0199 CALL R21 1 + 0x8C582345, // 019A GETMET R22 R17 K69 + 0x7C580200, // 019B CALL R22 1 + 0x8C582D46, // 019C GETMET R22 R22 K70 + 0x7C580200, // 019D CALL R22 1 + 0x8C5C2B47, // 019E GETMET R23 R21 K71 + 0x5C642600, // 019F MOVE R25 R19 + 0x5C682C00, // 01A0 MOVE R26 R22 + 0x5C6C2800, // 01A1 MOVE R27 R20 + 0x54720007, // 01A2 LDINT R28 8 + 0x7C5C0A00, // 01A3 CALL R23 5 + 0x88600312, // 01A4 GETMBR R24 R1 K18 + 0x78620001, // 01A5 JMPF R24 #01A8 + 0x88600312, // 01A6 GETMBR R24 R1 K18 + 0x70020001, // 01A7 JMP #01AA + 0x88600116, // 01A8 GETMBR R24 R0 K22 + 0x88603148, // 01A9 GETMBR R24 R24 K72 + 0x8C641D49, // 01AA GETMET R25 R14 K73 + 0x5C6C2200, // 01AB MOVE R27 R17 + 0x5C702400, // 01AC MOVE R28 R18 + 0x5C742E00, // 01AD MOVE R29 R23 + 0x5C783000, // 01AE MOVE R30 R24 + 0x7C640A00, // 01AF CALL R25 5 + 0x8C641D4A, // 01B0 GETMET R25 R14 K74 + 0x7C640200, // 01B1 CALL R25 1 + 0x88640116, // 01B2 GETMBR R25 R0 K22 + 0x8C64334B, // 01B3 GETMET R25 R25 K75 + 0x5C6C1C00, // 01B4 MOVE R27 R14 + 0x7C640400, // 01B5 CALL R25 2 + 0x8C64034C, // 01B6 GETMET R25 R1 K76 + 0x7C640200, // 01B7 CALL R25 1 + 0x78660002, // 01B8 JMPF R25 #01BC + 0x8C64034D, // 01B9 GETMET R25 R1 K77 + 0x546E003B, // 01BA LDINT R27 60 + 0x7C640400, // 01BB CALL R25 2 + 0x8C641D4E, // 01BC GETMET R25 R14 K78 + 0x7C640200, // 01BD CALL R25 1 + 0x8C640D0A, // 01BE GETMET R25 R6 K10 + 0x7C640200, // 01BF CALL R25 1 + 0x8C68330B, // 01C0 GETMET R26 R25 K11 + 0x58700006, // 01C1 LDCONST R28 K6 + 0x88740D0C, // 01C2 GETMBR R29 R6 K12 + 0xB87A0400, // 01C3 GETNGBL R30 K2 + 0x88783D2C, // 01C4 GETMBR R30 R30 K44 + 0x7C680800, // 01C5 CALL R26 4 + 0x8C68330B, // 01C6 GETMET R26 R25 K11 + 0x58700008, // 01C7 LDCONST R28 K8 + 0x88740D0C, // 01C8 GETMBR R29 R6 K12 + 0x58780008, // 01C9 LDCONST R30 K8 + 0x7C680800, // 01CA CALL R26 4 + 0x546A0007, // 01CB LDINT R26 8 + 0x900E0A1A, // 01CC SETMBR R3 K5 R26 + 0x80043200, // 01CD RET 1 R25 + 0x70020056, // 01CE JMP #0226 + 0x54260008, // 01CF LDINT R9 9 + 0x1C241009, // 01D0 EQ R9 R8 R9 + 0x7826001E, // 01D1 JMPF R9 #01F1 + 0x8C240507, // 01D2 GETMET R9 R2 K7 + 0x582C0006, // 01D3 LDCONST R11 K6 + 0x7C240400, // 01D4 CALL R9 2 + 0x8C28034F, // 01D5 GETMET R10 R1 K79 + 0x5C301200, // 01D6 MOVE R12 R9 + 0x7C280400, // 01D7 CALL R10 2 + 0xB82A4400, // 01D8 GETNGBL R10 K34 + 0x8C28152D, // 01D9 GETMET R10 R10 K45 + 0x8C300B50, // 01DA GETMET R12 R5 K80 + 0x58380051, // 01DB LDCONST R14 K81 + 0x883C0312, // 01DC GETMBR R15 R1 K18 + 0x8C3C1F52, // 01DD GETMET R15 R15 K82 + 0x7C3C0200, // 01DE CALL R15 1 + 0x8C3C1F45, // 01DF GETMET R15 R15 K69 + 0x7C3C0200, // 01E0 CALL R15 1 + 0x8C3C1F46, // 01E1 GETMET R15 R15 K70 + 0x7C3C0200, // 01E2 CALL R15 1 + 0x8C3C1F53, // 01E3 GETMET R15 R15 K83 + 0x7C3C0200, // 01E4 CALL R15 1 + 0x60400008, // 01E5 GETGBL R16 G8 + 0x5C441200, // 01E6 MOVE R17 R9 + 0x7C400200, // 01E7 CALL R16 1 + 0x7C300800, // 01E8 CALL R12 4 + 0x58340011, // 01E9 LDCONST R13 K17 + 0x7C280600, // 01EA CALL R10 3 + 0xB82A0400, // 01EB GETNGBL R10 K2 + 0x8828152C, // 01EC GETMBR R10 R10 K44 + 0x900E340A, // 01ED SETMBR R3 K26 R10 + 0x4C280000, // 01EE LDNIL R10 + 0x80041400, // 01EF RET 1 R10 + 0x70020034, // 01F0 JMP #0226 + 0x54260009, // 01F1 LDINT R9 10 0x1C241009, // 01F2 EQ R9 R8 R9 - 0x7826001E, // 01F3 JMPF R9 #0213 + 0x78260031, // 01F3 JMPF R9 #0226 0x8C240507, // 01F4 GETMET R9 R2 K7 0x582C0006, // 01F5 LDCONST R11 K6 0x7C240400, // 01F6 CALL R9 2 - 0x8C280355, // 01F7 GETMET R10 R1 K85 - 0x5C301200, // 01F8 MOVE R12 R9 - 0x7C280400, // 01F9 CALL R10 2 - 0xB82A4400, // 01FA GETNGBL R10 K34 - 0x8C281527, // 01FB GETMET R10 R10 K39 - 0x8C300B2D, // 01FC GETMET R12 R5 K45 - 0x58380056, // 01FD LDCONST R14 K86 - 0x883C0312, // 01FE GETMBR R15 R1 K18 - 0x8C3C1F57, // 01FF GETMET R15 R15 K87 - 0x7C3C0200, // 0200 CALL R15 1 - 0x8C3C1F4B, // 0201 GETMET R15 R15 K75 - 0x7C3C0200, // 0202 CALL R15 1 - 0x8C3C1F4C, // 0203 GETMET R15 R15 K76 - 0x7C3C0200, // 0204 CALL R15 1 - 0x8C3C1F29, // 0205 GETMET R15 R15 K41 - 0x7C3C0200, // 0206 CALL R15 1 - 0x60400008, // 0207 GETGBL R16 G8 - 0x5C441200, // 0208 MOVE R17 R9 - 0x7C400200, // 0209 CALL R16 1 - 0x7C300800, // 020A CALL R12 4 - 0x5834000F, // 020B LDCONST R13 K15 - 0x7C280600, // 020C CALL R10 3 - 0xB82A0400, // 020D GETNGBL R10 K2 - 0x88281533, // 020E GETMBR R10 R10 K51 - 0x900E340A, // 020F SETMBR R3 K26 R10 - 0x4C280000, // 0210 LDNIL R10 - 0x80041400, // 0211 RET 1 R10 - 0x70020041, // 0212 JMP #0255 - 0x54260009, // 0213 LDINT R9 10 - 0x1C241009, // 0214 EQ R9 R8 R9 - 0x7826003E, // 0215 JMPF R9 #0255 - 0x8C240507, // 0216 GETMET R9 R2 K7 - 0x582C0006, // 0217 LDCONST R11 K6 - 0x7C240400, // 0218 CALL R9 2 - 0x60280008, // 0219 GETGBL R10 G8 - 0x5C2C1200, // 021A MOVE R11 R9 - 0x7C280200, // 021B CALL R10 1 - 0x002AB00A, // 021C ADD R10 K88 R10 - 0x900E4E0A, // 021D SETMBR R3 K39 R10 - 0x60280010, // 021E GETGBL R10 G16 - 0x882C0116, // 021F GETMBR R11 R0 K22 - 0x882C1737, // 0220 GETMBR R11 R11 K55 - 0x8C2C1759, // 0221 GETMET R11 R11 K89 - 0x7C2C0200, // 0222 CALL R11 1 - 0x7C280200, // 0223 CALL R10 1 - 0xA802001D, // 0224 EXBLK 0 #0243 - 0x5C2C1400, // 0225 MOVE R11 R10 - 0x7C2C0000, // 0226 CALL R11 0 - 0x8C30175A, // 0227 GETMET R12 R11 K90 - 0x7C300200, // 0228 CALL R12 1 - 0x1C301809, // 0229 EQ R12 R12 R9 - 0x78320015, // 022A JMPF R12 #0241 - 0xB8324400, // 022B GETNGBL R12 K34 - 0x8C301927, // 022C GETMET R12 R12 K39 - 0x8C381757, // 022D GETMET R14 R11 K87 - 0x7C380200, // 022E CALL R14 1 - 0x8C381D4B, // 022F GETMET R14 R14 K75 - 0x7C380200, // 0230 CALL R14 1 - 0x8C381D4C, // 0231 GETMET R14 R14 K76 - 0x7C380200, // 0232 CALL R14 1 - 0x8C381D29, // 0233 GETMET R14 R14 K41 - 0x7C380200, // 0234 CALL R14 1 - 0x003AB60E, // 0235 ADD R14 K91 R14 - 0x583C000F, // 0236 LDCONST R15 K15 - 0x7C300600, // 0237 CALL R12 3 - 0xB8324400, // 0238 GETNGBL R12 K34 - 0x8C30195C, // 0239 GETMET R12 R12 K92 - 0x543A07CF, // 023A LDINT R14 2000 - 0x843C0000, // 023B CLOSURE R15 P0 - 0x7C300600, // 023C CALL R12 3 - 0x50300200, // 023D LDBOOL R12 1 0 - 0xA0000000, // 023E CLOSE R0 - 0xA8040001, // 023F EXBLK 1 1 - 0x80041800, // 0240 RET 1 R12 - 0xA0280000, // 0241 CLOSE R10 - 0x7001FFE1, // 0242 JMP #0225 - 0x5828005D, // 0243 LDCONST R10 K93 - 0xAC280200, // 0244 CATCH R10 1 0 - 0xB0080000, // 0245 RAISE 2 R0 R0 - 0xB82A4400, // 0246 GETNGBL R10 K34 - 0x8C281527, // 0247 GETMET R10 R10 K39 - 0x60300008, // 0248 GETGBL R12 G8 - 0x5C341200, // 0249 MOVE R13 R9 - 0x7C300200, // 024A CALL R12 1 - 0x0032BC0C, // 024B ADD R12 K94 R12 - 0x0030195F, // 024C ADD R12 R12 K95 - 0x5834000F, // 024D LDCONST R13 K15 - 0x7C280600, // 024E CALL R10 3 - 0xB82A0400, // 024F GETNGBL R10 K2 - 0x88281560, // 0250 GETMBR R10 R10 K96 - 0x900E340A, // 0251 SETMBR R3 K26 R10 - 0x4C280000, // 0252 LDNIL R10 - 0xA0000000, // 0253 CLOSE R0 - 0x80041400, // 0254 RET 1 R10 - 0x7002009A, // 0255 JMP #02F1 - 0x5426003B, // 0256 LDINT R9 60 - 0x1C240E09, // 0257 EQ R9 R7 R9 - 0x78260084, // 0258 JMPF R9 #02DE - 0x1C241106, // 0259 EQ R9 R8 K6 - 0x78260064, // 025A JMPF R9 #02C0 - 0x8C240507, // 025B GETMET R9 R2 K7 - 0x582C0006, // 025C LDCONST R11 K6 - 0x7C240400, // 025D CALL R9 2 - 0x8C280507, // 025E GETMET R10 R2 K7 - 0x58300008, // 025F LDCONST R12 K8 - 0x7C280400, // 0260 CALL R10 2 - 0x8C2C0507, // 0261 GETMET R11 R2 K7 - 0x5834000F, // 0262 LDCONST R13 K15 - 0x7C2C0400, // 0263 CALL R11 2 - 0x8C300507, // 0264 GETMET R12 R2 K7 - 0x58380011, // 0265 LDCONST R14 K17 - 0x7C300400, // 0266 CALL R12 2 - 0x8C340507, // 0267 GETMET R13 R2 K7 - 0x543E0003, // 0268 LDINT R15 4 - 0x7C340400, // 0269 CALL R13 2 - 0xB83A4400, // 026A GETNGBL R14 K34 - 0x8C381D27, // 026B GETMET R14 R14 K39 - 0x8C400B2D, // 026C GETMET R16 R5 K45 - 0x58480061, // 026D LDCONST R18 K97 - 0x5C4C1200, // 026E MOVE R19 R9 - 0x8C501529, // 026F GETMET R20 R10 K41 - 0x7C500200, // 0270 CALL R20 1 - 0x5C541600, // 0271 MOVE R21 R11 - 0x5C581800, // 0272 MOVE R22 R12 - 0x8C5C1B29, // 0273 GETMET R23 R13 K41 - 0x7C5C0200, // 0274 CALL R23 1 - 0x7C400E00, // 0275 CALL R16 7 - 0x5844000F, // 0276 LDCONST R17 K15 - 0x7C380600, // 0277 CALL R14 3 - 0x4C380000, // 0278 LDNIL R14 - 0x1C38120E, // 0279 EQ R14 R9 R14 - 0x743A000B, // 027A JMPT R14 #0287 - 0x4C380000, // 027B LDNIL R14 - 0x1C38140E, // 027C EQ R14 R10 R14 - 0x743A0008, // 027D JMPT R14 #0287 - 0x4C380000, // 027E LDNIL R14 - 0x1C38160E, // 027F EQ R14 R11 R14 - 0x743A0005, // 0280 JMPT R14 #0287 - 0x4C380000, // 0281 LDNIL R14 - 0x1C38180E, // 0282 EQ R14 R12 R14 - 0x743A0002, // 0283 JMPT R14 #0287 - 0x4C380000, // 0284 LDNIL R14 - 0x1C381A0E, // 0285 EQ R14 R13 R14 - 0x783A0005, // 0286 JMPF R14 #028D - 0xB83A0400, // 0287 GETNGBL R14 K2 - 0x88381D62, // 0288 GETMBR R14 R14 K98 - 0x900E340E, // 0289 SETMBR R3 K26 R14 - 0x4C380000, // 028A LDNIL R14 - 0xA0000000, // 028B CLOSE R0 - 0x80041C00, // 028C RET 1 R14 - 0x6038000C, // 028D GETGBL R14 G12 - 0x5C3C1400, // 028E MOVE R15 R10 - 0x7C380200, // 028F CALL R14 1 - 0x543E001F, // 0290 LDINT R15 32 - 0x54420040, // 0291 LDINT R16 65 - 0x003C1E10, // 0292 ADD R15 R15 R16 - 0x20381C0F, // 0293 NE R14 R14 R15 - 0x743A000B, // 0294 JMPT R14 #02A1 - 0x6038000C, // 0295 GETGBL R14 G12 - 0x5C3C1A00, // 0296 MOVE R15 R13 - 0x7C380200, // 0297 CALL R14 1 - 0x543E000F, // 0298 LDINT R15 16 - 0x14381C0F, // 0299 LT R14 R14 R15 - 0x743A0005, // 029A JMPT R14 #02A1 - 0x6038000C, // 029B GETGBL R14 G12 - 0x5C3C1A00, // 029C MOVE R15 R13 - 0x7C380200, // 029D CALL R14 1 - 0x543E001F, // 029E LDINT R15 32 - 0x24381C0F, // 029F GT R14 R14 R15 - 0x783A0009, // 02A0 JMPF R14 #02AB - 0xB83A4400, // 02A1 GETNGBL R14 K34 - 0x8C381D27, // 02A2 GETMET R14 R14 K39 - 0x58400063, // 02A3 LDCONST R16 K99 - 0x7C380400, // 02A4 CALL R14 2 - 0xB83A0400, // 02A5 GETNGBL R14 K2 - 0x88381D64, // 02A6 GETMBR R14 R14 K100 - 0x900E340E, // 02A7 SETMBR R3 K26 R14 - 0x4C380000, // 02A8 LDNIL R14 - 0xA0000000, // 02A9 CLOSE R0 - 0x80041C00, // 02AA RET 1 R14 - 0x543A001E, // 02AB LDINT R14 31 - 0x403A0C0E, // 02AC CONNECT R14 K6 R14 - 0x9438140E, // 02AD GETIDX R14 R10 R14 - 0x543E001F, // 02AE LDINT R15 32 - 0x403C1F47, // 02AF CONNECT R15 R15 K71 - 0x943C140F, // 02B0 GETIDX R15 R10 R15 - 0x88400116, // 02B1 GETMBR R16 R0 K22 - 0x8C402165, // 02B2 GETMET R16 R16 K101 - 0x5C481200, // 02B3 MOVE R18 R9 - 0x5C4C1800, // 02B4 MOVE R19 R12 - 0x5C501600, // 02B5 MOVE R20 R11 - 0x5C541A00, // 02B6 MOVE R21 R13 - 0x5C581C00, // 02B7 MOVE R22 R14 - 0x5C5C1E00, // 02B8 MOVE R23 R15 - 0x8C600366, // 02B9 GETMET R24 R1 K102 - 0x7C600200, // 02BA CALL R24 1 - 0x7C401000, // 02BB CALL R16 8 - 0x50400200, // 02BC LDBOOL R16 1 0 - 0xA0000000, // 02BD CLOSE R0 - 0x80042000, // 02BE RET 1 R16 - 0x7002001C, // 02BF JMP #02DD - 0x1C241108, // 02C0 EQ R9 R8 K8 - 0x78260012, // 02C1 JMPF R9 #02D5 - 0x8C240507, // 02C2 GETMET R9 R2 K7 - 0x582C0006, // 02C3 LDCONST R11 K6 - 0x7C240400, // 02C4 CALL R9 2 - 0xB82A4400, // 02C5 GETNGBL R10 K34 - 0x8C281527, // 02C6 GETMET R10 R10 K39 - 0x60300008, // 02C7 GETGBL R12 G8 - 0x5C341200, // 02C8 MOVE R13 R9 - 0x7C300200, // 02C9 CALL R12 1 - 0x0032CE0C, // 02CA ADD R12 K103 R12 - 0x5834000F, // 02CB LDCONST R13 K15 - 0x7C280600, // 02CC CALL R10 3 - 0x88280116, // 02CD GETMBR R10 R0 K22 - 0x8C281568, // 02CE GETMET R10 R10 K104 - 0x5C301200, // 02CF MOVE R12 R9 - 0x7C280400, // 02D0 CALL R10 2 - 0x50280200, // 02D1 LDBOOL R10 1 0 - 0xA0000000, // 02D2 CLOSE R0 - 0x80041400, // 02D3 RET 1 R10 - 0x70020007, // 02D4 JMP #02DD - 0x1C24110F, // 02D5 EQ R9 R8 K15 - 0x78260005, // 02D6 JMPF R9 #02DD - 0x88240116, // 02D7 GETMBR R9 R0 K22 - 0x8C241369, // 02D8 GETMET R9 R9 K105 - 0x7C240200, // 02D9 CALL R9 1 - 0x50240200, // 02DA LDBOOL R9 1 0 - 0xA0000000, // 02DB CLOSE R0 - 0x80041200, // 02DC RET 1 R9 - 0x70020012, // 02DD JMP #02F1 - 0x54260029, // 02DE LDINT R9 42 - 0x1C240E09, // 02DF EQ R9 R7 R9 - 0x78260005, // 02E0 JMPF R9 #02E7 - 0x1C241106, // 02E1 EQ R9 R8 K6 - 0x78260002, // 02E2 JMPF R9 #02E6 - 0x50240200, // 02E3 LDBOOL R9 1 0 - 0xA0000000, // 02E4 CLOSE R0 - 0x80041200, // 02E5 RET 1 R9 - 0x70020009, // 02E6 JMP #02F1 - 0x60240003, // 02E7 GETGBL R9 G3 - 0x5C280000, // 02E8 MOVE R10 R0 - 0x7C240200, // 02E9 CALL R9 1 - 0x8C24136A, // 02EA GETMET R9 R9 K106 - 0x5C2C0200, // 02EB MOVE R11 R1 - 0x5C300400, // 02EC MOVE R12 R2 - 0x5C340600, // 02ED MOVE R13 R3 - 0x7C240800, // 02EE CALL R9 4 - 0xA0000000, // 02EF CLOSE R0 - 0x80041200, // 02F0 RET 1 R9 - 0xA0000000, // 02F1 CLOSE R0 - 0x80000000, // 02F2 RET 0 + 0x60280008, // 01F7 GETGBL R10 G8 + 0x5C2C1200, // 01F8 MOVE R11 R9 + 0x7C280200, // 01F9 CALL R10 1 + 0x002AA80A, // 01FA ADD R10 K84 R10 + 0x900E5A0A, // 01FB SETMBR R3 K45 R10 + 0x60280010, // 01FC GETGBL R10 G16 + 0x882C0116, // 01FD GETMBR R11 R0 K22 + 0x882C1731, // 01FE GETMBR R11 R11 K49 + 0x8C2C1755, // 01FF GETMET R11 R11 K85 + 0x7C2C0200, // 0200 CALL R11 1 + 0x7C280200, // 0201 CALL R10 1 + 0xA8020010, // 0202 EXBLK 0 #0214 + 0x5C2C1400, // 0203 MOVE R11 R10 + 0x7C2C0000, // 0204 CALL R11 0 + 0x8C301756, // 0205 GETMET R12 R11 K86 + 0x7C300200, // 0206 CALL R12 1 + 0x1C301809, // 0207 EQ R12 R12 R9 + 0x78320008, // 0208 JMPF R12 #0212 + 0xB8324400, // 0209 GETNGBL R12 K34 + 0x8C301957, // 020A GETMET R12 R12 K87 + 0x543A07CF, // 020B LDINT R14 2000 + 0x843C0000, // 020C CLOSURE R15 P0 + 0x7C300600, // 020D CALL R12 3 + 0x50300200, // 020E LDBOOL R12 1 0 + 0xA0000000, // 020F CLOSE R0 + 0xA8040001, // 0210 EXBLK 1 1 + 0x80041800, // 0211 RET 1 R12 + 0xA0280000, // 0212 CLOSE R10 + 0x7001FFEE, // 0213 JMP #0203 + 0x58280058, // 0214 LDCONST R10 K88 + 0xAC280200, // 0215 CATCH R10 1 0 + 0xB0080000, // 0216 RAISE 2 R0 R0 + 0xB82A4400, // 0217 GETNGBL R10 K34 + 0x8C28152D, // 0218 GETMET R10 R10 K45 + 0x60300008, // 0219 GETGBL R12 G8 + 0x5C341200, // 021A MOVE R13 R9 + 0x7C300200, // 021B CALL R12 1 + 0x0032B20C, // 021C ADD R12 K89 R12 + 0x0030195A, // 021D ADD R12 R12 K90 + 0x5834000F, // 021E LDCONST R13 K15 + 0x7C280600, // 021F CALL R10 3 + 0xB82A0400, // 0220 GETNGBL R10 K2 + 0x8828155B, // 0221 GETMBR R10 R10 K91 + 0x900E340A, // 0222 SETMBR R3 K26 R10 + 0x4C280000, // 0223 LDNIL R10 + 0xA0000000, // 0224 CLOSE R0 + 0x80041400, // 0225 RET 1 R10 + 0x7002009B, // 0226 JMP #02C3 + 0x5426003B, // 0227 LDINT R9 60 + 0x1C240E09, // 0228 EQ R9 R7 R9 + 0x78260085, // 0229 JMPF R9 #02B0 + 0x1C241106, // 022A EQ R9 R8 K6 + 0x78260065, // 022B JMPF R9 #0292 + 0x8C240507, // 022C GETMET R9 R2 K7 + 0x582C0006, // 022D LDCONST R11 K6 + 0x7C240400, // 022E CALL R9 2 + 0x8C280507, // 022F GETMET R10 R2 K7 + 0x58300008, // 0230 LDCONST R12 K8 + 0x7C280400, // 0231 CALL R10 2 + 0x8C2C0507, // 0232 GETMET R11 R2 K7 + 0x5834000F, // 0233 LDCONST R13 K15 + 0x7C2C0400, // 0234 CALL R11 2 + 0x8C300507, // 0235 GETMET R12 R2 K7 + 0x58380011, // 0236 LDCONST R14 K17 + 0x7C300400, // 0237 CALL R12 2 + 0x8C340507, // 0238 GETMET R13 R2 K7 + 0x543E0003, // 0239 LDINT R15 4 + 0x7C340400, // 023A CALL R13 2 + 0xB83A4400, // 023B GETNGBL R14 K34 + 0x8C381D2D, // 023C GETMET R14 R14 K45 + 0x8C400B50, // 023D GETMET R16 R5 K80 + 0x5848005C, // 023E LDCONST R18 K92 + 0x5C4C1200, // 023F MOVE R19 R9 + 0x8C501553, // 0240 GETMET R20 R10 K83 + 0x7C500200, // 0241 CALL R20 1 + 0x5C541600, // 0242 MOVE R21 R11 + 0x5C581800, // 0243 MOVE R22 R12 + 0x8C5C1B53, // 0244 GETMET R23 R13 K83 + 0x7C5C0200, // 0245 CALL R23 1 + 0x7C400E00, // 0246 CALL R16 7 + 0x54460003, // 0247 LDINT R17 4 + 0x7C380600, // 0248 CALL R14 3 + 0x4C380000, // 0249 LDNIL R14 + 0x1C38120E, // 024A EQ R14 R9 R14 + 0x743A000B, // 024B JMPT R14 #0258 + 0x4C380000, // 024C LDNIL R14 + 0x1C38140E, // 024D EQ R14 R10 R14 + 0x743A0008, // 024E JMPT R14 #0258 + 0x4C380000, // 024F LDNIL R14 + 0x1C38160E, // 0250 EQ R14 R11 R14 + 0x743A0005, // 0251 JMPT R14 #0258 + 0x4C380000, // 0252 LDNIL R14 + 0x1C38180E, // 0253 EQ R14 R12 R14 + 0x743A0002, // 0254 JMPT R14 #0258 + 0x4C380000, // 0255 LDNIL R14 + 0x1C381A0E, // 0256 EQ R14 R13 R14 + 0x783A0005, // 0257 JMPF R14 #025E + 0xB83A0400, // 0258 GETNGBL R14 K2 + 0x88381D5D, // 0259 GETMBR R14 R14 K93 + 0x900E340E, // 025A SETMBR R3 K26 R14 + 0x4C380000, // 025B LDNIL R14 + 0xA0000000, // 025C CLOSE R0 + 0x80041C00, // 025D RET 1 R14 + 0x6038000C, // 025E GETGBL R14 G12 + 0x5C3C1400, // 025F MOVE R15 R10 + 0x7C380200, // 0260 CALL R14 1 + 0x543E001F, // 0261 LDINT R15 32 + 0x54420040, // 0262 LDINT R16 65 + 0x003C1E10, // 0263 ADD R15 R15 R16 + 0x20381C0F, // 0264 NE R14 R14 R15 + 0x743A000B, // 0265 JMPT R14 #0272 + 0x6038000C, // 0266 GETGBL R14 G12 + 0x5C3C1A00, // 0267 MOVE R15 R13 + 0x7C380200, // 0268 CALL R14 1 + 0x543E000F, // 0269 LDINT R15 16 + 0x14381C0F, // 026A LT R14 R14 R15 + 0x743A0005, // 026B JMPT R14 #0272 + 0x6038000C, // 026C GETGBL R14 G12 + 0x5C3C1A00, // 026D MOVE R15 R13 + 0x7C380200, // 026E CALL R14 1 + 0x543E001F, // 026F LDINT R15 32 + 0x24381C0F, // 0270 GT R14 R14 R15 + 0x783A000A, // 0271 JMPF R14 #027D + 0xB83A4400, // 0272 GETNGBL R14 K34 + 0x8C381D2D, // 0273 GETMET R14 R14 K45 + 0x5840005E, // 0274 LDCONST R16 K94 + 0x5844000F, // 0275 LDCONST R17 K15 + 0x7C380600, // 0276 CALL R14 3 + 0xB83A0400, // 0277 GETNGBL R14 K2 + 0x88381D5F, // 0278 GETMBR R14 R14 K95 + 0x900E340E, // 0279 SETMBR R3 K26 R14 + 0x4C380000, // 027A LDNIL R14 + 0xA0000000, // 027B CLOSE R0 + 0x80041C00, // 027C RET 1 R14 + 0x543A001E, // 027D LDINT R14 31 + 0x403A0C0E, // 027E CONNECT R14 K6 R14 + 0x9438140E, // 027F GETIDX R14 R10 R14 + 0x543E001F, // 0280 LDINT R15 32 + 0x403C1F41, // 0281 CONNECT R15 R15 K65 + 0x943C140F, // 0282 GETIDX R15 R10 R15 + 0x88400116, // 0283 GETMBR R16 R0 K22 + 0x8C402160, // 0284 GETMET R16 R16 K96 + 0x5C481200, // 0285 MOVE R18 R9 + 0x5C4C1800, // 0286 MOVE R19 R12 + 0x5C501600, // 0287 MOVE R20 R11 + 0x5C541A00, // 0288 MOVE R21 R13 + 0x5C581C00, // 0289 MOVE R22 R14 + 0x5C5C1E00, // 028A MOVE R23 R15 + 0x8C600361, // 028B GETMET R24 R1 K97 + 0x7C600200, // 028C CALL R24 1 + 0x7C401000, // 028D CALL R16 8 + 0x50400200, // 028E LDBOOL R16 1 0 + 0xA0000000, // 028F CLOSE R0 + 0x80042000, // 0290 RET 1 R16 + 0x7002001C, // 0291 JMP #02AF + 0x1C241108, // 0292 EQ R9 R8 K8 + 0x78260012, // 0293 JMPF R9 #02A7 + 0x8C240507, // 0294 GETMET R9 R2 K7 + 0x582C0006, // 0295 LDCONST R11 K6 + 0x7C240400, // 0296 CALL R9 2 + 0xB82A4400, // 0297 GETNGBL R10 K34 + 0x8C28152D, // 0298 GETMET R10 R10 K45 + 0x60300008, // 0299 GETGBL R12 G8 + 0x5C341200, // 029A MOVE R13 R9 + 0x7C300200, // 029B CALL R12 1 + 0x0032C40C, // 029C ADD R12 K98 R12 + 0x58340011, // 029D LDCONST R13 K17 + 0x7C280600, // 029E CALL R10 3 + 0x88280116, // 029F GETMBR R10 R0 K22 + 0x8C281563, // 02A0 GETMET R10 R10 K99 + 0x5C301200, // 02A1 MOVE R12 R9 + 0x7C280400, // 02A2 CALL R10 2 + 0x50280200, // 02A3 LDBOOL R10 1 0 + 0xA0000000, // 02A4 CLOSE R0 + 0x80041400, // 02A5 RET 1 R10 + 0x70020007, // 02A6 JMP #02AF + 0x1C24110F, // 02A7 EQ R9 R8 K15 + 0x78260005, // 02A8 JMPF R9 #02AF + 0x88240116, // 02A9 GETMBR R9 R0 K22 + 0x8C241364, // 02AA GETMET R9 R9 K100 + 0x7C240200, // 02AB CALL R9 1 + 0x50240200, // 02AC LDBOOL R9 1 0 + 0xA0000000, // 02AD CLOSE R0 + 0x80041200, // 02AE RET 1 R9 + 0x70020012, // 02AF JMP #02C3 + 0x54260029, // 02B0 LDINT R9 42 + 0x1C240E09, // 02B1 EQ R9 R7 R9 + 0x78260005, // 02B2 JMPF R9 #02B9 + 0x1C241106, // 02B3 EQ R9 R8 K6 + 0x78260002, // 02B4 JMPF R9 #02B8 + 0x50240200, // 02B5 LDBOOL R9 1 0 + 0xA0000000, // 02B6 CLOSE R0 + 0x80041200, // 02B7 RET 1 R9 + 0x70020009, // 02B8 JMP #02C3 + 0x60240003, // 02B9 GETGBL R9 G3 + 0x5C280000, // 02BA MOVE R10 R0 + 0x7C240200, // 02BB CALL R9 1 + 0x8C241365, // 02BC GETMET R9 R9 K101 + 0x5C2C0200, // 02BD MOVE R11 R1 + 0x5C300400, // 02BE MOVE R12 R2 + 0x5C340600, // 02BF MOVE R13 R3 + 0x7C240800, // 02C0 CALL R9 4 + 0xA0000000, // 02C1 CLOSE R0 + 0x80041200, // 02C2 RET 1 R9 + 0xA0000000, // 02C3 CLOSE R0 + 0x80000000, // 02C4 RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h index 79cafd8f4..afd5ed3a8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h @@ -6,30 +6,6 @@ extern const bclass be_class_Matter_Plugin_Sensor; -/******************************************************************** -** Solidified function: pre_value -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_pre_value, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(pre_value), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80040200, // 0000 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: value_changed ********************************************************************/ @@ -54,6 +30,50 @@ be_local_closure(Matter_Plugin_Sensor_value_changed, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: parse_configuration +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_parse_configuration, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota_sensor_filter), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(tasmota_sensor_matcher), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(Rule_Matcher), + /* K6 */ be_nested_str_weak(parse), + }), + be_str_weak(parse_configuration), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x8C080301, // 0000 GETMET R2 R1 K1 + 0x88100102, // 0001 GETMBR R4 R0 K2 + 0x7C080400, // 0002 CALL R2 2 + 0x90020002, // 0003 SETMBR R0 K0 R2 + 0x88080100, // 0004 GETMBR R2 R0 K0 + 0x780A0005, // 0005 JMPF R2 #000C + 0xB80A0800, // 0006 GETNGBL R2 K4 + 0x88080505, // 0007 GETMBR R2 R2 K5 + 0x8C080506, // 0008 GETMET R2 R2 K6 + 0x88100100, // 0009 GETMBR R4 R0 K0 + 0x7C080400, // 000A CALL R2 2 + 0x90020602, // 000B SETMBR R0 K3 R2 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: parse_sensors ********************************************************************/ @@ -105,43 +125,23 @@ be_local_closure(Matter_Plugin_Sensor_parse_sensors, /* name */ /******************************************************************** -** Solidified function: parse_configuration +** Solidified function: pre_value ********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_parse_configuration, /* name */ +be_local_closure(Matter_Plugin_Sensor_pre_value, /* name */ be_nested_proto( - 5, /* nstack */ + 2, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota_sensor_filter), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_nested_str_weak(tasmota_sensor_matcher), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(Rule_Matcher), - /* K6 */ be_nested_str_weak(parse), - }), - be_str_weak(parse_configuration), + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(pre_value), &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x8C080301, // 0000 GETMET R2 R1 K1 - 0x88100102, // 0001 GETMBR R4 R0 K2 - 0x7C080400, // 0002 CALL R2 2 - 0x90020002, // 0003 SETMBR R0 K0 R2 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x780A0005, // 0005 JMPF R2 #000C - 0xB80A0800, // 0006 GETNGBL R2 K4 - 0x88080505, // 0007 GETMBR R2 R2 K5 - 0x8C080506, // 0008 GETMET R2 R2 K6 - 0x88100100, // 0009 GETMBR R4 R0 K0 - 0x7C080400, // 000A CALL R2 2 - 0x90020602, // 000B SETMBR R0 K3 R2 - 0x80000000, // 000C RET 0 + ( &(const binstruction[ 1]) { /* code */ + 0x80040200, // 0000 RET 1 R1 }) ) ); @@ -155,17 +155,18 @@ extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_Sensor, 3, &be_class_Matter_Plugin_Device, - be_nested_map(9, + be_nested_map(10, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(ARG, 3), be_nested_str_weak(filter) }, - { be_const_key_weak(tasmota_sensor_filter, -1), be_const_var(0) }, - { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_pre_value_closure) }, - { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, - { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_value_changed_closure) }, - { be_const_key_weak(shadow_value, -1), be_const_var(2) }, - { be_const_key_weak(parse_sensors, 5), be_const_closure(Matter_Plugin_Sensor_parse_sensors_closure) }, - { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Sensor_parse_configuration_closure) }, { be_const_key_weak(tasmota_sensor_matcher, -1), be_const_var(1) }, + { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_value_changed_closure) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak(filter) }, + { be_const_key_weak(shadow_value, -1), be_const_var(2) }, + { be_const_key_weak(UPDATE_TIME, 7), be_const_int(5000) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Enter_X20Filter_X20pattern) }, + { be_const_key_weak(parse_sensors, 4), be_const_closure(Matter_Plugin_Sensor_parse_sensors_closure) }, + { be_const_key_weak(tasmota_sensor_filter, 8), be_const_var(0) }, + { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_pre_value_closure) }, + { be_const_key_weak(parse_configuration, 2), be_const_closure(Matter_Plugin_Sensor_parse_configuration_closure) }, })), be_str_weak(Matter_Plugin_Sensor) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Occupancy.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Occupancy.h index d114a216d..6cdac12e9 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Occupancy.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Occupancy.h @@ -6,6 +6,33 @@ extern const bclass be_class_Matter_Plugin_Sensor_Occupancy; +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Occupancy__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: parse_configuration ********************************************************************/ @@ -47,33 +74,6 @@ be_local_closure(Matter_Plugin_Sensor_Occupancy_parse_configuration, /* name * /*******************************************************************/ -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Occupancy__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -267,23 +267,19 @@ extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_Sensor_Occupancy, 2, &be_class_Matter_Plugin_Device, - be_nested_map(12, + be_nested_map(13, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, - { be_const_key_weak(parse_configuration, 9), be_const_closure(Matter_Plugin_Sensor_Occupancy_parse_configuration_closure) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(263, -1), be_const_int(2) }, - })) ) } )) }, { be_const_key_weak(ARG, -1), be_nested_str_weak(switch) }, { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_Sensor_Occupancy__X3Clambda_X3E_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(Occupancy) }, - { be_const_key_weak(read_attribute, 5), be_const_closure(Matter_Plugin_Sensor_Occupancy_read_attribute_closure) }, - { be_const_key_weak(shadow_occupancy, -1), be_const_var(1) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(occupancy) }, + { be_const_key_weak(ARG_HINT, 1), be_nested_str_weak(Enter_X20Switch_X3Cx_X3E_X20number) }, + { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, + { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Sensor_Occupancy_parse_configuration_closure) }, { be_const_key_weak(tasmota_switch_index, -1), be_const_var(0) }, - { be_const_key_weak(TYPE, 11), be_nested_str_weak(occupancy) }, - { be_const_key_weak(CLUSTERS, 8), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(shadow_occupancy, 8), be_const_var(1) }, + { be_const_key_weak(update_shadow, 5), be_const_closure(Matter_Plugin_Sensor_Occupancy_update_shadow_closure) }, + { be_const_key_weak(NAME, 6), be_nested_str_weak(Occupancy) }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(1030, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -296,7 +292,12 @@ be_local_class(Matter_Plugin_Sensor_Occupancy, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Sensor_Occupancy_update_shadow_closure) }, + { be_const_key_weak(read_attribute, 4), be_const_closure(Matter_Plugin_Sensor_Occupancy_read_attribute_closure) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(263, -1), be_const_int(2) }, + })) ) } )) }, })), be_str_weak(Matter_Plugin_Sensor_Occupancy) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_OnOff.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_OnOff.h index 7e701f289..864e3fc3e 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_OnOff.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_OnOff.h @@ -6,6 +6,33 @@ extern const bclass be_class_Matter_Plugin_Sensor_OnOff; +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_OnOff__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: parse_configuration ********************************************************************/ @@ -47,33 +74,6 @@ be_local_closure(Matter_Plugin_Sensor_OnOff_parse_configuration, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_OnOff__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -240,23 +240,19 @@ extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_Sensor_OnOff, 2, &be_class_Matter_Plugin_Device, - be_nested_map(12, + be_nested_map(13, ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_weak(ARG, 8), be_nested_str_weak(switch) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Enter_X20Switch_X3Cx_X3E_X20number) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(onoff) }, + { be_const_key_weak(ARG_TYPE, 1), be_const_static_closure(Matter_Plugin_Sensor_OnOff__X3Clambda_X3E_closure) }, { be_const_key_weak(UPDATE_TIME, -1), be_const_int(5000) }, - { be_const_key_weak(parse_configuration, 8), be_const_closure(Matter_Plugin_Sensor_OnOff_parse_configuration_closure) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(2128, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(ARG, -1), be_nested_str_weak(switch) }, - { be_const_key_weak(ARG_TYPE, 9), be_const_static_closure(Matter_Plugin_Sensor_OnOff__X3Clambda_X3E_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(OnOff) }, - { be_const_key_weak(read_attribute, 5), be_const_closure(Matter_Plugin_Sensor_OnOff_read_attribute_closure) }, - { be_const_key_weak(tasmota_switch_index, -1), be_const_var(0) }, - { be_const_key_weak(TYPE, 11), be_nested_str_weak(onoff) }, + { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Sensor_OnOff_update_shadow_closure) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(OnOff_X20Sensor) }, + { be_const_key_weak(parse_configuration, 5), be_const_closure(Matter_Plugin_Sensor_OnOff_parse_configuration_closure) }, { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, - { be_const_key_weak(CLUSTERS, 7), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(tasmota_switch_index, 6), be_const_var(0) }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(6, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -267,7 +263,12 @@ be_local_class(Matter_Plugin_Sensor_OnOff, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Sensor_OnOff_update_shadow_closure) }, + { be_const_key_weak(read_attribute, 4), be_const_closure(Matter_Plugin_Sensor_OnOff_read_attribute_closure) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(2128, -1), be_const_int(2) }, + })) ) } )) }, })), be_str_weak(Matter_Plugin_Sensor_OnOff) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Shutter.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Shutter.h index 93d6e592c..982d994c8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Shutter.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Shutter.h @@ -6,259 +6,6 @@ extern const bclass be_class_Matter_Plugin_Shutter; -/******************************************************************** -** Solidified function: update_inverted -********************************************************************/ -be_local_closure(Matter_Plugin_Shutter_update_inverted, /* 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[14]) { /* constants */ - /* K0 */ be_nested_str_weak(shadow_shutter_inverted), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(cmd), - /* K3 */ be_nested_str_weak(Status_X2013), - /* K4 */ be_nested_str_weak(contains), - /* K5 */ be_nested_str_weak(StatusSHT), - /* K6 */ be_nested_str_weak(find), - /* K7 */ be_nested_str_weak(SHT), - /* K8 */ be_nested_str_weak(tasmota_shutter_index), - /* K9 */ be_nested_str_weak(Opt), - /* K10 */ be_nested_str_weak(log), - /* K11 */ be_nested_str_weak(MTR_X3A_X20opt_X3A_X20), - /* K12 */ be_const_int(1), - /* K13 */ be_nested_str_weak(MTR_X3A_X20Inverted_X20flag_X3A_X20), - }), - be_str_weak(update_inverted), - &be_const_str_solidified, - ( &(const binstruction[51]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x5409FFFE, // 0001 LDINT R2 -1 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x7806002D, // 0003 JMPF R1 #0032 - 0xB8060200, // 0004 GETNGBL R1 K1 - 0x8C040302, // 0005 GETMET R1 R1 K2 - 0x580C0003, // 0006 LDCONST R3 K3 - 0x50100200, // 0007 LDBOOL R4 1 0 - 0x7C040600, // 0008 CALL R1 3 - 0x8C080304, // 0009 GETMET R2 R1 K4 - 0x58100005, // 000A LDCONST R4 K5 - 0x7C080400, // 000B CALL R2 2 - 0x780A0024, // 000C JMPF R2 #0032 - 0x94040305, // 000D GETIDX R1 R1 K5 - 0x8C080306, // 000E GETMET R2 R1 K6 - 0x60100008, // 000F GETGBL R4 G8 - 0x88140108, // 0010 GETMBR R5 R0 K8 - 0x7C100200, // 0011 CALL R4 1 - 0x00120E04, // 0012 ADD R4 K7 R4 - 0x60140013, // 0013 GETGBL R5 G19 - 0x7C140000, // 0014 CALL R5 0 - 0x7C080600, // 0015 CALL R2 3 - 0x8C080506, // 0016 GETMET R2 R2 K6 - 0x58100009, // 0017 LDCONST R4 K9 - 0x7C080400, // 0018 CALL R2 2 - 0xB80E0200, // 0019 GETNGBL R3 K1 - 0x8C0C070A, // 001A GETMET R3 R3 K10 - 0x60140008, // 001B GETGBL R5 G8 - 0x5C180400, // 001C MOVE R6 R2 - 0x7C140200, // 001D CALL R5 1 - 0x00161605, // 001E ADD R5 K11 R5 - 0x7C0C0400, // 001F CALL R3 2 - 0x4C0C0000, // 0020 LDNIL R3 - 0x200C0403, // 0021 NE R3 R2 R3 - 0x780E000E, // 0022 JMPF R3 #0032 - 0x600C0009, // 0023 GETGBL R3 G9 - 0x6010000C, // 0024 GETGBL R4 G12 - 0x5C140400, // 0025 MOVE R5 R2 - 0x7C100200, // 0026 CALL R4 1 - 0x0410090C, // 0027 SUB R4 R4 K12 - 0x94100404, // 0028 GETIDX R4 R2 R4 - 0x7C0C0200, // 0029 CALL R3 1 - 0x90020003, // 002A SETMBR R0 K0 R3 - 0xB80E0200, // 002B GETNGBL R3 K1 - 0x8C0C070A, // 002C GETMET R3 R3 K10 - 0x60140008, // 002D GETGBL R5 G8 - 0x88180100, // 002E GETMBR R6 R0 K0 - 0x7C140200, // 002F CALL R5 1 - 0x00161A05, // 0030 ADD R5 K13 R5 - 0x7C0C0400, // 0031 CALL R3 2 - 0x80000000, // 0032 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_Shutter_invoke_request, /* 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[24]) { /* constants */ - /* K0 */ be_nested_str_weak(light), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(command), - /* K5 */ be_nested_str_weak(update_shadow_lazy), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(tasmota), - /* K8 */ be_nested_str_weak(cmd), - /* K9 */ be_nested_str_weak(ShutterStopOpen), - /* K10 */ be_nested_str_weak(tasmota_shutter_index), - /* K11 */ be_const_int(1), - /* K12 */ be_nested_str_weak(update_shadow), - /* K13 */ be_nested_str_weak(ShutterStopClose), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(ShutterStop), - /* K16 */ be_nested_str_weak(log), - /* K17 */ be_nested_str_weak(MTR_X3A_X20Tilt_X20_X3D_X20), - /* K18 */ be_nested_str_weak(findsubval), - /* K19 */ be_nested_str_weak(shadow_shutter_inverted), - /* K20 */ be_nested_str_weak(ShutterPosition), - /* K21 */ be_nested_str_weak(_X20), - /* K22 */ be_nested_str_weak(pos_X25_X3A), - /* K23 */ be_nested_str_weak(invoke_request), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[116]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0xB8160200, // 0001 GETNGBL R5 K1 - 0x88140B02, // 0002 GETMBR R5 R5 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 - 0x881C0704, // 0004 GETMBR R7 R3 K4 - 0x54220101, // 0005 LDINT R8 258 - 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x78220061, // 0007 JMPF R8 #006A - 0x8C200105, // 0008 GETMET R8 R0 K5 - 0x7C200200, // 0009 CALL R8 1 - 0x1C200F06, // 000A EQ R8 R7 K6 - 0x7822000D, // 000B JMPF R8 #001A - 0xB8220E00, // 000C GETNGBL R8 K7 - 0x8C201108, // 000D GETMET R8 R8 K8 - 0x60280008, // 000E GETGBL R10 G8 - 0x882C010A, // 000F GETMBR R11 R0 K10 - 0x002C170B, // 0010 ADD R11 R11 K11 - 0x7C280200, // 0011 CALL R10 1 - 0x002A120A, // 0012 ADD R10 K9 R10 - 0x502C0200, // 0013 LDBOOL R11 1 0 - 0x7C200600, // 0014 CALL R8 3 - 0x8C20010C, // 0015 GETMET R8 R0 K12 - 0x7C200200, // 0016 CALL R8 1 - 0x50200200, // 0017 LDBOOL R8 1 0 - 0x80041000, // 0018 RET 1 R8 - 0x7002004E, // 0019 JMP #0069 - 0x1C200F0B, // 001A EQ R8 R7 K11 - 0x7822000D, // 001B JMPF R8 #002A - 0xB8220E00, // 001C GETNGBL R8 K7 - 0x8C201108, // 001D GETMET R8 R8 K8 - 0x60280008, // 001E GETGBL R10 G8 - 0x882C010A, // 001F GETMBR R11 R0 K10 - 0x002C170B, // 0020 ADD R11 R11 K11 - 0x7C280200, // 0021 CALL R10 1 - 0x002A1A0A, // 0022 ADD R10 K13 R10 - 0x502C0200, // 0023 LDBOOL R11 1 0 - 0x7C200600, // 0024 CALL R8 3 - 0x8C20010C, // 0025 GETMET R8 R0 K12 - 0x7C200200, // 0026 CALL R8 1 - 0x50200200, // 0027 LDBOOL R8 1 0 - 0x80041000, // 0028 RET 1 R8 - 0x7002003E, // 0029 JMP #0069 - 0x1C200F0E, // 002A EQ R8 R7 K14 - 0x7822000D, // 002B JMPF R8 #003A - 0xB8220E00, // 002C GETNGBL R8 K7 - 0x8C201108, // 002D GETMET R8 R8 K8 - 0x60280008, // 002E GETGBL R10 G8 - 0x882C010A, // 002F GETMBR R11 R0 K10 - 0x002C170B, // 0030 ADD R11 R11 K11 - 0x7C280200, // 0031 CALL R10 1 - 0x002A1E0A, // 0032 ADD R10 K15 R10 - 0x502C0200, // 0033 LDBOOL R11 1 0 - 0x7C200600, // 0034 CALL R8 3 - 0x8C20010C, // 0035 GETMET R8 R0 K12 - 0x7C200200, // 0036 CALL R8 1 - 0x50200200, // 0037 LDBOOL R8 1 0 - 0x80041000, // 0038 RET 1 R8 - 0x7002002E, // 0039 JMP #0069 - 0x54220004, // 003A LDINT R8 5 - 0x1C200E08, // 003B EQ R8 R7 R8 - 0x7822002B, // 003C JMPF R8 #0069 - 0xB8220E00, // 003D GETNGBL R8 K7 - 0x8C201110, // 003E GETMET R8 R8 K16 - 0x60280008, // 003F GETGBL R10 G8 - 0x5C2C0400, // 0040 MOVE R11 R2 - 0x7C280200, // 0041 CALL R10 1 - 0x002A220A, // 0042 ADD R10 K17 R10 - 0x582C000E, // 0043 LDCONST R11 K14 - 0x7C200600, // 0044 CALL R8 3 - 0x8C200512, // 0045 GETMET R8 R2 K18 - 0x58280006, // 0046 LDCONST R10 K6 - 0x7C200400, // 0047 CALL R8 2 - 0x4C240000, // 0048 LDNIL R9 - 0x20241009, // 0049 NE R9 R8 R9 - 0x7826001B, // 004A JMPF R9 #0067 - 0x54260063, // 004B LDINT R9 100 - 0x0C201009, // 004C DIV R8 R8 R9 - 0x88240113, // 004D GETMBR R9 R0 K19 - 0x1C241306, // 004E EQ R9 R9 K6 - 0x78260001, // 004F JMPF R9 #0052 - 0x54260063, // 0050 LDINT R9 100 - 0x04201208, // 0051 SUB R8 R9 R8 - 0xB8260E00, // 0052 GETNGBL R9 K7 - 0x8C241308, // 0053 GETMET R9 R9 K8 - 0x602C0008, // 0054 GETGBL R11 G8 - 0x8830010A, // 0055 GETMBR R12 R0 K10 - 0x0030190B, // 0056 ADD R12 R12 K11 - 0x7C2C0200, // 0057 CALL R11 1 - 0x002E280B, // 0058 ADD R11 K20 R11 - 0x002C1715, // 0059 ADD R11 R11 K21 - 0x60300008, // 005A GETGBL R12 G8 - 0x5C341000, // 005B MOVE R13 R8 - 0x7C300200, // 005C CALL R12 1 - 0x002C160C, // 005D ADD R11 R11 R12 - 0x50300200, // 005E LDBOOL R12 1 0 - 0x7C240600, // 005F CALL R9 3 - 0x60240008, // 0060 GETGBL R9 G8 - 0x5C281000, // 0061 MOVE R10 R8 - 0x7C240200, // 0062 CALL R9 1 - 0x00262C09, // 0063 ADD R9 K22 R9 - 0x900E2009, // 0064 SETMBR R3 K16 R9 - 0x8C24010C, // 0065 GETMET R9 R0 K12 - 0x7C240200, // 0066 CALL R9 1 - 0x50240200, // 0067 LDBOOL R9 1 0 - 0x80041200, // 0068 RET 1 R9 - 0x70020008, // 0069 JMP #0073 - 0x60200003, // 006A GETGBL R8 G3 - 0x5C240000, // 006B MOVE R9 R0 - 0x7C200200, // 006C CALL R8 1 - 0x8C201117, // 006D GETMET R8 R8 K23 - 0x5C280200, // 006E MOVE R10 R1 - 0x5C2C0400, // 006F MOVE R11 R2 - 0x5C300600, // 0070 MOVE R12 R3 - 0x7C200800, // 0071 CALL R8 4 - 0x80041000, // 0072 RET 1 R8 - 0x80000000, // 0073 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -454,33 +201,6 @@ be_local_closure(Matter_Plugin_Shutter_read_attribute, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(Matter_Plugin_Shutter__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: parse_sensors ********************************************************************/ @@ -572,47 +292,6 @@ be_local_closure(Matter_Plugin_Shutter_parse_sensors, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: parse_configuration -********************************************************************/ -be_local_closure(Matter_Plugin_Shutter_parse_configuration, /* 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[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota_shutter_index), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str_weak(shadow_shutter_inverted), - }), - be_str_weak(parse_configuration), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x8C080301, // 0000 GETMET R2 R1 K1 - 0x88100102, // 0001 GETMBR R4 R0 K2 - 0x7C080400, // 0002 CALL R2 2 - 0x90020002, // 0003 SETMBR R0 K0 R2 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x4C0C0000, // 0005 LDNIL R3 - 0x1C080403, // 0006 EQ R2 R2 R3 - 0x780A0000, // 0007 JMPF R2 #0009 - 0x90020103, // 0008 SETMBR R0 K0 K3 - 0x5409FFFE, // 0009 LDINT R2 -1 - 0x90020802, // 000A SETMBR R0 K4 R2 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: update_shadow ********************************************************************/ @@ -666,6 +345,310 @@ be_local_closure(Matter_Plugin_Shutter_update_shadow, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_invoke_request, /* 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[24]) { /* constants */ + /* K0 */ be_nested_str_weak(light), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(command), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(cmd), + /* K9 */ be_nested_str_weak(ShutterStopOpen), + /* K10 */ be_nested_str_weak(tasmota_shutter_index), + /* K11 */ be_const_int(1), + /* K12 */ be_nested_str_weak(update_shadow), + /* K13 */ be_nested_str_weak(ShutterStopClose), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(ShutterStop), + /* K16 */ be_nested_str_weak(log), + /* K17 */ be_nested_str_weak(MTR_X3A_X20Tilt_X20_X3D_X20), + /* K18 */ be_nested_str_weak(findsubval), + /* K19 */ be_nested_str_weak(shadow_shutter_inverted), + /* K20 */ be_nested_str_weak(ShutterPosition), + /* K21 */ be_nested_str_weak(_X20), + /* K22 */ be_nested_str_weak(pos_X25_X3A), + /* K23 */ be_nested_str_weak(invoke_request), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[116]) { /* code */ + 0xA4120000, // 0000 IMPORT R4 K0 + 0xB8160200, // 0001 GETNGBL R5 K1 + 0x88140B02, // 0002 GETMBR R5 R5 K2 + 0x88180703, // 0003 GETMBR R6 R3 K3 + 0x881C0704, // 0004 GETMBR R7 R3 K4 + 0x54220101, // 0005 LDINT R8 258 + 0x1C200C08, // 0006 EQ R8 R6 R8 + 0x78220061, // 0007 JMPF R8 #006A + 0x8C200105, // 0008 GETMET R8 R0 K5 + 0x7C200200, // 0009 CALL R8 1 + 0x1C200F06, // 000A EQ R8 R7 K6 + 0x7822000D, // 000B JMPF R8 #001A + 0xB8220E00, // 000C GETNGBL R8 K7 + 0x8C201108, // 000D GETMET R8 R8 K8 + 0x60280008, // 000E GETGBL R10 G8 + 0x882C010A, // 000F GETMBR R11 R0 K10 + 0x002C170B, // 0010 ADD R11 R11 K11 + 0x7C280200, // 0011 CALL R10 1 + 0x002A120A, // 0012 ADD R10 K9 R10 + 0x502C0200, // 0013 LDBOOL R11 1 0 + 0x7C200600, // 0014 CALL R8 3 + 0x8C20010C, // 0015 GETMET R8 R0 K12 + 0x7C200200, // 0016 CALL R8 1 + 0x50200200, // 0017 LDBOOL R8 1 0 + 0x80041000, // 0018 RET 1 R8 + 0x7002004E, // 0019 JMP #0069 + 0x1C200F0B, // 001A EQ R8 R7 K11 + 0x7822000D, // 001B JMPF R8 #002A + 0xB8220E00, // 001C GETNGBL R8 K7 + 0x8C201108, // 001D GETMET R8 R8 K8 + 0x60280008, // 001E GETGBL R10 G8 + 0x882C010A, // 001F GETMBR R11 R0 K10 + 0x002C170B, // 0020 ADD R11 R11 K11 + 0x7C280200, // 0021 CALL R10 1 + 0x002A1A0A, // 0022 ADD R10 K13 R10 + 0x502C0200, // 0023 LDBOOL R11 1 0 + 0x7C200600, // 0024 CALL R8 3 + 0x8C20010C, // 0025 GETMET R8 R0 K12 + 0x7C200200, // 0026 CALL R8 1 + 0x50200200, // 0027 LDBOOL R8 1 0 + 0x80041000, // 0028 RET 1 R8 + 0x7002003E, // 0029 JMP #0069 + 0x1C200F0E, // 002A EQ R8 R7 K14 + 0x7822000D, // 002B JMPF R8 #003A + 0xB8220E00, // 002C GETNGBL R8 K7 + 0x8C201108, // 002D GETMET R8 R8 K8 + 0x60280008, // 002E GETGBL R10 G8 + 0x882C010A, // 002F GETMBR R11 R0 K10 + 0x002C170B, // 0030 ADD R11 R11 K11 + 0x7C280200, // 0031 CALL R10 1 + 0x002A1E0A, // 0032 ADD R10 K15 R10 + 0x502C0200, // 0033 LDBOOL R11 1 0 + 0x7C200600, // 0034 CALL R8 3 + 0x8C20010C, // 0035 GETMET R8 R0 K12 + 0x7C200200, // 0036 CALL R8 1 + 0x50200200, // 0037 LDBOOL R8 1 0 + 0x80041000, // 0038 RET 1 R8 + 0x7002002E, // 0039 JMP #0069 + 0x54220004, // 003A LDINT R8 5 + 0x1C200E08, // 003B EQ R8 R7 R8 + 0x7822002B, // 003C JMPF R8 #0069 + 0xB8220E00, // 003D GETNGBL R8 K7 + 0x8C201110, // 003E GETMET R8 R8 K16 + 0x60280008, // 003F GETGBL R10 G8 + 0x5C2C0400, // 0040 MOVE R11 R2 + 0x7C280200, // 0041 CALL R10 1 + 0x002A220A, // 0042 ADD R10 K17 R10 + 0x582C000E, // 0043 LDCONST R11 K14 + 0x7C200600, // 0044 CALL R8 3 + 0x8C200512, // 0045 GETMET R8 R2 K18 + 0x58280006, // 0046 LDCONST R10 K6 + 0x7C200400, // 0047 CALL R8 2 + 0x4C240000, // 0048 LDNIL R9 + 0x20241009, // 0049 NE R9 R8 R9 + 0x7826001B, // 004A JMPF R9 #0067 + 0x54260063, // 004B LDINT R9 100 + 0x0C201009, // 004C DIV R8 R8 R9 + 0x88240113, // 004D GETMBR R9 R0 K19 + 0x1C241306, // 004E EQ R9 R9 K6 + 0x78260001, // 004F JMPF R9 #0052 + 0x54260063, // 0050 LDINT R9 100 + 0x04201208, // 0051 SUB R8 R9 R8 + 0xB8260E00, // 0052 GETNGBL R9 K7 + 0x8C241308, // 0053 GETMET R9 R9 K8 + 0x602C0008, // 0054 GETGBL R11 G8 + 0x8830010A, // 0055 GETMBR R12 R0 K10 + 0x0030190B, // 0056 ADD R12 R12 K11 + 0x7C2C0200, // 0057 CALL R11 1 + 0x002E280B, // 0058 ADD R11 K20 R11 + 0x002C1715, // 0059 ADD R11 R11 K21 + 0x60300008, // 005A GETGBL R12 G8 + 0x5C341000, // 005B MOVE R13 R8 + 0x7C300200, // 005C CALL R12 1 + 0x002C160C, // 005D ADD R11 R11 R12 + 0x50300200, // 005E LDBOOL R12 1 0 + 0x7C240600, // 005F CALL R9 3 + 0x60240008, // 0060 GETGBL R9 G8 + 0x5C281000, // 0061 MOVE R10 R8 + 0x7C240200, // 0062 CALL R9 1 + 0x00262C09, // 0063 ADD R9 K22 R9 + 0x900E2009, // 0064 SETMBR R3 K16 R9 + 0x8C24010C, // 0065 GETMET R9 R0 K12 + 0x7C240200, // 0066 CALL R9 1 + 0x50240200, // 0067 LDBOOL R9 1 0 + 0x80041200, // 0068 RET 1 R9 + 0x70020008, // 0069 JMP #0073 + 0x60200003, // 006A GETGBL R8 G3 + 0x5C240000, // 006B MOVE R9 R0 + 0x7C200200, // 006C CALL R8 1 + 0x8C201117, // 006D GETMET R8 R8 K23 + 0x5C280200, // 006E MOVE R10 R1 + 0x5C2C0400, // 006F MOVE R11 R2 + 0x5C300600, // 0070 MOVE R12 R3 + 0x7C200800, // 0071 CALL R8 4 + 0x80041000, // 0072 RET 1 R8 + 0x80000000, // 0073 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_configuration +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_parse_configuration, /* 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[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota_shutter_index), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_const_int(0), + /* K4 */ be_nested_str_weak(shadow_shutter_inverted), + }), + be_str_weak(parse_configuration), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x8C080301, // 0000 GETMET R2 R1 K1 + 0x88100102, // 0001 GETMBR R4 R0 K2 + 0x7C080400, // 0002 CALL R2 2 + 0x90020002, // 0003 SETMBR R0 K0 R2 + 0x88080100, // 0004 GETMBR R2 R0 K0 + 0x4C0C0000, // 0005 LDNIL R3 + 0x1C080403, // 0006 EQ R2 R2 R3 + 0x780A0000, // 0007 JMPF R2 #0009 + 0x90020103, // 0008 SETMBR R0 K0 K3 + 0x5409FFFE, // 0009 LDINT R2 -1 + 0x90020802, // 000A SETMBR R0 K4 R2 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: update_inverted +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_update_inverted, /* 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[11]) { /* constants */ + /* K0 */ be_nested_str_weak(shadow_shutter_inverted), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(cmd), + /* K3 */ be_nested_str_weak(Status_X2013), + /* K4 */ be_nested_str_weak(contains), + /* K5 */ be_nested_str_weak(StatusSHT), + /* K6 */ be_nested_str_weak(find), + /* K7 */ be_nested_str_weak(SHT), + /* K8 */ be_nested_str_weak(tasmota_shutter_index), + /* K9 */ be_nested_str_weak(Opt), + /* K10 */ be_const_int(1), + }), + be_str_weak(update_inverted), + &be_const_str_solidified, + ( &(const binstruction[37]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x5409FFFE, // 0001 LDINT R2 -1 + 0x1C040202, // 0002 EQ R1 R1 R2 + 0x7806001F, // 0003 JMPF R1 #0024 + 0xB8060200, // 0004 GETNGBL R1 K1 + 0x8C040302, // 0005 GETMET R1 R1 K2 + 0x580C0003, // 0006 LDCONST R3 K3 + 0x50100200, // 0007 LDBOOL R4 1 0 + 0x7C040600, // 0008 CALL R1 3 + 0x8C080304, // 0009 GETMET R2 R1 K4 + 0x58100005, // 000A LDCONST R4 K5 + 0x7C080400, // 000B CALL R2 2 + 0x780A0016, // 000C JMPF R2 #0024 + 0x94040305, // 000D GETIDX R1 R1 K5 + 0x8C080306, // 000E GETMET R2 R1 K6 + 0x60100008, // 000F GETGBL R4 G8 + 0x88140108, // 0010 GETMBR R5 R0 K8 + 0x7C100200, // 0011 CALL R4 1 + 0x00120E04, // 0012 ADD R4 K7 R4 + 0x60140013, // 0013 GETGBL R5 G19 + 0x7C140000, // 0014 CALL R5 0 + 0x7C080600, // 0015 CALL R2 3 + 0x8C080506, // 0016 GETMET R2 R2 K6 + 0x58100009, // 0017 LDCONST R4 K9 + 0x7C080400, // 0018 CALL R2 2 + 0x4C0C0000, // 0019 LDNIL R3 + 0x200C0403, // 001A NE R3 R2 R3 + 0x780E0007, // 001B JMPF R3 #0024 + 0x600C0009, // 001C GETGBL R3 G9 + 0x6010000C, // 001D GETGBL R4 G12 + 0x5C140400, // 001E MOVE R5 R2 + 0x7C100200, // 001F CALL R4 1 + 0x0410090A, // 0020 SUB R4 R4 K10 + 0x94100404, // 0021 GETIDX R4 R2 R4 + 0x7C0C0200, // 0022 CALL R3 1 + 0x90020003, // 0023 SETMBR R0 K0 R3 + 0x80000000, // 0024 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Shutter ********************************************************************/ @@ -673,16 +656,16 @@ extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_Shutter, 6, &be_class_Matter_Plugin_Device, - be_nested_map(18, + be_nested_map(19, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(shadow_shutter_tilt, -1), be_const_var(3) }, - { be_const_key_weak(TYPE, -1), be_nested_str_weak(shutter) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(514, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(update_shadow, 13), be_const_closure(Matter_Plugin_Shutter_update_shadow_closure) }, + { be_const_key_weak(read_attribute, 4), be_const_closure(Matter_Plugin_Shutter_read_attribute_closure) }, + { be_const_key_weak(shadow_shutter_pos, 18), be_const_var(1) }, + { be_const_key_weak(tasmota_shutter_index, -1), be_const_var(0) }, + { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_Shutter_parse_sensors_closure) }, + { be_const_key_weak(shadow_shutter_direction, -1), be_const_var(4) }, + { be_const_key_weak(shadow_shutter_target, -1), be_const_var(2) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Shutter_invoke_request_closure) }, + { be_const_key_weak(ARG_HINT, -1), be_nested_str_weak(Enter_X20Relay_X3Cx_X3E_X20number) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -701,19 +684,20 @@ be_local_class(Matter_Plugin_Shutter, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(invoke_request, 14), be_const_closure(Matter_Plugin_Shutter_invoke_request_closure) }, - { be_const_key_weak(read_attribute, 16), be_const_closure(Matter_Plugin_Shutter_read_attribute_closure) }, - { be_const_key_weak(shadow_shutter_inverted, 3), be_const_var(5) }, - { be_const_key_weak(shadow_shutter_pos, -1), be_const_var(1) }, - { be_const_key_weak(ARG, -1), be_nested_str_weak(shutter) }, - { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_Shutter__X3Clambda_X3E_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(Shutter) }, - { be_const_key_weak(update_inverted, 11), be_const_closure(Matter_Plugin_Shutter_update_inverted_closure) }, + { be_const_key_weak(update_shadow, 5), be_const_closure(Matter_Plugin_Shutter_update_shadow_closure) }, + { be_const_key_weak(NAME, 6), be_nested_str_weak(Shutter) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(shutter) }, + { be_const_key_weak(shadow_shutter_inverted, -1), be_const_var(5) }, + { be_const_key_weak(ARG, 7), be_nested_str_weak(shutter) }, + { be_const_key_weak(shadow_shutter_tilt, 8), be_const_var(3) }, { be_const_key_weak(parse_configuration, -1), be_const_closure(Matter_Plugin_Shutter_parse_configuration_closure) }, - { be_const_key_weak(shadow_shutter_target, -1), be_const_var(2) }, - { be_const_key_weak(tasmota_shutter_index, -1), be_const_var(0) }, - { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_Shutter_parse_sensors_closure) }, - { be_const_key_weak(shadow_shutter_direction, 0), be_const_var(4) }, + { be_const_key_weak(update_inverted, -1), be_const_closure(Matter_Plugin_Shutter_update_inverted_closure) }, + { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_Shutter__X3Clambda_X3E_closure) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(514, -1), be_const_int(2) }, + })) ) } )) }, })), be_str_weak(Matter_Plugin_Shutter) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h index 91b961a2c..c44344ce3 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session.h @@ -1535,7 +1535,7 @@ be_local_closure(Matter_Session_get_ac, /* name */ ********************************************************************/ be_local_closure(Matter_Session_counter_snd_next, /* name */ be_nested_proto( - 9, /* nstack */ + 7, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1543,54 +1543,41 @@ be_local_closure(Matter_Session_counter_snd_next, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ + ( &(const bvalue[10]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(_counter_snd_impl), /* K2 */ be_nested_str_weak(next), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(log), - /* K5 */ be_nested_str_weak(format), - /* K6 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_snd_X3D_X25i), - /* K7 */ be_const_int(3), - /* K8 */ be_nested_str_weak(matter), - /* K9 */ be_nested_str_weak(Counter), - /* K10 */ be_nested_str_weak(is_greater), - /* K11 */ be_nested_str_weak(counter_snd), - /* K12 */ be_nested_str_weak(_COUNTER_SND_INCR), - /* K13 */ be_nested_str_weak(does_persist), - /* K14 */ be_nested_str_weak(save), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(Counter), + /* K5 */ be_nested_str_weak(is_greater), + /* K6 */ be_nested_str_weak(counter_snd), + /* K7 */ be_nested_str_weak(_COUNTER_SND_INCR), + /* K8 */ be_nested_str_weak(does_persist), + /* K9 */ be_nested_str_weak(save), }), be_str_weak(counter_snd_next), &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ + ( &(const binstruction[20]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x88080101, // 0001 GETMBR R2 R0 K1 0x8C080502, // 0002 GETMET R2 R2 K2 0x7C080200, // 0003 CALL R2 1 0xB80E0600, // 0004 GETNGBL R3 K3 - 0x8C0C0704, // 0005 GETMET R3 R3 K4 - 0x8C140305, // 0006 GETMET R5 R1 K5 - 0x581C0006, // 0007 LDCONST R7 K6 - 0x5C200400, // 0008 MOVE R8 R2 - 0x7C140600, // 0009 CALL R5 3 - 0x58180007, // 000A LDCONST R6 K7 - 0x7C0C0600, // 000B CALL R3 3 - 0xB80E1000, // 000C GETNGBL R3 K8 - 0x880C0709, // 000D GETMBR R3 R3 K9 - 0x8C0C070A, // 000E GETMET R3 R3 K10 - 0x5C140400, // 000F MOVE R5 R2 - 0x8818010B, // 0010 GETMBR R6 R0 K11 - 0x7C0C0600, // 0011 CALL R3 3 - 0x780E0007, // 0012 JMPF R3 #001B - 0x880C010C, // 0013 GETMBR R3 R0 K12 - 0x000C0403, // 0014 ADD R3 R2 R3 - 0x90021603, // 0015 SETMBR R0 K11 R3 - 0x8C0C010D, // 0016 GETMET R3 R0 K13 - 0x7C0C0200, // 0017 CALL R3 1 - 0x780E0001, // 0018 JMPF R3 #001B - 0x8C0C010E, // 0019 GETMET R3 R0 K14 - 0x7C0C0200, // 001A CALL R3 1 - 0x80040400, // 001B RET 1 R2 + 0x880C0704, // 0005 GETMBR R3 R3 K4 + 0x8C0C0705, // 0006 GETMET R3 R3 K5 + 0x5C140400, // 0007 MOVE R5 R2 + 0x88180106, // 0008 GETMBR R6 R0 K6 + 0x7C0C0600, // 0009 CALL R3 3 + 0x780E0007, // 000A JMPF R3 #0013 + 0x880C0107, // 000B GETMBR R3 R0 K7 + 0x000C0403, // 000C ADD R3 R2 R3 + 0x90020C03, // 000D SETMBR R0 K6 R3 + 0x8C0C0108, // 000E GETMET R3 R0 K8 + 0x7C0C0200, // 000F CALL R3 1 + 0x780E0001, // 0010 JMPF R3 #0013 + 0x8C0C0109, // 0011 GETMET R3 R0 K9 + 0x7C0C0200, // 0012 CALL R3 1 + 0x80040400, // 0013 RET 1 R2 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h index 2417ab096..8cf3022f2 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Session_Store.h @@ -1096,7 +1096,7 @@ be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name * 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ + ( &(const bvalue[11]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_const_int(0), /* K2 */ be_nested_str_weak(sessions), @@ -1105,15 +1105,13 @@ be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name * /* K5 */ be_nested_str_weak(format), /* K6 */ be_nested_str_weak(MTR_X3A_X20session_X2Eresumption_id_X3D_X25s_X20vs_X20_X25s), /* K7 */ be_nested_str_weak(resumption_id), - /* K8 */ be_const_int(3), - /* K9 */ be_nested_str_weak(shared_secret), - /* K10 */ be_nested_str_weak(MTR_X3A_X20session_X2Eshared_secret_X3D_X25s), - /* K11 */ be_nested_str_weak(update), - /* K12 */ be_const_int(1), + /* K8 */ be_nested_str_weak(shared_secret), + /* K9 */ be_nested_str_weak(update), + /* K10 */ be_const_int(1), }), be_str_weak(find_session_by_resumption_id), &be_const_str_solidified, - ( &(const binstruction[49]) { /* code */ + ( &(const binstruction[39]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0x5C0C0200, // 0001 MOVE R3 R1 0x740E0001, // 0002 JMPT R3 #0005 @@ -1125,7 +1123,7 @@ be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name * 0x5C180800, // 0008 MOVE R6 R4 0x7C140200, // 0009 CALL R5 1 0x14140605, // 000A LT R5 R3 R5 - 0x78160023, // 000B JMPF R5 #0030 + 0x78160019, // 000B JMPF R5 #0026 0x94140803, // 000C GETIDX R5 R4 R3 0xB81A0600, // 000D GETNGBL R6 K3 0x8C180D04, // 000E GETMET R6 R6 K4 @@ -1138,31 +1136,21 @@ be_local_closure(Matter_Session_Store_find_session_by_resumption_id, /* name * 0x5C340200, // 0015 MOVE R13 R1 0x7C300200, // 0016 CALL R12 1 0x7C200800, // 0017 CALL R8 4 - 0x58240008, // 0018 LDCONST R9 K8 + 0x54260003, // 0018 LDINT R9 4 0x7C180600, // 0019 CALL R6 3 0x88180B07, // 001A GETMBR R6 R5 K7 0x1C180C01, // 001B EQ R6 R6 R1 - 0x781A0010, // 001C JMPF R6 #002E - 0x88180B09, // 001D GETMBR R6 R5 K9 + 0x781A0006, // 001C JMPF R6 #0024 + 0x88180B08, // 001D GETMBR R6 R5 K8 0x4C1C0000, // 001E LDNIL R7 0x20180C07, // 001F NE R6 R6 R7 - 0x781A000C, // 0020 JMPF R6 #002E - 0xB81A0600, // 0021 GETNGBL R6 K3 - 0x8C180D04, // 0022 GETMET R6 R6 K4 - 0x8C200505, // 0023 GETMET R8 R2 K5 - 0x5828000A, // 0024 LDCONST R10 K10 - 0x602C0008, // 0025 GETGBL R11 G8 - 0x88300B09, // 0026 GETMBR R12 R5 K9 - 0x7C2C0200, // 0027 CALL R11 1 - 0x7C200600, // 0028 CALL R8 3 - 0x58240008, // 0029 LDCONST R9 K8 - 0x7C180600, // 002A CALL R6 3 - 0x8C180B0B, // 002B GETMET R6 R5 K11 - 0x7C180200, // 002C CALL R6 1 - 0x80040A00, // 002D RET 1 R5 - 0x000C070C, // 002E ADD R3 R3 K12 - 0x7001FFD6, // 002F JMP #0007 - 0x80000000, // 0030 RET 0 + 0x781A0002, // 0020 JMPF R6 #0024 + 0x8C180B09, // 0021 GETMET R6 R5 K9 + 0x7C180200, // 0022 CALL R6 1 + 0x80040A00, // 0023 RET 1 R5 + 0x000C070A, // 0024 ADD R3 R3 K10 + 0x7001FFE0, // 0025 JMP #0007 + 0x80000000, // 0026 RET 0 }) ) ); @@ -1182,7 +1170,7 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[28]) { /* constants */ + ( &(const bvalue[29]) { /* constants */ /* K0 */ be_nested_str_weak(json), /* K1 */ be_nested_str_weak(remove_expired), /* K2 */ be_const_int(0), @@ -1206,11 +1194,12 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */ /* K20 */ be_nested_str_weak(log), /* K21 */ be_nested_str_weak(format), /* K22 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25i_X20fabric_X28s_X29_X20and_X20_X25i_X20session_X28s_X29), - /* K23 */ be_const_int(2), + /* K23 */ be_const_int(3), /* K24 */ be_nested_str_weak(device), /* K25 */ be_nested_str_weak(event_fabrics_saved), /* K26 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), /* K27 */ be_nested_str_weak(_X7C), + /* K28 */ be_const_int(2), }), be_str_weak(save_fabrics), &be_const_str_solidified, @@ -1297,7 +1286,7 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */ 0x5C2C0C00, // 004F MOVE R11 R6 0x7C280200, // 0050 CALL R10 1 0x0024120A, // 0051 ADD R9 R9 R10 - 0x58280017, // 0052 LDCONST R10 K23 + 0x5828001C, // 0052 LDCONST R10 K28 0x7C1C0600, // 0053 CALL R7 3 0x70020000, // 0054 JMP #0056 0xB0080000, // 0055 RAISE 2 R0 R0 diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h index a95cc8253..d9e482693 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h @@ -219,7 +219,7 @@ be_local_closure(Matter_UDPServer__resend_packets, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[23]) { /* constants */ + ( &(const bvalue[22]) { /* constants */ /* K0 */ be_const_int(0), /* K1 */ be_nested_str_weak(packets_sent), /* K2 */ be_nested_str_weak(tasmota), @@ -230,19 +230,18 @@ be_local_closure(Matter_UDPServer__resend_packets, /* name */ /* K7 */ be_nested_str_weak(log), /* K8 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Resending_X20packet_X20id_X3D), /* K9 */ be_nested_str_weak(msg_id), - /* K10 */ be_const_int(3), - /* K11 */ be_nested_str_weak(send), - /* K12 */ be_nested_str_weak(millis), - /* K13 */ be_nested_str_weak(_backoff_time), - /* K14 */ be_const_int(1), - /* K15 */ be_nested_str_weak(string), - /* K16 */ be_nested_str_weak(remove), - /* K17 */ be_nested_str_weak(format), - /* K18 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20Unacked_X20packet_X20_X27_X5B_X25s_X5D_X3A_X25i_X27_X20msg_id_X3D_X25i), - /* K19 */ be_nested_str_weak(session_id), - /* K20 */ be_nested_str_weak(addr), - /* K21 */ be_nested_str_weak(port), - /* K22 */ be_const_int(2), + /* K10 */ be_nested_str_weak(send), + /* K11 */ be_nested_str_weak(millis), + /* K12 */ be_nested_str_weak(_backoff_time), + /* K13 */ be_const_int(1), + /* K14 */ be_nested_str_weak(string), + /* K15 */ be_nested_str_weak(remove), + /* K16 */ be_nested_str_weak(format), + /* K17 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20Unacked_X20packet_X20_X27_X5B_X25s_X5D_X3A_X25i_X27_X20msg_id_X3D_X25i), + /* K18 */ be_nested_str_weak(session_id), + /* K19 */ be_nested_str_weak(addr), + /* K20 */ be_nested_str_weak(port), + /* K21 */ be_const_int(3), }), be_str_weak(_resend_packets), &be_const_str_solidified, @@ -270,42 +269,42 @@ be_local_closure(Matter_UDPServer__resend_packets, /* name */ 0x88180509, // 0014 GETMBR R6 R2 K9 0x7C140200, // 0015 CALL R5 1 0x00161005, // 0016 ADD R5 K8 R5 - 0x5818000A, // 0017 LDCONST R6 K10 + 0x541A0003, // 0017 LDINT R6 4 0x7C0C0600, // 0018 CALL R3 3 - 0x8C0C010B, // 0019 GETMET R3 R0 K11 + 0x8C0C010A, // 0019 GETMET R3 R0 K10 0x5C140400, // 001A MOVE R5 R2 0x7C0C0400, // 001B CALL R3 2 0xB80E0400, // 001C GETNGBL R3 K2 - 0x8C0C070C, // 001D GETMET R3 R3 K12 + 0x8C0C070B, // 001D GETMET R3 R3 K11 0x7C0C0200, // 001E CALL R3 1 - 0x8C10010D, // 001F GETMET R4 R0 K13 + 0x8C10010C, // 001F GETMET R4 R0 K12 0x88180505, // 0020 GETMBR R6 R2 K5 0x7C100400, // 0021 CALL R4 2 0x000C0604, // 0022 ADD R3 R3 R4 0x900A0803, // 0023 SETMBR R2 K4 R3 0x880C0505, // 0024 GETMBR R3 R2 K5 - 0x000C070E, // 0025 ADD R3 R3 K14 + 0x000C070D, // 0025 ADD R3 R3 K13 0x900A0A03, // 0026 SETMBR R2 K5 R3 - 0x0004030E, // 0027 ADD R1 R1 K14 + 0x0004030D, // 0027 ADD R1 R1 K13 0x7002000F, // 0028 JMP #0039 - 0xA40E1E00, // 0029 IMPORT R3 K15 + 0xA40E1C00, // 0029 IMPORT R3 K14 0x88100101, // 002A GETMBR R4 R0 K1 - 0x8C100910, // 002B GETMET R4 R4 K16 + 0x8C10090F, // 002B GETMET R4 R4 K15 0x5C180200, // 002C MOVE R6 R1 0x7C100400, // 002D CALL R4 2 0xB8120400, // 002E GETNGBL R4 K2 0x8C100907, // 002F GETMET R4 R4 K7 - 0x8C180711, // 0030 GETMET R6 R3 K17 - 0x58200012, // 0031 LDCONST R8 K18 - 0x88240513, // 0032 GETMBR R9 R2 K19 - 0x88280514, // 0033 GETMBR R10 R2 K20 - 0x882C0515, // 0034 GETMBR R11 R2 K21 + 0x8C180710, // 0030 GETMET R6 R3 K16 + 0x58200011, // 0031 LDCONST R8 K17 + 0x88240512, // 0032 GETMBR R9 R2 K18 + 0x88280513, // 0033 GETMBR R10 R2 K19 + 0x882C0514, // 0034 GETMBR R11 R2 K20 0x88300509, // 0035 GETMBR R12 R2 K9 0x7C180C00, // 0036 CALL R6 6 - 0x581C0016, // 0037 LDCONST R7 K22 + 0x581C0015, // 0037 LDCONST R7 K21 0x7C100600, // 0038 CALL R4 3 0x70020000, // 0039 JMP #003B - 0x0004030E, // 003A ADD R1 R1 K14 + 0x0004030D, // 003A ADD R1 R1 K13 0x7001FFC4, // 003B JMP #0001 0x80000000, // 003C RET 0 }) @@ -395,7 +394,7 @@ be_local_closure(Matter_UDPServer_every_50ms, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ + ( &(const bvalue[14]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_const_int(0), /* K2 */ be_nested_str_weak(udp_socket), @@ -407,10 +406,9 @@ be_local_closure(Matter_UDPServer_every_50ms, /* name */ /* K8 */ be_nested_str_weak(log), /* K9 */ be_nested_str_weak(format), /* K10 */ be_nested_str_weak(MTR_X3A_X20UDP_X20received_X20from_X20_X5B_X25s_X5D_X3A_X25i), - /* K11 */ be_const_int(3), - /* K12 */ be_nested_str_weak(dispatch_cb), - /* K13 */ be_nested_str_weak(MAX_PACKETS_READ), - /* K14 */ be_nested_str_weak(_resend_packets), + /* K11 */ be_nested_str_weak(dispatch_cb), + /* K12 */ be_nested_str_weak(MAX_PACKETS_READ), + /* K13 */ be_nested_str_weak(_resend_packets), }), be_str_weak(every_50ms), &be_const_str_solidified, @@ -440,16 +438,16 @@ be_local_closure(Matter_UDPServer_every_50ms, /* name */ 0x5C2C0800, // 0016 MOVE R11 R4 0x5C300A00, // 0017 MOVE R12 R5 0x7C200800, // 0018 CALL R8 4 - 0x5824000B, // 0019 LDCONST R9 K11 + 0x54260003, // 0019 LDINT R9 4 0x7C180600, // 001A CALL R6 3 - 0x8818010C, // 001B GETMBR R6 R0 K12 + 0x8818010B, // 001B GETMBR R6 R0 K11 0x781A0004, // 001C JMPF R6 #0022 - 0x8C18010C, // 001D GETMET R6 R0 K12 + 0x8C18010B, // 001D GETMET R6 R0 K11 0x5C200600, // 001E MOVE R8 R3 0x5C240800, // 001F MOVE R9 R4 0x5C280A00, // 0020 MOVE R10 R5 0x7C180800, // 0021 CALL R6 4 - 0x8818010D, // 0022 GETMBR R6 R0 K13 + 0x8818010C, // 0022 GETMBR R6 R0 K12 0x14180406, // 0023 LT R6 R2 R6 0x781A0004, // 0024 JMPF R6 #002A 0x88180102, // 0025 GETMBR R6 R0 K2 @@ -459,7 +457,7 @@ be_local_closure(Matter_UDPServer_every_50ms, /* name */ 0x70020000, // 0029 JMP #002B 0x4C0C0000, // 002A LDNIL R3 0x7001FFDD, // 002B JMP #000A - 0x8C10010E, // 002C GETMET R4 R0 K14 + 0x8C10010D, // 002C GETMET R4 R0 K13 0x7C100200, // 002D CALL R4 1 0x80000000, // 002E RET 0 }) @@ -578,67 +576,57 @@ be_local_closure(Matter_UDPServer_received_ack, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ + ( &(const bvalue[10]) { /* constants */ /* K0 */ be_nested_str_weak(ack_message_counter), /* K1 */ be_nested_str_weak(exchange_id), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(log), - /* K4 */ be_nested_str_weak(MTR_X3A_X20receveived_X20ACK_X20id_X3D), - /* K5 */ be_const_int(3), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(packets_sent), - /* K8 */ be_nested_str_weak(msg_id), - /* K9 */ be_nested_str_weak(remove), - /* K10 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Removed_X20packet_X20from_X20sending_X20list_X20id_X3D), - /* K11 */ be_const_int(1), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(packets_sent), + /* K4 */ be_nested_str_weak(msg_id), + /* K5 */ be_nested_str_weak(remove), + /* K6 */ be_nested_str_weak(tasmota), + /* K7 */ be_nested_str_weak(log), + /* K8 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Removed_X20packet_X20from_X20sending_X20list_X20id_X3D), + /* K9 */ be_const_int(1), }), be_str_weak(received_ack), &be_const_str_solidified, - ( &(const binstruction[44]) { /* code */ + ( &(const binstruction[36]) { /* code */ 0x88080300, // 0000 GETMBR R2 R1 K0 0x880C0301, // 0001 GETMBR R3 R1 K1 0x4C100000, // 0002 LDNIL R4 0x1C100404, // 0003 EQ R4 R2 R4 0x78120000, // 0004 JMPF R4 #0006 0x80000800, // 0005 RET 0 - 0xB8120400, // 0006 GETNGBL R4 K2 - 0x8C100903, // 0007 GETMET R4 R4 K3 - 0x60180008, // 0008 GETGBL R6 G8 - 0x5C1C0400, // 0009 MOVE R7 R2 - 0x7C180200, // 000A CALL R6 1 - 0x001A0806, // 000B ADD R6 K4 R6 - 0x581C0005, // 000C LDCONST R7 K5 - 0x7C100600, // 000D CALL R4 3 - 0x58100006, // 000E LDCONST R4 K6 - 0x6014000C, // 000F GETGBL R5 G12 - 0x88180107, // 0010 GETMBR R6 R0 K7 - 0x7C140200, // 0011 CALL R5 1 - 0x14140805, // 0012 LT R5 R4 R5 - 0x78160016, // 0013 JMPF R5 #002B - 0x88140107, // 0014 GETMBR R5 R0 K7 - 0x94140A04, // 0015 GETIDX R5 R5 R4 - 0x88180B08, // 0016 GETMBR R6 R5 K8 - 0x1C180C02, // 0017 EQ R6 R6 R2 - 0x781A000F, // 0018 JMPF R6 #0029 - 0x88180B01, // 0019 GETMBR R6 R5 K1 - 0x1C180C03, // 001A EQ R6 R6 R3 - 0x781A000C, // 001B JMPF R6 #0029 - 0x88180107, // 001C GETMBR R6 R0 K7 - 0x8C180D09, // 001D GETMET R6 R6 K9 - 0x5C200800, // 001E MOVE R8 R4 - 0x7C180400, // 001F CALL R6 2 - 0xB81A0400, // 0020 GETNGBL R6 K2 - 0x8C180D03, // 0021 GETMET R6 R6 K3 - 0x60200008, // 0022 GETGBL R8 G8 - 0x5C240400, // 0023 MOVE R9 R2 - 0x7C200200, // 0024 CALL R8 1 - 0x00221408, // 0025 ADD R8 K10 R8 - 0x58240005, // 0026 LDCONST R9 K5 - 0x7C180600, // 0027 CALL R6 3 - 0x70020000, // 0028 JMP #002A - 0x0010090B, // 0029 ADD R4 R4 K11 - 0x7001FFE3, // 002A JMP #000F - 0x80000000, // 002B RET 0 + 0x58100002, // 0006 LDCONST R4 K2 + 0x6014000C, // 0007 GETGBL R5 G12 + 0x88180103, // 0008 GETMBR R6 R0 K3 + 0x7C140200, // 0009 CALL R5 1 + 0x14140805, // 000A LT R5 R4 R5 + 0x78160016, // 000B JMPF R5 #0023 + 0x88140103, // 000C GETMBR R5 R0 K3 + 0x94140A04, // 000D GETIDX R5 R5 R4 + 0x88180B04, // 000E GETMBR R6 R5 K4 + 0x1C180C02, // 000F EQ R6 R6 R2 + 0x781A000F, // 0010 JMPF R6 #0021 + 0x88180B01, // 0011 GETMBR R6 R5 K1 + 0x1C180C03, // 0012 EQ R6 R6 R3 + 0x781A000C, // 0013 JMPF R6 #0021 + 0x88180103, // 0014 GETMBR R6 R0 K3 + 0x8C180D05, // 0015 GETMET R6 R6 K5 + 0x5C200800, // 0016 MOVE R8 R4 + 0x7C180400, // 0017 CALL R6 2 + 0xB81A0C00, // 0018 GETNGBL R6 K6 + 0x8C180D07, // 0019 GETMET R6 R6 K7 + 0x60200008, // 001A GETGBL R8 G8 + 0x5C240400, // 001B MOVE R9 R2 + 0x7C200200, // 001C CALL R8 1 + 0x00221008, // 001D ADD R8 K8 R8 + 0x54260003, // 001E LDINT R9 4 + 0x7C180600, // 001F CALL R6 3 + 0x70020000, // 0020 JMP #0022 + 0x00100909, // 0021 ADD R4 R4 K9 + 0x7001FFE3, // 0022 JMP #0007 + 0x80000000, // 0023 RET 0 }) ) ); @@ -717,7 +705,7 @@ be_local_closure(Matter_UDPServer_send, /* name */ /* K10 */ be_nested_str_weak(format), /* K11 */ be_nested_str_weak(MTR_X3A_X20sending_X20packet_X20to_X20_X27_X5B_X25s_X5D_X3A_X25i_X27), /* K12 */ be_nested_str_weak(MTR_X3A_X20error_X20sending_X20packet_X20to_X20_X27_X5B_X25s_X5D_X3A_X25i_X27), - /* K13 */ be_const_int(2), + /* K13 */ be_const_int(3), }), be_str_weak(send), &be_const_str_solidified, diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h index ba1b39dd0..bd60b72be 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h @@ -7,122 +7,80 @@ extern const bclass be_class_Matter_UI; /******************************************************************** -** Solidified function: web_add_config_button +** Solidified function: equal_map ********************************************************************/ -be_local_closure(Matter_UI_web_add_config_button, /* name */ +be_local_closure(Matter_UI_equal_map, /* name */ be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ + 8, /* nstack */ + 2, /* 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_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(content_send), - /* K2 */ be_nested_str_weak(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27matterc_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(_LOGO), - /* K5 */ be_nested_str_weak(_X20Configure_X20Matter_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_UI), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(contains), + /* K3 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(web_add_config_button), + be_str_weak(equal_map), &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x7C080400, // 0003 CALL R2 2 - 0x8C080301, // 0004 GETMET R2 R1 K1 - 0xB8120600, // 0005 GETNGBL R4 K3 - 0x88100904, // 0006 GETMBR R4 R4 K4 - 0x7C080400, // 0007 CALL R2 2 - 0x8C080301, // 0008 GETMET R2 R1 K1 - 0x58100005, // 0009 LDCONST R4 K5 - 0x7C080400, // 000A CALL R2 2 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show_passcode_form -********************************************************************/ -be_local_closure(Matter_UI_show_passcode_form, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(content_send), - /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20Advanced_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K4 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E_X3Cp_X3EPasscode_X3A_X3C_X2Fp_X3E), - /* K5 */ be_nested_str_weak(format), - /* K6 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X271_X27_X20max_X3D_X2799999998_X27_X20name_X3D_X27passcode_X27_X20value_X3D_X27_X25i_X27_X3E), - /* K7 */ be_nested_str_weak(device), - /* K8 */ be_nested_str_weak(root_passcode), - /* K9 */ be_nested_str_weak(_X3Cp_X3EDistinguish_X20id_X3A_X3C_X2Fp_X3E), - /* K10 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X270_X27_X20max_X3D_X274095_X27_X20name_X3D_X27discriminator_X27_X20value_X3D_X27_X25i_X27_X3E), - /* K11 */ be_nested_str_weak(root_discriminator), - /* K12 */ be_nested_str_weak(_X3Cp_X3E_X3Cinput_X20type_X3D_X27checkbox_X27_X20name_X3D_X27ipv4_X27_X25s_X3EIPv4_X20only_X3C_X2Fp_X3E), - /* K13 */ be_nested_str_weak(ipv4only), - /* K14 */ be_nested_str_weak(_X20checked), - /* K15 */ be_nested_str_weak(), - /* K16 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27passcode_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - }), - be_str_weak(show_passcode_form), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C0C0400, // 0004 CALL R3 2 - 0x8C0C0302, // 0005 GETMET R3 R1 K2 - 0x58140004, // 0006 LDCONST R5 K4 - 0x7C0C0400, // 0007 CALL R3 2 - 0x8C0C0302, // 0008 GETMET R3 R1 K2 - 0x8C140505, // 0009 GETMET R5 R2 K5 - 0x581C0006, // 000A LDCONST R7 K6 - 0x88200107, // 000B GETMBR R8 R0 K7 - 0x88201108, // 000C GETMBR R8 R8 K8 - 0x7C140600, // 000D CALL R5 3 - 0x7C0C0400, // 000E CALL R3 2 - 0x8C0C0302, // 000F GETMET R3 R1 K2 - 0x58140009, // 0010 LDCONST R5 K9 - 0x7C0C0400, // 0011 CALL R3 2 - 0x8C0C0302, // 0012 GETMET R3 R1 K2 - 0x8C140505, // 0013 GETMET R5 R2 K5 - 0x581C000A, // 0014 LDCONST R7 K10 - 0x88200107, // 0015 GETMBR R8 R0 K7 - 0x8820110B, // 0016 GETMBR R8 R8 K11 - 0x7C140600, // 0017 CALL R5 3 - 0x7C0C0400, // 0018 CALL R3 2 - 0x8C0C0302, // 0019 GETMET R3 R1 K2 - 0x8C140505, // 001A GETMET R5 R2 K5 - 0x581C000C, // 001B LDCONST R7 K12 - 0x88200107, // 001C GETMBR R8 R0 K7 - 0x8820110D, // 001D GETMBR R8 R8 K13 - 0x78220001, // 001E JMPF R8 #0021 - 0x5820000E, // 001F LDCONST R8 K14 - 0x70020000, // 0020 JMP #0022 - 0x5820000F, // 0021 LDCONST R8 K15 - 0x7C140600, // 0022 CALL R5 3 - 0x7C0C0400, // 0023 CALL R3 2 - 0x8C0C0302, // 0024 GETMET R3 R1 K2 - 0x58140010, // 0025 LDCONST R5 K16 - 0x7C0C0400, // 0026 CALL R3 2 - 0x80000000, // 0027 RET 0 + ( &(const binstruction[53]) { /* code */ + 0x58080000, // 0000 LDCONST R2 K0 + 0x600C0010, // 0001 GETGBL R3 G16 + 0x8C100101, // 0002 GETMET R4 R0 K1 + 0x7C100200, // 0003 CALL R4 1 + 0x7C0C0200, // 0004 CALL R3 1 + 0xA8020010, // 0005 EXBLK 0 #0017 + 0x5C100600, // 0006 MOVE R4 R3 + 0x7C100000, // 0007 CALL R4 0 + 0x8C140302, // 0008 GETMET R5 R1 K2 + 0x5C1C0800, // 0009 MOVE R7 R4 + 0x7C140400, // 000A CALL R5 2 + 0x74160002, // 000B JMPT R5 #000F + 0x50140000, // 000C LDBOOL R5 0 0 + 0xA8040001, // 000D EXBLK 1 1 + 0x80040A00, // 000E RET 1 R5 + 0x94140204, // 000F GETIDX R5 R1 R4 + 0x94180004, // 0010 GETIDX R6 R0 R4 + 0x20140A06, // 0011 NE R5 R5 R6 + 0x78160002, // 0012 JMPF R5 #0016 + 0x50140000, // 0013 LDBOOL R5 0 0 + 0xA8040001, // 0014 EXBLK 1 1 + 0x80040A00, // 0015 RET 1 R5 + 0x7001FFEE, // 0016 JMP #0006 + 0x580C0003, // 0017 LDCONST R3 K3 + 0xAC0C0200, // 0018 CATCH R3 1 0 + 0xB0080000, // 0019 RAISE 2 R0 R0 + 0x600C0010, // 001A GETGBL R3 G16 + 0x8C100301, // 001B GETMET R4 R1 K1 + 0x7C100200, // 001C CALL R4 1 + 0x7C0C0200, // 001D CALL R3 1 + 0xA8020010, // 001E EXBLK 0 #0030 + 0x5C100600, // 001F MOVE R4 R3 + 0x7C100000, // 0020 CALL R4 0 + 0x8C140102, // 0021 GETMET R5 R0 K2 + 0x5C1C0800, // 0022 MOVE R7 R4 + 0x7C140400, // 0023 CALL R5 2 + 0x74160002, // 0024 JMPT R5 #0028 + 0x50140000, // 0025 LDBOOL R5 0 0 + 0xA8040001, // 0026 EXBLK 1 1 + 0x80040A00, // 0027 RET 1 R5 + 0x94140204, // 0028 GETIDX R5 R1 R4 + 0x94180004, // 0029 GETIDX R6 R0 R4 + 0x20140A06, // 002A NE R5 R5 R6 + 0x78160002, // 002B JMPF R5 #002F + 0x50140000, // 002C LDBOOL R5 0 0 + 0xA8040001, // 002D EXBLK 1 1 + 0x80040A00, // 002E RET 1 R5 + 0x7001FFEE, // 002F JMP #001F + 0x580C0003, // 0030 LDCONST R3 K3 + 0xAC0C0200, // 0031 CATCH R3 1 0 + 0xB0080000, // 0032 RAISE 2 R0 R0 + 0x500C0200, // 0033 LDBOOL R3 1 0 + 0x80040600, // 0034 RET 1 R3 }) ) ); @@ -190,6 +148,1595 @@ be_local_closure(Matter_UI_page_part_mgr_adv, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: page_part_mgr +********************************************************************/ +be_local_closure(Matter_UI_page_part_mgr, /* 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[15]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(check_privileged_access), + /* K3 */ be_nested_str_weak(content_start), + /* K4 */ be_nested_str_weak(Matter), + /* K5 */ be_nested_str_weak(content_send_style), + /* K6 */ be_nested_str_weak(show_enable), + /* K7 */ be_nested_str_weak(matter_enabled), + /* K8 */ be_nested_str_weak(show_plugins_configuration), + /* K9 */ be_nested_str_weak(content_send), + /* K10 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27display_X3A_X20block_X3B_X27_X3E_X3C_X2Fdiv_X3E), + /* K11 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cform_X20id_X3D_X27butmat_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27mattera_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X20name_X3D_X27_X27_X3EAdvanced_X20Configuration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), + /* K12 */ be_nested_str_weak(content_button), + /* K13 */ be_nested_str_weak(BUTTON_CONFIGURATION), + /* K14 */ be_nested_str_weak(content_stop), + }), + be_str_weak(page_part_mgr), + &be_const_str_solidified, + ( &(const binstruction[31]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x7C0C0200, // 0003 CALL R3 1 + 0x740E0001, // 0004 JMPT R3 #0007 + 0x4C0C0000, // 0005 LDNIL R3 + 0x80040600, // 0006 RET 1 R3 + 0x8C0C0303, // 0007 GETMET R3 R1 K3 + 0x58140004, // 0008 LDCONST R5 K4 + 0x7C0C0400, // 0009 CALL R3 2 + 0x8C0C0305, // 000A GETMET R3 R1 K5 + 0x7C0C0200, // 000B CALL R3 1 + 0x8C0C0106, // 000C GETMET R3 R0 K6 + 0x7C0C0200, // 000D CALL R3 1 + 0x8C0C0107, // 000E GETMET R3 R0 K7 + 0x7C0C0200, // 000F CALL R3 1 + 0x780E0001, // 0010 JMPF R3 #0013 + 0x8C0C0108, // 0011 GETMET R3 R0 K8 + 0x7C0C0200, // 0012 CALL R3 1 + 0x8C0C0309, // 0013 GETMET R3 R1 K9 + 0x5814000A, // 0014 LDCONST R5 K10 + 0x7C0C0400, // 0015 CALL R3 2 + 0x8C0C0309, // 0016 GETMET R3 R1 K9 + 0x5814000B, // 0017 LDCONST R5 K11 + 0x7C0C0400, // 0018 CALL R3 2 + 0x8C0C030C, // 0019 GETMET R3 R1 K12 + 0x8814030D, // 001A GETMBR R5 R1 K13 + 0x7C0C0400, // 001B CALL R3 2 + 0x8C0C030E, // 001C GETMET R3 R1 K14 + 0x7C0C0200, // 001D CALL R3 1 + 0x80000000, // 001E RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: plugin_name +********************************************************************/ +be_local_closure(Matter_UI_plugin_name, /* name */ + be_nested_proto( + 6, /* nstack */ + 3, /* argc */ + 3, /* 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(), + /* K1 */ be_nested_str_weak(device), + /* K2 */ be_nested_str_weak(get_plugin_class_displayname), + }), + be_str_weak(plugin_name), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x1C0C0300, // 0000 EQ R3 R1 K0 + 0x780E0000, // 0001 JMPF R3 #0003 + 0x80060000, // 0002 RET 1 K0 + 0x880C0101, // 0003 GETMBR R3 R0 K1 + 0x8C0C0702, // 0004 GETMET R3 R3 K2 + 0x5C140200, // 0005 MOVE R5 R1 + 0x7C0C0400, // 0006 CALL R3 2 + 0x80040600, // 0007 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: matter_enabled +********************************************************************/ +be_local_closure(Matter_UI_matter_enabled, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(get_option), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(MATTER_OPTION), + }), + be_str_weak(matter_enabled), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x60040017, // 0000 GETGBL R1 G23 + 0xB80A0000, // 0001 GETNGBL R2 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0xB8120400, // 0003 GETNGBL R4 K2 + 0x88100903, // 0004 GETMBR R4 R4 K3 + 0x7C080400, // 0005 CALL R2 2 + 0x7C040200, // 0006 CALL R1 1 + 0x80040200, // 0007 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: generate_config_from_status +********************************************************************/ +be_local_closure(Matter_UI_generate_config_from_status, /* name */ + be_nested_proto( + 13, /* 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_const_int(0), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(POWER), + /* K3 */ be_const_int(1), + /* K4 */ be_nested_str_weak(HSBColor), + /* K5 */ be_nested_str_weak(CT), + /* K6 */ be_nested_str_weak(Dimmer), + /* K7 */ be_nested_str_weak(push), + /* K8 */ be_nested_str_weak(type), + /* K9 */ be_nested_str_weak(light0), + /* K10 */ be_nested_str_weak(relay), + /* K11 */ be_nested_str_weak(stop_iteration), + /* K12 */ be_nested_str_weak(light1), + /* K13 */ be_nested_str_weak(light2), + /* K14 */ be_nested_str_weak(light3), + /* K15 */ be_nested_str_weak(device), + /* K16 */ be_nested_str_weak(autoconf_sensors_list), + }), + be_str_weak(generate_config_from_status), + &be_const_str_solidified, + ( &(const binstruction[96]) { /* code */ + 0x600C0012, // 0000 GETGBL R3 G18 + 0x7C0C0000, // 0001 CALL R3 0 + 0x58100000, // 0002 LDCONST R4 K0 + 0x8C140501, // 0003 GETMET R5 R2 K1 + 0x581C0002, // 0004 LDCONST R7 K2 + 0x7C140400, // 0005 CALL R5 2 + 0x78160001, // 0006 JMPF R5 #0009 + 0x58100003, // 0007 LDCONST R4 K3 + 0x7002000E, // 0008 JMP #0018 + 0x58140003, // 0009 LDCONST R5 K3 + 0x50180200, // 000A LDBOOL R6 1 0 + 0x781A000B, // 000B JMPF R6 #0018 + 0x8C180501, // 000C GETMET R6 R2 K1 + 0x60200008, // 000D GETGBL R8 G8 + 0x5C240A00, // 000E MOVE R9 R5 + 0x7C200200, // 000F CALL R8 1 + 0x00220408, // 0010 ADD R8 K2 R8 + 0x7C180400, // 0011 CALL R6 2 + 0x781A0002, // 0012 JMPF R6 #0016 + 0x5C100A00, // 0013 MOVE R4 R5 + 0x00140B03, // 0014 ADD R5 R5 K3 + 0x70020000, // 0015 JMP #0017 + 0x70020000, // 0016 JMP #0018 + 0x7001FFF1, // 0017 JMP #000A + 0x4C140000, // 0018 LDNIL R5 + 0x4C180000, // 0019 LDNIL R6 + 0x4C1C0000, // 001A LDNIL R7 + 0x8C200501, // 001B GETMET R8 R2 K1 + 0x58280004, // 001C LDCONST R10 K4 + 0x7C200400, // 001D CALL R8 2 + 0x78220002, // 001E JMPF R8 #0022 + 0x5C1C0800, // 001F MOVE R7 R4 + 0x04100903, // 0020 SUB R4 R4 K3 + 0x7002000C, // 0021 JMP #002F + 0x8C200501, // 0022 GETMET R8 R2 K1 + 0x58280005, // 0023 LDCONST R10 K5 + 0x7C200400, // 0024 CALL R8 2 + 0x78220002, // 0025 JMPF R8 #0029 + 0x5C180800, // 0026 MOVE R6 R4 + 0x04100903, // 0027 SUB R4 R4 K3 + 0x70020005, // 0028 JMP #002F + 0x8C200501, // 0029 GETMET R8 R2 K1 + 0x58280006, // 002A LDCONST R10 K6 + 0x7C200400, // 002B CALL R8 2 + 0x78220001, // 002C JMPF R8 #002F + 0x5C140800, // 002D MOVE R5 R4 + 0x04100903, // 002E SUB R4 R4 K3 + 0x60200010, // 002F GETGBL R8 G16 + 0x40260604, // 0030 CONNECT R9 K3 R4 + 0x7C200200, // 0031 CALL R8 1 + 0xA8020008, // 0032 EXBLK 0 #003C + 0x5C241000, // 0033 MOVE R9 R8 + 0x7C240000, // 0034 CALL R9 0 + 0x8C280707, // 0035 GETMET R10 R3 K7 + 0x60300013, // 0036 GETGBL R12 G19 + 0x7C300000, // 0037 CALL R12 0 + 0x98321109, // 0038 SETIDX R12 K8 K9 + 0x98321409, // 0039 SETIDX R12 K10 R9 + 0x7C280400, // 003A CALL R10 2 + 0x7001FFF6, // 003B JMP #0033 + 0x5820000B, // 003C LDCONST R8 K11 + 0xAC200200, // 003D CATCH R8 1 0 + 0xB0080000, // 003E RAISE 2 R0 R0 + 0x4C200000, // 003F LDNIL R8 + 0x20200A08, // 0040 NE R8 R5 R8 + 0x78220005, // 0041 JMPF R8 #0048 + 0x8C200707, // 0042 GETMET R8 R3 K7 + 0x60280013, // 0043 GETGBL R10 G19 + 0x7C280000, // 0044 CALL R10 0 + 0x982A110C, // 0045 SETIDX R10 K8 K12 + 0x982A1405, // 0046 SETIDX R10 K10 R5 + 0x7C200400, // 0047 CALL R8 2 + 0x4C200000, // 0048 LDNIL R8 + 0x20200C08, // 0049 NE R8 R6 R8 + 0x78220005, // 004A JMPF R8 #0051 + 0x8C200707, // 004B GETMET R8 R3 K7 + 0x60280013, // 004C GETGBL R10 G19 + 0x7C280000, // 004D CALL R10 0 + 0x982A110D, // 004E SETIDX R10 K8 K13 + 0x982A1406, // 004F SETIDX R10 K10 R6 + 0x7C200400, // 0050 CALL R8 2 + 0x4C200000, // 0051 LDNIL R8 + 0x20200E08, // 0052 NE R8 R7 R8 + 0x78220005, // 0053 JMPF R8 #005A + 0x8C200707, // 0054 GETMET R8 R3 K7 + 0x60280013, // 0055 GETGBL R10 G19 + 0x7C280000, // 0056 CALL R10 0 + 0x982A110E, // 0057 SETIDX R10 K8 K14 + 0x982A1407, // 0058 SETIDX R10 K10 R7 + 0x7C200400, // 0059 CALL R8 2 + 0x8820010F, // 005A GETMBR R8 R0 K15 + 0x8C201110, // 005B GETMET R8 R8 K16 + 0x5C280200, // 005C MOVE R10 R1 + 0x7C200400, // 005D CALL R8 2 + 0x000C0608, // 005E ADD R3 R3 R8 + 0x80040600, // 005F RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: web_sensor +********************************************************************/ +be_local_closure(Matter_UI_web_sensor, /* 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[19]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(matter_enabled), + /* K3 */ be_nested_str_weak(device), + /* K4 */ be_nested_str_weak(sessions), + /* K5 */ be_nested_str_weak(count_active_fabrics), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(content_send), + /* K8 */ be_nested_str_weak(format), + /* K9 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27text_X2Dalign_X3Aright_X3Bfont_X2Dsize_X3A11px_X3Bcolor_X3A_X23aaa_X3Bpadding_X3A0px_X3B_X27_X3E_X25s_X3C_X2Fdiv_X3E), + /* K10 */ be_nested_str_weak(Matter_X3A_X20No_X20active_X20association), + /* K11 */ be_const_int(1), + /* K12 */ be_nested_str_weak(Matter_X3A_X20), + /* K13 */ be_nested_str_weak(_X20active_X20association), + /* K14 */ be_nested_str_weak(s), + /* K15 */ be_nested_str_weak(), + /* K16 */ be_nested_str_weak(show_bridge_status), + /* K17 */ be_nested_str_weak(is_root_commissioning_open), + /* K18 */ be_nested_str_weak(show_commissioning_info), + }), + be_str_weak(web_sensor), + &be_const_str_solidified, + ( &(const binstruction[43]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0102, // 0002 GETMET R3 R0 K2 + 0x7C0C0200, // 0003 CALL R3 1 + 0x780E0024, // 0004 JMPF R3 #002A + 0x880C0103, // 0005 GETMBR R3 R0 K3 + 0x880C0704, // 0006 GETMBR R3 R3 K4 + 0x8C0C0705, // 0007 GETMET R3 R3 K5 + 0x7C0C0200, // 0008 CALL R3 1 + 0x1C100706, // 0009 EQ R4 R3 K6 + 0x78120006, // 000A JMPF R4 #0012 + 0x8C100307, // 000B GETMET R4 R1 K7 + 0x8C180508, // 000C GETMET R6 R2 K8 + 0x58200009, // 000D LDCONST R8 K9 + 0x5824000A, // 000E LDCONST R9 K10 + 0x7C180600, // 000F CALL R6 3 + 0x7C100400, // 0010 CALL R4 2 + 0x7002000F, // 0011 JMP #0022 + 0x2410070B, // 0012 GT R4 R3 K11 + 0x8C140307, // 0013 GETMET R5 R1 K7 + 0x8C1C0508, // 0014 GETMET R7 R2 K8 + 0x58240009, // 0015 LDCONST R9 K9 + 0x60280008, // 0016 GETGBL R10 G8 + 0x5C2C0600, // 0017 MOVE R11 R3 + 0x7C280200, // 0018 CALL R10 1 + 0x002A180A, // 0019 ADD R10 K12 R10 + 0x0028150D, // 001A ADD R10 R10 K13 + 0x78120001, // 001B JMPF R4 #001E + 0x582C000E, // 001C LDCONST R11 K14 + 0x70020000, // 001D JMP #001F + 0x582C000F, // 001E LDCONST R11 K15 + 0x0028140B, // 001F ADD R10 R10 R11 + 0x7C1C0600, // 0020 CALL R7 3 + 0x7C140400, // 0021 CALL R5 2 + 0x8C100110, // 0022 GETMET R4 R0 K16 + 0x7C100200, // 0023 CALL R4 1 + 0x88100103, // 0024 GETMBR R4 R0 K3 + 0x8C100911, // 0025 GETMET R4 R4 K17 + 0x7C100200, // 0026 CALL R4 1 + 0x78120001, // 0027 JMPF R4 #002A + 0x8C100112, // 0028 GETMET R4 R0 K18 + 0x7C100200, // 0029 CALL R4 1 + 0x80000000, // 002A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: page_part_mgr_add +********************************************************************/ +be_local_closure(Matter_UI_page_part_mgr_add, /* 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[13]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(check_privileged_access), + /* K3 */ be_nested_str_weak(content_start), + /* K4 */ be_nested_str_weak(Matter_X20Create_X20new_X20endpoint), + /* K5 */ be_nested_str_weak(content_send_style), + /* K6 */ be_nested_str_weak(arg), + /* K7 */ be_nested_str_weak(url), + /* K8 */ be_nested_str_weak(matter_enabled), + /* K9 */ be_nested_str_weak(show_remote_autoconf), + /* K10 */ be_nested_str_weak(content_button), + /* K11 */ be_nested_str_weak(BUTTON_CONFIGURATION), + /* K12 */ be_nested_str_weak(content_stop), + }), + be_str_weak(page_part_mgr_add), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x7C0C0200, // 0003 CALL R3 1 + 0x740E0001, // 0004 JMPT R3 #0007 + 0x4C0C0000, // 0005 LDNIL R3 + 0x80040600, // 0006 RET 1 R3 + 0x8C0C0303, // 0007 GETMET R3 R1 K3 + 0x58140004, // 0008 LDCONST R5 K4 + 0x7C0C0400, // 0009 CALL R3 2 + 0x8C0C0305, // 000A GETMET R3 R1 K5 + 0x7C0C0200, // 000B CALL R3 1 + 0x8C0C0306, // 000C GETMET R3 R1 K6 + 0x58140007, // 000D LDCONST R5 K7 + 0x7C0C0400, // 000E CALL R3 2 + 0x8C100108, // 000F GETMET R4 R0 K8 + 0x7C100200, // 0010 CALL R4 1 + 0x78120002, // 0011 JMPF R4 #0015 + 0x8C100109, // 0012 GETMET R4 R0 K9 + 0x5C180600, // 0013 MOVE R6 R3 + 0x7C100400, // 0014 CALL R4 2 + 0x8C10030A, // 0015 GETMET R4 R1 K10 + 0x8818030B, // 0016 GETMBR R6 R1 K11 + 0x7C100400, // 0017 CALL R4 2 + 0x8C10030C, // 0018 GETMET R4 R1 K12 + 0x7C100200, // 0019 CALL R4 1 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_plugins_configuration +********************************************************************/ +be_local_closure(Matter_UI_show_plugins_configuration, /* name */ + be_nested_proto( + 26, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[58]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(introspect), + /* K3 */ be_nested_str_weak(content_send), + /* K4 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCurrent_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K5 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E_X3Cp_X3E_X3Cb_X3ELocal_X20sensors_X20and_X20devices_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E_X3Ctr_X3E_X3Ctd_X20width_X3D_X2725_X27_X3E_X23_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X27115_X27_X3EType_X3C_X2Ftd_X3E_X3Ctd_X3EParameter_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X2715_X27_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K6 */ be_nested_str_weak(device), + /* K7 */ be_nested_str_weak(plugins_config), + /* K8 */ be_nested_str_weak(remove), + /* K9 */ be_nested_str_weak(0), + /* K10 */ be_nested_str_weak(k2l_num), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(find), + /* K13 */ be_nested_str_weak(type), + /* K14 */ be_const_int(1), + /* K15 */ be_nested_str_weak(http_), + /* K16 */ be_nested_str_weak(plugins_classes), + /* K17 */ be_nested_str_weak(), + /* K18 */ be_nested_str_weak(ui_conf_to_string), + /* K19 */ be_nested_str_weak(format), + /* K20 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cb_X3E_X25i_X3C_X2Fb_X3E_X3C_X2Ftd_X3E), + /* K21 */ be_nested_str_weak(_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Ftd_X3E), + /* K22 */ be_nested_str_weak(plugin_name), + /* K23 */ be_nested_str_weak(_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X25i_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X20placeholder_X3D_X27_X25s_X27_X3E_X3C_X2Ftd_X3E), + /* K24 */ be_nested_str_weak(html_escape), + /* K25 */ be_nested_str_weak(ARG_HINT), + /* K26 */ be_nested_str_weak(_X3Ctd_X20style_X3D_X27text_X2Dalign_X3Acenter_X3B_X27_X3E_X3Cbutton_X20name_X3D_X27del_X25i_X27_X20style_X3D_X27background_X3Anone_X3Bborder_X3Anone_X3Bline_X2Dheight_X3A1_X3B_X27_X20onclick_X3D_X22return_X20confirm_X28_X27Confirm_X20removing_X20endpoint_X27_X29_X22_X3E_X26_X23128293_X3B_X3C_X2Fbutton_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K27 */ be_nested_str_weak(_X3C_X2Ftable_X3E), + /* K28 */ be_nested_str_weak(_X3Cp_X3E_X26lt_X3Bnone_X26gt_X3B_X3C_X2Fp_X3E), + /* K29 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E), + /* K30 */ be_nested_str_weak(url), + /* K31 */ be_nested_str_weak(push), + /* K32 */ be_nested_str_weak(stop_iteration), + /* K33 */ be_nested_str_weak(sort_distinct), + /* K34 */ be_nested_str_weak(_X26_X23x1F517_X3B_X20_X3Ca_X20target_X3D_X27_blank_X27_X20href_X3D_X22http_X3A_X2F_X2F_X25s_X2F_X22_X3E_X25s_X3C_X2Fa_X3E), + /* K35 */ be_nested_str_weak(_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E), + /* K36 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2725_X27_X3E_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X27115_X27_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X2715_X27_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K37 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2722_X27_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cb_X3E_X25i_X3C_X2Fb_X3E_X3C_X2Ftd_X3E), + /* K38 */ be_nested_str_weak(_X3Ctd_X20width_X3D_X27115_X27_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Fselect_X3E_X3C_X2Ftd_X3E), + /* K39 */ be_nested_str_weak(_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X25i_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X3E_X3C_X2Ftd_X3E), + /* K40 */ be_nested_str_weak(_X3Ctd_X20width_X3D_X2715_X27_X20style_X3D_X27text_X2Dalign_X3Acenter_X3B_X27_X3E_X3Cbutton_X20name_X3D_X27del_X25i_X27_X20style_X3D_X27background_X3Anone_X3Bborder_X3Anone_X3Bline_X2Dheight_X3A1_X3B_X27_X20onclick_X3D_X22return_X20confirm_X28_X27Confirm_X20removing_X20endpoint_X27_X29_X22_X3E_X26_X23128293_X3B_X3C_X2Fbutton_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K41 */ be_nested_str_weak(_X3C_X2Ftable_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K42 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27config_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X20configuration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E), + /* K43 */ be_nested_str_weak(show_plugins_hints_js), + /* K44 */ be_nested_str_weak(_CLASSES_TYPES), + /* K45 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BAdd_X20to_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K46 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3EAdd_X20local_X20sensor_X20or_X20device_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E_X3Ctr_X3E_X3Ctd_X20width_X3D_X27145_X27_X3EType_X3C_X2Ftd_X3E_X3Ctd_X3EParameter_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K47 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cselect_X20id_X3D_X27pi_X27_X20name_X3D_X27pi_X27_X20onchange_X3D_X27otm_X28_X22arg_X22_X2Cthis_X2Evalue_X29_X27_X3E), + /* K48 */ be_nested_str_weak(plugin_option), + /* K49 */ be_nested_str_weak(_X3C_X2Fselect_X3E_X3C_X2Ftd_X3E), + /* K50 */ be_nested_str_weak(_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20id_X3D_X27arg_X27_X20name_X3D_X27arg_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X27_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E_X3C_X2Ftable_X3E), + /* K51 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27display_X3A_X20block_X3B_X27_X3E_X3C_X2Fdiv_X3E), + /* K52 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27addep_X27_X20class_X3D_X27button_X20bgrn_X27_X3ECreate_X20new_X20endpoint_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), + /* K53 */ be_nested_str_weak(_X3Chr_X3E_X3Cp_X3E_X3Cb_X3EAdd_X20Remote_X20Tasmota_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Cform_X20action_X3D_X27_X2Fmatteradd_X27_X20method_X3D_X27get_X27_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E), + /* K54 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2730_X27_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cb_X3Ehttp_X3A_X2F_X2F_X3C_X2Fb_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27url_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X27_X20required_X20placeholder_X3D_X27IP_X20or_X20domain_X27_X3E_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X2710_X27_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cb_X3E_X2F_X3C_X2Fb_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E_X3C_X2Ftr_X3E_X3C_X2Ftable_X3E), + /* K55 */ be_nested_str_weak(_X3Cbutton_X20class_X3D_X27button_X20bgrn_X27_X3EAuto_X2Dconfigure_X20remote_X20Tasmota_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3Chr_X3E), + /* K56 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20RESET_X20the_X20configuration_X20to_X20the_X20default_X2E_X20You_X20will_X20need_X20to_X20associate_X20again_X2E_X22_X29_X3B_X27_X3E_X3Cbutton_X20name_X3D_X27auto_X27_X20class_X3D_X27button_X20bred_X27_X3EReset_X20all_X20and_X20Auto_X2Ddiscover_X3C_X2Fbutton_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Fform_X3E), + /* K57 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E), + }), + be_str_weak(show_plugins_configuration), + &be_const_str_solidified, + ( &(const binstruction[312]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA40E0400, // 0002 IMPORT R3 K2 + 0x8C100303, // 0003 GETMET R4 R1 K3 + 0x58180004, // 0004 LDCONST R6 K4 + 0x7C100400, // 0005 CALL R4 2 + 0x8C100303, // 0006 GETMET R4 R1 K3 + 0x58180005, // 0007 LDCONST R6 K5 + 0x7C100400, // 0008 CALL R4 2 + 0x88100106, // 0009 GETMBR R4 R0 K6 + 0x88100907, // 000A GETMBR R4 R4 K7 + 0x8C100908, // 000B GETMET R4 R4 K8 + 0x58180009, // 000C LDCONST R6 K9 + 0x7C100400, // 000D CALL R4 2 + 0x88100106, // 000E GETMBR R4 R0 K6 + 0x8C10090A, // 000F GETMET R4 R4 K10 + 0x88180106, // 0010 GETMBR R6 R0 K6 + 0x88180D07, // 0011 GETMBR R6 R6 K7 + 0x7C100400, // 0012 CALL R4 2 + 0x5814000B, // 0013 LDCONST R5 K11 + 0x50180000, // 0014 LDBOOL R6 0 0 + 0x601C000C, // 0015 GETGBL R7 G12 + 0x5C200800, // 0016 MOVE R8 R4 + 0x7C1C0200, // 0017 CALL R7 1 + 0x141C0A07, // 0018 LT R7 R5 R7 + 0x781E004D, // 0019 JMPF R7 #0068 + 0x941C0805, // 001A GETIDX R7 R4 R5 + 0x88200106, // 001B GETMBR R8 R0 K6 + 0x88201107, // 001C GETMBR R8 R8 K7 + 0x8C20110C, // 001D GETMET R8 R8 K12 + 0x60280008, // 001E GETGBL R10 G8 + 0x5C2C0E00, // 001F MOVE R11 R7 + 0x7C280200, // 0020 CALL R10 1 + 0x7C200400, // 0021 CALL R8 2 + 0x8C24110C, // 0022 GETMET R9 R8 K12 + 0x582C000D, // 0023 LDCONST R11 K13 + 0x7C240400, // 0024 CALL R9 2 + 0x5C281200, // 0025 MOVE R10 R9 + 0x742A0001, // 0026 JMPT R10 #0029 + 0x00140B0E, // 0027 ADD R5 R5 K14 + 0x7001FFEB, // 0028 JMP #0015 + 0x8C28050C, // 0029 GETMET R10 R2 K12 + 0x5C301200, // 002A MOVE R12 R9 + 0x5834000F, // 002B LDCONST R13 K15 + 0x7C280600, // 002C CALL R10 3 + 0x1C28150B, // 002D EQ R10 R10 K11 + 0x782A0001, // 002E JMPF R10 #0031 + 0x00140B0E, // 002F ADD R5 R5 K14 + 0x7001FFE3, // 0030 JMP #0015 + 0x88280106, // 0031 GETMBR R10 R0 K6 + 0x88281510, // 0032 GETMBR R10 R10 K16 + 0x8C28150C, // 0033 GETMET R10 R10 K12 + 0x5C301200, // 0034 MOVE R12 R9 + 0x7C280400, // 0035 CALL R10 2 + 0x582C0011, // 0036 LDCONST R11 K17 + 0x4C300000, // 0037 LDNIL R12 + 0x2030140C, // 0038 NE R12 R10 R12 + 0x78320004, // 0039 JMPF R12 #003F + 0x8C301512, // 003A GETMET R12 R10 K18 + 0x5C381400, // 003B MOVE R14 R10 + 0x5C3C1000, // 003C MOVE R15 R8 + 0x7C300600, // 003D CALL R12 3 + 0x5C2C1800, // 003E MOVE R11 R12 + 0x50180200, // 003F LDBOOL R6 1 0 + 0x8C300303, // 0040 GETMET R12 R1 K3 + 0x8C380513, // 0041 GETMET R14 R2 K19 + 0x58400014, // 0042 LDCONST R16 K20 + 0x5C440E00, // 0043 MOVE R17 R7 + 0x7C380600, // 0044 CALL R14 3 + 0x7C300400, // 0045 CALL R12 2 + 0x8C300303, // 0046 GETMET R12 R1 K3 + 0x8C380513, // 0047 GETMET R14 R2 K19 + 0x58400015, // 0048 LDCONST R16 K21 + 0x8C440116, // 0049 GETMET R17 R0 K22 + 0x8C4C110C, // 004A GETMET R19 R8 K12 + 0x5854000D, // 004B LDCONST R21 K13 + 0x58580011, // 004C LDCONST R22 K17 + 0x7C4C0600, // 004D CALL R19 3 + 0x7C440400, // 004E CALL R17 2 + 0x7C380600, // 004F CALL R14 3 + 0x7C300400, // 0050 CALL R12 2 + 0x8C300303, // 0051 GETMET R12 R1 K3 + 0x8C380513, // 0052 GETMET R14 R2 K19 + 0x58400017, // 0053 LDCONST R16 K23 + 0x5C440E00, // 0054 MOVE R17 R7 + 0x8C480318, // 0055 GETMET R18 R1 K24 + 0x5C501600, // 0056 MOVE R20 R11 + 0x7C480400, // 0057 CALL R18 2 + 0x782A0003, // 0058 JMPF R10 #005D + 0x8C4C0318, // 0059 GETMET R19 R1 K24 + 0x88541519, // 005A GETMBR R21 R10 K25 + 0x7C4C0400, // 005B CALL R19 2 + 0x70020000, // 005C JMP #005E + 0x584C0011, // 005D LDCONST R19 K17 + 0x7C380A00, // 005E CALL R14 5 + 0x7C300400, // 005F CALL R12 2 + 0x8C300303, // 0060 GETMET R12 R1 K3 + 0x8C380513, // 0061 GETMET R14 R2 K19 + 0x5840001A, // 0062 LDCONST R16 K26 + 0x5C440E00, // 0063 MOVE R17 R7 + 0x7C380600, // 0064 CALL R14 3 + 0x7C300400, // 0065 CALL R12 2 + 0x00140B0E, // 0066 ADD R5 R5 K14 + 0x7001FFAC, // 0067 JMP #0015 + 0x8C1C0303, // 0068 GETMET R7 R1 K3 + 0x5824001B, // 0069 LDCONST R9 K27 + 0x7C1C0400, // 006A CALL R7 2 + 0x5C1C0C00, // 006B MOVE R7 R6 + 0x741E0002, // 006C JMPT R7 #0070 + 0x8C1C0303, // 006D GETMET R7 R1 K3 + 0x5824001C, // 006E LDCONST R9 K28 + 0x7C1C0400, // 006F CALL R7 2 + 0x8C1C0303, // 0070 GETMET R7 R1 K3 + 0x5824001D, // 0071 LDCONST R9 K29 + 0x7C1C0400, // 0072 CALL R7 2 + 0x601C0012, // 0073 GETGBL R7 G18 + 0x7C1C0000, // 0074 CALL R7 0 + 0x60200010, // 0075 GETGBL R8 G16 + 0x88240106, // 0076 GETMBR R9 R0 K6 + 0x88241307, // 0077 GETMBR R9 R9 K7 + 0x7C200200, // 0078 CALL R8 1 + 0xA802000B, // 0079 EXBLK 0 #0086 + 0x5C241000, // 007A MOVE R9 R8 + 0x7C240000, // 007B CALL R9 0 + 0x8C28130C, // 007C GETMET R10 R9 K12 + 0x5830001E, // 007D LDCONST R12 K30 + 0x7C280400, // 007E CALL R10 2 + 0x4C2C0000, // 007F LDNIL R11 + 0x202C140B, // 0080 NE R11 R10 R11 + 0x782E0002, // 0081 JMPF R11 #0085 + 0x8C2C0F1F, // 0082 GETMET R11 R7 K31 + 0x5C341400, // 0083 MOVE R13 R10 + 0x7C2C0400, // 0084 CALL R11 2 + 0x7001FFF3, // 0085 JMP #007A + 0x58200020, // 0086 LDCONST R8 K32 + 0xAC200200, // 0087 CATCH R8 1 0 + 0xB0080000, // 0088 RAISE 2 R0 R0 + 0x88200106, // 0089 GETMBR R8 R0 K6 + 0x8C201121, // 008A GETMET R8 R8 K33 + 0x5C280E00, // 008B MOVE R10 R7 + 0x7C200400, // 008C CALL R8 2 + 0x60200010, // 008D GETGBL R8 G16 + 0x5C240E00, // 008E MOVE R9 R7 + 0x7C200200, // 008F CALL R8 1 + 0xA802006C, // 0090 EXBLK 0 #00FE + 0x5C241000, // 0091 MOVE R9 R8 + 0x7C240000, // 0092 CALL R9 0 + 0x8C280303, // 0093 GETMET R10 R1 K3 + 0x8C300513, // 0094 GETMET R12 R2 K19 + 0x58380022, // 0095 LDCONST R14 K34 + 0x8C3C0318, // 0096 GETMET R15 R1 K24 + 0x5C441200, // 0097 MOVE R17 R9 + 0x7C3C0400, // 0098 CALL R15 2 + 0x8C400318, // 0099 GETMET R16 R1 K24 + 0x5C481200, // 009A MOVE R18 R9 + 0x7C400400, // 009B CALL R16 2 + 0x7C300800, // 009C CALL R12 4 + 0x7C280400, // 009D CALL R10 2 + 0x8C280303, // 009E GETMET R10 R1 K3 + 0x58300023, // 009F LDCONST R12 K35 + 0x7C280400, // 00A0 CALL R10 2 + 0x8C280303, // 00A1 GETMET R10 R1 K3 + 0x58300024, // 00A2 LDCONST R12 K36 + 0x7C280400, // 00A3 CALL R10 2 + 0x50180000, // 00A4 LDBOOL R6 0 0 + 0x5814000B, // 00A5 LDCONST R5 K11 + 0x6028000C, // 00A6 GETGBL R10 G12 + 0x5C2C0800, // 00A7 MOVE R11 R4 + 0x7C280200, // 00A8 CALL R10 1 + 0x14280A0A, // 00A9 LT R10 R5 R10 + 0x782A004E, // 00AA JMPF R10 #00FA + 0x94280805, // 00AB GETIDX R10 R4 R5 + 0x882C0106, // 00AC GETMBR R11 R0 K6 + 0x882C1707, // 00AD GETMBR R11 R11 K7 + 0x8C2C170C, // 00AE GETMET R11 R11 K12 + 0x60340008, // 00AF GETGBL R13 G8 + 0x5C381400, // 00B0 MOVE R14 R10 + 0x7C340200, // 00B1 CALL R13 1 + 0x7C2C0400, // 00B2 CALL R11 2 + 0x8C30170C, // 00B3 GETMET R12 R11 K12 + 0x5838000D, // 00B4 LDCONST R14 K13 + 0x7C300400, // 00B5 CALL R12 2 + 0x5C341800, // 00B6 MOVE R13 R12 + 0x74360001, // 00B7 JMPT R13 #00BA + 0x00140B0E, // 00B8 ADD R5 R5 K14 + 0x7001FFEB, // 00B9 JMP #00A6 + 0x8C34050C, // 00BA GETMET R13 R2 K12 + 0x5C3C1800, // 00BB MOVE R15 R12 + 0x5840000F, // 00BC LDCONST R16 K15 + 0x7C340600, // 00BD CALL R13 3 + 0x20341B0B, // 00BE NE R13 R13 K11 + 0x78360001, // 00BF JMPF R13 #00C2 + 0x00140B0E, // 00C0 ADD R5 R5 K14 + 0x7001FFE3, // 00C1 JMP #00A6 + 0x8C34170C, // 00C2 GETMET R13 R11 K12 + 0x583C001E, // 00C3 LDCONST R15 K30 + 0x7C340400, // 00C4 CALL R13 2 + 0x20341A09, // 00C5 NE R13 R13 R9 + 0x78360001, // 00C6 JMPF R13 #00C9 + 0x00140B0E, // 00C7 ADD R5 R5 K14 + 0x7001FFDC, // 00C8 JMP #00A6 + 0x88340106, // 00C9 GETMBR R13 R0 K6 + 0x88341B10, // 00CA GETMBR R13 R13 K16 + 0x8C341B0C, // 00CB GETMET R13 R13 K12 + 0x5C3C1800, // 00CC MOVE R15 R12 + 0x7C340400, // 00CD CALL R13 2 + 0x58380011, // 00CE LDCONST R14 K17 + 0x4C3C0000, // 00CF LDNIL R15 + 0x203C1A0F, // 00D0 NE R15 R13 R15 + 0x783E0004, // 00D1 JMPF R15 #00D7 + 0x8C3C1B12, // 00D2 GETMET R15 R13 K18 + 0x5C441A00, // 00D3 MOVE R17 R13 + 0x5C481600, // 00D4 MOVE R18 R11 + 0x7C3C0600, // 00D5 CALL R15 3 + 0x5C381E00, // 00D6 MOVE R14 R15 + 0x50180200, // 00D7 LDBOOL R6 1 0 + 0x8C3C0303, // 00D8 GETMET R15 R1 K3 + 0x8C440513, // 00D9 GETMET R17 R2 K19 + 0x584C0025, // 00DA LDCONST R19 K37 + 0x5C501400, // 00DB MOVE R20 R10 + 0x7C440600, // 00DC CALL R17 3 + 0x7C3C0400, // 00DD CALL R15 2 + 0x8C3C0303, // 00DE GETMET R15 R1 K3 + 0x8C440513, // 00DF GETMET R17 R2 K19 + 0x584C0026, // 00E0 LDCONST R19 K38 + 0x8C500116, // 00E1 GETMET R20 R0 K22 + 0x8C58170C, // 00E2 GETMET R22 R11 K12 + 0x5860000D, // 00E3 LDCONST R24 K13 + 0x58640011, // 00E4 LDCONST R25 K17 + 0x7C580600, // 00E5 CALL R22 3 + 0x7C500400, // 00E6 CALL R20 2 + 0x7C440600, // 00E7 CALL R17 3 + 0x7C3C0400, // 00E8 CALL R15 2 + 0x8C3C0303, // 00E9 GETMET R15 R1 K3 + 0x8C440513, // 00EA GETMET R17 R2 K19 + 0x584C0027, // 00EB LDCONST R19 K39 + 0x5C501400, // 00EC MOVE R20 R10 + 0x8C540318, // 00ED GETMET R21 R1 K24 + 0x5C5C1C00, // 00EE MOVE R23 R14 + 0x7C540400, // 00EF CALL R21 2 + 0x7C440800, // 00F0 CALL R17 4 + 0x7C3C0400, // 00F1 CALL R15 2 + 0x8C3C0303, // 00F2 GETMET R15 R1 K3 + 0x8C440513, // 00F3 GETMET R17 R2 K19 + 0x584C0028, // 00F4 LDCONST R19 K40 + 0x5C501400, // 00F5 MOVE R20 R10 + 0x7C440600, // 00F6 CALL R17 3 + 0x7C3C0400, // 00F7 CALL R15 2 + 0x00140B0E, // 00F8 ADD R5 R5 K14 + 0x7001FFAB, // 00F9 JMP #00A6 + 0x8C280303, // 00FA GETMET R10 R1 K3 + 0x58300029, // 00FB LDCONST R12 K41 + 0x7C280400, // 00FC CALL R10 2 + 0x7001FF92, // 00FD JMP #0091 + 0x58200020, // 00FE LDCONST R8 K32 + 0xAC200200, // 00FF CATCH R8 1 0 + 0xB0080000, // 0100 RAISE 2 R0 R0 + 0x5C200C00, // 0101 MOVE R8 R6 + 0x74220002, // 0102 JMPT R8 #0106 + 0x8C200303, // 0103 GETMET R8 R1 K3 + 0x5828001C, // 0104 LDCONST R10 K28 + 0x7C200400, // 0105 CALL R8 2 + 0x8C200303, // 0106 GETMET R8 R1 K3 + 0x5828002A, // 0107 LDCONST R10 K42 + 0x7C200400, // 0108 CALL R8 2 + 0x8C20012B, // 0109 GETMET R8 R0 K43 + 0x8828012C, // 010A GETMBR R10 R0 K44 + 0x7C200400, // 010B CALL R8 2 + 0x8C200303, // 010C GETMET R8 R1 K3 + 0x5828002D, // 010D LDCONST R10 K45 + 0x7C200400, // 010E CALL R8 2 + 0x8C200303, // 010F GETMET R8 R1 K3 + 0x5828002E, // 0110 LDCONST R10 K46 + 0x7C200400, // 0111 CALL R8 2 + 0x8C200303, // 0112 GETMET R8 R1 K3 + 0x5828002F, // 0113 LDCONST R10 K47 + 0x7C200400, // 0114 CALL R8 2 + 0x8C200130, // 0115 GETMET R8 R0 K48 + 0x58280011, // 0116 LDCONST R10 K17 + 0x882C012C, // 0117 GETMBR R11 R0 K44 + 0x7C200600, // 0118 CALL R8 3 + 0x8C200303, // 0119 GETMET R8 R1 K3 + 0x58280031, // 011A LDCONST R10 K49 + 0x7C200400, // 011B CALL R8 2 + 0x8C200303, // 011C GETMET R8 R1 K3 + 0x58280032, // 011D LDCONST R10 K50 + 0x7C200400, // 011E CALL R8 2 + 0x8C200303, // 011F GETMET R8 R1 K3 + 0x58280033, // 0120 LDCONST R10 K51 + 0x7C200400, // 0121 CALL R8 2 + 0x8C200303, // 0122 GETMET R8 R1 K3 + 0x58280034, // 0123 LDCONST R10 K52 + 0x7C200400, // 0124 CALL R8 2 + 0x8C200303, // 0125 GETMET R8 R1 K3 + 0x58280035, // 0126 LDCONST R10 K53 + 0x7C200400, // 0127 CALL R8 2 + 0x8C200303, // 0128 GETMET R8 R1 K3 + 0x58280036, // 0129 LDCONST R10 K54 + 0x7C200400, // 012A CALL R8 2 + 0x8C200303, // 012B GETMET R8 R1 K3 + 0x58280033, // 012C LDCONST R10 K51 + 0x7C200400, // 012D CALL R8 2 + 0x8C200303, // 012E GETMET R8 R1 K3 + 0x58280037, // 012F LDCONST R10 K55 + 0x7C200400, // 0130 CALL R8 2 + 0x8C200303, // 0131 GETMET R8 R1 K3 + 0x58280038, // 0132 LDCONST R10 K56 + 0x7C200400, // 0133 CALL R8 2 + 0x8C200303, // 0134 GETMET R8 R1 K3 + 0x58280039, // 0135 LDCONST R10 K57 + 0x7C200400, // 0136 CALL R8 2 + 0x80000000, // 0137 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_commissioning_info +********************************************************************/ +be_local_closure(Matter_UI_show_commissioning_info, /* name */ + be_nested_proto( + 14, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[19]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(device), + /* K3 */ be_nested_str_weak(commissioning_open), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(millis), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(content_send), + /* K8 */ be_nested_str_weak(format), + /* K9 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCommissioning_X20open_X20for_X20_X25i_X20min_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K10 */ be_nested_str_weak(compute_manual_pairing_code), + /* K11 */ be_nested_str_weak(_X3Cp_X3EManual_X20pairing_X20code_X3A_X3Cbr_X3E_X3Cb_X3E_X25s_X2D_X25s_X2D_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Chr_X3E), + /* K12 */ be_const_int(3), + /* K13 */ be_const_int(2147483647), + /* K14 */ be_nested_str_weak(_X3Cdiv_X3E_X3Ccenter_X3E), + /* K15 */ be_nested_str_weak(compute_qrcode_content), + /* K16 */ be_nested_str_weak(show_qrcode), + /* K17 */ be_nested_str_weak(_X3Cp_X3E_X20_X25s_X3C_X2Fp_X3E), + /* K18 */ be_nested_str_weak(_X3C_X2Fdiv_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(show_commissioning_info), + &be_const_str_solidified, + ( &(const binstruction[59]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x880C0703, // 0003 GETMBR R3 R3 K3 + 0xB8120800, // 0004 GETNGBL R4 K4 + 0x8C100905, // 0005 GETMET R4 R4 K5 + 0x7C100200, // 0006 CALL R4 1 + 0x040C0604, // 0007 SUB R3 R3 R4 + 0x541203E7, // 0008 LDINT R4 1000 + 0x0C0C0604, // 0009 DIV R3 R3 R4 + 0x14100706, // 000A LT R4 R3 K6 + 0x78120000, // 000B JMPF R4 #000D + 0x580C0006, // 000C LDCONST R3 K6 + 0x5412001D, // 000D LDINT R4 30 + 0x00100604, // 000E ADD R4 R3 R4 + 0x5416003B, // 000F LDINT R5 60 + 0x0C100805, // 0010 DIV R4 R4 R5 + 0x8C140307, // 0011 GETMET R5 R1 K7 + 0x8C1C0508, // 0012 GETMET R7 R2 K8 + 0x58240009, // 0013 LDCONST R9 K9 + 0x5C280800, // 0014 MOVE R10 R4 + 0x7C1C0600, // 0015 CALL R7 3 + 0x7C140400, // 0016 CALL R5 2 + 0x88140102, // 0017 GETMBR R5 R0 K2 + 0x8C140B0A, // 0018 GETMET R5 R5 K10 + 0x7C140200, // 0019 CALL R5 1 + 0x8C180307, // 001A GETMET R6 R1 K7 + 0x8C200508, // 001B GETMET R8 R2 K8 + 0x5828000B, // 001C LDCONST R10 K11 + 0x402E0D0C, // 001D CONNECT R11 K6 K12 + 0x942C0A0B, // 001E GETIDX R11 R5 R11 + 0x54320003, // 001F LDINT R12 4 + 0x54360005, // 0020 LDINT R13 6 + 0x4030180D, // 0021 CONNECT R12 R12 R13 + 0x94300A0C, // 0022 GETIDX R12 R5 R12 + 0x54360006, // 0023 LDINT R13 7 + 0x40341B0D, // 0024 CONNECT R13 R13 K13 + 0x94340A0D, // 0025 GETIDX R13 R5 R13 + 0x7C200A00, // 0026 CALL R8 5 + 0x7C180400, // 0027 CALL R6 2 + 0x8C180307, // 0028 GETMET R6 R1 K7 + 0x5820000E, // 0029 LDCONST R8 K14 + 0x7C180400, // 002A CALL R6 2 + 0x88180102, // 002B GETMBR R6 R0 K2 + 0x8C180D0F, // 002C GETMET R6 R6 K15 + 0x7C180200, // 002D CALL R6 1 + 0x8C1C0110, // 002E GETMET R7 R0 K16 + 0x5C240C00, // 002F MOVE R9 R6 + 0x7C1C0400, // 0030 CALL R7 2 + 0x8C1C0307, // 0031 GETMET R7 R1 K7 + 0x8C240508, // 0032 GETMET R9 R2 K8 + 0x582C0011, // 0033 LDCONST R11 K17 + 0x5C300C00, // 0034 MOVE R12 R6 + 0x7C240600, // 0035 CALL R9 3 + 0x7C1C0400, // 0036 CALL R7 2 + 0x8C1C0307, // 0037 GETMET R7 R1 K7 + 0x58240012, // 0038 LDCONST R9 K18 + 0x7C1C0400, // 0039 CALL R7 2 + 0x80000000, // 003A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_remote_autoconf +********************************************************************/ +be_local_closure(Matter_UI_show_remote_autoconf, /* name */ + be_nested_proto( + 26, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[48]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(json), + /* K3 */ be_nested_str_weak(), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(Plugin_Bridge_HTTP), + /* K6 */ be_nested_str_weak(PROBE_TIMEOUT), + /* K7 */ be_nested_str_weak(HTTP_remote), + /* K8 */ be_nested_str_weak(call_sync), + /* K9 */ be_nested_str_weak(Status_X208), + /* K10 */ be_nested_str_weak(load), + /* K11 */ be_nested_str_weak(find), + /* K12 */ be_nested_str_weak(StatusSNS), + /* K13 */ be_nested_str_weak(Status_X2011), + /* K14 */ be_nested_str_weak(StatusSTS), + /* K15 */ be_nested_str_weak(tasmota), + /* K16 */ be_nested_str_weak(log), + /* K17 */ be_nested_str_weak(format), + /* K18 */ be_nested_str_weak(MTR_X3A_X20probed_X20_X27_X25s_X27_X20status8_X3D_X25s_X20satus11_X3D_X25s), + /* K19 */ be_const_int(3), + /* K20 */ be_nested_str_weak(generate_config_from_status), + /* K21 */ be_nested_str_weak(show_plugins_hints_js), + /* K22 */ be_nested_str_weak(_CLASSES_TYPES2), + /* K23 */ be_nested_str_weak(content_send), + /* K24 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20Remote_X20Device_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3Cp_X3E_X3Cb_X3EAdd_X20Remote_X20sensor_X20or_X20device_X3C_X2Fb_X3E_X3C_X2Fp_X3E), + /* K25 */ be_nested_str_weak(_X3Cp_X3E_X26_X23x1F517_X3B_X20_X3Ca_X20target_X3D_X27_blank_X27_X20href_X3D_X22http_X3A_X2F_X2F_X25s_X2F_X22_X3E_X25s_X3C_X2Fa_X3E_X3C_X2Fp_X3E), + /* K26 */ be_nested_str_weak(html_escape), + /* K27 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E_X3Ctr_X3E_X3Ctd_X20width_X3D_X27145_X27_X3EType_X3C_X2Ftd_X3E_X3Ctd_X3EParameter_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K28 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27url_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25s_X27_X3E), + /* K29 */ be_const_int(0), + /* K30 */ be_nested_str_weak(type), + /* K31 */ be_nested_str_weak(http_), + /* K32 */ be_nested_str_weak(device), + /* K33 */ be_nested_str_weak(plugins_classes), + /* K34 */ be_nested_str_weak(ui_conf_to_string), + /* K35 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E_X3Cselect_X20name_X3D_X27pi_X25i_X27_X20onchange_X3D_X27otm_X28_X22arg_X25i_X22_X2Cthis_X2Evalue_X29_X27_X3E), + /* K36 */ be_nested_str_weak(plugin_option), + /* K37 */ be_nested_str_weak(_X3C_X2Fselect_X3E_X3C_X2Ftd_X3E_X3Ctd_X20style_X3D_X27font_X2Dsize_X3Asmaller_X3B_X27_X3E), + /* K38 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27text_X27_X20id_X3D_X27arg_X25i_X27_X20name_X3D_X27arg_X25i_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X20placeholder_X3D_X27_X25s_X27_X3E), + /* K39 */ be_nested_str_weak(ARG_HINT), + /* K40 */ be_nested_str_weak(_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K41 */ be_const_int(1), + /* K42 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27text_X27_X20id_X3D_X27arg_X25i_X27_X20name_X3D_X27arg_X25i_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X3E), + /* K43 */ be_nested_str_weak(_X3C_X2Ftable_X3E), + /* K44 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27display_X3A_X20block_X3B_X27_X3E_X3C_X2Fdiv_X3E), + /* K45 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27addrem_X27_X20class_X3D_X27button_X20bgrn_X27_X3EAdd_X20endpoints_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), + /* K46 */ be_nested_str_weak(_X3C_X2Fform_X3E_X3C_X2Ffieldset_X3E), + /* K47 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3EUnable_X20to_X20connect_X20to_X20_X27_X25s_X27_X3C_X2Fb_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(show_remote_autoconf), + &be_const_str_solidified, + ( &(const binstruction[217]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA4120400, // 0002 IMPORT R4 K2 + 0x1C140303, // 0003 EQ R5 R1 K3 + 0x78160000, // 0004 JMPF R5 #0006 + 0x80000A00, // 0005 RET 0 + 0xB8160800, // 0006 GETNGBL R5 K4 + 0x88140B05, // 0007 GETMBR R5 R5 K5 + 0x88140B06, // 0008 GETMBR R5 R5 K6 + 0xB81A0800, // 0009 GETNGBL R6 K4 + 0x8C180D07, // 000A GETMET R6 R6 K7 + 0x5C200200, // 000B MOVE R8 R1 + 0x5C240A00, // 000C MOVE R9 R5 + 0x7C180600, // 000D CALL R6 3 + 0x8C1C0D08, // 000E GETMET R7 R6 K8 + 0x58240009, // 000F LDCONST R9 K9 + 0x5C280A00, // 0010 MOVE R10 R5 + 0x7C1C0600, // 0011 CALL R7 3 + 0x4C200000, // 0012 LDNIL R8 + 0x20200E08, // 0013 NE R8 R7 R8 + 0x78220003, // 0014 JMPF R8 #0019 + 0x8C20090A, // 0015 GETMET R8 R4 K10 + 0x5C280E00, // 0016 MOVE R10 R7 + 0x7C200400, // 0017 CALL R8 2 + 0x5C1C1000, // 0018 MOVE R7 R8 + 0x4C200000, // 0019 LDNIL R8 + 0x20200E08, // 001A NE R8 R7 R8 + 0x78220003, // 001B JMPF R8 #0020 + 0x8C200F0B, // 001C GETMET R8 R7 K11 + 0x5828000C, // 001D LDCONST R10 K12 + 0x7C200400, // 001E CALL R8 2 + 0x5C1C1000, // 001F MOVE R7 R8 + 0x4C200000, // 0020 LDNIL R8 + 0x4C240000, // 0021 LDNIL R9 + 0x20240E09, // 0022 NE R9 R7 R9 + 0x78260012, // 0023 JMPF R9 #0037 + 0x8C240D08, // 0024 GETMET R9 R6 K8 + 0x582C000D, // 0025 LDCONST R11 K13 + 0x5C300A00, // 0026 MOVE R12 R5 + 0x7C240600, // 0027 CALL R9 3 + 0x5C201200, // 0028 MOVE R8 R9 + 0x4C240000, // 0029 LDNIL R9 + 0x20241009, // 002A NE R9 R8 R9 + 0x78260003, // 002B JMPF R9 #0030 + 0x8C24090A, // 002C GETMET R9 R4 K10 + 0x5C2C1000, // 002D MOVE R11 R8 + 0x7C240400, // 002E CALL R9 2 + 0x5C201200, // 002F MOVE R8 R9 + 0x4C240000, // 0030 LDNIL R9 + 0x20241009, // 0031 NE R9 R8 R9 + 0x78260003, // 0032 JMPF R9 #0037 + 0x8C24110B, // 0033 GETMET R9 R8 K11 + 0x582C000E, // 0034 LDCONST R11 K14 + 0x7C240400, // 0035 CALL R9 2 + 0x5C201200, // 0036 MOVE R8 R9 + 0x4C240000, // 0037 LDNIL R9 + 0x20240E09, // 0038 NE R9 R7 R9 + 0x78260095, // 0039 JMPF R9 #00D0 + 0x4C240000, // 003A LDNIL R9 + 0x20241009, // 003B NE R9 R8 R9 + 0x78260092, // 003C JMPF R9 #00D0 + 0xB8261E00, // 003D GETNGBL R9 K15 + 0x8C241310, // 003E GETMET R9 R9 K16 + 0x8C2C0711, // 003F GETMET R11 R3 K17 + 0x58340012, // 0040 LDCONST R13 K18 + 0x5C380200, // 0041 MOVE R14 R1 + 0x603C0008, // 0042 GETGBL R15 G8 + 0x5C400E00, // 0043 MOVE R16 R7 + 0x7C3C0200, // 0044 CALL R15 1 + 0x60400008, // 0045 GETGBL R16 G8 + 0x5C441000, // 0046 MOVE R17 R8 + 0x7C400200, // 0047 CALL R16 1 + 0x7C2C0A00, // 0048 CALL R11 5 + 0x58300013, // 0049 LDCONST R12 K19 + 0x7C240600, // 004A CALL R9 3 + 0x8C240114, // 004B GETMET R9 R0 K20 + 0x5C2C0E00, // 004C MOVE R11 R7 + 0x5C301000, // 004D MOVE R12 R8 + 0x7C240600, // 004E CALL R9 3 + 0x8C280115, // 004F GETMET R10 R0 K21 + 0x88300116, // 0050 GETMBR R12 R0 K22 + 0x7C280400, // 0051 CALL R10 2 + 0x8C280517, // 0052 GETMET R10 R2 K23 + 0x58300018, // 0053 LDCONST R12 K24 + 0x7C280400, // 0054 CALL R10 2 + 0x8C280517, // 0055 GETMET R10 R2 K23 + 0x8C300711, // 0056 GETMET R12 R3 K17 + 0x58380019, // 0057 LDCONST R14 K25 + 0x8C3C051A, // 0058 GETMET R15 R2 K26 + 0x5C440200, // 0059 MOVE R17 R1 + 0x7C3C0400, // 005A CALL R15 2 + 0x8C40051A, // 005B GETMET R16 R2 K26 + 0x5C480200, // 005C MOVE R18 R1 + 0x7C400400, // 005D CALL R16 2 + 0x7C300800, // 005E CALL R12 4 + 0x7C280400, // 005F CALL R10 2 + 0x8C280517, // 0060 GETMET R10 R2 K23 + 0x5830001B, // 0061 LDCONST R12 K27 + 0x7C280400, // 0062 CALL R10 2 + 0x8C280517, // 0063 GETMET R10 R2 K23 + 0x8C300711, // 0064 GETMET R12 R3 K17 + 0x5838001C, // 0065 LDCONST R14 K28 + 0x8C3C051A, // 0066 GETMET R15 R2 K26 + 0x5C440200, // 0067 MOVE R17 R1 + 0x7C3C0400, // 0068 CALL R15 2 + 0x7C300600, // 0069 CALL R12 3 + 0x7C280400, // 006A CALL R10 2 + 0x5828001D, // 006B LDCONST R10 K29 + 0x602C000C, // 006C GETGBL R11 G12 + 0x5C301200, // 006D MOVE R12 R9 + 0x7C2C0200, // 006E CALL R11 1 + 0x142C140B, // 006F LT R11 R10 R11 + 0x782E0038, // 0070 JMPF R11 #00AA + 0x942C120A, // 0071 GETIDX R11 R9 R10 + 0x8C30170B, // 0072 GETMET R12 R11 K11 + 0x5838001E, // 0073 LDCONST R14 K30 + 0x583C0003, // 0074 LDCONST R15 K3 + 0x7C300600, // 0075 CALL R12 3 + 0x20341903, // 0076 NE R13 R12 K3 + 0x78360000, // 0077 JMPF R13 #0079 + 0x00323E0C, // 0078 ADD R12 K31 R12 + 0x88340120, // 0079 GETMBR R13 R0 K32 + 0x88341B21, // 007A GETMBR R13 R13 K33 + 0x8C341B0B, // 007B GETMET R13 R13 K11 + 0x5C3C1800, // 007C MOVE R15 R12 + 0x7C340400, // 007D CALL R13 2 + 0x58380003, // 007E LDCONST R14 K3 + 0x4C3C0000, // 007F LDNIL R15 + 0x203C1A0F, // 0080 NE R15 R13 R15 + 0x783E0004, // 0081 JMPF R15 #0087 + 0x8C3C1B22, // 0082 GETMET R15 R13 K34 + 0x5C441A00, // 0083 MOVE R17 R13 + 0x5C481600, // 0084 MOVE R18 R11 + 0x7C3C0600, // 0085 CALL R15 3 + 0x5C381E00, // 0086 MOVE R14 R15 + 0x8C3C0517, // 0087 GETMET R15 R2 K23 + 0x8C440711, // 0088 GETMET R17 R3 K17 + 0x584C0023, // 0089 LDCONST R19 K35 + 0x5C501400, // 008A MOVE R20 R10 + 0x5C541400, // 008B MOVE R21 R10 + 0x7C440800, // 008C CALL R17 4 + 0x7C3C0400, // 008D CALL R15 2 + 0x8C3C0124, // 008E GETMET R15 R0 K36 + 0x5C441800, // 008F MOVE R17 R12 + 0x88480116, // 0090 GETMBR R18 R0 K22 + 0x7C3C0600, // 0091 CALL R15 3 + 0x8C3C0517, // 0092 GETMET R15 R2 K23 + 0x58440025, // 0093 LDCONST R17 K37 + 0x7C3C0400, // 0094 CALL R15 2 + 0x8C3C0517, // 0095 GETMET R15 R2 K23 + 0x8C440711, // 0096 GETMET R17 R3 K17 + 0x584C0026, // 0097 LDCONST R19 K38 + 0x5C501400, // 0098 MOVE R20 R10 + 0x5C541400, // 0099 MOVE R21 R10 + 0x8C58051A, // 009A GETMET R22 R2 K26 + 0x5C601C00, // 009B MOVE R24 R14 + 0x7C580400, // 009C CALL R22 2 + 0x78360003, // 009D JMPF R13 #00A2 + 0x8C5C051A, // 009E GETMET R23 R2 K26 + 0x88641B27, // 009F GETMBR R25 R13 K39 + 0x7C5C0400, // 00A0 CALL R23 2 + 0x70020000, // 00A1 JMP #00A3 + 0x585C0003, // 00A2 LDCONST R23 K3 + 0x7C440C00, // 00A3 CALL R17 6 + 0x7C3C0400, // 00A4 CALL R15 2 + 0x8C3C0517, // 00A5 GETMET R15 R2 K23 + 0x58440028, // 00A6 LDCONST R17 K40 + 0x7C3C0400, // 00A7 CALL R15 2 + 0x00281529, // 00A8 ADD R10 R10 K41 + 0x7001FFC1, // 00A9 JMP #006C + 0x8C2C0517, // 00AA GETMET R11 R2 K23 + 0x8C340711, // 00AB GETMET R13 R3 K17 + 0x583C0023, // 00AC LDCONST R15 K35 + 0x5C401400, // 00AD MOVE R16 R10 + 0x5C441400, // 00AE MOVE R17 R10 + 0x7C340800, // 00AF CALL R13 4 + 0x7C2C0400, // 00B0 CALL R11 2 + 0x8C2C0124, // 00B1 GETMET R11 R0 K36 + 0x58340003, // 00B2 LDCONST R13 K3 + 0x88380116, // 00B3 GETMBR R14 R0 K22 + 0x7C2C0600, // 00B4 CALL R11 3 + 0x8C2C0517, // 00B5 GETMET R11 R2 K23 + 0x58340025, // 00B6 LDCONST R13 K37 + 0x7C2C0400, // 00B7 CALL R11 2 + 0x8C2C0517, // 00B8 GETMET R11 R2 K23 + 0x8C340711, // 00B9 GETMET R13 R3 K17 + 0x583C002A, // 00BA LDCONST R15 K42 + 0x5C401400, // 00BB MOVE R16 R10 + 0x5C441400, // 00BC MOVE R17 R10 + 0x58480003, // 00BD LDCONST R18 K3 + 0x7C340A00, // 00BE CALL R13 5 + 0x7C2C0400, // 00BF CALL R11 2 + 0x8C2C0517, // 00C0 GETMET R11 R2 K23 + 0x58340028, // 00C1 LDCONST R13 K40 + 0x7C2C0400, // 00C2 CALL R11 2 + 0x8C2C0517, // 00C3 GETMET R11 R2 K23 + 0x5834002B, // 00C4 LDCONST R13 K43 + 0x7C2C0400, // 00C5 CALL R11 2 + 0x8C2C0517, // 00C6 GETMET R11 R2 K23 + 0x5834002C, // 00C7 LDCONST R13 K44 + 0x7C2C0400, // 00C8 CALL R11 2 + 0x8C2C0517, // 00C9 GETMET R11 R2 K23 + 0x5834002D, // 00CA LDCONST R13 K45 + 0x7C2C0400, // 00CB CALL R11 2 + 0x8C2C0517, // 00CC GETMET R11 R2 K23 + 0x5834002E, // 00CD LDCONST R13 K46 + 0x7C2C0400, // 00CE CALL R11 2 + 0x70020007, // 00CF JMP #00D8 + 0x8C240517, // 00D0 GETMET R9 R2 K23 + 0x8C2C0711, // 00D1 GETMET R11 R3 K17 + 0x5834002F, // 00D2 LDCONST R13 K47 + 0x8C38051A, // 00D3 GETMET R14 R2 K26 + 0x5C400200, // 00D4 MOVE R16 R1 + 0x7C380400, // 00D5 CALL R14 2 + 0x7C2C0600, // 00D6 CALL R11 3 + 0x7C240400, // 00D7 CALL R9 2 + 0x80000000, // 00D8 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_fabric_info +********************************************************************/ +be_local_closure(Matter_UI_show_fabric_info, /* name */ + be_nested_proto( + 16, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[30]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(content_send), + /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BFabrics_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3Cp_X3EAssociated_X20fabrics_X3A_X3C_X2Fp_X3E), + /* K4 */ be_nested_str_weak(device), + /* K5 */ be_nested_str_weak(sessions), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3ENone_X3C_X2Fb_X3E_X3C_X2Fp_X3E), + /* K8 */ be_nested_str_weak(fabrics), + /* K9 */ be_nested_str_weak(persistables), + /* K10 */ be_nested_str_weak(_X3Chr_X3E), + /* K11 */ be_nested_str_weak(fabric_label), + /* K12 */ be_nested_str_weak(_X3CNo_X20label_X3E), + /* K13 */ be_nested_str_weak(html_escape), + /* K14 */ be_nested_str_weak(format), + /* K15 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3B_X23_X25i_X20_X25s_X3C_X2Fb_X3E_X20_X28_X25s_X29_X26nbsp_X3B_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K16 */ be_nested_str_weak(get_fabric_index), + /* K17 */ be_nested_str_weak(get_admin_vendor_name), + /* K18 */ be_nested_str_weak(get_fabric_id), + /* K19 */ be_nested_str_weak(copy), + /* K20 */ be_nested_str_weak(reverse), + /* K21 */ be_nested_str_weak(get_device_id), + /* K22 */ be_nested_str_weak(Fabric_X3A_X20_X25s_X3Cbr_X3E), + /* K23 */ be_nested_str_weak(tohex), + /* K24 */ be_nested_str_weak(Device_X3A_X20_X25s_X3Cbr_X3E_X26nbsp_X3B), + /* K25 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22Are_X20you_X20sure_X3F_X22_X29_X3B_X27_X3E), + /* K26 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27del_fabric_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25i_X27_X3E), + /* K27 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27del_X27_X20class_X3D_X27button_X20bgrn_X27_X3EDelete_X20Fabric_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + /* K28 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K29 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(show_fabric_info), + &be_const_str_solidified, + ( &(const binstruction[101]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C0C0400, // 0004 CALL R3 2 + 0x600C000C, // 0005 GETGBL R3 G12 + 0x88100104, // 0006 GETMBR R4 R0 K4 + 0x88100905, // 0007 GETMBR R4 R4 K5 + 0x88100905, // 0008 GETMBR R4 R4 K5 + 0x7C0C0200, // 0009 CALL R3 1 + 0x1C0C0706, // 000A EQ R3 R3 K6 + 0x780E0003, // 000B JMPF R3 #0010 + 0x8C0C0302, // 000C GETMET R3 R1 K2 + 0x58140007, // 000D LDCONST R5 K7 + 0x7C0C0400, // 000E CALL R3 2 + 0x70020050, // 000F JMP #0061 + 0x500C0200, // 0010 LDBOOL R3 1 0 + 0x60100010, // 0011 GETGBL R4 G16 + 0x88140104, // 0012 GETMBR R5 R0 K4 + 0x88140B05, // 0013 GETMBR R5 R5 K5 + 0x88140B08, // 0014 GETMBR R5 R5 K8 + 0x8C140B09, // 0015 GETMET R5 R5 K9 + 0x7C140200, // 0016 CALL R5 1 + 0x7C100200, // 0017 CALL R4 1 + 0xA8020044, // 0018 EXBLK 0 #005E + 0x5C140800, // 0019 MOVE R5 R4 + 0x7C140000, // 001A CALL R5 0 + 0x5C180600, // 001B MOVE R6 R3 + 0x741A0002, // 001C JMPT R6 #0020 + 0x8C180302, // 001D GETMET R6 R1 K2 + 0x5820000A, // 001E LDCONST R8 K10 + 0x7C180400, // 001F CALL R6 2 + 0x500C0000, // 0020 LDBOOL R3 0 0 + 0x88180B0B, // 0021 GETMBR R6 R5 K11 + 0x5C1C0C00, // 0022 MOVE R7 R6 + 0x741E0000, // 0023 JMPT R7 #0025 + 0x5818000C, // 0024 LDCONST R6 K12 + 0x8C1C030D, // 0025 GETMET R7 R1 K13 + 0x5C240C00, // 0026 MOVE R9 R6 + 0x7C1C0400, // 0027 CALL R7 2 + 0x5C180E00, // 0028 MOVE R6 R7 + 0x8C1C0302, // 0029 GETMET R7 R1 K2 + 0x8C24050E, // 002A GETMET R9 R2 K14 + 0x582C000F, // 002B LDCONST R11 K15 + 0x8C300B10, // 002C GETMET R12 R5 K16 + 0x7C300200, // 002D CALL R12 1 + 0x5C340C00, // 002E MOVE R13 R6 + 0x8C380B11, // 002F GETMET R14 R5 K17 + 0x7C380200, // 0030 CALL R14 1 + 0x7C240A00, // 0031 CALL R9 5 + 0x7C1C0400, // 0032 CALL R7 2 + 0x8C1C0B12, // 0033 GETMET R7 R5 K18 + 0x7C1C0200, // 0034 CALL R7 1 + 0x8C1C0F13, // 0035 GETMET R7 R7 K19 + 0x7C1C0200, // 0036 CALL R7 1 + 0x8C1C0F14, // 0037 GETMET R7 R7 K20 + 0x7C1C0200, // 0038 CALL R7 1 + 0x8C200B15, // 0039 GETMET R8 R5 K21 + 0x7C200200, // 003A CALL R8 1 + 0x8C201113, // 003B GETMET R8 R8 K19 + 0x7C200200, // 003C CALL R8 1 + 0x8C201114, // 003D GETMET R8 R8 K20 + 0x7C200200, // 003E CALL R8 1 + 0x8C240302, // 003F GETMET R9 R1 K2 + 0x8C2C050E, // 0040 GETMET R11 R2 K14 + 0x58340016, // 0041 LDCONST R13 K22 + 0x8C380F17, // 0042 GETMET R14 R7 K23 + 0x7C380200, // 0043 CALL R14 1 + 0x7C2C0600, // 0044 CALL R11 3 + 0x7C240400, // 0045 CALL R9 2 + 0x8C240302, // 0046 GETMET R9 R1 K2 + 0x8C2C050E, // 0047 GETMET R11 R2 K14 + 0x58340018, // 0048 LDCONST R13 K24 + 0x8C381117, // 0049 GETMET R14 R8 K23 + 0x7C380200, // 004A CALL R14 1 + 0x7C2C0600, // 004B CALL R11 3 + 0x7C240400, // 004C CALL R9 2 + 0x8C240302, // 004D GETMET R9 R1 K2 + 0x582C0019, // 004E LDCONST R11 K25 + 0x7C240400, // 004F CALL R9 2 + 0x8C240302, // 0050 GETMET R9 R1 K2 + 0x8C2C050E, // 0051 GETMET R11 R2 K14 + 0x5834001A, // 0052 LDCONST R13 K26 + 0x8C380B10, // 0053 GETMET R14 R5 K16 + 0x7C380200, // 0054 CALL R14 1 + 0x7C2C0600, // 0055 CALL R11 3 + 0x7C240400, // 0056 CALL R9 2 + 0x8C240302, // 0057 GETMET R9 R1 K2 + 0x582C001B, // 0058 LDCONST R11 K27 + 0x7C240400, // 0059 CALL R9 2 + 0x8C240302, // 005A GETMET R9 R1 K2 + 0x582C001C, // 005B LDCONST R11 K28 + 0x7C240400, // 005C CALL R9 2 + 0x7001FFBA, // 005D JMP #0019 + 0x5810001D, // 005E LDCONST R4 K29 + 0xAC100200, // 005F CATCH R4 1 0 + 0xB0080000, // 0060 RAISE 2 R0 R0 + 0x8C0C0302, // 0061 GETMET R3 R1 K2 + 0x5814001C, // 0062 LDCONST R5 K28 + 0x7C0C0400, // 0063 CALL R3 2 + 0x80000000, // 0064 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: web_get_arg +********************************************************************/ +be_local_closure(Matter_UI_web_get_arg, /* 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[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(has_arg), + /* K2 */ be_nested_str_weak(mtc0), + /* K3 */ be_nested_str_weak(device), + /* K4 */ be_nested_str_weak(stop_basic_commissioning), + /* K5 */ be_nested_str_weak(mtc1), + /* K6 */ be_nested_str_weak(start_root_basic_commissioning), + }), + be_str_weak(web_get_arg), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0003, // 0004 JMPF R2 #0009 + 0x88080103, // 0005 GETMBR R2 R0 K3 + 0x8C080504, // 0006 GETMET R2 R2 K4 + 0x7C080200, // 0007 CALL R2 1 + 0x70020006, // 0008 JMP #0010 + 0x8C080301, // 0009 GETMET R2 R1 K1 + 0x58100005, // 000A LDCONST R4 K5 + 0x7C080400, // 000B CALL R2 2 + 0x780A0002, // 000C JMPF R2 #0010 + 0x88080103, // 000D GETMBR R2 R0 K3 + 0x8C080506, // 000E GETMET R2 R2 K6 + 0x7C080200, // 000F CALL R2 1 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: plugin_option +********************************************************************/ +be_local_closure(Matter_UI_plugin_option, /* name */ + be_nested_proto( + 17, /* nstack */ + 3, /* argc */ + 3, /* 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(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(split), + /* K3 */ be_nested_str_weak(_X7C), + /* K4 */ be_nested_str_weak(stop_iteration), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(), + /* K7 */ be_nested_str_weak(content_send), + /* K8 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X27_X3E_X3C_X2Foption_X3E), + /* K9 */ be_nested_str_weak(_X2Dhttp), + /* K10 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X27_X20disabled_X3E_X2D_X2D_X2D_X20Tasmota_X20Remote_X20_X2D_X2D_X2D_X3C_X2Foption_X3E), + /* K11 */ be_nested_str_weak(device), + /* K12 */ be_nested_str_weak(get_plugin_class_displayname), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X25s_X27_X25s_X3E_X25s_X3C_X2Foption_X3E), + /* K15 */ be_nested_str_weak(_X20selected), + /* K16 */ be_const_int(1), + }), + be_str_weak(plugin_option), + &be_const_str_solidified, + ( &(const binstruction[57]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xA4120200, // 0001 IMPORT R4 K1 + 0x60140012, // 0002 GETGBL R5 G18 + 0x7C140000, // 0003 CALL R5 0 + 0x60180010, // 0004 GETGBL R6 G16 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x7C180200, // 0006 CALL R6 1 + 0xA8020007, // 0007 EXBLK 0 #0010 + 0x5C1C0C00, // 0008 MOVE R7 R6 + 0x7C1C0000, // 0009 CALL R7 0 + 0x8C200902, // 000A GETMET R8 R4 K2 + 0x5C280E00, // 000B MOVE R10 R7 + 0x582C0003, // 000C LDCONST R11 K3 + 0x7C200600, // 000D CALL R8 3 + 0x00140A08, // 000E ADD R5 R5 R8 + 0x7001FFF7, // 000F JMP #0008 + 0x58180004, // 0010 LDCONST R6 K4 + 0xAC180200, // 0011 CATCH R6 1 0 + 0xB0080000, // 0012 RAISE 2 R0 R0 + 0x58180005, // 0013 LDCONST R6 K5 + 0x601C000C, // 0014 GETGBL R7 G12 + 0x5C200A00, // 0015 MOVE R8 R5 + 0x7C1C0200, // 0016 CALL R7 1 + 0x141C0C07, // 0017 LT R7 R6 R7 + 0x781E001E, // 0018 JMPF R7 #0038 + 0x941C0A06, // 0019 GETIDX R7 R5 R6 + 0x1C200F06, // 001A EQ R8 R7 K6 + 0x78220003, // 001B JMPF R8 #0020 + 0x8C200707, // 001C GETMET R8 R3 K7 + 0x58280008, // 001D LDCONST R10 K8 + 0x7C200400, // 001E CALL R8 2 + 0x70020015, // 001F JMP #0036 + 0x1C200F09, // 0020 EQ R8 R7 K9 + 0x78220003, // 0021 JMPF R8 #0026 + 0x8C200707, // 0022 GETMET R8 R3 K7 + 0x5828000A, // 0023 LDCONST R10 K10 + 0x7C200400, // 0024 CALL R8 2 + 0x7002000F, // 0025 JMP #0036 + 0x8820010B, // 0026 GETMBR R8 R0 K11 + 0x8C20110C, // 0027 GETMET R8 R8 K12 + 0x5C280E00, // 0028 MOVE R10 R7 + 0x7C200400, // 0029 CALL R8 2 + 0x8C240707, // 002A GETMET R9 R3 K7 + 0x8C2C090D, // 002B GETMET R11 R4 K13 + 0x5834000E, // 002C LDCONST R13 K14 + 0x5C380E00, // 002D MOVE R14 R7 + 0x1C3C0E01, // 002E EQ R15 R7 R1 + 0x783E0001, // 002F JMPF R15 #0032 + 0x583C000F, // 0030 LDCONST R15 K15 + 0x70020000, // 0031 JMP #0033 + 0x583C0006, // 0032 LDCONST R15 K6 + 0x5C401000, // 0033 MOVE R16 R8 + 0x7C2C0A00, // 0034 CALL R11 5 + 0x7C240400, // 0035 CALL R9 2 + 0x00180D10, // 0036 ADD R6 R6 K16 + 0x7001FFDB, // 0037 JMP #0014 + 0x80000000, // 0038 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: web_add_config_button +********************************************************************/ +be_local_closure(Matter_UI_web_add_config_button, /* 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[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(content_send), + /* K2 */ be_nested_str_weak(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27matterc_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(_LOGO), + /* K5 */ be_nested_str_weak(_X20Configure_X20Matter_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(web_add_config_button), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x7C080400, // 0003 CALL R2 2 + 0x8C080301, // 0004 GETMET R2 R1 K1 + 0xB8120600, // 0005 GETNGBL R4 K3 + 0x88100904, // 0006 GETMBR R4 R4 K4 + 0x7C080400, // 0007 CALL R2 2 + 0x8C080301, // 0008 GETMET R2 R1 K1 + 0x58100005, // 0009 LDCONST R4 K5 + 0x7C080400, // 000A CALL R2 2 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_UI_init, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(add_driver), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C080400, // 0004 CALL R2 2 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: show_bridge_status ********************************************************************/ @@ -343,13 +1890,160 @@ be_local_closure(Matter_UI_show_bridge_status, /* name */ /******************************************************************** -** Solidified function: plugin_option +** Solidified function: web_add_handler ********************************************************************/ -be_local_closure(Matter_UI_plugin_option, /* name */ +be_local_closure(Matter_UI_web_add_handler, /* name */ be_nested_proto( - 17, /* nstack */ - 3, /* argc */ - 3, /* varg */ + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 4]) { + 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(page_part_mgr), + }), + 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 + 0x80040000, // 0003 RET 1 R0 + }) + ), + 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(page_part_ctl), + }), + 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 + 0x80040000, // 0003 RET 1 R0 + }) + ), + 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(page_part_mgr_adv), + }), + 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 + 0x80040000, // 0003 RET 1 R0 + }) + ), + 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(page_part_mgr_add), + }), + 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 + 0x80040000, // 0003 RET 1 R0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(on), + /* K2 */ be_nested_str_weak(_X2Fmatterc), + /* K3 */ be_nested_str_weak(HTTP_GET), + /* K4 */ be_nested_str_weak(HTTP_POST), + /* K5 */ be_nested_str_weak(_X2Fmattera), + /* K6 */ be_nested_str_weak(_X2Fmatteradd), + }), + be_str_weak(web_add_handler), + &be_const_str_solidified, + ( &(const binstruction[23]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x88180303, // 0004 GETMBR R6 R1 K3 + 0x7C080800, // 0005 CALL R2 4 + 0x8C080301, // 0006 GETMET R2 R1 K1 + 0x58100002, // 0007 LDCONST R4 K2 + 0x84140001, // 0008 CLOSURE R5 P1 + 0x88180304, // 0009 GETMBR R6 R1 K4 + 0x7C080800, // 000A CALL R2 4 + 0x8C080301, // 000B GETMET R2 R1 K1 + 0x58100005, // 000C LDCONST R4 K5 + 0x84140002, // 000D CLOSURE R5 P2 + 0x88180303, // 000E GETMBR R6 R1 K3 + 0x7C080800, // 000F CALL R2 4 + 0x8C080301, // 0010 GETMET R2 R1 K1 + 0x58100006, // 0011 LDCONST R4 K6 + 0x84140003, // 0012 CLOSURE R5 P3 + 0x88180303, // 0013 GETMBR R6 R1 K3 + 0x7C080800, // 0014 CALL R2 4 + 0xA0000000, // 0015 CLOSE R0 + 0x80000000, // 0016 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_passcode_form +********************************************************************/ +be_local_closure(Matter_UI_show_passcode_form, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ @@ -358,115 +2052,65 @@ be_local_closure(Matter_UI_plugin_option, /* name */ ( &(const bvalue[17]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(split), - /* K3 */ be_nested_str_weak(_X7C), - /* K4 */ be_nested_str_weak(stop_iteration), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(), - /* K7 */ be_nested_str_weak(content_send), - /* K8 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X27_X3E_X3C_X2Foption_X3E), - /* K9 */ be_nested_str_weak(_X2Dhttp), - /* K10 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X27_X20disabled_X3E_X2D_X2D_X2D_X20Tasmota_X20Remote_X20_X2D_X2D_X2D_X3C_X2Foption_X3E), - /* K11 */ be_nested_str_weak(device), - /* K12 */ be_nested_str_weak(get_plugin_class_displayname), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X25s_X27_X25s_X3E_X25s_X3C_X2Foption_X3E), - /* K15 */ be_nested_str_weak(_X20selected), - /* K16 */ be_const_int(1), + /* K2 */ be_nested_str_weak(content_send), + /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20Advanced_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K4 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E_X3Cp_X3EPasscode_X3A_X3C_X2Fp_X3E), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X271_X27_X20max_X3D_X2799999998_X27_X20name_X3D_X27passcode_X27_X20value_X3D_X27_X25i_X27_X3E), + /* K7 */ be_nested_str_weak(device), + /* K8 */ be_nested_str_weak(root_passcode), + /* K9 */ be_nested_str_weak(_X3Cp_X3EDistinguish_X20id_X3A_X3C_X2Fp_X3E), + /* K10 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X270_X27_X20max_X3D_X274095_X27_X20name_X3D_X27discriminator_X27_X20value_X3D_X27_X25i_X27_X3E), + /* K11 */ be_nested_str_weak(root_discriminator), + /* K12 */ be_nested_str_weak(_X3Cp_X3E_X3Cinput_X20type_X3D_X27checkbox_X27_X20name_X3D_X27ipv4_X27_X25s_X3EIPv4_X20only_X3C_X2Fp_X3E), + /* K13 */ be_nested_str_weak(ipv4only), + /* K14 */ be_nested_str_weak(_X20checked), + /* K15 */ be_nested_str_weak(), + /* K16 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27passcode_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), }), - be_str_weak(plugin_option), + be_str_weak(show_passcode_form), &be_const_str_solidified, - ( &(const binstruction[57]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xA4120200, // 0001 IMPORT R4 K1 - 0x60140012, // 0002 GETGBL R5 G18 - 0x7C140000, // 0003 CALL R5 0 - 0x60180010, // 0004 GETGBL R6 G16 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x7C180200, // 0006 CALL R6 1 - 0xA8020007, // 0007 EXBLK 0 #0010 - 0x5C1C0C00, // 0008 MOVE R7 R6 - 0x7C1C0000, // 0009 CALL R7 0 - 0x8C200902, // 000A GETMET R8 R4 K2 - 0x5C280E00, // 000B MOVE R10 R7 - 0x582C0003, // 000C LDCONST R11 K3 - 0x7C200600, // 000D CALL R8 3 - 0x00140A08, // 000E ADD R5 R5 R8 - 0x7001FFF7, // 000F JMP #0008 - 0x58180004, // 0010 LDCONST R6 K4 - 0xAC180200, // 0011 CATCH R6 1 0 - 0xB0080000, // 0012 RAISE 2 R0 R0 - 0x58180005, // 0013 LDCONST R6 K5 - 0x601C000C, // 0014 GETGBL R7 G12 - 0x5C200A00, // 0015 MOVE R8 R5 - 0x7C1C0200, // 0016 CALL R7 1 - 0x141C0C07, // 0017 LT R7 R6 R7 - 0x781E001E, // 0018 JMPF R7 #0038 - 0x941C0A06, // 0019 GETIDX R7 R5 R6 - 0x1C200F06, // 001A EQ R8 R7 K6 - 0x78220003, // 001B JMPF R8 #0020 - 0x8C200707, // 001C GETMET R8 R3 K7 - 0x58280008, // 001D LDCONST R10 K8 - 0x7C200400, // 001E CALL R8 2 - 0x70020015, // 001F JMP #0036 - 0x1C200F09, // 0020 EQ R8 R7 K9 - 0x78220003, // 0021 JMPF R8 #0026 - 0x8C200707, // 0022 GETMET R8 R3 K7 - 0x5828000A, // 0023 LDCONST R10 K10 - 0x7C200400, // 0024 CALL R8 2 - 0x7002000F, // 0025 JMP #0036 - 0x8820010B, // 0026 GETMBR R8 R0 K11 - 0x8C20110C, // 0027 GETMET R8 R8 K12 - 0x5C280E00, // 0028 MOVE R10 R7 - 0x7C200400, // 0029 CALL R8 2 - 0x8C240707, // 002A GETMET R9 R3 K7 - 0x8C2C090D, // 002B GETMET R11 R4 K13 - 0x5834000E, // 002C LDCONST R13 K14 - 0x5C380E00, // 002D MOVE R14 R7 - 0x1C3C0E01, // 002E EQ R15 R7 R1 - 0x783E0001, // 002F JMPF R15 #0032 - 0x583C000F, // 0030 LDCONST R15 K15 - 0x70020000, // 0031 JMP #0033 - 0x583C0006, // 0032 LDCONST R15 K6 - 0x5C401000, // 0033 MOVE R16 R8 - 0x7C2C0A00, // 0034 CALL R11 5 - 0x7C240400, // 0035 CALL R9 2 - 0x00180D10, // 0036 ADD R6 R6 K16 - 0x7001FFDB, // 0037 JMP #0014 - 0x80000000, // 0038 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_UI_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(add_driver), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C080400, // 0004 CALL R2 2 - 0x80000000, // 0005 RET 0 + ( &(const binstruction[40]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C0C0400, // 0004 CALL R3 2 + 0x8C0C0302, // 0005 GETMET R3 R1 K2 + 0x58140004, // 0006 LDCONST R5 K4 + 0x7C0C0400, // 0007 CALL R3 2 + 0x8C0C0302, // 0008 GETMET R3 R1 K2 + 0x8C140505, // 0009 GETMET R5 R2 K5 + 0x581C0006, // 000A LDCONST R7 K6 + 0x88200107, // 000B GETMBR R8 R0 K7 + 0x88201108, // 000C GETMBR R8 R8 K8 + 0x7C140600, // 000D CALL R5 3 + 0x7C0C0400, // 000E CALL R3 2 + 0x8C0C0302, // 000F GETMET R3 R1 K2 + 0x58140009, // 0010 LDCONST R5 K9 + 0x7C0C0400, // 0011 CALL R3 2 + 0x8C0C0302, // 0012 GETMET R3 R1 K2 + 0x8C140505, // 0013 GETMET R5 R2 K5 + 0x581C000A, // 0014 LDCONST R7 K10 + 0x88200107, // 0015 GETMBR R8 R0 K7 + 0x8820110B, // 0016 GETMBR R8 R8 K11 + 0x7C140600, // 0017 CALL R5 3 + 0x7C0C0400, // 0018 CALL R3 2 + 0x8C0C0302, // 0019 GETMET R3 R1 K2 + 0x8C140505, // 001A GETMET R5 R2 K5 + 0x581C000C, // 001B LDCONST R7 K12 + 0x88200107, // 001C GETMBR R8 R0 K7 + 0x8820110D, // 001D GETMBR R8 R8 K13 + 0x78220001, // 001E JMPF R8 #0021 + 0x5820000E, // 001F LDCONST R8 K14 + 0x70020000, // 0020 JMP #0022 + 0x5820000F, // 0021 LDCONST R8 K15 + 0x7C140600, // 0022 CALL R5 3 + 0x7C0C0400, // 0023 CALL R3 2 + 0x8C0C0302, // 0024 GETMET R3 R1 K2 + 0x58140010, // 0025 LDCONST R5 K16 + 0x7C0C0400, // 0026 CALL R3 2 + 0x80000000, // 0027 RET 0 }) ) ); @@ -486,108 +2130,105 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[97]) { /* constants */ + ( &(const bvalue[94]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), /* K1 */ be_nested_str_weak(check_privileged_access), /* K2 */ be_nested_str_weak(string), /* K3 */ be_nested_str_weak(partition_core), /* K4 */ be_nested_str_weak(persist), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(arg_size), - /* K7 */ be_const_int(1), + /* K5 */ be_nested_str_weak(has_arg), + /* K6 */ be_nested_str_weak(passcode), + /* K7 */ be_nested_str_weak(discriminator), /* K8 */ be_nested_str_weak(tasmota), /* K9 */ be_nested_str_weak(log), /* K10 */ be_nested_str_weak(format), - /* K11 */ be_nested_str_weak(MTR_X3A_X20Arg_X25i_X20_X27_X25s_X27_X20_X3D_X20_X27_X25s_X27), - /* K12 */ be_nested_str_weak(arg_name), - /* K13 */ be_nested_str_weak(arg), - /* K14 */ be_nested_str_weak(stop_iteration), - /* K15 */ be_nested_str_weak(has_arg), - /* K16 */ be_nested_str_weak(passcode), - /* K17 */ be_nested_str_weak(discriminator), - /* K18 */ be_nested_str_weak(MTR_X3A_X20_X2Fmatterc_X20received_X20_X27_X25s_X27_X20command), - /* K19 */ be_const_int(3), - /* K20 */ be_nested_str_weak(device), - /* K21 */ be_nested_str_weak(root_passcode), - /* K22 */ be_nested_str_weak(root_discriminator), - /* K23 */ be_nested_str_weak(ipv4only), - /* K24 */ be_nested_str_weak(ipv4), - /* K25 */ be_nested_str_weak(on), - /* K26 */ be_nested_str_weak(save_param), - /* K27 */ be_nested_str_weak(redirect), - /* K28 */ be_nested_str_weak(_X2F_X3Frst_X3D), - /* K29 */ be_nested_str_weak(save), - /* K30 */ be_nested_str_weak(menable), - /* K31 */ be_nested_str_weak(comm), - /* K32 */ be_nested_str_weak(matter_enabled), - /* K33 */ be_nested_str_weak(enable), - /* K34 */ be_nested_str_weak(cmd), - /* K35 */ be_nested_str_weak(SetOption), - /* K36 */ be_nested_str_weak(matter), - /* K37 */ be_nested_str_weak(MATTER_OPTION), - /* K38 */ be_nested_str_weak(_X201), - /* K39 */ be_nested_str_weak(disable), - /* K40 */ be_nested_str_weak(_X200), - /* K41 */ be_nested_str_weak(commissioning_open), - /* K42 */ be_nested_str_weak(start_root_basic_commissioning), - /* K43 */ be_nested_str_weak(stop_basic_commissioning), - /* K44 */ be_nested_str_weak(_X2F), - /* K45 */ be_nested_str_weak(del_fabric), - /* K46 */ be_nested_str_weak(sessions), - /* K47 */ be_nested_str_weak(fabrics), - /* K48 */ be_nested_str_weak(get_fabric_index), - /* K49 */ be_nested_str_weak(remove_fabric), - /* K50 */ be_nested_str_weak(_X2Fmatterc_X3F), - /* K51 */ be_nested_str_weak(auto), - /* K52 */ be_nested_str_weak(plugins_persist), - /* K53 */ be_nested_str_weak(config), - /* K54 */ be_nested_str_weak(find), - /* K55 */ be_const_int(2147483647), - /* K56 */ be_nested_str_weak(plugins_config), - /* K57 */ be_nested_str_weak(plugins_classes), - /* K58 */ be_nested_str_weak(type), - /* K59 */ be_nested_str_weak(), - /* K60 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20arg_X3D_X25s), - /* K61 */ be_nested_str_weak(ui_conf_to_string), - /* K62 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20prev_arg_X3D_X27_X25s_X27_X20arg_X3D_X27_X25s_X27_X20_X25s), - /* K63 */ be_nested_str_weak(changed), - /* K64 */ be_nested_str_weak(ui_string_to_conf), - /* K65 */ be_nested_str_weak(find_plugin_by_endpoint), - /* K66 */ be_nested_str_weak(MTR_X3A_X20apply_X20conf_X20_X27_X25s_X27_X20_X28_X25i_X29_X20to_X20_X25s), - /* K67 */ be_nested_str_weak(parse_configuration), - /* K68 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20not_X20found), - /* K69 */ be_nested_str_weak(MTR_X3A_X20config_X20_X3D_X20_X25s), - /* K70 */ be_nested_str_weak(MTR_X3A_X20config_X20error_X20_X3D_X20_X25s), - /* K71 */ be_nested_str_weak(_X2Fcn_X3F), - /* K72 */ be_nested_str_weak(addep), - /* K73 */ be_nested_str_weak(pi), - /* K74 */ be_nested_str_weak(MTR_X3A_X20add_X20endpoint_X20typ_X3D_X27_X25s_X27_X20arg_X3D_X27_X25s_X27), - /* K75 */ be_nested_str_weak(bridge_add_endpoint), - /* K76 */ be_nested_str_weak(addrem), - /* K77 */ be_nested_str_weak(url), - /* K78 */ be_nested_str_weak(value_error), - /* K79 */ be_nested_str_weak(url_X20shouldn_X27t_X20be_X20null), - /* K80 */ be_nested_str_weak(equal_map), - /* K81 */ be_nested_str_weak(MTR_X3A_X20remote_X20add_X20url_X3D_X27_X25s_X27_X20type_X3D_X27_X25s_X27_X20arg_X3D_X27_X25s_X27), - /* K82 */ be_nested_str_weak(del), - /* K83 */ be_nested_str_weak(MTR_X3A_X20deleting_X20endpoint_X20_X25i), - /* K84 */ be_const_int(2), - /* K85 */ be_nested_str_weak(bridge_remove_endpoint), - /* K86 */ be_nested_str_weak(content_start), - /* K87 */ be_nested_str_weak(Parameter_X20error), - /* K88 */ be_nested_str_weak(content_send_style), - /* K89 */ be_nested_str_weak(content_send), - /* K90 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EError_X3A_X3C_X2Fb_X3E_X25s_X3C_X2Fp_X3E), - /* K91 */ be_nested_str_weak(html_escape), - /* K92 */ be_nested_str_weak(content_button), - /* K93 */ be_nested_str_weak(BUTTON_CONFIGURATION), - /* K94 */ be_nested_str_weak(content_stop), - /* K95 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K96 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), + /* K11 */ be_nested_str_weak(MTR_X3A_X20_X2Fmatterc_X20received_X20_X27_X25s_X27_X20command), + /* K12 */ be_const_int(3), + /* K13 */ be_nested_str_weak(device), + /* K14 */ be_nested_str_weak(root_passcode), + /* K15 */ be_nested_str_weak(arg), + /* K16 */ be_nested_str_weak(root_discriminator), + /* K17 */ be_nested_str_weak(ipv4only), + /* K18 */ be_nested_str_weak(ipv4), + /* K19 */ be_nested_str_weak(on), + /* K20 */ be_nested_str_weak(save_param), + /* K21 */ be_nested_str_weak(redirect), + /* K22 */ be_nested_str_weak(_X2F_X3Frst_X3D), + /* K23 */ be_nested_str_weak(save), + /* K24 */ be_nested_str_weak(menable), + /* K25 */ be_nested_str_weak(comm), + /* K26 */ be_nested_str_weak(matter_enabled), + /* K27 */ be_nested_str_weak(enable), + /* K28 */ be_nested_str_weak(cmd), + /* K29 */ be_nested_str_weak(SetOption), + /* K30 */ be_nested_str_weak(matter), + /* K31 */ be_nested_str_weak(MATTER_OPTION), + /* K32 */ be_nested_str_weak(_X201), + /* K33 */ be_nested_str_weak(disable), + /* K34 */ be_nested_str_weak(_X200), + /* K35 */ be_nested_str_weak(commissioning_open), + /* K36 */ be_nested_str_weak(start_root_basic_commissioning), + /* K37 */ be_nested_str_weak(stop_basic_commissioning), + /* K38 */ be_nested_str_weak(_X2F), + /* K39 */ be_nested_str_weak(del_fabric), + /* K40 */ be_const_int(0), + /* K41 */ be_nested_str_weak(sessions), + /* K42 */ be_nested_str_weak(fabrics), + /* K43 */ be_nested_str_weak(get_fabric_index), + /* K44 */ be_nested_str_weak(remove_fabric), + /* K45 */ be_const_int(1), + /* K46 */ be_nested_str_weak(_X2Fmatterc_X3F), + /* K47 */ be_nested_str_weak(auto), + /* K48 */ be_nested_str_weak(plugins_persist), + /* K49 */ be_nested_str_weak(config), + /* K50 */ be_nested_str_weak(arg_size), + /* K51 */ be_nested_str_weak(arg_name), + /* K52 */ be_nested_str_weak(find), + /* K53 */ be_const_int(2147483647), + /* K54 */ be_nested_str_weak(plugins_config), + /* K55 */ be_nested_str_weak(plugins_classes), + /* K56 */ be_nested_str_weak(type), + /* K57 */ be_nested_str_weak(), + /* K58 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20arg_X3D_X25s), + /* K59 */ be_nested_str_weak(ui_conf_to_string), + /* K60 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20prev_arg_X3D_X27_X25s_X27_X20arg_X3D_X27_X25s_X27_X20_X25s), + /* K61 */ be_nested_str_weak(changed), + /* K62 */ be_nested_str_weak(ui_string_to_conf), + /* K63 */ be_nested_str_weak(find_plugin_by_endpoint), + /* K64 */ be_nested_str_weak(MTR_X3A_X20apply_X20conf_X20_X27_X25s_X27_X20_X28_X25i_X29_X20to_X20_X25s), + /* K65 */ be_nested_str_weak(parse_configuration), + /* K66 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20not_X20found), + /* K67 */ be_nested_str_weak(stop_iteration), + /* K68 */ be_nested_str_weak(MTR_X3A_X20config_X20_X3D_X20_X25s), + /* K69 */ be_nested_str_weak(MTR_X3A_X20config_X20error_X20_X3D_X20_X25s), + /* K70 */ be_nested_str_weak(addep), + /* K71 */ be_nested_str_weak(pi), + /* K72 */ be_nested_str_weak(MTR_X3A_X20add_X20endpoint_X20typ_X3D_X27_X25s_X27_X20arg_X3D_X27_X25s_X27), + /* K73 */ be_nested_str_weak(bridge_add_endpoint), + /* K74 */ be_nested_str_weak(addrem), + /* K75 */ be_nested_str_weak(url), + /* K76 */ be_nested_str_weak(value_error), + /* K77 */ be_nested_str_weak(url_X20shouldn_X27t_X20be_X20null), + /* K78 */ be_nested_str_weak(equal_map), + /* K79 */ be_nested_str_weak(MTR_X3A_X20remote_X20add_X20url_X3D_X27_X25s_X27_X20type_X3D_X27_X25s_X27_X20arg_X3D_X27_X25s_X27), + /* K80 */ be_nested_str_weak(del), + /* K81 */ be_nested_str_weak(bridge_remove_endpoint), + /* K82 */ be_nested_str_weak(content_start), + /* K83 */ be_nested_str_weak(Parameter_X20error), + /* K84 */ be_nested_str_weak(content_send_style), + /* K85 */ be_nested_str_weak(content_send), + /* K86 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EError_X3A_X3C_X2Fb_X3E_X25s_X3C_X2Fp_X3E), + /* K87 */ be_nested_str_weak(html_escape), + /* K88 */ be_nested_str_weak(content_button), + /* K89 */ be_nested_str_weak(BUTTON_CONFIGURATION), + /* K90 */ be_nested_str_weak(content_stop), + /* K91 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), + /* K92 */ be_const_int(2), + /* K93 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), }), be_str_weak(page_part_ctl), &be_const_str_solidified, - ( &(const binstruction[628]) { /* code */ + ( &(const binstruction[594]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x8C080301, // 0001 GETMET R2 R1 K1 0x7C080200, // 0002 CALL R2 1 @@ -598,672 +2239,590 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ 0xA40E0600, // 0007 IMPORT R3 K3 0xA4120800, // 0008 IMPORT R4 K4 0x4C140000, // 0009 LDNIL R5 - 0xA8020249, // 000A EXBLK 0 #0255 - 0x60180010, // 000B GETGBL R6 G16 - 0x8C1C0306, // 000C GETMET R7 R1 K6 - 0x7C1C0200, // 000D CALL R7 1 - 0x041C0F07, // 000E SUB R7 R7 K7 - 0x401E0A07, // 000F CONNECT R7 K5 R7 - 0x7C180200, // 0010 CALL R6 1 - 0xA802000F, // 0011 EXBLK 0 #0022 - 0x5C1C0C00, // 0012 MOVE R7 R6 - 0x7C1C0000, // 0013 CALL R7 0 - 0xB8221000, // 0014 GETNGBL R8 K8 - 0x8C201109, // 0015 GETMET R8 R8 K9 - 0x8C28050A, // 0016 GETMET R10 R2 K10 - 0x5830000B, // 0017 LDCONST R12 K11 - 0x5C340E00, // 0018 MOVE R13 R7 - 0x8C38030C, // 0019 GETMET R14 R1 K12 - 0x5C400E00, // 001A MOVE R16 R7 - 0x7C380400, // 001B CALL R14 2 - 0x8C3C030D, // 001C GETMET R15 R1 K13 - 0x5C440E00, // 001D MOVE R17 R7 - 0x7C3C0400, // 001E CALL R15 2 - 0x7C280A00, // 001F CALL R10 5 - 0x7C200400, // 0020 CALL R8 2 - 0x7001FFEF, // 0021 JMP #0012 - 0x5818000E, // 0022 LDCONST R6 K14 - 0xAC180200, // 0023 CATCH R6 1 0 - 0xB0080000, // 0024 RAISE 2 R0 R0 - 0x8C18030F, // 0025 GETMET R6 R1 K15 - 0x58200010, // 0026 LDCONST R8 K16 - 0x7C180400, // 0027 CALL R6 2 - 0x741A0003, // 0028 JMPT R6 #002D - 0x8C18030F, // 0029 GETMET R6 R1 K15 - 0x58200011, // 002A LDCONST R8 K17 - 0x7C180400, // 002B CALL R6 2 - 0x781A002A, // 002C JMPF R6 #0058 - 0xB81A1000, // 002D GETNGBL R6 K8 - 0x8C180D09, // 002E GETMET R6 R6 K9 - 0x8C20050A, // 002F GETMET R8 R2 K10 - 0x58280012, // 0030 LDCONST R10 K18 - 0x582C0010, // 0031 LDCONST R11 K16 - 0x7C200600, // 0032 CALL R8 3 - 0x58240013, // 0033 LDCONST R9 K19 - 0x7C180600, // 0034 CALL R6 3 - 0x8C18030F, // 0035 GETMET R6 R1 K15 - 0x58200010, // 0036 LDCONST R8 K16 - 0x7C180400, // 0037 CALL R6 2 - 0x781A0006, // 0038 JMPF R6 #0040 - 0x88180114, // 0039 GETMBR R6 R0 K20 - 0x601C0009, // 003A GETGBL R7 G9 - 0x8C20030D, // 003B GETMET R8 R1 K13 - 0x58280010, // 003C LDCONST R10 K16 - 0x7C200400, // 003D CALL R8 2 - 0x7C1C0200, // 003E CALL R7 1 - 0x901A2A07, // 003F SETMBR R6 K21 R7 - 0x8C18030F, // 0040 GETMET R6 R1 K15 - 0x58200011, // 0041 LDCONST R8 K17 - 0x7C180400, // 0042 CALL R6 2 - 0x781A0006, // 0043 JMPF R6 #004B - 0x88180114, // 0044 GETMBR R6 R0 K20 - 0x601C0009, // 0045 GETGBL R7 G9 - 0x8C20030D, // 0046 GETMET R8 R1 K13 - 0x58280011, // 0047 LDCONST R10 K17 - 0x7C200400, // 0048 CALL R8 2 - 0x7C1C0200, // 0049 CALL R7 1 - 0x901A2C07, // 004A SETMBR R6 K22 R7 - 0x88180114, // 004B GETMBR R6 R0 K20 - 0x8C1C030D, // 004C GETMET R7 R1 K13 - 0x58240018, // 004D LDCONST R9 K24 - 0x7C1C0400, // 004E CALL R7 2 - 0x1C1C0F19, // 004F EQ R7 R7 K25 - 0x901A2E07, // 0050 SETMBR R6 K23 R7 - 0x88180114, // 0051 GETMBR R6 R0 K20 - 0x8C180D1A, // 0052 GETMET R6 R6 K26 - 0x7C180200, // 0053 CALL R6 1 - 0x8C18031B, // 0054 GETMET R6 R1 K27 - 0x5820001C, // 0055 LDCONST R8 K28 - 0x7C180400, // 0056 CALL R6 2 - 0x700201E7, // 0057 JMP #0240 - 0x8C18030F, // 0058 GETMET R6 R1 K15 - 0x5820001D, // 0059 LDCONST R8 K29 - 0x7C180400, // 005A CALL R6 2 - 0x781A0047, // 005B JMPF R6 #00A4 - 0x8C18030F, // 005C GETMET R6 R1 K15 - 0x5820001E, // 005D LDCONST R8 K30 - 0x7C180400, // 005E CALL R6 2 - 0x8C1C030F, // 005F GETMET R7 R1 K15 - 0x5824001F, // 0060 LDCONST R9 K31 - 0x7C1C0400, // 0061 CALL R7 2 - 0x8C200120, // 0062 GETMET R8 R0 K32 - 0x7C200200, // 0063 CALL R8 1 - 0x20200C08, // 0064 NE R8 R6 R8 - 0x78220027, // 0065 JMPF R8 #008E - 0x781A0011, // 0066 JMPF R6 #0079 + 0xA8020227, // 000A EXBLK 0 #0233 + 0x8C180305, // 000B GETMET R6 R1 K5 + 0x58200006, // 000C LDCONST R8 K6 + 0x7C180400, // 000D CALL R6 2 + 0x741A0003, // 000E JMPT R6 #0013 + 0x8C180305, // 000F GETMET R6 R1 K5 + 0x58200007, // 0010 LDCONST R8 K7 + 0x7C180400, // 0011 CALL R6 2 + 0x781A002A, // 0012 JMPF R6 #003E + 0xB81A1000, // 0013 GETNGBL R6 K8 + 0x8C180D09, // 0014 GETMET R6 R6 K9 + 0x8C20050A, // 0015 GETMET R8 R2 K10 + 0x5828000B, // 0016 LDCONST R10 K11 + 0x582C0006, // 0017 LDCONST R11 K6 + 0x7C200600, // 0018 CALL R8 3 + 0x5824000C, // 0019 LDCONST R9 K12 + 0x7C180600, // 001A CALL R6 3 + 0x8C180305, // 001B GETMET R6 R1 K5 + 0x58200006, // 001C LDCONST R8 K6 + 0x7C180400, // 001D CALL R6 2 + 0x781A0006, // 001E JMPF R6 #0026 + 0x8818010D, // 001F GETMBR R6 R0 K13 + 0x601C0009, // 0020 GETGBL R7 G9 + 0x8C20030F, // 0021 GETMET R8 R1 K15 + 0x58280006, // 0022 LDCONST R10 K6 + 0x7C200400, // 0023 CALL R8 2 + 0x7C1C0200, // 0024 CALL R7 1 + 0x901A1C07, // 0025 SETMBR R6 K14 R7 + 0x8C180305, // 0026 GETMET R6 R1 K5 + 0x58200007, // 0027 LDCONST R8 K7 + 0x7C180400, // 0028 CALL R6 2 + 0x781A0006, // 0029 JMPF R6 #0031 + 0x8818010D, // 002A GETMBR R6 R0 K13 + 0x601C0009, // 002B GETGBL R7 G9 + 0x8C20030F, // 002C GETMET R8 R1 K15 + 0x58280007, // 002D LDCONST R10 K7 + 0x7C200400, // 002E CALL R8 2 + 0x7C1C0200, // 002F CALL R7 1 + 0x901A2007, // 0030 SETMBR R6 K16 R7 + 0x8818010D, // 0031 GETMBR R6 R0 K13 + 0x8C1C030F, // 0032 GETMET R7 R1 K15 + 0x58240012, // 0033 LDCONST R9 K18 + 0x7C1C0400, // 0034 CALL R7 2 + 0x1C1C0F13, // 0035 EQ R7 R7 K19 + 0x901A2207, // 0036 SETMBR R6 K17 R7 + 0x8818010D, // 0037 GETMBR R6 R0 K13 + 0x8C180D14, // 0038 GETMET R6 R6 K20 + 0x7C180200, // 0039 CALL R6 1 + 0x8C180315, // 003A GETMET R6 R1 K21 + 0x58200016, // 003B LDCONST R8 K22 + 0x7C180400, // 003C CALL R6 2 + 0x700201DF, // 003D JMP #021E + 0x8C180305, // 003E GETMET R6 R1 K5 + 0x58200017, // 003F LDCONST R8 K23 + 0x7C180400, // 0040 CALL R6 2 + 0x781A0047, // 0041 JMPF R6 #008A + 0x8C180305, // 0042 GETMET R6 R1 K5 + 0x58200018, // 0043 LDCONST R8 K24 + 0x7C180400, // 0044 CALL R6 2 + 0x8C1C0305, // 0045 GETMET R7 R1 K5 + 0x58240019, // 0046 LDCONST R9 K25 + 0x7C1C0400, // 0047 CALL R7 2 + 0x8C20011A, // 0048 GETMET R8 R0 K26 + 0x7C200200, // 0049 CALL R8 1 + 0x20200C08, // 004A NE R8 R6 R8 + 0x78220027, // 004B JMPF R8 #0074 + 0x781A0011, // 004C JMPF R6 #005F + 0xB8221000, // 004D GETNGBL R8 K8 + 0x8C201109, // 004E GETMET R8 R8 K9 + 0x8C28050A, // 004F GETMET R10 R2 K10 + 0x5830000B, // 0050 LDCONST R12 K11 + 0x5834001B, // 0051 LDCONST R13 K27 + 0x7C280600, // 0052 CALL R10 3 + 0x582C000C, // 0053 LDCONST R11 K12 + 0x7C200600, // 0054 CALL R8 3 + 0xB8221000, // 0055 GETNGBL R8 K8 + 0x8C20111C, // 0056 GETMET R8 R8 K28 + 0x60280008, // 0057 GETGBL R10 G8 + 0xB82E3C00, // 0058 GETNGBL R11 K30 + 0x882C171F, // 0059 GETMBR R11 R11 K31 + 0x7C280200, // 005A CALL R10 1 + 0x002A3A0A, // 005B ADD R10 K29 R10 + 0x00281520, // 005C ADD R10 R10 K32 + 0x7C200400, // 005D CALL R8 2 + 0x70020010, // 005E JMP #0070 + 0xB8221000, // 005F GETNGBL R8 K8 + 0x8C201109, // 0060 GETMET R8 R8 K9 + 0x8C28050A, // 0061 GETMET R10 R2 K10 + 0x5830000B, // 0062 LDCONST R12 K11 + 0x58340021, // 0063 LDCONST R13 K33 + 0x7C280600, // 0064 CALL R10 3 + 0x582C000C, // 0065 LDCONST R11 K12 + 0x7C200600, // 0066 CALL R8 3 0xB8221000, // 0067 GETNGBL R8 K8 - 0x8C201109, // 0068 GETMET R8 R8 K9 - 0x8C28050A, // 0069 GETMET R10 R2 K10 - 0x58300012, // 006A LDCONST R12 K18 - 0x58340021, // 006B LDCONST R13 K33 - 0x7C280600, // 006C CALL R10 3 - 0x582C0013, // 006D LDCONST R11 K19 - 0x7C200600, // 006E CALL R8 3 - 0xB8221000, // 006F GETNGBL R8 K8 - 0x8C201122, // 0070 GETMET R8 R8 K34 - 0x60280008, // 0071 GETGBL R10 G8 - 0xB82E4800, // 0072 GETNGBL R11 K36 - 0x882C1725, // 0073 GETMBR R11 R11 K37 - 0x7C280200, // 0074 CALL R10 1 - 0x002A460A, // 0075 ADD R10 K35 R10 - 0x00281526, // 0076 ADD R10 R10 K38 - 0x7C200400, // 0077 CALL R8 2 - 0x70020010, // 0078 JMP #008A - 0xB8221000, // 0079 GETNGBL R8 K8 - 0x8C201109, // 007A GETMET R8 R8 K9 - 0x8C28050A, // 007B GETMET R10 R2 K10 - 0x58300012, // 007C LDCONST R12 K18 - 0x58340027, // 007D LDCONST R13 K39 - 0x7C280600, // 007E CALL R10 3 - 0x582C0013, // 007F LDCONST R11 K19 - 0x7C200600, // 0080 CALL R8 3 - 0xB8221000, // 0081 GETNGBL R8 K8 - 0x8C201122, // 0082 GETMET R8 R8 K34 - 0x60280008, // 0083 GETGBL R10 G8 - 0xB82E4800, // 0084 GETNGBL R11 K36 - 0x882C1725, // 0085 GETMBR R11 R11 K37 - 0x7C280200, // 0086 CALL R10 1 - 0x002A460A, // 0087 ADD R10 K35 R10 - 0x00281528, // 0088 ADD R10 R10 K40 - 0x7C200400, // 0089 CALL R8 2 - 0x8C20031B, // 008A GETMET R8 R1 K27 - 0x5828001C, // 008B LDCONST R10 K28 - 0x7C200400, // 008C CALL R8 2 - 0x70020014, // 008D JMP #00A3 - 0x88200114, // 008E GETMBR R8 R0 K20 - 0x88201129, // 008F GETMBR R8 R8 K41 - 0x4C240000, // 0090 LDNIL R9 - 0x20201009, // 0091 NE R8 R8 R9 - 0x20200E08, // 0092 NE R8 R7 R8 - 0x7822000B, // 0093 JMPF R8 #00A0 - 0x781E0003, // 0094 JMPF R7 #0099 - 0x88200114, // 0095 GETMBR R8 R0 K20 - 0x8C20112A, // 0096 GETMET R8 R8 K42 - 0x7C200200, // 0097 CALL R8 1 - 0x70020002, // 0098 JMP #009C - 0x88200114, // 0099 GETMBR R8 R0 K20 - 0x8C20112B, // 009A GETMET R8 R8 K43 - 0x7C200200, // 009B CALL R8 1 - 0x8C20031B, // 009C GETMET R8 R1 K27 - 0x5828002C, // 009D LDCONST R10 K44 - 0x7C200400, // 009E CALL R8 2 - 0x70020002, // 009F JMP #00A3 - 0x8C20031B, // 00A0 GETMET R8 R1 K27 - 0x5828002C, // 00A1 LDCONST R10 K44 - 0x7C200400, // 00A2 CALL R8 2 - 0x7002019B, // 00A3 JMP #0240 - 0x8C18030F, // 00A4 GETMET R6 R1 K15 - 0x5820002D, // 00A5 LDCONST R8 K45 - 0x7C180400, // 00A6 CALL R6 2 - 0x781A0026, // 00A7 JMPF R6 #00CF - 0xB81A1000, // 00A8 GETNGBL R6 K8 - 0x8C180D09, // 00A9 GETMET R6 R6 K9 - 0x8C20050A, // 00AA GETMET R8 R2 K10 - 0x58280012, // 00AB LDCONST R10 K18 - 0x582C002D, // 00AC LDCONST R11 K45 - 0x7C200600, // 00AD CALL R8 3 - 0x58240013, // 00AE LDCONST R9 K19 - 0x7C180600, // 00AF CALL R6 3 - 0x60180009, // 00B0 GETGBL R6 G9 - 0x8C1C030D, // 00B1 GETMET R7 R1 K13 - 0x5824002D, // 00B2 LDCONST R9 K45 - 0x7C1C0400, // 00B3 CALL R7 2 - 0x7C180200, // 00B4 CALL R6 1 - 0x581C0005, // 00B5 LDCONST R7 K5 - 0x88200114, // 00B6 GETMBR R8 R0 K20 - 0x8820112E, // 00B7 GETMBR R8 R8 K46 - 0x8820112F, // 00B8 GETMBR R8 R8 K47 - 0x6024000C, // 00B9 GETGBL R9 G12 - 0x5C281000, // 00BA MOVE R10 R8 - 0x7C240200, // 00BB CALL R9 1 - 0x14240E09, // 00BC LT R9 R7 R9 - 0x7826000C, // 00BD JMPF R9 #00CB - 0x94241007, // 00BE GETIDX R9 R8 R7 - 0x8C241330, // 00BF GETMET R9 R9 K48 - 0x7C240200, // 00C0 CALL R9 1 - 0x1C241206, // 00C1 EQ R9 R9 R6 - 0x78260005, // 00C2 JMPF R9 #00C9 - 0x88240114, // 00C3 GETMBR R9 R0 K20 - 0x8C241331, // 00C4 GETMET R9 R9 K49 - 0x942C1007, // 00C5 GETIDX R11 R8 R7 - 0x7C240400, // 00C6 CALL R9 2 - 0x70020002, // 00C7 JMP #00CB - 0x70020000, // 00C8 JMP #00CA - 0x001C0F07, // 00C9 ADD R7 R7 K7 - 0x7001FFED, // 00CA JMP #00B9 - 0x8C24031B, // 00CB GETMET R9 R1 K27 - 0x582C0032, // 00CC LDCONST R11 K50 - 0x7C240400, // 00CD CALL R9 2 - 0x70020170, // 00CE JMP #0240 - 0x8C18030F, // 00CF GETMET R6 R1 K15 - 0x58200033, // 00D0 LDCONST R8 K51 - 0x7C180400, // 00D1 CALL R6 2 - 0x781A0011, // 00D2 JMPF R6 #00E5 - 0xB81A1000, // 00D3 GETNGBL R6 K8 - 0x8C180D09, // 00D4 GETMET R6 R6 K9 - 0x8C20050A, // 00D5 GETMET R8 R2 K10 - 0x58280012, // 00D6 LDCONST R10 K18 - 0x582C0033, // 00D7 LDCONST R11 K51 - 0x7C200600, // 00D8 CALL R8 3 - 0x58240013, // 00D9 LDCONST R9 K19 - 0x7C180600, // 00DA CALL R6 3 - 0x88180114, // 00DB GETMBR R6 R0 K20 - 0x501C0000, // 00DC LDBOOL R7 0 0 - 0x901A6807, // 00DD SETMBR R6 K52 R7 - 0x88180114, // 00DE GETMBR R6 R0 K20 - 0x8C180D1A, // 00DF GETMET R6 R6 K26 - 0x7C180200, // 00E0 CALL R6 1 - 0x8C18031B, // 00E1 GETMET R6 R1 K27 - 0x5820001C, // 00E2 LDCONST R8 K28 - 0x7C180400, // 00E3 CALL R6 2 - 0x7002015A, // 00E4 JMP #0240 - 0x8C18030F, // 00E5 GETMET R6 R1 K15 - 0x58200035, // 00E6 LDCONST R8 K53 - 0x7C180400, // 00E7 CALL R6 2 - 0x781A009C, // 00E8 JMPF R6 #0186 - 0xB81A1000, // 00E9 GETNGBL R6 K8 - 0x8C180D09, // 00EA GETMET R6 R6 K9 - 0x8C20050A, // 00EB GETMET R8 R2 K10 - 0x58280012, // 00EC LDCONST R10 K18 - 0x582C0035, // 00ED LDCONST R11 K53 - 0x7C200600, // 00EE CALL R8 3 - 0x58240013, // 00EF LDCONST R9 K19 - 0x7C180600, // 00F0 CALL R6 3 - 0x50180000, // 00F1 LDBOOL R6 0 0 - 0x601C0010, // 00F2 GETGBL R7 G16 - 0x8C200306, // 00F3 GETMET R8 R1 K6 - 0x7C200200, // 00F4 CALL R8 1 - 0x04201107, // 00F5 SUB R8 R8 K7 - 0x40220A08, // 00F6 CONNECT R8 K5 R8 - 0x7C1C0200, // 00F7 CALL R7 1 - 0xA8020066, // 00F8 EXBLK 0 #0160 - 0x5C200E00, // 00F9 MOVE R8 R7 - 0x7C200000, // 00FA CALL R8 0 - 0x8C24030C, // 00FB GETMET R9 R1 K12 - 0x5C2C1000, // 00FC MOVE R11 R8 - 0x7C240400, // 00FD CALL R9 2 - 0x8C280536, // 00FE GETMET R10 R2 K54 - 0x5C301200, // 00FF MOVE R12 R9 - 0x5834000D, // 0100 LDCONST R13 K13 - 0x7C280600, // 0101 CALL R10 3 - 0x1C281505, // 0102 EQ R10 R10 K5 - 0x782A005A, // 0103 JMPF R10 #015F - 0x60280009, // 0104 GETGBL R10 G9 - 0x402E2737, // 0105 CONNECT R11 K19 K55 - 0x942C120B, // 0106 GETIDX R11 R9 R11 - 0x7C280200, // 0107 CALL R10 1 - 0x8C2C030D, // 0108 GETMET R11 R1 K13 - 0x5C341000, // 0109 MOVE R13 R8 - 0x7C2C0400, // 010A CALL R11 2 - 0x88300114, // 010B GETMBR R12 R0 K20 - 0x88301938, // 010C GETMBR R12 R12 K56 - 0x8C301936, // 010D GETMET R12 R12 K54 - 0x60380008, // 010E GETGBL R14 G8 - 0x5C3C1400, // 010F MOVE R15 R10 - 0x7C380200, // 0110 CALL R14 1 - 0x7C300400, // 0111 CALL R12 2 - 0x4C340000, // 0112 LDNIL R13 - 0x2034180D, // 0113 NE R13 R12 R13 - 0x78360041, // 0114 JMPF R13 #0157 - 0x88340114, // 0115 GETMBR R13 R0 K20 - 0x88341B39, // 0116 GETMBR R13 R13 K57 - 0x8C341B36, // 0117 GETMET R13 R13 K54 - 0x8C3C1936, // 0118 GETMET R15 R12 K54 - 0x5844003A, // 0119 LDCONST R17 K58 - 0x5848003B, // 011A LDCONST R18 K59 - 0x7C3C0600, // 011B CALL R15 3 - 0x7C340400, // 011C CALL R13 2 - 0x4C380000, // 011D LDNIL R14 - 0x20381A0E, // 011E NE R14 R13 R14 - 0x783A0035, // 011F JMPF R14 #0156 - 0xB83A1000, // 0120 GETNGBL R14 K8 - 0x8C381D09, // 0121 GETMET R14 R14 K9 - 0x8C40050A, // 0122 GETMET R16 R2 K10 - 0x5848003C, // 0123 LDCONST R18 K60 - 0x5C4C1400, // 0124 MOVE R19 R10 - 0x5C501600, // 0125 MOVE R20 R11 - 0x7C400800, // 0126 CALL R16 4 - 0x58440013, // 0127 LDCONST R17 K19 - 0x7C380600, // 0128 CALL R14 3 - 0x8C381B3D, // 0129 GETMET R14 R13 K61 - 0x5C401A00, // 012A MOVE R16 R13 - 0x5C441800, // 012B MOVE R17 R12 - 0x7C380600, // 012C CALL R14 3 - 0x203C1C0B, // 012D NE R15 R14 R11 - 0xB8421000, // 012E GETNGBL R16 K8 - 0x8C402109, // 012F GETMET R16 R16 K9 - 0x8C48050A, // 0130 GETMET R18 R2 K10 - 0x5850003E, // 0131 LDCONST R20 K62 - 0x5C541400, // 0132 MOVE R21 R10 - 0x5C581C00, // 0133 MOVE R22 R14 - 0x5C5C1600, // 0134 MOVE R23 R11 - 0x20601C0B, // 0135 NE R24 R14 R11 - 0x78620001, // 0136 JMPF R24 #0139 - 0x5860003F, // 0137 LDCONST R24 K63 - 0x70020000, // 0138 JMP #013A - 0x5860003B, // 0139 LDCONST R24 K59 - 0x7C480C00, // 013A CALL R18 6 - 0x584C0013, // 013B LDCONST R19 K19 - 0x7C400600, // 013C CALL R16 3 - 0x783E0017, // 013D JMPF R15 #0156 - 0x50180200, // 013E LDBOOL R6 1 0 - 0x8C401B40, // 013F GETMET R16 R13 K64 - 0x5C481A00, // 0140 MOVE R18 R13 - 0x5C4C1800, // 0141 MOVE R19 R12 - 0x5C501600, // 0142 MOVE R20 R11 - 0x7C400800, // 0143 CALL R16 4 - 0x88400114, // 0144 GETMBR R16 R0 K20 - 0x8C402141, // 0145 GETMET R16 R16 K65 - 0x5C481400, // 0146 MOVE R18 R10 - 0x7C400400, // 0147 CALL R16 2 - 0x7842000C, // 0148 JMPF R16 #0156 - 0xB8461000, // 0149 GETNGBL R17 K8 - 0x8C442309, // 014A GETMET R17 R17 K9 - 0x8C4C050A, // 014B GETMET R19 R2 K10 - 0x58540042, // 014C LDCONST R21 K66 - 0x5C581800, // 014D MOVE R22 R12 - 0x5C5C1400, // 014E MOVE R23 R10 - 0x5C602000, // 014F MOVE R24 R16 - 0x7C4C0A00, // 0150 CALL R19 5 - 0x58500013, // 0151 LDCONST R20 K19 - 0x7C440600, // 0152 CALL R17 3 - 0x8C442143, // 0153 GETMET R17 R16 K67 - 0x5C4C1800, // 0154 MOVE R19 R12 - 0x7C440400, // 0155 CALL R17 2 - 0x70020007, // 0156 JMP #015F - 0xB8361000, // 0157 GETNGBL R13 K8 - 0x8C341B09, // 0158 GETMET R13 R13 K9 - 0x8C3C050A, // 0159 GETMET R15 R2 K10 - 0x58440044, // 015A LDCONST R17 K68 - 0x5C481400, // 015B MOVE R18 R10 - 0x7C3C0600, // 015C CALL R15 3 - 0x58400013, // 015D LDCONST R16 K19 - 0x7C340600, // 015E CALL R13 3 - 0x7001FF98, // 015F JMP #00F9 - 0x581C000E, // 0160 LDCONST R7 K14 - 0xAC1C0200, // 0161 CATCH R7 1 0 - 0xB0080000, // 0162 RAISE 2 R0 R0 - 0xB81E1000, // 0163 GETNGBL R7 K8 - 0x8C1C0F09, // 0164 GETMET R7 R7 K9 - 0x8C24050A, // 0165 GETMET R9 R2 K10 - 0x582C0045, // 0166 LDCONST R11 K69 - 0x60300008, // 0167 GETGBL R12 G8 - 0x88340114, // 0168 GETMBR R13 R0 K20 - 0x88341B38, // 0169 GETMBR R13 R13 K56 - 0x7C300200, // 016A CALL R12 1 - 0x7C240600, // 016B CALL R9 3 - 0x58280013, // 016C LDCONST R10 K19 - 0x7C1C0600, // 016D CALL R7 3 - 0x78160008, // 016E JMPF R5 #0178 - 0xB81E1000, // 016F GETNGBL R7 K8 - 0x8C1C0F09, // 0170 GETMET R7 R7 K9 - 0x8C24050A, // 0171 GETMET R9 R2 K10 - 0x582C0046, // 0172 LDCONST R11 K70 - 0x5C300A00, // 0173 MOVE R12 R5 - 0x7C240600, // 0174 CALL R9 3 - 0x58280013, // 0175 LDCONST R10 K19 - 0x7C1C0600, // 0176 CALL R7 3 - 0x7002000C, // 0177 JMP #0185 - 0x741A0002, // 0178 JMPT R6 #017C - 0x881C0114, // 0179 GETMBR R7 R0 K20 - 0x881C0F34, // 017A GETMBR R7 R7 K52 - 0x741E0005, // 017B JMPT R7 #0182 - 0x881C0114, // 017C GETMBR R7 R0 K20 - 0x50200200, // 017D LDBOOL R8 1 0 - 0x901E6808, // 017E SETMBR R7 K52 R8 - 0x881C0114, // 017F GETMBR R7 R0 K20 - 0x8C1C0F1A, // 0180 GETMET R7 R7 K26 - 0x7C1C0200, // 0181 CALL R7 1 - 0x8C1C031B, // 0182 GETMET R7 R1 K27 - 0x58240047, // 0183 LDCONST R9 K71 - 0x7C1C0400, // 0184 CALL R7 2 - 0x700200B9, // 0185 JMP #0240 - 0x8C18030F, // 0186 GETMET R6 R1 K15 - 0x58200048, // 0187 LDCONST R8 K72 - 0x7C180400, // 0188 CALL R6 2 - 0x781A0026, // 0189 JMPF R6 #01B1 - 0x8C18030D, // 018A GETMET R6 R1 K13 - 0x58200049, // 018B LDCONST R8 K73 - 0x7C180400, // 018C CALL R6 2 - 0x8C1C030D, // 018D GETMET R7 R1 K13 - 0x5824000D, // 018E LDCONST R9 K13 - 0x7C1C0400, // 018F CALL R7 2 - 0xB8221000, // 0190 GETNGBL R8 K8 - 0x8C201109, // 0191 GETMET R8 R8 K9 - 0x8C28050A, // 0192 GETMET R10 R2 K10 - 0x5830004A, // 0193 LDCONST R12 K74 - 0x5C340C00, // 0194 MOVE R13 R6 - 0x5C380E00, // 0195 MOVE R14 R7 - 0x7C280800, // 0196 CALL R10 4 - 0x582C0013, // 0197 LDCONST R11 K19 - 0x7C200600, // 0198 CALL R8 3 - 0x88200114, // 0199 GETMBR R8 R0 K20 - 0x88201139, // 019A GETMBR R8 R8 K57 - 0x8C201136, // 019B GETMET R8 R8 K54 - 0x5C280C00, // 019C MOVE R10 R6 - 0x7C200400, // 019D CALL R8 2 - 0x4C240000, // 019E LDNIL R9 - 0x20241009, // 019F NE R9 R8 R9 - 0x7826000B, // 01A0 JMPF R9 #01AD - 0x60240013, // 01A1 GETGBL R9 G19 - 0x7C240000, // 01A2 CALL R9 0 - 0x8C281140, // 01A3 GETMET R10 R8 K64 - 0x5C301000, // 01A4 MOVE R12 R8 - 0x5C341200, // 01A5 MOVE R13 R9 - 0x5C380E00, // 01A6 MOVE R14 R7 - 0x7C280800, // 01A7 CALL R10 4 - 0x88280114, // 01A8 GETMBR R10 R0 K20 - 0x8C28154B, // 01A9 GETMET R10 R10 K75 - 0x5C300C00, // 01AA MOVE R12 R6 - 0x5C341200, // 01AB MOVE R13 R9 - 0x7C280600, // 01AC CALL R10 3 - 0x8C24031B, // 01AD GETMET R9 R1 K27 - 0x582C0032, // 01AE LDCONST R11 K50 - 0x7C240400, // 01AF CALL R9 2 - 0x7002008E, // 01B0 JMP #0240 - 0x8C18030F, // 01B1 GETMET R6 R1 K15 - 0x5820004C, // 01B2 LDCONST R8 K76 - 0x7C180400, // 01B3 CALL R6 2 - 0x781A0059, // 01B4 JMPF R6 #020F - 0x8C18030D, // 01B5 GETMET R6 R1 K13 - 0x5820004D, // 01B6 LDCONST R8 K77 - 0x7C180400, // 01B7 CALL R6 2 - 0x4C1C0000, // 01B8 LDNIL R7 - 0x1C1C0C07, // 01B9 EQ R7 R6 R7 - 0x741E0001, // 01BA JMPT R7 #01BD - 0x1C1C0D3B, // 01BB EQ R7 R6 K59 - 0x781E0000, // 01BC JMPF R7 #01BE - 0xB0069D4F, // 01BD RAISE 1 K78 K79 - 0x581C0005, // 01BE LDCONST R7 K5 - 0x60200008, // 01BF GETGBL R8 G8 - 0x5C240E00, // 01C0 MOVE R9 R7 - 0x7C200200, // 01C1 CALL R8 1 - 0x8C24030F, // 01C2 GETMET R9 R1 K15 - 0x002E9208, // 01C3 ADD R11 K73 R8 - 0x7C240400, // 01C4 CALL R9 2 - 0x78260044, // 01C5 JMPF R9 #020B - 0x8C24030D, // 01C6 GETMET R9 R1 K13 - 0x002E9208, // 01C7 ADD R11 K73 R8 - 0x7C240400, // 01C8 CALL R9 2 - 0x8C28030D, // 01C9 GETMET R10 R1 K13 - 0x00321A08, // 01CA ADD R12 K13 R8 - 0x7C280400, // 01CB CALL R10 2 - 0x202C133B, // 01CC NE R11 R9 K59 - 0x782E0036, // 01CD JMPF R11 #0205 - 0x882C0114, // 01CE GETMBR R11 R0 K20 - 0x882C1739, // 01CF GETMBR R11 R11 K57 - 0x8C2C1736, // 01D0 GETMET R11 R11 K54 - 0x5C341200, // 01D1 MOVE R13 R9 - 0x7C2C0400, // 01D2 CALL R11 2 - 0x4C300000, // 01D3 LDNIL R12 - 0x2030160C, // 01D4 NE R12 R11 R12 - 0x7832002E, // 01D5 JMPF R12 #0205 - 0x60300013, // 01D6 GETGBL R12 G19 - 0x7C300000, // 01D7 CALL R12 0 - 0x98329A06, // 01D8 SETIDX R12 K77 R6 - 0x98327409, // 01D9 SETIDX R12 K58 R9 - 0x8C341740, // 01DA GETMET R13 R11 K64 - 0x5C3C1600, // 01DB MOVE R15 R11 - 0x5C401800, // 01DC MOVE R16 R12 - 0x5C441400, // 01DD MOVE R17 R10 - 0x7C340800, // 01DE CALL R13 4 - 0x50340000, // 01DF LDBOOL R13 0 0 - 0x60380010, // 01E0 GETGBL R14 G16 - 0x883C0114, // 01E1 GETMBR R15 R0 K20 - 0x883C1F38, // 01E2 GETMBR R15 R15 K56 - 0x7C380200, // 01E3 CALL R14 1 - 0xA802000B, // 01E4 EXBLK 0 #01F1 - 0x5C3C1C00, // 01E5 MOVE R15 R14 - 0x7C3C0000, // 01E6 CALL R15 0 - 0x8C400150, // 01E7 GETMET R16 R0 K80 - 0x5C481E00, // 01E8 MOVE R18 R15 - 0x5C4C1800, // 01E9 MOVE R19 R12 - 0x7C400600, // 01EA CALL R16 3 - 0x78420001, // 01EB JMPF R16 #01EE - 0x50340200, // 01EC LDBOOL R13 1 0 - 0x70020000, // 01ED JMP #01EF - 0x7001FFF5, // 01EE JMP #01E5 - 0xA8040001, // 01EF EXBLK 1 1 - 0x70020002, // 01F0 JMP #01F4 - 0x5838000E, // 01F1 LDCONST R14 K14 - 0xAC380200, // 01F2 CATCH R14 1 0 - 0xB0080000, // 01F3 RAISE 2 R0 R0 - 0x5C381A00, // 01F4 MOVE R14 R13 - 0x743A000E, // 01F5 JMPT R14 #0205 - 0xB83A1000, // 01F6 GETNGBL R14 K8 - 0x8C381D09, // 01F7 GETMET R14 R14 K9 - 0x8C40050A, // 01F8 GETMET R16 R2 K10 - 0x58480051, // 01F9 LDCONST R18 K81 - 0x5C4C0C00, // 01FA MOVE R19 R6 - 0x5C501200, // 01FB MOVE R20 R9 - 0x5C541400, // 01FC MOVE R21 R10 - 0x7C400A00, // 01FD CALL R16 5 - 0x58440013, // 01FE LDCONST R17 K19 - 0x7C380600, // 01FF CALL R14 3 - 0x88380114, // 0200 GETMBR R14 R0 K20 - 0x8C381D4B, // 0201 GETMET R14 R14 K75 - 0x5C401200, // 0202 MOVE R16 R9 - 0x5C441800, // 0203 MOVE R17 R12 - 0x7C380600, // 0204 CALL R14 3 - 0x001C0F07, // 0205 ADD R7 R7 K7 - 0x602C0008, // 0206 GETGBL R11 G8 - 0x5C300E00, // 0207 MOVE R12 R7 - 0x7C2C0200, // 0208 CALL R11 1 - 0x5C201600, // 0209 MOVE R8 R11 - 0x7001FFB6, // 020A JMP #01C2 - 0x8C24031B, // 020B GETMET R9 R1 K27 - 0x582C0032, // 020C LDCONST R11 K50 - 0x7C240400, // 020D CALL R9 2 - 0x70020030, // 020E JMP #0240 - 0x4C180000, // 020F LDNIL R6 - 0x601C0010, // 0210 GETGBL R7 G16 - 0x8C200306, // 0211 GETMET R8 R1 K6 - 0x7C200200, // 0212 CALL R8 1 - 0x04201107, // 0213 SUB R8 R8 K7 - 0x40220A08, // 0214 CONNECT R8 K5 R8 - 0x7C1C0200, // 0215 CALL R7 1 - 0xA8020013, // 0216 EXBLK 0 #022B - 0x5C200E00, // 0217 MOVE R8 R7 - 0x7C200000, // 0218 CALL R8 0 - 0x8C24030C, // 0219 GETMET R9 R1 K12 - 0x5C2C1000, // 021A MOVE R11 R8 - 0x7C240400, // 021B CALL R9 2 - 0x8C280536, // 021C GETMET R10 R2 K54 - 0x5C301200, // 021D MOVE R12 R9 - 0x58340052, // 021E LDCONST R13 K82 - 0x7C280600, // 021F CALL R10 3 - 0x1C281505, // 0220 EQ R10 R10 K5 - 0x782A0005, // 0221 JMPF R10 #0228 - 0x60280009, // 0222 GETGBL R10 G9 - 0x402E2737, // 0223 CONNECT R11 K19 K55 - 0x942C120B, // 0224 GETIDX R11 R9 R11 - 0x7C280200, // 0225 CALL R10 1 - 0x5C181400, // 0226 MOVE R6 R10 - 0x70020000, // 0227 JMP #0229 - 0x7001FFED, // 0228 JMP #0217 - 0xA8040001, // 0229 EXBLK 1 1 - 0x70020002, // 022A JMP #022E - 0x581C000E, // 022B LDCONST R7 K14 - 0xAC1C0200, // 022C CATCH R7 1 0 - 0xB0080000, // 022D RAISE 2 R0 R0 - 0x4C1C0000, // 022E LDNIL R7 - 0x201C0C07, // 022F NE R7 R6 R7 - 0x781E000E, // 0230 JMPF R7 #0240 - 0xB81E1000, // 0231 GETNGBL R7 K8 - 0x8C1C0F09, // 0232 GETMET R7 R7 K9 - 0x8C24050A, // 0233 GETMET R9 R2 K10 - 0x582C0053, // 0234 LDCONST R11 K83 - 0x5C300C00, // 0235 MOVE R12 R6 - 0x7C240600, // 0236 CALL R9 3 - 0x58280054, // 0237 LDCONST R10 K84 - 0x7C1C0600, // 0238 CALL R7 3 - 0x881C0114, // 0239 GETMBR R7 R0 K20 - 0x8C1C0F55, // 023A GETMET R7 R7 K85 - 0x5C240C00, // 023B MOVE R9 R6 - 0x7C1C0400, // 023C CALL R7 2 - 0x8C1C031B, // 023D GETMET R7 R1 K27 - 0x58240032, // 023E LDCONST R9 K50 - 0x7C1C0400, // 023F CALL R7 2 - 0x78160011, // 0240 JMPF R5 #0253 - 0x8C180356, // 0241 GETMET R6 R1 K86 - 0x58200057, // 0242 LDCONST R8 K87 - 0x7C180400, // 0243 CALL R6 2 - 0x8C180358, // 0244 GETMET R6 R1 K88 - 0x7C180200, // 0245 CALL R6 1 - 0x8C180359, // 0246 GETMET R6 R1 K89 - 0x8C20050A, // 0247 GETMET R8 R2 K10 - 0x5828005A, // 0248 LDCONST R10 K90 - 0x8C2C035B, // 0249 GETMET R11 R1 K91 - 0x5C340A00, // 024A MOVE R13 R5 - 0x7C2C0400, // 024B CALL R11 2 - 0x7C200600, // 024C CALL R8 3 - 0x7C180400, // 024D CALL R6 2 - 0x8C18035C, // 024E GETMET R6 R1 K92 - 0x8820035D, // 024F GETMBR R8 R1 K93 - 0x7C180400, // 0250 CALL R6 2 - 0x8C18035E, // 0251 GETMET R6 R1 K94 - 0x7C180200, // 0252 CALL R6 1 - 0xA8040001, // 0253 EXBLK 1 1 - 0x7002001D, // 0254 JMP #0273 - 0xAC180002, // 0255 CATCH R6 0 2 - 0x7002001A, // 0256 JMP #0272 - 0xB8221000, // 0257 GETNGBL R8 K8 - 0x8C201109, // 0258 GETMET R8 R8 K9 - 0x8C28050A, // 0259 GETMET R10 R2 K10 - 0x5830005F, // 025A LDCONST R12 K95 - 0x5C340C00, // 025B MOVE R13 R6 - 0x5C380E00, // 025C MOVE R14 R7 - 0x7C280800, // 025D CALL R10 4 - 0x582C0054, // 025E LDCONST R11 K84 - 0x7C200600, // 025F CALL R8 3 - 0x8C200356, // 0260 GETMET R8 R1 K86 - 0x58280057, // 0261 LDCONST R10 K87 - 0x7C200400, // 0262 CALL R8 2 - 0x8C200358, // 0263 GETMET R8 R1 K88 - 0x7C200200, // 0264 CALL R8 1 - 0x8C200359, // 0265 GETMET R8 R1 K89 - 0x8C28050A, // 0266 GETMET R10 R2 K10 - 0x58300060, // 0267 LDCONST R12 K96 - 0x5C340C00, // 0268 MOVE R13 R6 - 0x5C380E00, // 0269 MOVE R14 R7 - 0x7C280800, // 026A CALL R10 4 - 0x7C200400, // 026B CALL R8 2 - 0x8C20035C, // 026C GETMET R8 R1 K92 - 0x8828035D, // 026D GETMBR R10 R1 K93 - 0x7C200400, // 026E CALL R8 2 - 0x8C20035E, // 026F GETMET R8 R1 K94 - 0x7C200200, // 0270 CALL R8 1 - 0x70020000, // 0271 JMP #0273 - 0xB0080000, // 0272 RAISE 2 R0 R0 - 0x80000000, // 0273 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_get_arg -********************************************************************/ -be_local_closure(Matter_UI_web_get_arg, /* 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[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(has_arg), - /* K2 */ be_nested_str_weak(mtc0), - /* K3 */ be_nested_str_weak(device), - /* K4 */ be_nested_str_weak(stop_basic_commissioning), - /* K5 */ be_nested_str_weak(mtc1), - /* K6 */ be_nested_str_weak(start_root_basic_commissioning), - }), - be_str_weak(web_get_arg), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0003, // 0004 JMPF R2 #0009 - 0x88080103, // 0005 GETMBR R2 R0 K3 - 0x8C080504, // 0006 GETMET R2 R2 K4 - 0x7C080200, // 0007 CALL R2 1 - 0x70020006, // 0008 JMP #0010 - 0x8C080301, // 0009 GETMET R2 R1 K1 - 0x58100005, // 000A LDCONST R4 K5 - 0x7C080400, // 000B CALL R2 2 - 0x780A0002, // 000C JMPF R2 #0010 - 0x88080103, // 000D GETMBR R2 R0 K3 - 0x8C080506, // 000E GETMET R2 R2 K6 - 0x7C080200, // 000F CALL R2 1 - 0x80000000, // 0010 RET 0 + 0x8C20111C, // 0068 GETMET R8 R8 K28 + 0x60280008, // 0069 GETGBL R10 G8 + 0xB82E3C00, // 006A GETNGBL R11 K30 + 0x882C171F, // 006B GETMBR R11 R11 K31 + 0x7C280200, // 006C CALL R10 1 + 0x002A3A0A, // 006D ADD R10 K29 R10 + 0x00281522, // 006E ADD R10 R10 K34 + 0x7C200400, // 006F CALL R8 2 + 0x8C200315, // 0070 GETMET R8 R1 K21 + 0x58280016, // 0071 LDCONST R10 K22 + 0x7C200400, // 0072 CALL R8 2 + 0x70020014, // 0073 JMP #0089 + 0x8820010D, // 0074 GETMBR R8 R0 K13 + 0x88201123, // 0075 GETMBR R8 R8 K35 + 0x4C240000, // 0076 LDNIL R9 + 0x20201009, // 0077 NE R8 R8 R9 + 0x20200E08, // 0078 NE R8 R7 R8 + 0x7822000B, // 0079 JMPF R8 #0086 + 0x781E0003, // 007A JMPF R7 #007F + 0x8820010D, // 007B GETMBR R8 R0 K13 + 0x8C201124, // 007C GETMET R8 R8 K36 + 0x7C200200, // 007D CALL R8 1 + 0x70020002, // 007E JMP #0082 + 0x8820010D, // 007F GETMBR R8 R0 K13 + 0x8C201125, // 0080 GETMET R8 R8 K37 + 0x7C200200, // 0081 CALL R8 1 + 0x8C200315, // 0082 GETMET R8 R1 K21 + 0x58280026, // 0083 LDCONST R10 K38 + 0x7C200400, // 0084 CALL R8 2 + 0x70020002, // 0085 JMP #0089 + 0x8C200315, // 0086 GETMET R8 R1 K21 + 0x58280026, // 0087 LDCONST R10 K38 + 0x7C200400, // 0088 CALL R8 2 + 0x70020193, // 0089 JMP #021E + 0x8C180305, // 008A GETMET R6 R1 K5 + 0x58200027, // 008B LDCONST R8 K39 + 0x7C180400, // 008C CALL R6 2 + 0x781A0026, // 008D JMPF R6 #00B5 + 0xB81A1000, // 008E GETNGBL R6 K8 + 0x8C180D09, // 008F GETMET R6 R6 K9 + 0x8C20050A, // 0090 GETMET R8 R2 K10 + 0x5828000B, // 0091 LDCONST R10 K11 + 0x582C0027, // 0092 LDCONST R11 K39 + 0x7C200600, // 0093 CALL R8 3 + 0x5824000C, // 0094 LDCONST R9 K12 + 0x7C180600, // 0095 CALL R6 3 + 0x60180009, // 0096 GETGBL R6 G9 + 0x8C1C030F, // 0097 GETMET R7 R1 K15 + 0x58240027, // 0098 LDCONST R9 K39 + 0x7C1C0400, // 0099 CALL R7 2 + 0x7C180200, // 009A CALL R6 1 + 0x581C0028, // 009B LDCONST R7 K40 + 0x8820010D, // 009C GETMBR R8 R0 K13 + 0x88201129, // 009D GETMBR R8 R8 K41 + 0x8820112A, // 009E GETMBR R8 R8 K42 + 0x6024000C, // 009F GETGBL R9 G12 + 0x5C281000, // 00A0 MOVE R10 R8 + 0x7C240200, // 00A1 CALL R9 1 + 0x14240E09, // 00A2 LT R9 R7 R9 + 0x7826000C, // 00A3 JMPF R9 #00B1 + 0x94241007, // 00A4 GETIDX R9 R8 R7 + 0x8C24132B, // 00A5 GETMET R9 R9 K43 + 0x7C240200, // 00A6 CALL R9 1 + 0x1C241206, // 00A7 EQ R9 R9 R6 + 0x78260005, // 00A8 JMPF R9 #00AF + 0x8824010D, // 00A9 GETMBR R9 R0 K13 + 0x8C24132C, // 00AA GETMET R9 R9 K44 + 0x942C1007, // 00AB GETIDX R11 R8 R7 + 0x7C240400, // 00AC CALL R9 2 + 0x70020002, // 00AD JMP #00B1 + 0x70020000, // 00AE JMP #00B0 + 0x001C0F2D, // 00AF ADD R7 R7 K45 + 0x7001FFED, // 00B0 JMP #009F + 0x8C240315, // 00B1 GETMET R9 R1 K21 + 0x582C002E, // 00B2 LDCONST R11 K46 + 0x7C240400, // 00B3 CALL R9 2 + 0x70020168, // 00B4 JMP #021E + 0x8C180305, // 00B5 GETMET R6 R1 K5 + 0x5820002F, // 00B6 LDCONST R8 K47 + 0x7C180400, // 00B7 CALL R6 2 + 0x781A0011, // 00B8 JMPF R6 #00CB + 0xB81A1000, // 00B9 GETNGBL R6 K8 + 0x8C180D09, // 00BA GETMET R6 R6 K9 + 0x8C20050A, // 00BB GETMET R8 R2 K10 + 0x5828000B, // 00BC LDCONST R10 K11 + 0x582C002F, // 00BD LDCONST R11 K47 + 0x7C200600, // 00BE CALL R8 3 + 0x5824000C, // 00BF LDCONST R9 K12 + 0x7C180600, // 00C0 CALL R6 3 + 0x8818010D, // 00C1 GETMBR R6 R0 K13 + 0x501C0000, // 00C2 LDBOOL R7 0 0 + 0x901A6007, // 00C3 SETMBR R6 K48 R7 + 0x8818010D, // 00C4 GETMBR R6 R0 K13 + 0x8C180D14, // 00C5 GETMET R6 R6 K20 + 0x7C180200, // 00C6 CALL R6 1 + 0x8C180315, // 00C7 GETMET R6 R1 K21 + 0x58200016, // 00C8 LDCONST R8 K22 + 0x7C180400, // 00C9 CALL R6 2 + 0x70020152, // 00CA JMP #021E + 0x8C180305, // 00CB GETMET R6 R1 K5 + 0x58200031, // 00CC LDCONST R8 K49 + 0x7C180400, // 00CD CALL R6 2 + 0x781A009C, // 00CE JMPF R6 #016C + 0xB81A1000, // 00CF GETNGBL R6 K8 + 0x8C180D09, // 00D0 GETMET R6 R6 K9 + 0x8C20050A, // 00D1 GETMET R8 R2 K10 + 0x5828000B, // 00D2 LDCONST R10 K11 + 0x582C0031, // 00D3 LDCONST R11 K49 + 0x7C200600, // 00D4 CALL R8 3 + 0x5824000C, // 00D5 LDCONST R9 K12 + 0x7C180600, // 00D6 CALL R6 3 + 0x50180000, // 00D7 LDBOOL R6 0 0 + 0x601C0010, // 00D8 GETGBL R7 G16 + 0x8C200332, // 00D9 GETMET R8 R1 K50 + 0x7C200200, // 00DA CALL R8 1 + 0x0420112D, // 00DB SUB R8 R8 K45 + 0x40225008, // 00DC CONNECT R8 K40 R8 + 0x7C1C0200, // 00DD CALL R7 1 + 0xA8020066, // 00DE EXBLK 0 #0146 + 0x5C200E00, // 00DF MOVE R8 R7 + 0x7C200000, // 00E0 CALL R8 0 + 0x8C240333, // 00E1 GETMET R9 R1 K51 + 0x5C2C1000, // 00E2 MOVE R11 R8 + 0x7C240400, // 00E3 CALL R9 2 + 0x8C280534, // 00E4 GETMET R10 R2 K52 + 0x5C301200, // 00E5 MOVE R12 R9 + 0x5834000F, // 00E6 LDCONST R13 K15 + 0x7C280600, // 00E7 CALL R10 3 + 0x1C281528, // 00E8 EQ R10 R10 K40 + 0x782A005A, // 00E9 JMPF R10 #0145 + 0x60280009, // 00EA GETGBL R10 G9 + 0x402E1935, // 00EB CONNECT R11 K12 K53 + 0x942C120B, // 00EC GETIDX R11 R9 R11 + 0x7C280200, // 00ED CALL R10 1 + 0x8C2C030F, // 00EE GETMET R11 R1 K15 + 0x5C341000, // 00EF MOVE R13 R8 + 0x7C2C0400, // 00F0 CALL R11 2 + 0x8830010D, // 00F1 GETMBR R12 R0 K13 + 0x88301936, // 00F2 GETMBR R12 R12 K54 + 0x8C301934, // 00F3 GETMET R12 R12 K52 + 0x60380008, // 00F4 GETGBL R14 G8 + 0x5C3C1400, // 00F5 MOVE R15 R10 + 0x7C380200, // 00F6 CALL R14 1 + 0x7C300400, // 00F7 CALL R12 2 + 0x4C340000, // 00F8 LDNIL R13 + 0x2034180D, // 00F9 NE R13 R12 R13 + 0x78360041, // 00FA JMPF R13 #013D + 0x8834010D, // 00FB GETMBR R13 R0 K13 + 0x88341B37, // 00FC GETMBR R13 R13 K55 + 0x8C341B34, // 00FD GETMET R13 R13 K52 + 0x8C3C1934, // 00FE GETMET R15 R12 K52 + 0x58440038, // 00FF LDCONST R17 K56 + 0x58480039, // 0100 LDCONST R18 K57 + 0x7C3C0600, // 0101 CALL R15 3 + 0x7C340400, // 0102 CALL R13 2 + 0x4C380000, // 0103 LDNIL R14 + 0x20381A0E, // 0104 NE R14 R13 R14 + 0x783A0035, // 0105 JMPF R14 #013C + 0xB83A1000, // 0106 GETNGBL R14 K8 + 0x8C381D09, // 0107 GETMET R14 R14 K9 + 0x8C40050A, // 0108 GETMET R16 R2 K10 + 0x5848003A, // 0109 LDCONST R18 K58 + 0x5C4C1400, // 010A MOVE R19 R10 + 0x5C501600, // 010B MOVE R20 R11 + 0x7C400800, // 010C CALL R16 4 + 0x5844000C, // 010D LDCONST R17 K12 + 0x7C380600, // 010E CALL R14 3 + 0x8C381B3B, // 010F GETMET R14 R13 K59 + 0x5C401A00, // 0110 MOVE R16 R13 + 0x5C441800, // 0111 MOVE R17 R12 + 0x7C380600, // 0112 CALL R14 3 + 0x203C1C0B, // 0113 NE R15 R14 R11 + 0xB8421000, // 0114 GETNGBL R16 K8 + 0x8C402109, // 0115 GETMET R16 R16 K9 + 0x8C48050A, // 0116 GETMET R18 R2 K10 + 0x5850003C, // 0117 LDCONST R20 K60 + 0x5C541400, // 0118 MOVE R21 R10 + 0x5C581C00, // 0119 MOVE R22 R14 + 0x5C5C1600, // 011A MOVE R23 R11 + 0x20601C0B, // 011B NE R24 R14 R11 + 0x78620001, // 011C JMPF R24 #011F + 0x5860003D, // 011D LDCONST R24 K61 + 0x70020000, // 011E JMP #0120 + 0x58600039, // 011F LDCONST R24 K57 + 0x7C480C00, // 0120 CALL R18 6 + 0x584C000C, // 0121 LDCONST R19 K12 + 0x7C400600, // 0122 CALL R16 3 + 0x783E0017, // 0123 JMPF R15 #013C + 0x50180200, // 0124 LDBOOL R6 1 0 + 0x8C401B3E, // 0125 GETMET R16 R13 K62 + 0x5C481A00, // 0126 MOVE R18 R13 + 0x5C4C1800, // 0127 MOVE R19 R12 + 0x5C501600, // 0128 MOVE R20 R11 + 0x7C400800, // 0129 CALL R16 4 + 0x8840010D, // 012A GETMBR R16 R0 K13 + 0x8C40213F, // 012B GETMET R16 R16 K63 + 0x5C481400, // 012C MOVE R18 R10 + 0x7C400400, // 012D CALL R16 2 + 0x7842000C, // 012E JMPF R16 #013C + 0xB8461000, // 012F GETNGBL R17 K8 + 0x8C442309, // 0130 GETMET R17 R17 K9 + 0x8C4C050A, // 0131 GETMET R19 R2 K10 + 0x58540040, // 0132 LDCONST R21 K64 + 0x5C581800, // 0133 MOVE R22 R12 + 0x5C5C1400, // 0134 MOVE R23 R10 + 0x5C602000, // 0135 MOVE R24 R16 + 0x7C4C0A00, // 0136 CALL R19 5 + 0x5850000C, // 0137 LDCONST R20 K12 + 0x7C440600, // 0138 CALL R17 3 + 0x8C442141, // 0139 GETMET R17 R16 K65 + 0x5C4C1800, // 013A MOVE R19 R12 + 0x7C440400, // 013B CALL R17 2 + 0x70020007, // 013C JMP #0145 + 0xB8361000, // 013D GETNGBL R13 K8 + 0x8C341B09, // 013E GETMET R13 R13 K9 + 0x8C3C050A, // 013F GETMET R15 R2 K10 + 0x58440042, // 0140 LDCONST R17 K66 + 0x5C481400, // 0141 MOVE R18 R10 + 0x7C3C0600, // 0142 CALL R15 3 + 0x5840000C, // 0143 LDCONST R16 K12 + 0x7C340600, // 0144 CALL R13 3 + 0x7001FF98, // 0145 JMP #00DF + 0x581C0043, // 0146 LDCONST R7 K67 + 0xAC1C0200, // 0147 CATCH R7 1 0 + 0xB0080000, // 0148 RAISE 2 R0 R0 + 0xB81E1000, // 0149 GETNGBL R7 K8 + 0x8C1C0F09, // 014A GETMET R7 R7 K9 + 0x8C24050A, // 014B GETMET R9 R2 K10 + 0x582C0044, // 014C LDCONST R11 K68 + 0x60300008, // 014D GETGBL R12 G8 + 0x8834010D, // 014E GETMBR R13 R0 K13 + 0x88341B36, // 014F GETMBR R13 R13 K54 + 0x7C300200, // 0150 CALL R12 1 + 0x7C240600, // 0151 CALL R9 3 + 0x5828000C, // 0152 LDCONST R10 K12 + 0x7C1C0600, // 0153 CALL R7 3 + 0x78160008, // 0154 JMPF R5 #015E + 0xB81E1000, // 0155 GETNGBL R7 K8 + 0x8C1C0F09, // 0156 GETMET R7 R7 K9 + 0x8C24050A, // 0157 GETMET R9 R2 K10 + 0x582C0045, // 0158 LDCONST R11 K69 + 0x5C300A00, // 0159 MOVE R12 R5 + 0x7C240600, // 015A CALL R9 3 + 0x5828000C, // 015B LDCONST R10 K12 + 0x7C1C0600, // 015C CALL R7 3 + 0x7002000C, // 015D JMP #016B + 0x741A0002, // 015E JMPT R6 #0162 + 0x881C010D, // 015F GETMBR R7 R0 K13 + 0x881C0F30, // 0160 GETMBR R7 R7 K48 + 0x741E0005, // 0161 JMPT R7 #0168 + 0x881C010D, // 0162 GETMBR R7 R0 K13 + 0x50200200, // 0163 LDBOOL R8 1 0 + 0x901E6008, // 0164 SETMBR R7 K48 R8 + 0x881C010D, // 0165 GETMBR R7 R0 K13 + 0x8C1C0F14, // 0166 GETMET R7 R7 K20 + 0x7C1C0200, // 0167 CALL R7 1 + 0x8C1C0315, // 0168 GETMET R7 R1 K21 + 0x5824002E, // 0169 LDCONST R9 K46 + 0x7C1C0400, // 016A CALL R7 2 + 0x700200B1, // 016B JMP #021E + 0x8C180305, // 016C GETMET R6 R1 K5 + 0x58200046, // 016D LDCONST R8 K70 + 0x7C180400, // 016E CALL R6 2 + 0x781A0026, // 016F JMPF R6 #0197 + 0x8C18030F, // 0170 GETMET R6 R1 K15 + 0x58200047, // 0171 LDCONST R8 K71 + 0x7C180400, // 0172 CALL R6 2 + 0x8C1C030F, // 0173 GETMET R7 R1 K15 + 0x5824000F, // 0174 LDCONST R9 K15 + 0x7C1C0400, // 0175 CALL R7 2 + 0xB8221000, // 0176 GETNGBL R8 K8 + 0x8C201109, // 0177 GETMET R8 R8 K9 + 0x8C28050A, // 0178 GETMET R10 R2 K10 + 0x58300048, // 0179 LDCONST R12 K72 + 0x5C340C00, // 017A MOVE R13 R6 + 0x5C380E00, // 017B MOVE R14 R7 + 0x7C280800, // 017C CALL R10 4 + 0x582C000C, // 017D LDCONST R11 K12 + 0x7C200600, // 017E CALL R8 3 + 0x8820010D, // 017F GETMBR R8 R0 K13 + 0x88201137, // 0180 GETMBR R8 R8 K55 + 0x8C201134, // 0181 GETMET R8 R8 K52 + 0x5C280C00, // 0182 MOVE R10 R6 + 0x7C200400, // 0183 CALL R8 2 + 0x4C240000, // 0184 LDNIL R9 + 0x20241009, // 0185 NE R9 R8 R9 + 0x7826000B, // 0186 JMPF R9 #0193 + 0x60240013, // 0187 GETGBL R9 G19 + 0x7C240000, // 0188 CALL R9 0 + 0x8C28113E, // 0189 GETMET R10 R8 K62 + 0x5C301000, // 018A MOVE R12 R8 + 0x5C341200, // 018B MOVE R13 R9 + 0x5C380E00, // 018C MOVE R14 R7 + 0x7C280800, // 018D CALL R10 4 + 0x8828010D, // 018E GETMBR R10 R0 K13 + 0x8C281549, // 018F GETMET R10 R10 K73 + 0x5C300C00, // 0190 MOVE R12 R6 + 0x5C341200, // 0191 MOVE R13 R9 + 0x7C280600, // 0192 CALL R10 3 + 0x8C240315, // 0193 GETMET R9 R1 K21 + 0x582C002E, // 0194 LDCONST R11 K46 + 0x7C240400, // 0195 CALL R9 2 + 0x70020086, // 0196 JMP #021E + 0x8C180305, // 0197 GETMET R6 R1 K5 + 0x5820004A, // 0198 LDCONST R8 K74 + 0x7C180400, // 0199 CALL R6 2 + 0x781A0059, // 019A JMPF R6 #01F5 + 0x8C18030F, // 019B GETMET R6 R1 K15 + 0x5820004B, // 019C LDCONST R8 K75 + 0x7C180400, // 019D CALL R6 2 + 0x4C1C0000, // 019E LDNIL R7 + 0x1C1C0C07, // 019F EQ R7 R6 R7 + 0x741E0001, // 01A0 JMPT R7 #01A3 + 0x1C1C0D39, // 01A1 EQ R7 R6 K57 + 0x781E0000, // 01A2 JMPF R7 #01A4 + 0xB006994D, // 01A3 RAISE 1 K76 K77 + 0x581C0028, // 01A4 LDCONST R7 K40 + 0x60200008, // 01A5 GETGBL R8 G8 + 0x5C240E00, // 01A6 MOVE R9 R7 + 0x7C200200, // 01A7 CALL R8 1 + 0x8C240305, // 01A8 GETMET R9 R1 K5 + 0x002E8E08, // 01A9 ADD R11 K71 R8 + 0x7C240400, // 01AA CALL R9 2 + 0x78260044, // 01AB JMPF R9 #01F1 + 0x8C24030F, // 01AC GETMET R9 R1 K15 + 0x002E8E08, // 01AD ADD R11 K71 R8 + 0x7C240400, // 01AE CALL R9 2 + 0x8C28030F, // 01AF GETMET R10 R1 K15 + 0x00321E08, // 01B0 ADD R12 K15 R8 + 0x7C280400, // 01B1 CALL R10 2 + 0x202C1339, // 01B2 NE R11 R9 K57 + 0x782E0036, // 01B3 JMPF R11 #01EB + 0x882C010D, // 01B4 GETMBR R11 R0 K13 + 0x882C1737, // 01B5 GETMBR R11 R11 K55 + 0x8C2C1734, // 01B6 GETMET R11 R11 K52 + 0x5C341200, // 01B7 MOVE R13 R9 + 0x7C2C0400, // 01B8 CALL R11 2 + 0x4C300000, // 01B9 LDNIL R12 + 0x2030160C, // 01BA NE R12 R11 R12 + 0x7832002E, // 01BB JMPF R12 #01EB + 0x60300013, // 01BC GETGBL R12 G19 + 0x7C300000, // 01BD CALL R12 0 + 0x98329606, // 01BE SETIDX R12 K75 R6 + 0x98327009, // 01BF SETIDX R12 K56 R9 + 0x8C34173E, // 01C0 GETMET R13 R11 K62 + 0x5C3C1600, // 01C1 MOVE R15 R11 + 0x5C401800, // 01C2 MOVE R16 R12 + 0x5C441400, // 01C3 MOVE R17 R10 + 0x7C340800, // 01C4 CALL R13 4 + 0x50340000, // 01C5 LDBOOL R13 0 0 + 0x60380010, // 01C6 GETGBL R14 G16 + 0x883C010D, // 01C7 GETMBR R15 R0 K13 + 0x883C1F36, // 01C8 GETMBR R15 R15 K54 + 0x7C380200, // 01C9 CALL R14 1 + 0xA802000B, // 01CA EXBLK 0 #01D7 + 0x5C3C1C00, // 01CB MOVE R15 R14 + 0x7C3C0000, // 01CC CALL R15 0 + 0x8C40014E, // 01CD GETMET R16 R0 K78 + 0x5C481E00, // 01CE MOVE R18 R15 + 0x5C4C1800, // 01CF MOVE R19 R12 + 0x7C400600, // 01D0 CALL R16 3 + 0x78420001, // 01D1 JMPF R16 #01D4 + 0x50340200, // 01D2 LDBOOL R13 1 0 + 0x70020000, // 01D3 JMP #01D5 + 0x7001FFF5, // 01D4 JMP #01CB + 0xA8040001, // 01D5 EXBLK 1 1 + 0x70020002, // 01D6 JMP #01DA + 0x58380043, // 01D7 LDCONST R14 K67 + 0xAC380200, // 01D8 CATCH R14 1 0 + 0xB0080000, // 01D9 RAISE 2 R0 R0 + 0x5C381A00, // 01DA MOVE R14 R13 + 0x743A000E, // 01DB JMPT R14 #01EB + 0xB83A1000, // 01DC GETNGBL R14 K8 + 0x8C381D09, // 01DD GETMET R14 R14 K9 + 0x8C40050A, // 01DE GETMET R16 R2 K10 + 0x5848004F, // 01DF LDCONST R18 K79 + 0x5C4C0C00, // 01E0 MOVE R19 R6 + 0x5C501200, // 01E1 MOVE R20 R9 + 0x5C541400, // 01E2 MOVE R21 R10 + 0x7C400A00, // 01E3 CALL R16 5 + 0x5844000C, // 01E4 LDCONST R17 K12 + 0x7C380600, // 01E5 CALL R14 3 + 0x8838010D, // 01E6 GETMBR R14 R0 K13 + 0x8C381D49, // 01E7 GETMET R14 R14 K73 + 0x5C401200, // 01E8 MOVE R16 R9 + 0x5C441800, // 01E9 MOVE R17 R12 + 0x7C380600, // 01EA CALL R14 3 + 0x001C0F2D, // 01EB ADD R7 R7 K45 + 0x602C0008, // 01EC GETGBL R11 G8 + 0x5C300E00, // 01ED MOVE R12 R7 + 0x7C2C0200, // 01EE CALL R11 1 + 0x5C201600, // 01EF MOVE R8 R11 + 0x7001FFB6, // 01F0 JMP #01A8 + 0x8C240315, // 01F1 GETMET R9 R1 K21 + 0x582C002E, // 01F2 LDCONST R11 K46 + 0x7C240400, // 01F3 CALL R9 2 + 0x70020028, // 01F4 JMP #021E + 0x4C180000, // 01F5 LDNIL R6 + 0x601C0010, // 01F6 GETGBL R7 G16 + 0x8C200332, // 01F7 GETMET R8 R1 K50 + 0x7C200200, // 01F8 CALL R8 1 + 0x0420112D, // 01F9 SUB R8 R8 K45 + 0x40225008, // 01FA CONNECT R8 K40 R8 + 0x7C1C0200, // 01FB CALL R7 1 + 0xA8020013, // 01FC EXBLK 0 #0211 + 0x5C200E00, // 01FD MOVE R8 R7 + 0x7C200000, // 01FE CALL R8 0 + 0x8C240333, // 01FF GETMET R9 R1 K51 + 0x5C2C1000, // 0200 MOVE R11 R8 + 0x7C240400, // 0201 CALL R9 2 + 0x8C280534, // 0202 GETMET R10 R2 K52 + 0x5C301200, // 0203 MOVE R12 R9 + 0x58340050, // 0204 LDCONST R13 K80 + 0x7C280600, // 0205 CALL R10 3 + 0x1C281528, // 0206 EQ R10 R10 K40 + 0x782A0005, // 0207 JMPF R10 #020E + 0x60280009, // 0208 GETGBL R10 G9 + 0x402E1935, // 0209 CONNECT R11 K12 K53 + 0x942C120B, // 020A GETIDX R11 R9 R11 + 0x7C280200, // 020B CALL R10 1 + 0x5C181400, // 020C MOVE R6 R10 + 0x70020000, // 020D JMP #020F + 0x7001FFED, // 020E JMP #01FD + 0xA8040001, // 020F EXBLK 1 1 + 0x70020002, // 0210 JMP #0214 + 0x581C0043, // 0211 LDCONST R7 K67 + 0xAC1C0200, // 0212 CATCH R7 1 0 + 0xB0080000, // 0213 RAISE 2 R0 R0 + 0x4C1C0000, // 0214 LDNIL R7 + 0x201C0C07, // 0215 NE R7 R6 R7 + 0x781E0006, // 0216 JMPF R7 #021E + 0x881C010D, // 0217 GETMBR R7 R0 K13 + 0x8C1C0F51, // 0218 GETMET R7 R7 K81 + 0x5C240C00, // 0219 MOVE R9 R6 + 0x7C1C0400, // 021A CALL R7 2 + 0x8C1C0315, // 021B GETMET R7 R1 K21 + 0x5824002E, // 021C LDCONST R9 K46 + 0x7C1C0400, // 021D CALL R7 2 + 0x78160011, // 021E JMPF R5 #0231 + 0x8C180352, // 021F GETMET R6 R1 K82 + 0x58200053, // 0220 LDCONST R8 K83 + 0x7C180400, // 0221 CALL R6 2 + 0x8C180354, // 0222 GETMET R6 R1 K84 + 0x7C180200, // 0223 CALL R6 1 + 0x8C180355, // 0224 GETMET R6 R1 K85 + 0x8C20050A, // 0225 GETMET R8 R2 K10 + 0x58280056, // 0226 LDCONST R10 K86 + 0x8C2C0357, // 0227 GETMET R11 R1 K87 + 0x5C340A00, // 0228 MOVE R13 R5 + 0x7C2C0400, // 0229 CALL R11 2 + 0x7C200600, // 022A CALL R8 3 + 0x7C180400, // 022B CALL R6 2 + 0x8C180358, // 022C GETMET R6 R1 K88 + 0x88200359, // 022D GETMBR R8 R1 K89 + 0x7C180400, // 022E CALL R6 2 + 0x8C18035A, // 022F GETMET R6 R1 K90 + 0x7C180200, // 0230 CALL R6 1 + 0xA8040001, // 0231 EXBLK 1 1 + 0x7002001D, // 0232 JMP #0251 + 0xAC180002, // 0233 CATCH R6 0 2 + 0x7002001A, // 0234 JMP #0250 + 0xB8221000, // 0235 GETNGBL R8 K8 + 0x8C201109, // 0236 GETMET R8 R8 K9 + 0x8C28050A, // 0237 GETMET R10 R2 K10 + 0x5830005B, // 0238 LDCONST R12 K91 + 0x5C340C00, // 0239 MOVE R13 R6 + 0x5C380E00, // 023A MOVE R14 R7 + 0x7C280800, // 023B CALL R10 4 + 0x582C005C, // 023C LDCONST R11 K92 + 0x7C200600, // 023D CALL R8 3 + 0x8C200352, // 023E GETMET R8 R1 K82 + 0x58280053, // 023F LDCONST R10 K83 + 0x7C200400, // 0240 CALL R8 2 + 0x8C200354, // 0241 GETMET R8 R1 K84 + 0x7C200200, // 0242 CALL R8 1 + 0x8C200355, // 0243 GETMET R8 R1 K85 + 0x8C28050A, // 0244 GETMET R10 R2 K10 + 0x5830005D, // 0245 LDCONST R12 K93 + 0x5C340C00, // 0246 MOVE R13 R6 + 0x5C380E00, // 0247 MOVE R14 R7 + 0x7C280800, // 0248 CALL R10 4 + 0x7C200400, // 0249 CALL R8 2 + 0x8C200358, // 024A GETMET R8 R1 K88 + 0x88280359, // 024B GETMBR R10 R1 K89 + 0x7C200400, // 024C CALL R8 2 + 0x8C20035A, // 024D GETMET R8 R1 K90 + 0x7C200200, // 024E CALL R8 1 + 0x70020000, // 024F JMP #0251 + 0xB0080000, // 0250 RAISE 2 R0 R0 + 0x80000000, // 0251 RET 0 }) ) ); @@ -1436,627 +2995,6 @@ be_local_closure(Matter_UI_show_qrcode, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: show_remote_autoconf -********************************************************************/ -be_local_closure(Matter_UI_show_remote_autoconf, /* name */ - be_nested_proto( - 24, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[45]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(json), - /* K3 */ be_nested_str_weak(), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(Plugin_Bridge_HTTP), - /* K6 */ be_nested_str_weak(PROBE_TIMEOUT), - /* K7 */ be_nested_str_weak(HTTP_remote), - /* K8 */ be_nested_str_weak(call_sync), - /* K9 */ be_nested_str_weak(Status_X208), - /* K10 */ be_nested_str_weak(load), - /* K11 */ be_nested_str_weak(find), - /* K12 */ be_nested_str_weak(StatusSNS), - /* K13 */ be_nested_str_weak(Status_X2011), - /* K14 */ be_nested_str_weak(StatusSTS), - /* K15 */ be_nested_str_weak(tasmota), - /* K16 */ be_nested_str_weak(log), - /* K17 */ be_nested_str_weak(format), - /* K18 */ be_nested_str_weak(MTR_X3A_X20probed_X20_X27_X25s_X27_X20status8_X3D_X25s_X20satus11_X3D_X25s), - /* K19 */ be_const_int(3), - /* K20 */ be_nested_str_weak(generate_config_from_status), - /* K21 */ be_nested_str_weak(content_send), - /* K22 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20Remote_X20Device_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3Cp_X3E_X3Cb_X3EAdd_X20Remote_X20sensor_X20or_X20device_X3C_X2Fb_X3E_X3C_X2Fp_X3E), - /* K23 */ be_nested_str_weak(_X3Cp_X3E_X26_X23x1F517_X3B_X20_X3Ca_X20target_X3D_X27_blank_X27_X20href_X3D_X22http_X3A_X2F_X2F_X25s_X2F_X22_X3E_X25s_X3C_X2Fa_X3E_X3C_X2Fp_X3E), - /* K24 */ be_nested_str_weak(html_escape), - /* K25 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E_X3Ctr_X3E_X3Ctd_X20width_X3D_X27145_X27_X3EType_X3C_X2Ftd_X3E_X3Ctd_X3EParameter_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K26 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27url_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25s_X27_X3E), - /* K27 */ be_const_int(0), - /* K28 */ be_nested_str_weak(type), - /* K29 */ be_nested_str_weak(http_), - /* K30 */ be_nested_str_weak(device), - /* K31 */ be_nested_str_weak(plugins_classes), - /* K32 */ be_nested_str_weak(ui_conf_to_string), - /* K33 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cselect_X20name_X3D_X27pi_X25i_X27_X3E), - /* K34 */ be_nested_str_weak(plugin_option), - /* K35 */ be_nested_str_weak(_CLASSES_TYPES2), - /* K36 */ be_nested_str_weak(_X3C_X2Fselect_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E), - /* K37 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X25i_X27_X20minlength_X3D_X270_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X3E), - /* K38 */ be_nested_str_weak(_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K39 */ be_const_int(1), - /* K40 */ be_nested_str_weak(_X3C_X2Ftable_X3E), - /* K41 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27display_X3A_X20block_X3B_X27_X3E_X3C_X2Fdiv_X3E), - /* K42 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27addrem_X27_X20class_X3D_X27button_X20bgrn_X27_X3EAdd_X20endpoints_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), - /* K43 */ be_nested_str_weak(_X3C_X2Fform_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K44 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3EUnable_X20to_X20connect_X20to_X20_X27_X25s_X27_X3C_X2Fb_X3E_X3C_X2Fp_X3E), - }), - be_str_weak(show_remote_autoconf), - &be_const_str_solidified, - ( &(const binstruction[204]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xA4120400, // 0002 IMPORT R4 K2 - 0x1C140303, // 0003 EQ R5 R1 K3 - 0x78160000, // 0004 JMPF R5 #0006 - 0x80000A00, // 0005 RET 0 - 0xB8160800, // 0006 GETNGBL R5 K4 - 0x88140B05, // 0007 GETMBR R5 R5 K5 - 0x88140B06, // 0008 GETMBR R5 R5 K6 - 0xB81A0800, // 0009 GETNGBL R6 K4 - 0x8C180D07, // 000A GETMET R6 R6 K7 - 0x5C200200, // 000B MOVE R8 R1 - 0x5C240A00, // 000C MOVE R9 R5 - 0x7C180600, // 000D CALL R6 3 - 0x8C1C0D08, // 000E GETMET R7 R6 K8 - 0x58240009, // 000F LDCONST R9 K9 - 0x5C280A00, // 0010 MOVE R10 R5 - 0x7C1C0600, // 0011 CALL R7 3 - 0x4C200000, // 0012 LDNIL R8 - 0x20200E08, // 0013 NE R8 R7 R8 - 0x78220003, // 0014 JMPF R8 #0019 - 0x8C20090A, // 0015 GETMET R8 R4 K10 - 0x5C280E00, // 0016 MOVE R10 R7 - 0x7C200400, // 0017 CALL R8 2 - 0x5C1C1000, // 0018 MOVE R7 R8 - 0x4C200000, // 0019 LDNIL R8 - 0x20200E08, // 001A NE R8 R7 R8 - 0x78220003, // 001B JMPF R8 #0020 - 0x8C200F0B, // 001C GETMET R8 R7 K11 - 0x5828000C, // 001D LDCONST R10 K12 - 0x7C200400, // 001E CALL R8 2 - 0x5C1C1000, // 001F MOVE R7 R8 - 0x4C200000, // 0020 LDNIL R8 - 0x4C240000, // 0021 LDNIL R9 - 0x20240E09, // 0022 NE R9 R7 R9 - 0x78260012, // 0023 JMPF R9 #0037 - 0x8C240D08, // 0024 GETMET R9 R6 K8 - 0x582C000D, // 0025 LDCONST R11 K13 - 0x5C300A00, // 0026 MOVE R12 R5 - 0x7C240600, // 0027 CALL R9 3 - 0x5C201200, // 0028 MOVE R8 R9 - 0x4C240000, // 0029 LDNIL R9 - 0x20241009, // 002A NE R9 R8 R9 - 0x78260003, // 002B JMPF R9 #0030 - 0x8C24090A, // 002C GETMET R9 R4 K10 - 0x5C2C1000, // 002D MOVE R11 R8 - 0x7C240400, // 002E CALL R9 2 - 0x5C201200, // 002F MOVE R8 R9 - 0x4C240000, // 0030 LDNIL R9 - 0x20241009, // 0031 NE R9 R8 R9 - 0x78260003, // 0032 JMPF R9 #0037 - 0x8C24110B, // 0033 GETMET R9 R8 K11 - 0x582C000E, // 0034 LDCONST R11 K14 - 0x7C240400, // 0035 CALL R9 2 - 0x5C201200, // 0036 MOVE R8 R9 - 0x4C240000, // 0037 LDNIL R9 - 0x20240E09, // 0038 NE R9 R7 R9 - 0x78260088, // 0039 JMPF R9 #00C3 - 0x4C240000, // 003A LDNIL R9 - 0x20241009, // 003B NE R9 R8 R9 - 0x78260085, // 003C JMPF R9 #00C3 - 0xB8261E00, // 003D GETNGBL R9 K15 - 0x8C241310, // 003E GETMET R9 R9 K16 - 0x8C2C0711, // 003F GETMET R11 R3 K17 - 0x58340012, // 0040 LDCONST R13 K18 - 0x5C380200, // 0041 MOVE R14 R1 - 0x603C0008, // 0042 GETGBL R15 G8 - 0x5C400E00, // 0043 MOVE R16 R7 - 0x7C3C0200, // 0044 CALL R15 1 - 0x60400008, // 0045 GETGBL R16 G8 - 0x5C441000, // 0046 MOVE R17 R8 - 0x7C400200, // 0047 CALL R16 1 - 0x7C2C0A00, // 0048 CALL R11 5 - 0x58300013, // 0049 LDCONST R12 K19 - 0x7C240600, // 004A CALL R9 3 - 0x8C240114, // 004B GETMET R9 R0 K20 - 0x5C2C0E00, // 004C MOVE R11 R7 - 0x5C301000, // 004D MOVE R12 R8 - 0x7C240600, // 004E CALL R9 3 - 0x8C280515, // 004F GETMET R10 R2 K21 - 0x58300016, // 0050 LDCONST R12 K22 - 0x7C280400, // 0051 CALL R10 2 - 0x8C280515, // 0052 GETMET R10 R2 K21 - 0x8C300711, // 0053 GETMET R12 R3 K17 - 0x58380017, // 0054 LDCONST R14 K23 - 0x8C3C0518, // 0055 GETMET R15 R2 K24 - 0x5C440200, // 0056 MOVE R17 R1 - 0x7C3C0400, // 0057 CALL R15 2 - 0x8C400518, // 0058 GETMET R16 R2 K24 - 0x5C480200, // 0059 MOVE R18 R1 - 0x7C400400, // 005A CALL R16 2 - 0x7C300800, // 005B CALL R12 4 - 0x7C280400, // 005C CALL R10 2 - 0x8C280515, // 005D GETMET R10 R2 K21 - 0x58300019, // 005E LDCONST R12 K25 - 0x7C280400, // 005F CALL R10 2 - 0x8C280515, // 0060 GETMET R10 R2 K21 - 0x8C300711, // 0061 GETMET R12 R3 K17 - 0x5838001A, // 0062 LDCONST R14 K26 - 0x8C3C0518, // 0063 GETMET R15 R2 K24 - 0x5C440200, // 0064 MOVE R17 R1 - 0x7C3C0400, // 0065 CALL R15 2 - 0x7C300600, // 0066 CALL R12 3 - 0x7C280400, // 0067 CALL R10 2 - 0x5828001B, // 0068 LDCONST R10 K27 - 0x602C000C, // 0069 GETGBL R11 G12 - 0x5C301200, // 006A MOVE R12 R9 - 0x7C2C0200, // 006B CALL R11 1 - 0x142C140B, // 006C LT R11 R10 R11 - 0x782E0030, // 006D JMPF R11 #009F - 0x942C120A, // 006E GETIDX R11 R9 R10 - 0x8C30170B, // 006F GETMET R12 R11 K11 - 0x5838001C, // 0070 LDCONST R14 K28 - 0x583C0003, // 0071 LDCONST R15 K3 - 0x7C300600, // 0072 CALL R12 3 - 0x20341903, // 0073 NE R13 R12 K3 - 0x78360000, // 0074 JMPF R13 #0076 - 0x00323A0C, // 0075 ADD R12 K29 R12 - 0x8834011E, // 0076 GETMBR R13 R0 K30 - 0x88341B1F, // 0077 GETMBR R13 R13 K31 - 0x8C341B0B, // 0078 GETMET R13 R13 K11 - 0x5C3C1800, // 0079 MOVE R15 R12 - 0x7C340400, // 007A CALL R13 2 - 0x58380003, // 007B LDCONST R14 K3 - 0x4C3C0000, // 007C LDNIL R15 - 0x203C1A0F, // 007D NE R15 R13 R15 - 0x783E0004, // 007E JMPF R15 #0084 - 0x8C3C1B20, // 007F GETMET R15 R13 K32 - 0x5C441A00, // 0080 MOVE R17 R13 - 0x5C481600, // 0081 MOVE R18 R11 - 0x7C3C0600, // 0082 CALL R15 3 - 0x5C381E00, // 0083 MOVE R14 R15 - 0x8C3C0515, // 0084 GETMET R15 R2 K21 - 0x8C440711, // 0085 GETMET R17 R3 K17 - 0x584C0021, // 0086 LDCONST R19 K33 - 0x5C501400, // 0087 MOVE R20 R10 - 0x7C440600, // 0088 CALL R17 3 - 0x7C3C0400, // 0089 CALL R15 2 - 0x8C3C0122, // 008A GETMET R15 R0 K34 - 0x5C441800, // 008B MOVE R17 R12 - 0x88480123, // 008C GETMBR R18 R0 K35 - 0x7C3C0600, // 008D CALL R15 3 - 0x8C3C0515, // 008E GETMET R15 R2 K21 - 0x58440024, // 008F LDCONST R17 K36 - 0x7C3C0400, // 0090 CALL R15 2 - 0x8C3C0515, // 0091 GETMET R15 R2 K21 - 0x8C440711, // 0092 GETMET R17 R3 K17 - 0x584C0025, // 0093 LDCONST R19 K37 - 0x5C501400, // 0094 MOVE R20 R10 - 0x8C540518, // 0095 GETMET R21 R2 K24 - 0x5C5C1C00, // 0096 MOVE R23 R14 - 0x7C540400, // 0097 CALL R21 2 - 0x7C440800, // 0098 CALL R17 4 - 0x7C3C0400, // 0099 CALL R15 2 - 0x8C3C0515, // 009A GETMET R15 R2 K21 - 0x58440026, // 009B LDCONST R17 K38 - 0x7C3C0400, // 009C CALL R15 2 - 0x00281527, // 009D ADD R10 R10 K39 - 0x7001FFC9, // 009E JMP #0069 - 0x8C2C0515, // 009F GETMET R11 R2 K21 - 0x8C340711, // 00A0 GETMET R13 R3 K17 - 0x583C0021, // 00A1 LDCONST R15 K33 - 0x5C401400, // 00A2 MOVE R16 R10 - 0x7C340600, // 00A3 CALL R13 3 - 0x7C2C0400, // 00A4 CALL R11 2 - 0x8C2C0122, // 00A5 GETMET R11 R0 K34 - 0x58340003, // 00A6 LDCONST R13 K3 - 0x88380123, // 00A7 GETMBR R14 R0 K35 - 0x7C2C0600, // 00A8 CALL R11 3 - 0x8C2C0515, // 00A9 GETMET R11 R2 K21 - 0x58340024, // 00AA LDCONST R13 K36 - 0x7C2C0400, // 00AB CALL R11 2 - 0x8C2C0515, // 00AC GETMET R11 R2 K21 - 0x8C340711, // 00AD GETMET R13 R3 K17 - 0x583C0025, // 00AE LDCONST R15 K37 - 0x5C401400, // 00AF MOVE R16 R10 - 0x58440003, // 00B0 LDCONST R17 K3 - 0x7C340800, // 00B1 CALL R13 4 - 0x7C2C0400, // 00B2 CALL R11 2 - 0x8C2C0515, // 00B3 GETMET R11 R2 K21 - 0x58340026, // 00B4 LDCONST R13 K38 - 0x7C2C0400, // 00B5 CALL R11 2 - 0x8C2C0515, // 00B6 GETMET R11 R2 K21 - 0x58340028, // 00B7 LDCONST R13 K40 - 0x7C2C0400, // 00B8 CALL R11 2 - 0x8C2C0515, // 00B9 GETMET R11 R2 K21 - 0x58340029, // 00BA LDCONST R13 K41 - 0x7C2C0400, // 00BB CALL R11 2 - 0x8C2C0515, // 00BC GETMET R11 R2 K21 - 0x5834002A, // 00BD LDCONST R13 K42 - 0x7C2C0400, // 00BE CALL R11 2 - 0x8C2C0515, // 00BF GETMET R11 R2 K21 - 0x5834002B, // 00C0 LDCONST R13 K43 - 0x7C2C0400, // 00C1 CALL R11 2 - 0x70020007, // 00C2 JMP #00CB - 0x8C240515, // 00C3 GETMET R9 R2 K21 - 0x8C2C0711, // 00C4 GETMET R11 R3 K17 - 0x5834002C, // 00C5 LDCONST R13 K44 - 0x8C380518, // 00C6 GETMET R14 R2 K24 - 0x5C400200, // 00C7 MOVE R16 R1 - 0x7C380400, // 00C8 CALL R14 2 - 0x7C2C0600, // 00C9 CALL R11 3 - 0x7C240400, // 00CA CALL R9 2 - 0x80000000, // 00CB RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: page_part_mgr_add -********************************************************************/ -be_local_closure(Matter_UI_page_part_mgr_add, /* 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[13]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(check_privileged_access), - /* K3 */ be_nested_str_weak(content_start), - /* K4 */ be_nested_str_weak(Matter_X20Create_X20new_X20endpoint), - /* K5 */ be_nested_str_weak(content_send_style), - /* K6 */ be_nested_str_weak(arg), - /* K7 */ be_nested_str_weak(url), - /* K8 */ be_nested_str_weak(matter_enabled), - /* K9 */ be_nested_str_weak(show_remote_autoconf), - /* K10 */ be_nested_str_weak(content_button), - /* K11 */ be_nested_str_weak(BUTTON_CONFIGURATION), - /* K12 */ be_nested_str_weak(content_stop), - }), - be_str_weak(page_part_mgr_add), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x7C0C0200, // 0003 CALL R3 1 - 0x740E0001, // 0004 JMPT R3 #0007 - 0x4C0C0000, // 0005 LDNIL R3 - 0x80040600, // 0006 RET 1 R3 - 0x8C0C0303, // 0007 GETMET R3 R1 K3 - 0x58140004, // 0008 LDCONST R5 K4 - 0x7C0C0400, // 0009 CALL R3 2 - 0x8C0C0305, // 000A GETMET R3 R1 K5 - 0x7C0C0200, // 000B CALL R3 1 - 0x8C0C0306, // 000C GETMET R3 R1 K6 - 0x58140007, // 000D LDCONST R5 K7 - 0x7C0C0400, // 000E CALL R3 2 - 0x8C100108, // 000F GETMET R4 R0 K8 - 0x7C100200, // 0010 CALL R4 1 - 0x78120002, // 0011 JMPF R4 #0015 - 0x8C100109, // 0012 GETMET R4 R0 K9 - 0x5C180600, // 0013 MOVE R6 R3 - 0x7C100400, // 0014 CALL R4 2 - 0x8C10030A, // 0015 GETMET R4 R1 K10 - 0x8818030B, // 0016 GETMBR R6 R1 K11 - 0x7C100400, // 0017 CALL R4 2 - 0x8C10030C, // 0018 GETMET R4 R1 K12 - 0x7C100200, // 0019 CALL R4 1 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_add_handler -********************************************************************/ -be_local_closure(Matter_UI_web_add_handler, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 4]) { - 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(page_part_mgr), - }), - 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 - 0x80040000, // 0003 RET 1 R0 - }) - ), - 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(page_part_ctl), - }), - 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 - 0x80040000, // 0003 RET 1 R0 - }) - ), - 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(page_part_mgr_adv), - }), - 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 - 0x80040000, // 0003 RET 1 R0 - }) - ), - 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(page_part_mgr_add), - }), - 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 - 0x80040000, // 0003 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(on), - /* K2 */ be_nested_str_weak(_X2Fmatterc), - /* K3 */ be_nested_str_weak(HTTP_GET), - /* K4 */ be_nested_str_weak(HTTP_POST), - /* K5 */ be_nested_str_weak(_X2Fmattera), - /* K6 */ be_nested_str_weak(_X2Fmatteradd), - }), - be_str_weak(web_add_handler), - &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x88180303, // 0004 GETMBR R6 R1 K3 - 0x7C080800, // 0005 CALL R2 4 - 0x8C080301, // 0006 GETMET R2 R1 K1 - 0x58100002, // 0007 LDCONST R4 K2 - 0x84140001, // 0008 CLOSURE R5 P1 - 0x88180304, // 0009 GETMBR R6 R1 K4 - 0x7C080800, // 000A CALL R2 4 - 0x8C080301, // 000B GETMET R2 R1 K1 - 0x58100005, // 000C LDCONST R4 K5 - 0x84140002, // 000D CLOSURE R5 P2 - 0x88180303, // 000E GETMBR R6 R1 K3 - 0x7C080800, // 000F CALL R2 4 - 0x8C080301, // 0010 GETMET R2 R1 K1 - 0x58100006, // 0011 LDCONST R4 K6 - 0x84140003, // 0012 CLOSURE R5 P3 - 0x88180303, // 0013 GETMBR R6 R1 K3 - 0x7C080800, // 0014 CALL R2 4 - 0xA0000000, // 0015 CLOSE R0 - 0x80000000, // 0016 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: generate_config_from_status -********************************************************************/ -be_local_closure(Matter_UI_generate_config_from_status, /* name */ - be_nested_proto( - 13, /* 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_const_int(0), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(POWER), - /* K3 */ be_const_int(1), - /* K4 */ be_nested_str_weak(HSBColor), - /* K5 */ be_nested_str_weak(CT), - /* K6 */ be_nested_str_weak(Dimmer), - /* K7 */ be_nested_str_weak(push), - /* K8 */ be_nested_str_weak(type), - /* K9 */ be_nested_str_weak(light0), - /* K10 */ be_nested_str_weak(relay), - /* K11 */ be_nested_str_weak(stop_iteration), - /* K12 */ be_nested_str_weak(light1), - /* K13 */ be_nested_str_weak(light2), - /* K14 */ be_nested_str_weak(light3), - /* K15 */ be_nested_str_weak(device), - /* K16 */ be_nested_str_weak(autoconf_sensors_list), - }), - be_str_weak(generate_config_from_status), - &be_const_str_solidified, - ( &(const binstruction[96]) { /* code */ - 0x600C0012, // 0000 GETGBL R3 G18 - 0x7C0C0000, // 0001 CALL R3 0 - 0x58100000, // 0002 LDCONST R4 K0 - 0x8C140501, // 0003 GETMET R5 R2 K1 - 0x581C0002, // 0004 LDCONST R7 K2 - 0x7C140400, // 0005 CALL R5 2 - 0x78160001, // 0006 JMPF R5 #0009 - 0x58100003, // 0007 LDCONST R4 K3 - 0x7002000E, // 0008 JMP #0018 - 0x58140003, // 0009 LDCONST R5 K3 - 0x50180200, // 000A LDBOOL R6 1 0 - 0x781A000B, // 000B JMPF R6 #0018 - 0x8C180501, // 000C GETMET R6 R2 K1 - 0x60200008, // 000D GETGBL R8 G8 - 0x5C240A00, // 000E MOVE R9 R5 - 0x7C200200, // 000F CALL R8 1 - 0x00220408, // 0010 ADD R8 K2 R8 - 0x7C180400, // 0011 CALL R6 2 - 0x781A0002, // 0012 JMPF R6 #0016 - 0x5C100A00, // 0013 MOVE R4 R5 - 0x00140B03, // 0014 ADD R5 R5 K3 - 0x70020000, // 0015 JMP #0017 - 0x70020000, // 0016 JMP #0018 - 0x7001FFF1, // 0017 JMP #000A - 0x4C140000, // 0018 LDNIL R5 - 0x4C180000, // 0019 LDNIL R6 - 0x4C1C0000, // 001A LDNIL R7 - 0x8C200501, // 001B GETMET R8 R2 K1 - 0x58280004, // 001C LDCONST R10 K4 - 0x7C200400, // 001D CALL R8 2 - 0x78220002, // 001E JMPF R8 #0022 - 0x5C1C0800, // 001F MOVE R7 R4 - 0x04100903, // 0020 SUB R4 R4 K3 - 0x7002000C, // 0021 JMP #002F - 0x8C200501, // 0022 GETMET R8 R2 K1 - 0x58280005, // 0023 LDCONST R10 K5 - 0x7C200400, // 0024 CALL R8 2 - 0x78220002, // 0025 JMPF R8 #0029 - 0x5C180800, // 0026 MOVE R6 R4 - 0x04100903, // 0027 SUB R4 R4 K3 - 0x70020005, // 0028 JMP #002F - 0x8C200501, // 0029 GETMET R8 R2 K1 - 0x58280006, // 002A LDCONST R10 K6 - 0x7C200400, // 002B CALL R8 2 - 0x78220001, // 002C JMPF R8 #002F - 0x5C140800, // 002D MOVE R5 R4 - 0x04100903, // 002E SUB R4 R4 K3 - 0x60200010, // 002F GETGBL R8 G16 - 0x40260604, // 0030 CONNECT R9 K3 R4 - 0x7C200200, // 0031 CALL R8 1 - 0xA8020008, // 0032 EXBLK 0 #003C - 0x5C241000, // 0033 MOVE R9 R8 - 0x7C240000, // 0034 CALL R9 0 - 0x8C280707, // 0035 GETMET R10 R3 K7 - 0x60300013, // 0036 GETGBL R12 G19 - 0x7C300000, // 0037 CALL R12 0 - 0x98321109, // 0038 SETIDX R12 K8 K9 - 0x98321409, // 0039 SETIDX R12 K10 R9 - 0x7C280400, // 003A CALL R10 2 - 0x7001FFF6, // 003B JMP #0033 - 0x5820000B, // 003C LDCONST R8 K11 - 0xAC200200, // 003D CATCH R8 1 0 - 0xB0080000, // 003E RAISE 2 R0 R0 - 0x4C200000, // 003F LDNIL R8 - 0x20200A08, // 0040 NE R8 R5 R8 - 0x78220005, // 0041 JMPF R8 #0048 - 0x8C200707, // 0042 GETMET R8 R3 K7 - 0x60280013, // 0043 GETGBL R10 G19 - 0x7C280000, // 0044 CALL R10 0 - 0x982A110C, // 0045 SETIDX R10 K8 K12 - 0x982A1405, // 0046 SETIDX R10 K10 R5 - 0x7C200400, // 0047 CALL R8 2 - 0x4C200000, // 0048 LDNIL R8 - 0x20200C08, // 0049 NE R8 R6 R8 - 0x78220005, // 004A JMPF R8 #0051 - 0x8C200707, // 004B GETMET R8 R3 K7 - 0x60280013, // 004C GETGBL R10 G19 - 0x7C280000, // 004D CALL R10 0 - 0x982A110D, // 004E SETIDX R10 K8 K13 - 0x982A1406, // 004F SETIDX R10 K10 R6 - 0x7C200400, // 0050 CALL R8 2 - 0x4C200000, // 0051 LDNIL R8 - 0x20200E08, // 0052 NE R8 R7 R8 - 0x78220005, // 0053 JMPF R8 #005A - 0x8C200707, // 0054 GETMET R8 R3 K7 - 0x60280013, // 0055 GETGBL R10 G19 - 0x7C280000, // 0056 CALL R10 0 - 0x982A110E, // 0057 SETIDX R10 K8 K14 - 0x982A1407, // 0058 SETIDX R10 K10 R7 - 0x7C200400, // 0059 CALL R8 2 - 0x8820010F, // 005A GETMBR R8 R0 K15 - 0x8C201110, // 005B GETMET R8 R8 K16 - 0x5C280200, // 005C MOVE R10 R1 - 0x7C200400, // 005D CALL R8 2 - 0x000C0608, // 005E ADD R3 R3 R8 - 0x80040600, // 005F RET 1 R3 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: show_enable ********************************************************************/ @@ -2075,7 +3013,7 @@ be_local_closure(Matter_UI_show_enable, /* name */ /* K1 */ be_nested_str_weak(string), /* K2 */ be_nested_str_weak(matter_enabled), /* K3 */ be_nested_str_weak(content_send), - /* K4 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3Cp_X20style_X3D_X27width_X3A320px_X3B_X27_X3ECheck_X20the_X20_X3Ca_X20href_X3D_X27https_X3A_X2F_X2Ftasmota_X2Egithub_X2Eio_X2Fdocs_X2FMatter_X2F_X27_X20target_X3D_X27_blank_X27_X3EMatter_X20documentation_X3C_X2Fa_X3E_X2E_X3C_X2Fp_X3E_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E), + /* K4 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X20style_X3D_X27width_X3A320px_X3B_X27_X3ECheck_X20the_X20_X3Ca_X20href_X3D_X27https_X3A_X2F_X2Ftasmota_X2Egithub_X2Eio_X2Fdocs_X2FMatter_X2F_X27_X20target_X3D_X27_blank_X27_X3EMatter_X20documentation_X3C_X2Fa_X3E_X2E_X3C_X2Fp_X3E_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E), /* K5 */ be_nested_str_weak(format), /* K6 */ be_nested_str_weak(_X3Cp_X3E_X3Cinput_X20id_X3D_X27menable_X27_X20type_X3D_X27checkbox_X27_X20name_X3D_X27menable_X27_X20_X25s_X3E), /* K7 */ be_nested_str_weak(checked), @@ -2085,7 +3023,7 @@ be_local_closure(Matter_UI_show_enable, /* name */ /* K11 */ be_nested_str_weak(device), /* K12 */ be_nested_str_weak(commissioning_open), /* K13 */ be_nested_str_weak(_X3Clabel_X20for_X3D_X27comm_X27_X3E_X3Cb_X3ECommissioning_X20open_X3C_X2Fb_X3E_X3C_X2Flabel_X3E_X3C_X2Fp_X3E), - /* K14 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27save_X27_X20class_X3D_X27button_X20bgrn_X27_X3ESave_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K14 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27save_X27_X20class_X3D_X27button_X20bgrn_X27_X3ESave_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), }), be_str_weak(show_enable), &be_const_str_solidified, @@ -2140,958 +3078,120 @@ be_local_closure(Matter_UI_show_enable, /* name */ /******************************************************************** -** Solidified function: show_commissioning_info +** Solidified function: show_plugins_hints_js ********************************************************************/ -be_local_closure(Matter_UI_show_commissioning_info, /* name */ +be_local_closure(Matter_UI_show_plugins_hints_js, /* name */ be_nested_proto( - 14, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(device), - /* K3 */ be_nested_str_weak(commissioning_open), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(millis), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(content_send), - /* K8 */ be_nested_str_weak(format), - /* K9 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCommissioning_X20open_X20for_X20_X25i_X20min_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K10 */ be_nested_str_weak(compute_manual_pairing_code), - /* K11 */ be_nested_str_weak(_X3Cp_X3EManual_X20pairing_X20code_X3A_X3Cbr_X3E_X3Cb_X3E_X25s_X2D_X25s_X2D_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Chr_X3E), - /* K12 */ be_const_int(3), - /* K13 */ be_const_int(2147483647), - /* K14 */ be_nested_str_weak(_X3Cdiv_X3E_X3Ccenter_X3E), - /* K15 */ be_nested_str_weak(compute_qrcode_content), - /* K16 */ be_nested_str_weak(show_qrcode), - /* K17 */ be_nested_str_weak(_X3Cp_X3E_X20_X25s_X3C_X2Fp_X3E), - /* K18 */ be_nested_str_weak(_X3C_X2Fdiv_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - }), - be_str_weak(show_commissioning_info), - &be_const_str_solidified, - ( &(const binstruction[59]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x880C0102, // 0002 GETMBR R3 R0 K2 - 0x880C0703, // 0003 GETMBR R3 R3 K3 - 0xB8120800, // 0004 GETNGBL R4 K4 - 0x8C100905, // 0005 GETMET R4 R4 K5 - 0x7C100200, // 0006 CALL R4 1 - 0x040C0604, // 0007 SUB R3 R3 R4 - 0x541203E7, // 0008 LDINT R4 1000 - 0x0C0C0604, // 0009 DIV R3 R3 R4 - 0x14100706, // 000A LT R4 R3 K6 - 0x78120000, // 000B JMPF R4 #000D - 0x580C0006, // 000C LDCONST R3 K6 - 0x5412001D, // 000D LDINT R4 30 - 0x00100604, // 000E ADD R4 R3 R4 - 0x5416003B, // 000F LDINT R5 60 - 0x0C100805, // 0010 DIV R4 R4 R5 - 0x8C140307, // 0011 GETMET R5 R1 K7 - 0x8C1C0508, // 0012 GETMET R7 R2 K8 - 0x58240009, // 0013 LDCONST R9 K9 - 0x5C280800, // 0014 MOVE R10 R4 - 0x7C1C0600, // 0015 CALL R7 3 - 0x7C140400, // 0016 CALL R5 2 - 0x88140102, // 0017 GETMBR R5 R0 K2 - 0x8C140B0A, // 0018 GETMET R5 R5 K10 - 0x7C140200, // 0019 CALL R5 1 - 0x8C180307, // 001A GETMET R6 R1 K7 - 0x8C200508, // 001B GETMET R8 R2 K8 - 0x5828000B, // 001C LDCONST R10 K11 - 0x402E0D0C, // 001D CONNECT R11 K6 K12 - 0x942C0A0B, // 001E GETIDX R11 R5 R11 - 0x54320003, // 001F LDINT R12 4 - 0x54360005, // 0020 LDINT R13 6 - 0x4030180D, // 0021 CONNECT R12 R12 R13 - 0x94300A0C, // 0022 GETIDX R12 R5 R12 - 0x54360006, // 0023 LDINT R13 7 - 0x40341B0D, // 0024 CONNECT R13 R13 K13 - 0x94340A0D, // 0025 GETIDX R13 R5 R13 - 0x7C200A00, // 0026 CALL R8 5 - 0x7C180400, // 0027 CALL R6 2 - 0x8C180307, // 0028 GETMET R6 R1 K7 - 0x5820000E, // 0029 LDCONST R8 K14 - 0x7C180400, // 002A CALL R6 2 - 0x88180102, // 002B GETMBR R6 R0 K2 - 0x8C180D0F, // 002C GETMET R6 R6 K15 - 0x7C180200, // 002D CALL R6 1 - 0x8C1C0110, // 002E GETMET R7 R0 K16 - 0x5C240C00, // 002F MOVE R9 R6 - 0x7C1C0400, // 0030 CALL R7 2 - 0x8C1C0307, // 0031 GETMET R7 R1 K7 - 0x8C240508, // 0032 GETMET R9 R2 K8 - 0x582C0011, // 0033 LDCONST R11 K17 - 0x5C300C00, // 0034 MOVE R12 R6 - 0x7C240600, // 0035 CALL R9 3 - 0x7C1C0400, // 0036 CALL R7 2 - 0x8C1C0307, // 0037 GETMET R7 R1 K7 - 0x58240012, // 0038 LDCONST R9 K18 - 0x7C1C0400, // 0039 CALL R7 2 - 0x80000000, // 003A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: plugin_name -********************************************************************/ -be_local_closure(Matter_UI_plugin_name, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ + 17, /* nstack */ + 2, /* argc */ 3, /* 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(), - /* K1 */ be_nested_str_weak(device), - /* K2 */ be_nested_str_weak(get_plugin_class_displayname), - }), - be_str_weak(plugin_name), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x1C0C0300, // 0000 EQ R3 R1 K0 - 0x780E0000, // 0001 JMPF R3 #0003 - 0x80060000, // 0002 RET 1 K0 - 0x880C0101, // 0003 GETMBR R3 R0 K1 - 0x8C0C0702, // 0004 GETMET R3 R3 K2 - 0x5C140200, // 0005 MOVE R5 R1 - 0x7C0C0400, // 0006 CALL R3 2 - 0x80040600, // 0007 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: matter_enabled -********************************************************************/ -be_local_closure(Matter_UI_matter_enabled, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(get_option), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(MATTER_OPTION), - }), - be_str_weak(matter_enabled), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x60040017, // 0000 GETGBL R1 G23 - 0xB80A0000, // 0001 GETNGBL R2 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0xB8120400, // 0003 GETNGBL R4 K2 - 0x88100903, // 0004 GETMBR R4 R4 K3 - 0x7C080400, // 0005 CALL R2 2 - 0x7C040200, // 0006 CALL R1 1 - 0x80040200, // 0007 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show_plugins_configuration -********************************************************************/ -be_local_closure(Matter_UI_show_plugins_configuration, /* name */ - be_nested_proto( - 26, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[59]) { /* constants */ + ( &(const bvalue[18]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(introspect), - /* K3 */ be_nested_str_weak(content_send), - /* K4 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCurrent_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K5 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3Cp_X3E_X3Cb_X3ELocal_X20sensors_X20and_X20devices_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E_X3Ctr_X3E_X3Ctd_X20width_X3D_X2725_X27_X3E_X23_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X27115_X27_X3EType_X3C_X2Ftd_X3E_X3Ctd_X3EParameter_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X2715_X27_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K6 */ be_nested_str_weak(device), - /* K7 */ be_nested_str_weak(plugins_config), - /* K8 */ be_nested_str_weak(remove), - /* K9 */ be_nested_str_weak(0), - /* K10 */ be_nested_str_weak(k2l_num), - /* K11 */ be_const_int(0), - /* K12 */ be_nested_str_weak(find), - /* K13 */ be_nested_str_weak(type), - /* K14 */ be_const_int(1), - /* K15 */ be_nested_str_weak(http_), - /* K16 */ be_nested_str_weak(plugins_classes), - /* K17 */ be_nested_str_weak(), - /* K18 */ be_nested_str_weak(ui_conf_to_string), - /* K19 */ be_nested_str_weak(format), - /* K20 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cb_X3E_X25i_X3C_X2Fb_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), - /* K21 */ be_nested_str_weak(_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), - /* K22 */ be_nested_str_weak(plugin_name), - /* K23 */ be_nested_str_weak(_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X25i_X27_X20minlength_X3D_X270_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), - /* K24 */ be_nested_str_weak(html_escape), - /* K25 */ be_nested_str_weak(_X3Ctd_X20style_X3D_X27text_X2Dalign_X3Acenter_X3B_X27_X3E_X3Cbutton_X20name_X3D_X27del_X25i_X27_X20style_X3D_X27background_X3Anone_X3Bborder_X3Anone_X3Bline_X2Dheight_X3A1_X3B_X27_X20onclick_X3D_X22return_X20confirm_X28_X27Confirm_X20removing_X20endpoint_X27_X29_X22_X3E_X26_X23128293_X3B_X3C_X2Fbutton_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K26 */ be_nested_str_weak(_X3C_X2Ftable_X3E), - /* K27 */ be_nested_str_weak(_X3Cp_X3E_X26lt_X3Bnone_X26gt_X3B_X3C_X2Fp_X3E), - /* K28 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E), - /* K29 */ be_nested_str_weak(url), - /* K30 */ be_nested_str_weak(push), - /* K31 */ be_nested_str_weak(stop_iteration), - /* K32 */ be_nested_str_weak(sort_distinct), - /* K33 */ be_nested_str_weak(tasmota), - /* K34 */ be_nested_str_weak(log), - /* K35 */ be_nested_str_weak(MTR_X3A_X20remotes_X3A_X20), - /* K36 */ be_const_int(3), - /* K37 */ be_nested_str_weak(_X26_X23x1F517_X3B_X20_X3Ca_X20target_X3D_X27_blank_X27_X20href_X3D_X22http_X3A_X2F_X2F_X25s_X2F_X22_X3E_X25s_X3C_X2Fa_X3E), - /* K38 */ be_nested_str_weak(_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E), - /* K39 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2725_X27_X3E_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X27115_X27_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X2715_X27_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K40 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2722_X27_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cb_X3E_X25i_X3C_X2Fb_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), - /* K41 */ be_nested_str_weak(_X3Ctd_X20width_X3D_X27115_X27_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cb_X3E_X25s_X3C_X2Fb_X3E_X3C_X2Fselect_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), - /* K42 */ be_nested_str_weak(_X3Ctd_X20width_X3D_X2715_X27_X20style_X3D_X27text_X2Dalign_X3Acenter_X3B_X27_X3E_X3Cbutton_X20name_X3D_X27del_X25i_X27_X20style_X3D_X27background_X3Anone_X3Bborder_X3Anone_X3Bline_X2Dheight_X3A1_X3B_X27_X20onclick_X3D_X22return_X20confirm_X28_X27Confirm_X20removing_X20endpoint_X27_X29_X22_X3E_X26_X23128293_X3B_X3C_X2Fbutton_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K43 */ be_nested_str_weak(_X3C_X2Ftable_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K44 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27config_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X20configuration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E), - /* K45 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BAdd_X20to_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K46 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3EAdd_X20local_X20sensor_X20or_X20device_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E_X3Ctr_X3E_X3Ctd_X20width_X3D_X27145_X27_X3EType_X3C_X2Ftd_X3E_X3Ctd_X3EParameter_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), - /* K47 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cselect_X20name_X3D_X27pi_X27_X3E), - /* K48 */ be_nested_str_weak(plugin_option), - /* K49 */ be_nested_str_weak(_CLASSES_TYPES), - /* K50 */ be_nested_str_weak(_X3C_X2Fselect_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), - /* K51 */ be_nested_str_weak(_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X27_X20minlength_X3D_X270_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X27_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E_X3C_X2Ftable_X3E), - /* K52 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27display_X3A_X20block_X3B_X27_X3E_X3C_X2Fdiv_X3E), - /* K53 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27addep_X27_X20class_X3D_X27button_X20bgrn_X27_X3ECreate_X20new_X20endpoint_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), - /* K54 */ be_nested_str_weak(_X3Chr_X3E_X3Cp_X3E_X3Cb_X3EAdd_X20Remote_X20Tasmota_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Cform_X20action_X3D_X27_X2Fmatteradd_X27_X20method_X3D_X27get_X27_X3E_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E), - /* K55 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2730_X27_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cb_X3Ehttp_X3A_X2F_X2F_X3C_X2Fb_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27url_X27_X20minlength_X3D_X270_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X27_X20required_X20placeholder_X3D_X27IP_X20or_X20domain_X27_X3E_X3C_X2Ftd_X3E_X3Ctd_X20width_X3D_X2710_X27_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cb_X3E_X2F_X3C_X2Fb_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E_X3C_X2Ftr_X3E_X3C_X2Ftable_X3E), - /* K56 */ be_nested_str_weak(_X3Cbutton_X20class_X3D_X27button_X20bgrn_X27_X3EAuto_X2Dconfigure_X20remote_X20Tasmota_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3Chr_X3E), - /* K57 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20RESET_X20the_X20configuration_X20to_X20the_X20default_X2E_X20You_X20will_X20need_X20to_X20associate_X20again_X2E_X22_X29_X3B_X27_X3E_X3Cbutton_X20name_X3D_X27auto_X27_X20class_X3D_X27button_X20bred_X27_X3EReset_X20all_X20and_X20Auto_X2Ddiscover_X3C_X2Fbutton_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Fform_X3E), - /* K58 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E), + /* K2 */ be_nested_str_weak(json), + /* K3 */ be_nested_str_weak(split), + /* K4 */ be_nested_str_weak(_X7C), + /* K5 */ be_nested_str_weak(stop_iteration), + /* K6 */ be_nested_str_weak(), + /* K7 */ be_nested_str_weak(device), + /* K8 */ be_nested_str_weak(plugins_classes), + /* K9 */ be_nested_str_weak(find), + /* K10 */ be_nested_str_weak(ARG_HINT), + /* K11 */ be_nested_str_weak(push), + /* K12 */ be_nested_str_weak(content_send), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(_X3Cscript_X20type_X3D_X27text_X2Fjavascript_X27_X3Evar_X20hm_X3D_X25s_X3Bvar_X20hl_X3D_X25s_X3B_X3C_X2Fscript_X3E), + /* K15 */ be_nested_str_weak(dump), + /* K16 */ be_nested_str_weak(matter), + /* K17 */ be_nested_str_weak(_ADD_ENDPOINT_JS), }), - be_str_weak(show_plugins_configuration), + be_str_weak(show_plugins_hints_js), &be_const_str_solidified, - ( &(const binstruction[311]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA40E0400, // 0002 IMPORT R3 K2 - 0x8C100303, // 0003 GETMET R4 R1 K3 - 0x58180004, // 0004 LDCONST R6 K4 - 0x7C100400, // 0005 CALL R4 2 - 0x8C100303, // 0006 GETMET R4 R1 K3 - 0x58180005, // 0007 LDCONST R6 K5 - 0x7C100400, // 0008 CALL R4 2 - 0x88100106, // 0009 GETMBR R4 R0 K6 - 0x88100907, // 000A GETMBR R4 R4 K7 - 0x8C100908, // 000B GETMET R4 R4 K8 - 0x58180009, // 000C LDCONST R6 K9 - 0x7C100400, // 000D CALL R4 2 - 0x88100106, // 000E GETMBR R4 R0 K6 - 0x8C10090A, // 000F GETMET R4 R4 K10 - 0x88180106, // 0010 GETMBR R6 R0 K6 - 0x88180D07, // 0011 GETMBR R6 R6 K7 - 0x7C100400, // 0012 CALL R4 2 - 0x5814000B, // 0013 LDCONST R5 K11 - 0x50180000, // 0014 LDBOOL R6 0 0 - 0x601C000C, // 0015 GETGBL R7 G12 - 0x5C200800, // 0016 MOVE R8 R4 - 0x7C1C0200, // 0017 CALL R7 1 - 0x141C0A07, // 0018 LT R7 R5 R7 - 0x781E0047, // 0019 JMPF R7 #0062 - 0x941C0805, // 001A GETIDX R7 R4 R5 - 0x88200106, // 001B GETMBR R8 R0 K6 - 0x88201107, // 001C GETMBR R8 R8 K7 - 0x8C20110C, // 001D GETMET R8 R8 K12 - 0x60280008, // 001E GETGBL R10 G8 - 0x5C2C0E00, // 001F MOVE R11 R7 - 0x7C280200, // 0020 CALL R10 1 - 0x7C200400, // 0021 CALL R8 2 - 0x8C24110C, // 0022 GETMET R9 R8 K12 - 0x582C000D, // 0023 LDCONST R11 K13 - 0x7C240400, // 0024 CALL R9 2 - 0x5C281200, // 0025 MOVE R10 R9 - 0x742A0001, // 0026 JMPT R10 #0029 - 0x00140B0E, // 0027 ADD R5 R5 K14 - 0x7001FFEB, // 0028 JMP #0015 - 0x8C28050C, // 0029 GETMET R10 R2 K12 - 0x5C301200, // 002A MOVE R12 R9 - 0x5834000F, // 002B LDCONST R13 K15 - 0x7C280600, // 002C CALL R10 3 - 0x1C28150B, // 002D EQ R10 R10 K11 - 0x782A0001, // 002E JMPF R10 #0031 - 0x00140B0E, // 002F ADD R5 R5 K14 - 0x7001FFE3, // 0030 JMP #0015 - 0x88280106, // 0031 GETMBR R10 R0 K6 - 0x88281510, // 0032 GETMBR R10 R10 K16 - 0x8C28150C, // 0033 GETMET R10 R10 K12 - 0x5C301200, // 0034 MOVE R12 R9 - 0x7C280400, // 0035 CALL R10 2 - 0x582C0011, // 0036 LDCONST R11 K17 - 0x4C300000, // 0037 LDNIL R12 - 0x2030140C, // 0038 NE R12 R10 R12 - 0x78320004, // 0039 JMPF R12 #003F - 0x8C301512, // 003A GETMET R12 R10 K18 - 0x5C381400, // 003B MOVE R14 R10 - 0x5C3C1000, // 003C MOVE R15 R8 - 0x7C300600, // 003D CALL R12 3 - 0x5C2C1800, // 003E MOVE R11 R12 - 0x50180200, // 003F LDBOOL R6 1 0 - 0x8C300303, // 0040 GETMET R12 R1 K3 - 0x8C380513, // 0041 GETMET R14 R2 K19 - 0x58400014, // 0042 LDCONST R16 K20 - 0x5C440E00, // 0043 MOVE R17 R7 - 0x7C380600, // 0044 CALL R14 3 - 0x7C300400, // 0045 CALL R12 2 - 0x8C300303, // 0046 GETMET R12 R1 K3 - 0x8C380513, // 0047 GETMET R14 R2 K19 - 0x58400015, // 0048 LDCONST R16 K21 - 0x8C440116, // 0049 GETMET R17 R0 K22 - 0x8C4C110C, // 004A GETMET R19 R8 K12 - 0x5854000D, // 004B LDCONST R21 K13 - 0x58580011, // 004C LDCONST R22 K17 - 0x7C4C0600, // 004D CALL R19 3 - 0x7C440400, // 004E CALL R17 2 - 0x7C380600, // 004F CALL R14 3 - 0x7C300400, // 0050 CALL R12 2 - 0x8C300303, // 0051 GETMET R12 R1 K3 - 0x8C380513, // 0052 GETMET R14 R2 K19 - 0x58400017, // 0053 LDCONST R16 K23 - 0x5C440E00, // 0054 MOVE R17 R7 - 0x8C480318, // 0055 GETMET R18 R1 K24 - 0x5C501600, // 0056 MOVE R20 R11 - 0x7C480400, // 0057 CALL R18 2 - 0x7C380800, // 0058 CALL R14 4 - 0x7C300400, // 0059 CALL R12 2 - 0x8C300303, // 005A GETMET R12 R1 K3 - 0x8C380513, // 005B GETMET R14 R2 K19 - 0x58400019, // 005C LDCONST R16 K25 - 0x5C440E00, // 005D MOVE R17 R7 - 0x7C380600, // 005E CALL R14 3 - 0x7C300400, // 005F CALL R12 2 - 0x00140B0E, // 0060 ADD R5 R5 K14 - 0x7001FFB2, // 0061 JMP #0015 - 0x8C1C0303, // 0062 GETMET R7 R1 K3 - 0x5824001A, // 0063 LDCONST R9 K26 - 0x7C1C0400, // 0064 CALL R7 2 - 0x5C1C0C00, // 0065 MOVE R7 R6 - 0x741E0002, // 0066 JMPT R7 #006A - 0x8C1C0303, // 0067 GETMET R7 R1 K3 - 0x5824001B, // 0068 LDCONST R9 K27 - 0x7C1C0400, // 0069 CALL R7 2 - 0x8C1C0303, // 006A GETMET R7 R1 K3 - 0x5824001C, // 006B LDCONST R9 K28 - 0x7C1C0400, // 006C CALL R7 2 - 0x601C0012, // 006D GETGBL R7 G18 - 0x7C1C0000, // 006E CALL R7 0 - 0x60200010, // 006F GETGBL R8 G16 - 0x88240106, // 0070 GETMBR R9 R0 K6 - 0x88241307, // 0071 GETMBR R9 R9 K7 - 0x7C200200, // 0072 CALL R8 1 - 0xA802000B, // 0073 EXBLK 0 #0080 - 0x5C241000, // 0074 MOVE R9 R8 - 0x7C240000, // 0075 CALL R9 0 - 0x8C28130C, // 0076 GETMET R10 R9 K12 - 0x5830001D, // 0077 LDCONST R12 K29 - 0x7C280400, // 0078 CALL R10 2 - 0x4C2C0000, // 0079 LDNIL R11 - 0x202C140B, // 007A NE R11 R10 R11 - 0x782E0002, // 007B JMPF R11 #007F - 0x8C2C0F1E, // 007C GETMET R11 R7 K30 - 0x5C341400, // 007D MOVE R13 R10 - 0x7C2C0400, // 007E CALL R11 2 - 0x7001FFF3, // 007F JMP #0074 - 0x5820001F, // 0080 LDCONST R8 K31 - 0xAC200200, // 0081 CATCH R8 1 0 - 0xB0080000, // 0082 RAISE 2 R0 R0 - 0x88200106, // 0083 GETMBR R8 R0 K6 - 0x8C201120, // 0084 GETMET R8 R8 K32 - 0x5C280E00, // 0085 MOVE R10 R7 - 0x7C200400, // 0086 CALL R8 2 - 0xB8224200, // 0087 GETNGBL R8 K33 - 0x8C201122, // 0088 GETMET R8 R8 K34 - 0x60280008, // 0089 GETGBL R10 G8 - 0x5C2C0E00, // 008A MOVE R11 R7 - 0x7C280200, // 008B CALL R10 1 - 0x002A460A, // 008C ADD R10 K35 R10 - 0x582C0024, // 008D LDCONST R11 K36 - 0x7C200600, // 008E CALL R8 3 - 0x60200010, // 008F GETGBL R8 G16 - 0x5C240E00, // 0090 MOVE R9 R7 - 0x7C200200, // 0091 CALL R8 1 - 0xA802006C, // 0092 EXBLK 0 #0100 - 0x5C241000, // 0093 MOVE R9 R8 - 0x7C240000, // 0094 CALL R9 0 - 0x8C280303, // 0095 GETMET R10 R1 K3 - 0x8C300513, // 0096 GETMET R12 R2 K19 - 0x58380025, // 0097 LDCONST R14 K37 - 0x8C3C0318, // 0098 GETMET R15 R1 K24 - 0x5C441200, // 0099 MOVE R17 R9 - 0x7C3C0400, // 009A CALL R15 2 - 0x8C400318, // 009B GETMET R16 R1 K24 - 0x5C481200, // 009C MOVE R18 R9 - 0x7C400400, // 009D CALL R16 2 - 0x7C300800, // 009E CALL R12 4 - 0x7C280400, // 009F CALL R10 2 - 0x8C280303, // 00A0 GETMET R10 R1 K3 - 0x58300026, // 00A1 LDCONST R12 K38 - 0x7C280400, // 00A2 CALL R10 2 - 0x8C280303, // 00A3 GETMET R10 R1 K3 - 0x58300027, // 00A4 LDCONST R12 K39 - 0x7C280400, // 00A5 CALL R10 2 - 0x50180000, // 00A6 LDBOOL R6 0 0 - 0x5814000B, // 00A7 LDCONST R5 K11 - 0x6028000C, // 00A8 GETGBL R10 G12 - 0x5C2C0800, // 00A9 MOVE R11 R4 - 0x7C280200, // 00AA CALL R10 1 - 0x14280A0A, // 00AB LT R10 R5 R10 - 0x782A004E, // 00AC JMPF R10 #00FC - 0x94280805, // 00AD GETIDX R10 R4 R5 - 0x882C0106, // 00AE GETMBR R11 R0 K6 - 0x882C1707, // 00AF GETMBR R11 R11 K7 - 0x8C2C170C, // 00B0 GETMET R11 R11 K12 - 0x60340008, // 00B1 GETGBL R13 G8 - 0x5C381400, // 00B2 MOVE R14 R10 - 0x7C340200, // 00B3 CALL R13 1 - 0x7C2C0400, // 00B4 CALL R11 2 - 0x8C30170C, // 00B5 GETMET R12 R11 K12 - 0x5838000D, // 00B6 LDCONST R14 K13 - 0x7C300400, // 00B7 CALL R12 2 - 0x5C341800, // 00B8 MOVE R13 R12 - 0x74360001, // 00B9 JMPT R13 #00BC - 0x00140B0E, // 00BA ADD R5 R5 K14 - 0x7001FFEB, // 00BB JMP #00A8 - 0x8C34050C, // 00BC GETMET R13 R2 K12 - 0x5C3C1800, // 00BD MOVE R15 R12 - 0x5840000F, // 00BE LDCONST R16 K15 - 0x7C340600, // 00BF CALL R13 3 - 0x20341B0B, // 00C0 NE R13 R13 K11 - 0x78360001, // 00C1 JMPF R13 #00C4 - 0x00140B0E, // 00C2 ADD R5 R5 K14 - 0x7001FFE3, // 00C3 JMP #00A8 - 0x8C34170C, // 00C4 GETMET R13 R11 K12 - 0x583C001D, // 00C5 LDCONST R15 K29 - 0x7C340400, // 00C6 CALL R13 2 - 0x20341A09, // 00C7 NE R13 R13 R9 - 0x78360001, // 00C8 JMPF R13 #00CB - 0x00140B0E, // 00C9 ADD R5 R5 K14 - 0x7001FFDC, // 00CA JMP #00A8 - 0x88340106, // 00CB GETMBR R13 R0 K6 - 0x88341B10, // 00CC GETMBR R13 R13 K16 - 0x8C341B0C, // 00CD GETMET R13 R13 K12 - 0x5C3C1800, // 00CE MOVE R15 R12 - 0x7C340400, // 00CF CALL R13 2 - 0x58380011, // 00D0 LDCONST R14 K17 - 0x4C3C0000, // 00D1 LDNIL R15 - 0x203C1A0F, // 00D2 NE R15 R13 R15 - 0x783E0004, // 00D3 JMPF R15 #00D9 - 0x8C3C1B12, // 00D4 GETMET R15 R13 K18 - 0x5C441A00, // 00D5 MOVE R17 R13 - 0x5C481600, // 00D6 MOVE R18 R11 - 0x7C3C0600, // 00D7 CALL R15 3 - 0x5C381E00, // 00D8 MOVE R14 R15 - 0x50180200, // 00D9 LDBOOL R6 1 0 - 0x8C3C0303, // 00DA GETMET R15 R1 K3 - 0x8C440513, // 00DB GETMET R17 R2 K19 - 0x584C0028, // 00DC LDCONST R19 K40 - 0x5C501400, // 00DD MOVE R20 R10 - 0x7C440600, // 00DE CALL R17 3 - 0x7C3C0400, // 00DF CALL R15 2 - 0x8C3C0303, // 00E0 GETMET R15 R1 K3 - 0x8C440513, // 00E1 GETMET R17 R2 K19 - 0x584C0029, // 00E2 LDCONST R19 K41 - 0x8C500116, // 00E3 GETMET R20 R0 K22 - 0x8C58170C, // 00E4 GETMET R22 R11 K12 - 0x5860000D, // 00E5 LDCONST R24 K13 - 0x58640011, // 00E6 LDCONST R25 K17 - 0x7C580600, // 00E7 CALL R22 3 - 0x7C500400, // 00E8 CALL R20 2 - 0x7C440600, // 00E9 CALL R17 3 - 0x7C3C0400, // 00EA CALL R15 2 - 0x8C3C0303, // 00EB GETMET R15 R1 K3 - 0x8C440513, // 00EC GETMET R17 R2 K19 - 0x584C0017, // 00ED LDCONST R19 K23 - 0x5C501400, // 00EE MOVE R20 R10 - 0x8C540318, // 00EF GETMET R21 R1 K24 - 0x5C5C1C00, // 00F0 MOVE R23 R14 - 0x7C540400, // 00F1 CALL R21 2 - 0x7C440800, // 00F2 CALL R17 4 - 0x7C3C0400, // 00F3 CALL R15 2 - 0x8C3C0303, // 00F4 GETMET R15 R1 K3 - 0x8C440513, // 00F5 GETMET R17 R2 K19 - 0x584C002A, // 00F6 LDCONST R19 K42 - 0x5C501400, // 00F7 MOVE R20 R10 - 0x7C440600, // 00F8 CALL R17 3 - 0x7C3C0400, // 00F9 CALL R15 2 - 0x00140B0E, // 00FA ADD R5 R5 K14 - 0x7001FFAB, // 00FB JMP #00A8 - 0x8C280303, // 00FC GETMET R10 R1 K3 - 0x5830002B, // 00FD LDCONST R12 K43 - 0x7C280400, // 00FE CALL R10 2 - 0x7001FF92, // 00FF JMP #0093 - 0x5820001F, // 0100 LDCONST R8 K31 - 0xAC200200, // 0101 CATCH R8 1 0 - 0xB0080000, // 0102 RAISE 2 R0 R0 - 0x5C200C00, // 0103 MOVE R8 R6 - 0x74220002, // 0104 JMPT R8 #0108 - 0x8C200303, // 0105 GETMET R8 R1 K3 - 0x5828001B, // 0106 LDCONST R10 K27 - 0x7C200400, // 0107 CALL R8 2 - 0x8C200303, // 0108 GETMET R8 R1 K3 - 0x5828002C, // 0109 LDCONST R10 K44 - 0x7C200400, // 010A CALL R8 2 - 0x8C200303, // 010B GETMET R8 R1 K3 - 0x5828002D, // 010C LDCONST R10 K45 - 0x7C200400, // 010D CALL R8 2 - 0x8C200303, // 010E GETMET R8 R1 K3 - 0x5828002E, // 010F LDCONST R10 K46 - 0x7C200400, // 0110 CALL R8 2 - 0x8C200303, // 0111 GETMET R8 R1 K3 - 0x5828002F, // 0112 LDCONST R10 K47 - 0x7C200400, // 0113 CALL R8 2 - 0x8C200130, // 0114 GETMET R8 R0 K48 - 0x58280011, // 0115 LDCONST R10 K17 - 0x882C0131, // 0116 GETMBR R11 R0 K49 - 0x7C200600, // 0117 CALL R8 3 - 0x8C200303, // 0118 GETMET R8 R1 K3 - 0x58280032, // 0119 LDCONST R10 K50 - 0x7C200400, // 011A CALL R8 2 - 0x8C200303, // 011B GETMET R8 R1 K3 - 0x58280033, // 011C LDCONST R10 K51 - 0x7C200400, // 011D CALL R8 2 - 0x8C200303, // 011E GETMET R8 R1 K3 - 0x58280034, // 011F LDCONST R10 K52 - 0x7C200400, // 0120 CALL R8 2 - 0x8C200303, // 0121 GETMET R8 R1 K3 - 0x58280035, // 0122 LDCONST R10 K53 - 0x7C200400, // 0123 CALL R8 2 - 0x8C200303, // 0124 GETMET R8 R1 K3 - 0x58280036, // 0125 LDCONST R10 K54 - 0x7C200400, // 0126 CALL R8 2 - 0x8C200303, // 0127 GETMET R8 R1 K3 - 0x58280037, // 0128 LDCONST R10 K55 - 0x7C200400, // 0129 CALL R8 2 - 0x8C200303, // 012A GETMET R8 R1 K3 - 0x58280034, // 012B LDCONST R10 K52 - 0x7C200400, // 012C CALL R8 2 - 0x8C200303, // 012D GETMET R8 R1 K3 - 0x58280038, // 012E LDCONST R10 K56 - 0x7C200400, // 012F CALL R8 2 - 0x8C200303, // 0130 GETMET R8 R1 K3 - 0x58280039, // 0131 LDCONST R10 K57 - 0x7C200400, // 0132 CALL R8 2 - 0x8C200303, // 0133 GETMET R8 R1 K3 - 0x5828003A, // 0134 LDCONST R10 K58 - 0x7C200400, // 0135 CALL R8 2 - 0x80000000, // 0136 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: equal_map -********************************************************************/ -be_local_closure(Matter_UI_equal_map, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 4, /* 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_class(be_class_Matter_UI), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(contains), - /* K3 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(equal_map), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x600C0010, // 0001 GETGBL R3 G16 - 0x8C100101, // 0002 GETMET R4 R0 K1 - 0x7C100200, // 0003 CALL R4 1 - 0x7C0C0200, // 0004 CALL R3 1 - 0xA8020010, // 0005 EXBLK 0 #0017 - 0x5C100600, // 0006 MOVE R4 R3 - 0x7C100000, // 0007 CALL R4 0 - 0x8C140302, // 0008 GETMET R5 R1 K2 - 0x5C1C0800, // 0009 MOVE R7 R4 - 0x7C140400, // 000A CALL R5 2 - 0x74160002, // 000B JMPT R5 #000F - 0x50140000, // 000C LDBOOL R5 0 0 - 0xA8040001, // 000D EXBLK 1 1 - 0x80040A00, // 000E RET 1 R5 - 0x94140204, // 000F GETIDX R5 R1 R4 - 0x94180004, // 0010 GETIDX R6 R0 R4 - 0x20140A06, // 0011 NE R5 R5 R6 - 0x78160002, // 0012 JMPF R5 #0016 - 0x50140000, // 0013 LDBOOL R5 0 0 - 0xA8040001, // 0014 EXBLK 1 1 - 0x80040A00, // 0015 RET 1 R5 - 0x7001FFEE, // 0016 JMP #0006 - 0x580C0003, // 0017 LDCONST R3 K3 - 0xAC0C0200, // 0018 CATCH R3 1 0 - 0xB0080000, // 0019 RAISE 2 R0 R0 - 0x600C0010, // 001A GETGBL R3 G16 - 0x8C100301, // 001B GETMET R4 R1 K1 - 0x7C100200, // 001C CALL R4 1 - 0x7C0C0200, // 001D CALL R3 1 - 0xA8020010, // 001E EXBLK 0 #0030 - 0x5C100600, // 001F MOVE R4 R3 - 0x7C100000, // 0020 CALL R4 0 - 0x8C140102, // 0021 GETMET R5 R0 K2 - 0x5C1C0800, // 0022 MOVE R7 R4 - 0x7C140400, // 0023 CALL R5 2 - 0x74160002, // 0024 JMPT R5 #0028 - 0x50140000, // 0025 LDBOOL R5 0 0 - 0xA8040001, // 0026 EXBLK 1 1 - 0x80040A00, // 0027 RET 1 R5 - 0x94140204, // 0028 GETIDX R5 R1 R4 - 0x94180004, // 0029 GETIDX R6 R0 R4 - 0x20140A06, // 002A NE R5 R5 R6 - 0x78160002, // 002B JMPF R5 #002F - 0x50140000, // 002C LDBOOL R5 0 0 - 0xA8040001, // 002D EXBLK 1 1 - 0x80040A00, // 002E RET 1 R5 - 0x7001FFEE, // 002F JMP #001F - 0x580C0003, // 0030 LDCONST R3 K3 - 0xAC0C0200, // 0031 CATCH R3 1 0 - 0xB0080000, // 0032 RAISE 2 R0 R0 - 0x500C0200, // 0033 LDBOOL R3 1 0 - 0x80040600, // 0034 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_sensor -********************************************************************/ -be_local_closure(Matter_UI_web_sensor, /* 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[19]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(matter_enabled), - /* K3 */ be_nested_str_weak(device), - /* K4 */ be_nested_str_weak(sessions), - /* K5 */ be_nested_str_weak(count_active_fabrics), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(content_send), - /* K8 */ be_nested_str_weak(format), - /* K9 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27text_X2Dalign_X3Aright_X3Bfont_X2Dsize_X3A11px_X3Bcolor_X3A_X23aaa_X3Bpadding_X3A0px_X3B_X27_X3E_X25s_X3C_X2Fdiv_X3E), - /* K10 */ be_nested_str_weak(Matter_X3A_X20No_X20active_X20association), - /* K11 */ be_const_int(1), - /* K12 */ be_nested_str_weak(Matter_X3A_X20), - /* K13 */ be_nested_str_weak(_X20active_X20association), - /* K14 */ be_nested_str_weak(s), - /* K15 */ be_nested_str_weak(), - /* K16 */ be_nested_str_weak(show_bridge_status), - /* K17 */ be_nested_str_weak(is_root_commissioning_open), - /* K18 */ be_nested_str_weak(show_commissioning_info), - }), - be_str_weak(web_sensor), - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0102, // 0002 GETMET R3 R0 K2 - 0x7C0C0200, // 0003 CALL R3 1 - 0x780E0024, // 0004 JMPF R3 #002A - 0x880C0103, // 0005 GETMBR R3 R0 K3 - 0x880C0704, // 0006 GETMBR R3 R3 K4 - 0x8C0C0705, // 0007 GETMET R3 R3 K5 - 0x7C0C0200, // 0008 CALL R3 1 - 0x1C100706, // 0009 EQ R4 R3 K6 - 0x78120006, // 000A JMPF R4 #0012 - 0x8C100307, // 000B GETMET R4 R1 K7 - 0x8C180508, // 000C GETMET R6 R2 K8 - 0x58200009, // 000D LDCONST R8 K9 - 0x5824000A, // 000E LDCONST R9 K10 - 0x7C180600, // 000F CALL R6 3 - 0x7C100400, // 0010 CALL R4 2 - 0x7002000F, // 0011 JMP #0022 - 0x2410070B, // 0012 GT R4 R3 K11 - 0x8C140307, // 0013 GETMET R5 R1 K7 - 0x8C1C0508, // 0014 GETMET R7 R2 K8 - 0x58240009, // 0015 LDCONST R9 K9 - 0x60280008, // 0016 GETGBL R10 G8 - 0x5C2C0600, // 0017 MOVE R11 R3 - 0x7C280200, // 0018 CALL R10 1 - 0x002A180A, // 0019 ADD R10 K12 R10 - 0x0028150D, // 001A ADD R10 R10 K13 - 0x78120001, // 001B JMPF R4 #001E - 0x582C000E, // 001C LDCONST R11 K14 - 0x70020000, // 001D JMP #001F - 0x582C000F, // 001E LDCONST R11 K15 - 0x0028140B, // 001F ADD R10 R10 R11 - 0x7C1C0600, // 0020 CALL R7 3 - 0x7C140400, // 0021 CALL R5 2 - 0x8C100110, // 0022 GETMET R4 R0 K16 - 0x7C100200, // 0023 CALL R4 1 - 0x88100103, // 0024 GETMBR R4 R0 K3 - 0x8C100911, // 0025 GETMET R4 R4 K17 - 0x7C100200, // 0026 CALL R4 1 - 0x78120001, // 0027 JMPF R4 #002A - 0x8C100112, // 0028 GETMET R4 R0 K18 - 0x7C100200, // 0029 CALL R4 1 - 0x80000000, // 002A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show_fabric_info -********************************************************************/ -be_local_closure(Matter_UI_show_fabric_info, /* name */ - be_nested_proto( - 16, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[30]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(content_send), - /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BFabrics_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3Cp_X3EAssociated_X20fabrics_X3A_X3C_X2Fp_X3E), - /* K4 */ be_nested_str_weak(device), - /* K5 */ be_nested_str_weak(sessions), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3ENone_X3C_X2Fb_X3E_X3C_X2Fp_X3E), - /* K8 */ be_nested_str_weak(fabrics), - /* K9 */ be_nested_str_weak(persistables), - /* K10 */ be_nested_str_weak(_X3Chr_X3E), - /* K11 */ be_nested_str_weak(fabric_label), - /* K12 */ be_nested_str_weak(_X3CNo_X20label_X3E), - /* K13 */ be_nested_str_weak(html_escape), - /* K14 */ be_nested_str_weak(format), - /* K15 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3B_X23_X25i_X20_X25s_X3C_X2Fb_X3E_X20_X28_X25s_X29_X26nbsp_X3B_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K16 */ be_nested_str_weak(get_fabric_index), - /* K17 */ be_nested_str_weak(get_admin_vendor_name), - /* K18 */ be_nested_str_weak(get_fabric_id), - /* K19 */ be_nested_str_weak(copy), - /* K20 */ be_nested_str_weak(reverse), - /* K21 */ be_nested_str_weak(get_device_id), - /* K22 */ be_nested_str_weak(Fabric_X3A_X20_X25s_X3Cbr_X3E), - /* K23 */ be_nested_str_weak(tohex), - /* K24 */ be_nested_str_weak(Device_X3A_X20_X25s_X3Cbr_X3E_X26nbsp_X3B), - /* K25 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22Are_X20you_X20sure_X3F_X22_X29_X3B_X27_X3E), - /* K26 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27del_fabric_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25i_X27_X3E), - /* K27 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27del_X27_X20class_X3D_X27button_X20bgrn_X27_X3EDelete_X20Fabric_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - /* K28 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K29 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(show_fabric_info), - &be_const_str_solidified, - ( &(const binstruction[101]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C0C0400, // 0004 CALL R3 2 - 0x600C000C, // 0005 GETGBL R3 G12 - 0x88100104, // 0006 GETMBR R4 R0 K4 - 0x88100905, // 0007 GETMBR R4 R4 K5 - 0x88100905, // 0008 GETMBR R4 R4 K5 - 0x7C0C0200, // 0009 CALL R3 1 - 0x1C0C0706, // 000A EQ R3 R3 K6 - 0x780E0003, // 000B JMPF R3 #0010 - 0x8C0C0302, // 000C GETMET R3 R1 K2 - 0x58140007, // 000D LDCONST R5 K7 - 0x7C0C0400, // 000E CALL R3 2 - 0x70020050, // 000F JMP #0061 - 0x500C0200, // 0010 LDBOOL R3 1 0 - 0x60100010, // 0011 GETGBL R4 G16 - 0x88140104, // 0012 GETMBR R5 R0 K4 - 0x88140B05, // 0013 GETMBR R5 R5 K5 - 0x88140B08, // 0014 GETMBR R5 R5 K8 - 0x8C140B09, // 0015 GETMET R5 R5 K9 - 0x7C140200, // 0016 CALL R5 1 - 0x7C100200, // 0017 CALL R4 1 - 0xA8020044, // 0018 EXBLK 0 #005E - 0x5C140800, // 0019 MOVE R5 R4 - 0x7C140000, // 001A CALL R5 0 - 0x5C180600, // 001B MOVE R6 R3 - 0x741A0002, // 001C JMPT R6 #0020 - 0x8C180302, // 001D GETMET R6 R1 K2 - 0x5820000A, // 001E LDCONST R8 K10 - 0x7C180400, // 001F CALL R6 2 - 0x500C0000, // 0020 LDBOOL R3 0 0 - 0x88180B0B, // 0021 GETMBR R6 R5 K11 - 0x5C1C0C00, // 0022 MOVE R7 R6 - 0x741E0000, // 0023 JMPT R7 #0025 - 0x5818000C, // 0024 LDCONST R6 K12 - 0x8C1C030D, // 0025 GETMET R7 R1 K13 - 0x5C240C00, // 0026 MOVE R9 R6 - 0x7C1C0400, // 0027 CALL R7 2 - 0x5C180E00, // 0028 MOVE R6 R7 - 0x8C1C0302, // 0029 GETMET R7 R1 K2 - 0x8C24050E, // 002A GETMET R9 R2 K14 - 0x582C000F, // 002B LDCONST R11 K15 - 0x8C300B10, // 002C GETMET R12 R5 K16 - 0x7C300200, // 002D CALL R12 1 - 0x5C340C00, // 002E MOVE R13 R6 - 0x8C380B11, // 002F GETMET R14 R5 K17 - 0x7C380200, // 0030 CALL R14 1 - 0x7C240A00, // 0031 CALL R9 5 - 0x7C1C0400, // 0032 CALL R7 2 - 0x8C1C0B12, // 0033 GETMET R7 R5 K18 - 0x7C1C0200, // 0034 CALL R7 1 - 0x8C1C0F13, // 0035 GETMET R7 R7 K19 - 0x7C1C0200, // 0036 CALL R7 1 - 0x8C1C0F14, // 0037 GETMET R7 R7 K20 - 0x7C1C0200, // 0038 CALL R7 1 - 0x8C200B15, // 0039 GETMET R8 R5 K21 - 0x7C200200, // 003A CALL R8 1 - 0x8C201113, // 003B GETMET R8 R8 K19 - 0x7C200200, // 003C CALL R8 1 - 0x8C201114, // 003D GETMET R8 R8 K20 - 0x7C200200, // 003E CALL R8 1 - 0x8C240302, // 003F GETMET R9 R1 K2 - 0x8C2C050E, // 0040 GETMET R11 R2 K14 - 0x58340016, // 0041 LDCONST R13 K22 - 0x8C380F17, // 0042 GETMET R14 R7 K23 - 0x7C380200, // 0043 CALL R14 1 - 0x7C2C0600, // 0044 CALL R11 3 - 0x7C240400, // 0045 CALL R9 2 - 0x8C240302, // 0046 GETMET R9 R1 K2 - 0x8C2C050E, // 0047 GETMET R11 R2 K14 - 0x58340018, // 0048 LDCONST R13 K24 - 0x8C381117, // 0049 GETMET R14 R8 K23 - 0x7C380200, // 004A CALL R14 1 - 0x7C2C0600, // 004B CALL R11 3 - 0x7C240400, // 004C CALL R9 2 - 0x8C240302, // 004D GETMET R9 R1 K2 - 0x582C0019, // 004E LDCONST R11 K25 - 0x7C240400, // 004F CALL R9 2 - 0x8C240302, // 0050 GETMET R9 R1 K2 - 0x8C2C050E, // 0051 GETMET R11 R2 K14 - 0x5834001A, // 0052 LDCONST R13 K26 - 0x8C380B10, // 0053 GETMET R14 R5 K16 - 0x7C380200, // 0054 CALL R14 1 - 0x7C2C0600, // 0055 CALL R11 3 - 0x7C240400, // 0056 CALL R9 2 - 0x8C240302, // 0057 GETMET R9 R1 K2 - 0x582C001B, // 0058 LDCONST R11 K27 - 0x7C240400, // 0059 CALL R9 2 - 0x8C240302, // 005A GETMET R9 R1 K2 - 0x582C001C, // 005B LDCONST R11 K28 - 0x7C240400, // 005C CALL R9 2 - 0x7001FFBA, // 005D JMP #0019 - 0x5810001D, // 005E LDCONST R4 K29 - 0xAC100200, // 005F CATCH R4 1 0 - 0xB0080000, // 0060 RAISE 2 R0 R0 - 0x8C0C0302, // 0061 GETMET R3 R1 K2 - 0x5814001C, // 0062 LDCONST R5 K28 - 0x7C0C0400, // 0063 CALL R3 2 - 0x80000000, // 0064 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: page_part_mgr -********************************************************************/ -be_local_closure(Matter_UI_page_part_mgr, /* 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[15]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(check_privileged_access), - /* K3 */ be_nested_str_weak(content_start), - /* K4 */ be_nested_str_weak(Matter), - /* K5 */ be_nested_str_weak(content_send_style), - /* K6 */ be_nested_str_weak(show_enable), - /* K7 */ be_nested_str_weak(matter_enabled), - /* K8 */ be_nested_str_weak(show_plugins_configuration), - /* K9 */ be_nested_str_weak(content_send), - /* K10 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27display_X3A_X20block_X3B_X27_X3E_X3C_X2Fdiv_X3E), - /* K11 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cform_X20id_X3D_X27butmat_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20action_X3D_X27mattera_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X20name_X3D_X27_X27_X3EAdvanced_X20Configuration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), - /* K12 */ be_nested_str_weak(content_button), - /* K13 */ be_nested_str_weak(BUTTON_CONFIGURATION), - /* K14 */ be_nested_str_weak(content_stop), - }), - be_str_weak(page_part_mgr), - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x7C0C0200, // 0003 CALL R3 1 - 0x740E0001, // 0004 JMPT R3 #0007 - 0x4C0C0000, // 0005 LDNIL R3 - 0x80040600, // 0006 RET 1 R3 - 0x8C0C0303, // 0007 GETMET R3 R1 K3 - 0x58140004, // 0008 LDCONST R5 K4 - 0x7C0C0400, // 0009 CALL R3 2 - 0x8C0C0305, // 000A GETMET R3 R1 K5 - 0x7C0C0200, // 000B CALL R3 1 - 0x8C0C0106, // 000C GETMET R3 R0 K6 - 0x7C0C0200, // 000D CALL R3 1 - 0x8C0C0107, // 000E GETMET R3 R0 K7 - 0x7C0C0200, // 000F CALL R3 1 - 0x780E0001, // 0010 JMPF R3 #0013 - 0x8C0C0108, // 0011 GETMET R3 R0 K8 - 0x7C0C0200, // 0012 CALL R3 1 - 0x8C0C0309, // 0013 GETMET R3 R1 K9 - 0x5814000A, // 0014 LDCONST R5 K10 - 0x7C0C0400, // 0015 CALL R3 2 - 0x8C0C0309, // 0016 GETMET R3 R1 K9 - 0x5814000B, // 0017 LDCONST R5 K11 - 0x7C0C0400, // 0018 CALL R3 2 - 0x8C0C030C, // 0019 GETMET R3 R1 K12 - 0x8814030D, // 001A GETMBR R5 R1 K13 - 0x7C0C0400, // 001B CALL R3 2 - 0x8C0C030E, // 001C GETMET R3 R1 K14 - 0x7C0C0200, // 001D CALL R3 1 - 0x80000000, // 001E RET 0 + ( &(const binstruction[79]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA4120400, // 0002 IMPORT R4 K2 + 0x60140012, // 0003 GETGBL R5 G18 + 0x7C140000, // 0004 CALL R5 0 + 0x60180010, // 0005 GETGBL R6 G16 + 0x5C1C0200, // 0006 MOVE R7 R1 + 0x7C180200, // 0007 CALL R6 1 + 0xA8020007, // 0008 EXBLK 0 #0011 + 0x5C1C0C00, // 0009 MOVE R7 R6 + 0x7C1C0000, // 000A CALL R7 0 + 0x8C200703, // 000B GETMET R8 R3 K3 + 0x5C280E00, // 000C MOVE R10 R7 + 0x582C0004, // 000D LDCONST R11 K4 + 0x7C200600, // 000E CALL R8 3 + 0x00140A08, // 000F ADD R5 R5 R8 + 0x7001FFF7, // 0010 JMP #0009 + 0x58180005, // 0011 LDCONST R6 K5 + 0xAC180200, // 0012 CATCH R6 1 0 + 0xB0080000, // 0013 RAISE 2 R0 R0 + 0x60180013, // 0014 GETGBL R6 G19 + 0x7C180000, // 0015 CALL R6 0 + 0x601C0012, // 0016 GETGBL R7 G18 + 0x7C1C0000, // 0017 CALL R7 0 + 0x60200010, // 0018 GETGBL R8 G16 + 0x5C240A00, // 0019 MOVE R9 R5 + 0x7C200200, // 001A CALL R8 1 + 0xA802001F, // 001B EXBLK 0 #003C + 0x5C241000, // 001C MOVE R9 R8 + 0x7C240000, // 001D CALL R9 0 + 0x1C281306, // 001E EQ R10 R9 K6 + 0x782A0000, // 001F JMPF R10 #0021 + 0x7001FFFA, // 0020 JMP #001C + 0x88280107, // 0021 GETMBR R10 R0 K7 + 0x88281508, // 0022 GETMBR R10 R10 K8 + 0x8C281509, // 0023 GETMET R10 R10 K9 + 0x5C301200, // 0024 MOVE R12 R9 + 0x7C280400, // 0025 CALL R10 2 + 0x4C2C0000, // 0026 LDNIL R11 + 0x202C140B, // 0027 NE R11 R10 R11 + 0x782E0011, // 0028 JMPF R11 #003B + 0x882C150A, // 0029 GETMBR R11 R10 K10 + 0x4C300000, // 002A LDNIL R12 + 0x2030160C, // 002B NE R12 R11 R12 + 0x7832000D, // 002C JMPF R12 #003B + 0x8C300F09, // 002D GETMET R12 R7 K9 + 0x5C381600, // 002E MOVE R14 R11 + 0x7C300400, // 002F CALL R12 2 + 0x4C340000, // 0030 LDNIL R13 + 0x1C34180D, // 0031 EQ R13 R12 R13 + 0x78360006, // 0032 JMPF R13 #003A + 0x6034000C, // 0033 GETGBL R13 G12 + 0x5C380E00, // 0034 MOVE R14 R7 + 0x7C340200, // 0035 CALL R13 1 + 0x5C301A00, // 0036 MOVE R12 R13 + 0x8C340F0B, // 0037 GETMET R13 R7 K11 + 0x5C3C1600, // 0038 MOVE R15 R11 + 0x7C340400, // 0039 CALL R13 2 + 0x9818120C, // 003A SETIDX R6 R9 R12 + 0x7001FFDF, // 003B JMP #001C + 0x58200005, // 003C LDCONST R8 K5 + 0xAC200200, // 003D CATCH R8 1 0 + 0xB0080000, // 003E RAISE 2 R0 R0 + 0x8C20050C, // 003F GETMET R8 R2 K12 + 0x8C28070D, // 0040 GETMET R10 R3 K13 + 0x5830000E, // 0041 LDCONST R12 K14 + 0x8C34090F, // 0042 GETMET R13 R4 K15 + 0x5C3C0C00, // 0043 MOVE R15 R6 + 0x7C340400, // 0044 CALL R13 2 + 0x8C38090F, // 0045 GETMET R14 R4 K15 + 0x5C400E00, // 0046 MOVE R16 R7 + 0x7C380400, // 0047 CALL R14 2 + 0x7C280800, // 0048 CALL R10 4 + 0x7C200400, // 0049 CALL R8 2 + 0x8C20050C, // 004A GETMET R8 R2 K12 + 0xB82A2000, // 004B GETNGBL R10 K16 + 0x88281511, // 004C GETMBR R10 R10 K17 + 0x7C200400, // 004D CALL R8 2 + 0x80000000, // 004E RET 0 }) ) ); @@ -3104,33 +3204,34 @@ be_local_closure(Matter_UI_page_part_mgr, /* name */ be_local_class(Matter_UI, 1, NULL, - be_nested_map(25, + be_nested_map(26, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(web_add_config_button, -1), be_const_closure(Matter_UI_web_add_config_button_closure) }, - { be_const_key_weak(page_part_mgr, -1), be_const_closure(Matter_UI_page_part_mgr_closure) }, - { be_const_key_weak(page_part_mgr_adv, -1), be_const_closure(Matter_UI_page_part_mgr_adv_closure) }, - { be_const_key_weak(show_bridge_status, -1), be_const_closure(Matter_UI_show_bridge_status_closure) }, - { be_const_key_weak(plugin_option, -1), be_const_closure(Matter_UI_plugin_option_closure) }, - { be_const_key_weak(init, 8), be_const_closure(Matter_UI_init_closure) }, - { be_const_key_weak(page_part_ctl, 7), be_const_closure(Matter_UI_page_part_ctl_closure) }, - { be_const_key_weak(show_fabric_info, 9), be_const_closure(Matter_UI_show_fabric_info_closure) }, - { be_const_key_weak(web_get_arg, -1), be_const_closure(Matter_UI_web_get_arg_closure) }, { be_const_key_weak(equal_map, -1), be_const_static_closure(Matter_UI_equal_map_closure) }, - { be_const_key_weak(page_part_mgr_add, -1), be_const_closure(Matter_UI_page_part_mgr_add_closure) }, - { be_const_key_weak(device, -1), be_const_var(0) }, - { be_const_key_weak(web_add_handler, 21), be_const_closure(Matter_UI_web_add_handler_closure) }, - { be_const_key_weak(matter_enabled, -1), be_const_closure(Matter_UI_matter_enabled_closure) }, + { be_const_key_weak(page_part_mgr_adv, -1), be_const_closure(Matter_UI_page_part_mgr_adv_closure) }, + { be_const_key_weak(_CLASSES_TYPES2, -1), be_nested_str_weak(_X7Chttp_relay_X7Chttp_light0_X7Chttp_light1_X7Chttp_light2_X7Chttp_light3_X7Chttp_temperature_X7Chttp_pressure_X7Chttp_illuminance_X7Chttp_humidity_X7Chttp_occupancy) }, + { be_const_key_weak(page_part_mgr, 25), be_const_closure(Matter_UI_page_part_mgr_closure) }, + { be_const_key_weak(show_plugins_hints_js, -1), be_const_closure(Matter_UI_show_plugins_hints_js_closure) }, { be_const_key_weak(show_enable, -1), be_const_closure(Matter_UI_show_enable_closure) }, + { be_const_key_weak(matter_enabled, 24), be_const_closure(Matter_UI_matter_enabled_closure) }, + { be_const_key_weak(generate_config_from_status, -1), be_const_closure(Matter_UI_generate_config_from_status_closure) }, + { be_const_key_weak(show_qrcode, 21), be_const_closure(Matter_UI_show_qrcode_closure) }, + { be_const_key_weak(page_part_mgr_add, -1), be_const_closure(Matter_UI_page_part_mgr_add_closure) }, + { be_const_key_weak(show_plugins_configuration, -1), be_const_closure(Matter_UI_show_plugins_configuration_closure) }, { be_const_key_weak(show_commissioning_info, -1), be_const_closure(Matter_UI_show_commissioning_info_closure) }, - { be_const_key_weak(_CLASSES_TYPES2, 18), be_nested_str_weak(_X7Chttp_relay_X7Chttp_light0_X7Chttp_light1_X7Chttp_light2_X7Chttp_light3_X7Chttp_temperature_X7Chttp_pressure_X7Chttp_illuminance_X7Chttp_humidity_X7Chttp_occupancy) }, - { be_const_key_weak(show_remote_autoconf, 13), be_const_closure(Matter_UI_show_remote_autoconf_closure) }, - { be_const_key_weak(show_plugins_configuration, 23), be_const_closure(Matter_UI_show_plugins_configuration_closure) }, - { be_const_key_weak(show_passcode_form, 16), be_const_closure(Matter_UI_show_passcode_form_closure) }, - { be_const_key_weak(_CLASSES_TYPES, -1), be_nested_str_weak(_X7Crelay_X7Clight0_X7Clight1_X7Clight2_X7Clight3_X7Cshutter_X7Cshutter_X2Btilt_X7Ctemperature_X7Cpressure_X7Cilluminance_X7Chumidity_X7Coccupancy_X7Conoff) }, - { be_const_key_weak(plugin_name, -1), be_const_closure(Matter_UI_plugin_name_closure) }, + { be_const_key_weak(page_part_ctl, 18), be_const_closure(Matter_UI_page_part_ctl_closure) }, + { be_const_key_weak(show_fabric_info, -1), be_const_closure(Matter_UI_show_fabric_info_closure) }, + { be_const_key_weak(_CLASSES_TYPES, 4), be_nested_str_weak(_X7Crelay_X7Clight0_X7Clight1_X7Clight2_X7Clight3_X7Cshutter_X7Cshutter_X2Btilt_X7Ctemperature_X7Cpressure_X7Cilluminance_X7Chumidity_X7Coccupancy_X7Conoff) }, + { be_const_key_weak(web_get_arg, -1), be_const_closure(Matter_UI_web_get_arg_closure) }, + { be_const_key_weak(plugin_option, 5), be_const_closure(Matter_UI_plugin_option_closure) }, + { be_const_key_weak(web_add_config_button, -1), be_const_closure(Matter_UI_web_add_config_button_closure) }, + { be_const_key_weak(show_passcode_form, -1), be_const_closure(Matter_UI_show_passcode_form_closure) }, + { be_const_key_weak(show_remote_autoconf, 8), be_const_closure(Matter_UI_show_remote_autoconf_closure) }, + { be_const_key_weak(web_add_handler, -1), be_const_closure(Matter_UI_web_add_handler_closure) }, + { be_const_key_weak(show_bridge_status, 23), be_const_closure(Matter_UI_show_bridge_status_closure) }, + { be_const_key_weak(plugin_name, 12), be_const_closure(Matter_UI_plugin_name_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_UI_init_closure) }, { be_const_key_weak(web_sensor, -1), be_const_closure(Matter_UI_web_sensor_closure) }, - { be_const_key_weak(show_qrcode, -1), be_const_closure(Matter_UI_show_qrcode_closure) }, - { be_const_key_weak(generate_config_from_status, 1), be_const_closure(Matter_UI_generate_config_from_status_closure) }, + { be_const_key_weak(device, -1), be_const_var(0) }, })), be_str_weak(Matter_UI) ); diff --git a/tasmota/tasmota_support/support_wifi.ino b/tasmota/tasmota_support/support_wifi.ino index cb701a304..c5189c344 100644 --- a/tasmota/tasmota_support/support_wifi.ino +++ b/tasmota/tasmota_support/support_wifi.ino @@ -1265,7 +1265,7 @@ bool WifiHostByName(const char* aHostname, IPAddress& aResult) { if (success) { // Host name resolved if (0xFFFFFFFF != (uint32_t)aResult) { - AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_WIFI "DNS resolved '%s' (%s) in %i ms"), aHostname, aResult.toString().c_str(), dns_end - dns_start); + AddLog(LOG_LEVEL_DEBUG_MORE, PSTR(D_LOG_WIFI "DNS resolved '%s' (%s) in %i ms"), aHostname, aResult.toString().c_str(), dns_end - dns_start); return true; } }