def METHOD_NAME(read_buffer: ReadBuffer, response: bool):
    read_buffer.push_context("ModbusPDUMaskWriteHoldingRegisterResponse")
    self.reference_address = read_simple_field(
        "referenceAddress", read_unsigned_int
    )
    self.and_mask = read_simple_field("andMask", read_unsigned_int)
    self.or_mask = read_simple_field("orMask", read_unsigned_int)
    read_buffer.pop_context("ModbusPDUMaskWriteHoldingRegisterResponse")
    # Create the instance
    return ModbusPDUMaskWriteHoldingRegisterResponseBuilder(
        reference_address, and_mask, or_mask
    )