```\nfunction \_updateL1L2MessageStatusToReceived(bytes32[] memory \_messageHashes) internal {\n uint256 messageHashArrayLength = \_messageHashes.length;\n\n for (uint256 i; i < messageHashArrayLength; ) {\n bytes32 messageHash = \_messageHashes[i];\n uint256 existingStatus = outboxL1L2MessageStatus[messageHash];\n\n if (existingStatus == INBOX\_STATUS\_UNKNOWN) {\n revert L1L2MessageNotSent(messageHash);\n }\n\n if (existingStatus != OUTBOX\_STATUS\_RECEIVED) {\n outboxL1L2MessageStatus[messageHash] = OUTBOX\_STATUS\_RECEIVED;\n }\n\n unchecked {\n i++;\n }\n }\n\n emit L1L2MessagesReceivedOnL2(\_messageHashes);\n}\n```\n